@peasant-labs/fairtrade 0.0.5 → 0.0.7
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/LICENSE +202 -21
- package/dist/lib/{ChartLine-Dlp6-CLL.js → ChartLine-Cycmpjep.js} +45 -39
- package/dist/lib/InUseShell-VRWaysXY.js +2488 -0
- package/dist/lib/analytics.js +1 -1
- package/dist/lib/commons.js +801 -836
- package/dist/lib/components.css +1 -1
- package/dist/lib/graph.css +1 -1
- package/dist/lib/graph.js +684 -285
- package/dist/lib/types/ChartBar.d.ts +3 -1
- package/dist/lib/types/ChartLine.d.ts +3 -1
- package/dist/lib/types/CommitGraph.d.ts +12 -3
- package/dist/lib/types/MapCanvas.d.ts +45 -2
- package/dist/lib/types/ProviderIcon.d.ts +23 -20
- package/dist/lib/types/chart-shared.d.ts +1 -0
- package/dist/lib/types/commons/providers.d.ts +7 -8
- package/dist/lib/types/commons/types.d.ts +3 -6
- package/dist/lib/types/graph/Changes.d.ts +8 -4
- package/dist/lib/types/graph/CodeMap.d.ts +17 -1
- package/dist/lib/types/graph/CodeMapComposition.d.ts +25 -1
- package/dist/lib/types/graph/CodeMapNavigator.d.ts +35 -0
- package/dist/lib/types/graph/changeGraph.d.ts +12 -0
- package/dist/lib/types/graph/codeMapState.d.ts +136 -0
- package/dist/lib/types/graph/index.d.ts +15 -1
- package/dist/lib/types/graph/timelineNavigation.d.ts +33 -0
- package/dist/lib/types/graph/types.d.ts +67 -440
- package/dist/lib/types/index.d.ts +2 -0
- package/dist/lib/types/provider-policy.d.ts +27 -0
- package/dist/lib/types/transcript/TranscriptViewer.d.ts +1 -1
- package/dist/lib/types/transcript/TurnCard.d.ts +3 -1
- package/dist/lib/types/transcript/adapter.d.ts +5 -40
- package/dist/lib/types/transcript/graph/GraphLegend.d.ts +3 -3
- package/dist/lib/types/transcript/graph/GraphTurnNode.d.ts +2 -2
- package/dist/lib/types/transcript/index.d.ts +4 -1
- package/dist/lib/types/transcript/initial-position.d.ts +80 -0
- package/dist/lib/types/transcript/state-capabilities.d.ts +53 -1
- package/dist/lib/types/transcript/useTranscriptInitialPosition.d.ts +26 -0
- package/dist/lib/types/transcript/view-model.d.ts +16 -16
- package/dist/lib/types/transcript/wire-types.d.ts +46 -308
- package/dist/lib/{ui-oBFnHPFe.js → ui-CKqVB4x2.js} +3592 -3584
- package/dist/lib/ui.js +4 -4
- package/package.json +51 -26
- package/dist/lib/InUseShell-DZvmRdj-.js +0 -1532
package/dist/lib/commons.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { At as e, Dt as t, Et as n, Gn as r, Q as i, Rn as a, Tn as o, Tt as s, Un as c, Vn as l, Wn as u, et as d, it as f, jt as p, kt as m, nt as h, tt as g, xn as _ } from "./ui-CKqVB4x2.js";
|
|
2
|
+
import { N as v, j as y, k as b } from "./InUseShell-VRWaysXY.js";
|
|
3
|
+
import { useEffect as x, useId as S, useMemo as C, useRef as w, useState as T } from "react";
|
|
4
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
5
|
+
import { AlertTriangle as k, ArrowRight as A, Check as j, ChevronDown as M, ChevronRight as N, CircleDot as P, Compass as F, Copy as I, ExternalLink as L, Eye as R, EyeOff as z, FileText as B, FolderGit2 as V, GitBranch as H, Hash as U, LayoutGrid as ee, List as te, Lock as W, LogOut as G, Plus as ne, SearchX as re, Settings as K, ShieldAlert as q, ShieldCheck as ie, Upload as J, User as ae, UserPlus as Y, Users as X, X as Z } from "lucide-react";
|
|
5
6
|
//#region src/ui/commons/types.js
|
|
6
|
-
var
|
|
7
|
+
var oe = Object.freeze([
|
|
7
8
|
"public",
|
|
8
9
|
"private",
|
|
9
10
|
"shared"
|
|
10
|
-
]),
|
|
11
|
+
]), se = Object.freeze([
|
|
11
12
|
"open",
|
|
12
13
|
"verified_only",
|
|
13
14
|
"curated"
|
|
14
|
-
]),
|
|
15
|
+
]), Q = Object.freeze([
|
|
15
16
|
"members_only",
|
|
16
17
|
"contributors",
|
|
17
18
|
"public"
|
|
18
|
-
]),
|
|
19
|
+
]), $ = Object.freeze(["user_choice", "mandatory"]), ce = Object.freeze([
|
|
19
20
|
"owner",
|
|
20
21
|
"member",
|
|
21
22
|
"contributor",
|
|
22
23
|
"pending"
|
|
23
|
-
]),
|
|
24
|
+
]), le = Object.freeze({
|
|
24
25
|
transcripts: {
|
|
25
26
|
transcripts: [
|
|
26
27
|
{
|
|
@@ -177,21 +178,21 @@ var ae = Object.freeze([
|
|
|
177
178
|
usageCount: 24
|
|
178
179
|
}
|
|
179
180
|
]
|
|
180
|
-
}),
|
|
181
|
+
}), ue = (e) => e.toLocaleString("en-US"), de = (e) => {
|
|
181
182
|
let t = Math.max(0, Math.round(e / 6e4));
|
|
182
183
|
return t >= 60 ? `${Math.floor(t / 60)}h ${String(t % 60).padStart(2, "0")}m` : `${t}min`;
|
|
183
|
-
},
|
|
184
|
+
}, fe = (e) => {
|
|
184
185
|
let t = new Date(e);
|
|
185
186
|
return Number.isNaN(t.getTime()) ? "" : t.toLocaleDateString("en-US", {
|
|
186
187
|
month: "short",
|
|
187
188
|
day: "numeric",
|
|
188
189
|
year: "numeric"
|
|
189
190
|
});
|
|
190
|
-
},
|
|
191
|
-
function
|
|
191
|
+
}, pe = (e = "") => e.split(/[\s-]+/).filter(Boolean).slice(0, 2).map((e) => e[0]).join("").toUpperCase() || "?", me = (e) => e.trim().toLowerCase();
|
|
192
|
+
function he(e) {
|
|
192
193
|
return e ? e.length ? e[0].toUpperCase() + e.slice(1) : e : "";
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
+
function ge(e, t) {
|
|
195
196
|
let n = /* @__PURE__ */ new Map();
|
|
196
197
|
for (let r of e) {
|
|
197
198
|
let e = t(r);
|
|
@@ -199,120 +200,120 @@ function he(e, t) {
|
|
|
199
200
|
}
|
|
200
201
|
return n;
|
|
201
202
|
}
|
|
202
|
-
function
|
|
203
|
+
function _e(e, t, n) {
|
|
203
204
|
t && (e.preventDefault(), t(n));
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
-
return e ??
|
|
206
|
+
function ve(e) {
|
|
207
|
+
return e ?? le;
|
|
207
208
|
}
|
|
208
|
-
function
|
|
209
|
-
let
|
|
210
|
-
/* @__PURE__ */
|
|
209
|
+
function ye({ transcript: e, href: t, onOpen: n }) {
|
|
210
|
+
let r = /* @__PURE__ */ O(E, { children: [
|
|
211
|
+
/* @__PURE__ */ O("div", {
|
|
211
212
|
className: "card-head",
|
|
212
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ O("span", {
|
|
213
214
|
className: "metaitem cex-model",
|
|
214
|
-
children: [/* @__PURE__ */
|
|
215
|
+
children: [/* @__PURE__ */ D(y, {
|
|
215
216
|
harness: e.modelProvider,
|
|
216
217
|
accent: !0
|
|
217
|
-
}), /* @__PURE__ */
|
|
218
|
+
}), /* @__PURE__ */ D("span", {
|
|
218
219
|
className: "mono",
|
|
219
220
|
children: e.modelName || e.modelProvider
|
|
220
221
|
})]
|
|
221
|
-
}), /* @__PURE__ */
|
|
222
|
+
}), /* @__PURE__ */ D(i, { visibility: e.visibility })]
|
|
222
223
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ D("h3", {
|
|
224
225
|
className: "cex-title",
|
|
225
|
-
children:
|
|
226
|
+
children: he(e.title || "untitled transcript")
|
|
226
227
|
}),
|
|
227
|
-
e.projectName && /* @__PURE__ */
|
|
228
|
+
e.projectName && /* @__PURE__ */ D("p", {
|
|
228
229
|
className: "cex-proj",
|
|
229
230
|
children: e.projectName
|
|
230
231
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ D("p", {
|
|
232
233
|
className: "cex-desc",
|
|
233
234
|
children: e.tags.map((e) => `#${e.name}`).join(" ")
|
|
234
235
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ O("div", {
|
|
236
237
|
className: "cex-foot row",
|
|
237
|
-
children: [/* @__PURE__ */
|
|
238
|
+
children: [/* @__PURE__ */ O("span", {
|
|
238
239
|
className: "cex-author",
|
|
239
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ D("span", {
|
|
240
241
|
className: "avatar",
|
|
241
242
|
"aria-hidden": "true",
|
|
242
|
-
children:
|
|
243
|
-
}), /* @__PURE__ */
|
|
243
|
+
children: pe(e.owner.displayName || e.owner.githubUsername)
|
|
244
|
+
}), /* @__PURE__ */ O("span", {
|
|
244
245
|
className: "cex-handle mono",
|
|
245
246
|
children: ["@", e.owner.githubUsername]
|
|
246
247
|
})]
|
|
247
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ D("span", {
|
|
248
249
|
className: "cex-date tnum",
|
|
249
|
-
children:
|
|
250
|
+
children: fe(e.sessionStart || e.sessionEnd || "")
|
|
250
251
|
})]
|
|
251
252
|
})
|
|
252
253
|
] });
|
|
253
|
-
return t ? /* @__PURE__ */
|
|
254
|
+
return t ? /* @__PURE__ */ D("a", {
|
|
254
255
|
href: t,
|
|
255
256
|
className: "card cex-tcard",
|
|
256
|
-
onClick: (t) =>
|
|
257
|
-
children:
|
|
258
|
-
}) : /* @__PURE__ */
|
|
257
|
+
onClick: (t) => _e(t, n, e),
|
|
258
|
+
children: r
|
|
259
|
+
}) : /* @__PURE__ */ D("button", {
|
|
259
260
|
type: "button",
|
|
260
261
|
className: "card cex-tcard",
|
|
261
262
|
onClick: () => n?.(e),
|
|
262
|
-
children:
|
|
263
|
+
children: r
|
|
263
264
|
});
|
|
264
265
|
}
|
|
265
|
-
function
|
|
266
|
-
let
|
|
267
|
-
/* @__PURE__ */
|
|
266
|
+
function be({ transcript: e, href: t, onOpen: n }) {
|
|
267
|
+
let r = /* @__PURE__ */ O(E, { children: [
|
|
268
|
+
/* @__PURE__ */ O("span", {
|
|
268
269
|
className: "cex-trow-model",
|
|
269
|
-
children: [/* @__PURE__ */
|
|
270
|
+
children: [/* @__PURE__ */ D(y, { harness: e.modelProvider }), /* @__PURE__ */ D("b", { children: e.modelName || e.modelProvider })]
|
|
270
271
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ D("span", {
|
|
272
273
|
className: "cex-trow-title",
|
|
273
|
-
children:
|
|
274
|
+
children: he(e.title || "untitled transcript")
|
|
274
275
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ O("span", {
|
|
276
277
|
className: "cex-trow-stats mono tnum",
|
|
277
278
|
children: [
|
|
278
|
-
e.durationMs != null && /* @__PURE__ */
|
|
279
|
-
e.turnCount != null && /* @__PURE__ */
|
|
280
|
-
e.toolCallCount != null && /* @__PURE__ */
|
|
279
|
+
e.durationMs != null && /* @__PURE__ */ D("span", { children: de(e.durationMs) }),
|
|
280
|
+
e.turnCount != null && /* @__PURE__ */ O("span", { children: [e.turnCount, " turns"] }),
|
|
281
|
+
e.toolCallCount != null && /* @__PURE__ */ O("span", { children: [e.toolCallCount, " tools"] })
|
|
281
282
|
]
|
|
282
283
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ D("span", {
|
|
284
285
|
className: "cex-trow-date mono tnum",
|
|
285
|
-
children:
|
|
286
|
+
children: fe(e.sessionStart || e.sessionEnd || "")
|
|
286
287
|
}),
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ D(i, { visibility: e.visibility })
|
|
288
289
|
] });
|
|
289
|
-
return t ? /* @__PURE__ */
|
|
290
|
+
return t ? /* @__PURE__ */ D("a", {
|
|
290
291
|
href: t,
|
|
291
292
|
className: "row cex-trow",
|
|
292
|
-
onClick: (t) =>
|
|
293
|
-
children:
|
|
294
|
-
}) : /* @__PURE__ */
|
|
293
|
+
onClick: (t) => _e(t, n, e),
|
|
294
|
+
children: r
|
|
295
|
+
}) : /* @__PURE__ */ D("button", {
|
|
295
296
|
type: "button",
|
|
296
297
|
className: "row cex-trow",
|
|
297
298
|
onClick: () => n?.(e),
|
|
298
|
-
children:
|
|
299
|
+
children: r
|
|
299
300
|
});
|
|
300
301
|
}
|
|
301
|
-
function
|
|
302
|
-
let r = /* @__PURE__ */ E
|
|
303
|
-
/* @__PURE__ */
|
|
302
|
+
function xe({ collective: e, href: t, onOpen: n }) {
|
|
303
|
+
let r = /* @__PURE__ */ O(E, { children: [
|
|
304
|
+
/* @__PURE__ */ O("div", {
|
|
304
305
|
className: "cex-cname",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ D("span", {
|
|
306
307
|
className: "avatar",
|
|
307
308
|
"aria-hidden": "true",
|
|
308
309
|
children: "C"
|
|
309
|
-
}), /* @__PURE__ */
|
|
310
|
+
}), /* @__PURE__ */ D("b", { children: e.name })]
|
|
310
311
|
}),
|
|
311
|
-
e.description && /* @__PURE__ */
|
|
312
|
+
e.description && /* @__PURE__ */ D("p", {
|
|
312
313
|
className: "cex-desc",
|
|
313
314
|
children: e.description
|
|
314
315
|
}),
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ O("div", {
|
|
316
317
|
className: "cex-cfoot mono tnum",
|
|
317
318
|
children: [
|
|
318
319
|
e.memberCount,
|
|
@@ -322,91 +323,91 @@ function be({ collective: e, href: t, onOpen: n }) {
|
|
|
322
323
|
]
|
|
323
324
|
})
|
|
324
325
|
] });
|
|
325
|
-
return t ? /* @__PURE__ */
|
|
326
|
+
return t ? /* @__PURE__ */ D("a", {
|
|
326
327
|
href: t,
|
|
327
328
|
className: "card cex-ccard",
|
|
328
|
-
onClick: (t) =>
|
|
329
|
+
onClick: (t) => _e(t, n, e),
|
|
329
330
|
children: r
|
|
330
|
-
}) : /* @__PURE__ */
|
|
331
|
+
}) : /* @__PURE__ */ D("button", {
|
|
331
332
|
type: "button",
|
|
332
333
|
className: "card cex-ccard",
|
|
333
334
|
onClick: () => n?.(e),
|
|
334
335
|
children: r
|
|
335
336
|
});
|
|
336
337
|
}
|
|
337
|
-
function
|
|
338
|
-
let
|
|
339
|
-
|
|
338
|
+
function Se({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript: r, onOpenProfile: a, onOpenCollective: s, transcriptHref: c, profileHref: l, collectiveHref: u }) {
|
|
339
|
+
let d = ve(e), p = d.transcripts.transcripts, [m, g] = T(""), [_, v] = T(""), [b, S] = T("recent"), [E, k] = T("all"), [A, j] = T(() => /* @__PURE__ */ new Set()), [M, N] = T("grid"), [P, I] = T(1), [L, R] = T(null), [z, V] = T("browse"), H = w(!0);
|
|
340
|
+
x(() => {
|
|
340
341
|
if (H.current) {
|
|
341
|
-
H.current = !1,
|
|
342
|
+
H.current = !1, v(m);
|
|
342
343
|
return;
|
|
343
344
|
}
|
|
344
|
-
let e = setTimeout(() =>
|
|
345
|
+
let e = setTimeout(() => v(m), 250);
|
|
345
346
|
return () => clearTimeout(e);
|
|
346
|
-
}, [H,
|
|
347
|
+
}, [H, m]), x(() => {
|
|
347
348
|
I(1);
|
|
348
349
|
}, [
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
_,
|
|
351
|
+
b,
|
|
352
|
+
E,
|
|
352
353
|
A
|
|
353
|
-
]),
|
|
354
|
-
|
|
355
|
-
query:
|
|
356
|
-
provider:
|
|
354
|
+
]), x(() => {
|
|
355
|
+
n?.({
|
|
356
|
+
query: _,
|
|
357
|
+
provider: E,
|
|
357
358
|
topics: [...A],
|
|
358
|
-
order:
|
|
359
|
-
page:
|
|
359
|
+
order: b,
|
|
360
|
+
page: P
|
|
360
361
|
});
|
|
361
362
|
}, [
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
363
|
+
b,
|
|
364
|
+
n,
|
|
365
|
+
P,
|
|
366
|
+
E,
|
|
367
|
+
_,
|
|
367
368
|
A
|
|
368
|
-
]),
|
|
369
|
-
|
|
370
|
-
}, [
|
|
371
|
-
let U =
|
|
369
|
+
]), x(() => {
|
|
370
|
+
d.transcripts.page && d.transcripts.page !== P && I(d.transcripts.page);
|
|
371
|
+
}, [P, d.transcripts.page]);
|
|
372
|
+
let U = p.find((e) => e.id === L) ?? p[0] ?? null, W = U?.owner ?? null, G = W ? p.filter((e) => e.owner.githubUsername === W.githubUsername) : [], ne = C(() => {
|
|
372
373
|
let e = /* @__PURE__ */ new Map();
|
|
373
|
-
for (let t of
|
|
374
|
+
for (let t of p) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
|
|
374
375
|
return [{
|
|
375
376
|
slug: "all",
|
|
376
|
-
count:
|
|
377
|
+
count: p.length
|
|
377
378
|
}, ...[...e.entries()].map(([e, t]) => ({
|
|
378
379
|
slug: e,
|
|
379
380
|
count: t
|
|
380
381
|
}))];
|
|
381
|
-
}, [
|
|
382
|
-
|
|
383
|
-
L && !
|
|
384
|
-
}, [L,
|
|
385
|
-
let
|
|
386
|
-
let e =
|
|
387
|
-
return e ?
|
|
382
|
+
}, [p]);
|
|
383
|
+
x(() => {
|
|
384
|
+
L && !p.some((e) => e.id === L) && (R(null), V("browse"));
|
|
385
|
+
}, [L, p]);
|
|
386
|
+
let K = C(() => {
|
|
387
|
+
let e = me(_);
|
|
388
|
+
return e ? d.collectives.filter((t) => [
|
|
388
389
|
t.name,
|
|
389
390
|
t.description,
|
|
390
391
|
t.linkedGithubOrg
|
|
391
392
|
].filter(Boolean).join(" ").toLowerCase().includes(e)) : null;
|
|
392
|
-
}, [
|
|
393
|
-
if (
|
|
394
|
-
|
|
393
|
+
}, [d.collectives, _]), q = p, ie = A.size, J = d.transcripts.total ?? p.length, Y = d.transcripts.page || P, X = d.transcripts.limit || p.length || 1, Z = (e) => {
|
|
394
|
+
if (r) {
|
|
395
|
+
r(e);
|
|
395
396
|
return;
|
|
396
397
|
}
|
|
397
|
-
|
|
398
|
+
R(e.id), V("detail");
|
|
398
399
|
}, oe = () => {
|
|
399
|
-
if (
|
|
400
|
-
|
|
400
|
+
if (a && W) {
|
|
401
|
+
a(W);
|
|
401
402
|
return;
|
|
402
403
|
}
|
|
403
|
-
U ? (
|
|
404
|
+
U ? (R(U.id), V("profile")) : p[0] && (R(p[0].id), V("profile"));
|
|
404
405
|
}, se = () => {
|
|
405
|
-
|
|
406
|
-
}, Q =
|
|
406
|
+
g(""), v(""), S("recent"), k("all"), j(/* @__PURE__ */ new Set()), I(1);
|
|
407
|
+
}, Q = C(() => W ? [...ge(G, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
|
|
407
408
|
project: e,
|
|
408
409
|
items: t
|
|
409
|
-
})) : [], [G, W]), $ =
|
|
410
|
+
})) : [], [G, W]), $ = C(() => {
|
|
410
411
|
let e = G.reduce((e, t) => e + (t.tokenCount || 0), 0);
|
|
411
412
|
return {
|
|
412
413
|
transcripts: G.length,
|
|
@@ -414,63 +415,63 @@ function xe({ data: t, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
414
415
|
tokens: e
|
|
415
416
|
};
|
|
416
417
|
}, [G, Q.length]);
|
|
417
|
-
return
|
|
418
|
-
className: `cex-root cex-detail ${
|
|
419
|
-
children: [/* @__PURE__ */
|
|
418
|
+
return z === "detail" && U ? /* @__PURE__ */ O("div", {
|
|
419
|
+
className: `cex-root cex-detail ${t}`.trim(),
|
|
420
|
+
children: [/* @__PURE__ */ O("div", {
|
|
420
421
|
className: "cex-detail-back",
|
|
421
|
-
children: [/* @__PURE__ */
|
|
422
|
+
children: [/* @__PURE__ */ O("button", {
|
|
422
423
|
type: "button",
|
|
423
424
|
className: "btn btn-secondary btn-sm",
|
|
424
425
|
onClick: () => V("browse"),
|
|
425
|
-
children: [/* @__PURE__ */
|
|
426
|
+
children: [/* @__PURE__ */ D(B, {
|
|
426
427
|
size: 14,
|
|
427
428
|
"aria-hidden": "true"
|
|
428
429
|
}), " back to explore"]
|
|
429
|
-
}), /* @__PURE__ */
|
|
430
|
+
}), /* @__PURE__ */ O("button", {
|
|
430
431
|
type: "button",
|
|
431
432
|
className: "btn btn-secondary btn-sm",
|
|
432
433
|
onClick: oe,
|
|
433
|
-
children: [/* @__PURE__ */
|
|
434
|
+
children: [/* @__PURE__ */ D(ae, {
|
|
434
435
|
size: 14,
|
|
435
436
|
"aria-hidden": "true"
|
|
436
437
|
}), " profile"]
|
|
437
438
|
})]
|
|
438
|
-
}), /* @__PURE__ */
|
|
439
|
+
}), /* @__PURE__ */ O("div", {
|
|
439
440
|
className: "window cex-viewer",
|
|
440
|
-
children: [/* @__PURE__ */
|
|
441
|
+
children: [/* @__PURE__ */ O("div", {
|
|
441
442
|
className: "win-head cex-viewer-head",
|
|
442
443
|
children: [
|
|
443
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ D("div", {
|
|
444
445
|
className: "cex-head-top",
|
|
445
|
-
children: /* @__PURE__ */
|
|
446
|
+
children: /* @__PURE__ */ O("div", {
|
|
446
447
|
className: "crumb",
|
|
447
448
|
children: [
|
|
448
449
|
"commons ",
|
|
449
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ D("span", {
|
|
450
451
|
"aria-hidden": "true",
|
|
451
452
|
children: "›"
|
|
452
453
|
}),
|
|
453
454
|
" explore ",
|
|
454
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ D("span", {
|
|
455
456
|
"aria-hidden": "true",
|
|
456
457
|
children: "›"
|
|
457
458
|
}),
|
|
458
459
|
" ",
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ D("span", {
|
|
460
461
|
className: "cur mono",
|
|
461
462
|
children: U.id
|
|
462
463
|
})
|
|
463
464
|
]
|
|
464
465
|
})
|
|
465
466
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ O("div", {
|
|
467
468
|
className: "cex-hero-title",
|
|
468
|
-
children: [/* @__PURE__ */
|
|
469
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
469
470
|
className: "win-title cex-vtitle",
|
|
470
|
-
children:
|
|
471
|
-
}), /* @__PURE__ */
|
|
471
|
+
children: he(U.title || "untitled transcript")
|
|
472
|
+
}), /* @__PURE__ */ D(i, { visibility: U.visibility })]
|
|
472
473
|
}),
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ O("p", {
|
|
474
475
|
className: "cex-vdesc",
|
|
475
476
|
children: [
|
|
476
477
|
U.projectName || "shared transcript",
|
|
@@ -478,20 +479,20 @@ function xe({ data: t, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
478
479
|
U.owner.displayName || U.owner.githubUsername
|
|
479
480
|
]
|
|
480
481
|
}),
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
+
/* @__PURE__ */ O("div", {
|
|
482
483
|
className: "cex-vmeta win-meta",
|
|
483
484
|
children: [
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ O("span", {
|
|
485
486
|
className: "metaitem",
|
|
486
|
-
children: [/* @__PURE__ */
|
|
487
|
+
children: [/* @__PURE__ */ D(y, {
|
|
487
488
|
harness: U.modelProvider,
|
|
488
489
|
accent: !0
|
|
489
|
-
}), /* @__PURE__ */
|
|
490
|
+
}), /* @__PURE__ */ D("span", { children: U.modelName || U.modelProvider })]
|
|
490
491
|
}),
|
|
491
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ O("span", {
|
|
492
493
|
className: "metaitem mono tnum",
|
|
493
494
|
children: [
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ D(B, {
|
|
495
496
|
size: 14,
|
|
496
497
|
"aria-hidden": "true"
|
|
497
498
|
}),
|
|
@@ -500,85 +501,85 @@ function xe({ data: t, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
500
501
|
" turns"
|
|
501
502
|
]
|
|
502
503
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ O("span", {
|
|
504
505
|
className: "metaitem mono tnum",
|
|
505
506
|
children: [
|
|
506
|
-
/* @__PURE__ */
|
|
507
|
+
/* @__PURE__ */ D("span", {
|
|
507
508
|
"aria-hidden": "true",
|
|
508
509
|
children: "#"
|
|
509
510
|
}),
|
|
510
511
|
" ",
|
|
511
|
-
|
|
512
|
+
ue(U.tokenCount || 0),
|
|
512
513
|
" tokens"
|
|
513
514
|
]
|
|
514
515
|
}),
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ O("span", {
|
|
516
517
|
className: "metaitem mono tnum",
|
|
517
518
|
children: [U.toolCallCount ?? 0, " tools"]
|
|
518
519
|
})
|
|
519
520
|
]
|
|
520
521
|
})
|
|
521
522
|
]
|
|
522
|
-
}), /* @__PURE__ */
|
|
523
|
+
}), /* @__PURE__ */ O("div", {
|
|
523
524
|
className: "cex-viewer-body",
|
|
524
|
-
children: [/* @__PURE__ */
|
|
525
|
+
children: [/* @__PURE__ */ O("div", {
|
|
525
526
|
className: "cex-stream",
|
|
526
527
|
role: "tabpanel",
|
|
527
528
|
tabIndex: -1,
|
|
528
|
-
children: [/* @__PURE__ */
|
|
529
|
+
children: [/* @__PURE__ */ O("div", {
|
|
529
530
|
className: "phase",
|
|
530
|
-
children: [/* @__PURE__ */
|
|
531
|
+
children: [/* @__PURE__ */ D("span", {
|
|
531
532
|
className: "lbl",
|
|
532
533
|
children: "about"
|
|
533
|
-
}), /* @__PURE__ */
|
|
534
|
+
}), /* @__PURE__ */ D("span", {
|
|
534
535
|
className: "meta mono tnum",
|
|
535
|
-
children:
|
|
536
|
+
children: fe(U.sessionStart || U.sessionEnd || "")
|
|
536
537
|
})]
|
|
537
|
-
}), /* @__PURE__ */
|
|
538
|
+
}), /* @__PURE__ */ O("div", {
|
|
538
539
|
className: "turn",
|
|
539
|
-
children: [/* @__PURE__ */
|
|
540
|
+
children: [/* @__PURE__ */ D("div", {
|
|
540
541
|
className: "head",
|
|
541
|
-
children: /* @__PURE__ */
|
|
542
|
+
children: /* @__PURE__ */ D("span", {
|
|
542
543
|
className: "name",
|
|
543
544
|
children: "session summary"
|
|
544
545
|
})
|
|
545
|
-
}), /* @__PURE__ */
|
|
546
|
+
}), /* @__PURE__ */ O("div", {
|
|
546
547
|
className: "body",
|
|
547
|
-
children: [/* @__PURE__ */
|
|
548
|
+
children: [/* @__PURE__ */ D("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__ */ D("div", {
|
|
548
549
|
className: "cex-tags",
|
|
549
|
-
children: U.tags.map((e) => /* @__PURE__ */
|
|
550
|
+
children: U.tags.map((e) => /* @__PURE__ */ O("span", {
|
|
550
551
|
className: "chip",
|
|
551
552
|
children: ["#", e.name]
|
|
552
553
|
}, e.id))
|
|
553
554
|
})]
|
|
554
555
|
})]
|
|
555
556
|
})]
|
|
556
|
-
}), /* @__PURE__ */
|
|
557
|
+
}), /* @__PURE__ */ O("aside", {
|
|
557
558
|
className: "cex-psec",
|
|
558
559
|
"aria-label": "owner snapshot",
|
|
559
560
|
children: [
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ D("h3", {
|
|
561
562
|
className: "cex-psec-title",
|
|
562
563
|
children: "owner snapshot"
|
|
563
564
|
}),
|
|
564
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ O("div", {
|
|
565
566
|
className: "cex-phero",
|
|
566
|
-
children: [/* @__PURE__ */
|
|
567
|
+
children: [/* @__PURE__ */ D("div", {
|
|
567
568
|
className: "cex-phero-av",
|
|
568
569
|
"aria-hidden": "true",
|
|
569
|
-
children:
|
|
570
|
-
}), /* @__PURE__ */
|
|
570
|
+
children: pe(U.owner.displayName || U.owner.githubUsername)
|
|
571
|
+
}), /* @__PURE__ */ O("div", {
|
|
571
572
|
className: "cex-phero-id",
|
|
572
|
-
children: [/* @__PURE__ */
|
|
573
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
573
574
|
className: "cex-h2 cex-pname",
|
|
574
575
|
children: U.owner.displayName || U.owner.githubUsername
|
|
575
|
-
}), /* @__PURE__ */
|
|
576
|
+
}), /* @__PURE__ */ O("span", {
|
|
576
577
|
className: "cex-phandle mono",
|
|
577
578
|
children: ["@", U.owner.githubUsername]
|
|
578
579
|
})]
|
|
579
580
|
})]
|
|
580
581
|
}),
|
|
581
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ D(h, { tiles: [
|
|
582
583
|
{
|
|
583
584
|
key: "transcripts",
|
|
584
585
|
label: "transcripts",
|
|
@@ -592,69 +593,69 @@ function xe({ data: t, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
592
593
|
{
|
|
593
594
|
key: "tokens",
|
|
594
595
|
label: "tokens",
|
|
595
|
-
value:
|
|
596
|
+
value: ue($.tokens)
|
|
596
597
|
}
|
|
597
598
|
] })
|
|
598
599
|
]
|
|
599
600
|
})]
|
|
600
601
|
})]
|
|
601
602
|
})]
|
|
602
|
-
}) :
|
|
603
|
-
className: `cex-root cex-profile ${
|
|
603
|
+
}) : z === "profile" && W ? /* @__PURE__ */ O("div", {
|
|
604
|
+
className: `cex-root cex-profile ${t}`.trim(),
|
|
604
605
|
children: [
|
|
605
|
-
/* @__PURE__ */
|
|
606
|
+
/* @__PURE__ */ O("div", {
|
|
606
607
|
className: "cex-detail-back",
|
|
607
|
-
children: [/* @__PURE__ */
|
|
608
|
+
children: [/* @__PURE__ */ O("button", {
|
|
608
609
|
type: "button",
|
|
609
610
|
className: "btn btn-secondary btn-sm",
|
|
610
611
|
onClick: () => V("detail"),
|
|
611
|
-
children: [/* @__PURE__ */
|
|
612
|
+
children: [/* @__PURE__ */ D(B, {
|
|
612
613
|
size: 14,
|
|
613
614
|
"aria-hidden": "true"
|
|
614
615
|
}), " back to transcript"]
|
|
615
|
-
}), /* @__PURE__ */
|
|
616
|
+
}), /* @__PURE__ */ O("button", {
|
|
616
617
|
type: "button",
|
|
617
618
|
className: "btn btn-secondary btn-sm",
|
|
618
619
|
onClick: () => V("browse"),
|
|
619
|
-
children: [/* @__PURE__ */
|
|
620
|
+
children: [/* @__PURE__ */ D(F, {
|
|
620
621
|
size: 14,
|
|
621
622
|
"aria-hidden": "true"
|
|
622
623
|
}), " back to explore"]
|
|
623
624
|
})]
|
|
624
625
|
}),
|
|
625
|
-
/* @__PURE__ */
|
|
626
|
+
/* @__PURE__ */ O("div", {
|
|
626
627
|
className: "crumb cex-profile-crumb",
|
|
627
628
|
children: [
|
|
628
629
|
"commons ",
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ D("span", {
|
|
630
631
|
"aria-hidden": "true",
|
|
631
632
|
children: "›"
|
|
632
633
|
}),
|
|
633
634
|
" ",
|
|
634
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ O("span", {
|
|
635
636
|
className: "cur mono",
|
|
636
637
|
children: ["@", W.githubUsername]
|
|
637
638
|
})
|
|
638
639
|
]
|
|
639
640
|
}),
|
|
640
|
-
/* @__PURE__ */
|
|
641
|
+
/* @__PURE__ */ O("header", {
|
|
641
642
|
className: "cex-phero",
|
|
642
|
-
children: [/* @__PURE__ */
|
|
643
|
+
children: [/* @__PURE__ */ D("div", {
|
|
643
644
|
className: "cex-phero-av",
|
|
644
645
|
"aria-hidden": "true",
|
|
645
|
-
children:
|
|
646
|
-
}), /* @__PURE__ */
|
|
646
|
+
children: pe(W.displayName || W.githubUsername)
|
|
647
|
+
}), /* @__PURE__ */ O("div", {
|
|
647
648
|
className: "cex-phero-id",
|
|
648
|
-
children: [/* @__PURE__ */
|
|
649
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
649
650
|
className: "cex-h2 cex-pname",
|
|
650
651
|
children: W.displayName || W.githubUsername
|
|
651
|
-
}), /* @__PURE__ */
|
|
652
|
+
}), /* @__PURE__ */ O("span", {
|
|
652
653
|
className: "cex-phandle mono",
|
|
653
654
|
children: ["@", W.githubUsername]
|
|
654
655
|
})]
|
|
655
656
|
})]
|
|
656
657
|
}),
|
|
657
|
-
/* @__PURE__ */
|
|
658
|
+
/* @__PURE__ */ D(h, { tiles: [
|
|
658
659
|
{
|
|
659
660
|
key: "transcripts",
|
|
660
661
|
label: "transcripts",
|
|
@@ -668,41 +669,41 @@ function xe({ data: t, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
668
669
|
{
|
|
669
670
|
key: "tokens",
|
|
670
671
|
label: "tokens",
|
|
671
|
-
value:
|
|
672
|
+
value: ue($.tokens)
|
|
672
673
|
}
|
|
673
674
|
] }),
|
|
674
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ O("section", {
|
|
675
676
|
className: "cex-psec",
|
|
676
677
|
"aria-label": "published library",
|
|
677
|
-
children: [/* @__PURE__ */
|
|
678
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
678
679
|
className: "cex-psec-title",
|
|
679
680
|
children: "published library"
|
|
680
|
-
}), Q.length === 0 ? /* @__PURE__ */
|
|
681
|
+
}), Q.length === 0 ? /* @__PURE__ */ O("div", {
|
|
681
682
|
className: "empty cex-empty",
|
|
682
683
|
children: [
|
|
683
|
-
/* @__PURE__ */
|
|
684
|
+
/* @__PURE__ */ D("div", {
|
|
684
685
|
className: "ring",
|
|
685
|
-
children: /* @__PURE__ */
|
|
686
|
+
children: /* @__PURE__ */ D(F, {
|
|
686
687
|
size: 20,
|
|
687
688
|
"aria-hidden": "true"
|
|
688
689
|
})
|
|
689
690
|
}),
|
|
690
|
-
/* @__PURE__ */
|
|
691
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ D("h3", { children: "no transcripts yet" }),
|
|
692
|
+
/* @__PURE__ */ D("p", { children: "this profile has not shared any transcripts in the commons." })
|
|
692
693
|
]
|
|
693
|
-
}) : /* @__PURE__ */
|
|
694
|
+
}) : /* @__PURE__ */ D("div", {
|
|
694
695
|
className: "cex-projects",
|
|
695
|
-
children: Q.map(({ project: e, items: t }) => /* @__PURE__ */
|
|
696
|
+
children: Q.map(({ project: e, items: t }) => /* @__PURE__ */ O("div", {
|
|
696
697
|
className: "cex-project",
|
|
697
|
-
children: [/* @__PURE__ */
|
|
698
|
+
children: [/* @__PURE__ */ O("div", {
|
|
698
699
|
className: "cex-project-head",
|
|
699
|
-
children: [/* @__PURE__ */
|
|
700
|
+
children: [/* @__PURE__ */ O("span", {
|
|
700
701
|
className: "cex-project-name",
|
|
701
|
-
children: [/* @__PURE__ */
|
|
702
|
+
children: [/* @__PURE__ */ D("span", {
|
|
702
703
|
"aria-hidden": "true",
|
|
703
704
|
children: "▣"
|
|
704
|
-
}), /* @__PURE__ */
|
|
705
|
-
}), /* @__PURE__ */
|
|
705
|
+
}), /* @__PURE__ */ D("b", { children: e })]
|
|
706
|
+
}), /* @__PURE__ */ O("span", {
|
|
706
707
|
className: "cex-project-cnt mono tnum",
|
|
707
708
|
children: [
|
|
708
709
|
t.length,
|
|
@@ -710,61 +711,61 @@ function xe({ data: t, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
710
711
|
t.length === 1 ? "" : "s"
|
|
711
712
|
]
|
|
712
713
|
})]
|
|
713
|
-
}), /* @__PURE__ */
|
|
714
|
+
}), /* @__PURE__ */ D("div", {
|
|
714
715
|
className: "cex-lib-rows",
|
|
715
|
-
children: t.map((e) => /* @__PURE__ */
|
|
716
|
+
children: t.map((e) => /* @__PURE__ */ D(be, {
|
|
716
717
|
transcript: e,
|
|
717
|
-
href:
|
|
718
|
-
onOpen:
|
|
718
|
+
href: c?.(e),
|
|
719
|
+
onOpen: Z
|
|
719
720
|
}, e.id))
|
|
720
721
|
})]
|
|
721
722
|
}, e))
|
|
722
723
|
})]
|
|
723
724
|
})
|
|
724
725
|
]
|
|
725
|
-
}) : /* @__PURE__ */
|
|
726
|
-
className: `cex-root ${
|
|
727
|
-
children: [/* @__PURE__ */
|
|
726
|
+
}) : /* @__PURE__ */ O("div", {
|
|
727
|
+
className: `cex-root ${t}`.trim(),
|
|
728
|
+
children: [/* @__PURE__ */ O("header", {
|
|
728
729
|
className: "cex-explore-head",
|
|
729
730
|
children: [
|
|
730
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ D("h2", {
|
|
731
732
|
className: "cex-h2",
|
|
732
733
|
children: "explore transcripts"
|
|
733
734
|
}),
|
|
734
|
-
/* @__PURE__ */
|
|
735
|
+
/* @__PURE__ */ D("p", {
|
|
735
736
|
className: "cex-deck",
|
|
736
737
|
children: "search redacted ai agent transcripts shared by the community."
|
|
737
738
|
}),
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ O("div", {
|
|
739
740
|
className: "input-ico cex-searchbar",
|
|
740
|
-
children: [/* @__PURE__ */
|
|
741
|
+
children: [/* @__PURE__ */ D("input", {
|
|
741
742
|
className: "input",
|
|
742
743
|
type: "text",
|
|
743
|
-
value:
|
|
744
|
-
onChange: (e) =>
|
|
744
|
+
value: m,
|
|
745
|
+
onChange: (e) => g(e.target.value),
|
|
745
746
|
placeholder: "search transcripts, collectives, projects, models...",
|
|
746
747
|
"aria-label": "search transcripts, collectives, projects, models"
|
|
747
|
-
}),
|
|
748
|
+
}), m && /* @__PURE__ */ D("button", {
|
|
748
749
|
type: "button",
|
|
749
750
|
className: "cex-clear",
|
|
750
751
|
"aria-label": "clear search",
|
|
751
|
-
onClick: () =>
|
|
752
|
-
children: /* @__PURE__ */
|
|
752
|
+
onClick: () => g(""),
|
|
753
|
+
children: /* @__PURE__ */ D(re, {
|
|
753
754
|
size: 14,
|
|
754
755
|
"aria-hidden": "true"
|
|
755
756
|
})
|
|
756
757
|
})]
|
|
757
758
|
})
|
|
758
759
|
]
|
|
759
|
-
}), /* @__PURE__ */
|
|
760
|
+
}), /* @__PURE__ */ O("div", {
|
|
760
761
|
className: "cex-explore-body",
|
|
761
|
-
children: [/* @__PURE__ */
|
|
762
|
-
order:
|
|
763
|
-
onOrder: (e) =>
|
|
764
|
-
providers:
|
|
765
|
-
activeProviders:
|
|
762
|
+
children: [/* @__PURE__ */ D(f, {
|
|
763
|
+
order: b,
|
|
764
|
+
onOrder: (e) => S(e),
|
|
765
|
+
providers: ne,
|
|
766
|
+
activeProviders: E === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([E]),
|
|
766
767
|
onProvider: (e) => k((t) => t === e ? "all" : e),
|
|
767
|
-
topics:
|
|
768
|
+
topics: d.popularTags.map((e) => ({
|
|
768
769
|
tag: e.name,
|
|
769
770
|
count: e.usageCount
|
|
770
771
|
})),
|
|
@@ -777,127 +778,127 @@ function xe({ data: t, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
777
778
|
},
|
|
778
779
|
onClear: se,
|
|
779
780
|
className: "cex-rail"
|
|
780
|
-
}), /* @__PURE__ */
|
|
781
|
+
}), /* @__PURE__ */ O("div", {
|
|
781
782
|
className: "cex-results",
|
|
782
783
|
children: [
|
|
783
|
-
|
|
784
|
+
K && /* @__PURE__ */ O("section", {
|
|
784
785
|
className: "cex-coll-results",
|
|
785
786
|
"aria-label": "matching collectives",
|
|
786
|
-
children: [/* @__PURE__ */
|
|
787
|
+
children: [/* @__PURE__ */ D("div", {
|
|
787
788
|
className: "cex-results-head",
|
|
788
|
-
children: /* @__PURE__ */
|
|
789
|
+
children: /* @__PURE__ */ O("span", {
|
|
789
790
|
className: "cex-eyebrow",
|
|
790
|
-
children: ["collectives ", /* @__PURE__ */
|
|
791
|
+
children: ["collectives ", /* @__PURE__ */ D("span", {
|
|
791
792
|
className: "cex-count tnum",
|
|
792
|
-
children:
|
|
793
|
+
children: K.length
|
|
793
794
|
})]
|
|
794
795
|
})
|
|
795
|
-
}),
|
|
796
|
+
}), K.length === 0 ? /* @__PURE__ */ D("p", {
|
|
796
797
|
className: "cex-nomatch-inline mono",
|
|
797
798
|
children: "no matching collectives."
|
|
798
|
-
}) : /* @__PURE__ */
|
|
799
|
+
}) : /* @__PURE__ */ D("div", {
|
|
799
800
|
className: "cex-coll-grid",
|
|
800
|
-
children:
|
|
801
|
+
children: K.map((e) => /* @__PURE__ */ D(xe, {
|
|
801
802
|
collective: e,
|
|
802
|
-
href:
|
|
803
|
+
href: u?.(e),
|
|
803
804
|
onOpen: s
|
|
804
805
|
}, e.id))
|
|
805
806
|
})]
|
|
806
807
|
}),
|
|
807
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ O("div", {
|
|
808
809
|
className: "cex-results-head",
|
|
809
|
-
children: [/* @__PURE__ */
|
|
810
|
+
children: [/* @__PURE__ */ O("span", {
|
|
810
811
|
className: "cex-eyebrow",
|
|
811
|
-
children: ["transcripts ", /* @__PURE__ */
|
|
812
|
+
children: ["transcripts ", /* @__PURE__ */ D("span", {
|
|
812
813
|
className: "cex-count tnum",
|
|
813
814
|
role: "status",
|
|
814
815
|
"aria-live": "polite",
|
|
815
|
-
children:
|
|
816
|
+
children: J
|
|
816
817
|
})]
|
|
817
|
-
}), /* @__PURE__ */
|
|
818
|
+
}), /* @__PURE__ */ O("div", {
|
|
818
819
|
className: "bs-seg cex-viewseg",
|
|
819
820
|
role: "group",
|
|
820
821
|
"aria-label": "view mode",
|
|
821
822
|
children: [
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
+
/* @__PURE__ */ O("button", {
|
|
823
824
|
type: "button",
|
|
824
825
|
className: "bs-seg-opt",
|
|
825
826
|
"aria-pressed": M === "grid",
|
|
826
827
|
"aria-label": "grid view",
|
|
827
|
-
onClick: () =>
|
|
828
|
-
children: [/* @__PURE__ */
|
|
828
|
+
onClick: () => N("grid"),
|
|
829
|
+
children: [/* @__PURE__ */ D(ee, { size: 14 }), " grid"]
|
|
829
830
|
}),
|
|
830
|
-
/* @__PURE__ */
|
|
831
|
+
/* @__PURE__ */ O("button", {
|
|
831
832
|
type: "button",
|
|
832
833
|
className: "bs-seg-opt",
|
|
833
834
|
"aria-pressed": M === "list",
|
|
834
835
|
"aria-label": "list view",
|
|
835
|
-
onClick: () =>
|
|
836
|
-
children: [/* @__PURE__ */
|
|
836
|
+
onClick: () => N("list"),
|
|
837
|
+
children: [/* @__PURE__ */ D(te, { size: 14 }), " list"]
|
|
837
838
|
}),
|
|
838
|
-
/* @__PURE__ */
|
|
839
|
+
/* @__PURE__ */ O("button", {
|
|
839
840
|
type: "button",
|
|
840
841
|
className: "bs-seg-opt",
|
|
841
|
-
"aria-pressed":
|
|
842
|
+
"aria-pressed": z === "profile",
|
|
842
843
|
"aria-label": "profile view",
|
|
843
844
|
onClick: oe,
|
|
844
|
-
disabled: !
|
|
845
|
-
children: [/* @__PURE__ */
|
|
845
|
+
disabled: !q.length,
|
|
846
|
+
children: [/* @__PURE__ */ D(ae, { size: 14 }), " profile"]
|
|
846
847
|
})
|
|
847
848
|
]
|
|
848
849
|
})]
|
|
849
850
|
}),
|
|
850
|
-
|
|
851
|
+
q.length === 0 ? _.trim() || E !== "all" || ie ? /* @__PURE__ */ O("div", {
|
|
851
852
|
className: "empty cex-empty",
|
|
852
853
|
children: [
|
|
853
|
-
/* @__PURE__ */
|
|
854
|
+
/* @__PURE__ */ D("div", {
|
|
854
855
|
className: "ring",
|
|
855
|
-
children: /* @__PURE__ */
|
|
856
|
+
children: /* @__PURE__ */ D(re, {
|
|
856
857
|
size: 20,
|
|
857
858
|
"aria-hidden": "true"
|
|
858
859
|
})
|
|
859
860
|
}),
|
|
860
|
-
/* @__PURE__ */
|
|
861
|
-
/* @__PURE__ */
|
|
862
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ D("h3", { children: "no matches" }),
|
|
862
|
+
/* @__PURE__ */ D("p", { children: "no transcripts match your search and filters. broaden the query or clear the filters." }),
|
|
863
|
+
/* @__PURE__ */ D("button", {
|
|
863
864
|
type: "button",
|
|
864
865
|
className: "btn btn-secondary btn-sm",
|
|
865
866
|
onClick: se,
|
|
866
867
|
children: "clear filters"
|
|
867
868
|
})
|
|
868
869
|
]
|
|
869
|
-
}) : /* @__PURE__ */
|
|
870
|
+
}) : /* @__PURE__ */ O("div", {
|
|
870
871
|
className: "empty cex-empty",
|
|
871
872
|
children: [
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ D("div", {
|
|
873
874
|
className: "ring",
|
|
874
|
-
children: /* @__PURE__ */
|
|
875
|
+
children: /* @__PURE__ */ D(F, {
|
|
875
876
|
size: 20,
|
|
876
877
|
"aria-hidden": "true"
|
|
877
878
|
})
|
|
878
879
|
}),
|
|
879
|
-
/* @__PURE__ */
|
|
880
|
-
/* @__PURE__ */
|
|
880
|
+
/* @__PURE__ */ D("h3", { children: "the commons is empty" }),
|
|
881
|
+
/* @__PURE__ */ D("p", { children: "no transcripts have been shared yet. once contributors publish, they show up here." })
|
|
881
882
|
]
|
|
882
|
-
}) : M === "grid" ? /* @__PURE__ */
|
|
883
|
+
}) : M === "grid" ? /* @__PURE__ */ D("div", {
|
|
883
884
|
className: "cex-grid",
|
|
884
|
-
children:
|
|
885
|
+
children: q.map((e) => /* @__PURE__ */ D(ye, {
|
|
885
886
|
transcript: e,
|
|
886
|
-
href:
|
|
887
|
-
onOpen:
|
|
887
|
+
href: c?.(e),
|
|
888
|
+
onOpen: Z
|
|
888
889
|
}, e.id))
|
|
889
|
-
}) : /* @__PURE__ */
|
|
890
|
+
}) : /* @__PURE__ */ D("div", {
|
|
890
891
|
className: "cex-list",
|
|
891
|
-
children:
|
|
892
|
+
children: q.map((e) => /* @__PURE__ */ D(be, {
|
|
892
893
|
transcript: e,
|
|
893
|
-
href:
|
|
894
|
-
onOpen:
|
|
894
|
+
href: c?.(e),
|
|
895
|
+
onOpen: Z
|
|
895
896
|
}, e.id))
|
|
896
897
|
}),
|
|
897
|
-
|
|
898
|
-
page:
|
|
899
|
-
totalItems:
|
|
900
|
-
pageSize:
|
|
898
|
+
J > X && /* @__PURE__ */ D(o, {
|
|
899
|
+
page: Y,
|
|
900
|
+
totalItems: J,
|
|
901
|
+
pageSize: X,
|
|
901
902
|
onChange: I,
|
|
902
903
|
className: "cex-pgn"
|
|
903
904
|
})
|
|
@@ -908,87 +909,51 @@ function xe({ data: t, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
908
909
|
}
|
|
909
910
|
//#endregion
|
|
910
911
|
//#region src/ui/commons/providers.js
|
|
911
|
-
var Se = {
|
|
912
|
-
"claude-code": "Claude Code",
|
|
913
|
-
"gemini-cli": "Gemini",
|
|
914
|
-
opencode: "OpenCode",
|
|
915
|
-
codex: "Codex"
|
|
916
|
-
};
|
|
917
912
|
function Ce(e) {
|
|
918
913
|
return String(e || "unknown").replace(/[-_]+/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
919
914
|
}
|
|
920
915
|
function we(e) {
|
|
921
|
-
return
|
|
916
|
+
return v(e);
|
|
922
917
|
}
|
|
923
918
|
//#endregion
|
|
924
919
|
//#region src/mockups/inuse/CommonsManage.jsx
|
|
925
|
-
function Te({
|
|
926
|
-
let
|
|
927
|
-
"claude-code": "g-claude",
|
|
928
|
-
"gemini-cli": "g-gemini",
|
|
929
|
-
opencode: "g-opencode",
|
|
930
|
-
codex: "g-codex"
|
|
931
|
-
}[e], n = {
|
|
932
|
-
"claude-code": "#b-claude",
|
|
933
|
-
"gemini-cli": "#b-gemini",
|
|
934
|
-
opencode: "#b-opencode"
|
|
935
|
-
}[e];
|
|
936
|
-
return n ? /* @__PURE__ */ T("span", {
|
|
937
|
-
className: t,
|
|
938
|
-
children: /* @__PURE__ */ T("svg", {
|
|
939
|
-
className: "brand",
|
|
940
|
-
width: "14",
|
|
941
|
-
height: "14",
|
|
942
|
-
viewBox: "0 0 24 24",
|
|
943
|
-
"aria-hidden": "true",
|
|
944
|
-
children: /* @__PURE__ */ T("use", { href: n })
|
|
945
|
-
})
|
|
946
|
-
}) : /* @__PURE__ */ T("span", {
|
|
947
|
-
className: t,
|
|
948
|
-
children: /* @__PURE__ */ T(J, {
|
|
949
|
-
className: "lucide",
|
|
950
|
-
size: 14,
|
|
951
|
-
"aria-hidden": "true"
|
|
952
|
-
})
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
|
-
function Ee({ cmd: e, note: t }) {
|
|
956
|
-
let [n, r] = C(!1);
|
|
920
|
+
function Te({ cmd: e, note: t }) {
|
|
921
|
+
let [n, r] = T(!1);
|
|
957
922
|
function i() {
|
|
958
923
|
try {
|
|
959
924
|
navigator.clipboard?.writeText(e);
|
|
960
925
|
} catch {}
|
|
961
926
|
r(!0), window.setTimeout(() => r(!1), 2e3);
|
|
962
927
|
}
|
|
963
|
-
return /* @__PURE__ */
|
|
928
|
+
return /* @__PURE__ */ O("div", {
|
|
964
929
|
className: "cmg-cmd",
|
|
965
930
|
children: [
|
|
966
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ O("code", {
|
|
967
932
|
className: "cmg-cmd-text mono",
|
|
968
|
-
children: [/* @__PURE__ */
|
|
933
|
+
children: [/* @__PURE__ */ D("span", {
|
|
969
934
|
className: "cmg-cmd-prompt",
|
|
970
935
|
"aria-hidden": "true",
|
|
971
936
|
children: "$ "
|
|
972
937
|
}), e]
|
|
973
938
|
}),
|
|
974
|
-
/* @__PURE__ */
|
|
939
|
+
/* @__PURE__ */ O("button", {
|
|
975
940
|
type: "button",
|
|
976
941
|
className: "btn btn-sm btn-secondary cmg-cmd-copy",
|
|
977
942
|
onClick: i,
|
|
978
943
|
"aria-label": n ? "copied" : "copy command",
|
|
979
|
-
children: [
|
|
944
|
+
children: [D(n ? j : I, {
|
|
980
945
|
size: 14,
|
|
981
946
|
"aria-hidden": "true"
|
|
982
947
|
}), n ? "copied" : "copy"]
|
|
983
948
|
}),
|
|
984
|
-
t ? /* @__PURE__ */
|
|
949
|
+
t ? /* @__PURE__ */ D("span", {
|
|
985
950
|
className: "cmg-cmd-note mono",
|
|
986
951
|
children: t
|
|
987
952
|
}) : null
|
|
988
953
|
]
|
|
989
954
|
});
|
|
990
955
|
}
|
|
991
|
-
var
|
|
956
|
+
var Ee = [
|
|
992
957
|
{
|
|
993
958
|
id: "a1",
|
|
994
959
|
provider: "claude-code",
|
|
@@ -1025,7 +990,7 @@ var De = [
|
|
|
1025
990
|
turns: 128,
|
|
1026
991
|
project: "platform"
|
|
1027
992
|
}
|
|
1028
|
-
],
|
|
993
|
+
], De = [
|
|
1029
994
|
{
|
|
1030
995
|
n: 1,
|
|
1031
996
|
title: "install the cli",
|
|
@@ -1048,10 +1013,10 @@ var De = [
|
|
|
1048
1013
|
cmd: "peasant village push --dry-run --visibility public"
|
|
1049
1014
|
}
|
|
1050
1015
|
];
|
|
1051
|
-
function
|
|
1016
|
+
function Oe({ v: e, names: t }) {
|
|
1052
1017
|
let n = {
|
|
1053
1018
|
public: {
|
|
1054
|
-
Icon:
|
|
1019
|
+
Icon: R,
|
|
1055
1020
|
label: "visible to everyone",
|
|
1056
1021
|
cls: ""
|
|
1057
1022
|
},
|
|
@@ -1061,121 +1026,121 @@ function ke({ v: e, names: t }) {
|
|
|
1061
1026
|
cls: "cmg-eye-shared"
|
|
1062
1027
|
},
|
|
1063
1028
|
private: {
|
|
1064
|
-
Icon:
|
|
1029
|
+
Icon: z,
|
|
1065
1030
|
label: "only visible to you",
|
|
1066
1031
|
cls: "cmg-eye-private"
|
|
1067
1032
|
}
|
|
1068
1033
|
}, { Icon: r, label: i, cls: a } = n[e] || n.private;
|
|
1069
|
-
return /* @__PURE__ */
|
|
1034
|
+
return /* @__PURE__ */ O("span", {
|
|
1070
1035
|
className: "cmg-eye " + a,
|
|
1071
1036
|
title: i,
|
|
1072
|
-
children: [/* @__PURE__ */
|
|
1037
|
+
children: [/* @__PURE__ */ D(r, {
|
|
1073
1038
|
size: 14,
|
|
1074
1039
|
"aria-hidden": "true"
|
|
1075
|
-
}), /* @__PURE__ */
|
|
1040
|
+
}), /* @__PURE__ */ D("span", {
|
|
1076
1041
|
className: "cmg-sr",
|
|
1077
1042
|
children: i
|
|
1078
1043
|
})]
|
|
1079
1044
|
});
|
|
1080
1045
|
}
|
|
1081
|
-
function
|
|
1082
|
-
let [e, t] =
|
|
1083
|
-
return /* @__PURE__ */
|
|
1046
|
+
function ke() {
|
|
1047
|
+
let [e, t] = T(!0), [n, r] = T(!1);
|
|
1048
|
+
return /* @__PURE__ */ O("div", {
|
|
1084
1049
|
className: "cmg-root",
|
|
1085
|
-
children: [/* @__PURE__ */
|
|
1050
|
+
children: [/* @__PURE__ */ O("div", {
|
|
1086
1051
|
className: "cmg-page",
|
|
1087
1052
|
children: [
|
|
1088
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ O("div", {
|
|
1089
1054
|
className: "crumb cmg-crumb",
|
|
1090
1055
|
children: [
|
|
1091
1056
|
"village ",
|
|
1092
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ D(N, {
|
|
1093
1058
|
size: 13,
|
|
1094
1059
|
"aria-hidden": "true"
|
|
1095
1060
|
}),
|
|
1096
1061
|
" ",
|
|
1097
|
-
/* @__PURE__ */
|
|
1062
|
+
/* @__PURE__ */ D("span", {
|
|
1098
1063
|
className: "cur",
|
|
1099
1064
|
children: "publish"
|
|
1100
1065
|
})
|
|
1101
1066
|
]
|
|
1102
1067
|
}),
|
|
1103
|
-
/* @__PURE__ */
|
|
1068
|
+
/* @__PURE__ */ D("header", {
|
|
1104
1069
|
className: "cmg-head",
|
|
1105
|
-
children: /* @__PURE__ */
|
|
1070
|
+
children: /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h2", {
|
|
1106
1071
|
className: "cmg-title",
|
|
1107
1072
|
children: "publishing dashboard"
|
|
1108
|
-
}), /* @__PURE__ */
|
|
1073
|
+
}), /* @__PURE__ */ D("p", {
|
|
1109
1074
|
className: "cmg-deck",
|
|
1110
1075
|
children: "push transcripts from the peasant cli to the village."
|
|
1111
1076
|
})] })
|
|
1112
1077
|
}),
|
|
1113
|
-
e && /* @__PURE__ */
|
|
1078
|
+
e && /* @__PURE__ */ O("section", {
|
|
1114
1079
|
className: "cmg-gs card",
|
|
1115
1080
|
"aria-labelledby": "cmg-gs-h",
|
|
1116
|
-
children: [/* @__PURE__ */
|
|
1081
|
+
children: [/* @__PURE__ */ O("div", {
|
|
1117
1082
|
className: "cmg-gs-head",
|
|
1118
|
-
children: [/* @__PURE__ */
|
|
1083
|
+
children: [/* @__PURE__ */ O("span", {
|
|
1119
1084
|
className: "cmg-gs-h-l",
|
|
1120
|
-
children: [/* @__PURE__ */
|
|
1085
|
+
children: [/* @__PURE__ */ D(Terminal, {
|
|
1121
1086
|
size: 16,
|
|
1122
1087
|
"aria-hidden": "true",
|
|
1123
1088
|
className: "cmg-gs-ico"
|
|
1124
|
-
}), /* @__PURE__ */
|
|
1089
|
+
}), /* @__PURE__ */ D("h3", {
|
|
1125
1090
|
id: "cmg-gs-h",
|
|
1126
1091
|
className: "cmg-sub",
|
|
1127
1092
|
children: "getting started"
|
|
1128
1093
|
})]
|
|
1129
|
-
}), /* @__PURE__ */
|
|
1094
|
+
}), /* @__PURE__ */ D("button", {
|
|
1130
1095
|
type: "button",
|
|
1131
1096
|
className: "btn btn-sm btn-icon btn-ghost",
|
|
1132
1097
|
onClick: () => t(!1),
|
|
1133
1098
|
"aria-label": "dismiss getting started",
|
|
1134
|
-
children: /* @__PURE__ */
|
|
1099
|
+
children: /* @__PURE__ */ D(Z, {
|
|
1135
1100
|
size: 14,
|
|
1136
1101
|
"aria-hidden": "true"
|
|
1137
1102
|
})
|
|
1138
1103
|
})]
|
|
1139
|
-
}), /* @__PURE__ */
|
|
1104
|
+
}), /* @__PURE__ */ O("div", {
|
|
1140
1105
|
className: "cmg-gs-body",
|
|
1141
|
-
children: [/* @__PURE__ */
|
|
1106
|
+
children: [/* @__PURE__ */ O("div", {
|
|
1142
1107
|
className: "cmg-step",
|
|
1143
|
-
children: [/* @__PURE__ */
|
|
1108
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1144
1109
|
className: "cmg-step-n tnum",
|
|
1145
1110
|
"aria-hidden": "true",
|
|
1146
1111
|
children: "1"
|
|
1147
|
-
}), /* @__PURE__ */
|
|
1112
|
+
}), /* @__PURE__ */ O("div", {
|
|
1148
1113
|
className: "cmg-step-main",
|
|
1149
1114
|
children: [
|
|
1150
|
-
/* @__PURE__ */
|
|
1115
|
+
/* @__PURE__ */ D("div", {
|
|
1151
1116
|
className: "cmg-step-title",
|
|
1152
1117
|
children: "run the setup wizard"
|
|
1153
1118
|
}),
|
|
1154
|
-
/* @__PURE__ */
|
|
1119
|
+
/* @__PURE__ */ D("p", {
|
|
1155
1120
|
className: "cmg-step-desc",
|
|
1156
1121
|
children: "connects github, discovers agent transcripts, configures providers (Claude Code / OpenCode), sets your redaction level."
|
|
1157
1122
|
}),
|
|
1158
|
-
/* @__PURE__ */
|
|
1123
|
+
/* @__PURE__ */ D(Te, { cmd: "peasant kickstart" })
|
|
1159
1124
|
]
|
|
1160
1125
|
})]
|
|
1161
|
-
}), /* @__PURE__ */
|
|
1126
|
+
}), /* @__PURE__ */ O("div", {
|
|
1162
1127
|
className: "cmg-step",
|
|
1163
|
-
children: [/* @__PURE__ */
|
|
1128
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1164
1129
|
className: "cmg-step-n tnum",
|
|
1165
1130
|
"aria-hidden": "true",
|
|
1166
1131
|
children: "2"
|
|
1167
|
-
}), /* @__PURE__ */
|
|
1132
|
+
}), /* @__PURE__ */ O("div", {
|
|
1168
1133
|
className: "cmg-step-main",
|
|
1169
1134
|
children: [
|
|
1170
|
-
/* @__PURE__ */
|
|
1135
|
+
/* @__PURE__ */ D("div", {
|
|
1171
1136
|
className: "cmg-step-title",
|
|
1172
1137
|
children: "push transcripts"
|
|
1173
1138
|
}),
|
|
1174
|
-
/* @__PURE__ */
|
|
1139
|
+
/* @__PURE__ */ D("p", {
|
|
1175
1140
|
className: "cmg-step-desc",
|
|
1176
1141
|
children: "auto-redaction runs before upload. add --dry-run to preview, or --visibility public to override."
|
|
1177
1142
|
}),
|
|
1178
|
-
/* @__PURE__ */
|
|
1143
|
+
/* @__PURE__ */ D(Te, {
|
|
1179
1144
|
cmd: "peasant village push",
|
|
1180
1145
|
note: "--dry-run preview · --visibility public override"
|
|
1181
1146
|
})
|
|
@@ -1184,48 +1149,48 @@ function Ae() {
|
|
|
1184
1149
|
})]
|
|
1185
1150
|
})]
|
|
1186
1151
|
}),
|
|
1187
|
-
/* @__PURE__ */
|
|
1152
|
+
/* @__PURE__ */ O("section", {
|
|
1188
1153
|
className: "cmg-recent card",
|
|
1189
1154
|
"aria-labelledby": "cmg-recent-h",
|
|
1190
|
-
children: [/* @__PURE__ */
|
|
1155
|
+
children: [/* @__PURE__ */ O("div", {
|
|
1191
1156
|
className: "cmg-recent-head",
|
|
1192
|
-
children: [/* @__PURE__ */
|
|
1157
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
1193
1158
|
id: "cmg-recent-h",
|
|
1194
1159
|
className: "cmg-sub",
|
|
1195
1160
|
children: "recent publishes"
|
|
1196
|
-
}), /* @__PURE__ */
|
|
1161
|
+
}), /* @__PURE__ */ O("button", {
|
|
1197
1162
|
type: "button",
|
|
1198
1163
|
className: "btn btn-sm btn-secondary",
|
|
1199
1164
|
onClick: () => r(!0),
|
|
1200
|
-
children: [/* @__PURE__ */
|
|
1165
|
+
children: [/* @__PURE__ */ D(J, {
|
|
1201
1166
|
size: 14,
|
|
1202
1167
|
"aria-hidden": "true"
|
|
1203
1168
|
}), " import"]
|
|
1204
1169
|
})]
|
|
1205
|
-
}),
|
|
1170
|
+
}), Ee.length === 0 ? /* @__PURE__ */ D("div", {
|
|
1206
1171
|
className: "cmg-recent-empty mono",
|
|
1207
1172
|
children: "no transcripts published yet."
|
|
1208
|
-
}) : /* @__PURE__ */
|
|
1173
|
+
}) : /* @__PURE__ */ D("ul", {
|
|
1209
1174
|
className: "cmg-pub-list",
|
|
1210
|
-
children:
|
|
1175
|
+
children: Ee.map((e) => /* @__PURE__ */ O("li", {
|
|
1211
1176
|
className: "cmg-pub-row",
|
|
1212
1177
|
children: [
|
|
1213
|
-
/* @__PURE__ */
|
|
1178
|
+
/* @__PURE__ */ D("span", {
|
|
1214
1179
|
className: "cmg-pub-prov",
|
|
1215
|
-
children: /* @__PURE__ */
|
|
1180
|
+
children: /* @__PURE__ */ D(ProviderMark, { id: e.provider })
|
|
1216
1181
|
}),
|
|
1217
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ D("span", {
|
|
1218
1183
|
className: "cmg-pub-title",
|
|
1219
1184
|
children: e.title
|
|
1220
1185
|
}),
|
|
1221
|
-
/* @__PURE__ */
|
|
1186
|
+
/* @__PURE__ */ D("span", {
|
|
1222
1187
|
className: "cmg-pub-meta mono",
|
|
1223
1188
|
children: e.project
|
|
1224
1189
|
}),
|
|
1225
|
-
/* @__PURE__ */
|
|
1190
|
+
/* @__PURE__ */ O("span", {
|
|
1226
1191
|
className: "cmg-pub-meta mono tnum",
|
|
1227
1192
|
children: [
|
|
1228
|
-
/* @__PURE__ */
|
|
1193
|
+
/* @__PURE__ */ D(U, {
|
|
1229
1194
|
size: 13,
|
|
1230
1195
|
"aria-hidden": "true"
|
|
1231
1196
|
}),
|
|
@@ -1233,8 +1198,8 @@ function Ae() {
|
|
|
1233
1198
|
e.turns
|
|
1234
1199
|
]
|
|
1235
1200
|
}),
|
|
1236
|
-
/* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1201
|
+
/* @__PURE__ */ D(Oe, { v: e.visibility }),
|
|
1202
|
+
/* @__PURE__ */ D("span", {
|
|
1238
1203
|
className: "cmg-pub-date mono tnum",
|
|
1239
1204
|
children: e.date
|
|
1240
1205
|
})
|
|
@@ -1243,11 +1208,11 @@ function Ae() {
|
|
|
1243
1208
|
})]
|
|
1244
1209
|
})
|
|
1245
1210
|
]
|
|
1246
|
-
}), n && /* @__PURE__ */
|
|
1211
|
+
}), n && /* @__PURE__ */ D("div", {
|
|
1247
1212
|
className: "cmg-scrim",
|
|
1248
1213
|
role: "presentation",
|
|
1249
1214
|
onClick: () => r(!1),
|
|
1250
|
-
children: /* @__PURE__ */
|
|
1215
|
+
children: /* @__PURE__ */ O("div", {
|
|
1251
1216
|
className: "cmg-dialog",
|
|
1252
1217
|
role: "dialog",
|
|
1253
1218
|
"aria-modal": "true",
|
|
@@ -1255,42 +1220,42 @@ function Ae() {
|
|
|
1255
1220
|
onClick: (e) => e.stopPropagation(),
|
|
1256
1221
|
onKeyDown: (e) => e.key === "Escape" && r(!1),
|
|
1257
1222
|
children: [
|
|
1258
|
-
/* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ O("div", {
|
|
1259
1224
|
className: "cmg-dlg-head",
|
|
1260
|
-
children: [/* @__PURE__ */
|
|
1225
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
1261
1226
|
id: "cmg-import-h",
|
|
1262
1227
|
className: "cmg-sub",
|
|
1263
1228
|
children: "how to import transcripts"
|
|
1264
|
-
}), /* @__PURE__ */
|
|
1229
|
+
}), /* @__PURE__ */ D("button", {
|
|
1265
1230
|
type: "button",
|
|
1266
1231
|
className: "btn btn-sm btn-icon btn-ghost",
|
|
1267
1232
|
onClick: () => r(!1),
|
|
1268
1233
|
"aria-label": "close dialog",
|
|
1269
|
-
children: /* @__PURE__ */
|
|
1234
|
+
children: /* @__PURE__ */ D(Z, {
|
|
1270
1235
|
size: 14,
|
|
1271
1236
|
"aria-hidden": "true"
|
|
1272
1237
|
})
|
|
1273
1238
|
})]
|
|
1274
1239
|
}),
|
|
1275
|
-
/* @__PURE__ */
|
|
1240
|
+
/* @__PURE__ */ O("div", {
|
|
1276
1241
|
className: "cmg-dlg-body",
|
|
1277
|
-
children: [/* @__PURE__ */
|
|
1242
|
+
children: [/* @__PURE__ */ D("p", {
|
|
1278
1243
|
className: "cmg-dlg-intro mono",
|
|
1279
1244
|
children: "transcripts are imported through the peasant cli, not the web ui. follow these steps from a terminal:"
|
|
1280
|
-
}), /* @__PURE__ */
|
|
1245
|
+
}), /* @__PURE__ */ D("ol", {
|
|
1281
1246
|
className: "cmg-import-steps",
|
|
1282
|
-
children:
|
|
1247
|
+
children: De.map((e) => /* @__PURE__ */ O("li", {
|
|
1283
1248
|
className: "cmg-step",
|
|
1284
|
-
children: [/* @__PURE__ */
|
|
1249
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1285
1250
|
className: "cmg-step-n tnum",
|
|
1286
1251
|
"aria-hidden": "true",
|
|
1287
1252
|
children: e.n
|
|
1288
|
-
}), /* @__PURE__ */
|
|
1253
|
+
}), /* @__PURE__ */ O("div", {
|
|
1289
1254
|
className: "cmg-step-main",
|
|
1290
|
-
children: [/* @__PURE__ */
|
|
1255
|
+
children: [/* @__PURE__ */ D("div", {
|
|
1291
1256
|
className: "cmg-step-title",
|
|
1292
1257
|
children: e.title
|
|
1293
|
-
}), /* @__PURE__ */
|
|
1258
|
+
}), /* @__PURE__ */ D(Te, {
|
|
1294
1259
|
cmd: e.cmd,
|
|
1295
1260
|
note: e.note
|
|
1296
1261
|
})]
|
|
@@ -1298,9 +1263,9 @@ function Ae() {
|
|
|
1298
1263
|
}, e.n))
|
|
1299
1264
|
})]
|
|
1300
1265
|
}),
|
|
1301
|
-
/* @__PURE__ */
|
|
1266
|
+
/* @__PURE__ */ D("div", {
|
|
1302
1267
|
className: "cmg-dlg-foot",
|
|
1303
|
-
children: /* @__PURE__ */
|
|
1268
|
+
children: /* @__PURE__ */ D("button", {
|
|
1304
1269
|
type: "button",
|
|
1305
1270
|
className: "btn btn-sm btn-secondary",
|
|
1306
1271
|
onClick: () => r(!1),
|
|
@@ -1312,7 +1277,7 @@ function Ae() {
|
|
|
1312
1277
|
})]
|
|
1313
1278
|
});
|
|
1314
1279
|
}
|
|
1315
|
-
var
|
|
1280
|
+
var Ae = [
|
|
1316
1281
|
{
|
|
1317
1282
|
value: "open",
|
|
1318
1283
|
short: "Open",
|
|
@@ -1331,7 +1296,7 @@ var je = [
|
|
|
1331
1296
|
label: "curated",
|
|
1332
1297
|
rationale: "the owner must approve each share before it appears."
|
|
1333
1298
|
}
|
|
1334
|
-
],
|
|
1299
|
+
], je = [
|
|
1335
1300
|
{
|
|
1336
1301
|
value: "members_only",
|
|
1337
1302
|
short: "Members only",
|
|
@@ -1350,11 +1315,11 @@ var je = [
|
|
|
1350
1315
|
label: "public",
|
|
1351
1316
|
rationale: "anyone at all can browse the dataset."
|
|
1352
1317
|
}
|
|
1353
|
-
],
|
|
1318
|
+
], Me = [
|
|
1354
1319
|
"@anthropic-labs",
|
|
1355
1320
|
"@data-collective",
|
|
1356
1321
|
"@openai-research"
|
|
1357
|
-
],
|
|
1322
|
+
], Ne = [
|
|
1358
1323
|
{
|
|
1359
1324
|
id: "c1",
|
|
1360
1325
|
name: "AI Research Team",
|
|
@@ -1386,72 +1351,72 @@ var je = [
|
|
|
1386
1351
|
since: "Joined today"
|
|
1387
1352
|
}
|
|
1388
1353
|
];
|
|
1389
|
-
function
|
|
1390
|
-
let t =
|
|
1391
|
-
return /* @__PURE__ */
|
|
1354
|
+
function Pe({ mode: e }) {
|
|
1355
|
+
let t = Ae.find((t) => t.value === e);
|
|
1356
|
+
return /* @__PURE__ */ D("span", {
|
|
1392
1357
|
className: "chip " + (e === "open" ? "chip-ok" : e === "curated" ? "chip-warn" : ""),
|
|
1393
1358
|
children: t ? t.short.toLowerCase() : e
|
|
1394
1359
|
});
|
|
1395
1360
|
}
|
|
1396
|
-
function
|
|
1397
|
-
let { collectives:
|
|
1398
|
-
return /* @__PURE__ */
|
|
1361
|
+
function Fe({ data: t = {}, actions: n = {} } = {}) {
|
|
1362
|
+
let { collectives: r = Ne, linkedOrgs: i = Me, title: a = "collectives", deck: o = "groups that govern shared data together.", crumb: s = "collectives", createLabel: c = "new collective", createBusy: l = !1 } = t, { onCreateCollective: u, onOpenCollective: d } = n, [f, p] = T(!1), [m, h] = T(""), [g, _] = T(""), [v, y] = T("open"), [b, x] = T("members_only"), [C, w] = T(""), k = S();
|
|
1363
|
+
return /* @__PURE__ */ D("div", {
|
|
1399
1364
|
className: "cmg-root",
|
|
1400
|
-
children: /* @__PURE__ */
|
|
1365
|
+
children: /* @__PURE__ */ O("div", {
|
|
1401
1366
|
className: "cmg-page",
|
|
1402
1367
|
children: [
|
|
1403
|
-
/* @__PURE__ */
|
|
1368
|
+
/* @__PURE__ */ O("div", {
|
|
1404
1369
|
className: "crumb cmg-crumb",
|
|
1405
1370
|
children: [
|
|
1406
1371
|
"village ",
|
|
1407
|
-
/* @__PURE__ */
|
|
1372
|
+
/* @__PURE__ */ D(N, {
|
|
1408
1373
|
size: 13,
|
|
1409
1374
|
"aria-hidden": "true"
|
|
1410
1375
|
}),
|
|
1411
1376
|
" ",
|
|
1412
|
-
/* @__PURE__ */
|
|
1377
|
+
/* @__PURE__ */ D("span", {
|
|
1413
1378
|
className: "cur",
|
|
1414
1379
|
children: s
|
|
1415
1380
|
})
|
|
1416
1381
|
]
|
|
1417
1382
|
}),
|
|
1418
|
-
/* @__PURE__ */
|
|
1383
|
+
/* @__PURE__ */ O("header", {
|
|
1419
1384
|
className: "cmg-head",
|
|
1420
|
-
children: [/* @__PURE__ */
|
|
1385
|
+
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h2", {
|
|
1421
1386
|
className: "cmg-title",
|
|
1422
|
-
children: i
|
|
1423
|
-
}), /* @__PURE__ */ T("p", {
|
|
1424
|
-
className: "cmg-deck",
|
|
1425
1387
|
children: a
|
|
1426
|
-
})
|
|
1388
|
+
}), /* @__PURE__ */ D("p", {
|
|
1389
|
+
className: "cmg-deck",
|
|
1390
|
+
children: o
|
|
1391
|
+
})] }), /* @__PURE__ */ O("button", {
|
|
1427
1392
|
type: "button",
|
|
1428
1393
|
className: "btn btn-sm " + (f ? "btn-secondary" : "btn-primary"),
|
|
1429
1394
|
"aria-expanded": f,
|
|
1430
1395
|
onClick: () => p((e) => !e),
|
|
1431
|
-
children: [
|
|
1396
|
+
children: [D(f ? Z : ne, {
|
|
1432
1397
|
size: 14,
|
|
1433
1398
|
"aria-hidden": "true"
|
|
1434
1399
|
}), f ? "cancel" : c]
|
|
1435
1400
|
})]
|
|
1436
1401
|
}),
|
|
1437
|
-
f && /* @__PURE__ */
|
|
1402
|
+
f && /* @__PURE__ */ O("section", {
|
|
1438
1403
|
className: "cmg-form card",
|
|
1439
1404
|
"aria-labelledby": "cmg-form-h",
|
|
1440
1405
|
children: [
|
|
1441
|
-
/* @__PURE__ */
|
|
1406
|
+
/* @__PURE__ */ D("h3", {
|
|
1442
1407
|
id: "cmg-form-h",
|
|
1443
1408
|
className: "cmg-sub",
|
|
1444
1409
|
children: "create a collective"
|
|
1445
1410
|
}),
|
|
1446
|
-
/* @__PURE__ */
|
|
1411
|
+
/* @__PURE__ */ O("div", {
|
|
1447
1412
|
className: "cmg-form-grid",
|
|
1448
1413
|
children: [
|
|
1449
|
-
/* @__PURE__ */
|
|
1414
|
+
/* @__PURE__ */ O("label", {
|
|
1450
1415
|
className: "cmg-field",
|
|
1451
|
-
children: [/* @__PURE__ */
|
|
1416
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1452
1417
|
className: "label",
|
|
1453
1418
|
children: "name"
|
|
1454
|
-
}), /* @__PURE__ */
|
|
1419
|
+
}), /* @__PURE__ */ D("input", {
|
|
1455
1420
|
className: "input",
|
|
1456
1421
|
type: "text",
|
|
1457
1422
|
placeholder: "AI Research Collective",
|
|
@@ -1459,12 +1424,12 @@ function Ie({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1459
1424
|
onChange: (e) => h(e.target.value)
|
|
1460
1425
|
})]
|
|
1461
1426
|
}),
|
|
1462
|
-
/* @__PURE__ */
|
|
1427
|
+
/* @__PURE__ */ O("label", {
|
|
1463
1428
|
className: "cmg-field cmg-field-wide",
|
|
1464
|
-
children: [/* @__PURE__ */
|
|
1429
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1465
1430
|
className: "label",
|
|
1466
1431
|
children: "purpose"
|
|
1467
|
-
}), /* @__PURE__ */
|
|
1432
|
+
}), /* @__PURE__ */ D("textarea", {
|
|
1468
1433
|
className: "input",
|
|
1469
1434
|
rows: 2,
|
|
1470
1435
|
placeholder: "What does this collective do?",
|
|
@@ -1472,47 +1437,47 @@ function Ie({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1472
1437
|
onChange: (e) => _(e.target.value)
|
|
1473
1438
|
})]
|
|
1474
1439
|
}),
|
|
1475
|
-
/* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ D("div", {
|
|
1476
1441
|
className: "cmg-field",
|
|
1477
|
-
children: /* @__PURE__ */
|
|
1442
|
+
children: /* @__PURE__ */ D(e, {
|
|
1478
1443
|
variant: "select",
|
|
1479
1444
|
label: "acceptance mode",
|
|
1480
1445
|
name: "acceptance-mode",
|
|
1481
1446
|
value: v,
|
|
1482
1447
|
onChange: y,
|
|
1483
|
-
options:
|
|
1448
|
+
options: Ae
|
|
1484
1449
|
})
|
|
1485
1450
|
}),
|
|
1486
|
-
/* @__PURE__ */
|
|
1451
|
+
/* @__PURE__ */ D("div", {
|
|
1487
1452
|
className: "cmg-field",
|
|
1488
|
-
children: /* @__PURE__ */
|
|
1453
|
+
children: /* @__PURE__ */ D(e, {
|
|
1489
1454
|
variant: "select",
|
|
1490
1455
|
label: "data access policy",
|
|
1491
1456
|
name: "data-access",
|
|
1492
|
-
value:
|
|
1493
|
-
onChange:
|
|
1494
|
-
options:
|
|
1457
|
+
value: b,
|
|
1458
|
+
onChange: x,
|
|
1459
|
+
options: je
|
|
1495
1460
|
})
|
|
1496
1461
|
}),
|
|
1497
|
-
/* @__PURE__ */
|
|
1462
|
+
/* @__PURE__ */ O("label", {
|
|
1498
1463
|
className: "cmg-field",
|
|
1499
|
-
children: [/* @__PURE__ */
|
|
1464
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1500
1465
|
className: "label",
|
|
1501
1466
|
children: "link to github org (optional)"
|
|
1502
|
-
}), /* @__PURE__ */
|
|
1467
|
+
}), /* @__PURE__ */ O("div", {
|
|
1503
1468
|
className: "select-wrap",
|
|
1504
|
-
children: [/* @__PURE__ */
|
|
1469
|
+
children: [/* @__PURE__ */ O("select", {
|
|
1505
1470
|
className: "select",
|
|
1506
|
-
value:
|
|
1507
|
-
onChange: (e) =>
|
|
1508
|
-
children: [/* @__PURE__ */
|
|
1471
|
+
value: C,
|
|
1472
|
+
onChange: (e) => w(e.target.value),
|
|
1473
|
+
children: [/* @__PURE__ */ D("option", {
|
|
1509
1474
|
value: "",
|
|
1510
1475
|
children: "Not linked"
|
|
1511
|
-
}),
|
|
1476
|
+
}), i.map((e) => /* @__PURE__ */ D("option", {
|
|
1512
1477
|
value: e,
|
|
1513
1478
|
children: e
|
|
1514
1479
|
}, e))]
|
|
1515
|
-
}), /* @__PURE__ */
|
|
1480
|
+
}), /* @__PURE__ */ D(M, {
|
|
1516
1481
|
className: "lucide",
|
|
1517
1482
|
"aria-hidden": "true"
|
|
1518
1483
|
})]
|
|
@@ -1520,9 +1485,9 @@ function Ie({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1520
1485
|
})
|
|
1521
1486
|
]
|
|
1522
1487
|
}),
|
|
1523
|
-
/* @__PURE__ */
|
|
1488
|
+
/* @__PURE__ */ O("div", {
|
|
1524
1489
|
className: "cmg-form-foot",
|
|
1525
|
-
children: [/* @__PURE__ */
|
|
1490
|
+
children: [/* @__PURE__ */ D("button", {
|
|
1526
1491
|
type: "button",
|
|
1527
1492
|
className: "btn btn-sm btn-primary",
|
|
1528
1493
|
disabled: !m.trim() || l,
|
|
@@ -1531,69 +1496,69 @@ function Ie({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1531
1496
|
name: m,
|
|
1532
1497
|
purpose: g,
|
|
1533
1498
|
mode: v,
|
|
1534
|
-
access:
|
|
1535
|
-
org:
|
|
1499
|
+
access: b,
|
|
1500
|
+
org: C
|
|
1536
1501
|
}),
|
|
1537
1502
|
children: l ? "creating…" : "create collective"
|
|
1538
|
-
}), /* @__PURE__ */
|
|
1503
|
+
}), /* @__PURE__ */ D("span", {
|
|
1539
1504
|
id: k,
|
|
1540
1505
|
className: "cmg-form-hint mono",
|
|
1541
|
-
children:
|
|
1506
|
+
children: Ae.find((e) => e.value === v)?.rationale
|
|
1542
1507
|
})]
|
|
1543
1508
|
})
|
|
1544
1509
|
]
|
|
1545
1510
|
}),
|
|
1546
|
-
/* @__PURE__ */
|
|
1511
|
+
/* @__PURE__ */ D("ul", {
|
|
1547
1512
|
className: "cmg-grid",
|
|
1548
|
-
children:
|
|
1513
|
+
children: r.map((e) => /* @__PURE__ */ D("li", { children: /* @__PURE__ */ O("button", {
|
|
1549
1514
|
type: "button",
|
|
1550
1515
|
className: "card cmg-col-card",
|
|
1551
1516
|
onClick: () => d?.(e.id),
|
|
1552
1517
|
children: [
|
|
1553
|
-
/* @__PURE__ */
|
|
1518
|
+
/* @__PURE__ */ D("span", {
|
|
1554
1519
|
className: "cmg-col-ico",
|
|
1555
1520
|
"aria-hidden": "true",
|
|
1556
|
-
children: /* @__PURE__ */
|
|
1521
|
+
children: /* @__PURE__ */ D(X, { size: 18 })
|
|
1557
1522
|
}),
|
|
1558
|
-
/* @__PURE__ */
|
|
1523
|
+
/* @__PURE__ */ O("span", {
|
|
1559
1524
|
className: "cmg-col-main",
|
|
1560
1525
|
children: [
|
|
1561
|
-
/* @__PURE__ */
|
|
1526
|
+
/* @__PURE__ */ O("span", {
|
|
1562
1527
|
className: "cmg-col-head",
|
|
1563
|
-
children: [/* @__PURE__ */
|
|
1528
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1564
1529
|
className: "cmg-col-name",
|
|
1565
1530
|
children: e.name
|
|
1566
|
-
}), /* @__PURE__ */
|
|
1531
|
+
}), /* @__PURE__ */ D(Pe, { mode: e.mode })]
|
|
1567
1532
|
}),
|
|
1568
|
-
/* @__PURE__ */
|
|
1533
|
+
/* @__PURE__ */ D("span", {
|
|
1569
1534
|
className: "cmg-col-desc",
|
|
1570
1535
|
children: e.desc
|
|
1571
1536
|
}),
|
|
1572
|
-
/* @__PURE__ */
|
|
1537
|
+
/* @__PURE__ */ O("span", {
|
|
1573
1538
|
className: "cmg-col-foot mono",
|
|
1574
1539
|
children: [
|
|
1575
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ D("span", {
|
|
1576
1541
|
className: "cmg-col-role",
|
|
1577
1542
|
children: e.role
|
|
1578
1543
|
}),
|
|
1579
|
-
e.since ? /* @__PURE__ */ E
|
|
1544
|
+
e.since ? /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("span", {
|
|
1580
1545
|
className: "cmg-dot",
|
|
1581
1546
|
"aria-hidden": "true",
|
|
1582
1547
|
children: "·"
|
|
1583
|
-
}), /* @__PURE__ */
|
|
1584
|
-
e.members == null ? null : /* @__PURE__ */ E
|
|
1548
|
+
}), /* @__PURE__ */ D("span", { children: e.since })] }) : null,
|
|
1549
|
+
e.members == null ? null : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("span", {
|
|
1585
1550
|
className: "cmg-dot",
|
|
1586
1551
|
"aria-hidden": "true",
|
|
1587
1552
|
children: "·"
|
|
1588
|
-
}), /* @__PURE__ */
|
|
1553
|
+
}), /* @__PURE__ */ O("span", {
|
|
1589
1554
|
className: "tnum",
|
|
1590
1555
|
children: [e.members, " members"]
|
|
1591
1556
|
})] }),
|
|
1592
|
-
e.transcripts == null ? null : /* @__PURE__ */ E
|
|
1557
|
+
e.transcripts == null ? null : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("span", {
|
|
1593
1558
|
className: "cmg-dot",
|
|
1594
1559
|
"aria-hidden": "true",
|
|
1595
1560
|
children: "·"
|
|
1596
|
-
}), /* @__PURE__ */
|
|
1561
|
+
}), /* @__PURE__ */ O("span", {
|
|
1597
1562
|
className: "tnum",
|
|
1598
1563
|
children: [e.transcripts, " transcripts"]
|
|
1599
1564
|
})] })
|
|
@@ -1601,7 +1566,7 @@ function Ie({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1601
1566
|
})
|
|
1602
1567
|
]
|
|
1603
1568
|
}),
|
|
1604
|
-
/* @__PURE__ */
|
|
1569
|
+
/* @__PURE__ */ D(N, {
|
|
1605
1570
|
size: 16,
|
|
1606
1571
|
"aria-hidden": "true",
|
|
1607
1572
|
className: "cmg-col-chev"
|
|
@@ -1613,12 +1578,12 @@ function Ie({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1613
1578
|
})
|
|
1614
1579
|
});
|
|
1615
1580
|
}
|
|
1616
|
-
var
|
|
1581
|
+
var Ie = [
|
|
1617
1582
|
"owner",
|
|
1618
1583
|
"member",
|
|
1619
1584
|
"contributor",
|
|
1620
1585
|
"guest"
|
|
1621
|
-
],
|
|
1586
|
+
], Le = [
|
|
1622
1587
|
{
|
|
1623
1588
|
id: "claude-code",
|
|
1624
1589
|
pct: 58
|
|
@@ -1635,7 +1600,7 @@ var Le = [
|
|
|
1635
1600
|
id: "codex",
|
|
1636
1601
|
pct: 6
|
|
1637
1602
|
}
|
|
1638
|
-
],
|
|
1603
|
+
], Re = [
|
|
1639
1604
|
{
|
|
1640
1605
|
id: "p1",
|
|
1641
1606
|
provider: "claude-code",
|
|
@@ -1654,7 +1619,7 @@ var Le = [
|
|
|
1654
1619
|
title: "Multi-agent debugging session",
|
|
1655
1620
|
by: "@bob-ai"
|
|
1656
1621
|
}
|
|
1657
|
-
],
|
|
1622
|
+
], ze = [
|
|
1658
1623
|
{
|
|
1659
1624
|
handle: "@alice-dev",
|
|
1660
1625
|
name: "Alice Developer",
|
|
@@ -1679,7 +1644,7 @@ var Le = [
|
|
|
1679
1644
|
role: "contributor",
|
|
1680
1645
|
n: 9
|
|
1681
1646
|
}
|
|
1682
|
-
],
|
|
1647
|
+
], Be = [
|
|
1683
1648
|
{
|
|
1684
1649
|
id: "r1",
|
|
1685
1650
|
cat: "CREDENTIAL",
|
|
@@ -1720,113 +1685,113 @@ var Le = [
|
|
|
1720
1685
|
summary: "local path detected"
|
|
1721
1686
|
}
|
|
1722
1687
|
];
|
|
1723
|
-
function
|
|
1724
|
-
let [t, n] =
|
|
1725
|
-
return /* @__PURE__ */
|
|
1688
|
+
function Ve({ item: e }) {
|
|
1689
|
+
let [t, n] = T(!1), r = e.confidence < 70;
|
|
1690
|
+
return /* @__PURE__ */ O("div", {
|
|
1726
1691
|
className: "cmg-redact" + (t ? " cmg-redact-exposed" : "") + (r && !t ? " cmg-redact-low" : ""),
|
|
1727
1692
|
children: [
|
|
1728
|
-
/* @__PURE__ */
|
|
1693
|
+
/* @__PURE__ */ O("div", {
|
|
1729
1694
|
className: "cmg-redact-head",
|
|
1730
|
-
children: [/* @__PURE__ */
|
|
1695
|
+
children: [/* @__PURE__ */ O("span", {
|
|
1731
1696
|
className: "cmg-redact-badges",
|
|
1732
1697
|
children: [
|
|
1733
|
-
/* @__PURE__ */
|
|
1698
|
+
/* @__PURE__ */ D("span", {
|
|
1734
1699
|
className: "chip " + e.catTone,
|
|
1735
1700
|
title: e.tip,
|
|
1736
1701
|
children: e.catLabel.toLowerCase()
|
|
1737
1702
|
}),
|
|
1738
|
-
/* @__PURE__ */
|
|
1703
|
+
/* @__PURE__ */ O("span", {
|
|
1739
1704
|
className: "chip " + (r ? "chip-warn" : ""),
|
|
1740
1705
|
children: [
|
|
1741
|
-
r ? /* @__PURE__ */
|
|
1706
|
+
r ? /* @__PURE__ */ D(k, {
|
|
1742
1707
|
size: 13,
|
|
1743
1708
|
"aria-hidden": "true"
|
|
1744
1709
|
}) : null,
|
|
1745
|
-
/* @__PURE__ */
|
|
1710
|
+
/* @__PURE__ */ O("span", {
|
|
1746
1711
|
className: "tnum",
|
|
1747
1712
|
children: [e.confidence, "%"]
|
|
1748
1713
|
}),
|
|
1749
1714
|
" confidence"
|
|
1750
1715
|
]
|
|
1751
1716
|
}),
|
|
1752
|
-
t ? /* @__PURE__ */
|
|
1717
|
+
t ? /* @__PURE__ */ D("span", {
|
|
1753
1718
|
className: "chip chip-err",
|
|
1754
1719
|
children: "un-redacted"
|
|
1755
1720
|
}) : null
|
|
1756
1721
|
]
|
|
1757
|
-
}), /* @__PURE__ */
|
|
1722
|
+
}), /* @__PURE__ */ D("span", {
|
|
1758
1723
|
className: "cmg-redact-file mono",
|
|
1759
1724
|
children: e.file
|
|
1760
1725
|
})]
|
|
1761
1726
|
}),
|
|
1762
|
-
/* @__PURE__ */
|
|
1727
|
+
/* @__PURE__ */ D("p", {
|
|
1763
1728
|
className: "cmg-redact-summary mono",
|
|
1764
1729
|
children: e.summary
|
|
1765
1730
|
}),
|
|
1766
|
-
/* @__PURE__ */
|
|
1731
|
+
/* @__PURE__ */ O("div", {
|
|
1767
1732
|
className: "diff cmg-redact-diff",
|
|
1768
1733
|
children: [
|
|
1769
|
-
/* @__PURE__ */
|
|
1734
|
+
/* @__PURE__ */ O("div", {
|
|
1770
1735
|
className: "dl ctx",
|
|
1771
1736
|
children: [
|
|
1772
|
-
/* @__PURE__ */
|
|
1773
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ D("span", { className: "rail" }),
|
|
1738
|
+
/* @__PURE__ */ D("span", {
|
|
1774
1739
|
className: "gut tnum",
|
|
1775
1740
|
children: e.line - 1
|
|
1776
1741
|
}),
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
/* @__PURE__ */
|
|
1742
|
+
/* @__PURE__ */ D("span", { className: "sign" }),
|
|
1743
|
+
/* @__PURE__ */ D("span", {
|
|
1779
1744
|
className: "t",
|
|
1780
1745
|
children: "func configure() {"
|
|
1781
1746
|
})
|
|
1782
1747
|
]
|
|
1783
1748
|
}),
|
|
1784
|
-
/* @__PURE__ */
|
|
1749
|
+
/* @__PURE__ */ O("div", {
|
|
1785
1750
|
className: "dl del",
|
|
1786
1751
|
children: [
|
|
1787
|
-
/* @__PURE__ */
|
|
1788
|
-
/* @__PURE__ */
|
|
1752
|
+
/* @__PURE__ */ D("span", { className: "rail" }),
|
|
1753
|
+
/* @__PURE__ */ D("span", {
|
|
1789
1754
|
className: "gut tnum",
|
|
1790
1755
|
children: e.line
|
|
1791
1756
|
}),
|
|
1792
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ D("span", {
|
|
1793
1758
|
className: "sign",
|
|
1794
1759
|
children: "−"
|
|
1795
1760
|
}),
|
|
1796
|
-
/* @__PURE__ */
|
|
1761
|
+
/* @__PURE__ */ D("span", {
|
|
1797
1762
|
className: "t cmg-strike",
|
|
1798
1763
|
children: e.original
|
|
1799
1764
|
})
|
|
1800
1765
|
]
|
|
1801
1766
|
}),
|
|
1802
|
-
/* @__PURE__ */
|
|
1767
|
+
/* @__PURE__ */ O("div", {
|
|
1803
1768
|
className: "dl add",
|
|
1804
1769
|
children: [
|
|
1805
|
-
/* @__PURE__ */
|
|
1806
|
-
/* @__PURE__ */
|
|
1770
|
+
/* @__PURE__ */ D("span", { className: "rail" }),
|
|
1771
|
+
/* @__PURE__ */ D("span", {
|
|
1807
1772
|
className: "gut tnum",
|
|
1808
1773
|
children: e.line
|
|
1809
1774
|
}),
|
|
1810
|
-
/* @__PURE__ */
|
|
1775
|
+
/* @__PURE__ */ D("span", {
|
|
1811
1776
|
className: "sign",
|
|
1812
1777
|
children: "+"
|
|
1813
1778
|
}),
|
|
1814
|
-
/* @__PURE__ */
|
|
1779
|
+
/* @__PURE__ */ D("span", {
|
|
1815
1780
|
className: "t",
|
|
1816
1781
|
children: e.replacement
|
|
1817
1782
|
})
|
|
1818
1783
|
]
|
|
1819
1784
|
}),
|
|
1820
|
-
/* @__PURE__ */
|
|
1785
|
+
/* @__PURE__ */ O("div", {
|
|
1821
1786
|
className: "dl ctx",
|
|
1822
1787
|
children: [
|
|
1823
|
-
/* @__PURE__ */
|
|
1824
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ D("span", { className: "rail" }),
|
|
1789
|
+
/* @__PURE__ */ D("span", {
|
|
1825
1790
|
className: "gut tnum",
|
|
1826
1791
|
children: e.line + 1
|
|
1827
1792
|
}),
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
-
/* @__PURE__ */
|
|
1793
|
+
/* @__PURE__ */ D("span", { className: "sign" }),
|
|
1794
|
+
/* @__PURE__ */ D("span", {
|
|
1830
1795
|
className: "t",
|
|
1831
1796
|
children: "}"
|
|
1832
1797
|
})
|
|
@@ -1834,33 +1799,33 @@ function He({ item: e }) {
|
|
|
1834
1799
|
})
|
|
1835
1800
|
]
|
|
1836
1801
|
}),
|
|
1837
|
-
/* @__PURE__ */
|
|
1802
|
+
/* @__PURE__ */ O("div", {
|
|
1838
1803
|
className: "cmg-redact-foot",
|
|
1839
|
-
children: [t ? /* @__PURE__ */
|
|
1804
|
+
children: [t ? /* @__PURE__ */ O("span", {
|
|
1840
1805
|
className: "cmg-redact-warn mono",
|
|
1841
|
-
children: [/* @__PURE__ */
|
|
1806
|
+
children: [/* @__PURE__ */ D(k, {
|
|
1842
1807
|
size: 13,
|
|
1843
1808
|
"aria-hidden": "true"
|
|
1844
1809
|
}), " this content will be exposed"]
|
|
1845
|
-
}) : /* @__PURE__ */
|
|
1810
|
+
}) : /* @__PURE__ */ O("span", {
|
|
1846
1811
|
className: "cmg-redact-safe mono",
|
|
1847
|
-
children: [/* @__PURE__ */
|
|
1812
|
+
children: [/* @__PURE__ */ D(ie, {
|
|
1848
1813
|
size: 13,
|
|
1849
1814
|
"aria-hidden": "true"
|
|
1850
1815
|
}), " redacted (safe default)"]
|
|
1851
|
-
}), t ? /* @__PURE__ */
|
|
1816
|
+
}), t ? /* @__PURE__ */ O("button", {
|
|
1852
1817
|
type: "button",
|
|
1853
1818
|
className: "btn btn-sm btn-secondary",
|
|
1854
1819
|
onClick: () => n(!1),
|
|
1855
|
-
children: [/* @__PURE__ */
|
|
1820
|
+
children: [/* @__PURE__ */ D(z, {
|
|
1856
1821
|
size: 14,
|
|
1857
1822
|
"aria-hidden": "true"
|
|
1858
1823
|
}), " redact"]
|
|
1859
|
-
}) : /* @__PURE__ */
|
|
1824
|
+
}) : /* @__PURE__ */ O("button", {
|
|
1860
1825
|
type: "button",
|
|
1861
1826
|
className: "btn btn-sm btn-danger",
|
|
1862
1827
|
onClick: () => n(!0),
|
|
1863
|
-
children: [/* @__PURE__ */
|
|
1828
|
+
children: [/* @__PURE__ */ D(R, {
|
|
1864
1829
|
size: 14,
|
|
1865
1830
|
"aria-hidden": "true"
|
|
1866
1831
|
}), " opt out"]
|
|
@@ -1869,12 +1834,12 @@ function He({ item: e }) {
|
|
|
1869
1834
|
]
|
|
1870
1835
|
});
|
|
1871
1836
|
}
|
|
1872
|
-
function
|
|
1837
|
+
function He({ data: e = {}, actions: n = {} } = {}) {
|
|
1873
1838
|
let { collective: r = {
|
|
1874
1839
|
name: "AI Research Team",
|
|
1875
1840
|
description: "Sharing transcripts related to AI research",
|
|
1876
1841
|
linkedGithubOrg: "@anthropic-labs"
|
|
1877
|
-
}, providerShare: i =
|
|
1842
|
+
}, providerShare: i = Le, pendingReview: a = Re, members: o = ze, redactions: s = Be, browseRows: c = [
|
|
1878
1843
|
{
|
|
1879
1844
|
title: "Building a REST API from scratch",
|
|
1880
1845
|
contributor: "@alice-dev",
|
|
@@ -1902,57 +1867,57 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1902
1867
|
tokens: "121K",
|
|
1903
1868
|
date: "Jun 12"
|
|
1904
1869
|
}
|
|
1905
|
-
], roleOptions:
|
|
1870
|
+
], roleOptions: l = Ie, initialRole: u = "owner", initialShowRedaction: f = !0, initialBrowseGated: p = !1, targetCollective: _ = Ge, stats: v = {
|
|
1906
1871
|
transcripts: "248",
|
|
1907
1872
|
projects: "31 projects",
|
|
1908
1873
|
tokens: "4.2M",
|
|
1909
1874
|
turns: "18.4K turns",
|
|
1910
1875
|
contributors: "12",
|
|
1911
1876
|
hours: "63h total"
|
|
1912
|
-
} } = e, { onRoleChange: y, onJoin:
|
|
1913
|
-
|
|
1877
|
+
} } = e, { onRoleChange: y, onJoin: x, onLeave: S, onSettings: C, onToggleBrowse: w, onContribute: k } = n, [A, j] = T(u), [F, I] = T(f), [L, z] = T(p), B = A === "owner", H = A === "guest", U = (e) => {
|
|
1878
|
+
j(e), y?.(e);
|
|
1914
1879
|
};
|
|
1915
|
-
return /* @__PURE__ */
|
|
1880
|
+
return /* @__PURE__ */ D("div", {
|
|
1916
1881
|
className: "cmg-root",
|
|
1917
|
-
children: /* @__PURE__ */
|
|
1882
|
+
children: /* @__PURE__ */ O("div", {
|
|
1918
1883
|
className: "cmg-detail",
|
|
1919
1884
|
children: [
|
|
1920
|
-
/* @__PURE__ */
|
|
1885
|
+
/* @__PURE__ */ O("header", {
|
|
1921
1886
|
className: "cmg-d-hero",
|
|
1922
|
-
children: [/* @__PURE__ */
|
|
1887
|
+
children: [/* @__PURE__ */ O("div", {
|
|
1923
1888
|
className: "crumb cmg-crumb",
|
|
1924
1889
|
children: [
|
|
1925
1890
|
"village ",
|
|
1926
|
-
/* @__PURE__ */
|
|
1891
|
+
/* @__PURE__ */ D(N, {
|
|
1927
1892
|
size: 13,
|
|
1928
1893
|
"aria-hidden": "true"
|
|
1929
1894
|
}),
|
|
1930
1895
|
" collectives ",
|
|
1931
|
-
/* @__PURE__ */
|
|
1896
|
+
/* @__PURE__ */ D(N, {
|
|
1932
1897
|
size: 13,
|
|
1933
1898
|
"aria-hidden": "true"
|
|
1934
1899
|
}),
|
|
1935
1900
|
" ",
|
|
1936
|
-
/* @__PURE__ */
|
|
1901
|
+
/* @__PURE__ */ D("span", {
|
|
1937
1902
|
className: "cur",
|
|
1938
1903
|
children: r.name
|
|
1939
1904
|
})
|
|
1940
1905
|
]
|
|
1941
|
-
}), /* @__PURE__ */
|
|
1906
|
+
}), /* @__PURE__ */ O("div", {
|
|
1942
1907
|
className: "cmg-d-hero-row",
|
|
1943
|
-
children: [/* @__PURE__ */
|
|
1944
|
-
/* @__PURE__ */
|
|
1908
|
+
children: [/* @__PURE__ */ O("div", { children: [
|
|
1909
|
+
/* @__PURE__ */ D("h2", {
|
|
1945
1910
|
className: "cmg-title",
|
|
1946
1911
|
children: r.name
|
|
1947
1912
|
}),
|
|
1948
|
-
/* @__PURE__ */
|
|
1913
|
+
/* @__PURE__ */ D("p", {
|
|
1949
1914
|
className: "cmg-deck",
|
|
1950
1915
|
children: r.description
|
|
1951
1916
|
}),
|
|
1952
|
-
/* @__PURE__ */
|
|
1917
|
+
/* @__PURE__ */ O("span", {
|
|
1953
1918
|
className: "cmg-orgpill mono",
|
|
1954
1919
|
children: [
|
|
1955
|
-
/* @__PURE__ */
|
|
1920
|
+
/* @__PURE__ */ D(V, {
|
|
1956
1921
|
size: 13,
|
|
1957
1922
|
"aria-hidden": "true"
|
|
1958
1923
|
}),
|
|
@@ -1960,53 +1925,53 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1960
1925
|
r.linkedGithubOrg || "not linked"
|
|
1961
1926
|
]
|
|
1962
1927
|
})
|
|
1963
|
-
] }), /* @__PURE__ */
|
|
1928
|
+
] }), /* @__PURE__ */ O("div", {
|
|
1964
1929
|
className: "cmg-d-actions btn-row",
|
|
1965
1930
|
children: [
|
|
1966
|
-
/* @__PURE__ */
|
|
1931
|
+
/* @__PURE__ */ D("div", {
|
|
1967
1932
|
className: "cmg-roleswitch",
|
|
1968
1933
|
role: "group",
|
|
1969
1934
|
"aria-label": "view as role",
|
|
1970
|
-
children:
|
|
1935
|
+
children: l.map((e) => /* @__PURE__ */ D("button", {
|
|
1971
1936
|
type: "button",
|
|
1972
1937
|
className: "cmg-roleseg",
|
|
1973
|
-
"aria-pressed":
|
|
1974
|
-
onClick: () =>
|
|
1938
|
+
"aria-pressed": A === e,
|
|
1939
|
+
onClick: () => U(e),
|
|
1975
1940
|
children: e
|
|
1976
1941
|
}, e))
|
|
1977
1942
|
}),
|
|
1978
|
-
|
|
1943
|
+
H && /* @__PURE__ */ O("button", {
|
|
1979
1944
|
type: "button",
|
|
1980
1945
|
className: "btn btn-sm btn-primary",
|
|
1981
|
-
onClick: () =>
|
|
1982
|
-
children: [/* @__PURE__ */
|
|
1946
|
+
onClick: () => x?.(),
|
|
1947
|
+
children: [/* @__PURE__ */ D(Y, {
|
|
1983
1948
|
size: 14,
|
|
1984
1949
|
"aria-hidden": "true"
|
|
1985
1950
|
}), " join as contributor"]
|
|
1986
1951
|
}),
|
|
1987
|
-
(
|
|
1952
|
+
(A === "member" || A === "contributor") && /* @__PURE__ */ O("button", {
|
|
1988
1953
|
type: "button",
|
|
1989
1954
|
className: "btn btn-sm btn-primary",
|
|
1990
|
-
onClick: () =>
|
|
1991
|
-
children: [/* @__PURE__ */
|
|
1955
|
+
onClick: () => k?.(),
|
|
1956
|
+
children: [/* @__PURE__ */ D(J, {
|
|
1992
1957
|
size: 14,
|
|
1993
1958
|
"aria-hidden": "true"
|
|
1994
1959
|
}), " contribute"]
|
|
1995
1960
|
}),
|
|
1996
|
-
(
|
|
1961
|
+
(A === "member" || A === "contributor") && /* @__PURE__ */ O("button", {
|
|
1997
1962
|
type: "button",
|
|
1998
1963
|
className: "btn btn-sm btn-danger",
|
|
1999
|
-
onClick: () =>
|
|
2000
|
-
children: [/* @__PURE__ */
|
|
1964
|
+
onClick: () => S?.(),
|
|
1965
|
+
children: [/* @__PURE__ */ D(G, {
|
|
2001
1966
|
size: 14,
|
|
2002
1967
|
"aria-hidden": "true"
|
|
2003
1968
|
}), " leave"]
|
|
2004
1969
|
}),
|
|
2005
|
-
B && /* @__PURE__ */
|
|
1970
|
+
B && /* @__PURE__ */ O("button", {
|
|
2006
1971
|
type: "button",
|
|
2007
1972
|
className: "btn btn-sm btn-secondary",
|
|
2008
|
-
onClick: () =>
|
|
2009
|
-
children: [/* @__PURE__ */
|
|
1973
|
+
onClick: () => C?.(),
|
|
1974
|
+
children: [/* @__PURE__ */ D(K, {
|
|
2010
1975
|
size: 14,
|
|
2011
1976
|
"aria-hidden": "true"
|
|
2012
1977
|
}), " settings"]
|
|
@@ -2015,26 +1980,26 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2015
1980
|
})]
|
|
2016
1981
|
})]
|
|
2017
1982
|
}),
|
|
2018
|
-
/* @__PURE__ */
|
|
1983
|
+
/* @__PURE__ */ O("div", {
|
|
2019
1984
|
className: "cmg-tiles",
|
|
2020
1985
|
children: [
|
|
2021
|
-
/* @__PURE__ */
|
|
1986
|
+
/* @__PURE__ */ D(d, {
|
|
2022
1987
|
label: "contributions",
|
|
2023
1988
|
value: r.acceptanceMode || "open",
|
|
2024
1989
|
tone: "teal"
|
|
2025
1990
|
}),
|
|
2026
|
-
/* @__PURE__ */
|
|
1991
|
+
/* @__PURE__ */ D(d, {
|
|
2027
1992
|
label: "access",
|
|
2028
1993
|
value: r.dataAccess || "members only",
|
|
2029
1994
|
tone: "amber"
|
|
2030
1995
|
}),
|
|
2031
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ D(d, {
|
|
2032
1997
|
label: "your role",
|
|
2033
|
-
value:
|
|
1998
|
+
value: A
|
|
2034
1999
|
})
|
|
2035
2000
|
]
|
|
2036
2001
|
}),
|
|
2037
|
-
/* @__PURE__ */
|
|
2002
|
+
/* @__PURE__ */ D(h, { tiles: [
|
|
2038
2003
|
{
|
|
2039
2004
|
key: "transcripts",
|
|
2040
2005
|
label: "transcripts",
|
|
@@ -2054,19 +2019,19 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2054
2019
|
sub: v.hours
|
|
2055
2020
|
}
|
|
2056
2021
|
] }),
|
|
2057
|
-
/* @__PURE__ */
|
|
2022
|
+
/* @__PURE__ */ O("div", {
|
|
2058
2023
|
className: "cmg-d-grid",
|
|
2059
|
-
children: [/* @__PURE__ */
|
|
2024
|
+
children: [/* @__PURE__ */ O("main", {
|
|
2060
2025
|
className: "cmg-d-main",
|
|
2061
2026
|
children: [
|
|
2062
|
-
/* @__PURE__ */
|
|
2027
|
+
/* @__PURE__ */ O("section", {
|
|
2063
2028
|
className: "card cmg-share",
|
|
2064
2029
|
"aria-labelledby": "cmg-share-h",
|
|
2065
|
-
children: [/* @__PURE__ */
|
|
2030
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
2066
2031
|
id: "cmg-share-h",
|
|
2067
2032
|
className: "cmg-sub",
|
|
2068
2033
|
children: "provider share"
|
|
2069
|
-
}), /* @__PURE__ */
|
|
2034
|
+
}), /* @__PURE__ */ D(g, {
|
|
2070
2035
|
label: "provider share",
|
|
2071
2036
|
total: 100,
|
|
2072
2037
|
data: i.map((e) => ({
|
|
@@ -2075,15 +2040,15 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2075
2040
|
}))
|
|
2076
2041
|
})]
|
|
2077
2042
|
}),
|
|
2078
|
-
B && /* @__PURE__ */
|
|
2043
|
+
B && /* @__PURE__ */ D("div", {
|
|
2079
2044
|
style: {
|
|
2080
2045
|
overflow: "auto",
|
|
2081
2046
|
maxWidth: "100%"
|
|
2082
2047
|
},
|
|
2083
|
-
children: /* @__PURE__ */
|
|
2048
|
+
children: /* @__PURE__ */ D(m, {
|
|
2084
2049
|
title: "pending review",
|
|
2085
2050
|
emptyLabel: "no shares awaiting review.",
|
|
2086
|
-
items:
|
|
2051
|
+
items: a.map((e) => ({
|
|
2087
2052
|
id: e.id,
|
|
2088
2053
|
kind: "share",
|
|
2089
2054
|
who: e.title,
|
|
@@ -2091,133 +2056,133 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2091
2056
|
}))
|
|
2092
2057
|
})
|
|
2093
2058
|
}),
|
|
2094
|
-
/* @__PURE__ */
|
|
2059
|
+
/* @__PURE__ */ O("section", {
|
|
2095
2060
|
className: "card cmg-redact-sec",
|
|
2096
2061
|
"aria-labelledby": "cmg-redact-h",
|
|
2097
|
-
children: [/* @__PURE__ */
|
|
2062
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2098
2063
|
className: "cmg-queue-head",
|
|
2099
|
-
children: [/* @__PURE__ */
|
|
2064
|
+
children: [/* @__PURE__ */ O("h3", {
|
|
2100
2065
|
id: "cmg-redact-h",
|
|
2101
2066
|
className: "cmg-sub",
|
|
2102
|
-
children: [/* @__PURE__ */
|
|
2067
|
+
children: [/* @__PURE__ */ D(q, {
|
|
2103
2068
|
size: 15,
|
|
2104
2069
|
"aria-hidden": "true"
|
|
2105
2070
|
}), " redaction review"]
|
|
2106
|
-
}), /* @__PURE__ */
|
|
2071
|
+
}), /* @__PURE__ */ O("button", {
|
|
2107
2072
|
type: "button",
|
|
2108
2073
|
className: "btn btn-sm btn-ghost",
|
|
2109
|
-
"aria-expanded":
|
|
2110
|
-
onClick: () =>
|
|
2111
|
-
children: [
|
|
2074
|
+
"aria-expanded": F,
|
|
2075
|
+
onClick: () => I((e) => !e),
|
|
2076
|
+
children: [D(F ? M : N, {
|
|
2112
2077
|
size: 14,
|
|
2113
2078
|
"aria-hidden": "true"
|
|
2114
|
-
}),
|
|
2079
|
+
}), F ? "hide" : "show"]
|
|
2115
2080
|
})]
|
|
2116
|
-
}),
|
|
2081
|
+
}), F && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ O("div", {
|
|
2117
2082
|
className: "callout cmg-redact-note",
|
|
2118
|
-
children: [/* @__PURE__ */
|
|
2083
|
+
children: [/* @__PURE__ */ D(q, {
|
|
2119
2084
|
size: 16,
|
|
2120
2085
|
"aria-hidden": "true"
|
|
2121
|
-
}), /* @__PURE__ */
|
|
2122
|
-
}), /* @__PURE__ */
|
|
2086
|
+
}), /* @__PURE__ */ D("div", { children: "safe by default: every detected item stays redacted unless you opt out per item. there is no bulk accept." })]
|
|
2087
|
+
}), /* @__PURE__ */ D("div", {
|
|
2123
2088
|
className: "cmg-redact-list",
|
|
2124
|
-
children:
|
|
2089
|
+
children: s.map((e) => /* @__PURE__ */ D(Ve, { item: e }, e.id))
|
|
2125
2090
|
})] })]
|
|
2126
2091
|
}),
|
|
2127
|
-
/* @__PURE__ */
|
|
2092
|
+
/* @__PURE__ */ O("section", {
|
|
2128
2093
|
className: "card cmg-browser",
|
|
2129
2094
|
"aria-labelledby": "cmg-browser-h",
|
|
2130
|
-
children: [/* @__PURE__ */
|
|
2095
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2131
2096
|
className: "cmg-queue-head",
|
|
2132
|
-
children: [/* @__PURE__ */
|
|
2097
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
2133
2098
|
id: "cmg-browser-h",
|
|
2134
2099
|
className: "cmg-sub",
|
|
2135
2100
|
children: "data"
|
|
2136
|
-
}), /* @__PURE__ */
|
|
2101
|
+
}), /* @__PURE__ */ O("button", {
|
|
2137
2102
|
type: "button",
|
|
2138
2103
|
className: "btn btn-sm btn-ghost",
|
|
2139
2104
|
"aria-pressed": L,
|
|
2140
2105
|
onClick: () => {
|
|
2141
|
-
|
|
2106
|
+
z((e) => {
|
|
2142
2107
|
let t = !e;
|
|
2143
|
-
return
|
|
2108
|
+
return w?.(t), t;
|
|
2144
2109
|
});
|
|
2145
2110
|
},
|
|
2146
|
-
children: [
|
|
2111
|
+
children: [D(L ? W : R, {
|
|
2147
2112
|
size: 14,
|
|
2148
2113
|
"aria-hidden": "true"
|
|
2149
2114
|
}), L ? "gated view" : "open view"]
|
|
2150
2115
|
})]
|
|
2151
|
-
}), L ? /* @__PURE__ */
|
|
2116
|
+
}), L ? /* @__PURE__ */ O("div", {
|
|
2152
2117
|
className: "empty cmg-locked",
|
|
2153
2118
|
children: [
|
|
2154
|
-
/* @__PURE__ */
|
|
2119
|
+
/* @__PURE__ */ D("span", {
|
|
2155
2120
|
className: "ring",
|
|
2156
|
-
children: /* @__PURE__ */
|
|
2121
|
+
children: /* @__PURE__ */ D(W, {
|
|
2157
2122
|
size: 20,
|
|
2158
2123
|
"aria-hidden": "true"
|
|
2159
2124
|
})
|
|
2160
2125
|
}),
|
|
2161
|
-
/* @__PURE__ */
|
|
2162
|
-
/* @__PURE__ */
|
|
2163
|
-
|
|
2126
|
+
/* @__PURE__ */ D("h3", { children: "data access restricted" }),
|
|
2127
|
+
/* @__PURE__ */ D("p", { children: "this collective is members-only. join as a full member to browse the dataset." }),
|
|
2128
|
+
H && /* @__PURE__ */ O("button", {
|
|
2164
2129
|
type: "button",
|
|
2165
2130
|
className: "btn btn-sm btn-primary",
|
|
2166
|
-
children: [/* @__PURE__ */
|
|
2131
|
+
children: [/* @__PURE__ */ D(Y, {
|
|
2167
2132
|
size: 14,
|
|
2168
2133
|
"aria-hidden": "true"
|
|
2169
2134
|
}), " join as contributor"]
|
|
2170
2135
|
})
|
|
2171
2136
|
]
|
|
2172
|
-
}) : /* @__PURE__ */
|
|
2137
|
+
}) : /* @__PURE__ */ O("table", {
|
|
2173
2138
|
className: "dtable cmg-dtable",
|
|
2174
|
-
children: [/* @__PURE__ */
|
|
2175
|
-
/* @__PURE__ */
|
|
2139
|
+
children: [/* @__PURE__ */ D("thead", { children: /* @__PURE__ */ O("tr", { children: [
|
|
2140
|
+
/* @__PURE__ */ D("th", {
|
|
2176
2141
|
scope: "col",
|
|
2177
2142
|
children: "title"
|
|
2178
2143
|
}),
|
|
2179
|
-
/* @__PURE__ */
|
|
2144
|
+
/* @__PURE__ */ D("th", {
|
|
2180
2145
|
scope: "col",
|
|
2181
2146
|
children: "contributor"
|
|
2182
2147
|
}),
|
|
2183
|
-
/* @__PURE__ */
|
|
2148
|
+
/* @__PURE__ */ D("th", {
|
|
2184
2149
|
scope: "col",
|
|
2185
2150
|
children: "provider"
|
|
2186
2151
|
}),
|
|
2187
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ D("th", {
|
|
2188
2153
|
scope: "col",
|
|
2189
2154
|
className: "cmg-num",
|
|
2190
2155
|
children: "turns"
|
|
2191
2156
|
}),
|
|
2192
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ D("th", {
|
|
2193
2158
|
scope: "col",
|
|
2194
2159
|
className: "cmg-num",
|
|
2195
2160
|
children: "tokens"
|
|
2196
2161
|
}),
|
|
2197
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ D("th", {
|
|
2198
2163
|
scope: "col",
|
|
2199
2164
|
children: "date"
|
|
2200
2165
|
})
|
|
2201
|
-
] }) }), /* @__PURE__ */
|
|
2202
|
-
/* @__PURE__ */
|
|
2203
|
-
/* @__PURE__ */
|
|
2166
|
+
] }) }), /* @__PURE__ */ D("tbody", { children: c.map((e) => /* @__PURE__ */ O("tr", { children: [
|
|
2167
|
+
/* @__PURE__ */ D("td", { children: e.title }),
|
|
2168
|
+
/* @__PURE__ */ D("td", {
|
|
2204
2169
|
className: "mono",
|
|
2205
2170
|
children: e.contributor
|
|
2206
2171
|
}),
|
|
2207
|
-
/* @__PURE__ */
|
|
2208
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ O("td", { children: [
|
|
2173
|
+
/* @__PURE__ */ D(b, { harness: e.providerId }),
|
|
2209
2174
|
" ",
|
|
2210
|
-
e.
|
|
2175
|
+
we(e.providerId)
|
|
2211
2176
|
] }),
|
|
2212
|
-
/* @__PURE__ */
|
|
2177
|
+
/* @__PURE__ */ D("td", {
|
|
2213
2178
|
className: "cmg-num tnum",
|
|
2214
2179
|
children: e.turns
|
|
2215
2180
|
}),
|
|
2216
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ D("td", {
|
|
2217
2182
|
className: "cmg-num tnum",
|
|
2218
2183
|
children: e.tokens
|
|
2219
2184
|
}),
|
|
2220
|
-
/* @__PURE__ */
|
|
2185
|
+
/* @__PURE__ */ D("td", {
|
|
2221
2186
|
className: "mono tnum",
|
|
2222
2187
|
children: e.date
|
|
2223
2188
|
})
|
|
@@ -2225,16 +2190,16 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2225
2190
|
})]
|
|
2226
2191
|
})
|
|
2227
2192
|
]
|
|
2228
|
-
}), /* @__PURE__ */
|
|
2193
|
+
}), /* @__PURE__ */ O("aside", {
|
|
2229
2194
|
className: "sidebar cmg-d-rail",
|
|
2230
2195
|
"aria-label": "collective sidebar",
|
|
2231
2196
|
children: [
|
|
2232
|
-
B && /* @__PURE__ */
|
|
2197
|
+
B && /* @__PURE__ */ D("div", {
|
|
2233
2198
|
style: {
|
|
2234
2199
|
overflow: "auto",
|
|
2235
2200
|
maxWidth: "100%"
|
|
2236
2201
|
},
|
|
2237
|
-
children: /* @__PURE__ */
|
|
2202
|
+
children: /* @__PURE__ */ D(m, {
|
|
2238
2203
|
title: "pending requests",
|
|
2239
2204
|
emptyLabel: "no pending requests.",
|
|
2240
2205
|
items: [{
|
|
@@ -2244,15 +2209,15 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2244
2209
|
}]
|
|
2245
2210
|
})
|
|
2246
2211
|
}),
|
|
2247
|
-
/* @__PURE__ */
|
|
2212
|
+
/* @__PURE__ */ D("div", {
|
|
2248
2213
|
style: {
|
|
2249
2214
|
overflow: "auto",
|
|
2250
2215
|
maxWidth: "100%"
|
|
2251
2216
|
},
|
|
2252
|
-
children: /* @__PURE__ */
|
|
2217
|
+
children: /* @__PURE__ */ D(t, {
|
|
2253
2218
|
title: "members",
|
|
2254
2219
|
roles: ["member", "contributor"],
|
|
2255
|
-
members:
|
|
2220
|
+
members: o.map((e) => ({
|
|
2256
2221
|
handle: e.handle,
|
|
2257
2222
|
name: e.name,
|
|
2258
2223
|
role: e.role,
|
|
@@ -2260,11 +2225,11 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2260
2225
|
}))
|
|
2261
2226
|
})
|
|
2262
2227
|
}),
|
|
2263
|
-
/* @__PURE__ */
|
|
2228
|
+
/* @__PURE__ */ O("div", {
|
|
2264
2229
|
className: "sb-sec",
|
|
2265
|
-
children: [/* @__PURE__ */
|
|
2230
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2266
2231
|
className: "sb-head",
|
|
2267
|
-
children: [/* @__PURE__ */
|
|
2232
|
+
children: [/* @__PURE__ */ D(V, {
|
|
2268
2233
|
size: 14,
|
|
2269
2234
|
"aria-hidden": "true",
|
|
2270
2235
|
style: {
|
|
@@ -2272,12 +2237,12 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2272
2237
|
marginRight: 6
|
|
2273
2238
|
}
|
|
2274
2239
|
}), " linked repositories"]
|
|
2275
|
-
}), /* @__PURE__ */
|
|
2240
|
+
}), /* @__PURE__ */ O("div", {
|
|
2276
2241
|
className: "cmg-repo-note callout",
|
|
2277
|
-
children: [/* @__PURE__ */
|
|
2242
|
+
children: [/* @__PURE__ */ D(P, {
|
|
2278
2243
|
size: 16,
|
|
2279
2244
|
"aria-hidden": "true"
|
|
2280
|
-
}), /* @__PURE__ */
|
|
2245
|
+
}), /* @__PURE__ */ D("div", { children: r.linkedGithubOrg ? `linked to ${r.linkedGithubOrg}.` : "the github connection isn't set up. an admin must register the github app to overlay commit timelines." })]
|
|
2281
2246
|
})]
|
|
2282
2247
|
})
|
|
2283
2248
|
]
|
|
@@ -2287,85 +2252,85 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2287
2252
|
})
|
|
2288
2253
|
});
|
|
2289
2254
|
}
|
|
2290
|
-
function
|
|
2291
|
-
let [e,
|
|
2292
|
-
return /* @__PURE__ */
|
|
2255
|
+
function Ue() {
|
|
2256
|
+
let [e, i] = T("AI Research Team"), [o, d] = T("Sharing transcripts related to AI research"), [f, p] = T("curated"), [m, h] = T("members_only"), [g, v] = T(!0), [y, b] = T("user_choice"), [x, S] = T(!1);
|
|
2257
|
+
return /* @__PURE__ */ D("div", {
|
|
2293
2258
|
className: "cmg-root cmg-settings",
|
|
2294
|
-
children: /* @__PURE__ */
|
|
2259
|
+
children: /* @__PURE__ */ O("div", {
|
|
2295
2260
|
className: "cmg-detail",
|
|
2296
2261
|
children: [
|
|
2297
|
-
/* @__PURE__ */
|
|
2262
|
+
/* @__PURE__ */ O("div", {
|
|
2298
2263
|
className: "crumb cmg-crumb",
|
|
2299
2264
|
children: [
|
|
2300
2265
|
"village ",
|
|
2301
|
-
/* @__PURE__ */
|
|
2266
|
+
/* @__PURE__ */ D(N, {
|
|
2302
2267
|
size: 13,
|
|
2303
2268
|
"aria-hidden": "true"
|
|
2304
2269
|
}),
|
|
2305
2270
|
" collectives ",
|
|
2306
|
-
/* @__PURE__ */
|
|
2271
|
+
/* @__PURE__ */ D(N, {
|
|
2307
2272
|
size: 13,
|
|
2308
2273
|
"aria-hidden": "true"
|
|
2309
2274
|
}),
|
|
2310
|
-
/* @__PURE__ */
|
|
2275
|
+
/* @__PURE__ */ D("span", {
|
|
2311
2276
|
className: "cur",
|
|
2312
2277
|
children: "settings"
|
|
2313
2278
|
})
|
|
2314
2279
|
]
|
|
2315
2280
|
}),
|
|
2316
|
-
/* @__PURE__ */
|
|
2281
|
+
/* @__PURE__ */ D("header", {
|
|
2317
2282
|
className: "cmg-d-hero",
|
|
2318
|
-
children: /* @__PURE__ */
|
|
2283
|
+
children: /* @__PURE__ */ O("div", {
|
|
2319
2284
|
className: "cmg-d-hero-row",
|
|
2320
|
-
children: [/* @__PURE__ */
|
|
2285
|
+
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h2", {
|
|
2321
2286
|
className: "cmg-title",
|
|
2322
2287
|
children: "collective settings"
|
|
2323
|
-
}), /* @__PURE__ */
|
|
2288
|
+
}), /* @__PURE__ */ D("p", {
|
|
2324
2289
|
className: "cmg-deck",
|
|
2325
2290
|
children: "edit how this collective accepts contributions and shares data."
|
|
2326
|
-
})] }), /* @__PURE__ */
|
|
2291
|
+
})] }), /* @__PURE__ */ D(_, { children: "settings" })]
|
|
2327
2292
|
})
|
|
2328
2293
|
}),
|
|
2329
|
-
/* @__PURE__ */
|
|
2294
|
+
/* @__PURE__ */ O("div", {
|
|
2330
2295
|
className: "cmg-d-grid",
|
|
2331
|
-
children: [/* @__PURE__ */
|
|
2296
|
+
children: [/* @__PURE__ */ O("main", {
|
|
2332
2297
|
className: "cmg-d-main",
|
|
2333
|
-
children: [/* @__PURE__ */
|
|
2298
|
+
children: [/* @__PURE__ */ O("form", {
|
|
2334
2299
|
className: "card cmg-settings-form",
|
|
2335
2300
|
onSubmit: (e) => {
|
|
2336
2301
|
e.preventDefault(), S(!0), window.setTimeout(() => S(!1), 1800);
|
|
2337
2302
|
},
|
|
2338
|
-
children: [/* @__PURE__ */
|
|
2303
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2339
2304
|
className: "cmg-queue-head",
|
|
2340
|
-
children: [/* @__PURE__ */
|
|
2305
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
2341
2306
|
className: "cmg-sub",
|
|
2342
2307
|
children: "general"
|
|
2343
|
-
}), x ? /* @__PURE__ */
|
|
2308
|
+
}), x ? /* @__PURE__ */ D("span", {
|
|
2344
2309
|
className: "chip chip-ok",
|
|
2345
2310
|
children: "saved"
|
|
2346
2311
|
}) : null]
|
|
2347
|
-
}), /* @__PURE__ */
|
|
2312
|
+
}), /* @__PURE__ */ O("div", {
|
|
2348
2313
|
className: "cmg-settings-stack",
|
|
2349
2314
|
children: [
|
|
2350
|
-
/* @__PURE__ */
|
|
2315
|
+
/* @__PURE__ */ D(c, {
|
|
2351
2316
|
label: "Name",
|
|
2352
2317
|
id: "cmg-name",
|
|
2353
2318
|
value: e,
|
|
2354
|
-
onChange: (e) =>
|
|
2319
|
+
onChange: (e) => i(e.target.value),
|
|
2355
2320
|
required: !0
|
|
2356
2321
|
}),
|
|
2357
|
-
/* @__PURE__ */
|
|
2322
|
+
/* @__PURE__ */ D(r, {
|
|
2358
2323
|
label: "Description",
|
|
2359
2324
|
id: "cmg-description",
|
|
2360
|
-
value:
|
|
2361
|
-
onChange: (e) =>
|
|
2325
|
+
value: o,
|
|
2326
|
+
onChange: (e) => d(e.target.value),
|
|
2362
2327
|
rows: 2
|
|
2363
2328
|
}),
|
|
2364
|
-
/* @__PURE__ */
|
|
2329
|
+
/* @__PURE__ */ D(u, {
|
|
2365
2330
|
label: "Acceptance mode",
|
|
2366
2331
|
id: "cmg-acceptance",
|
|
2367
|
-
value:
|
|
2368
|
-
onChange: (e) =>
|
|
2332
|
+
value: f,
|
|
2333
|
+
onChange: (e) => p(e.target.value),
|
|
2369
2334
|
options: [
|
|
2370
2335
|
{
|
|
2371
2336
|
value: "open",
|
|
@@ -2381,11 +2346,11 @@ function We() {
|
|
|
2381
2346
|
}
|
|
2382
2347
|
]
|
|
2383
2348
|
}),
|
|
2384
|
-
/* @__PURE__ */
|
|
2349
|
+
/* @__PURE__ */ D(u, {
|
|
2385
2350
|
label: "Data access",
|
|
2386
2351
|
id: "cmg-access",
|
|
2387
|
-
value:
|
|
2388
|
-
onChange: (e) =>
|
|
2352
|
+
value: m,
|
|
2353
|
+
onChange: (e) => h(e.target.value),
|
|
2389
2354
|
options: [
|
|
2390
2355
|
{
|
|
2391
2356
|
value: "members_only",
|
|
@@ -2401,92 +2366,92 @@ function We() {
|
|
|
2401
2366
|
}
|
|
2402
2367
|
]
|
|
2403
2368
|
}),
|
|
2404
|
-
/* @__PURE__ */
|
|
2369
|
+
/* @__PURE__ */ O("div", {
|
|
2405
2370
|
className: "sw-stack",
|
|
2406
2371
|
children: [
|
|
2407
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ D("label", {
|
|
2408
2373
|
htmlFor: "cmg-display-members",
|
|
2409
2374
|
className: "sw-label",
|
|
2410
2375
|
children: "Show the members card on the collective page"
|
|
2411
2376
|
}),
|
|
2412
|
-
/* @__PURE__ */
|
|
2377
|
+
/* @__PURE__ */ D("span", {
|
|
2413
2378
|
className: "sw-hint",
|
|
2414
2379
|
children: "When off, only owners can see the member list."
|
|
2415
2380
|
}),
|
|
2416
|
-
/* @__PURE__ */
|
|
2381
|
+
/* @__PURE__ */ D("div", {
|
|
2417
2382
|
className: "sw-toggle-row",
|
|
2418
|
-
children: /* @__PURE__ */
|
|
2383
|
+
children: /* @__PURE__ */ D(a, {
|
|
2419
2384
|
id: "cmg-display-members",
|
|
2420
|
-
checked:
|
|
2421
|
-
onChange: (e) =>
|
|
2385
|
+
checked: g,
|
|
2386
|
+
onChange: (e) => v(e)
|
|
2422
2387
|
})
|
|
2423
2388
|
})
|
|
2424
2389
|
]
|
|
2425
2390
|
}),
|
|
2426
|
-
/* @__PURE__ */
|
|
2391
|
+
/* @__PURE__ */ D(l, {
|
|
2427
2392
|
name: "cmg-deletion-policy",
|
|
2428
2393
|
ariaLabel: "Transcript retention on leave",
|
|
2429
2394
|
value: y,
|
|
2430
2395
|
onChange: b,
|
|
2431
2396
|
options: [{
|
|
2432
2397
|
value: "user_choice",
|
|
2433
|
-
label: /* @__PURE__ */
|
|
2398
|
+
label: /* @__PURE__ */ O("span", {
|
|
2434
2399
|
className: "flex flex-col gap-0.5",
|
|
2435
|
-
children: [/* @__PURE__ */
|
|
2400
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2436
2401
|
className: "font-mono text-[14px] text-ink-2 lowercase",
|
|
2437
2402
|
children: "User's choice"
|
|
2438
|
-
}), /* @__PURE__ */
|
|
2403
|
+
}), /* @__PURE__ */ D("span", {
|
|
2439
2404
|
className: "muted lowercase",
|
|
2440
2405
|
children: "Each leaving member decides whether to retract their contributions."
|
|
2441
2406
|
})]
|
|
2442
2407
|
})
|
|
2443
2408
|
}, {
|
|
2444
2409
|
value: "mandatory",
|
|
2445
|
-
label: /* @__PURE__ */
|
|
2410
|
+
label: /* @__PURE__ */ O("span", {
|
|
2446
2411
|
className: "flex flex-col gap-0.5",
|
|
2447
|
-
children: [/* @__PURE__ */
|
|
2412
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2448
2413
|
className: "font-mono text-[14px] text-ink-2 lowercase",
|
|
2449
2414
|
children: "Mandatory"
|
|
2450
|
-
}), /* @__PURE__ */
|
|
2415
|
+
}), /* @__PURE__ */ D("span", {
|
|
2451
2416
|
className: "muted lowercase",
|
|
2452
2417
|
children: "All of a leaving member's contributions are auto-retracted."
|
|
2453
2418
|
})]
|
|
2454
2419
|
})
|
|
2455
2420
|
}]
|
|
2456
2421
|
}),
|
|
2457
|
-
/* @__PURE__ */
|
|
2422
|
+
/* @__PURE__ */ O("div", {
|
|
2458
2423
|
className: "flex items-center gap-3",
|
|
2459
|
-
children: [/* @__PURE__ */
|
|
2424
|
+
children: [/* @__PURE__ */ D("button", {
|
|
2460
2425
|
type: "submit",
|
|
2461
2426
|
className: "btn btn-sm btn-primary",
|
|
2462
2427
|
children: "save changes"
|
|
2463
|
-
}), /* @__PURE__ */
|
|
2428
|
+
}), /* @__PURE__ */ D(s, {
|
|
2464
2429
|
label: "reset form",
|
|
2465
2430
|
onConfirm: () => S(!1)
|
|
2466
2431
|
})]
|
|
2467
2432
|
})
|
|
2468
2433
|
]
|
|
2469
2434
|
})]
|
|
2470
|
-
}), /* @__PURE__ */
|
|
2435
|
+
}), /* @__PURE__ */ O(n, {
|
|
2471
2436
|
title: "danger zone",
|
|
2472
|
-
children: [/* @__PURE__ */
|
|
2437
|
+
children: [/* @__PURE__ */ D("p", {
|
|
2473
2438
|
className: "mono",
|
|
2474
2439
|
children: "deleting this collective removes the governance settings and member roster."
|
|
2475
|
-
}), /* @__PURE__ */
|
|
2440
|
+
}), /* @__PURE__ */ D(s, {
|
|
2476
2441
|
label: "delete collective",
|
|
2477
2442
|
confirmLabel: "delete",
|
|
2478
2443
|
onConfirm: () => S(!1)
|
|
2479
2444
|
})]
|
|
2480
2445
|
})]
|
|
2481
|
-
}), /* @__PURE__ */
|
|
2446
|
+
}), /* @__PURE__ */ D("aside", {
|
|
2482
2447
|
className: "sidebar cmg-d-rail",
|
|
2483
2448
|
"aria-label": "settings sidebar",
|
|
2484
|
-
children: /* @__PURE__ */
|
|
2449
|
+
children: /* @__PURE__ */ D("div", {
|
|
2485
2450
|
style: {
|
|
2486
2451
|
overflow: "auto",
|
|
2487
2452
|
maxWidth: "100%"
|
|
2488
2453
|
},
|
|
2489
|
-
children: /* @__PURE__ */
|
|
2454
|
+
children: /* @__PURE__ */ D(t, {
|
|
2490
2455
|
title: "members",
|
|
2491
2456
|
roles: ["member", "contributor"],
|
|
2492
2457
|
members: [
|
|
@@ -2520,7 +2485,7 @@ function We() {
|
|
|
2520
2485
|
})
|
|
2521
2486
|
});
|
|
2522
2487
|
}
|
|
2523
|
-
var
|
|
2488
|
+
var We = [
|
|
2524
2489
|
{
|
|
2525
2490
|
id: "village",
|
|
2526
2491
|
name: "village",
|
|
@@ -2569,14 +2534,14 @@ var Ge = [
|
|
|
2569
2534
|
visibility: "private"
|
|
2570
2535
|
}]
|
|
2571
2536
|
}
|
|
2572
|
-
],
|
|
2537
|
+
], Ge = {
|
|
2573
2538
|
name: "AI Research Team",
|
|
2574
2539
|
members: 12
|
|
2575
2540
|
};
|
|
2576
|
-
function
|
|
2577
|
-
let [e, t] =
|
|
2541
|
+
function Ke() {
|
|
2542
|
+
let [e, t] = T(() => /* @__PURE__ */ new Set(["v1"])), [n, r] = T(() => new Set(We.map((e) => e.id))), [i, a] = T(!1), o = C(() => {
|
|
2578
2543
|
let e = {};
|
|
2579
|
-
return
|
|
2544
|
+
return We.forEach((t) => t.transcripts.forEach((n) => e[n.id] = {
|
|
2580
2545
|
...n,
|
|
2581
2546
|
project: t.name
|
|
2582
2547
|
})), e;
|
|
@@ -2605,53 +2570,53 @@ function qe() {
|
|
|
2605
2570
|
});
|
|
2606
2571
|
}
|
|
2607
2572
|
let d = [...e].map((e) => o[e]).filter(Boolean), f = d.filter((e) => e.visibility === "private").length;
|
|
2608
|
-
return /* @__PURE__ */
|
|
2573
|
+
return /* @__PURE__ */ O("div", {
|
|
2609
2574
|
className: "cmg-root",
|
|
2610
|
-
children: [/* @__PURE__ */
|
|
2575
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2611
2576
|
className: "cmg-page",
|
|
2612
2577
|
children: [
|
|
2613
|
-
/* @__PURE__ */
|
|
2578
|
+
/* @__PURE__ */ O("div", {
|
|
2614
2579
|
className: "crumb cmg-crumb",
|
|
2615
2580
|
children: [
|
|
2616
2581
|
"village ",
|
|
2617
|
-
/* @__PURE__ */
|
|
2582
|
+
/* @__PURE__ */ D(N, {
|
|
2618
2583
|
size: 13,
|
|
2619
2584
|
"aria-hidden": "true"
|
|
2620
2585
|
}),
|
|
2621
2586
|
" AI Research Team ",
|
|
2622
|
-
/* @__PURE__ */
|
|
2587
|
+
/* @__PURE__ */ D(N, {
|
|
2623
2588
|
size: 13,
|
|
2624
2589
|
"aria-hidden": "true"
|
|
2625
2590
|
}),
|
|
2626
2591
|
" ",
|
|
2627
|
-
/* @__PURE__ */
|
|
2592
|
+
/* @__PURE__ */ D("span", {
|
|
2628
2593
|
className: "cur",
|
|
2629
2594
|
children: "contribute"
|
|
2630
2595
|
})
|
|
2631
2596
|
]
|
|
2632
2597
|
}),
|
|
2633
|
-
/* @__PURE__ */
|
|
2598
|
+
/* @__PURE__ */ D("header", {
|
|
2634
2599
|
className: "cmg-head",
|
|
2635
|
-
children: /* @__PURE__ */
|
|
2600
|
+
children: /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h2", {
|
|
2636
2601
|
className: "cmg-title",
|
|
2637
2602
|
children: "contribute to AI Research Team"
|
|
2638
|
-
}), /* @__PURE__ */
|
|
2603
|
+
}), /* @__PURE__ */ D("p", {
|
|
2639
2604
|
className: "cmg-deck",
|
|
2640
2605
|
children: "select your own transcripts to share with this collective."
|
|
2641
2606
|
})] })
|
|
2642
2607
|
}),
|
|
2643
|
-
/* @__PURE__ */
|
|
2608
|
+
/* @__PURE__ */ D("section", {
|
|
2644
2609
|
className: "card cmg-contribute",
|
|
2645
2610
|
"aria-label": "your transcripts by project",
|
|
2646
|
-
children:
|
|
2611
|
+
children: We.map((t) => {
|
|
2647
2612
|
let r = c(t), i = n.has(t.id);
|
|
2648
|
-
return /* @__PURE__ */
|
|
2613
|
+
return /* @__PURE__ */ O("div", {
|
|
2649
2614
|
className: "cmg-proj",
|
|
2650
|
-
children: [/* @__PURE__ */
|
|
2615
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2651
2616
|
className: "cmg-proj-head",
|
|
2652
|
-
children: [/* @__PURE__ */
|
|
2617
|
+
children: [/* @__PURE__ */ D("label", {
|
|
2653
2618
|
className: "check cmg-proj-check",
|
|
2654
|
-
children: /* @__PURE__ */
|
|
2619
|
+
children: /* @__PURE__ */ D("input", {
|
|
2655
2620
|
type: "checkbox",
|
|
2656
2621
|
className: "check-box",
|
|
2657
2622
|
checked: r === "all",
|
|
@@ -2659,24 +2624,24 @@ function qe() {
|
|
|
2659
2624
|
onChange: () => l(t),
|
|
2660
2625
|
"aria-label": `select all in ${t.name}`
|
|
2661
2626
|
})
|
|
2662
|
-
}), /* @__PURE__ */
|
|
2627
|
+
}), /* @__PURE__ */ O("button", {
|
|
2663
2628
|
type: "button",
|
|
2664
2629
|
className: "cmg-proj-toggle",
|
|
2665
2630
|
"aria-expanded": i,
|
|
2666
2631
|
onClick: () => u(t.id),
|
|
2667
2632
|
children: [
|
|
2668
|
-
|
|
2633
|
+
D(i ? M : N, {
|
|
2669
2634
|
size: 15,
|
|
2670
2635
|
"aria-hidden": "true"
|
|
2671
2636
|
}),
|
|
2672
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ D("span", {
|
|
2673
2638
|
className: "cmg-proj-name mono",
|
|
2674
2639
|
children: t.name
|
|
2675
2640
|
}),
|
|
2676
|
-
/* @__PURE__ */
|
|
2641
|
+
/* @__PURE__ */ O("span", {
|
|
2677
2642
|
className: "cmg-proj-branch mono",
|
|
2678
2643
|
children: [
|
|
2679
|
-
/* @__PURE__ */
|
|
2644
|
+
/* @__PURE__ */ D(H, {
|
|
2680
2645
|
size: 12,
|
|
2681
2646
|
"aria-hidden": "true"
|
|
2682
2647
|
}),
|
|
@@ -2684,20 +2649,20 @@ function qe() {
|
|
|
2684
2649
|
t.branch
|
|
2685
2650
|
]
|
|
2686
2651
|
}),
|
|
2687
|
-
/* @__PURE__ */
|
|
2652
|
+
/* @__PURE__ */ D("span", {
|
|
2688
2653
|
className: "cmg-proj-cnt mono tnum",
|
|
2689
2654
|
children: t.transcripts.length
|
|
2690
2655
|
})
|
|
2691
2656
|
]
|
|
2692
2657
|
})]
|
|
2693
|
-
}), i && /* @__PURE__ */
|
|
2658
|
+
}), i && /* @__PURE__ */ D("ul", {
|
|
2694
2659
|
className: "cmg-tx-list",
|
|
2695
|
-
children: t.transcripts.map((t) => /* @__PURE__ */
|
|
2660
|
+
children: t.transcripts.map((t) => /* @__PURE__ */ O("li", {
|
|
2696
2661
|
className: "cmg-tx-row",
|
|
2697
2662
|
children: [
|
|
2698
|
-
/* @__PURE__ */
|
|
2663
|
+
/* @__PURE__ */ D("label", {
|
|
2699
2664
|
className: "check cmg-tx-check",
|
|
2700
|
-
children: /* @__PURE__ */
|
|
2665
|
+
children: /* @__PURE__ */ D("input", {
|
|
2701
2666
|
type: "checkbox",
|
|
2702
2667
|
className: "check-box",
|
|
2703
2668
|
checked: e.has(t.id),
|
|
@@ -2705,24 +2670,24 @@ function qe() {
|
|
|
2705
2670
|
"aria-label": `select ${t.title}`
|
|
2706
2671
|
})
|
|
2707
2672
|
}),
|
|
2708
|
-
/* @__PURE__ */
|
|
2673
|
+
/* @__PURE__ */ D("span", {
|
|
2709
2674
|
className: "cmg-pub-prov",
|
|
2710
|
-
children: /* @__PURE__ */
|
|
2675
|
+
children: /* @__PURE__ */ D(ProviderMark, { id: t.provider })
|
|
2711
2676
|
}),
|
|
2712
|
-
/* @__PURE__ */
|
|
2677
|
+
/* @__PURE__ */ D("span", {
|
|
2713
2678
|
className: "cmg-tx-title",
|
|
2714
2679
|
children: t.title
|
|
2715
2680
|
}),
|
|
2716
|
-
/* @__PURE__ */
|
|
2717
|
-
/* @__PURE__ */
|
|
2681
|
+
/* @__PURE__ */ D(Oe, { v: t.visibility }),
|
|
2682
|
+
/* @__PURE__ */ D("span", {
|
|
2718
2683
|
className: "cmg-tx-date mono tnum",
|
|
2719
2684
|
children: t.date
|
|
2720
2685
|
}),
|
|
2721
|
-
/* @__PURE__ */
|
|
2686
|
+
/* @__PURE__ */ D("button", {
|
|
2722
2687
|
type: "button",
|
|
2723
2688
|
className: "btn btn-sm btn-icon btn-ghost",
|
|
2724
2689
|
"aria-label": `preview ${t.title}`,
|
|
2725
|
-
children: /* @__PURE__ */
|
|
2690
|
+
children: /* @__PURE__ */ D(L, {
|
|
2726
2691
|
size: 14,
|
|
2727
2692
|
"aria-hidden": "true"
|
|
2728
2693
|
})
|
|
@@ -2733,21 +2698,21 @@ function qe() {
|
|
|
2733
2698
|
}, t.id);
|
|
2734
2699
|
})
|
|
2735
2700
|
}),
|
|
2736
|
-
/* @__PURE__ */
|
|
2701
|
+
/* @__PURE__ */ O("div", {
|
|
2737
2702
|
className: "cmg-contribute-foot",
|
|
2738
|
-
children: [/* @__PURE__ */
|
|
2703
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2739
2704
|
className: "cmg-sel-count mono",
|
|
2740
2705
|
children: [
|
|
2741
|
-
/* @__PURE__ */
|
|
2706
|
+
/* @__PURE__ */ D("span", {
|
|
2742
2707
|
className: "tnum",
|
|
2743
2708
|
children: e.size
|
|
2744
2709
|
}),
|
|
2745
2710
|
" selected",
|
|
2746
|
-
f > 0 ? /* @__PURE__ */
|
|
2711
|
+
f > 0 ? /* @__PURE__ */ O("span", {
|
|
2747
2712
|
className: "cmg-sel-warn",
|
|
2748
2713
|
children: [
|
|
2749
2714
|
" · ",
|
|
2750
|
-
/* @__PURE__ */
|
|
2715
|
+
/* @__PURE__ */ D("span", {
|
|
2751
2716
|
className: "tnum",
|
|
2752
2717
|
children: f
|
|
2753
2718
|
}),
|
|
@@ -2755,13 +2720,13 @@ function qe() {
|
|
|
2755
2720
|
]
|
|
2756
2721
|
}) : null
|
|
2757
2722
|
]
|
|
2758
|
-
}), /* @__PURE__ */
|
|
2723
|
+
}), /* @__PURE__ */ O("button", {
|
|
2759
2724
|
type: "button",
|
|
2760
2725
|
className: "btn btn-sm btn-primary",
|
|
2761
2726
|
disabled: e.size === 0,
|
|
2762
2727
|
onClick: () => a(!0),
|
|
2763
2728
|
children: [
|
|
2764
|
-
/* @__PURE__ */
|
|
2729
|
+
/* @__PURE__ */ D(J, {
|
|
2765
2730
|
size: 14,
|
|
2766
2731
|
"aria-hidden": "true"
|
|
2767
2732
|
}),
|
|
@@ -2773,24 +2738,24 @@ function qe() {
|
|
|
2773
2738
|
})]
|
|
2774
2739
|
})
|
|
2775
2740
|
]
|
|
2776
|
-
}), /* @__PURE__ */
|
|
2741
|
+
}), /* @__PURE__ */ D(p, {
|
|
2777
2742
|
open: i,
|
|
2778
|
-
title: /* @__PURE__ */ E
|
|
2743
|
+
title: /* @__PURE__ */ O(E, { children: [
|
|
2779
2744
|
"make ",
|
|
2780
2745
|
f > 1 ? "these" : "this",
|
|
2781
2746
|
" visible?"
|
|
2782
2747
|
] }),
|
|
2783
|
-
intro: f > 0 ? /* @__PURE__ */
|
|
2784
|
-
/* @__PURE__ */
|
|
2748
|
+
intro: f > 0 ? /* @__PURE__ */ O("p", { children: [
|
|
2749
|
+
/* @__PURE__ */ D("span", {
|
|
2785
2750
|
className: "tnum",
|
|
2786
2751
|
children: f
|
|
2787
2752
|
}),
|
|
2788
2753
|
" private transcript",
|
|
2789
2754
|
f === 1 ? "" : "s",
|
|
2790
2755
|
" will become visible to members of ",
|
|
2791
|
-
/* @__PURE__ */
|
|
2756
|
+
/* @__PURE__ */ D("b", { children: Ge.name }),
|
|
2792
2757
|
". visibility will change from private to shared."
|
|
2793
|
-
] }) : /* @__PURE__ */
|
|
2758
|
+
] }) : /* @__PURE__ */ O("p", { children: [
|
|
2794
2759
|
"contributing ",
|
|
2795
2760
|
e.size,
|
|
2796
2761
|
" already-visible transcript",
|
|
@@ -2798,7 +2763,7 @@ function qe() {
|
|
|
2798
2763
|
". no visibility change."
|
|
2799
2764
|
] }),
|
|
2800
2765
|
axes: [{
|
|
2801
|
-
icon:
|
|
2766
|
+
icon: R,
|
|
2802
2767
|
key: "visibility",
|
|
2803
2768
|
value: f > 0 ? "private → shared" : "unchanged",
|
|
2804
2769
|
scope: f > 0 ? `${f} transcript${f === 1 ? "" : "s"} newly exposed` : "no visibility change",
|
|
@@ -2806,28 +2771,28 @@ function qe() {
|
|
|
2806
2771
|
}, {
|
|
2807
2772
|
icon: X,
|
|
2808
2773
|
key: "shared with",
|
|
2809
|
-
value:
|
|
2810
|
-
scope: `${
|
|
2774
|
+
value: Ge.name,
|
|
2775
|
+
scope: `${Ge.members} members can see it`,
|
|
2811
2776
|
tone: "open"
|
|
2812
2777
|
}],
|
|
2813
2778
|
requireConsent: f > 0,
|
|
2814
2779
|
confirmLabel: f > 0 ? "contribute & make visible" : "contribute",
|
|
2815
|
-
confirmIcon:
|
|
2780
|
+
confirmIcon: A,
|
|
2816
2781
|
onCancel: () => a(!1),
|
|
2817
2782
|
onConfirm: () => a(!1),
|
|
2818
|
-
children: /* @__PURE__ */
|
|
2783
|
+
children: /* @__PURE__ */ O("ul", {
|
|
2819
2784
|
className: "cmg-confirm-list",
|
|
2820
|
-
children: [d.slice(0, 5).map((e) => /* @__PURE__ */
|
|
2785
|
+
children: [d.slice(0, 5).map((e) => /* @__PURE__ */ O("li", {
|
|
2821
2786
|
className: "cmg-confirm-tx",
|
|
2822
2787
|
children: [
|
|
2823
|
-
/* @__PURE__ */
|
|
2824
|
-
/* @__PURE__ */
|
|
2788
|
+
/* @__PURE__ */ D(ProviderMark, { id: e.provider }),
|
|
2789
|
+
/* @__PURE__ */ D("span", {
|
|
2825
2790
|
className: "cmg-confirm-title",
|
|
2826
2791
|
children: e.title
|
|
2827
2792
|
}),
|
|
2828
|
-
/* @__PURE__ */
|
|
2793
|
+
/* @__PURE__ */ D(Oe, { v: e.visibility })
|
|
2829
2794
|
]
|
|
2830
|
-
}, e.id)), d.length > 5 ? /* @__PURE__ */
|
|
2795
|
+
}, e.id)), d.length > 5 ? /* @__PURE__ */ O("li", {
|
|
2831
2796
|
className: "cmg-confirm-more mono",
|
|
2832
2797
|
children: [
|
|
2833
2798
|
"…and ",
|
|
@@ -2841,7 +2806,7 @@ function qe() {
|
|
|
2841
2806
|
}
|
|
2842
2807
|
//#endregion
|
|
2843
2808
|
//#region src/ui/commons/Manage.jsx
|
|
2844
|
-
var
|
|
2809
|
+
var qe = {
|
|
2845
2810
|
name: "",
|
|
2846
2811
|
description: null,
|
|
2847
2812
|
linkedGithubOrg: null,
|
|
@@ -2849,15 +2814,15 @@ var Je = {
|
|
|
2849
2814
|
dataAccess: "",
|
|
2850
2815
|
role: "",
|
|
2851
2816
|
memberSince: null
|
|
2852
|
-
},
|
|
2817
|
+
}, Je = {
|
|
2853
2818
|
transcripts: "0",
|
|
2854
2819
|
projects: "0 providers",
|
|
2855
2820
|
tokens: "0",
|
|
2856
2821
|
turns: "0 turns",
|
|
2857
2822
|
contributors: "0 members",
|
|
2858
2823
|
hours: "0 total"
|
|
2859
|
-
},
|
|
2860
|
-
collective:
|
|
2824
|
+
}, Ye = {
|
|
2825
|
+
collective: qe,
|
|
2861
2826
|
providerShare: [],
|
|
2862
2827
|
pendingReview: [],
|
|
2863
2828
|
members: [],
|
|
@@ -2867,14 +2832,14 @@ var Je = {
|
|
|
2867
2832
|
initialRole: "",
|
|
2868
2833
|
initialShowRedaction: !1,
|
|
2869
2834
|
initialBrowseGated: !1,
|
|
2870
|
-
stats:
|
|
2871
|
-
},
|
|
2835
|
+
stats: Je
|
|
2836
|
+
}, Xe = [
|
|
2872
2837
|
"owner",
|
|
2873
2838
|
"member",
|
|
2874
2839
|
"contributor",
|
|
2875
2840
|
"guest"
|
|
2876
2841
|
];
|
|
2877
|
-
function
|
|
2842
|
+
function Ze(e) {
|
|
2878
2843
|
if (!e) return "unknown";
|
|
2879
2844
|
let t = new Date(e);
|
|
2880
2845
|
return Number.isNaN(t.getTime()) ? "unknown" : new Intl.DateTimeFormat("en-US", {
|
|
@@ -2882,51 +2847,51 @@ function Qe(e) {
|
|
|
2882
2847
|
day: "numeric"
|
|
2883
2848
|
}).format(t);
|
|
2884
2849
|
}
|
|
2885
|
-
function
|
|
2886
|
-
let { collective: i =
|
|
2887
|
-
|
|
2850
|
+
function Qe({ data: e = Ye, actions: n = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
2851
|
+
let { collective: i = qe, providerShare: a = [], pendingReview: o = [], members: s = [], redactions: c = [], browseRows: l = [], roleOptions: u = [], initialRole: f = "", initialShowRedaction: p = !1, initialBrowseGated: v = !1, stats: y = Je } = e || Ye, { onRoleChange: b, onJoin: x, onLeave: S, onSettings: w, onContribute: E, onToggleBrowse: k } = n || {}, [A, j] = T(f || i.role || ""), [M, P] = T(!!p), [F, I] = T(!!v), L = A || i.role || "guest", B = L === "owner", H = L === "guest", U = r && u.length > 0, ee = C(() => U ? u : [], [U, u]), te = (e) => {
|
|
2852
|
+
j(e), b?.(e);
|
|
2888
2853
|
};
|
|
2889
|
-
return /* @__PURE__ */
|
|
2854
|
+
return /* @__PURE__ */ D("div", {
|
|
2890
2855
|
className: "cmg-root",
|
|
2891
|
-
children: /* @__PURE__ */
|
|
2856
|
+
children: /* @__PURE__ */ O("div", {
|
|
2892
2857
|
className: "cmg-detail",
|
|
2893
2858
|
children: [
|
|
2894
|
-
/* @__PURE__ */
|
|
2859
|
+
/* @__PURE__ */ O("header", {
|
|
2895
2860
|
className: "cmg-d-hero",
|
|
2896
|
-
children: [/* @__PURE__ */
|
|
2861
|
+
children: [/* @__PURE__ */ O("div", {
|
|
2897
2862
|
className: "crumb cmg-crumb",
|
|
2898
2863
|
children: [
|
|
2899
2864
|
"village ",
|
|
2900
|
-
/* @__PURE__ */
|
|
2865
|
+
/* @__PURE__ */ D(N, {
|
|
2901
2866
|
size: 13,
|
|
2902
2867
|
"aria-hidden": "true"
|
|
2903
2868
|
}),
|
|
2904
2869
|
" collectives",
|
|
2905
2870
|
" ",
|
|
2906
|
-
/* @__PURE__ */
|
|
2871
|
+
/* @__PURE__ */ D(N, {
|
|
2907
2872
|
size: 13,
|
|
2908
2873
|
"aria-hidden": "true"
|
|
2909
2874
|
}),
|
|
2910
|
-
/* @__PURE__ */
|
|
2875
|
+
/* @__PURE__ */ D("span", {
|
|
2911
2876
|
className: "cur",
|
|
2912
2877
|
children: i.name || "collective"
|
|
2913
2878
|
})
|
|
2914
2879
|
]
|
|
2915
|
-
}), /* @__PURE__ */
|
|
2880
|
+
}), /* @__PURE__ */ O("div", {
|
|
2916
2881
|
className: "cmg-d-hero-row",
|
|
2917
|
-
children: [/* @__PURE__ */
|
|
2918
|
-
/* @__PURE__ */
|
|
2882
|
+
children: [/* @__PURE__ */ O("div", { children: [
|
|
2883
|
+
/* @__PURE__ */ D("h2", {
|
|
2919
2884
|
className: "cmg-title",
|
|
2920
2885
|
children: i.name || "collective"
|
|
2921
2886
|
}),
|
|
2922
|
-
/* @__PURE__ */
|
|
2887
|
+
/* @__PURE__ */ D("p", {
|
|
2923
2888
|
className: "cmg-deck",
|
|
2924
2889
|
children: i.description || "shared collective governance"
|
|
2925
2890
|
}),
|
|
2926
|
-
/* @__PURE__ */
|
|
2891
|
+
/* @__PURE__ */ O("span", {
|
|
2927
2892
|
className: "cmg-orgpill mono",
|
|
2928
2893
|
children: [
|
|
2929
|
-
/* @__PURE__ */
|
|
2894
|
+
/* @__PURE__ */ D(V, {
|
|
2930
2895
|
size: 13,
|
|
2931
2896
|
"aria-hidden": "true"
|
|
2932
2897
|
}),
|
|
@@ -2934,64 +2899,64 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
2934
2899
|
i.linkedGithubOrg || "not linked"
|
|
2935
2900
|
]
|
|
2936
2901
|
})
|
|
2937
|
-
] }), /* @__PURE__ */
|
|
2902
|
+
] }), /* @__PURE__ */ O("div", {
|
|
2938
2903
|
className: "cmg-d-actions btn-row",
|
|
2939
2904
|
children: [
|
|
2940
|
-
|
|
2905
|
+
U ? /* @__PURE__ */ D("div", {
|
|
2941
2906
|
className: "cmg-roleswitch",
|
|
2942
2907
|
role: "group",
|
|
2943
2908
|
"aria-label": "view as role",
|
|
2944
|
-
children:
|
|
2909
|
+
children: ee.map((e) => /* @__PURE__ */ D("button", {
|
|
2945
2910
|
type: "button",
|
|
2946
2911
|
className: "cmg-roleseg",
|
|
2947
2912
|
"aria-pressed": A === e,
|
|
2948
|
-
onClick: () =>
|
|
2913
|
+
onClick: () => te(e),
|
|
2949
2914
|
children: e
|
|
2950
2915
|
}, e))
|
|
2951
|
-
}) : /* @__PURE__ */
|
|
2916
|
+
}) : /* @__PURE__ */ D("div", {
|
|
2952
2917
|
className: "cmg-roleswitch",
|
|
2953
2918
|
role: "group",
|
|
2954
2919
|
"aria-label": "your role",
|
|
2955
|
-
children:
|
|
2920
|
+
children: Xe.map((e) => /* @__PURE__ */ D("span", {
|
|
2956
2921
|
className: "cmg-roleseg",
|
|
2957
|
-
"aria-current":
|
|
2958
|
-
"data-active":
|
|
2922
|
+
"aria-current": L === e ? "true" : void 0,
|
|
2923
|
+
"data-active": L === e || void 0,
|
|
2959
2924
|
style: { cursor: "default" },
|
|
2960
2925
|
children: e
|
|
2961
2926
|
}, e))
|
|
2962
2927
|
}),
|
|
2963
|
-
|
|
2928
|
+
H ? /* @__PURE__ */ O("button", {
|
|
2964
2929
|
type: "button",
|
|
2965
2930
|
className: "btn btn-sm btn-primary",
|
|
2966
|
-
onClick: () =>
|
|
2967
|
-
children: [/* @__PURE__ */
|
|
2931
|
+
onClick: () => x?.(),
|
|
2932
|
+
children: [/* @__PURE__ */ D(Y, {
|
|
2968
2933
|
size: 14,
|
|
2969
2934
|
"aria-hidden": "true"
|
|
2970
2935
|
}), " join as contributor"]
|
|
2971
2936
|
}) : null,
|
|
2972
|
-
(
|
|
2937
|
+
(L === "member" || L === "contributor") && E ? /* @__PURE__ */ O("button", {
|
|
2973
2938
|
type: "button",
|
|
2974
2939
|
className: "btn btn-sm btn-primary",
|
|
2975
|
-
onClick: () =>
|
|
2976
|
-
children: [/* @__PURE__ */
|
|
2940
|
+
onClick: () => E?.(),
|
|
2941
|
+
children: [/* @__PURE__ */ D(q, {
|
|
2977
2942
|
size: 14,
|
|
2978
2943
|
"aria-hidden": "true"
|
|
2979
2944
|
}), " contribute"]
|
|
2980
2945
|
}) : null,
|
|
2981
|
-
(
|
|
2946
|
+
(L === "member" || L === "contributor") && S ? /* @__PURE__ */ O("button", {
|
|
2982
2947
|
type: "button",
|
|
2983
2948
|
className: "btn btn-sm btn-danger",
|
|
2984
|
-
onClick: () =>
|
|
2985
|
-
children: [/* @__PURE__ */
|
|
2949
|
+
onClick: () => S?.(),
|
|
2950
|
+
children: [/* @__PURE__ */ D(G, {
|
|
2986
2951
|
size: 14,
|
|
2987
2952
|
"aria-hidden": "true"
|
|
2988
2953
|
}), " leave"]
|
|
2989
2954
|
}) : null,
|
|
2990
|
-
|
|
2955
|
+
B && w ? /* @__PURE__ */ O("button", {
|
|
2991
2956
|
type: "button",
|
|
2992
2957
|
className: "btn btn-sm btn-secondary",
|
|
2993
|
-
onClick: () =>
|
|
2994
|
-
children: [/* @__PURE__ */
|
|
2958
|
+
onClick: () => w?.(),
|
|
2959
|
+
children: [/* @__PURE__ */ D(K, {
|
|
2995
2960
|
size: 14,
|
|
2996
2961
|
"aria-hidden": "true"
|
|
2997
2962
|
}), " settings"]
|
|
@@ -3000,26 +2965,26 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3000
2965
|
})]
|
|
3001
2966
|
})]
|
|
3002
2967
|
}),
|
|
3003
|
-
/* @__PURE__ */
|
|
2968
|
+
/* @__PURE__ */ O("div", {
|
|
3004
2969
|
className: "cmg-tiles",
|
|
3005
2970
|
children: [
|
|
3006
|
-
/* @__PURE__ */
|
|
2971
|
+
/* @__PURE__ */ D(d, {
|
|
3007
2972
|
label: "contributions",
|
|
3008
2973
|
value: i.acceptanceMode || "open",
|
|
3009
2974
|
tone: "teal"
|
|
3010
2975
|
}),
|
|
3011
|
-
/* @__PURE__ */
|
|
2976
|
+
/* @__PURE__ */ D(d, {
|
|
3012
2977
|
label: "access",
|
|
3013
2978
|
value: i.dataAccess || "members only",
|
|
3014
2979
|
tone: "amber"
|
|
3015
2980
|
}),
|
|
3016
|
-
/* @__PURE__ */
|
|
2981
|
+
/* @__PURE__ */ D(d, {
|
|
3017
2982
|
label: "your role",
|
|
3018
|
-
value:
|
|
2983
|
+
value: L
|
|
3019
2984
|
})
|
|
3020
2985
|
]
|
|
3021
2986
|
}),
|
|
3022
|
-
/* @__PURE__ */
|
|
2987
|
+
/* @__PURE__ */ D(h, { tiles: [
|
|
3023
2988
|
{
|
|
3024
2989
|
key: "transcripts",
|
|
3025
2990
|
label: "transcripts",
|
|
@@ -3039,36 +3004,36 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3039
3004
|
sub: y.hours
|
|
3040
3005
|
}
|
|
3041
3006
|
] }),
|
|
3042
|
-
/* @__PURE__ */
|
|
3007
|
+
/* @__PURE__ */ O("div", {
|
|
3043
3008
|
className: "cmg-d-grid",
|
|
3044
|
-
children: [/* @__PURE__ */
|
|
3009
|
+
children: [/* @__PURE__ */ O("main", {
|
|
3045
3010
|
className: "cmg-d-main",
|
|
3046
3011
|
children: [
|
|
3047
|
-
|
|
3012
|
+
a.length > 0 ? /* @__PURE__ */ O("section", {
|
|
3048
3013
|
className: "card cmg-share",
|
|
3049
3014
|
"aria-labelledby": "cmg-share-h",
|
|
3050
|
-
children: [/* @__PURE__ */
|
|
3015
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
3051
3016
|
id: "cmg-share-h",
|
|
3052
3017
|
className: "cmg-sub",
|
|
3053
3018
|
children: "provider share"
|
|
3054
|
-
}), /* @__PURE__ */
|
|
3019
|
+
}), /* @__PURE__ */ D(g, {
|
|
3055
3020
|
label: "provider share",
|
|
3056
3021
|
total: 100,
|
|
3057
|
-
data:
|
|
3022
|
+
data: a.map((e) => ({
|
|
3058
3023
|
label: we(e.id),
|
|
3059
3024
|
value: e.pct
|
|
3060
3025
|
}))
|
|
3061
3026
|
})]
|
|
3062
3027
|
}) : null,
|
|
3063
|
-
|
|
3028
|
+
o.length > 0 ? /* @__PURE__ */ D("div", {
|
|
3064
3029
|
style: {
|
|
3065
3030
|
overflow: "auto",
|
|
3066
3031
|
maxWidth: "100%"
|
|
3067
3032
|
},
|
|
3068
|
-
children: /* @__PURE__ */
|
|
3033
|
+
children: /* @__PURE__ */ D(m, {
|
|
3069
3034
|
title: "pending review",
|
|
3070
3035
|
emptyLabel: "no shares awaiting review.",
|
|
3071
|
-
items:
|
|
3036
|
+
items: o.map((e) => ({
|
|
3072
3037
|
id: e.id,
|
|
3073
3038
|
kind: "share",
|
|
3074
3039
|
who: e.title || "untitled transcript",
|
|
@@ -3076,188 +3041,188 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3076
3041
|
}))
|
|
3077
3042
|
})
|
|
3078
3043
|
}) : null,
|
|
3079
|
-
|
|
3044
|
+
c.length > 0 ? /* @__PURE__ */ O("section", {
|
|
3080
3045
|
className: "card cmg-redact-sec",
|
|
3081
3046
|
"aria-labelledby": "cmg-redact-h",
|
|
3082
|
-
children: [/* @__PURE__ */
|
|
3047
|
+
children: [/* @__PURE__ */ O("div", {
|
|
3083
3048
|
className: "cmg-queue-head",
|
|
3084
|
-
children: [/* @__PURE__ */
|
|
3049
|
+
children: [/* @__PURE__ */ O("h3", {
|
|
3085
3050
|
id: "cmg-redact-h",
|
|
3086
3051
|
className: "cmg-sub",
|
|
3087
|
-
children: [/* @__PURE__ */
|
|
3052
|
+
children: [/* @__PURE__ */ D(q, {
|
|
3088
3053
|
size: 15,
|
|
3089
3054
|
"aria-hidden": "true"
|
|
3090
3055
|
}), " redaction review"]
|
|
3091
|
-
}), /* @__PURE__ */
|
|
3056
|
+
}), /* @__PURE__ */ O("button", {
|
|
3092
3057
|
type: "button",
|
|
3093
3058
|
className: "btn btn-sm btn-ghost",
|
|
3094
|
-
"aria-expanded":
|
|
3059
|
+
"aria-expanded": M,
|
|
3095
3060
|
onClick: () => P((e) => !e),
|
|
3096
|
-
children: [
|
|
3061
|
+
children: [D(M ? z : R, {
|
|
3097
3062
|
size: 14,
|
|
3098
3063
|
"aria-hidden": "true"
|
|
3099
|
-
}),
|
|
3064
|
+
}), M ? "hide" : "show"]
|
|
3100
3065
|
})]
|
|
3101
|
-
}),
|
|
3066
|
+
}), M ? /* @__PURE__ */ D("div", {
|
|
3102
3067
|
className: "cmg-redact-list",
|
|
3103
|
-
children:
|
|
3068
|
+
children: c.map((e) => /* @__PURE__ */ O("article", {
|
|
3104
3069
|
className: "cmg-redact",
|
|
3105
3070
|
children: [
|
|
3106
|
-
/* @__PURE__ */
|
|
3071
|
+
/* @__PURE__ */ O("div", {
|
|
3107
3072
|
className: "cmg-redact-head",
|
|
3108
|
-
children: [/* @__PURE__ */
|
|
3073
|
+
children: [/* @__PURE__ */ D("span", {
|
|
3109
3074
|
className: "cmg-redact-badges",
|
|
3110
|
-
children: /* @__PURE__ */
|
|
3111
|
-
}), /* @__PURE__ */
|
|
3075
|
+
children: /* @__PURE__ */ D(_, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
|
|
3076
|
+
}), /* @__PURE__ */ D("span", {
|
|
3112
3077
|
className: "cmg-redact-file mono",
|
|
3113
3078
|
children: e.file || "unknown"
|
|
3114
3079
|
})]
|
|
3115
3080
|
}),
|
|
3116
|
-
/* @__PURE__ */
|
|
3081
|
+
/* @__PURE__ */ D("p", {
|
|
3117
3082
|
className: "cmg-redact-summary mono",
|
|
3118
3083
|
children: e.summary || "redaction review item"
|
|
3119
3084
|
}),
|
|
3120
|
-
/* @__PURE__ */
|
|
3085
|
+
/* @__PURE__ */ O("div", {
|
|
3121
3086
|
className: "callout cmg-redact-note",
|
|
3122
|
-
children: [/* @__PURE__ */
|
|
3087
|
+
children: [/* @__PURE__ */ D(q, {
|
|
3123
3088
|
size: 16,
|
|
3124
3089
|
"aria-hidden": "true"
|
|
3125
|
-
}), /* @__PURE__ */
|
|
3090
|
+
}), /* @__PURE__ */ D("div", { children: e.tip || "review this redaction item before exposing it." })]
|
|
3126
3091
|
})
|
|
3127
3092
|
]
|
|
3128
3093
|
}, e.id))
|
|
3129
3094
|
}) : null]
|
|
3130
3095
|
}) : null,
|
|
3131
|
-
/* @__PURE__ */
|
|
3096
|
+
/* @__PURE__ */ O("section", {
|
|
3132
3097
|
className: "card cmg-browser",
|
|
3133
3098
|
"aria-labelledby": "cmg-browser-h",
|
|
3134
|
-
children: [/* @__PURE__ */
|
|
3099
|
+
children: [/* @__PURE__ */ O("div", {
|
|
3135
3100
|
className: "cmg-queue-head",
|
|
3136
|
-
children: [/* @__PURE__ */
|
|
3101
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
3137
3102
|
id: "cmg-browser-h",
|
|
3138
3103
|
className: "cmg-sub",
|
|
3139
3104
|
children: "data"
|
|
3140
|
-
}), /* @__PURE__ */
|
|
3105
|
+
}), /* @__PURE__ */ O("button", {
|
|
3141
3106
|
type: "button",
|
|
3142
3107
|
className: "btn btn-sm btn-ghost",
|
|
3143
3108
|
"aria-pressed": F,
|
|
3144
3109
|
onClick: () => {
|
|
3145
|
-
|
|
3110
|
+
I((e) => {
|
|
3146
3111
|
let t = !e;
|
|
3147
3112
|
return k?.(t), t;
|
|
3148
3113
|
});
|
|
3149
3114
|
},
|
|
3150
|
-
children: [
|
|
3115
|
+
children: [D(F ? W : R, {
|
|
3151
3116
|
size: 14,
|
|
3152
3117
|
"aria-hidden": "true"
|
|
3153
3118
|
}), F ? "gated view" : "open view"]
|
|
3154
3119
|
})]
|
|
3155
|
-
}), F ? /* @__PURE__ */
|
|
3120
|
+
}), F ? /* @__PURE__ */ O("div", {
|
|
3156
3121
|
className: "empty cmg-locked",
|
|
3157
3122
|
children: [
|
|
3158
|
-
/* @__PURE__ */
|
|
3123
|
+
/* @__PURE__ */ D("span", {
|
|
3159
3124
|
className: "ring",
|
|
3160
|
-
children: /* @__PURE__ */
|
|
3125
|
+
children: /* @__PURE__ */ D(W, {
|
|
3161
3126
|
size: 20,
|
|
3162
3127
|
"aria-hidden": "true"
|
|
3163
3128
|
})
|
|
3164
3129
|
}),
|
|
3165
|
-
/* @__PURE__ */
|
|
3166
|
-
/* @__PURE__ */
|
|
3167
|
-
|
|
3130
|
+
/* @__PURE__ */ D("h3", { children: "data access restricted" }),
|
|
3131
|
+
/* @__PURE__ */ D("p", { children: "this collective is members-only. join as a full member to browse the dataset." }),
|
|
3132
|
+
H ? /* @__PURE__ */ O("button", {
|
|
3168
3133
|
type: "button",
|
|
3169
3134
|
className: "btn btn-sm btn-primary",
|
|
3170
|
-
onClick: () =>
|
|
3171
|
-
children: [/* @__PURE__ */
|
|
3135
|
+
onClick: () => x?.(),
|
|
3136
|
+
children: [/* @__PURE__ */ D(Y, {
|
|
3172
3137
|
size: 14,
|
|
3173
3138
|
"aria-hidden": "true"
|
|
3174
3139
|
}), " join as contributor"]
|
|
3175
3140
|
}) : null
|
|
3176
3141
|
]
|
|
3177
|
-
}) :
|
|
3142
|
+
}) : l.length > 0 ? /* @__PURE__ */ O("table", {
|
|
3178
3143
|
className: "dtable cmg-dtable",
|
|
3179
|
-
children: [/* @__PURE__ */
|
|
3180
|
-
/* @__PURE__ */
|
|
3144
|
+
children: [/* @__PURE__ */ D("thead", { children: /* @__PURE__ */ O("tr", { children: [
|
|
3145
|
+
/* @__PURE__ */ D("th", {
|
|
3181
3146
|
scope: "col",
|
|
3182
3147
|
children: "title"
|
|
3183
3148
|
}),
|
|
3184
|
-
/* @__PURE__ */
|
|
3149
|
+
/* @__PURE__ */ D("th", {
|
|
3185
3150
|
scope: "col",
|
|
3186
3151
|
children: "contributor"
|
|
3187
3152
|
}),
|
|
3188
|
-
/* @__PURE__ */
|
|
3153
|
+
/* @__PURE__ */ D("th", {
|
|
3189
3154
|
scope: "col",
|
|
3190
3155
|
children: "provider"
|
|
3191
3156
|
}),
|
|
3192
|
-
/* @__PURE__ */
|
|
3157
|
+
/* @__PURE__ */ D("th", {
|
|
3193
3158
|
scope: "col",
|
|
3194
3159
|
className: "cmg-num",
|
|
3195
3160
|
children: "turns"
|
|
3196
3161
|
}),
|
|
3197
|
-
/* @__PURE__ */
|
|
3162
|
+
/* @__PURE__ */ D("th", {
|
|
3198
3163
|
scope: "col",
|
|
3199
3164
|
className: "cmg-num",
|
|
3200
3165
|
children: "tokens"
|
|
3201
3166
|
}),
|
|
3202
|
-
/* @__PURE__ */
|
|
3167
|
+
/* @__PURE__ */ D("th", {
|
|
3203
3168
|
scope: "col",
|
|
3204
3169
|
children: "date"
|
|
3205
3170
|
})
|
|
3206
|
-
] }) }), /* @__PURE__ */
|
|
3207
|
-
/* @__PURE__ */
|
|
3208
|
-
/* @__PURE__ */
|
|
3171
|
+
] }) }), /* @__PURE__ */ D("tbody", { children: l.map((e) => /* @__PURE__ */ O("tr", { children: [
|
|
3172
|
+
/* @__PURE__ */ D("td", { children: e.title || "untitled transcript" }),
|
|
3173
|
+
/* @__PURE__ */ D("td", {
|
|
3209
3174
|
className: "mono",
|
|
3210
3175
|
children: e.contributor || "anon"
|
|
3211
3176
|
}),
|
|
3212
|
-
/* @__PURE__ */
|
|
3213
|
-
/* @__PURE__ */
|
|
3177
|
+
/* @__PURE__ */ O("td", { children: [
|
|
3178
|
+
/* @__PURE__ */ D(V, {
|
|
3214
3179
|
size: 12,
|
|
3215
3180
|
"aria-hidden": "true"
|
|
3216
3181
|
}),
|
|
3217
3182
|
" ",
|
|
3218
|
-
e.providerId ? we(e.providerId) :
|
|
3183
|
+
e.providerId ? we(e.providerId) : Ce(e.provider)
|
|
3219
3184
|
] }),
|
|
3220
|
-
/* @__PURE__ */
|
|
3185
|
+
/* @__PURE__ */ D("td", {
|
|
3221
3186
|
className: "cmg-num tnum",
|
|
3222
3187
|
children: e.turns || "0"
|
|
3223
3188
|
}),
|
|
3224
|
-
/* @__PURE__ */
|
|
3189
|
+
/* @__PURE__ */ D("td", {
|
|
3225
3190
|
className: "cmg-num tnum",
|
|
3226
3191
|
children: e.tokens || "0"
|
|
3227
3192
|
}),
|
|
3228
|
-
/* @__PURE__ */
|
|
3193
|
+
/* @__PURE__ */ D("td", {
|
|
3229
3194
|
className: "mono tnum",
|
|
3230
|
-
children: e.date ||
|
|
3195
|
+
children: e.date || Ze(null)
|
|
3231
3196
|
})
|
|
3232
3197
|
] }, `${e.title}-${e.contributor}`)) })]
|
|
3233
|
-
}) : /* @__PURE__ */
|
|
3198
|
+
}) : /* @__PURE__ */ O("div", {
|
|
3234
3199
|
className: "empty cmg-locked",
|
|
3235
3200
|
children: [
|
|
3236
|
-
/* @__PURE__ */
|
|
3201
|
+
/* @__PURE__ */ D("span", {
|
|
3237
3202
|
className: "ring",
|
|
3238
|
-
children: /* @__PURE__ */
|
|
3203
|
+
children: /* @__PURE__ */ D(X, {
|
|
3239
3204
|
size: 20,
|
|
3240
3205
|
"aria-hidden": "true"
|
|
3241
3206
|
})
|
|
3242
3207
|
}),
|
|
3243
|
-
/* @__PURE__ */
|
|
3244
|
-
/* @__PURE__ */
|
|
3208
|
+
/* @__PURE__ */ D("h3", { children: "no data yet" }),
|
|
3209
|
+
/* @__PURE__ */ D("p", { children: "this collective has no visible transcripts to browse." })
|
|
3245
3210
|
]
|
|
3246
3211
|
})]
|
|
3247
3212
|
})
|
|
3248
3213
|
]
|
|
3249
|
-
}),
|
|
3214
|
+
}), s.length > 0 ? /* @__PURE__ */ D("aside", {
|
|
3250
3215
|
className: "sidebar cmg-d-rail",
|
|
3251
3216
|
"aria-label": "collective sidebar",
|
|
3252
|
-
children: /* @__PURE__ */
|
|
3217
|
+
children: /* @__PURE__ */ D("div", {
|
|
3253
3218
|
style: {
|
|
3254
3219
|
overflow: "auto",
|
|
3255
3220
|
maxWidth: "100%"
|
|
3256
3221
|
},
|
|
3257
|
-
children: /* @__PURE__ */
|
|
3222
|
+
children: /* @__PURE__ */ D(t, {
|
|
3258
3223
|
title: "members",
|
|
3259
3224
|
roles: ["member", "contributor"],
|
|
3260
|
-
members:
|
|
3225
|
+
members: s.map((e) => ({
|
|
3261
3226
|
handle: e.handle || e.githubUsername || "@unknown",
|
|
3262
3227
|
name: e.name || e.displayName || e.githubUsername || "unknown",
|
|
3263
3228
|
role: e.role || "member",
|
|
@@ -3272,4 +3237,4 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3272
3237
|
});
|
|
3273
3238
|
}
|
|
3274
3239
|
//#endregion
|
|
3275
|
-
export {
|
|
3240
|
+
export { se as ACCEPTANCE_MODES, ce as COLLECTIVE_ROLES, He as CollectiveDetailView, Ue as CollectiveSettingsView, Fe as CollectivesView, Ke as ContributeView, Q as DATA_ACCESS_POLICIES, Se as Explore, Qe as Manage, ke as PublishView, $ as TRANSCRIPT_DELETION_POLICIES, oe as TRANSCRIPT_VISIBILITIES };
|