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