@peasant-labs/fairtrade 0.0.51 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/commons.js +544 -522
- package/dist/lib/components.css +1 -1
- package/dist/lib/share.js +2 -2
- package/dist/lib/tokens.css +2 -2
- package/dist/lib/tokens.json +2 -2
- package/dist/lib/types/AppSidebar.d.ts +9 -11
- package/dist/lib/types/Avatar.d.ts +2 -2
- package/dist/lib/types/Dialog.d.ts +1 -1
- package/dist/lib/types/Input.d.ts +3 -3
- package/dist/lib/types/OverflowList.d.ts +1 -1
- package/dist/lib/types/RepoPicker.d.ts +3 -1
- package/dist/lib/types/Switch.d.ts +1 -1
- package/dist/lib/types/commons/Explore.d.ts +1 -1
- package/dist/lib/types/commons/types.d.ts +12 -0
- package/dist/lib/{ui-Do7A_I-0.js → ui-BVkbnMN5.js} +1637 -1597
- package/dist/lib/ui.js +1 -1
- package/package.json +1 -1
- package/dist/lib/abnfDiagram-WEYOIA3C-D4LMNFIJ.js +0 -89
- package/dist/lib/arc-1xTxsoRi.js +0 -80
- package/dist/lib/architecture-WOLXFQ4H-c6RsZuzu.js +0 -3
- package/dist/lib/architectureDiagram-ZHVYKT53-DTINqD5R.js +0 -4145
- package/dist/lib/array-CApNbSU9.js +0 -6
- package/dist/lib/blockDiagram-RJAE7QA3-CUYHoR3g.js +0 -1946
- package/dist/lib/c4Diagram-XDPPPE54-Cdx6_DsI.js +0 -2990
- package/dist/lib/channel-DagAO2vE.js +0 -5
- package/dist/lib/chunk-2E7WHVMD-BzhgXW3b.js +0 -490
- package/dist/lib/chunk-2Q5K7J3B-DWNwIK5Y.js +0 -15
- package/dist/lib/chunk-4EMNKR2T-DhFrQz9k.js +0 -236
- package/dist/lib/chunk-55XCU76K-CI0GXDkJ.js +0 -61
- package/dist/lib/chunk-5VM5RSS4-BAQ-46g4.js +0 -5
- package/dist/lib/chunk-7S6XSTFO-CMt_p-O6.js +0 -1373
- package/dist/lib/chunk-AQDTSKZB-DrZccIQa.js +0 -1847
- package/dist/lib/chunk-DSNLSHJZ-CpA9d2CJ.js +0 -4044
- package/dist/lib/chunk-DUW6YSOI-C-tN4Kiv.js +0 -10
- package/dist/lib/chunk-EJLWFMJV-B30MNYvY.js +0 -75
- package/dist/lib/chunk-HAGFOTED-DMU2JNZM.js +0 -4487
- package/dist/lib/chunk-HNE4Q36P-BIA0n2gA.js +0 -363
- package/dist/lib/chunk-J5ZVWO5B-CA_-jk8G.js +0 -12
- package/dist/lib/chunk-JWPE2WC7-KRpHbrIX.js +0 -8
- package/dist/lib/chunk-LNGE3PJU-CMGaAEAh.js +0 -1513
- package/dist/lib/chunk-NGNAAXSQ-D7Dvct7J.js +0 -19774
- package/dist/lib/chunk-NQOKRVIF-MK9F46y3.js +0 -4258
- package/dist/lib/chunk-OYAV6JZA-B1yICcbU.js +0 -10
- package/dist/lib/chunk-UHW7PFBP-CLrOaA0y.js +0 -67
- package/dist/lib/chunk-VQ5W62QI-_ZR3gKe4.js +0 -26
- package/dist/lib/chunk-WQQL4CDK-DFtyhYZq.js +0 -693
- package/dist/lib/chunk-XXDRQBXY-uzyNBbgx.js +0 -9
- package/dist/lib/chunk-Y2CYZVJY-BYzrzvCI.js +0 -12
- package/dist/lib/chunk-YZO67HFG-D1jKt78p.js +0 -275
- package/dist/lib/chunk-ZAUX2LTX-7XO0Yj1z.js +0 -37
- package/dist/lib/chunk-ZCHMQSOR-CxoKltfF.js +0 -349
- package/dist/lib/classDiagram-v2-4MYWR3UA-BPvwhZqw.js +0 -3397
- package/dist/lib/cose-bilkent-JH36ORCC-Oj79uOIQ.js +0 -2250
- package/dist/lib/cynefin-EF2NZ3EQ-COX3NRum.js +0 -3
- package/dist/lib/cynefinDiagram-WF24UDRP-UzTptNAX.js +0 -349
- package/dist/lib/cytoscape.esm-0ojxgO9x.js +0 -18161
- package/dist/lib/dagre-NK4GIZVX-DWZr-NGm.js +0 -2356
- package/dist/lib/defaultLocale-BbgDuMnp.js +0 -201
- package/dist/lib/diagram-CBK3MWTC-CsyKuv-w.js +0 -525
- package/dist/lib/diagram-I5XIIV2D-DWY2JSPC.js +0 -134
- package/dist/lib/diagram-ODIL2UCW-DUptj0JZ.js +0 -301
- package/dist/lib/diagram-PFBEJUXE-N5XnIBqM.js +0 -447
- package/dist/lib/diagram-RJA3I4VV-B9XgohYo.js +0 -214
- package/dist/lib/diagram-TYUNFSNR-XnsJIeAd.js +0 -5084
- package/dist/lib/dist-AMlsjiDX.js +0 -59
- package/dist/lib/ebnfDiagram-V4P3TTPT-BssHqFox.js +0 -100
- package/dist/lib/elk-QONTBCTQ-DwmwqYgP.js +0 -47944
- package/dist/lib/erDiagram-KYQIGQAA-BQiXw1Tw.js +0 -1970
- package/dist/lib/eventmodeling-K75KTNOO-DDb--yMc.js +0 -3
- package/dist/lib/flowDiagram-IUGLLWBU-BEqqF1y2.js +0 -17
- package/dist/lib/ganttDiagram-R7GPNTJY-BWtGXxEF.js +0 -3094
- package/dist/lib/gitGraph-VSP46ZUC-BSwOaak_.js +0 -3
- package/dist/lib/gitGraphDiagram-PDYL7XHY-CHGNuGbk.js +0 -729
- package/dist/lib/graphlib-Dndp26xU.js +0 -1267
- package/dist/lib/info-OHQRW6UA-Dk06sZRe.js +0 -3
- package/dist/lib/infoDiagram-MVDRKAX5-Cdhxnjmi.js +0 -20
- package/dist/lib/init-Bwwdo3M6.js +0 -15
- package/dist/lib/ishikawaDiagram-HPEHV2GE-Dzhti-GJ.js +0 -719
- package/dist/lib/journeyDiagram-BOSHW7O7-C3_vsSjw.js +0 -884
- package/dist/lib/kanban-definition-FNSA4HC5-XsfCEsjn.js +0 -976
- package/dist/lib/katex-Dw0PnoPU.js +0 -21850
- package/dist/lib/line-C9krU3Sv.js +0 -34
- package/dist/lib/linear-Cvilv3OA.js +0 -289
- package/dist/lib/mermaid-parser.core-I7qQ_fxz.js +0 -638
- package/dist/lib/mermaid.core-UNHMAbBP.js +0 -1126
- package/dist/lib/mindmap-definition-6OY57UG3-CAua-JvB.js +0 -1011
- package/dist/lib/ordinal-C55HfHHp.js +0 -65
- package/dist/lib/packet-JDAUHWVQ-DZ-MKx4I.js +0 -3
- package/dist/lib/path-DNvJyUE8.js +0 -85
- package/dist/lib/pegDiagram-ECIUJNBX-BCxa_IO0.js +0 -94
- package/dist/lib/pie-XZMESJXO-DpCa-Nnq.js +0 -3
- package/dist/lib/pieDiagram-GNMPY74T-CE_C3dCB.js +0 -205
- package/dist/lib/quadrantDiagram-D57K4MC3-CDgzdMoL.js +0 -2001
- package/dist/lib/radar-ABXABTNO-BOVK7L9p.js +0 -3
- package/dist/lib/railroad-I3PHUGI6-B6spKM0Z.js +0 -3
- package/dist/lib/railroad-abnf-LNEFI6M7-DEWqfByZ.js +0 -3
- package/dist/lib/railroad-ebnf-DWYD2UWJ-CWRLtxHB.js +0 -3
- package/dist/lib/railroad-peg-JR7BVNR7-C-3NHSsk.js +0 -3
- package/dist/lib/railroadDiagram-Y72NRBL7-a8YVk8LT.js +0 -76
- package/dist/lib/requirementDiagram-EQYSW5RA-B9HolqxU.js +0 -2228
- package/dist/lib/rough.esm-a8mysczE.js +0 -1352
- package/dist/lib/sankeyDiagram-SY24JHO5-CLFMtMJG.js +0 -970
- package/dist/lib/sequenceDiagram-BLEHNHQU-B5wfSV85.js +0 -4253
- package/dist/lib/sizeCapture-INFHLROL-BWGCc9aa.js +0 -46
- package/dist/lib/src-Dcy0zUZH.js +0 -2153
- package/dist/lib/stateDiagram-v2-A6IESKWZ-C92vye4N.js +0 -2143
- package/dist/lib/swimlanes-B3ENRKFQ-B6-i-tPc.js +0 -4764
- package/dist/lib/swimlanesDiagram-AYQRV4AK-CbkBeql-.js +0 -28
- package/dist/lib/timeline-definition-JXYKGLGB-D2Ip4r72.js +0 -1073
- package/dist/lib/treeView-D4JQ5SDB-CFaKQ_2T.js +0 -3
- package/dist/lib/treemap-SAJKECNS-BQ6z7Z3g.js +0 -3
- package/dist/lib/usecaseDiagram-WPOLBNNX-BK1Anch1.js +0 -7190
- package/dist/lib/vennDiagram-Q3Y3IDCW-B6YTBqTS.js +0 -1880
- package/dist/lib/wardley-7MLQ67FV-DChYwu4i.js +0 -3
- package/dist/lib/wardleyDiagram-IVAIDKWA-D5I1qLUK.js +0 -645
- package/dist/lib/xychartDiagram-4URNHDU4-B6RXyhTO.js +0 -2218
package/dist/lib/commons.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Dt as e, Tt as t, ft as n, mt as r } from "./GraphLegend-e9x79JtU.js";
|
|
2
|
-
import { $ as
|
|
1
|
+
import { Dt as e, Tt as t, ft as n, mt as r, pt as i } from "./GraphLegend-e9x79JtU.js";
|
|
2
|
+
import { $ as a, $t as o, Gn as s, In as c, O as l, Qn as u, St as d, Xn as f, Yn as p, Zt as m, _t as h, at as g, bt as _, en as v, ht as y, k as b, nt as x, ot as S, pr as ee, tn as C, tt as w, vt as T, yt as E } from "./ui-BVkbnMN5.js";
|
|
3
3
|
import { p as D } from "./time-CpVBzcqQ.js";
|
|
4
4
|
import { i as O, o as k, r as A } from "./format-B3uT2wzU.js";
|
|
5
|
-
import { useEffect as j, useId as
|
|
5
|
+
import { useEffect as j, useId as te, useMemo as M, useRef as N, useState as P } from "react";
|
|
6
6
|
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
7
|
-
import { ArrowRight as
|
|
7
|
+
import { ArrowRight as ne, Check as R, ChevronDown as re, ChevronRight as z, ClipboardCheck as ie, Compass as ae, Copy as oe, ExternalLink as se, Eye as B, EyeOff as V, FileText as ce, FolderGit2 as H, GitBranch as le, GitPullRequest as U, Hash as ue, KeyRound as W, LayoutGrid as de, List as fe, Lock as G, LogOut as K, MoreHorizontal as q, Plus as J, Search as pe, SearchX as me, Settings as Y, ShieldAlert as he, SlidersHorizontal as ge, TriangleAlert as X, Upload as Z, User as _e, UserPlus as ve, Users as Q, X as ye } from "lucide-react";
|
|
8
8
|
//#region src/ui/commons/types.js
|
|
9
|
-
var
|
|
9
|
+
var be = Object.freeze([
|
|
10
10
|
"public",
|
|
11
11
|
"private",
|
|
12
12
|
"shared"
|
|
13
|
-
]),
|
|
13
|
+
]), xe = Object.freeze([
|
|
14
14
|
"open",
|
|
15
15
|
"verified_only",
|
|
16
16
|
"curated"
|
|
17
|
-
]),
|
|
17
|
+
]), Se = Object.freeze([
|
|
18
18
|
"members_only",
|
|
19
19
|
"contributors",
|
|
20
20
|
"public"
|
|
21
|
-
]),
|
|
21
|
+
]), Ce = Object.freeze(["user_choice", "mandatory"]), we = Object.freeze([
|
|
22
22
|
"owner",
|
|
23
23
|
"member",
|
|
24
24
|
"contributor",
|
|
25
25
|
"pending"
|
|
26
|
-
]),
|
|
26
|
+
]), $ = Object.freeze({
|
|
27
27
|
transcripts: {
|
|
28
28
|
transcripts: [
|
|
29
29
|
{
|
|
@@ -180,14 +180,14 @@ var ve = Object.freeze([
|
|
|
180
180
|
usageCount: 24
|
|
181
181
|
}
|
|
182
182
|
]
|
|
183
|
-
}),
|
|
183
|
+
}), Te = A, Ee = (e) => {
|
|
184
184
|
let t = Math.max(0, Math.round(e / 6e4));
|
|
185
185
|
return t >= 60 ? `${Math.floor(t / 60)}h ${String(t % 60).padStart(2, "0")}m` : `${t}min`;
|
|
186
|
-
},
|
|
187
|
-
function
|
|
186
|
+
}, De = O, Oe = (e = "") => e.split(/[\s-]+/).filter(Boolean).slice(0, 2).map((e) => e[0]).join("").toUpperCase() || "?", ke = (e) => e.trim().toLowerCase();
|
|
187
|
+
function Ae(e) {
|
|
188
188
|
return e ? e.length ? e[0].toUpperCase() + e.slice(1) : e : "";
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function je(e, t) {
|
|
191
191
|
let n = /* @__PURE__ */ new Map();
|
|
192
192
|
for (let r of e) {
|
|
193
193
|
let e = t(r);
|
|
@@ -195,16 +195,16 @@ function Ae(e, t) {
|
|
|
195
195
|
}
|
|
196
196
|
return n;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Me(e, t, n) {
|
|
199
199
|
t && (e.preventDefault(), t(n));
|
|
200
200
|
}
|
|
201
|
-
function Me(e) {
|
|
202
|
-
return e ?? Ce;
|
|
203
|
-
}
|
|
204
201
|
function Ne(e) {
|
|
202
|
+
return e ?? $;
|
|
203
|
+
}
|
|
204
|
+
function Pe(e) {
|
|
205
205
|
return Number.isInteger(e) && e >= 1 ? e : 1;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Fe({ transcript: e, href: t, onOpen: n, cardHeading: i = "h3" }) {
|
|
208
208
|
let o = /* @__PURE__ */ L(F, { children: [
|
|
209
209
|
/* @__PURE__ */ L("div", {
|
|
210
210
|
className: "card-head",
|
|
@@ -217,11 +217,11 @@ function Pe({ transcript: e, href: t, onOpen: n, cardHeading: a = "h3" }) {
|
|
|
217
217
|
className: "mono",
|
|
218
218
|
children: e.modelName || e.modelProvider
|
|
219
219
|
})]
|
|
220
|
-
}), /* @__PURE__ */ I(
|
|
220
|
+
}), /* @__PURE__ */ I(a, { visibility: e.visibility })]
|
|
221
221
|
}),
|
|
222
|
-
/* @__PURE__ */ I(
|
|
222
|
+
/* @__PURE__ */ I(i, {
|
|
223
223
|
className: "cex-title",
|
|
224
|
-
children:
|
|
224
|
+
children: Ae(e.title || "untitled transcript")
|
|
225
225
|
}),
|
|
226
226
|
e.projectName && /* @__PURE__ */ I("p", {
|
|
227
227
|
className: "cex-proj",
|
|
@@ -238,21 +238,21 @@ function Pe({ transcript: e, href: t, onOpen: n, cardHeading: a = "h3" }) {
|
|
|
238
238
|
children: [/* @__PURE__ */ I("span", {
|
|
239
239
|
className: "avatar",
|
|
240
240
|
"aria-hidden": "true",
|
|
241
|
-
children:
|
|
241
|
+
children: Oe(e.owner.displayName || e.owner.githubUsername)
|
|
242
242
|
}), /* @__PURE__ */ L("span", {
|
|
243
243
|
className: "cex-handle mono",
|
|
244
244
|
children: ["@", e.owner.githubUsername]
|
|
245
245
|
})]
|
|
246
246
|
}), /* @__PURE__ */ I("span", {
|
|
247
247
|
className: "cex-date tnum",
|
|
248
|
-
children:
|
|
248
|
+
children: De(e.sessionStart || e.sessionEnd || "")
|
|
249
249
|
})]
|
|
250
250
|
})
|
|
251
251
|
] });
|
|
252
252
|
return t ? /* @__PURE__ */ I("a", {
|
|
253
253
|
href: t,
|
|
254
254
|
className: "card cex-tcard",
|
|
255
|
-
onClick: (t) =>
|
|
255
|
+
onClick: (t) => Me(t, n, e),
|
|
256
256
|
children: o
|
|
257
257
|
}) : /* @__PURE__ */ I("button", {
|
|
258
258
|
type: "button",
|
|
@@ -261,43 +261,47 @@ function Pe({ transcript: e, href: t, onOpen: n, cardHeading: a = "h3" }) {
|
|
|
261
261
|
children: o
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
let
|
|
264
|
+
function Ie({ transcript: e, href: t, onOpen: n }) {
|
|
265
|
+
let r = /* @__PURE__ */ L(F, { children: [
|
|
266
266
|
/* @__PURE__ */ L("span", {
|
|
267
|
-
className: "cex-trow-
|
|
268
|
-
children: [/* @__PURE__ */ I(
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
267
|
+
className: "cex-trow-main",
|
|
268
|
+
children: [/* @__PURE__ */ I("span", {
|
|
269
|
+
className: "cex-trow-title",
|
|
270
|
+
children: e.title || "untitled transcript"
|
|
271
|
+
}), /* @__PURE__ */ L("span", {
|
|
272
|
+
className: "cex-trow-model",
|
|
273
|
+
children: [/* @__PURE__ */ I(i, { harness: e.modelProvider }), e.modelName && /* @__PURE__ */ I("span", { children: e.modelName })]
|
|
274
|
+
})]
|
|
273
275
|
}),
|
|
274
276
|
/* @__PURE__ */ L("span", {
|
|
275
277
|
className: "cex-trow-stats mono tnum",
|
|
276
278
|
children: [
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
279
|
+
/* @__PURE__ */ I("span", { children: e.durationMs == null ? "" : Ee(e.durationMs) }),
|
|
280
|
+
/* @__PURE__ */ I("span", { children: e.turnCount == null ? "" : `${A(e.turnCount)} ${e.turnCount === 1 ? "turn" : "turns"}` }),
|
|
281
|
+
/* @__PURE__ */ I("span", { children: e.toolCallCount == null ? "" : `${A(e.toolCallCount)} ${e.toolCallCount === 1 ? "tool" : "tools"}` })
|
|
280
282
|
]
|
|
281
283
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
className: "cex-trow-
|
|
284
|
-
children:
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
/* @__PURE__ */ L("span", {
|
|
285
|
+
className: "cex-trow-end",
|
|
286
|
+
children: [/* @__PURE__ */ I("span", {
|
|
287
|
+
className: "cex-trow-date mono tnum",
|
|
288
|
+
children: De(e.sessionStart || e.sessionEnd || "")
|
|
289
|
+
}), /* @__PURE__ */ I(a, { visibility: e.visibility })]
|
|
290
|
+
})
|
|
287
291
|
] });
|
|
288
292
|
return t ? /* @__PURE__ */ I("a", {
|
|
289
293
|
href: t,
|
|
290
294
|
className: "row cex-trow",
|
|
291
|
-
onClick: (t) =>
|
|
292
|
-
children:
|
|
295
|
+
onClick: (t) => Me(t, n, e),
|
|
296
|
+
children: r
|
|
293
297
|
}) : /* @__PURE__ */ I("button", {
|
|
294
298
|
type: "button",
|
|
295
299
|
className: "row cex-trow",
|
|
296
300
|
onClick: () => n?.(e),
|
|
297
|
-
children:
|
|
301
|
+
children: r
|
|
298
302
|
});
|
|
299
303
|
}
|
|
300
|
-
function
|
|
304
|
+
function Le({ collective: e, href: t, onOpen: n }) {
|
|
301
305
|
let r = /* @__PURE__ */ L(F, { children: [
|
|
302
306
|
/* @__PURE__ */ L("div", {
|
|
303
307
|
className: "cex-cname",
|
|
@@ -324,7 +328,7 @@ function Ie({ collective: e, href: t, onOpen: n }) {
|
|
|
324
328
|
return t ? /* @__PURE__ */ I("a", {
|
|
325
329
|
href: t,
|
|
326
330
|
className: "card cex-ccard",
|
|
327
|
-
onClick: (t) =>
|
|
331
|
+
onClick: (t) => Me(t, n, e),
|
|
328
332
|
children: r
|
|
329
333
|
}) : /* @__PURE__ */ I("button", {
|
|
330
334
|
type: "button",
|
|
@@ -333,111 +337,111 @@ function Ie({ collective: e, href: t, onOpen: n }) {
|
|
|
333
337
|
children: r
|
|
334
338
|
});
|
|
335
339
|
}
|
|
336
|
-
function
|
|
337
|
-
let
|
|
340
|
+
function Re({ data: e, className: n = "", title: i = "explore transcripts", resultsFooter: o, defaultLayout: s = "grid", onFiltersChange: c, onOpenTranscript: u, onOpenProfile: f, onOpenCollective: p, transcriptHref: m, profileHref: h, collectiveHref: g, headingLevel: v }) {
|
|
341
|
+
let y = b(v, "Explore"), x = l(y, 0), S = l(y, 1), ee = l(y, 2), C = Ne(e), w = C.transcripts.transcripts, [T, E] = P(""), [D, O] = P(""), [k, A] = P("recent"), [F, ne] = P("all"), [R, re] = P(() => /* @__PURE__ */ new Set()), [z, ie] = P(s), [oe, se] = P(!1), B = te(), [V, H] = P(() => Pe(C.transcripts.page)), [le, U] = P(null), [ue, W] = P("browse"), G = N(!0), K = N(null);
|
|
338
342
|
j(() => {
|
|
339
|
-
if (
|
|
340
|
-
|
|
343
|
+
if (G.current) {
|
|
344
|
+
G.current = !1, O(T);
|
|
341
345
|
return;
|
|
342
346
|
}
|
|
343
|
-
let e = setTimeout(() =>
|
|
347
|
+
let e = setTimeout(() => O(T), 250);
|
|
344
348
|
return () => clearTimeout(e);
|
|
345
|
-
}, [
|
|
349
|
+
}, [G, T]), j(() => {
|
|
346
350
|
let e = JSON.stringify([
|
|
347
|
-
T,
|
|
348
351
|
D,
|
|
349
352
|
k,
|
|
350
|
-
|
|
353
|
+
F,
|
|
354
|
+
[...R].sort()
|
|
351
355
|
]);
|
|
352
|
-
if (
|
|
353
|
-
|
|
356
|
+
if (K.current === null || K.current === e) {
|
|
357
|
+
K.current = e;
|
|
354
358
|
return;
|
|
355
359
|
}
|
|
356
|
-
|
|
360
|
+
K.current = e, H(1);
|
|
357
361
|
}, [
|
|
358
|
-
T,
|
|
359
362
|
D,
|
|
360
363
|
k,
|
|
361
|
-
|
|
364
|
+
F,
|
|
365
|
+
R
|
|
362
366
|
]), j(() => {
|
|
363
|
-
|
|
364
|
-
query:
|
|
365
|
-
provider:
|
|
366
|
-
topics: [...
|
|
367
|
-
order:
|
|
368
|
-
page:
|
|
367
|
+
c?.({
|
|
368
|
+
query: D,
|
|
369
|
+
provider: F,
|
|
370
|
+
topics: [...R],
|
|
371
|
+
order: k,
|
|
372
|
+
page: V
|
|
369
373
|
});
|
|
370
374
|
}, [
|
|
371
|
-
D,
|
|
372
|
-
a,
|
|
373
|
-
z,
|
|
374
375
|
k,
|
|
375
|
-
|
|
376
|
-
|
|
376
|
+
c,
|
|
377
|
+
V,
|
|
378
|
+
F,
|
|
379
|
+
D,
|
|
380
|
+
R
|
|
377
381
|
]);
|
|
378
|
-
let
|
|
382
|
+
let q = w.find((e) => e.id === le) ?? w[0] ?? null, J = q?.owner ?? null, Y = J ? w.filter((e) => e.owner.githubUsername === J.githubUsername) : [], he = M(() => {
|
|
379
383
|
let e = /* @__PURE__ */ new Map();
|
|
380
|
-
for (let t of
|
|
384
|
+
for (let t of w) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
|
|
381
385
|
return [{
|
|
382
386
|
slug: "all",
|
|
383
|
-
count:
|
|
387
|
+
count: w.length
|
|
384
388
|
}, ...[...e.entries()].map(([e, t]) => ({
|
|
385
389
|
slug: e,
|
|
386
390
|
count: t
|
|
387
391
|
}))];
|
|
388
|
-
}, [
|
|
392
|
+
}, [w]);
|
|
389
393
|
j(() => {
|
|
390
|
-
|
|
391
|
-
}, [
|
|
392
|
-
let
|
|
393
|
-
let e =
|
|
394
|
-
return e ?
|
|
394
|
+
le && !w.some((e) => e.id === le) && (U(null), W("browse"));
|
|
395
|
+
}, [le, w]);
|
|
396
|
+
let X = M(() => {
|
|
397
|
+
let e = ke(D);
|
|
398
|
+
return e ? C.collectives.filter((t) => [
|
|
395
399
|
t.name,
|
|
396
400
|
t.description,
|
|
397
401
|
t.linkedGithubOrg
|
|
398
402
|
].filter(Boolean).join(" ").toLowerCase().includes(e)) : null;
|
|
399
|
-
}, [
|
|
400
|
-
if (
|
|
401
|
-
|
|
403
|
+
}, [C.collectives, D]), Z = w, ve = R.size, Q = C.transcripts.total ?? w.length, ye = V, be = C.transcripts.limit || w.length || 1, xe = (e) => {
|
|
404
|
+
if (u) {
|
|
405
|
+
u(e);
|
|
402
406
|
return;
|
|
403
407
|
}
|
|
404
|
-
|
|
405
|
-
},
|
|
406
|
-
if (
|
|
407
|
-
|
|
408
|
+
U(e.id), W("detail");
|
|
409
|
+
}, Se = () => {
|
|
410
|
+
if (f && J) {
|
|
411
|
+
f(J);
|
|
408
412
|
return;
|
|
409
413
|
}
|
|
410
|
-
|
|
411
|
-
},
|
|
412
|
-
|
|
413
|
-
},
|
|
414
|
+
q ? (U(q.id), W("profile")) : w[0] && (U(w[0].id), W("profile"));
|
|
415
|
+
}, Ce = () => {
|
|
416
|
+
E(""), O(""), A("recent"), ne("all"), re(/* @__PURE__ */ new Set()), H(1);
|
|
417
|
+
}, we = M(() => J ? [...je(Y, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
|
|
414
418
|
project: e,
|
|
415
419
|
items: t
|
|
416
|
-
})) : [], [
|
|
417
|
-
let e =
|
|
420
|
+
})) : [], [Y, J]), $ = M(() => {
|
|
421
|
+
let e = Y.reduce((e, t) => e + (t.tokenCount || 0), 0);
|
|
418
422
|
return {
|
|
419
|
-
transcripts:
|
|
420
|
-
projects:
|
|
423
|
+
transcripts: Y.length,
|
|
424
|
+
projects: we.length,
|
|
421
425
|
tokens: e
|
|
422
426
|
};
|
|
423
|
-
}, [
|
|
424
|
-
return
|
|
427
|
+
}, [Y, we.length]);
|
|
428
|
+
return ue === "detail" && q ? /* @__PURE__ */ L("div", {
|
|
425
429
|
className: `cex-root cex-detail ${n}`.trim(),
|
|
426
430
|
children: [/* @__PURE__ */ L("div", {
|
|
427
431
|
className: "cex-detail-back",
|
|
428
432
|
children: [/* @__PURE__ */ L("button", {
|
|
429
433
|
type: "button",
|
|
430
434
|
className: "btn btn-secondary btn-sm",
|
|
431
|
-
onClick: () =>
|
|
432
|
-
children: [/* @__PURE__ */ I(
|
|
435
|
+
onClick: () => W("browse"),
|
|
436
|
+
children: [/* @__PURE__ */ I(ce, {
|
|
433
437
|
size: 14,
|
|
434
438
|
"aria-hidden": "true"
|
|
435
439
|
}), " back to explore"]
|
|
436
440
|
}), /* @__PURE__ */ L("button", {
|
|
437
441
|
type: "button",
|
|
438
442
|
className: "btn btn-secondary btn-sm",
|
|
439
|
-
onClick:
|
|
440
|
-
children: [/* @__PURE__ */ I(
|
|
443
|
+
onClick: Se,
|
|
444
|
+
children: [/* @__PURE__ */ I(_e, {
|
|
441
445
|
size: 14,
|
|
442
446
|
"aria-hidden": "true"
|
|
443
447
|
}), " profile"]
|
|
@@ -465,24 +469,24 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
465
469
|
" ",
|
|
466
470
|
/* @__PURE__ */ I("span", {
|
|
467
471
|
className: "cur mono",
|
|
468
|
-
children:
|
|
472
|
+
children: q.id
|
|
469
473
|
})
|
|
470
474
|
]
|
|
471
475
|
})
|
|
472
476
|
}),
|
|
473
477
|
/* @__PURE__ */ L("div", {
|
|
474
478
|
className: "cex-hero-title",
|
|
475
|
-
children: [/* @__PURE__ */ I(
|
|
479
|
+
children: [/* @__PURE__ */ I(x, {
|
|
476
480
|
className: "win-title cex-vtitle",
|
|
477
|
-
children:
|
|
478
|
-
}), /* @__PURE__ */ I(
|
|
481
|
+
children: Ae(q.title || "untitled transcript")
|
|
482
|
+
}), /* @__PURE__ */ I(a, { visibility: q.visibility })]
|
|
479
483
|
}),
|
|
480
484
|
/* @__PURE__ */ L("p", {
|
|
481
485
|
className: "cex-vdesc",
|
|
482
486
|
children: [
|
|
483
|
-
|
|
487
|
+
q.projectName || "shared transcript",
|
|
484
488
|
", ",
|
|
485
|
-
|
|
489
|
+
q.owner.displayName || q.owner.githubUsername
|
|
486
490
|
]
|
|
487
491
|
}),
|
|
488
492
|
/* @__PURE__ */ L("div", {
|
|
@@ -491,19 +495,19 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
491
495
|
/* @__PURE__ */ L("span", {
|
|
492
496
|
className: "metaitem",
|
|
493
497
|
children: [/* @__PURE__ */ I(r, {
|
|
494
|
-
harness:
|
|
498
|
+
harness: q.modelProvider,
|
|
495
499
|
accent: !0
|
|
496
|
-
}), /* @__PURE__ */ I("span", { children:
|
|
500
|
+
}), /* @__PURE__ */ I("span", { children: q.modelName || q.modelProvider })]
|
|
497
501
|
}),
|
|
498
502
|
/* @__PURE__ */ L("span", {
|
|
499
503
|
className: "metaitem mono tnum",
|
|
500
504
|
children: [
|
|
501
|
-
/* @__PURE__ */ I(
|
|
505
|
+
/* @__PURE__ */ I(ce, {
|
|
502
506
|
size: 14,
|
|
503
507
|
"aria-hidden": "true"
|
|
504
508
|
}),
|
|
505
509
|
" ",
|
|
506
|
-
|
|
510
|
+
q.turnCount ?? 0,
|
|
507
511
|
" turns"
|
|
508
512
|
]
|
|
509
513
|
}),
|
|
@@ -515,13 +519,13 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
515
519
|
children: "#"
|
|
516
520
|
}),
|
|
517
521
|
" ",
|
|
518
|
-
|
|
522
|
+
Te(q.tokenCount || 0),
|
|
519
523
|
" tokens"
|
|
520
524
|
]
|
|
521
525
|
}),
|
|
522
526
|
/* @__PURE__ */ L("span", {
|
|
523
527
|
className: "metaitem mono tnum",
|
|
524
|
-
children: [
|
|
528
|
+
children: [q.toolCallCount ?? 0, " tools"]
|
|
525
529
|
})
|
|
526
530
|
]
|
|
527
531
|
})
|
|
@@ -539,7 +543,7 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
539
543
|
children: "about"
|
|
540
544
|
}), /* @__PURE__ */ I("span", {
|
|
541
545
|
className: "meta mono tnum",
|
|
542
|
-
children:
|
|
546
|
+
children: De(q.sessionStart || q.sessionEnd || "")
|
|
543
547
|
})]
|
|
544
548
|
}), /* @__PURE__ */ L("div", {
|
|
545
549
|
className: "turn",
|
|
@@ -551,9 +555,9 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
551
555
|
})
|
|
552
556
|
}), /* @__PURE__ */ L("div", {
|
|
553
557
|
className: "body",
|
|
554
|
-
children: [/* @__PURE__ */ I("p", { children: "This view surfaces the loaded transcript metadata, then lets the user move to the owner profile without leaving the shared surface." }),
|
|
558
|
+
children: [/* @__PURE__ */ I("p", { children: "This view surfaces the loaded transcript metadata, then lets the user move to the owner profile without leaving the shared surface." }), q.tags.length > 0 && /* @__PURE__ */ I("div", {
|
|
555
559
|
className: "cex-tags",
|
|
556
|
-
children:
|
|
560
|
+
children: q.tags.map((e) => /* @__PURE__ */ L("span", {
|
|
557
561
|
className: "chip",
|
|
558
562
|
children: ["#", e.name]
|
|
559
563
|
}, e.id))
|
|
@@ -564,7 +568,7 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
564
568
|
className: "cex-psec",
|
|
565
569
|
"aria-label": "owner snapshot",
|
|
566
570
|
children: [
|
|
567
|
-
/* @__PURE__ */ I(
|
|
571
|
+
/* @__PURE__ */ I(S, {
|
|
568
572
|
className: "cex-psec-title",
|
|
569
573
|
children: "owner snapshot"
|
|
570
574
|
}),
|
|
@@ -573,19 +577,19 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
573
577
|
children: [/* @__PURE__ */ I("div", {
|
|
574
578
|
className: "cex-phero-av",
|
|
575
579
|
"aria-hidden": "true",
|
|
576
|
-
children:
|
|
580
|
+
children: Oe(q.owner.displayName || q.owner.githubUsername)
|
|
577
581
|
}), /* @__PURE__ */ L("div", {
|
|
578
582
|
className: "cex-phero-id",
|
|
579
|
-
children: [/* @__PURE__ */ I(
|
|
583
|
+
children: [/* @__PURE__ */ I(ee, {
|
|
580
584
|
className: "cex-h2 cex-pname",
|
|
581
|
-
children:
|
|
585
|
+
children: q.owner.displayName || q.owner.githubUsername
|
|
582
586
|
}), /* @__PURE__ */ L("span", {
|
|
583
587
|
className: "cex-phandle mono",
|
|
584
|
-
children: ["@",
|
|
588
|
+
children: ["@", q.owner.githubUsername]
|
|
585
589
|
})]
|
|
586
590
|
})]
|
|
587
591
|
}),
|
|
588
|
-
/* @__PURE__ */ I(
|
|
592
|
+
/* @__PURE__ */ I(_, { tiles: [
|
|
589
593
|
{
|
|
590
594
|
key: "transcripts",
|
|
591
595
|
label: "transcripts",
|
|
@@ -599,14 +603,14 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
599
603
|
{
|
|
600
604
|
key: "tokens",
|
|
601
605
|
label: "tokens",
|
|
602
|
-
value:
|
|
606
|
+
value: Te($.tokens)
|
|
603
607
|
}
|
|
604
608
|
] })
|
|
605
609
|
]
|
|
606
610
|
})]
|
|
607
611
|
})]
|
|
608
612
|
})]
|
|
609
|
-
}) :
|
|
613
|
+
}) : ue === "profile" && J ? /* @__PURE__ */ L("div", {
|
|
610
614
|
className: `cex-root cex-profile ${n}`.trim(),
|
|
611
615
|
children: [
|
|
612
616
|
/* @__PURE__ */ L("div", {
|
|
@@ -614,16 +618,16 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
614
618
|
children: [/* @__PURE__ */ L("button", {
|
|
615
619
|
type: "button",
|
|
616
620
|
className: "btn btn-secondary btn-sm",
|
|
617
|
-
onClick: () =>
|
|
618
|
-
children: [/* @__PURE__ */ I(
|
|
621
|
+
onClick: () => W("detail"),
|
|
622
|
+
children: [/* @__PURE__ */ I(ce, {
|
|
619
623
|
size: 14,
|
|
620
624
|
"aria-hidden": "true"
|
|
621
625
|
}), " back to transcript"]
|
|
622
626
|
}), /* @__PURE__ */ L("button", {
|
|
623
627
|
type: "button",
|
|
624
628
|
className: "btn btn-secondary btn-sm",
|
|
625
|
-
onClick: () =>
|
|
626
|
-
children: [/* @__PURE__ */ I(
|
|
629
|
+
onClick: () => W("browse"),
|
|
630
|
+
children: [/* @__PURE__ */ I(ae, {
|
|
627
631
|
size: 14,
|
|
628
632
|
"aria-hidden": "true"
|
|
629
633
|
}), " back to explore"]
|
|
@@ -640,7 +644,7 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
640
644
|
" ",
|
|
641
645
|
/* @__PURE__ */ L("span", {
|
|
642
646
|
className: "cur mono",
|
|
643
|
-
children: ["@",
|
|
647
|
+
children: ["@", J.githubUsername]
|
|
644
648
|
})
|
|
645
649
|
]
|
|
646
650
|
}),
|
|
@@ -649,19 +653,19 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
649
653
|
children: [/* @__PURE__ */ I("div", {
|
|
650
654
|
className: "cex-phero-av",
|
|
651
655
|
"aria-hidden": "true",
|
|
652
|
-
children:
|
|
656
|
+
children: Oe(J.displayName || J.githubUsername)
|
|
653
657
|
}), /* @__PURE__ */ L("div", {
|
|
654
658
|
className: "cex-phero-id",
|
|
655
|
-
children: [/* @__PURE__ */ I(
|
|
659
|
+
children: [/* @__PURE__ */ I(x, {
|
|
656
660
|
className: "cex-h2 cex-pname",
|
|
657
|
-
children:
|
|
661
|
+
children: J.displayName || J.githubUsername
|
|
658
662
|
}), /* @__PURE__ */ L("span", {
|
|
659
663
|
className: "cex-phandle mono",
|
|
660
|
-
children: ["@",
|
|
664
|
+
children: ["@", J.githubUsername]
|
|
661
665
|
})]
|
|
662
666
|
})]
|
|
663
667
|
}),
|
|
664
|
-
/* @__PURE__ */ I(
|
|
668
|
+
/* @__PURE__ */ I(_, { tiles: [
|
|
665
669
|
{
|
|
666
670
|
key: "transcripts",
|
|
667
671
|
label: "transcripts",
|
|
@@ -675,31 +679,31 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
675
679
|
{
|
|
676
680
|
key: "tokens",
|
|
677
681
|
label: "tokens",
|
|
678
|
-
value:
|
|
682
|
+
value: Te($.tokens)
|
|
679
683
|
}
|
|
680
684
|
] }),
|
|
681
685
|
/* @__PURE__ */ L("section", {
|
|
682
686
|
className: "cex-psec",
|
|
683
687
|
"aria-label": "published library",
|
|
684
|
-
children: [/* @__PURE__ */ I(
|
|
688
|
+
children: [/* @__PURE__ */ I(S, {
|
|
685
689
|
className: "cex-psec-title",
|
|
686
690
|
children: "published library"
|
|
687
|
-
}),
|
|
691
|
+
}), we.length === 0 ? /* @__PURE__ */ L("div", {
|
|
688
692
|
className: "empty cex-empty",
|
|
689
693
|
children: [
|
|
690
694
|
/* @__PURE__ */ I("div", {
|
|
691
695
|
className: "ring",
|
|
692
|
-
children: /* @__PURE__ */ I(
|
|
696
|
+
children: /* @__PURE__ */ I(ae, {
|
|
693
697
|
size: 20,
|
|
694
698
|
"aria-hidden": "true"
|
|
695
699
|
})
|
|
696
700
|
}),
|
|
697
|
-
/* @__PURE__ */ I(
|
|
701
|
+
/* @__PURE__ */ I(S, { children: "no transcripts yet" }),
|
|
698
702
|
/* @__PURE__ */ I("p", { children: "this profile has not shared any transcripts in the commons." })
|
|
699
703
|
]
|
|
700
704
|
}) : /* @__PURE__ */ I("div", {
|
|
701
705
|
className: "cex-projects",
|
|
702
|
-
children:
|
|
706
|
+
children: we.map(({ project: e, items: t }) => /* @__PURE__ */ L("div", {
|
|
703
707
|
className: "cex-project",
|
|
704
708
|
children: [/* @__PURE__ */ L("div", {
|
|
705
709
|
className: "cex-project-head",
|
|
@@ -719,10 +723,10 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
719
723
|
})]
|
|
720
724
|
}), /* @__PURE__ */ I("div", {
|
|
721
725
|
className: "cex-lib-rows",
|
|
722
|
-
children: t.map((e) => /* @__PURE__ */ I(
|
|
726
|
+
children: t.map((e) => /* @__PURE__ */ I(Ie, {
|
|
723
727
|
transcript: e,
|
|
724
|
-
href:
|
|
725
|
-
onOpen:
|
|
728
|
+
href: m?.(e),
|
|
729
|
+
onOpen: xe
|
|
726
730
|
}, e.id))
|
|
727
731
|
})]
|
|
728
732
|
}, e))
|
|
@@ -733,191 +737,209 @@ function Le({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript:
|
|
|
733
737
|
className: `cex-root ${n}`.trim(),
|
|
734
738
|
children: [/* @__PURE__ */ L("header", {
|
|
735
739
|
className: "cex-explore-head",
|
|
736
|
-
children: [/* @__PURE__ */ I(
|
|
740
|
+
children: [i != null && /* @__PURE__ */ I(x, {
|
|
737
741
|
className: "cex-h2",
|
|
738
|
-
children:
|
|
742
|
+
children: i
|
|
739
743
|
}), /* @__PURE__ */ L("div", {
|
|
740
744
|
className: "input-ico cex-searchbar",
|
|
741
|
-
children: [
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
745
|
+
children: [
|
|
746
|
+
/* @__PURE__ */ I(pe, { "aria-hidden": "true" }),
|
|
747
|
+
/* @__PURE__ */ I("input", {
|
|
748
|
+
className: "input",
|
|
749
|
+
type: "text",
|
|
750
|
+
value: T,
|
|
751
|
+
onChange: (e) => E(e.target.value),
|
|
752
|
+
placeholder: "search transcripts",
|
|
753
|
+
"aria-label": "search transcripts, collectives, projects, models"
|
|
754
|
+
}),
|
|
755
|
+
T && /* @__PURE__ */ I("button", {
|
|
756
|
+
type: "button",
|
|
757
|
+
className: "cex-clear",
|
|
758
|
+
"aria-label": "clear search",
|
|
759
|
+
onClick: () => E(""),
|
|
760
|
+
children: /* @__PURE__ */ I(me, {
|
|
761
|
+
size: 14,
|
|
762
|
+
"aria-hidden": "true"
|
|
763
|
+
})
|
|
756
764
|
})
|
|
757
|
-
|
|
765
|
+
]
|
|
758
766
|
})]
|
|
759
767
|
}), /* @__PURE__ */ L("div", {
|
|
760
768
|
className: "cex-explore-body",
|
|
761
|
-
children: [
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
769
|
+
children: [
|
|
770
|
+
/* @__PURE__ */ L("button", {
|
|
771
|
+
type: "button",
|
|
772
|
+
className: "btn btn-secondary cex-filter-toggle",
|
|
773
|
+
"aria-expanded": oe,
|
|
774
|
+
"aria-controls": B,
|
|
775
|
+
onClick: () => se((e) => !e),
|
|
776
|
+
children: [
|
|
777
|
+
/* @__PURE__ */ I(ge, {
|
|
778
|
+
size: 14,
|
|
779
|
+
"aria-hidden": "true"
|
|
780
|
+
}),
|
|
781
|
+
" filters",
|
|
782
|
+
(F !== "all" || R.size > 0) && /* @__PURE__ */ L("span", {
|
|
783
|
+
className: "tnum",
|
|
784
|
+
children: [(F === "all" ? 0 : 1) + R.size, " active"]
|
|
785
|
+
})
|
|
786
|
+
]
|
|
787
|
+
}),
|
|
788
|
+
/* @__PURE__ */ I("div", {
|
|
789
|
+
id: B,
|
|
790
|
+
className: `cex-filter-panel${oe ? " is-open" : ""}`,
|
|
791
|
+
children: /* @__PURE__ */ I(d, {
|
|
792
|
+
order: k,
|
|
793
|
+
onOrder: (e) => A(e),
|
|
794
|
+
providers: he,
|
|
795
|
+
activeProviders: F === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([F]),
|
|
796
|
+
onProvider: (e) => ne((t) => t === e ? "all" : e),
|
|
797
|
+
topics: C.popularTags.map((e) => ({
|
|
798
|
+
tag: e.name,
|
|
799
|
+
count: e.usageCount
|
|
800
|
+
})),
|
|
801
|
+
activeTopics: R,
|
|
802
|
+
onTopic: (e) => {
|
|
803
|
+
re((t) => {
|
|
804
|
+
let n = new Set(t);
|
|
805
|
+
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
806
|
+
});
|
|
807
|
+
},
|
|
808
|
+
onClear: Ce,
|
|
809
|
+
className: "cex-rail"
|
|
810
|
+
})
|
|
811
|
+
}),
|
|
812
|
+
/* @__PURE__ */ L("div", {
|
|
813
|
+
className: "cex-results",
|
|
814
|
+
children: [
|
|
815
|
+
X && /* @__PURE__ */ L("section", {
|
|
816
|
+
className: "cex-coll-results",
|
|
817
|
+
"aria-label": "matching collectives",
|
|
818
|
+
children: [/* @__PURE__ */ I("div", {
|
|
819
|
+
className: "cex-results-head",
|
|
820
|
+
children: /* @__PURE__ */ L("span", {
|
|
821
|
+
className: "cex-eyebrow",
|
|
822
|
+
children: ["collectives ", /* @__PURE__ */ I("span", {
|
|
823
|
+
className: "cex-count tnum",
|
|
824
|
+
children: X.length
|
|
825
|
+
})]
|
|
826
|
+
})
|
|
827
|
+
}), X.length === 0 ? /* @__PURE__ */ I("p", {
|
|
828
|
+
className: "cex-nomatch-inline mono",
|
|
829
|
+
children: "no matching collectives."
|
|
830
|
+
}) : /* @__PURE__ */ I("div", {
|
|
831
|
+
className: "cex-coll-grid",
|
|
832
|
+
children: X.map((e) => /* @__PURE__ */ I(Le, {
|
|
833
|
+
collective: e,
|
|
834
|
+
href: g?.(e),
|
|
835
|
+
onOpen: p
|
|
836
|
+
}, e.id))
|
|
837
|
+
})]
|
|
838
|
+
}),
|
|
839
|
+
/* @__PURE__ */ L("div", {
|
|
787
840
|
className: "cex-results-head",
|
|
788
|
-
children: /* @__PURE__ */ L("span", {
|
|
841
|
+
children: [/* @__PURE__ */ L("span", {
|
|
789
842
|
className: "cex-eyebrow",
|
|
790
|
-
children: ["
|
|
843
|
+
children: ["transcripts ", /* @__PURE__ */ I("span", {
|
|
791
844
|
className: "cex-count tnum",
|
|
792
|
-
|
|
845
|
+
role: "status",
|
|
846
|
+
"aria-live": "polite",
|
|
847
|
+
children: Q
|
|
793
848
|
})]
|
|
794
|
-
})
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
className: "cex-coll-grid",
|
|
800
|
-
children: Y.map((e) => /* @__PURE__ */ I(Ie, {
|
|
801
|
-
collective: e,
|
|
802
|
-
href: p?.(e),
|
|
803
|
-
onOpen: l
|
|
804
|
-
}, e.id))
|
|
805
|
-
})]
|
|
806
|
-
}),
|
|
807
|
-
/* @__PURE__ */ L("div", {
|
|
808
|
-
className: "cex-results-head",
|
|
809
|
-
children: [/* @__PURE__ */ L("span", {
|
|
810
|
-
className: "cex-eyebrow",
|
|
811
|
-
children: ["transcripts ", /* @__PURE__ */ I("span", {
|
|
812
|
-
className: "cex-count tnum",
|
|
813
|
-
role: "status",
|
|
814
|
-
"aria-live": "polite",
|
|
815
|
-
children: le
|
|
816
|
-
})]
|
|
817
|
-
}), /* @__PURE__ */ L("div", {
|
|
818
|
-
className: "bs-seg cex-viewseg",
|
|
819
|
-
role: "group",
|
|
820
|
-
"aria-label": "view mode",
|
|
821
|
-
children: [
|
|
822
|
-
/* @__PURE__ */ L("button", {
|
|
849
|
+
}), /* @__PURE__ */ L("div", {
|
|
850
|
+
className: "bs-seg cex-viewseg",
|
|
851
|
+
role: "group",
|
|
852
|
+
"aria-label": "view mode",
|
|
853
|
+
children: [/* @__PURE__ */ L("button", {
|
|
823
854
|
type: "button",
|
|
824
855
|
className: "bs-seg-opt",
|
|
825
|
-
"aria-pressed":
|
|
856
|
+
"aria-pressed": z === "grid",
|
|
826
857
|
"aria-label": "grid view",
|
|
827
|
-
onClick: () =>
|
|
828
|
-
children: [/* @__PURE__ */ I(
|
|
829
|
-
}),
|
|
830
|
-
/* @__PURE__ */ L("button", {
|
|
858
|
+
onClick: () => ie("grid"),
|
|
859
|
+
children: [/* @__PURE__ */ I(de, { size: 14 }), " grid"]
|
|
860
|
+
}), /* @__PURE__ */ L("button", {
|
|
831
861
|
type: "button",
|
|
832
862
|
className: "bs-seg-opt",
|
|
833
|
-
"aria-pressed":
|
|
863
|
+
"aria-pressed": z === "list",
|
|
834
864
|
"aria-label": "list view",
|
|
835
|
-
onClick: () =>
|
|
836
|
-
children: [/* @__PURE__ */ I(
|
|
865
|
+
onClick: () => ie("list"),
|
|
866
|
+
children: [/* @__PURE__ */ I(fe, { size: 14 }), " list"]
|
|
867
|
+
})]
|
|
868
|
+
})]
|
|
869
|
+
}),
|
|
870
|
+
Z.length === 0 ? D.trim() || F !== "all" || ve ? /* @__PURE__ */ L("div", {
|
|
871
|
+
className: "empty cex-empty",
|
|
872
|
+
children: [
|
|
873
|
+
/* @__PURE__ */ I("div", {
|
|
874
|
+
className: "ring",
|
|
875
|
+
children: /* @__PURE__ */ I(me, {
|
|
876
|
+
size: 20,
|
|
877
|
+
"aria-hidden": "true"
|
|
878
|
+
})
|
|
837
879
|
}),
|
|
838
|
-
/* @__PURE__ */
|
|
880
|
+
/* @__PURE__ */ I(S, { children: "no matches" }),
|
|
881
|
+
/* @__PURE__ */ I("p", { children: "no transcripts match your search and filters. broaden the query or clear the filters." }),
|
|
882
|
+
/* @__PURE__ */ I("button", {
|
|
839
883
|
type: "button",
|
|
840
|
-
className: "
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
onClick: pe,
|
|
844
|
-
disabled: !X.length,
|
|
845
|
-
children: [/* @__PURE__ */ I(he, { size: 14 }), " profile"]
|
|
884
|
+
className: "btn btn-secondary btn-sm",
|
|
885
|
+
onClick: Ce,
|
|
886
|
+
children: "clear filters"
|
|
846
887
|
})
|
|
847
888
|
]
|
|
848
|
-
})
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
})
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
cardHeading: v
|
|
889
|
-
}, e.id))
|
|
890
|
-
}) : /* @__PURE__ */ I("div", {
|
|
891
|
-
className: "cex-list",
|
|
892
|
-
children: X.map((e) => /* @__PURE__ */ I(Fe, {
|
|
893
|
-
transcript: e,
|
|
894
|
-
href: d?.(e),
|
|
895
|
-
onOpen: Z
|
|
896
|
-
}, e.id))
|
|
897
|
-
}),
|
|
898
|
-
le > fe && /* @__PURE__ */ I(t, {
|
|
899
|
-
page: ue,
|
|
900
|
-
totalItems: le,
|
|
901
|
-
pageSize: fe,
|
|
902
|
-
onChange: B,
|
|
903
|
-
className: "cex-pgn"
|
|
904
|
-
})
|
|
905
|
-
]
|
|
906
|
-
})]
|
|
889
|
+
}) : /* @__PURE__ */ L("div", {
|
|
890
|
+
className: "empty cex-empty",
|
|
891
|
+
children: [
|
|
892
|
+
/* @__PURE__ */ I("div", {
|
|
893
|
+
className: "ring",
|
|
894
|
+
children: /* @__PURE__ */ I(ae, {
|
|
895
|
+
size: 20,
|
|
896
|
+
"aria-hidden": "true"
|
|
897
|
+
})
|
|
898
|
+
}),
|
|
899
|
+
/* @__PURE__ */ I(S, { children: "the commons is empty" }),
|
|
900
|
+
/* @__PURE__ */ I("p", { children: "no transcripts have been shared yet. once contributors publish, they show up here." })
|
|
901
|
+
]
|
|
902
|
+
}) : z === "grid" ? /* @__PURE__ */ I("div", {
|
|
903
|
+
className: "cex-grid",
|
|
904
|
+
children: Z.map((e) => /* @__PURE__ */ I(Fe, {
|
|
905
|
+
transcript: e,
|
|
906
|
+
href: m?.(e),
|
|
907
|
+
onOpen: xe,
|
|
908
|
+
cardHeading: S
|
|
909
|
+
}, e.id))
|
|
910
|
+
}) : /* @__PURE__ */ I("div", {
|
|
911
|
+
className: "cex-list",
|
|
912
|
+
children: Z.map((e) => /* @__PURE__ */ I(Ie, {
|
|
913
|
+
transcript: e,
|
|
914
|
+
href: m?.(e),
|
|
915
|
+
onOpen: xe
|
|
916
|
+
}, e.id))
|
|
917
|
+
}),
|
|
918
|
+
Q > be && /* @__PURE__ */ I(t, {
|
|
919
|
+
page: ye,
|
|
920
|
+
totalItems: Q,
|
|
921
|
+
pageSize: be,
|
|
922
|
+
onChange: H,
|
|
923
|
+
className: "cex-pgn"
|
|
924
|
+
}),
|
|
925
|
+
o
|
|
926
|
+
]
|
|
927
|
+
})
|
|
928
|
+
]
|
|
907
929
|
})]
|
|
908
930
|
});
|
|
909
931
|
}
|
|
910
932
|
//#endregion
|
|
911
933
|
//#region src/ui/commons/providers.js
|
|
912
|
-
function
|
|
934
|
+
function ze(e) {
|
|
913
935
|
return String(e || "unknown").replace(/[-_]+/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
914
936
|
}
|
|
915
|
-
function
|
|
937
|
+
function Be(e) {
|
|
916
938
|
return D(e);
|
|
917
939
|
}
|
|
918
940
|
//#endregion
|
|
919
941
|
//#region src/mockups/inuse/CommonsManage.jsx
|
|
920
|
-
function
|
|
942
|
+
function Ve({ cmd: e, note: t }) {
|
|
921
943
|
let [n, r] = P(!1);
|
|
922
944
|
function i() {
|
|
923
945
|
try {
|
|
@@ -941,7 +963,7 @@ function Be({ cmd: e, note: t }) {
|
|
|
941
963
|
className: "btn btn-sm btn-secondary cmg-cmd-copy",
|
|
942
964
|
onClick: i,
|
|
943
965
|
"aria-label": n ? "copied" : "copy command",
|
|
944
|
-
children: [I(n ?
|
|
966
|
+
children: [I(n ? R : oe, {
|
|
945
967
|
size: 14,
|
|
946
968
|
"aria-hidden": "true"
|
|
947
969
|
}), n ? "copied" : "copy"]
|
|
@@ -953,7 +975,7 @@ function Be({ cmd: e, note: t }) {
|
|
|
953
975
|
]
|
|
954
976
|
});
|
|
955
977
|
}
|
|
956
|
-
var
|
|
978
|
+
var He = [
|
|
957
979
|
{
|
|
958
980
|
id: "a1",
|
|
959
981
|
provider: "claude-code",
|
|
@@ -990,7 +1012,7 @@ var Ve = [
|
|
|
990
1012
|
turns: 128,
|
|
991
1013
|
project: "platform"
|
|
992
1014
|
}
|
|
993
|
-
],
|
|
1015
|
+
], Ue = [
|
|
994
1016
|
{
|
|
995
1017
|
n: 1,
|
|
996
1018
|
title: "install the cli",
|
|
@@ -1013,20 +1035,20 @@ var Ve = [
|
|
|
1013
1035
|
cmd: "peasant village push --dry-run --visibility public"
|
|
1014
1036
|
}
|
|
1015
1037
|
];
|
|
1016
|
-
function
|
|
1038
|
+
function We({ v: e, names: t }) {
|
|
1017
1039
|
let n = {
|
|
1018
1040
|
public: {
|
|
1019
|
-
Icon:
|
|
1041
|
+
Icon: B,
|
|
1020
1042
|
label: "visible to everyone",
|
|
1021
1043
|
cls: ""
|
|
1022
1044
|
},
|
|
1023
1045
|
shared: {
|
|
1024
|
-
Icon:
|
|
1046
|
+
Icon: Q,
|
|
1025
1047
|
label: t ? `shared with: ${t}` : "shared with collectives",
|
|
1026
1048
|
cls: "cmg-eye-shared"
|
|
1027
1049
|
},
|
|
1028
1050
|
private: {
|
|
1029
|
-
Icon:
|
|
1051
|
+
Icon: V,
|
|
1030
1052
|
label: "only visible to you",
|
|
1031
1053
|
cls: "cmg-eye-private"
|
|
1032
1054
|
}
|
|
@@ -1043,7 +1065,7 @@ function Ue({ v: e, names: t }) {
|
|
|
1043
1065
|
})]
|
|
1044
1066
|
});
|
|
1045
1067
|
}
|
|
1046
|
-
function
|
|
1068
|
+
function Ge() {
|
|
1047
1069
|
let [e, t] = P(!0), [n, r] = P(!1);
|
|
1048
1070
|
return /* @__PURE__ */ L("div", {
|
|
1049
1071
|
className: "cmg-root",
|
|
@@ -1054,7 +1076,7 @@ function We() {
|
|
|
1054
1076
|
className: "crumb cmg-crumb",
|
|
1055
1077
|
children: [
|
|
1056
1078
|
"peasant online ",
|
|
1057
|
-
/* @__PURE__ */ I(
|
|
1079
|
+
/* @__PURE__ */ I(z, {
|
|
1058
1080
|
size: 14,
|
|
1059
1081
|
"aria-hidden": "true"
|
|
1060
1082
|
}),
|
|
@@ -1093,7 +1115,7 @@ function We() {
|
|
|
1093
1115
|
className: "btn btn-sm btn-icon btn-ghost",
|
|
1094
1116
|
onClick: () => t(!1),
|
|
1095
1117
|
"aria-label": "dismiss getting started",
|
|
1096
|
-
children: /* @__PURE__ */ I(
|
|
1118
|
+
children: /* @__PURE__ */ I(ye, {
|
|
1097
1119
|
size: 14,
|
|
1098
1120
|
"aria-hidden": "true"
|
|
1099
1121
|
})
|
|
@@ -1117,7 +1139,7 @@ function We() {
|
|
|
1117
1139
|
className: "cmg-step-desc",
|
|
1118
1140
|
children: "connects github, discovers agent transcripts, configures providers (Claude Code / OpenCode), sets your redaction level."
|
|
1119
1141
|
}),
|
|
1120
|
-
/* @__PURE__ */ I(
|
|
1142
|
+
/* @__PURE__ */ I(Ve, { cmd: "peasant kickstart" })
|
|
1121
1143
|
]
|
|
1122
1144
|
})]
|
|
1123
1145
|
}), /* @__PURE__ */ L("div", {
|
|
@@ -1137,7 +1159,7 @@ function We() {
|
|
|
1137
1159
|
className: "cmg-step-desc",
|
|
1138
1160
|
children: "auto-redaction runs before upload. add --dry-run to preview, or --visibility public to override."
|
|
1139
1161
|
}),
|
|
1140
|
-
/* @__PURE__ */ I(
|
|
1162
|
+
/* @__PURE__ */ I(Ve, {
|
|
1141
1163
|
cmd: "peasant village push",
|
|
1142
1164
|
note: "--dry-run preview, --visibility public override"
|
|
1143
1165
|
})
|
|
@@ -1159,17 +1181,17 @@ function We() {
|
|
|
1159
1181
|
type: "button",
|
|
1160
1182
|
className: "btn btn-sm btn-secondary",
|
|
1161
1183
|
onClick: () => r(!0),
|
|
1162
|
-
children: [/* @__PURE__ */ I(
|
|
1184
|
+
children: [/* @__PURE__ */ I(Z, {
|
|
1163
1185
|
size: 14,
|
|
1164
1186
|
"aria-hidden": "true"
|
|
1165
1187
|
}), " import"]
|
|
1166
1188
|
})]
|
|
1167
|
-
}),
|
|
1189
|
+
}), He.length === 0 ? /* @__PURE__ */ I("div", {
|
|
1168
1190
|
className: "cmg-recent-empty mono",
|
|
1169
1191
|
children: "no transcripts published yet."
|
|
1170
1192
|
}) : /* @__PURE__ */ I("ul", {
|
|
1171
1193
|
className: "cmg-pub-list",
|
|
1172
|
-
children:
|
|
1194
|
+
children: He.map((e) => /* @__PURE__ */ L("li", {
|
|
1173
1195
|
className: "cmg-pub-row",
|
|
1174
1196
|
children: [
|
|
1175
1197
|
/* @__PURE__ */ I("span", {
|
|
@@ -1187,7 +1209,7 @@ function We() {
|
|
|
1187
1209
|
/* @__PURE__ */ L("span", {
|
|
1188
1210
|
className: "cmg-pub-meta mono tnum",
|
|
1189
1211
|
children: [
|
|
1190
|
-
/* @__PURE__ */ I(
|
|
1212
|
+
/* @__PURE__ */ I(ue, {
|
|
1191
1213
|
size: 14,
|
|
1192
1214
|
"aria-hidden": "true"
|
|
1193
1215
|
}),
|
|
@@ -1195,7 +1217,7 @@ function We() {
|
|
|
1195
1217
|
e.turns
|
|
1196
1218
|
]
|
|
1197
1219
|
}),
|
|
1198
|
-
/* @__PURE__ */ I(
|
|
1220
|
+
/* @__PURE__ */ I(We, { v: e.visibility }),
|
|
1199
1221
|
/* @__PURE__ */ I("span", {
|
|
1200
1222
|
className: "cmg-pub-date mono tnum",
|
|
1201
1223
|
children: e.date
|
|
@@ -1228,7 +1250,7 @@ function We() {
|
|
|
1228
1250
|
className: "btn btn-sm btn-icon btn-ghost",
|
|
1229
1251
|
onClick: () => r(!1),
|
|
1230
1252
|
"aria-label": "close dialog",
|
|
1231
|
-
children: /* @__PURE__ */ I(
|
|
1253
|
+
children: /* @__PURE__ */ I(ye, {
|
|
1232
1254
|
size: 14,
|
|
1233
1255
|
"aria-hidden": "true"
|
|
1234
1256
|
})
|
|
@@ -1241,7 +1263,7 @@ function We() {
|
|
|
1241
1263
|
children: "transcripts are imported through the peasant cli, not the web ui. follow these steps from a terminal:"
|
|
1242
1264
|
}), /* @__PURE__ */ I("ol", {
|
|
1243
1265
|
className: "cmg-import-steps",
|
|
1244
|
-
children:
|
|
1266
|
+
children: Ue.map((e) => /* @__PURE__ */ L("li", {
|
|
1245
1267
|
className: "cmg-step",
|
|
1246
1268
|
children: [/* @__PURE__ */ I("span", {
|
|
1247
1269
|
className: "cmg-step-n tnum",
|
|
@@ -1252,7 +1274,7 @@ function We() {
|
|
|
1252
1274
|
children: [/* @__PURE__ */ I("div", {
|
|
1253
1275
|
className: "cmg-step-title",
|
|
1254
1276
|
children: e.title
|
|
1255
|
-
}), /* @__PURE__ */ I(
|
|
1277
|
+
}), /* @__PURE__ */ I(Ve, {
|
|
1256
1278
|
cmd: e.cmd,
|
|
1257
1279
|
note: e.note
|
|
1258
1280
|
})]
|
|
@@ -1274,7 +1296,7 @@ function We() {
|
|
|
1274
1296
|
})]
|
|
1275
1297
|
});
|
|
1276
1298
|
}
|
|
1277
|
-
var
|
|
1299
|
+
var Ke = [
|
|
1278
1300
|
{
|
|
1279
1301
|
id: "village",
|
|
1280
1302
|
name: "village",
|
|
@@ -1323,14 +1345,14 @@ var Ge = [
|
|
|
1323
1345
|
visibility: "private"
|
|
1324
1346
|
}]
|
|
1325
1347
|
}
|
|
1326
|
-
],
|
|
1348
|
+
], qe = {
|
|
1327
1349
|
name: "AI Research Team",
|
|
1328
1350
|
members: 12
|
|
1329
1351
|
};
|
|
1330
|
-
function
|
|
1331
|
-
let [e, t] = P(() => /* @__PURE__ */ new Set(["v1"])), [n, r] = P(() => new Set(
|
|
1352
|
+
function Je() {
|
|
1353
|
+
let [e, t] = P(() => /* @__PURE__ */ new Set(["v1"])), [n, r] = P(() => new Set(Ke.map((e) => e.id))), [i, a] = P(!1), o = M(() => {
|
|
1332
1354
|
let e = {};
|
|
1333
|
-
return
|
|
1355
|
+
return Ke.forEach((t) => t.transcripts.forEach((n) => e[n.id] = {
|
|
1334
1356
|
...n,
|
|
1335
1357
|
project: t.name
|
|
1336
1358
|
})), e;
|
|
@@ -1368,12 +1390,12 @@ function qe() {
|
|
|
1368
1390
|
className: "crumb cmg-crumb",
|
|
1369
1391
|
children: [
|
|
1370
1392
|
"peasant online ",
|
|
1371
|
-
/* @__PURE__ */ I(
|
|
1393
|
+
/* @__PURE__ */ I(z, {
|
|
1372
1394
|
size: 14,
|
|
1373
1395
|
"aria-hidden": "true"
|
|
1374
1396
|
}),
|
|
1375
1397
|
" AI Research Team ",
|
|
1376
|
-
/* @__PURE__ */ I(
|
|
1398
|
+
/* @__PURE__ */ I(z, {
|
|
1377
1399
|
size: 14,
|
|
1378
1400
|
"aria-hidden": "true"
|
|
1379
1401
|
}),
|
|
@@ -1394,7 +1416,7 @@ function qe() {
|
|
|
1394
1416
|
/* @__PURE__ */ I("section", {
|
|
1395
1417
|
className: "card cmg-contribute",
|
|
1396
1418
|
"aria-label": "your transcripts by project",
|
|
1397
|
-
children:
|
|
1419
|
+
children: Ke.map((t) => {
|
|
1398
1420
|
let r = c(t), i = n.has(t.id);
|
|
1399
1421
|
return /* @__PURE__ */ L("div", {
|
|
1400
1422
|
className: "cmg-proj",
|
|
@@ -1416,7 +1438,7 @@ function qe() {
|
|
|
1416
1438
|
"aria-expanded": i,
|
|
1417
1439
|
onClick: () => u(t.id),
|
|
1418
1440
|
children: [
|
|
1419
|
-
I(i ?
|
|
1441
|
+
I(i ? re : z, {
|
|
1420
1442
|
size: 15,
|
|
1421
1443
|
"aria-hidden": "true"
|
|
1422
1444
|
}),
|
|
@@ -1427,7 +1449,7 @@ function qe() {
|
|
|
1427
1449
|
/* @__PURE__ */ L("span", {
|
|
1428
1450
|
className: "cmg-proj-branch mono",
|
|
1429
1451
|
children: [
|
|
1430
|
-
/* @__PURE__ */ I(
|
|
1452
|
+
/* @__PURE__ */ I(le, {
|
|
1431
1453
|
size: 14,
|
|
1432
1454
|
"aria-hidden": "true"
|
|
1433
1455
|
}),
|
|
@@ -1464,7 +1486,7 @@ function qe() {
|
|
|
1464
1486
|
className: "cmg-tx-title",
|
|
1465
1487
|
children: t.title
|
|
1466
1488
|
}),
|
|
1467
|
-
/* @__PURE__ */ I(
|
|
1489
|
+
/* @__PURE__ */ I(We, { v: t.visibility }),
|
|
1468
1490
|
/* @__PURE__ */ I("span", {
|
|
1469
1491
|
className: "cmg-tx-date mono tnum",
|
|
1470
1492
|
children: t.date
|
|
@@ -1473,7 +1495,7 @@ function qe() {
|
|
|
1473
1495
|
type: "button",
|
|
1474
1496
|
className: "btn btn-sm btn-icon btn-ghost",
|
|
1475
1497
|
"aria-label": `preview ${t.title}`,
|
|
1476
|
-
children: /* @__PURE__ */ I(
|
|
1498
|
+
children: /* @__PURE__ */ I(se, {
|
|
1477
1499
|
size: 14,
|
|
1478
1500
|
"aria-hidden": "true"
|
|
1479
1501
|
})
|
|
@@ -1512,7 +1534,7 @@ function qe() {
|
|
|
1512
1534
|
disabled: e.size === 0,
|
|
1513
1535
|
onClick: () => a(!0),
|
|
1514
1536
|
children: [
|
|
1515
|
-
/* @__PURE__ */ I(
|
|
1537
|
+
/* @__PURE__ */ I(Z, {
|
|
1516
1538
|
size: 14,
|
|
1517
1539
|
"aria-hidden": "true"
|
|
1518
1540
|
}),
|
|
@@ -1539,7 +1561,7 @@ function qe() {
|
|
|
1539
1561
|
" private transcript",
|
|
1540
1562
|
f === 1 ? "" : "s",
|
|
1541
1563
|
" will become visible to members of ",
|
|
1542
|
-
/* @__PURE__ */ I("b", { children:
|
|
1564
|
+
/* @__PURE__ */ I("b", { children: qe.name }),
|
|
1543
1565
|
". visibility will change from private to shared."
|
|
1544
1566
|
] }) : /* @__PURE__ */ L("p", { children: [
|
|
1545
1567
|
"contributing ",
|
|
@@ -1549,21 +1571,21 @@ function qe() {
|
|
|
1549
1571
|
". no visibility change."
|
|
1550
1572
|
] }),
|
|
1551
1573
|
axes: [{
|
|
1552
|
-
icon:
|
|
1574
|
+
icon: B,
|
|
1553
1575
|
key: "visibility",
|
|
1554
1576
|
value: f > 0 ? "private → shared" : "unchanged",
|
|
1555
1577
|
scope: f > 0 ? `${f} transcript${f === 1 ? "" : "s"} newly exposed` : "no visibility change",
|
|
1556
1578
|
tone: f > 0 ? "reveal" : "open"
|
|
1557
1579
|
}, {
|
|
1558
|
-
icon:
|
|
1580
|
+
icon: Q,
|
|
1559
1581
|
key: "shared with",
|
|
1560
|
-
value:
|
|
1561
|
-
scope: `${
|
|
1582
|
+
value: qe.name,
|
|
1583
|
+
scope: `${qe.members} members can see it`,
|
|
1562
1584
|
tone: "open"
|
|
1563
1585
|
}],
|
|
1564
1586
|
requireConsent: f > 0,
|
|
1565
1587
|
confirmLabel: f > 0 ? "contribute & make visible" : "contribute",
|
|
1566
|
-
confirmIcon:
|
|
1588
|
+
confirmIcon: ne,
|
|
1567
1589
|
onCancel: () => a(!1),
|
|
1568
1590
|
onConfirm: () => a(!1),
|
|
1569
1591
|
children: /* @__PURE__ */ L("ul", {
|
|
@@ -1576,7 +1598,7 @@ function qe() {
|
|
|
1576
1598
|
className: "cmg-confirm-title",
|
|
1577
1599
|
children: e.title
|
|
1578
1600
|
}),
|
|
1579
|
-
/* @__PURE__ */ I(
|
|
1601
|
+
/* @__PURE__ */ I(We, { v: e.visibility })
|
|
1580
1602
|
]
|
|
1581
1603
|
}, e.id)), d.length > 5 ? /* @__PURE__ */ L("li", {
|
|
1582
1604
|
className: "cmg-confirm-more mono",
|
|
@@ -1592,7 +1614,7 @@ function qe() {
|
|
|
1592
1614
|
}
|
|
1593
1615
|
//#endregion
|
|
1594
1616
|
//#region src/ui/commons/Collectives.jsx
|
|
1595
|
-
var
|
|
1617
|
+
var Ye = Object.freeze([
|
|
1596
1618
|
{
|
|
1597
1619
|
value: "open",
|
|
1598
1620
|
label: "open",
|
|
@@ -1608,18 +1630,18 @@ var Je = Object.freeze([
|
|
|
1608
1630
|
label: "curated",
|
|
1609
1631
|
help: "the owner approves each transcript before it appears."
|
|
1610
1632
|
}
|
|
1611
|
-
]),
|
|
1633
|
+
]), Xe = Object.freeze([{
|
|
1612
1634
|
value: "members_only",
|
|
1613
1635
|
label: "members only"
|
|
1614
1636
|
}, {
|
|
1615
1637
|
value: "contributors",
|
|
1616
1638
|
label: "members and contributors"
|
|
1617
|
-
}]),
|
|
1639
|
+
}]), Ze = {
|
|
1618
1640
|
open: "open",
|
|
1619
1641
|
verified_only: "verified only",
|
|
1620
1642
|
curated: "curated"
|
|
1621
|
-
},
|
|
1622
|
-
function
|
|
1643
|
+
}, Qe = (e) => String(e).replace(/-/g, " ");
|
|
1644
|
+
function $e({ href: e, onOpen: t, className: n, children: r }) {
|
|
1623
1645
|
return e ? /* @__PURE__ */ I("a", {
|
|
1624
1646
|
className: n,
|
|
1625
1647
|
href: e,
|
|
@@ -1637,16 +1659,16 @@ function Qe({ href: e, onOpen: t, className: n, children: r }) {
|
|
|
1637
1659
|
children: r
|
|
1638
1660
|
});
|
|
1639
1661
|
}
|
|
1640
|
-
function
|
|
1641
|
-
return e.map((e) => /* @__PURE__ */ I(
|
|
1662
|
+
function et(e, t, n) {
|
|
1663
|
+
return e.map((e) => /* @__PURE__ */ I($e, {
|
|
1642
1664
|
className: "cmg-pr-link tnum",
|
|
1643
1665
|
href: n?.("pull-request", e),
|
|
1644
1666
|
onOpen: t ? () => t(e) : void 0,
|
|
1645
1667
|
children: e
|
|
1646
1668
|
}, e));
|
|
1647
1669
|
}
|
|
1648
|
-
function
|
|
1649
|
-
let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: o, caption:
|
|
1670
|
+
function tt({ data: e = {}, actions: t = {} } = {}) {
|
|
1671
|
+
let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: o, caption: s = "collectives", createLabel: l = "new collective", createBusy: d = !1, whoCanPublish: f = Ye, whoCanRead: p = Xe } = e, { onCreateCollective: m, onOpenCollective: h, onSearchCollectives: g } = t, [_, y] = P(!1), [b, x] = P(""), [S, C] = P(""), [w, T] = P(f[0]?.value ?? ""), [E, D] = P(p[0]?.value ?? ""), [O, A] = P(""), [j, M] = P(""), N = te(), F = [
|
|
1650
1672
|
{
|
|
1651
1673
|
key: "name",
|
|
1652
1674
|
label: "name",
|
|
@@ -1699,7 +1721,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1699
1721
|
{
|
|
1700
1722
|
key: "mode",
|
|
1701
1723
|
label: "joining",
|
|
1702
|
-
render: (e) =>
|
|
1724
|
+
render: (e) => Ze[e] ?? e
|
|
1703
1725
|
}
|
|
1704
1726
|
];
|
|
1705
1727
|
return /* @__PURE__ */ L("div", {
|
|
@@ -1707,7 +1729,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1707
1729
|
children: [
|
|
1708
1730
|
o ? /* @__PURE__ */ I("div", {
|
|
1709
1731
|
className: "cmg-crumb",
|
|
1710
|
-
children: /* @__PURE__ */ I(
|
|
1732
|
+
children: /* @__PURE__ */ I(u, { items: [{ label: o }] })
|
|
1711
1733
|
}) : null,
|
|
1712
1734
|
/* @__PURE__ */ L("header", {
|
|
1713
1735
|
className: "iu-page-head",
|
|
@@ -1718,16 +1740,16 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1718
1740
|
children: i
|
|
1719
1741
|
}), /* @__PURE__ */ L("button", {
|
|
1720
1742
|
type: "button",
|
|
1721
|
-
className: "btn btn-sm " + (
|
|
1722
|
-
"aria-expanded":
|
|
1743
|
+
className: "btn btn-sm " + (_ ? "btn-secondary" : "btn-primary"),
|
|
1744
|
+
"aria-expanded": _,
|
|
1723
1745
|
onClick: () => y((e) => !e),
|
|
1724
1746
|
children: [
|
|
1725
|
-
/* @__PURE__ */ I(
|
|
1747
|
+
/* @__PURE__ */ I(J, {
|
|
1726
1748
|
size: 14,
|
|
1727
1749
|
"aria-hidden": "true"
|
|
1728
1750
|
}),
|
|
1729
1751
|
" ",
|
|
1730
|
-
|
|
1752
|
+
_ ? "close" : l
|
|
1731
1753
|
]
|
|
1732
1754
|
})]
|
|
1733
1755
|
}), a ? /* @__PURE__ */ I("p", {
|
|
@@ -1735,12 +1757,12 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1735
1757
|
children: a
|
|
1736
1758
|
}) : null]
|
|
1737
1759
|
}),
|
|
1738
|
-
|
|
1760
|
+
_ && /* @__PURE__ */ L("section", {
|
|
1739
1761
|
className: "cmg-form card",
|
|
1740
|
-
"aria-labelledby": `${
|
|
1762
|
+
"aria-labelledby": `${N}-form`,
|
|
1741
1763
|
children: [
|
|
1742
1764
|
/* @__PURE__ */ I("h3", {
|
|
1743
|
-
id: `${
|
|
1765
|
+
id: `${N}-form`,
|
|
1744
1766
|
className: "cmg-sub",
|
|
1745
1767
|
children: "create a collective"
|
|
1746
1768
|
}),
|
|
@@ -1767,18 +1789,18 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1767
1789
|
}), /* @__PURE__ */ I("textarea", {
|
|
1768
1790
|
className: "input",
|
|
1769
1791
|
rows: 2,
|
|
1770
|
-
value:
|
|
1771
|
-
onChange: (e) =>
|
|
1792
|
+
value: S,
|
|
1793
|
+
onChange: (e) => C(e.target.value)
|
|
1772
1794
|
})]
|
|
1773
1795
|
}),
|
|
1774
1796
|
/* @__PURE__ */ I("div", {
|
|
1775
1797
|
className: "cmg-field",
|
|
1776
|
-
children: /* @__PURE__ */ I(
|
|
1798
|
+
children: /* @__PURE__ */ I(v, {
|
|
1777
1799
|
variant: "select",
|
|
1778
1800
|
label: "who can publish",
|
|
1779
1801
|
name: "who-can-publish",
|
|
1780
|
-
value:
|
|
1781
|
-
onChange:
|
|
1802
|
+
value: w,
|
|
1803
|
+
onChange: T,
|
|
1782
1804
|
options: f.map((e) => ({
|
|
1783
1805
|
...e,
|
|
1784
1806
|
rationale: e.help
|
|
@@ -1787,12 +1809,12 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1787
1809
|
}),
|
|
1788
1810
|
/* @__PURE__ */ I("div", {
|
|
1789
1811
|
className: "cmg-field",
|
|
1790
|
-
children: /* @__PURE__ */ I(
|
|
1812
|
+
children: /* @__PURE__ */ I(v, {
|
|
1791
1813
|
variant: "select",
|
|
1792
1814
|
label: "who can read",
|
|
1793
1815
|
name: "who-can-read",
|
|
1794
|
-
value:
|
|
1795
|
-
onChange:
|
|
1816
|
+
value: E,
|
|
1817
|
+
onChange: D,
|
|
1796
1818
|
options: p
|
|
1797
1819
|
})
|
|
1798
1820
|
}),
|
|
@@ -1805,8 +1827,8 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1805
1827
|
className: "select-wrap",
|
|
1806
1828
|
children: /* @__PURE__ */ L("select", {
|
|
1807
1829
|
className: "select",
|
|
1808
|
-
value:
|
|
1809
|
-
onChange: (e) =>
|
|
1830
|
+
value: O,
|
|
1831
|
+
onChange: (e) => A(e.target.value),
|
|
1810
1832
|
children: [/* @__PURE__ */ I("option", {
|
|
1811
1833
|
value: "",
|
|
1812
1834
|
children: "not linked"
|
|
@@ -1825,28 +1847,28 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1825
1847
|
type: "button",
|
|
1826
1848
|
className: "btn btn-sm btn-primary",
|
|
1827
1849
|
disabled: !b.trim() || d,
|
|
1828
|
-
"aria-describedby":
|
|
1850
|
+
"aria-describedby": N,
|
|
1829
1851
|
onClick: () => m?.({
|
|
1830
1852
|
name: b,
|
|
1831
|
-
purpose:
|
|
1832
|
-
mode:
|
|
1833
|
-
access:
|
|
1834
|
-
org:
|
|
1853
|
+
purpose: S,
|
|
1854
|
+
mode: w,
|
|
1855
|
+
access: E,
|
|
1856
|
+
org: O
|
|
1835
1857
|
}),
|
|
1836
1858
|
children: d ? "creating" : "create collective"
|
|
1837
1859
|
}), /* @__PURE__ */ I("span", {
|
|
1838
|
-
id:
|
|
1860
|
+
id: N,
|
|
1839
1861
|
className: "cmg-form-hint mono",
|
|
1840
|
-
children: f.find((e) => e.value ===
|
|
1862
|
+
children: f.find((e) => e.value === w)?.help
|
|
1841
1863
|
})]
|
|
1842
1864
|
})
|
|
1843
1865
|
]
|
|
1844
1866
|
}),
|
|
1845
1867
|
/* @__PURE__ */ L("div", {
|
|
1846
1868
|
className: "cmg-section",
|
|
1847
|
-
children: [/* @__PURE__ */ I(
|
|
1848
|
-
caption: `${
|
|
1849
|
-
columns:
|
|
1869
|
+
children: [/* @__PURE__ */ I(c, {
|
|
1870
|
+
caption: `${s} ${n.length}`,
|
|
1871
|
+
columns: F,
|
|
1850
1872
|
rows: n,
|
|
1851
1873
|
rowKey: (e) => e.id
|
|
1852
1874
|
}), n.some((e) => e.mode === "curated") ? /* @__PURE__ */ I("p", {
|
|
@@ -1856,24 +1878,24 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1856
1878
|
}),
|
|
1857
1879
|
g && /* @__PURE__ */ L("section", {
|
|
1858
1880
|
className: "cmg-section",
|
|
1859
|
-
"aria-labelledby": `${
|
|
1881
|
+
"aria-labelledby": `${N}-find`,
|
|
1860
1882
|
children: [/* @__PURE__ */ I("h3", {
|
|
1861
1883
|
className: "cmg-section-title",
|
|
1862
|
-
id: `${
|
|
1884
|
+
id: `${N}-find`,
|
|
1863
1885
|
children: "find a collective"
|
|
1864
1886
|
}), /* @__PURE__ */ L("form", {
|
|
1865
1887
|
className: "cmg-find",
|
|
1866
1888
|
role: "search",
|
|
1867
1889
|
onSubmit: (e) => {
|
|
1868
|
-
e.preventDefault(), g(
|
|
1890
|
+
e.preventDefault(), g(j);
|
|
1869
1891
|
},
|
|
1870
|
-
children: [/* @__PURE__ */ I(
|
|
1892
|
+
children: [/* @__PURE__ */ I(ee, {
|
|
1871
1893
|
label: "collective or github org",
|
|
1872
1894
|
type: "search",
|
|
1873
|
-
iconLeft:
|
|
1895
|
+
iconLeft: pe,
|
|
1874
1896
|
placeholder: "collective name or github org",
|
|
1875
|
-
value:
|
|
1876
|
-
onChange: (e) =>
|
|
1897
|
+
value: j,
|
|
1898
|
+
onChange: (e) => M(e.target.value)
|
|
1877
1899
|
}), /* @__PURE__ */ I("button", {
|
|
1878
1900
|
type: "submit",
|
|
1879
1901
|
className: "btn btn-secondary",
|
|
@@ -1884,14 +1906,14 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1884
1906
|
]
|
|
1885
1907
|
});
|
|
1886
1908
|
}
|
|
1887
|
-
function
|
|
1909
|
+
function nt({ members: e, count: t }) {
|
|
1888
1910
|
let n = e.slice(0, 2).map((e) => e.handle), r = t - n.length;
|
|
1889
1911
|
return n.length === 0 ? null : /* @__PURE__ */ L("span", {
|
|
1890
1912
|
className: "cmg-members-text",
|
|
1891
1913
|
children: [n.join(", "), r > 0 ? ` and ${r} others` : ""]
|
|
1892
1914
|
});
|
|
1893
1915
|
}
|
|
1894
|
-
function
|
|
1916
|
+
function rt(e = {}) {
|
|
1895
1917
|
let t = typeof e.linkedGithubOrg == "string" && e.linkedGithubOrg ? { login: e.linkedGithubOrg.replace(/^@/, "") } : void 0;
|
|
1896
1918
|
return {
|
|
1897
1919
|
...e,
|
|
@@ -1904,8 +1926,8 @@ function nt(e = {}) {
|
|
|
1904
1926
|
org: e.org === void 0 ? t : e.org
|
|
1905
1927
|
};
|
|
1906
1928
|
}
|
|
1907
|
-
function
|
|
1908
|
-
let { owners: r = [], linkedRepos: i = [], hrefFor: a } = e, o =
|
|
1929
|
+
function it({ data: e = {}, actions: t = {} } = {}) {
|
|
1930
|
+
let { owners: r = [], linkedRepos: i = [], hrefFor: a } = e, o = rt(e.collective), { onSettings: s, onContribute: l, onReview: d, onOpenTranscript: p, onOpenPullRequest: m, onLinkRepos: g, onShowMore: _ } = t, [v, b] = P(!1), x = te(), S = o.transcriptCount ?? o.transcripts.length, ee = [
|
|
1909
1931
|
{
|
|
1910
1932
|
key: "title",
|
|
1911
1933
|
label: "title",
|
|
@@ -1917,14 +1939,14 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1917
1939
|
accent: !0
|
|
1918
1940
|
}), /* @__PURE__ */ L("span", {
|
|
1919
1941
|
className: "iu-session-text",
|
|
1920
|
-
children: [/* @__PURE__ */ I(
|
|
1942
|
+
children: [/* @__PURE__ */ I($e, {
|
|
1921
1943
|
className: "iu-session-title",
|
|
1922
1944
|
href: a?.("transcript", t.id),
|
|
1923
1945
|
onOpen: p ? () => p(t.id) : void 0,
|
|
1924
1946
|
children: t.title
|
|
1925
1947
|
}), /* @__PURE__ */ L("span", {
|
|
1926
1948
|
className: "iu-session-sub",
|
|
1927
|
-
children: [
|
|
1949
|
+
children: [Qe(t.harness), typeof t.turns == "number" ? /* @__PURE__ */ L(F, { children: [
|
|
1928
1950
|
", ",
|
|
1929
1951
|
/* @__PURE__ */ I("span", {
|
|
1930
1952
|
className: "tnum",
|
|
@@ -1949,8 +1971,8 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1949
1971
|
label: "pull requests",
|
|
1950
1972
|
render: (e, t) => t.pullRequests?.length ? /* @__PURE__ */ L("span", {
|
|
1951
1973
|
className: "cmg-prs",
|
|
1952
|
-
children: [/* @__PURE__ */ I(
|
|
1953
|
-
items:
|
|
1974
|
+
children: [/* @__PURE__ */ I(y, {
|
|
1975
|
+
items: et(t.pullRequests, m, a),
|
|
1954
1976
|
label: "pull requests",
|
|
1955
1977
|
noun: ["pull request", "pull requests"]
|
|
1956
1978
|
}), t.repo && /* @__PURE__ */ I("span", {
|
|
@@ -1966,7 +1988,7 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1966
1988
|
key: "when",
|
|
1967
1989
|
label: "when"
|
|
1968
1990
|
}
|
|
1969
|
-
],
|
|
1991
|
+
], C = [
|
|
1970
1992
|
{
|
|
1971
1993
|
key: "read",
|
|
1972
1994
|
title: "who can read",
|
|
@@ -1988,7 +2010,7 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1988
2010
|
children: [
|
|
1989
2011
|
/* @__PURE__ */ I("div", {
|
|
1990
2012
|
className: "cmg-crumb-content",
|
|
1991
|
-
children: /* @__PURE__ */ I(
|
|
2013
|
+
children: /* @__PURE__ */ I(u, { items: [{
|
|
1992
2014
|
label: "collectives",
|
|
1993
2015
|
href: a?.("collectives")
|
|
1994
2016
|
}, { label: o.name }] })
|
|
@@ -2003,27 +2025,27 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2003
2025
|
children: o.name
|
|
2004
2026
|
}), /* @__PURE__ */ L("span", {
|
|
2005
2027
|
className: "cmg-actions",
|
|
2006
|
-
children: [o.role === "owner" &&
|
|
2028
|
+
children: [o.role === "owner" && s && /* @__PURE__ */ L("button", {
|
|
2007
2029
|
type: "button",
|
|
2008
2030
|
className: "btn btn-secondary btn-sm",
|
|
2009
|
-
onClick: () =>
|
|
2010
|
-
children: [/* @__PURE__ */ I(
|
|
2031
|
+
onClick: () => s(),
|
|
2032
|
+
children: [/* @__PURE__ */ I(Y, {
|
|
2011
2033
|
size: 14,
|
|
2012
2034
|
"aria-hidden": "true"
|
|
2013
2035
|
}), " settings"]
|
|
2014
|
-
}), (
|
|
2015
|
-
icon:
|
|
2036
|
+
}), (l || d) && /* @__PURE__ */ I(f, {
|
|
2037
|
+
icon: q,
|
|
2016
2038
|
ariaLabel: "more",
|
|
2017
2039
|
size: "sm",
|
|
2018
2040
|
align: "end",
|
|
2019
|
-
items: [...
|
|
2041
|
+
items: [...l ? [{
|
|
2020
2042
|
label: "publish several transcripts",
|
|
2021
|
-
icon:
|
|
2022
|
-
onSelect: () =>
|
|
2023
|
-
}] : [], ...
|
|
2043
|
+
icon: Z,
|
|
2044
|
+
onSelect: () => l()
|
|
2045
|
+
}] : [], ...d ? [{
|
|
2024
2046
|
label: "review transcripts",
|
|
2025
|
-
icon:
|
|
2026
|
-
onSelect: () =>
|
|
2047
|
+
icon: ie,
|
|
2048
|
+
onSelect: () => d()
|
|
2027
2049
|
}] : []]
|
|
2028
2050
|
})]
|
|
2029
2051
|
})]
|
|
@@ -2032,10 +2054,10 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2032
2054
|
children: o.purpose
|
|
2033
2055
|
}) : null]
|
|
2034
2056
|
}),
|
|
2035
|
-
|
|
2057
|
+
C.length > 0 && /* @__PURE__ */ I("ul", {
|
|
2036
2058
|
className: "cmg-policies",
|
|
2037
2059
|
"aria-label": "how this collective works",
|
|
2038
|
-
children:
|
|
2060
|
+
children: C.map((e) => /* @__PURE__ */ L("li", {
|
|
2039
2061
|
className: "cmg-policy",
|
|
2040
2062
|
children: [/* @__PURE__ */ I("h3", {
|
|
2041
2063
|
className: "cmg-policy-title",
|
|
@@ -2046,7 +2068,7 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2046
2068
|
})]
|
|
2047
2069
|
}, e.key))
|
|
2048
2070
|
}),
|
|
2049
|
-
/* @__PURE__ */ I(
|
|
2071
|
+
/* @__PURE__ */ I(h, {
|
|
2050
2072
|
items: o.stats,
|
|
2051
2073
|
label: `${o.name} in numbers`
|
|
2052
2074
|
}),
|
|
@@ -2054,9 +2076,9 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2054
2076
|
className: "cmg-home",
|
|
2055
2077
|
children: [/* @__PURE__ */ L("div", {
|
|
2056
2078
|
className: "cmg-home-main",
|
|
2057
|
-
children: [/* @__PURE__ */ I(
|
|
2079
|
+
children: [/* @__PURE__ */ I(c, {
|
|
2058
2080
|
caption: `transcripts ${S}`,
|
|
2059
|
-
columns:
|
|
2081
|
+
columns: ee,
|
|
2060
2082
|
rows: o.transcripts,
|
|
2061
2083
|
rowKey: (e) => e.id
|
|
2062
2084
|
}), /* @__PURE__ */ L("div", {
|
|
@@ -2093,7 +2115,7 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2093
2115
|
}), o.org ? /* @__PURE__ */ L("p", {
|
|
2094
2116
|
className: "cmg-rail-line",
|
|
2095
2117
|
children: [
|
|
2096
|
-
/* @__PURE__ */ I(
|
|
2118
|
+
/* @__PURE__ */ I(H, { "aria-hidden": "true" }),
|
|
2097
2119
|
" ",
|
|
2098
2120
|
/* @__PURE__ */ I("span", {
|
|
2099
2121
|
className: "mono",
|
|
@@ -2137,7 +2159,7 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2137
2159
|
className: "cmg-note",
|
|
2138
2160
|
children: o.memberBreakdown
|
|
2139
2161
|
}) : null,
|
|
2140
|
-
/* @__PURE__ */ I(
|
|
2162
|
+
/* @__PURE__ */ I(nt, {
|
|
2141
2163
|
members: o.members,
|
|
2142
2164
|
count: o.memberCount ?? o.members.length
|
|
2143
2165
|
})
|
|
@@ -2147,7 +2169,7 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2147
2169
|
})
|
|
2148
2170
|
]
|
|
2149
2171
|
}), g && /* @__PURE__ */ I(w, {
|
|
2150
|
-
open:
|
|
2172
|
+
open: v,
|
|
2151
2173
|
onClose: () => b(!1),
|
|
2152
2174
|
owners: r,
|
|
2153
2175
|
initialSelected: i,
|
|
@@ -2158,54 +2180,54 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2158
2180
|
}
|
|
2159
2181
|
})] });
|
|
2160
2182
|
}
|
|
2161
|
-
var
|
|
2183
|
+
var at = Object.freeze([{
|
|
2162
2184
|
value: "user_choice",
|
|
2163
2185
|
label: "they choose"
|
|
2164
2186
|
}, {
|
|
2165
2187
|
value: "mandatory",
|
|
2166
2188
|
label: "take them out"
|
|
2167
2189
|
}]);
|
|
2168
|
-
function
|
|
2190
|
+
function ot(e, t) {
|
|
2169
2191
|
return t.some((t) => t.value === e) ? t : [{
|
|
2170
2192
|
value: "",
|
|
2171
2193
|
label: "not set",
|
|
2172
2194
|
disabled: !0
|
|
2173
2195
|
}, ...t];
|
|
2174
2196
|
}
|
|
2175
|
-
var
|
|
2176
|
-
function
|
|
2197
|
+
var st = (e, t) => t.some((t) => t.value === e) ? e : "";
|
|
2198
|
+
function ct() {
|
|
2177
2199
|
return /* @__PURE__ */ I(e, { name: "github" });
|
|
2178
2200
|
}
|
|
2179
|
-
var
|
|
2180
|
-
general:
|
|
2181
|
-
access:
|
|
2182
|
-
members:
|
|
2183
|
-
"github orgs":
|
|
2184
|
-
"pull requests":
|
|
2185
|
-
"danger zone":
|
|
2201
|
+
var lt = {
|
|
2202
|
+
general: ge,
|
|
2203
|
+
access: W,
|
|
2204
|
+
members: Q,
|
|
2205
|
+
"github orgs": ct,
|
|
2206
|
+
"pull requests": U,
|
|
2207
|
+
"danger zone": X
|
|
2186
2208
|
};
|
|
2187
|
-
function
|
|
2188
|
-
let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a =
|
|
2209
|
+
function ut({ data: e = {}, actions: t = {} } = {}) {
|
|
2210
|
+
let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = Ye, whoCanRead: o = Xe, memberLeavesChoices: c = at, hrefFor: l } = e, d = rt(e.collective), f = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [p, m] = P(!1), [h, _] = P(""), v = !!(t.onTransferOwnership || t.onDelete), y = [
|
|
2189
2211
|
"general",
|
|
2190
2212
|
"access",
|
|
2191
2213
|
"members",
|
|
2192
2214
|
"github orgs",
|
|
2193
2215
|
"pull requests",
|
|
2194
2216
|
...v ? ["danger zone"] : []
|
|
2195
|
-
],
|
|
2217
|
+
], b = (e) => `cmg-settings-${e.replace(/ /g, "-")}`;
|
|
2196
2218
|
return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L("div", {
|
|
2197
2219
|
className: "iu-page cmg-settings",
|
|
2198
2220
|
children: [
|
|
2199
2221
|
/* @__PURE__ */ I("div", {
|
|
2200
2222
|
className: "cmg-crumb-content",
|
|
2201
|
-
children: /* @__PURE__ */ I(
|
|
2223
|
+
children: /* @__PURE__ */ I(u, { items: [
|
|
2202
2224
|
{
|
|
2203
2225
|
label: "collectives",
|
|
2204
|
-
href:
|
|
2226
|
+
href: l?.("collectives")
|
|
2205
2227
|
},
|
|
2206
2228
|
{
|
|
2207
2229
|
label: d.name,
|
|
2208
|
-
href:
|
|
2230
|
+
href: l?.("collective", d.id)
|
|
2209
2231
|
},
|
|
2210
2232
|
{ label: "settings" }
|
|
2211
2233
|
] })
|
|
@@ -2220,73 +2242,73 @@ function lt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2220
2242
|
}), ", settings"]
|
|
2221
2243
|
})
|
|
2222
2244
|
}),
|
|
2223
|
-
/* @__PURE__ */ L(
|
|
2245
|
+
/* @__PURE__ */ L(x, {
|
|
2224
2246
|
sections: y.map((e) => ({
|
|
2225
|
-
id:
|
|
2247
|
+
id: b(e),
|
|
2226
2248
|
label: e,
|
|
2227
|
-
href: `#${
|
|
2228
|
-
icon:
|
|
2249
|
+
href: `#${b(e)}`,
|
|
2250
|
+
icon: lt[e]
|
|
2229
2251
|
})),
|
|
2230
|
-
currentId:
|
|
2252
|
+
currentId: b(y[0]),
|
|
2231
2253
|
spy: !0,
|
|
2232
2254
|
children: [
|
|
2233
|
-
/* @__PURE__ */ L(
|
|
2255
|
+
/* @__PURE__ */ L(g, {
|
|
2234
2256
|
label: "general",
|
|
2235
2257
|
defaultOpen: !0,
|
|
2236
|
-
id:
|
|
2237
|
-
children: [/* @__PURE__ */ I(
|
|
2258
|
+
id: b("general"),
|
|
2259
|
+
children: [/* @__PURE__ */ I(S, {
|
|
2238
2260
|
label: "name",
|
|
2239
2261
|
control: "text",
|
|
2240
2262
|
value: d.name,
|
|
2241
2263
|
onCommit: f("name")
|
|
2242
|
-
}), /* @__PURE__ */ I(
|
|
2264
|
+
}), /* @__PURE__ */ I(S, {
|
|
2243
2265
|
label: "purpose",
|
|
2244
2266
|
control: "text",
|
|
2245
2267
|
value: d.purpose ?? "",
|
|
2246
2268
|
onCommit: f("purpose")
|
|
2247
2269
|
})]
|
|
2248
2270
|
}),
|
|
2249
|
-
/* @__PURE__ */ L(
|
|
2271
|
+
/* @__PURE__ */ L(g, {
|
|
2250
2272
|
label: "access",
|
|
2251
2273
|
defaultOpen: !0,
|
|
2252
|
-
id:
|
|
2253
|
-
children: [/* @__PURE__ */ I(
|
|
2274
|
+
id: b("access"),
|
|
2275
|
+
children: [/* @__PURE__ */ I(S, {
|
|
2254
2276
|
label: "who can publish",
|
|
2255
2277
|
help: ((e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "))(a),
|
|
2256
2278
|
control: "select",
|
|
2257
|
-
value:
|
|
2258
|
-
options:
|
|
2279
|
+
value: st(d.mode, a),
|
|
2280
|
+
options: ot(d.mode, a),
|
|
2259
2281
|
onCommit: f("mode")
|
|
2260
|
-
}), /* @__PURE__ */ I(
|
|
2282
|
+
}), /* @__PURE__ */ I(S, {
|
|
2261
2283
|
label: "who can read",
|
|
2262
2284
|
help: "members read and publish. contributors publish, and read only if who can read allows it.",
|
|
2263
2285
|
control: "select",
|
|
2264
|
-
value:
|
|
2265
|
-
options:
|
|
2286
|
+
value: st(d.access, o),
|
|
2287
|
+
options: ot(d.access, o),
|
|
2266
2288
|
onCommit: f("access")
|
|
2267
2289
|
})]
|
|
2268
2290
|
}),
|
|
2269
|
-
/* @__PURE__ */ L(
|
|
2291
|
+
/* @__PURE__ */ L(g, {
|
|
2270
2292
|
label: "members",
|
|
2271
2293
|
defaultOpen: !0,
|
|
2272
2294
|
count: d.memberCount ?? null,
|
|
2273
2295
|
noun: ["member", "members"],
|
|
2274
|
-
id:
|
|
2296
|
+
id: b("members"),
|
|
2275
2297
|
children: [
|
|
2276
2298
|
t.onInvite && /* @__PURE__ */ L("form", {
|
|
2277
2299
|
className: "srow cmg-invite",
|
|
2278
2300
|
onSubmit: (e) => {
|
|
2279
|
-
e.preventDefault(), t.onInvite(
|
|
2301
|
+
e.preventDefault(), t.onInvite(h), _("");
|
|
2280
2302
|
},
|
|
2281
|
-
children: [/* @__PURE__ */ I(
|
|
2303
|
+
children: [/* @__PURE__ */ I(ee, {
|
|
2282
2304
|
label: "invite by github username",
|
|
2283
|
-
value:
|
|
2305
|
+
value: h,
|
|
2284
2306
|
onChange: (e) => _(e.target.value),
|
|
2285
2307
|
placeholder: "github username"
|
|
2286
2308
|
}), /* @__PURE__ */ I("button", {
|
|
2287
2309
|
type: "submit",
|
|
2288
2310
|
className: "btn btn-secondary btn-sm",
|
|
2289
|
-
disabled: !
|
|
2311
|
+
disabled: !h.trim(),
|
|
2290
2312
|
children: "invite"
|
|
2291
2313
|
})]
|
|
2292
2314
|
}),
|
|
@@ -2296,7 +2318,7 @@ function lt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2296
2318
|
children: d.members.map((e) => /* @__PURE__ */ L("li", {
|
|
2297
2319
|
className: "cmg-member",
|
|
2298
2320
|
children: [
|
|
2299
|
-
/* @__PURE__ */ I(
|
|
2321
|
+
/* @__PURE__ */ I(s, {
|
|
2300
2322
|
name: e.name ?? e.handle,
|
|
2301
2323
|
size: "sm"
|
|
2302
2324
|
}),
|
|
@@ -2342,22 +2364,22 @@ function lt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2342
2364
|
]
|
|
2343
2365
|
}, e.handle))
|
|
2344
2366
|
}),
|
|
2345
|
-
/* @__PURE__ */ I(
|
|
2367
|
+
/* @__PURE__ */ I(S, {
|
|
2346
2368
|
label: "when a member leaves",
|
|
2347
2369
|
help: "what happens to the transcripts they published here.",
|
|
2348
2370
|
control: "select",
|
|
2349
|
-
value:
|
|
2350
|
-
options:
|
|
2371
|
+
value: st(d.memberLeaves, c),
|
|
2372
|
+
options: ot(d.memberLeaves, c),
|
|
2351
2373
|
onCommit: f("memberLeaves")
|
|
2352
2374
|
})
|
|
2353
2375
|
]
|
|
2354
2376
|
}),
|
|
2355
|
-
/* @__PURE__ */ I(
|
|
2377
|
+
/* @__PURE__ */ I(g, {
|
|
2356
2378
|
label: "github orgs",
|
|
2357
2379
|
defaultOpen: !0,
|
|
2358
2380
|
count: d.org === void 0 ? null : +!!d.org,
|
|
2359
2381
|
noun: ["org", "orgs"],
|
|
2360
|
-
id:
|
|
2382
|
+
id: b("github orgs"),
|
|
2361
2383
|
children: /* @__PURE__ */ L("div", {
|
|
2362
2384
|
className: "srow",
|
|
2363
2385
|
children: [/* @__PURE__ */ L("span", {
|
|
@@ -2388,12 +2410,12 @@ function lt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2388
2410
|
})]
|
|
2389
2411
|
})
|
|
2390
2412
|
}),
|
|
2391
|
-
/* @__PURE__ */ I(
|
|
2413
|
+
/* @__PURE__ */ I(g, {
|
|
2392
2414
|
label: "pull requests",
|
|
2393
2415
|
defaultOpen: !0,
|
|
2394
2416
|
count: 1,
|
|
2395
|
-
id:
|
|
2396
|
-
children: /* @__PURE__ */ I(
|
|
2417
|
+
id: b("pull requests"),
|
|
2418
|
+
children: /* @__PURE__ */ I(S, {
|
|
2397
2419
|
label: "show transcripts on pull requests",
|
|
2398
2420
|
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.",
|
|
2399
2421
|
control: "switch",
|
|
@@ -2401,11 +2423,11 @@ function lt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2401
2423
|
onCommit: f("showOnPullRequests")
|
|
2402
2424
|
})
|
|
2403
2425
|
}),
|
|
2404
|
-
v && /* @__PURE__ */ L(
|
|
2426
|
+
v && /* @__PURE__ */ L(g, {
|
|
2405
2427
|
label: "danger zone",
|
|
2406
2428
|
defaultOpen: !0,
|
|
2407
2429
|
count: null,
|
|
2408
|
-
id:
|
|
2430
|
+
id: b("danger zone"),
|
|
2409
2431
|
children: [t.onTransferOwnership && /* @__PURE__ */ L("div", {
|
|
2410
2432
|
className: "srow",
|
|
2411
2433
|
children: [/* @__PURE__ */ I("span", {
|
|
@@ -2459,7 +2481,7 @@ function lt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2459
2481
|
}
|
|
2460
2482
|
//#endregion
|
|
2461
2483
|
//#region src/ui/commons/Manage.jsx
|
|
2462
|
-
var
|
|
2484
|
+
var dt = {
|
|
2463
2485
|
name: "",
|
|
2464
2486
|
description: null,
|
|
2465
2487
|
linkedGithubOrg: null,
|
|
@@ -2467,15 +2489,15 @@ var ut = {
|
|
|
2467
2489
|
dataAccess: "",
|
|
2468
2490
|
role: "",
|
|
2469
2491
|
memberSince: null
|
|
2470
|
-
},
|
|
2492
|
+
}, ft = {
|
|
2471
2493
|
transcripts: "0",
|
|
2472
2494
|
projects: "0 providers",
|
|
2473
2495
|
tokens: "0",
|
|
2474
2496
|
turns: "0 turns",
|
|
2475
2497
|
contributors: "0 members",
|
|
2476
2498
|
hours: "0 total"
|
|
2477
|
-
},
|
|
2478
|
-
collective:
|
|
2499
|
+
}, pt = {
|
|
2500
|
+
collective: dt,
|
|
2479
2501
|
providerShare: [],
|
|
2480
2502
|
pendingReview: [],
|
|
2481
2503
|
members: [],
|
|
@@ -2485,14 +2507,14 @@ var ut = {
|
|
|
2485
2507
|
initialRole: "",
|
|
2486
2508
|
initialShowRedaction: !1,
|
|
2487
2509
|
initialBrowseGated: !1,
|
|
2488
|
-
stats:
|
|
2489
|
-
},
|
|
2510
|
+
stats: ft
|
|
2511
|
+
}, mt = [
|
|
2490
2512
|
"owner",
|
|
2491
2513
|
"member",
|
|
2492
2514
|
"contributor",
|
|
2493
2515
|
"guest"
|
|
2494
2516
|
];
|
|
2495
|
-
function
|
|
2517
|
+
function ht(e) {
|
|
2496
2518
|
if (!e) return "unknown";
|
|
2497
2519
|
let t = new Date(e);
|
|
2498
2520
|
return Number.isNaN(t.getTime()) ? "unknown" : new Intl.DateTimeFormat("en-US", {
|
|
@@ -2502,9 +2524,9 @@ function mt(e) {
|
|
|
2502
2524
|
timeZone: "UTC"
|
|
2503
2525
|
}).format(t).toLowerCase();
|
|
2504
2526
|
}
|
|
2505
|
-
function
|
|
2506
|
-
let { collective: r =
|
|
2507
|
-
|
|
2527
|
+
function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
2528
|
+
let { collective: r = dt, providerShare: i = [], pendingReview: a = [], members: s = [], redactions: c = [], browseRows: l = [], roleOptions: u = [], initialRole: d = "", initialShowRedaction: f = !1, initialBrowseGated: h = !1, stats: g = ft } = e || pt, { onRoleChange: v, onJoin: y, onLeave: b, onSettings: x, onContribute: S, onToggleBrowse: ee } = t || {}, [C, w] = P(d || r.role || ""), [D, O] = P(!!f), [k, A] = P(!!h), j = C || r.role || "guest", te = j === "owner", N = j === "guest", F = n && u.length > 0, ne = M(() => F ? u : [], [F, u]), R = (e) => {
|
|
2529
|
+
w(e), v?.(e);
|
|
2508
2530
|
};
|
|
2509
2531
|
return /* @__PURE__ */ I("div", {
|
|
2510
2532
|
className: "cmg-root",
|
|
@@ -2517,13 +2539,13 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2517
2539
|
className: "crumb cmg-crumb",
|
|
2518
2540
|
children: [
|
|
2519
2541
|
"online ",
|
|
2520
|
-
/* @__PURE__ */ I(
|
|
2542
|
+
/* @__PURE__ */ I(z, {
|
|
2521
2543
|
size: 14,
|
|
2522
2544
|
"aria-hidden": "true"
|
|
2523
2545
|
}),
|
|
2524
2546
|
" collectives",
|
|
2525
2547
|
" ",
|
|
2526
|
-
/* @__PURE__ */ I(
|
|
2548
|
+
/* @__PURE__ */ I(z, {
|
|
2527
2549
|
size: 14,
|
|
2528
2550
|
"aria-hidden": "true"
|
|
2529
2551
|
}),
|
|
@@ -2546,7 +2568,7 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2546
2568
|
/* @__PURE__ */ L("span", {
|
|
2547
2569
|
className: "cmg-orgpill mono",
|
|
2548
2570
|
children: [
|
|
2549
|
-
/* @__PURE__ */ I(
|
|
2571
|
+
/* @__PURE__ */ I(H, {
|
|
2550
2572
|
size: 14,
|
|
2551
2573
|
"aria-hidden": "true"
|
|
2552
2574
|
}),
|
|
@@ -2557,61 +2579,61 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2557
2579
|
] }), /* @__PURE__ */ L("div", {
|
|
2558
2580
|
className: "cmg-d-actions btn-row",
|
|
2559
2581
|
children: [
|
|
2560
|
-
|
|
2582
|
+
F ? /* @__PURE__ */ I("div", {
|
|
2561
2583
|
className: "cmg-roleswitch",
|
|
2562
2584
|
role: "group",
|
|
2563
2585
|
"aria-label": "view as role",
|
|
2564
|
-
children:
|
|
2586
|
+
children: ne.map((e) => /* @__PURE__ */ I("button", {
|
|
2565
2587
|
type: "button",
|
|
2566
2588
|
className: "cmg-roleseg",
|
|
2567
|
-
"aria-pressed":
|
|
2568
|
-
onClick: () =>
|
|
2589
|
+
"aria-pressed": C === e,
|
|
2590
|
+
onClick: () => R(e),
|
|
2569
2591
|
children: e
|
|
2570
2592
|
}, e))
|
|
2571
2593
|
}) : /* @__PURE__ */ I("div", {
|
|
2572
2594
|
className: "cmg-roleswitch",
|
|
2573
2595
|
role: "group",
|
|
2574
2596
|
"aria-label": "your role",
|
|
2575
|
-
children:
|
|
2597
|
+
children: mt.map((e) => /* @__PURE__ */ I("span", {
|
|
2576
2598
|
className: "cmg-roleseg",
|
|
2577
|
-
"aria-current":
|
|
2578
|
-
"data-active":
|
|
2599
|
+
"aria-current": j === e ? "true" : void 0,
|
|
2600
|
+
"data-active": j === e || void 0,
|
|
2579
2601
|
style: { cursor: "default" },
|
|
2580
2602
|
children: e
|
|
2581
2603
|
}, e))
|
|
2582
2604
|
}),
|
|
2583
|
-
|
|
2605
|
+
N ? /* @__PURE__ */ L("button", {
|
|
2584
2606
|
type: "button",
|
|
2585
2607
|
className: "btn btn-sm btn-primary",
|
|
2586
2608
|
onClick: () => y?.(),
|
|
2587
|
-
children: [/* @__PURE__ */ I(
|
|
2609
|
+
children: [/* @__PURE__ */ I(ve, {
|
|
2588
2610
|
size: 14,
|
|
2589
2611
|
"aria-hidden": "true"
|
|
2590
2612
|
}), " join as contributor"]
|
|
2591
2613
|
}) : null,
|
|
2592
|
-
(
|
|
2614
|
+
(j === "member" || j === "contributor") && S ? /* @__PURE__ */ L("button", {
|
|
2593
2615
|
type: "button",
|
|
2594
2616
|
className: "btn btn-sm btn-primary",
|
|
2595
2617
|
onClick: () => S?.(),
|
|
2596
|
-
children: [/* @__PURE__ */ I(
|
|
2618
|
+
children: [/* @__PURE__ */ I(he, {
|
|
2597
2619
|
size: 14,
|
|
2598
2620
|
"aria-hidden": "true"
|
|
2599
2621
|
}), " contribute"]
|
|
2600
2622
|
}) : null,
|
|
2601
|
-
(
|
|
2623
|
+
(j === "member" || j === "contributor") && b ? /* @__PURE__ */ L("button", {
|
|
2602
2624
|
type: "button",
|
|
2603
2625
|
className: "btn btn-sm btn-danger",
|
|
2604
2626
|
onClick: () => b?.(),
|
|
2605
|
-
children: [/* @__PURE__ */ I(
|
|
2627
|
+
children: [/* @__PURE__ */ I(K, {
|
|
2606
2628
|
size: 14,
|
|
2607
2629
|
"aria-hidden": "true"
|
|
2608
2630
|
}), " leave"]
|
|
2609
2631
|
}) : null,
|
|
2610
|
-
|
|
2632
|
+
te && x ? /* @__PURE__ */ L("button", {
|
|
2611
2633
|
type: "button",
|
|
2612
2634
|
className: "btn btn-sm btn-secondary",
|
|
2613
2635
|
onClick: () => x?.(),
|
|
2614
|
-
children: [/* @__PURE__ */ I(
|
|
2636
|
+
children: [/* @__PURE__ */ I(Y, {
|
|
2615
2637
|
size: 14,
|
|
2616
2638
|
"aria-hidden": "true"
|
|
2617
2639
|
}), " settings"]
|
|
@@ -2635,28 +2657,28 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2635
2657
|
}),
|
|
2636
2658
|
/* @__PURE__ */ I(T, {
|
|
2637
2659
|
label: "your role",
|
|
2638
|
-
value:
|
|
2660
|
+
value: j
|
|
2639
2661
|
})
|
|
2640
2662
|
]
|
|
2641
2663
|
}),
|
|
2642
|
-
/* @__PURE__ */ I(
|
|
2664
|
+
/* @__PURE__ */ I(_, { tiles: [
|
|
2643
2665
|
{
|
|
2644
2666
|
key: "transcripts",
|
|
2645
2667
|
label: "transcripts",
|
|
2646
|
-
value:
|
|
2647
|
-
sub: `across ${
|
|
2668
|
+
value: g.transcripts,
|
|
2669
|
+
sub: `across ${g.projects}`
|
|
2648
2670
|
},
|
|
2649
2671
|
{
|
|
2650
2672
|
key: "tokens",
|
|
2651
2673
|
label: "tokens",
|
|
2652
|
-
value:
|
|
2653
|
-
sub:
|
|
2674
|
+
value: g.tokens,
|
|
2675
|
+
sub: g.turns
|
|
2654
2676
|
},
|
|
2655
2677
|
{
|
|
2656
2678
|
key: "contributors",
|
|
2657
2679
|
label: "contributors",
|
|
2658
|
-
value:
|
|
2659
|
-
sub:
|
|
2680
|
+
value: g.contributors,
|
|
2681
|
+
sub: g.hours
|
|
2660
2682
|
}
|
|
2661
2683
|
] }),
|
|
2662
2684
|
/* @__PURE__ */ L("div", {
|
|
@@ -2675,20 +2697,20 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2675
2697
|
label: "provider share",
|
|
2676
2698
|
total: 100,
|
|
2677
2699
|
data: i.map((e) => ({
|
|
2678
|
-
label:
|
|
2700
|
+
label: Be(e.id),
|
|
2679
2701
|
value: e.pct
|
|
2680
2702
|
}))
|
|
2681
2703
|
})]
|
|
2682
2704
|
}) : null,
|
|
2683
|
-
|
|
2705
|
+
a.length > 0 ? /* @__PURE__ */ I("div", {
|
|
2684
2706
|
style: {
|
|
2685
2707
|
overflow: "auto",
|
|
2686
2708
|
maxWidth: "100%"
|
|
2687
2709
|
},
|
|
2688
|
-
children: /* @__PURE__ */ I(
|
|
2710
|
+
children: /* @__PURE__ */ I(o, {
|
|
2689
2711
|
title: "pending review",
|
|
2690
2712
|
emptyLabel: "no shares awaiting review.",
|
|
2691
|
-
items:
|
|
2713
|
+
items: a.map((e) => ({
|
|
2692
2714
|
id: e.id,
|
|
2693
2715
|
kind: "share",
|
|
2694
2716
|
who: e.title || "untitled transcript",
|
|
@@ -2704,21 +2726,21 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2704
2726
|
children: [/* @__PURE__ */ L("h3", {
|
|
2705
2727
|
id: "cmg-redact-h",
|
|
2706
2728
|
className: "cmg-sub",
|
|
2707
|
-
children: [/* @__PURE__ */ I(
|
|
2729
|
+
children: [/* @__PURE__ */ I(he, {
|
|
2708
2730
|
size: 15,
|
|
2709
2731
|
"aria-hidden": "true"
|
|
2710
2732
|
}), " redaction review"]
|
|
2711
2733
|
}), /* @__PURE__ */ L("button", {
|
|
2712
2734
|
type: "button",
|
|
2713
2735
|
className: "btn btn-sm btn-ghost",
|
|
2714
|
-
"aria-expanded":
|
|
2715
|
-
onClick: () =>
|
|
2716
|
-
children: [I(
|
|
2736
|
+
"aria-expanded": D,
|
|
2737
|
+
onClick: () => O((e) => !e),
|
|
2738
|
+
children: [I(D ? V : B, {
|
|
2717
2739
|
size: 14,
|
|
2718
2740
|
"aria-hidden": "true"
|
|
2719
|
-
}),
|
|
2741
|
+
}), D ? "hide" : "show"]
|
|
2720
2742
|
})]
|
|
2721
|
-
}),
|
|
2743
|
+
}), D ? /* @__PURE__ */ I("div", {
|
|
2722
2744
|
className: "cmg-redact-list",
|
|
2723
2745
|
children: c.map((e) => /* @__PURE__ */ L("article", {
|
|
2724
2746
|
className: "cmg-redact",
|
|
@@ -2727,7 +2749,7 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2727
2749
|
className: "cmg-redact-head",
|
|
2728
2750
|
children: [/* @__PURE__ */ I("span", {
|
|
2729
2751
|
className: "cmg-redact-badges",
|
|
2730
|
-
children: /* @__PURE__ */ I(
|
|
2752
|
+
children: /* @__PURE__ */ I(p, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
|
|
2731
2753
|
}), /* @__PURE__ */ I("span", {
|
|
2732
2754
|
className: "cmg-redact-file mono",
|
|
2733
2755
|
children: e.file || "unknown"
|
|
@@ -2739,7 +2761,7 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2739
2761
|
}),
|
|
2740
2762
|
/* @__PURE__ */ L("div", {
|
|
2741
2763
|
className: "callout cmg-redact-note",
|
|
2742
|
-
children: [/* @__PURE__ */ I(
|
|
2764
|
+
children: [/* @__PURE__ */ I(he, {
|
|
2743
2765
|
size: 16,
|
|
2744
2766
|
"aria-hidden": "true"
|
|
2745
2767
|
}), /* @__PURE__ */ I("div", { children: e.tip || "review this redaction item before exposing it." })]
|
|
@@ -2760,35 +2782,35 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2760
2782
|
}), /* @__PURE__ */ L("button", {
|
|
2761
2783
|
type: "button",
|
|
2762
2784
|
className: "btn btn-sm btn-ghost",
|
|
2763
|
-
"aria-pressed":
|
|
2785
|
+
"aria-pressed": k,
|
|
2764
2786
|
onClick: () => {
|
|
2765
|
-
|
|
2787
|
+
A((e) => {
|
|
2766
2788
|
let t = !e;
|
|
2767
|
-
return
|
|
2789
|
+
return ee?.(t), t;
|
|
2768
2790
|
});
|
|
2769
2791
|
},
|
|
2770
|
-
children: [I(
|
|
2792
|
+
children: [I(k ? G : B, {
|
|
2771
2793
|
size: 14,
|
|
2772
2794
|
"aria-hidden": "true"
|
|
2773
|
-
}),
|
|
2795
|
+
}), k ? "gated view" : "open view"]
|
|
2774
2796
|
})]
|
|
2775
|
-
}),
|
|
2797
|
+
}), k ? /* @__PURE__ */ L("div", {
|
|
2776
2798
|
className: "empty cmg-locked",
|
|
2777
2799
|
children: [
|
|
2778
2800
|
/* @__PURE__ */ I("span", {
|
|
2779
2801
|
className: "ring",
|
|
2780
|
-
children: /* @__PURE__ */ I(
|
|
2802
|
+
children: /* @__PURE__ */ I(G, {
|
|
2781
2803
|
size: 20,
|
|
2782
2804
|
"aria-hidden": "true"
|
|
2783
2805
|
})
|
|
2784
2806
|
}),
|
|
2785
2807
|
/* @__PURE__ */ I("h3", { children: "data access restricted" }),
|
|
2786
2808
|
/* @__PURE__ */ I("p", { children: "this collective is members-only. join as a full member to browse the dataset." }),
|
|
2787
|
-
|
|
2809
|
+
N ? /* @__PURE__ */ L("button", {
|
|
2788
2810
|
type: "button",
|
|
2789
2811
|
className: "btn btn-sm btn-primary",
|
|
2790
2812
|
onClick: () => y?.(),
|
|
2791
|
-
children: [/* @__PURE__ */ I(
|
|
2813
|
+
children: [/* @__PURE__ */ I(ve, {
|
|
2792
2814
|
size: 14,
|
|
2793
2815
|
"aria-hidden": "true"
|
|
2794
2816
|
}), " join as contributor"]
|
|
@@ -2830,12 +2852,12 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2830
2852
|
children: e.contributor || "anon"
|
|
2831
2853
|
}),
|
|
2832
2854
|
/* @__PURE__ */ L("td", { children: [
|
|
2833
|
-
/* @__PURE__ */ I(
|
|
2855
|
+
/* @__PURE__ */ I(H, {
|
|
2834
2856
|
size: 14,
|
|
2835
2857
|
"aria-hidden": "true"
|
|
2836
2858
|
}),
|
|
2837
2859
|
" ",
|
|
2838
|
-
e.providerId ?
|
|
2860
|
+
e.providerId ? Be(e.providerId) : ze(e.provider)
|
|
2839
2861
|
] }),
|
|
2840
2862
|
/* @__PURE__ */ I("td", {
|
|
2841
2863
|
className: "cmg-num tnum",
|
|
@@ -2847,7 +2869,7 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2847
2869
|
}),
|
|
2848
2870
|
/* @__PURE__ */ I("td", {
|
|
2849
2871
|
className: "mono tnum",
|
|
2850
|
-
children: e.date ||
|
|
2872
|
+
children: e.date || ht(null)
|
|
2851
2873
|
})
|
|
2852
2874
|
] }, `${e.title}-${e.contributor}`)) })]
|
|
2853
2875
|
}) : /* @__PURE__ */ L("div", {
|
|
@@ -2855,7 +2877,7 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2855
2877
|
children: [
|
|
2856
2878
|
/* @__PURE__ */ I("span", {
|
|
2857
2879
|
className: "ring",
|
|
2858
|
-
children: /* @__PURE__ */ I(
|
|
2880
|
+
children: /* @__PURE__ */ I(Q, {
|
|
2859
2881
|
size: 20,
|
|
2860
2882
|
"aria-hidden": "true"
|
|
2861
2883
|
})
|
|
@@ -2874,7 +2896,7 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2874
2896
|
overflow: "auto",
|
|
2875
2897
|
maxWidth: "100%"
|
|
2876
2898
|
},
|
|
2877
|
-
children: /* @__PURE__ */ I(
|
|
2899
|
+
children: /* @__PURE__ */ I(m, {
|
|
2878
2900
|
title: "members",
|
|
2879
2901
|
roles: ["member", "contributor"],
|
|
2880
2902
|
members: s.map((e) => ({
|
|
@@ -2892,4 +2914,4 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2892
2914
|
});
|
|
2893
2915
|
}
|
|
2894
2916
|
//#endregion
|
|
2895
|
-
export {
|
|
2917
|
+
export { xe as ACCEPTANCE_MODES, we as COLLECTIVE_ROLES, it as CollectiveDetailView, ut as CollectiveSettingsView, tt as CollectivesView, Je as ContributeView, Se as DATA_ACCESS_POLICIES, Re as Explore, gt as Manage, Ge as PublishView, Ce as TRANSCRIPT_DELETION_POLICIES, be as TRANSCRIPT_VISIBILITIES };
|