@go-go-golems/rag-evaluation-site 0.1.0 → 0.1.1
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/app/index.js +22 -22
- package/index.js +20 -288
- package/package.json +1 -1
- package/styles.css +1 -1
- package/{useWidgetPage-B8iwybER.js → useWidgetPage-BdA824UK.js} +947 -636
- package/widgets/ir.d.ts +15 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { isWidgetNode as e } from "./ir.js";
|
|
2
|
-
import { createElement as t, useCallback as n, useEffect as r,
|
|
2
|
+
import { createElement as t, useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
5
5
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
6
6
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
7
7
|
});
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/widgets/actions.ts
|
|
10
|
-
function
|
|
10
|
+
function c(e, t = {}, n) {
|
|
11
11
|
if (n) {
|
|
12
12
|
n(e, t);
|
|
13
13
|
return;
|
|
@@ -25,7 +25,7 @@ function s(e, t = {}, n) {
|
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
if (e.kind === "navigate") {
|
|
28
|
-
let n =
|
|
28
|
+
let n = u(e.to, t);
|
|
29
29
|
window.history.pushState(e.params ?? {}, "", n), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
@@ -38,16 +38,16 @@ function s(e, t = {}, n) {
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
if (e) return () =>
|
|
41
|
+
function l(e, t, n) {
|
|
42
|
+
if (e) return () => c(e, t, n);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function u(e, t) {
|
|
45
45
|
return e.replace(/\$\{([^}]+)\}|\$([A-Za-z0-9_.-]+)/g, (e, n, r) => {
|
|
46
|
-
let i =
|
|
46
|
+
let i = d(n ?? r ?? "", t);
|
|
47
47
|
return encodeURIComponent(String(i ?? ""));
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function d(e, t) {
|
|
51
51
|
let n = e.split(".").filter(Boolean), r = t;
|
|
52
52
|
for (let e of n) {
|
|
53
53
|
if (!r || typeof r != "object") return;
|
|
@@ -55,7 +55,7 @@ function u(e, t) {
|
|
|
55
55
|
}
|
|
56
56
|
return r;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var f = {
|
|
59
59
|
root: "_root_n5d4d_1",
|
|
60
60
|
sizeBody: "_sizeBody_n5d4d_6",
|
|
61
61
|
sizeCompact: "_sizeCompact_n5d4d_10",
|
|
@@ -76,38 +76,38 @@ var d = {
|
|
|
76
76
|
alignCenter: "_alignCenter_n5d4d_41",
|
|
77
77
|
alignEnd: "_alignEnd_n5d4d_42",
|
|
78
78
|
truncate: "_truncate_n5d4d_44"
|
|
79
|
-
}, f = {
|
|
80
|
-
body: d.sizeBody,
|
|
81
|
-
compact: d.sizeCompact,
|
|
82
|
-
metadata: d.sizeMetadata,
|
|
83
|
-
label: d.sizeLabel,
|
|
84
|
-
metric: d.sizeMetric
|
|
85
79
|
}, ee = {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
warning: d.toneWarning,
|
|
92
|
-
danger: d.toneDanger,
|
|
93
|
-
inherit: d.toneInherit
|
|
80
|
+
body: f.sizeBody,
|
|
81
|
+
compact: f.sizeCompact,
|
|
82
|
+
metadata: f.sizeMetadata,
|
|
83
|
+
label: f.sizeLabel,
|
|
84
|
+
metric: f.sizeMetric
|
|
94
85
|
}, p = {
|
|
95
|
-
|
|
96
|
-
|
|
86
|
+
primary: f.tonePrimary,
|
|
87
|
+
muted: f.toneMuted,
|
|
88
|
+
inverse: f.toneInverse,
|
|
89
|
+
accent: f.toneAccent,
|
|
90
|
+
success: f.toneSuccess,
|
|
91
|
+
warning: f.toneWarning,
|
|
92
|
+
danger: f.toneDanger,
|
|
93
|
+
inherit: f.toneInherit
|
|
97
94
|
}, m = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
regular: f.weightRegular,
|
|
96
|
+
bold: f.weightBold
|
|
97
|
+
}, te = {
|
|
98
|
+
start: f.alignStart,
|
|
99
|
+
center: f.alignCenter,
|
|
100
|
+
end: f.alignEnd
|
|
101
101
|
};
|
|
102
102
|
function h({ as: e = "p", size: n = "body", tone: r = "primary", weight: i = "regular", align: a = "start", truncate: o = !1, className: s, children: c, ...l }) {
|
|
103
103
|
return t(e, {
|
|
104
104
|
className: [
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
o ?
|
|
105
|
+
f.root,
|
|
106
|
+
ee[n],
|
|
107
|
+
p[r],
|
|
108
|
+
m[i],
|
|
109
|
+
te[a],
|
|
110
|
+
o ? f.truncate : "",
|
|
111
111
|
s ?? ""
|
|
112
112
|
].filter(Boolean).join(" "),
|
|
113
113
|
...l
|
|
@@ -120,7 +120,7 @@ var g = {
|
|
|
120
120
|
muted: "_muted_rss1l_10",
|
|
121
121
|
accent: "_accent_rss1l_11",
|
|
122
122
|
copyable: "_copyable_rss1l_13"
|
|
123
|
-
},
|
|
123
|
+
}, ne = /* @__PURE__ */ o(((e) => {
|
|
124
124
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
125
125
|
function r(e, n, r) {
|
|
126
126
|
var i = null;
|
|
@@ -135,29 +135,29 @@ var g = {
|
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
138
|
-
})),
|
|
138
|
+
})), re = /* @__PURE__ */ o(((e) => {
|
|
139
139
|
process.env.NODE_ENV !== "production" && (function() {
|
|
140
140
|
function t(e) {
|
|
141
141
|
if (e == null) return null;
|
|
142
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
142
|
+
if (typeof e == "function") return e.$$typeof === ue ? null : e.displayName || e.name || null;
|
|
143
143
|
if (typeof e == "string") return e;
|
|
144
144
|
switch (e) {
|
|
145
|
-
case
|
|
145
|
+
case g: return "Fragment";
|
|
146
146
|
case re: return "Profiler";
|
|
147
147
|
case ne: return "StrictMode";
|
|
148
148
|
case oe: return "Suspense";
|
|
149
149
|
case se: return "SuspenseList";
|
|
150
|
-
case
|
|
150
|
+
case le: return "Activity";
|
|
151
151
|
}
|
|
152
152
|
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
153
|
-
case
|
|
154
|
-
case
|
|
155
|
-
case
|
|
153
|
+
case h: return "Portal";
|
|
154
|
+
case _: return e.displayName || "Context";
|
|
155
|
+
case ie: return (e._context.displayName || "Context") + ".Consumer";
|
|
156
156
|
case ae:
|
|
157
157
|
var n = e.render;
|
|
158
158
|
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
159
159
|
case ce: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
160
|
-
case
|
|
160
|
+
case v:
|
|
161
161
|
n = e._payload, e = e._init;
|
|
162
162
|
try {
|
|
163
163
|
return t(e(n));
|
|
@@ -182,8 +182,8 @@ var g = {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
function i(e) {
|
|
185
|
-
if (e ===
|
|
186
|
-
if (typeof e == "object" && e && e.$$typeof ===
|
|
185
|
+
if (e === g) return "<>";
|
|
186
|
+
if (typeof e == "object" && e && e.$$typeof === v) return "<...>";
|
|
187
187
|
try {
|
|
188
188
|
var n = t(e);
|
|
189
189
|
return n ? "<" + n + ">" : "<...>";
|
|
@@ -192,14 +192,14 @@ var g = {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
function a() {
|
|
195
|
-
var e =
|
|
195
|
+
var e = y.A;
|
|
196
196
|
return e === null ? null : e.getOwner();
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function o() {
|
|
199
199
|
return Error("react-stack-top-frame");
|
|
200
200
|
}
|
|
201
201
|
function c(e) {
|
|
202
|
-
if (
|
|
202
|
+
if (de.call(e, "key")) {
|
|
203
203
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
204
204
|
if (t && t.isReactWarning) return !1;
|
|
205
205
|
}
|
|
@@ -216,12 +216,12 @@ var g = {
|
|
|
216
216
|
}
|
|
217
217
|
function u() {
|
|
218
218
|
var e = t(this.type);
|
|
219
|
-
return
|
|
219
|
+
return me[e] || (me[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
220
220
|
}
|
|
221
221
|
function d(e, t, n, r, i, a) {
|
|
222
222
|
var o = n.ref;
|
|
223
223
|
return e = {
|
|
224
|
-
$$typeof:
|
|
224
|
+
$$typeof: te,
|
|
225
225
|
type: e,
|
|
226
226
|
key: t,
|
|
227
227
|
props: n,
|
|
@@ -256,12 +256,12 @@ var g = {
|
|
|
256
256
|
}
|
|
257
257
|
function f(e, n, i, o, s, u) {
|
|
258
258
|
var f = n.children;
|
|
259
|
-
if (f !== void 0) if (o) if (
|
|
259
|
+
if (f !== void 0) if (o) if (b(f)) {
|
|
260
260
|
for (o = 0; o < f.length; o++) ee(f[o]);
|
|
261
261
|
Object.freeze && Object.freeze(f);
|
|
262
262
|
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
263
263
|
else ee(f);
|
|
264
|
-
if (
|
|
264
|
+
if (de.call(n, "key")) {
|
|
265
265
|
f = t(e);
|
|
266
266
|
var p = Object.keys(n).filter(function(e) {
|
|
267
267
|
return e !== "key";
|
|
@@ -273,38 +273,38 @@ var g = {
|
|
|
273
273
|
return f && l(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, a(), s, u);
|
|
274
274
|
}
|
|
275
275
|
function ee(e) {
|
|
276
|
-
p(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof ===
|
|
276
|
+
p(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === v && (e._payload.status === "fulfilled" ? p(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
277
277
|
}
|
|
278
278
|
function p(e) {
|
|
279
|
-
return typeof e == "object" && !!e && e.$$typeof ===
|
|
279
|
+
return typeof e == "object" && !!e && e.$$typeof === te;
|
|
280
280
|
}
|
|
281
|
-
var m =
|
|
281
|
+
var m = s("react"), te = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), ne = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), ie = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), ae = Symbol.for("react.forward_ref"), oe = Symbol.for("react.suspense"), se = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ue = Symbol.for("react.client.reference"), y = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = Object.prototype.hasOwnProperty, b = Array.isArray, fe = console.createTask ? console.createTask : function() {
|
|
282
282
|
return null;
|
|
283
283
|
};
|
|
284
284
|
m = { react_stack_bottom_frame: function(e) {
|
|
285
285
|
return e();
|
|
286
286
|
} };
|
|
287
|
-
var pe,
|
|
288
|
-
e.Fragment =
|
|
289
|
-
var r = 1e4 >
|
|
290
|
-
return f(e, t, n, !1, r ? Error("react-stack-top-frame") :
|
|
287
|
+
var pe, me = {}, x = m.react_stack_bottom_frame.bind(m, o)(), S = fe(i(o)), he = {};
|
|
288
|
+
e.Fragment = g, e.jsx = function(e, t, n) {
|
|
289
|
+
var r = 1e4 > y.recentlyCreatedOwnerStacks++;
|
|
290
|
+
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : x, r ? fe(i(e)) : S);
|
|
291
291
|
}, e.jsxs = function(e, t, n) {
|
|
292
|
-
var r = 1e4 >
|
|
293
|
-
return f(e, t, n, !0, r ? Error("react-stack-top-frame") :
|
|
292
|
+
var r = 1e4 > y.recentlyCreatedOwnerStacks++;
|
|
293
|
+
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : x, r ? fe(i(e)) : S);
|
|
294
294
|
};
|
|
295
295
|
})();
|
|
296
|
-
})),
|
|
297
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
298
|
-
})), _ =
|
|
296
|
+
})), ie = /* @__PURE__ */ o(((e, t) => {
|
|
297
|
+
process.env.NODE_ENV === "production" ? t.exports = ne() : t.exports = re();
|
|
298
|
+
})), _ = ie(), ae = {
|
|
299
299
|
primary: "",
|
|
300
300
|
muted: g.muted,
|
|
301
301
|
accent: g.accent
|
|
302
302
|
};
|
|
303
|
-
function
|
|
303
|
+
function oe({ as: e = "code", tone: t = "primary", display: n = "inline", copyable: r = !1, className: i, children: a, onClick: o, ...s }) {
|
|
304
304
|
let c = [
|
|
305
305
|
g.root,
|
|
306
306
|
n === "inline" ? g.inline : g.block,
|
|
307
|
-
|
|
307
|
+
ae[t],
|
|
308
308
|
r ? g.copyable : "",
|
|
309
309
|
i ?? ""
|
|
310
310
|
].filter(Boolean).join(" ");
|
|
@@ -317,7 +317,7 @@ function ae({ as: e = "code", tone: t = "primary", display: n = "inline", copyab
|
|
|
317
317
|
children: a
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var se = {
|
|
321
321
|
root: "_root_2cwmi_1",
|
|
322
322
|
pending: "_pending_2cwmi_5",
|
|
323
323
|
ready: "_ready_2cwmi_6",
|
|
@@ -329,7 +329,7 @@ var oe = {
|
|
|
329
329
|
failed: "_failed_2cwmi_12",
|
|
330
330
|
error: "_error_2cwmi_13",
|
|
331
331
|
canceled: "_canceled_2cwmi_14"
|
|
332
|
-
},
|
|
332
|
+
}, ce = {
|
|
333
333
|
pending: "◌",
|
|
334
334
|
ready: "◌",
|
|
335
335
|
running: "●",
|
|
@@ -341,16 +341,16 @@ var oe = {
|
|
|
341
341
|
error: "✘",
|
|
342
342
|
canceled: "⊘"
|
|
343
343
|
};
|
|
344
|
-
function
|
|
345
|
-
let a = e.toLowerCase(), o =
|
|
344
|
+
function v({ status: e, icon: t = !1, className: n, children: r, ...i }) {
|
|
345
|
+
let a = e.toLowerCase(), o = se[a] ?? "", s = r ?? e;
|
|
346
346
|
return /* @__PURE__ */ (0, _.jsxs)("span", {
|
|
347
347
|
className: [
|
|
348
|
-
|
|
348
|
+
se.root,
|
|
349
349
|
o,
|
|
350
350
|
n ?? ""
|
|
351
351
|
].filter(Boolean).join(" "),
|
|
352
352
|
...i,
|
|
353
|
-
children: [t ? `${
|
|
353
|
+
children: [t ? `${ce[a] ?? "?"} ` : "", s]
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
var le = {
|
|
@@ -370,7 +370,7 @@ function ue({ orientation: e = "horizontal", className: t, ...n }) {
|
|
|
370
370
|
...n
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var y = {
|
|
374
374
|
root: "_root_kfqnk_1",
|
|
375
375
|
uppercase: "_uppercase_kfqnk_7",
|
|
376
376
|
truncate: "_truncate_kfqnk_8",
|
|
@@ -381,20 +381,20 @@ var v = {
|
|
|
381
381
|
toneDanger: "_toneDanger_kfqnk_13",
|
|
382
382
|
toneInherit: "_toneInherit_kfqnk_14"
|
|
383
383
|
}, de = {
|
|
384
|
-
muted:
|
|
385
|
-
accent:
|
|
386
|
-
success:
|
|
387
|
-
warning:
|
|
388
|
-
danger:
|
|
389
|
-
inherit:
|
|
384
|
+
muted: y.toneMuted,
|
|
385
|
+
accent: y.toneAccent,
|
|
386
|
+
success: y.toneSuccess,
|
|
387
|
+
warning: y.toneWarning,
|
|
388
|
+
danger: y.toneDanger,
|
|
389
|
+
inherit: y.toneInherit
|
|
390
390
|
};
|
|
391
|
-
function
|
|
391
|
+
function b({ tone: e = "muted", transform: t = "none", truncate: n = !1, className: r, children: i, ...a }) {
|
|
392
392
|
return /* @__PURE__ */ (0, _.jsx)("span", {
|
|
393
393
|
className: [
|
|
394
|
-
|
|
394
|
+
y.root,
|
|
395
395
|
de[e],
|
|
396
|
-
t === "uppercase" ?
|
|
397
|
-
n ?
|
|
396
|
+
t === "uppercase" ? y.uppercase : "",
|
|
397
|
+
n ? y.truncate : "",
|
|
398
398
|
r ?? ""
|
|
399
399
|
].filter(Boolean).join(" "),
|
|
400
400
|
"data-rag-foundation": "Caption",
|
|
@@ -407,20 +407,20 @@ function y({ tone: e = "muted", transform: t = "none", truncate: n = !1, classNa
|
|
|
407
407
|
function fe(e, t, n) {
|
|
408
408
|
switch (e.kind) {
|
|
409
409
|
case "field": return S(x(t, e.field), e.fallback);
|
|
410
|
-
case "number": return
|
|
410
|
+
case "number": return he(x(t, e.field), e);
|
|
411
411
|
case "status": {
|
|
412
412
|
let n = S(x(t, e.field), e.fallback ?? "pending");
|
|
413
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
413
|
+
return /* @__PURE__ */ (0, _.jsx)(v, {
|
|
414
414
|
status: n,
|
|
415
415
|
icon: e.icon,
|
|
416
416
|
children: n
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
|
-
case "caption": return /* @__PURE__ */ (0, _.jsx)(
|
|
419
|
+
case "caption": return /* @__PURE__ */ (0, _.jsx)(b, {
|
|
420
420
|
tone: e.tone,
|
|
421
421
|
children: S(x(t, e.field), e.fallback)
|
|
422
422
|
});
|
|
423
|
-
case "template": return
|
|
423
|
+
case "template": return ge(e.template, t);
|
|
424
424
|
case "link": {
|
|
425
425
|
let n = S(x(t, e.hrefField), "#"), r = S(x(t, e.labelField), e.fallbackLabel ?? n);
|
|
426
426
|
return /* @__PURE__ */ (0, _.jsx)("a", {
|
|
@@ -430,18 +430,18 @@ function fe(e, t, n) {
|
|
|
430
430
|
children: r
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
|
-
case "constant": return
|
|
434
|
-
default: return /* @__PURE__ */ (0, _.jsx)(
|
|
433
|
+
case "constant": return pe(e.value, n);
|
|
434
|
+
default: return /* @__PURE__ */ (0, _.jsx)(b, {
|
|
435
435
|
tone: "danger",
|
|
436
436
|
children: "Unsupported cell"
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function pe(t, n) {
|
|
441
441
|
return t == null || t === !1 ? null : e(t) ? n(t) : String(t);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
return typeof t == "string" ? S(x(e, t), "") : "field" in t ? S(x(e, t.field), "") :
|
|
443
|
+
function me(e, t) {
|
|
444
|
+
return typeof t == "string" ? S(x(e, t), "") : "field" in t ? S(x(e, t.field), "") : ge(t.template, e);
|
|
445
445
|
}
|
|
446
446
|
function x(e, t) {
|
|
447
447
|
let n = t.split(".").filter(Boolean), r = e;
|
|
@@ -454,14 +454,14 @@ function x(e, t) {
|
|
|
454
454
|
function S(e, t = "") {
|
|
455
455
|
return e == null ? t : String(e);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function he(e, t) {
|
|
458
458
|
let n = typeof e == "number" ? e : Number(e);
|
|
459
459
|
return Number.isFinite(n) ? t.format === "fixed" ? n.toFixed(t.digits ?? 2) : Math.round(n).toLocaleString() : t.fallback ?? "";
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function ge(e, t) {
|
|
462
462
|
return e.replace(/\$\{([^}]+)\}|\$([A-Za-z0-9_.-]+)/g, (e, n, r) => S(x(t, n ?? r ?? ""), ""));
|
|
463
463
|
}
|
|
464
|
-
var
|
|
464
|
+
var _e = {
|
|
465
465
|
root: "_root_1gwp3_1",
|
|
466
466
|
primary: "_primary_1gwp3_20",
|
|
467
467
|
selected: "_selected_1gwp3_21",
|
|
@@ -474,10 +474,10 @@ function C({ variant: e = "default", size: t = "normal", selected: n = !1, class
|
|
|
474
474
|
return /* @__PURE__ */ (0, _.jsx)("button", {
|
|
475
475
|
type: "button",
|
|
476
476
|
className: [
|
|
477
|
-
|
|
478
|
-
e === "primary" ?
|
|
479
|
-
n ?
|
|
480
|
-
t === "compact" ?
|
|
477
|
+
_e.root,
|
|
478
|
+
e === "primary" ? _e.primary : "",
|
|
479
|
+
n ? _e.selected : "",
|
|
480
|
+
t === "compact" ? _e.compact : _e.normal,
|
|
481
481
|
r ?? ""
|
|
482
482
|
].filter(Boolean).join(" "),
|
|
483
483
|
"data-rag-atom": "Button",
|
|
@@ -485,42 +485,42 @@ function C({ variant: e = "default", size: t = "normal", selected: n = !1, class
|
|
|
485
485
|
children: i
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
var
|
|
488
|
+
var ve = { root: "_root_e3xd9_1" };
|
|
489
489
|
//#endregion
|
|
490
490
|
//#region src/components/atoms/ErrorCallout/ErrorCallout.tsx
|
|
491
|
-
function
|
|
491
|
+
function ye({ className: e, children: t, ...n }) {
|
|
492
492
|
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
493
|
-
className: [
|
|
493
|
+
className: [ve.root, e ?? ""].filter(Boolean).join(" "),
|
|
494
494
|
role: "alert",
|
|
495
495
|
"data-rag-atom": "ErrorCallout",
|
|
496
496
|
...n,
|
|
497
497
|
children: t
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
|
-
var
|
|
500
|
+
var be = { root: "_root_im5yi_1" };
|
|
501
501
|
//#endregion
|
|
502
502
|
//#region src/components/atoms/SelectInput/SelectInput.tsx
|
|
503
|
-
function
|
|
503
|
+
function xe({ className: e, children: t, ...n }) {
|
|
504
504
|
return /* @__PURE__ */ (0, _.jsx)("select", {
|
|
505
|
-
className: [
|
|
505
|
+
className: [be.root, e ?? ""].filter(Boolean).join(" "),
|
|
506
506
|
"data-rag-atom": "SelectInput",
|
|
507
507
|
...n,
|
|
508
508
|
children: t
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
|
-
var
|
|
511
|
+
var Se = { root: "_root_1bc5y_1" };
|
|
512
512
|
//#endregion
|
|
513
513
|
//#region src/components/atoms/TextInput/TextInput.tsx
|
|
514
|
-
function
|
|
514
|
+
function Ce({ className: e, ...t }) {
|
|
515
515
|
return /* @__PURE__ */ (0, _.jsx)("input", {
|
|
516
|
-
className: [
|
|
516
|
+
className: [Se.root, e ?? ""].filter(Boolean).join(" "),
|
|
517
517
|
"data-rag-atom": "TextInput",
|
|
518
518
|
...t
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
//#endregion
|
|
522
522
|
//#region src/context/kinds.ts
|
|
523
|
-
var w = "#000000",
|
|
523
|
+
var w = "#000000", we = "#0000CC", Te = "#CC0000", Ee = [
|
|
524
524
|
"system",
|
|
525
525
|
"instruction",
|
|
526
526
|
"context",
|
|
@@ -536,7 +536,7 @@ var w = "#000000", Ce = "#0000CC", we = "#CC0000", Te = [
|
|
|
536
536
|
"active",
|
|
537
537
|
"empty",
|
|
538
538
|
"other"
|
|
539
|
-
],
|
|
539
|
+
], De = {
|
|
540
540
|
empty: {
|
|
541
541
|
fill: "#ffffff",
|
|
542
542
|
stroke: w,
|
|
@@ -626,7 +626,7 @@ var w = "#000000", Ce = "#0000CC", we = "#CC0000", Te = [
|
|
|
626
626
|
pattern: "cross"
|
|
627
627
|
},
|
|
628
628
|
active: {
|
|
629
|
-
fill:
|
|
629
|
+
fill: we,
|
|
630
630
|
stroke: w,
|
|
631
631
|
label: "#ffffff",
|
|
632
632
|
name: "active (current)"
|
|
@@ -637,7 +637,7 @@ var w = "#000000", Ce = "#0000CC", we = "#CC0000", Te = [
|
|
|
637
637
|
label: w,
|
|
638
638
|
name: "other"
|
|
639
639
|
}
|
|
640
|
-
},
|
|
640
|
+
}, Oe = {
|
|
641
641
|
empty: {
|
|
642
642
|
fill: "#ffffff",
|
|
643
643
|
dashed: !0,
|
|
@@ -701,14 +701,14 @@ var w = "#000000", Ce = "#0000CC", we = "#CC0000", Te = [
|
|
|
701
701
|
pattern: void 0
|
|
702
702
|
},
|
|
703
703
|
active: {
|
|
704
|
-
fill:
|
|
704
|
+
fill: we,
|
|
705
705
|
label: "#ffffff"
|
|
706
706
|
},
|
|
707
707
|
other: {
|
|
708
708
|
fill: "#ffffff",
|
|
709
709
|
label: "#000000"
|
|
710
710
|
}
|
|
711
|
-
},
|
|
711
|
+
}, ke = {
|
|
712
712
|
empty: {
|
|
713
713
|
fill: "#ffffff",
|
|
714
714
|
stroke: "#999999",
|
|
@@ -789,7 +789,7 @@ var w = "#000000", Ce = "#0000CC", we = "#CC0000", Te = [
|
|
|
789
789
|
pattern: void 0
|
|
790
790
|
},
|
|
791
791
|
active: {
|
|
792
|
-
fill:
|
|
792
|
+
fill: we,
|
|
793
793
|
label: "#ffffff"
|
|
794
794
|
},
|
|
795
795
|
other: {
|
|
@@ -797,32 +797,32 @@ var w = "#000000", Ce = "#0000CC", we = "#CC0000", Te = [
|
|
|
797
797
|
label: "#000000"
|
|
798
798
|
}
|
|
799
799
|
};
|
|
800
|
-
function
|
|
801
|
-
let n =
|
|
800
|
+
function Ae(e, t = "pattern") {
|
|
801
|
+
let n = je(e) ? e : "other", r = De[n];
|
|
802
802
|
return t === "tone" ? {
|
|
803
|
-
...r,
|
|
804
|
-
...De[n],
|
|
805
|
-
stroke: De[n]?.stroke ?? "#000000"
|
|
806
|
-
} : t === "outline" ? {
|
|
807
803
|
...r,
|
|
808
804
|
...Oe[n],
|
|
809
805
|
stroke: Oe[n]?.stroke ?? "#000000"
|
|
806
|
+
} : t === "outline" ? {
|
|
807
|
+
...r,
|
|
808
|
+
...ke[n],
|
|
809
|
+
stroke: ke[n]?.stroke ?? "#000000"
|
|
810
810
|
} : r;
|
|
811
811
|
}
|
|
812
812
|
function T(e) {
|
|
813
|
-
return
|
|
813
|
+
return Ae(e).name;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
816
|
-
return
|
|
815
|
+
function je(e) {
|
|
816
|
+
return Ee.includes(e);
|
|
817
817
|
}
|
|
818
818
|
//#endregion
|
|
819
819
|
//#region src/context/fixtures.ts
|
|
820
|
-
var
|
|
820
|
+
var Me = 2e5, Ne = [
|
|
821
821
|
{
|
|
822
822
|
id: "t03",
|
|
823
823
|
title: "Turn 3 — warming up",
|
|
824
824
|
subtitle: "Agent has read the repo map and the failing test.",
|
|
825
|
-
limit:
|
|
825
|
+
limit: Me,
|
|
826
826
|
parts: [
|
|
827
827
|
{
|
|
828
828
|
id: "t03-system",
|
|
@@ -871,7 +871,7 @@ var je = 2e5, Me = [
|
|
|
871
871
|
id: "t14",
|
|
872
872
|
title: "Turn 14 — deep in the bug",
|
|
873
873
|
subtitle: "Many tool results accumulated; scratchpad reasoning growing.",
|
|
874
|
-
limit:
|
|
874
|
+
limit: Me,
|
|
875
875
|
selectedPartId: "t14-file-reads",
|
|
876
876
|
parts: [
|
|
877
877
|
{
|
|
@@ -942,7 +942,7 @@ var je = 2e5, Me = [
|
|
|
942
942
|
id: "t31",
|
|
943
943
|
title: "Turn 31 — at the limit",
|
|
944
944
|
subtitle: "Window full. Old turns evicted; results re-summarized to reclaim space.",
|
|
945
|
-
limit:
|
|
945
|
+
limit: Me,
|
|
946
946
|
parts: [
|
|
947
947
|
{
|
|
948
948
|
id: "t31-system",
|
|
@@ -1012,7 +1012,7 @@ var je = 2e5, Me = [
|
|
|
1012
1012
|
id: "over",
|
|
1013
1013
|
title: "Turn 31 — before reclaim (over budget)",
|
|
1014
1014
|
subtitle: "What the naïve append-everything window would have looked like.",
|
|
1015
|
-
limit:
|
|
1015
|
+
limit: Me,
|
|
1016
1016
|
parts: [
|
|
1017
1017
|
{
|
|
1018
1018
|
id: "over-system",
|
|
@@ -1052,7 +1052,7 @@ var je = 2e5, Me = [
|
|
|
1052
1052
|
}
|
|
1053
1053
|
]
|
|
1054
1054
|
}
|
|
1055
|
-
],
|
|
1055
|
+
], Pe = {
|
|
1056
1056
|
id: "parser-session",
|
|
1057
1057
|
title: "Coding-agent transcript — parser fix",
|
|
1058
1058
|
subtitle: "Annotated transcript fixture from the context-viewer prototype.",
|
|
@@ -1165,7 +1165,7 @@ var je = 2e5, Me = [
|
|
|
1165
1165
|
text: "Before this reply, the window was rebuilt: the failing run_test output was summarized to one line now that it's resolved."
|
|
1166
1166
|
}
|
|
1167
1167
|
]
|
|
1168
|
-
},
|
|
1168
|
+
}, Fe = {
|
|
1169
1169
|
id: "context-window-engineering",
|
|
1170
1170
|
kicker: "LIVE WORKSHOP · SESSION 04",
|
|
1171
1171
|
title: "Context Window Engineering",
|
|
@@ -1230,7 +1230,7 @@ var je = 2e5, Me = [
|
|
|
1230
1230
|
duration: "30 min"
|
|
1231
1231
|
}
|
|
1232
1232
|
]
|
|
1233
|
-
},
|
|
1233
|
+
}, Ie = [
|
|
1234
1234
|
{
|
|
1235
1235
|
id: "slide-01",
|
|
1236
1236
|
number: "01",
|
|
@@ -1309,7 +1309,7 @@ var je = 2e5, Me = [
|
|
|
1309
1309
|
"Rebuild the window every turn around what matters now."
|
|
1310
1310
|
]
|
|
1311
1311
|
}
|
|
1312
|
-
],
|
|
1312
|
+
], Le = [
|
|
1313
1313
|
{
|
|
1314
1314
|
id: "comment-file-reads",
|
|
1315
1315
|
anchorX: .3,
|
|
@@ -1337,7 +1337,7 @@ var je = 2e5, Me = [
|
|
|
1337
1337
|
time: "resolved",
|
|
1338
1338
|
status: "resolved"
|
|
1339
1339
|
}
|
|
1340
|
-
],
|
|
1340
|
+
], Re = {
|
|
1341
1341
|
intro: "Everything from tonight, to take home. Slides, the diagram source, and a one-page field guide.",
|
|
1342
1342
|
docs: [
|
|
1343
1343
|
{
|
|
@@ -1378,11 +1378,11 @@ var je = 2e5, Me = [
|
|
|
1378
1378
|
}
|
|
1379
1379
|
]
|
|
1380
1380
|
};
|
|
1381
|
-
function
|
|
1381
|
+
function ze(e, t = {}) {
|
|
1382
1382
|
return e.parts.reduce((e, n) => !t.includeEmpty && n.kind === "empty" ? e : e + n.tokens, 0);
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1385
|
-
return e.limit <= 0 ? 0 :
|
|
1384
|
+
function Be(e) {
|
|
1385
|
+
return e.limit <= 0 ? 0 : ze(e) / e.limit;
|
|
1386
1386
|
}
|
|
1387
1387
|
var E = {
|
|
1388
1388
|
root: "_root_7tnun_1",
|
|
@@ -1402,8 +1402,8 @@ var E = {
|
|
|
1402
1402
|
};
|
|
1403
1403
|
//#endregion
|
|
1404
1404
|
//#region src/components/atoms/ContextKindSwatch/ContextKindSwatch.tsx
|
|
1405
|
-
function
|
|
1406
|
-
let s =
|
|
1405
|
+
function Ve({ kind: e, mode: t = "pattern", size: n = "md", selected: r = !1, className: i, style: a, ...o }) {
|
|
1406
|
+
let s = Ae(e, t), c = T(e);
|
|
1407
1407
|
return /* @__PURE__ */ (0, _.jsx)("span", {
|
|
1408
1408
|
className: [
|
|
1409
1409
|
E.root,
|
|
@@ -1429,7 +1429,7 @@ function Be({ kind: e, mode: t = "pattern", size: n = "md", selected: r = !1, cl
|
|
|
1429
1429
|
...o
|
|
1430
1430
|
});
|
|
1431
1431
|
}
|
|
1432
|
-
var
|
|
1432
|
+
var He = {
|
|
1433
1433
|
root: "_root_j1d2u_1",
|
|
1434
1434
|
user: "_user_j1d2u_2",
|
|
1435
1435
|
assistant: "_assistant_j1d2u_3",
|
|
@@ -1440,11 +1440,11 @@ var Ve = {
|
|
|
1440
1440
|
};
|
|
1441
1441
|
//#endregion
|
|
1442
1442
|
//#region src/components/atoms/TranscriptRoleBadge/TranscriptRoleBadge.tsx
|
|
1443
|
-
function
|
|
1443
|
+
function Ue({ role: e, name: t, className: n, ...r }) {
|
|
1444
1444
|
return /* @__PURE__ */ (0, _.jsx)("span", {
|
|
1445
1445
|
className: [
|
|
1446
|
-
|
|
1447
|
-
|
|
1446
|
+
He.root,
|
|
1447
|
+
He[e] ?? He.other,
|
|
1448
1448
|
n ?? ""
|
|
1449
1449
|
].filter(Boolean).join(" "),
|
|
1450
1450
|
"data-rag-atom": "TranscriptRoleBadge",
|
|
@@ -1453,30 +1453,201 @@ function He({ role: e, name: t, className: n, ...r }) {
|
|
|
1453
1453
|
children: t ?? e
|
|
1454
1454
|
});
|
|
1455
1455
|
}
|
|
1456
|
-
var
|
|
1456
|
+
var We = {
|
|
1457
1457
|
root: "_root_1dvu0_1",
|
|
1458
1458
|
selected: "_selected_1dvu0_2"
|
|
1459
1459
|
};
|
|
1460
1460
|
//#endregion
|
|
1461
1461
|
//#region src/components/atoms/AnnotationBadge/AnnotationBadge.tsx
|
|
1462
|
-
function
|
|
1462
|
+
function Ge({ kind: e, label: t, selected: n = !1, className: r, ...i }) {
|
|
1463
1463
|
return /* @__PURE__ */ (0, _.jsxs)("span", {
|
|
1464
1464
|
className: [
|
|
1465
|
-
|
|
1466
|
-
n ?
|
|
1465
|
+
We.root,
|
|
1466
|
+
n ? We.selected : "",
|
|
1467
1467
|
r ?? ""
|
|
1468
1468
|
].filter(Boolean).join(" "),
|
|
1469
1469
|
"data-rag-atom": "AnnotationBadge",
|
|
1470
1470
|
"data-kind": e,
|
|
1471
1471
|
...i,
|
|
1472
|
-
children: [/* @__PURE__ */ (0, _.jsx)(
|
|
1472
|
+
children: [/* @__PURE__ */ (0, _.jsx)(Ve, {
|
|
1473
1473
|
kind: e,
|
|
1474
1474
|
size: "sm",
|
|
1475
1475
|
selected: n
|
|
1476
1476
|
}), /* @__PURE__ */ (0, _.jsx)("span", { children: t })]
|
|
1477
1477
|
});
|
|
1478
1478
|
}
|
|
1479
|
-
var
|
|
1479
|
+
var Ke = {
|
|
1480
|
+
root: "_root_72kwi_1",
|
|
1481
|
+
folder: "_folder_72kwi_8",
|
|
1482
|
+
arrow: "_arrow_72kwi_15"
|
|
1483
|
+
};
|
|
1484
|
+
//#endregion
|
|
1485
|
+
//#region src/components/atoms/UploadGlyph/UploadGlyph.tsx
|
|
1486
|
+
function qe({ title: e = "Upload file", className: t, ...n }) {
|
|
1487
|
+
let r = e ? "rag-upload-glyph-title" : void 0;
|
|
1488
|
+
return /* @__PURE__ */ (0, _.jsxs)("svg", {
|
|
1489
|
+
className: [Ke.root, t ?? ""].filter(Boolean).join(" "),
|
|
1490
|
+
viewBox: "0 0 40 34",
|
|
1491
|
+
role: e ? "img" : "presentation",
|
|
1492
|
+
"aria-labelledby": r,
|
|
1493
|
+
"data-rag-atom": "UploadGlyph",
|
|
1494
|
+
...n,
|
|
1495
|
+
children: [
|
|
1496
|
+
e && /* @__PURE__ */ (0, _.jsx)("title", {
|
|
1497
|
+
id: r,
|
|
1498
|
+
children: e
|
|
1499
|
+
}),
|
|
1500
|
+
/* @__PURE__ */ (0, _.jsx)("path", {
|
|
1501
|
+
className: Ke.folder,
|
|
1502
|
+
d: "M2 8 L2 32 L38 32 L38 4 L18 4 L14 8 Z"
|
|
1503
|
+
}),
|
|
1504
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1505
|
+
className: Ke.arrow,
|
|
1506
|
+
x1: "20",
|
|
1507
|
+
y1: "14",
|
|
1508
|
+
x2: "20",
|
|
1509
|
+
y2: "26"
|
|
1510
|
+
}),
|
|
1511
|
+
/* @__PURE__ */ (0, _.jsx)("path", {
|
|
1512
|
+
className: Ke.arrow,
|
|
1513
|
+
d: "M15 19 L20 14 L25 19"
|
|
1514
|
+
})
|
|
1515
|
+
]
|
|
1516
|
+
});
|
|
1517
|
+
}
|
|
1518
|
+
var Je = {
|
|
1519
|
+
root: "_root_1gd53_1",
|
|
1520
|
+
filled: "_filled_1gd53_13"
|
|
1521
|
+
};
|
|
1522
|
+
//#endregion
|
|
1523
|
+
//#region src/components/atoms/ContextStudioNavIcon/ContextStudioNavIcon.tsx
|
|
1524
|
+
function Ye({ id: e, title: t, className: n, ...r }) {
|
|
1525
|
+
let i = t ? `rag-context-studio-nav-icon-${e}` : void 0;
|
|
1526
|
+
return /* @__PURE__ */ (0, _.jsxs)("svg", {
|
|
1527
|
+
className: [Je.root, n ?? ""].filter(Boolean).join(" "),
|
|
1528
|
+
viewBox: "0 0 15 15",
|
|
1529
|
+
role: t ? "img" : "presentation",
|
|
1530
|
+
"aria-labelledby": i,
|
|
1531
|
+
"data-rag-atom": "ContextStudioNavIcon",
|
|
1532
|
+
"data-icon-id": e,
|
|
1533
|
+
...r,
|
|
1534
|
+
children: [t && /* @__PURE__ */ (0, _.jsx)("title", {
|
|
1535
|
+
id: i,
|
|
1536
|
+
children: t
|
|
1537
|
+
}), Xe(e)]
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1540
|
+
function Xe(e) {
|
|
1541
|
+
switch (e) {
|
|
1542
|
+
case "course": return /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [
|
|
1543
|
+
/* @__PURE__ */ (0, _.jsx)("rect", {
|
|
1544
|
+
x: "2",
|
|
1545
|
+
y: "1.5",
|
|
1546
|
+
width: "11",
|
|
1547
|
+
height: "12"
|
|
1548
|
+
}),
|
|
1549
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1550
|
+
x1: "4.5",
|
|
1551
|
+
y1: "5",
|
|
1552
|
+
x2: "10.5",
|
|
1553
|
+
y2: "5"
|
|
1554
|
+
}),
|
|
1555
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1556
|
+
x1: "4.5",
|
|
1557
|
+
y1: "8",
|
|
1558
|
+
x2: "10.5",
|
|
1559
|
+
y2: "8"
|
|
1560
|
+
}),
|
|
1561
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1562
|
+
x1: "4.5",
|
|
1563
|
+
y1: "11",
|
|
1564
|
+
x2: "8",
|
|
1565
|
+
y2: "11"
|
|
1566
|
+
})
|
|
1567
|
+
] });
|
|
1568
|
+
case "slides": return /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [
|
|
1569
|
+
/* @__PURE__ */ (0, _.jsx)("rect", {
|
|
1570
|
+
x: "1.5",
|
|
1571
|
+
y: "2.5",
|
|
1572
|
+
width: "12",
|
|
1573
|
+
height: "8.5"
|
|
1574
|
+
}),
|
|
1575
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1576
|
+
x1: "6",
|
|
1577
|
+
y1: "13",
|
|
1578
|
+
x2: "9",
|
|
1579
|
+
y2: "13"
|
|
1580
|
+
}),
|
|
1581
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1582
|
+
x1: "7.5",
|
|
1583
|
+
y1: "11",
|
|
1584
|
+
x2: "7.5",
|
|
1585
|
+
y2: "13"
|
|
1586
|
+
})
|
|
1587
|
+
] });
|
|
1588
|
+
case "visualize": return /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [
|
|
1589
|
+
/* @__PURE__ */ (0, _.jsx)("rect", {
|
|
1590
|
+
className: Je.filled,
|
|
1591
|
+
x: "1.5",
|
|
1592
|
+
y: "4",
|
|
1593
|
+
width: "3",
|
|
1594
|
+
height: "7"
|
|
1595
|
+
}),
|
|
1596
|
+
/* @__PURE__ */ (0, _.jsx)("rect", {
|
|
1597
|
+
x: "5.5",
|
|
1598
|
+
y: "2",
|
|
1599
|
+
width: "3",
|
|
1600
|
+
height: "9"
|
|
1601
|
+
}),
|
|
1602
|
+
/* @__PURE__ */ (0, _.jsx)("rect", {
|
|
1603
|
+
className: Je.filled,
|
|
1604
|
+
x: "9.5",
|
|
1605
|
+
y: "6",
|
|
1606
|
+
width: "3",
|
|
1607
|
+
height: "5"
|
|
1608
|
+
})
|
|
1609
|
+
] });
|
|
1610
|
+
case "upload": return /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [
|
|
1611
|
+
/* @__PURE__ */ (0, _.jsx)("path", { d: "M2 9 L2 13 L13 13 L13 9" }),
|
|
1612
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1613
|
+
x1: "7.5",
|
|
1614
|
+
y1: "2",
|
|
1615
|
+
x2: "7.5",
|
|
1616
|
+
y2: "9.5"
|
|
1617
|
+
}),
|
|
1618
|
+
/* @__PURE__ */ (0, _.jsx)("path", { d: "M4.5 5 L7.5 2 L10.5 5" })
|
|
1619
|
+
] });
|
|
1620
|
+
case "transcript": return /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [
|
|
1621
|
+
/* @__PURE__ */ (0, _.jsx)("rect", {
|
|
1622
|
+
x: "1.5",
|
|
1623
|
+
y: "2",
|
|
1624
|
+
width: "12",
|
|
1625
|
+
height: "11"
|
|
1626
|
+
}),
|
|
1627
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1628
|
+
x1: "4",
|
|
1629
|
+
y1: "5",
|
|
1630
|
+
x2: "11",
|
|
1631
|
+
y2: "5"
|
|
1632
|
+
}),
|
|
1633
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1634
|
+
x1: "4",
|
|
1635
|
+
y1: "7.5",
|
|
1636
|
+
x2: "11",
|
|
1637
|
+
y2: "7.5"
|
|
1638
|
+
}),
|
|
1639
|
+
/* @__PURE__ */ (0, _.jsx)("line", {
|
|
1640
|
+
x1: "4",
|
|
1641
|
+
y1: "10",
|
|
1642
|
+
x2: "8",
|
|
1643
|
+
y2: "10"
|
|
1644
|
+
})
|
|
1645
|
+
] });
|
|
1646
|
+
case "comments": return /* @__PURE__ */ (0, _.jsx)("path", { d: "M2 2 L13 2 L13 9 L7 9 L4 12 L4 9 L2 9 Z" });
|
|
1647
|
+
case "handout": return /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [/* @__PURE__ */ (0, _.jsx)("path", { d: "M3 1.5 L10 1.5 L12.5 4 L12.5 13.5 L3 13.5 Z" }), /* @__PURE__ */ (0, _.jsx)("path", { d: "M10 1.5 L10 4 L12.5 4" })] });
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
var Ze = {
|
|
1480
1651
|
root: "_root_ga2ee_1",
|
|
1481
1652
|
fill: "_fill_ga2ee_7",
|
|
1482
1653
|
header: "_header_ga2ee_11",
|
|
@@ -1485,20 +1656,20 @@ var Ge = {
|
|
|
1485
1656
|
};
|
|
1486
1657
|
//#endregion
|
|
1487
1658
|
//#region src/components/layout/Panel/Panel.tsx
|
|
1488
|
-
function
|
|
1659
|
+
function Qe({ title: e, actions: t, density: n = "normal", fill: r = !1, className: i, children: a, ...o }) {
|
|
1489
1660
|
return /* @__PURE__ */ (0, _.jsxs)("section", {
|
|
1490
1661
|
className: [
|
|
1491
|
-
|
|
1492
|
-
r ?
|
|
1662
|
+
Ze.root,
|
|
1663
|
+
r ? Ze.fill : "",
|
|
1493
1664
|
i ?? ""
|
|
1494
1665
|
].filter(Boolean).join(" "),
|
|
1495
1666
|
"data-rag-layout": "Panel",
|
|
1496
1667
|
...o,
|
|
1497
1668
|
children: [(e || t) && /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1498
|
-
className:
|
|
1669
|
+
className: Ze.header,
|
|
1499
1670
|
children: [/* @__PURE__ */ (0, _.jsx)("span", { children: e }), t]
|
|
1500
1671
|
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1501
|
-
className: n === "condensed" ?
|
|
1672
|
+
className: n === "condensed" ? Ze.condensed : Ze.body,
|
|
1502
1673
|
children: a
|
|
1503
1674
|
})]
|
|
1504
1675
|
});
|
|
@@ -1514,24 +1685,24 @@ var D = {
|
|
|
1514
1685
|
alignStart: "_alignStart_15awp_13",
|
|
1515
1686
|
alignCenter: "_alignCenter_15awp_14",
|
|
1516
1687
|
alignEnd: "_alignEnd_15awp_15"
|
|
1517
|
-
},
|
|
1688
|
+
}, $e = {
|
|
1518
1689
|
xs: D.gapXs,
|
|
1519
1690
|
sm: D.gapSm,
|
|
1520
1691
|
md: D.gapMd,
|
|
1521
1692
|
lg: D.gapLg,
|
|
1522
1693
|
xl: D.gapXl
|
|
1523
|
-
},
|
|
1694
|
+
}, et = {
|
|
1524
1695
|
stretch: D.alignStretch,
|
|
1525
1696
|
start: D.alignStart,
|
|
1526
1697
|
center: D.alignCenter,
|
|
1527
1698
|
end: D.alignEnd
|
|
1528
1699
|
};
|
|
1529
|
-
function
|
|
1700
|
+
function tt({ gap: e = "md", align: t = "stretch", className: n, children: r, ...i }) {
|
|
1530
1701
|
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1531
1702
|
className: [
|
|
1532
1703
|
D.root,
|
|
1533
|
-
|
|
1534
|
-
|
|
1704
|
+
$e[e],
|
|
1705
|
+
et[t],
|
|
1535
1706
|
n ?? ""
|
|
1536
1707
|
].filter(Boolean).join(" "),
|
|
1537
1708
|
"data-rag-layout": "Stack",
|
|
@@ -1550,22 +1721,22 @@ var O = {
|
|
|
1550
1721
|
justifyStart: "_justifyStart_8hatg_12",
|
|
1551
1722
|
justifyBetween: "_justifyBetween_8hatg_13",
|
|
1552
1723
|
justifyEnd: "_justifyEnd_8hatg_14"
|
|
1553
|
-
},
|
|
1724
|
+
}, nt = {
|
|
1554
1725
|
xs: O.gapXs,
|
|
1555
1726
|
sm: O.gapSm,
|
|
1556
1727
|
md: O.gapMd,
|
|
1557
1728
|
lg: O.gapLg
|
|
1558
|
-
},
|
|
1729
|
+
}, rt = {
|
|
1559
1730
|
start: O.justifyStart,
|
|
1560
1731
|
between: O.justifyBetween,
|
|
1561
1732
|
end: O.justifyEnd
|
|
1562
1733
|
};
|
|
1563
|
-
function
|
|
1734
|
+
function it({ gap: e = "sm", justify: t = "start", wrap: n = !0, className: r, children: i, ...a }) {
|
|
1564
1735
|
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1565
1736
|
className: [
|
|
1566
1737
|
O.root,
|
|
1567
|
-
|
|
1568
|
-
|
|
1738
|
+
nt[e],
|
|
1739
|
+
rt[t],
|
|
1569
1740
|
n ? O.wrap : O.noWrap,
|
|
1570
1741
|
r ?? ""
|
|
1571
1742
|
].filter(Boolean).join(" "),
|
|
@@ -1574,21 +1745,21 @@ function Qe({ gap: e = "sm", justify: t = "start", wrap: n = !0, className: r, c
|
|
|
1574
1745
|
children: i
|
|
1575
1746
|
});
|
|
1576
1747
|
}
|
|
1577
|
-
var
|
|
1748
|
+
var at = {
|
|
1578
1749
|
root: "_root_rmtbr_1",
|
|
1579
1750
|
searchWorkbench: "_searchWorkbench_rmtbr_7",
|
|
1580
1751
|
corpusExplorer: "_corpusExplorer_rmtbr_12",
|
|
1581
1752
|
twoColumn: "_twoColumn_rmtbr_17"
|
|
1582
|
-
},
|
|
1583
|
-
searchWorkbench:
|
|
1584
|
-
corpusExplorer:
|
|
1585
|
-
twoColumn:
|
|
1753
|
+
}, ot = {
|
|
1754
|
+
searchWorkbench: at.searchWorkbench,
|
|
1755
|
+
corpusExplorer: at.corpusExplorer,
|
|
1756
|
+
twoColumn: at.twoColumn
|
|
1586
1757
|
};
|
|
1587
|
-
function
|
|
1758
|
+
function st({ recipe: e = "twoColumn", className: t, children: n, ...r }) {
|
|
1588
1759
|
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1589
1760
|
className: [
|
|
1590
|
-
|
|
1591
|
-
|
|
1761
|
+
at.root,
|
|
1762
|
+
ot[e],
|
|
1592
1763
|
t ?? ""
|
|
1593
1764
|
].filter(Boolean).join(" "),
|
|
1594
1765
|
"data-rag-layout": "DashboardGrid",
|
|
@@ -1597,7 +1768,7 @@ function tt({ recipe: e = "twoColumn", className: t, children: n, ...r }) {
|
|
|
1597
1768
|
children: n
|
|
1598
1769
|
});
|
|
1599
1770
|
}
|
|
1600
|
-
var
|
|
1771
|
+
var ct = {
|
|
1601
1772
|
root: "_root_1rq8r_1",
|
|
1602
1773
|
header: "_header_1rq8r_2",
|
|
1603
1774
|
body: "_body_1rq8r_3",
|
|
@@ -1606,27 +1777,27 @@ var nt = {
|
|
|
1606
1777
|
};
|
|
1607
1778
|
//#endregion
|
|
1608
1779
|
//#region src/components/layout/AppShell/AppShell.tsx
|
|
1609
|
-
function
|
|
1780
|
+
function lt({ header: e, sidebar: t, className: n, children: r, ...i }) {
|
|
1610
1781
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1611
|
-
className: [
|
|
1782
|
+
className: [ct.root, n ?? ""].filter(Boolean).join(" "),
|
|
1612
1783
|
"data-rag-layout": "AppShell",
|
|
1613
1784
|
...i,
|
|
1614
1785
|
children: [e && /* @__PURE__ */ (0, _.jsx)("header", {
|
|
1615
|
-
className:
|
|
1786
|
+
className: ct.header,
|
|
1616
1787
|
children: e
|
|
1617
1788
|
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1618
|
-
className:
|
|
1789
|
+
className: ct.body,
|
|
1619
1790
|
children: [t && /* @__PURE__ */ (0, _.jsx)("aside", {
|
|
1620
|
-
className:
|
|
1791
|
+
className: ct.sidebar,
|
|
1621
1792
|
children: t
|
|
1622
1793
|
}), /* @__PURE__ */ (0, _.jsx)("main", {
|
|
1623
|
-
className:
|
|
1794
|
+
className: ct.main,
|
|
1624
1795
|
children: r
|
|
1625
1796
|
})]
|
|
1626
1797
|
})]
|
|
1627
1798
|
});
|
|
1628
1799
|
}
|
|
1629
|
-
var
|
|
1800
|
+
var ut = {
|
|
1630
1801
|
root: "_root_37934_1",
|
|
1631
1802
|
y: "_y_37934_2",
|
|
1632
1803
|
x: "_x_37934_3",
|
|
@@ -1634,11 +1805,11 @@ var it = {
|
|
|
1634
1805
|
};
|
|
1635
1806
|
//#endregion
|
|
1636
1807
|
//#region src/components/layout/ScrollRegion/ScrollRegion.tsx
|
|
1637
|
-
function
|
|
1808
|
+
function dt({ axis: e = "y", className: t, children: n, ...r }) {
|
|
1638
1809
|
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1639
1810
|
className: [
|
|
1640
|
-
|
|
1641
|
-
|
|
1811
|
+
ut.root,
|
|
1812
|
+
ut[e],
|
|
1642
1813
|
t ?? ""
|
|
1643
1814
|
].filter(Boolean).join(" "),
|
|
1644
1815
|
"data-rag-layout": "ScrollRegion",
|
|
@@ -1646,16 +1817,16 @@ function at({ axis: e = "y", className: t, children: n, ...r }) {
|
|
|
1646
1817
|
children: n
|
|
1647
1818
|
});
|
|
1648
1819
|
}
|
|
1649
|
-
var
|
|
1820
|
+
var ft = {
|
|
1650
1821
|
root: "_root_bo8as_1",
|
|
1651
1822
|
item: "_item_bo8as_2",
|
|
1652
1823
|
active: "_active_bo8as_4"
|
|
1653
1824
|
};
|
|
1654
1825
|
//#endregion
|
|
1655
1826
|
//#region src/components/layout/TabList/TabList.tsx
|
|
1656
|
-
function
|
|
1827
|
+
function pt({ items: e, activeId: t, onChange: n, ariaLabel: r = "Tabs" }) {
|
|
1657
1828
|
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1658
|
-
className:
|
|
1829
|
+
className: ft.root,
|
|
1659
1830
|
role: "tablist",
|
|
1660
1831
|
"aria-label": r,
|
|
1661
1832
|
"data-rag-layout": "TabList",
|
|
@@ -1663,13 +1834,13 @@ function st({ items: e, activeId: t, onChange: n, ariaLabel: r = "Tabs" }) {
|
|
|
1663
1834
|
type: "button",
|
|
1664
1835
|
role: "tab",
|
|
1665
1836
|
"aria-selected": e.id === t,
|
|
1666
|
-
className: [
|
|
1837
|
+
className: [ft.item, e.id === t ? ft.active : ""].filter(Boolean).join(" "),
|
|
1667
1838
|
onClick: () => n(e.id),
|
|
1668
1839
|
children: e.label
|
|
1669
1840
|
}, e.id))
|
|
1670
1841
|
});
|
|
1671
1842
|
}
|
|
1672
|
-
var
|
|
1843
|
+
var mt = {
|
|
1673
1844
|
root: "_root_t0l9w_1",
|
|
1674
1845
|
label: "_label_t0l9w_2",
|
|
1675
1846
|
control: "_control_t0l9w_3",
|
|
@@ -1677,28 +1848,28 @@ var ct = {
|
|
|
1677
1848
|
};
|
|
1678
1849
|
//#endregion
|
|
1679
1850
|
//#region src/components/layout/FormRow/FormRow.tsx
|
|
1680
|
-
function
|
|
1851
|
+
function ht({ label: e, control: t, hint: n, className: r, ...i }) {
|
|
1681
1852
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1682
|
-
className: [
|
|
1853
|
+
className: [mt.root, r ?? ""].filter(Boolean).join(" "),
|
|
1683
1854
|
"data-rag-layout": "FormRow",
|
|
1684
1855
|
...i,
|
|
1685
1856
|
children: [
|
|
1686
1857
|
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1687
|
-
className:
|
|
1858
|
+
className: mt.label,
|
|
1688
1859
|
children: e
|
|
1689
1860
|
}),
|
|
1690
1861
|
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1691
|
-
className:
|
|
1862
|
+
className: mt.control,
|
|
1692
1863
|
children: t
|
|
1693
1864
|
}),
|
|
1694
1865
|
n && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1695
|
-
className:
|
|
1866
|
+
className: mt.hint,
|
|
1696
1867
|
children: n
|
|
1697
1868
|
})
|
|
1698
1869
|
]
|
|
1699
1870
|
});
|
|
1700
1871
|
}
|
|
1701
|
-
var
|
|
1872
|
+
var k = {
|
|
1702
1873
|
root: "_root_145df_1",
|
|
1703
1874
|
normal: "_normal_145df_2",
|
|
1704
1875
|
spacious: "_spacious_145df_3",
|
|
@@ -1711,33 +1882,33 @@ var ut = {
|
|
|
1711
1882
|
};
|
|
1712
1883
|
//#endregion
|
|
1713
1884
|
//#region src/components/layout/SectionBlock/SectionBlock.tsx
|
|
1714
|
-
function
|
|
1885
|
+
function A({ as: e = "section", label: t, caption: n, density: r = "normal", divider: i = "none", className: a, children: o, ...s }) {
|
|
1715
1886
|
return /* @__PURE__ */ (0, _.jsxs)(e, {
|
|
1716
1887
|
className: [
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1888
|
+
k.root,
|
|
1889
|
+
k[r],
|
|
1890
|
+
k[`divider-${i}`],
|
|
1720
1891
|
a ?? ""
|
|
1721
1892
|
].filter(Boolean).join(" "),
|
|
1722
1893
|
"data-rag-layout": "SectionBlock",
|
|
1723
1894
|
...s,
|
|
1724
1895
|
children: [
|
|
1725
1896
|
t && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1726
|
-
className:
|
|
1897
|
+
className: k.label,
|
|
1727
1898
|
children: t
|
|
1728
1899
|
}),
|
|
1729
|
-
n && /* @__PURE__ */ (0, _.jsx)(
|
|
1730
|
-
className:
|
|
1900
|
+
n && /* @__PURE__ */ (0, _.jsx)(b, {
|
|
1901
|
+
className: k.caption,
|
|
1731
1902
|
children: n
|
|
1732
1903
|
}),
|
|
1733
1904
|
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1734
|
-
className:
|
|
1905
|
+
className: k.body,
|
|
1735
1906
|
children: o
|
|
1736
1907
|
})
|
|
1737
1908
|
]
|
|
1738
1909
|
});
|
|
1739
1910
|
}
|
|
1740
|
-
var
|
|
1911
|
+
var gt = {
|
|
1741
1912
|
root: "_root_1o5gv_1",
|
|
1742
1913
|
balanced: "_balanced_1o5gv_2",
|
|
1743
1914
|
leftNarrow: "_leftNarrow_1o5gv_3",
|
|
@@ -1751,27 +1922,27 @@ var ft = {
|
|
|
1751
1922
|
};
|
|
1752
1923
|
//#endregion
|
|
1753
1924
|
//#region src/components/layout/SplitPane/SplitPane.tsx
|
|
1754
|
-
function
|
|
1925
|
+
function _t({ left: e, right: t, ratio: n = "balanced", divider: r = !1, gutter: i = "none", className: a, ...o }) {
|
|
1755
1926
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1756
1927
|
className: [
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
r ?
|
|
1760
|
-
i === "none" ? "" :
|
|
1928
|
+
gt.root,
|
|
1929
|
+
gt[n],
|
|
1930
|
+
r ? gt.divider : "",
|
|
1931
|
+
i === "none" ? "" : gt[`gutter${i[0].toUpperCase()}${i.slice(1)}`],
|
|
1761
1932
|
a ?? ""
|
|
1762
1933
|
].filter(Boolean).join(" "),
|
|
1763
1934
|
"data-rag-layout": "SplitPane",
|
|
1764
1935
|
...o,
|
|
1765
1936
|
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1766
|
-
className:
|
|
1937
|
+
className: gt.pane,
|
|
1767
1938
|
children: e
|
|
1768
1939
|
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1769
|
-
className:
|
|
1940
|
+
className: gt.pane,
|
|
1770
1941
|
children: t
|
|
1771
1942
|
})]
|
|
1772
1943
|
});
|
|
1773
1944
|
}
|
|
1774
|
-
var
|
|
1945
|
+
var j = {
|
|
1775
1946
|
root: "_root_106h4_1",
|
|
1776
1947
|
header: "_header_106h4_12",
|
|
1777
1948
|
metaRow: "_metaRow_106h4_20",
|
|
@@ -1792,57 +1963,57 @@ var k = {
|
|
|
1792
1963
|
};
|
|
1793
1964
|
//#endregion
|
|
1794
1965
|
//#region src/components/layout/SlideShell/SlideShell.tsx
|
|
1795
|
-
function
|
|
1966
|
+
function vt({ as: e = "article", eyebrow: t, counter: n, title: r, subtitle: i, primary: a, secondary: o, primarySide: s = "left", ratio: c = "primaryWide", divider: l = !0, footer: u, className: d, ...f }) {
|
|
1796
1967
|
return /* @__PURE__ */ (0, _.jsxs)(e, {
|
|
1797
|
-
className: [
|
|
1968
|
+
className: [j.root, d ?? ""].filter(Boolean).join(" "),
|
|
1798
1969
|
"data-rag-layout": "SlideShell",
|
|
1799
1970
|
"data-primary-side": s,
|
|
1800
1971
|
...f,
|
|
1801
1972
|
children: [
|
|
1802
1973
|
/* @__PURE__ */ (0, _.jsxs)("header", {
|
|
1803
|
-
className:
|
|
1974
|
+
className: j.header,
|
|
1804
1975
|
children: [
|
|
1805
1976
|
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1806
|
-
className:
|
|
1807
|
-
children: [t ? /* @__PURE__ */ (0, _.jsx)(
|
|
1977
|
+
className: j.metaRow,
|
|
1978
|
+
children: [t ? /* @__PURE__ */ (0, _.jsx)(b, {
|
|
1808
1979
|
transform: "uppercase",
|
|
1809
1980
|
children: t
|
|
1810
|
-
}) : /* @__PURE__ */ (0, _.jsx)("span", {}), n && /* @__PURE__ */ (0, _.jsx)(
|
|
1981
|
+
}) : /* @__PURE__ */ (0, _.jsx)("span", {}), n && /* @__PURE__ */ (0, _.jsx)(b, { children: n })]
|
|
1811
1982
|
}),
|
|
1812
1983
|
/* @__PURE__ */ (0, _.jsx)("h2", {
|
|
1813
|
-
className:
|
|
1984
|
+
className: j.title,
|
|
1814
1985
|
children: r
|
|
1815
1986
|
}),
|
|
1816
1987
|
i && /* @__PURE__ */ (0, _.jsx)("p", {
|
|
1817
|
-
className:
|
|
1988
|
+
className: j.subtitle,
|
|
1818
1989
|
children: i
|
|
1819
1990
|
})
|
|
1820
1991
|
]
|
|
1821
1992
|
}),
|
|
1822
1993
|
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1823
1994
|
className: [
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
o ?
|
|
1827
|
-
l && o ?
|
|
1828
|
-
|
|
1995
|
+
j.body,
|
|
1996
|
+
j[c],
|
|
1997
|
+
o ? j.twoPane : j.singlePane,
|
|
1998
|
+
l && o ? j.divider : "",
|
|
1999
|
+
j[`primary-${s}`]
|
|
1829
2000
|
].filter(Boolean).join(" "),
|
|
1830
2001
|
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1831
|
-
className:
|
|
2002
|
+
className: j.primary,
|
|
1832
2003
|
children: a
|
|
1833
2004
|
}), o && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1834
|
-
className:
|
|
2005
|
+
className: j.secondary,
|
|
1835
2006
|
children: o
|
|
1836
2007
|
})]
|
|
1837
2008
|
}),
|
|
1838
2009
|
u && /* @__PURE__ */ (0, _.jsx)("footer", {
|
|
1839
|
-
className:
|
|
2010
|
+
className: j.footer,
|
|
1840
2011
|
children: u
|
|
1841
2012
|
})
|
|
1842
2013
|
]
|
|
1843
2014
|
});
|
|
1844
2015
|
}
|
|
1845
|
-
var
|
|
2016
|
+
var M = {
|
|
1846
2017
|
root: "_root_1w0ju_1",
|
|
1847
2018
|
sidebar: "_sidebar_1w0ju_10",
|
|
1848
2019
|
sidebarHeader: "_sidebarHeader_1w0ju_19",
|
|
@@ -1854,43 +2025,43 @@ var A = {
|
|
|
1854
2025
|
};
|
|
1855
2026
|
//#endregion
|
|
1856
2027
|
//#region src/components/layout/SidebarShell/SidebarShell.tsx
|
|
1857
|
-
function
|
|
2028
|
+
function yt(e) {
|
|
1858
2029
|
return typeof e == "number" ? `${e}px` : e;
|
|
1859
2030
|
}
|
|
1860
|
-
function
|
|
2031
|
+
function bt({ sidebar: e, sidebarWidth: t = 188, contentPadding: n = "none", header: r, footer: i, className: a, children: o, style: s, ...c }) {
|
|
1861
2032
|
let l = {
|
|
1862
2033
|
...s,
|
|
1863
|
-
"--rag-sidebar-width":
|
|
2034
|
+
"--rag-sidebar-width": yt(t)
|
|
1864
2035
|
};
|
|
1865
2036
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1866
|
-
className: [
|
|
2037
|
+
className: [M.root, a ?? ""].filter(Boolean).join(" "),
|
|
1867
2038
|
style: l,
|
|
1868
2039
|
"data-rag-layout": "SidebarShell",
|
|
1869
2040
|
...c,
|
|
1870
2041
|
children: [/* @__PURE__ */ (0, _.jsxs)("aside", {
|
|
1871
|
-
className:
|
|
2042
|
+
className: M.sidebar,
|
|
1872
2043
|
"aria-label": "Course navigation",
|
|
1873
2044
|
children: [
|
|
1874
2045
|
r && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1875
|
-
className:
|
|
2046
|
+
className: M.sidebarHeader,
|
|
1876
2047
|
children: r
|
|
1877
2048
|
}),
|
|
1878
2049
|
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
1879
|
-
className:
|
|
2050
|
+
className: M.sidebarBody,
|
|
1880
2051
|
children: e
|
|
1881
2052
|
}),
|
|
1882
2053
|
i && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
1883
|
-
className:
|
|
2054
|
+
className: M.sidebarFooter,
|
|
1884
2055
|
children: i
|
|
1885
2056
|
})
|
|
1886
2057
|
]
|
|
1887
2058
|
}), /* @__PURE__ */ (0, _.jsx)("main", {
|
|
1888
|
-
className: [
|
|
2059
|
+
className: [M.content, n === "none" ? "" : M[`contentPadding${n[0].toUpperCase()}${n.slice(1)}`]].filter(Boolean).join(" "),
|
|
1889
2060
|
children: o
|
|
1890
2061
|
})]
|
|
1891
2062
|
});
|
|
1892
2063
|
}
|
|
1893
|
-
var
|
|
2064
|
+
var xt = {
|
|
1894
2065
|
root: "_root_1gyp0_1",
|
|
1895
2066
|
row: "_row_1gyp0_2",
|
|
1896
2067
|
key: "_key_1gyp0_3",
|
|
@@ -1900,7 +2071,7 @@ var j = {
|
|
|
1900
2071
|
};
|
|
1901
2072
|
//#endregion
|
|
1902
2073
|
//#region src/components/molecules/MetadataGrid/MetadataGrid.tsx
|
|
1903
|
-
function
|
|
2074
|
+
function St({ items: e, density: t = "normal", className: n, onCopy: r }) {
|
|
1904
2075
|
let i = (e) => {
|
|
1905
2076
|
if (r) {
|
|
1906
2077
|
r(e);
|
|
@@ -1910,21 +2081,21 @@ function _t({ items: e, density: t = "normal", className: n, onCopy: r }) {
|
|
|
1910
2081
|
};
|
|
1911
2082
|
return /* @__PURE__ */ (0, _.jsx)("dl", {
|
|
1912
2083
|
className: [
|
|
1913
|
-
|
|
1914
|
-
t === "compact" ?
|
|
2084
|
+
xt.root,
|
|
2085
|
+
t === "compact" ? xt.compact : "",
|
|
1915
2086
|
n ?? ""
|
|
1916
2087
|
].filter(Boolean).join(" "),
|
|
1917
2088
|
"data-rag-component": "MetadataGrid",
|
|
1918
2089
|
children: e.map((e, t) => /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
1919
|
-
className:
|
|
2090
|
+
className: xt.row,
|
|
1920
2091
|
children: [/* @__PURE__ */ (0, _.jsx)("dt", {
|
|
1921
|
-
className:
|
|
2092
|
+
className: xt.key,
|
|
1922
2093
|
children: e.key
|
|
1923
2094
|
}), /* @__PURE__ */ (0, _.jsxs)("dd", {
|
|
1924
|
-
className:
|
|
2095
|
+
className: xt.value,
|
|
1925
2096
|
children: [e.value, e.copyValue && /* @__PURE__ */ (0, _.jsx)("button", {
|
|
1926
2097
|
type: "button",
|
|
1927
|
-
className:
|
|
2098
|
+
className: xt.copyButton,
|
|
1928
2099
|
onClick: () => i(e.copyValue),
|
|
1929
2100
|
children: "⧉"
|
|
1930
2101
|
})]
|
|
@@ -1932,7 +2103,7 @@ function _t({ items: e, density: t = "normal", className: n, onCopy: r }) {
|
|
|
1932
2103
|
}, t))
|
|
1933
2104
|
});
|
|
1934
2105
|
}
|
|
1935
|
-
var
|
|
2106
|
+
var Ct = {
|
|
1936
2107
|
root: "_root_1kw0z_1",
|
|
1937
2108
|
selectable: "_selectable_1kw0z_4",
|
|
1938
2109
|
selected: "_selected_1kw0z_6",
|
|
@@ -1943,24 +2114,24 @@ var M = {
|
|
|
1943
2114
|
};
|
|
1944
2115
|
//#endregion
|
|
1945
2116
|
//#region src/components/molecules/DataTable/DataTable.tsx
|
|
1946
|
-
function
|
|
2117
|
+
function wt({ columns: e, rows: t, getRowKey: n, selectedKey: r, onRowSelect: i, emptyMessage: a, className: o }) {
|
|
1947
2118
|
return /* @__PURE__ */ (0, _.jsxs)("table", {
|
|
1948
|
-
className: [
|
|
2119
|
+
className: [Ct.root, o ?? ""].filter(Boolean).join(" "),
|
|
1949
2120
|
"data-rag-component": "DataTable",
|
|
1950
2121
|
children: [/* @__PURE__ */ (0, _.jsx)("thead", { children: /* @__PURE__ */ (0, _.jsx)("tr", { children: e.map((e) => /* @__PURE__ */ (0, _.jsx)("th", {
|
|
1951
|
-
className:
|
|
2122
|
+
className: Ct[e.align ?? "start"],
|
|
1952
2123
|
children: e.header
|
|
1953
2124
|
}, e.id)) }) }), /* @__PURE__ */ (0, _.jsxs)("tbody", { children: [t.length === 0 && a && /* @__PURE__ */ (0, _.jsx)("tr", { children: /* @__PURE__ */ (0, _.jsx)("td", {
|
|
1954
2125
|
colSpan: e.length,
|
|
1955
|
-
className:
|
|
2126
|
+
className: Ct.empty,
|
|
1956
2127
|
children: a
|
|
1957
2128
|
}) }), t.map((t) => {
|
|
1958
2129
|
let a = n(t);
|
|
1959
2130
|
return /* @__PURE__ */ (0, _.jsx)("tr", {
|
|
1960
|
-
className: [i ?
|
|
2131
|
+
className: [i ? Ct.selectable : "", r === a ? Ct.selected : ""].filter(Boolean).join(" "),
|
|
1961
2132
|
onClick: i ? () => i(t) : void 0,
|
|
1962
2133
|
children: e.map((e) => /* @__PURE__ */ (0, _.jsx)("td", {
|
|
1963
|
-
className:
|
|
2134
|
+
className: Ct[e.align ?? "start"],
|
|
1964
2135
|
style: e.maxWidth ? { maxWidth: e.maxWidth } : void 0,
|
|
1965
2136
|
children: e.cell(t)
|
|
1966
2137
|
}, e.id))
|
|
@@ -1968,7 +2139,7 @@ function vt({ columns: e, rows: t, getRowKey: n, selectedKey: r, onRowSelect: i,
|
|
|
1968
2139
|
})] })]
|
|
1969
2140
|
});
|
|
1970
2141
|
}
|
|
1971
|
-
var
|
|
2142
|
+
var Tt = {
|
|
1972
2143
|
root: "_root_13gif_1",
|
|
1973
2144
|
brand: "_brand_13gif_13",
|
|
1974
2145
|
item: "_item_13gif_22",
|
|
@@ -1976,19 +2147,19 @@ var yt = {
|
|
|
1976
2147
|
};
|
|
1977
2148
|
//#endregion
|
|
1978
2149
|
//#region src/components/molecules/AppNav/AppNav.tsx
|
|
1979
|
-
function
|
|
2150
|
+
function Et({ brand: e, items: t, activeItemId: n, onItemSelect: r }) {
|
|
1980
2151
|
return /* @__PURE__ */ (0, _.jsxs)("nav", {
|
|
1981
|
-
className:
|
|
2152
|
+
className: Tt.root,
|
|
1982
2153
|
"aria-label": "Primary",
|
|
1983
2154
|
"data-rag-component": "AppNav",
|
|
1984
2155
|
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
1985
|
-
className:
|
|
2156
|
+
className: Tt.brand,
|
|
1986
2157
|
children: e
|
|
1987
2158
|
}), t.map((e) => {
|
|
1988
2159
|
let t = e.id === n;
|
|
1989
2160
|
return /* @__PURE__ */ (0, _.jsx)("button", {
|
|
1990
2161
|
type: "button",
|
|
1991
|
-
className: [
|
|
2162
|
+
className: [Tt.item, t ? Tt.active : ""].filter(Boolean).join(" "),
|
|
1992
2163
|
"aria-current": t ? "page" : void 0,
|
|
1993
2164
|
onClick: () => r(e.id),
|
|
1994
2165
|
children: e.label
|
|
@@ -1996,7 +2167,7 @@ function bt({ brand: e, items: t, activeItemId: n, onItemSelect: r }) {
|
|
|
1996
2167
|
})]
|
|
1997
2168
|
});
|
|
1998
2169
|
}
|
|
1999
|
-
var
|
|
2170
|
+
var Dt = {
|
|
2000
2171
|
root: "_root_1i26l_1",
|
|
2001
2172
|
default: "_default_1i26l_7",
|
|
2002
2173
|
compact: "_compact_1i26l_11",
|
|
@@ -2005,26 +2176,26 @@ var xt = {
|
|
|
2005
2176
|
};
|
|
2006
2177
|
//#endregion
|
|
2007
2178
|
//#region src/components/molecules/ContextLegend/ContextLegend.tsx
|
|
2008
|
-
function
|
|
2179
|
+
function Ot({ kinds: e = Ee.filter((e) => e !== "other"), mode: t = "pattern", compact: n = !1, selectedKind: r, className: i, ...a }) {
|
|
2009
2180
|
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2010
2181
|
className: [
|
|
2011
|
-
|
|
2012
|
-
n ?
|
|
2182
|
+
Dt.root,
|
|
2183
|
+
n ? Dt.compact : Dt.default,
|
|
2013
2184
|
i ?? ""
|
|
2014
2185
|
].filter(Boolean).join(" "),
|
|
2015
2186
|
"data-rag-molecule": "ContextLegend",
|
|
2016
2187
|
"data-mode": t,
|
|
2017
2188
|
...a,
|
|
2018
2189
|
children: e.map((e) => /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2019
|
-
className:
|
|
2190
|
+
className: Dt.item,
|
|
2020
2191
|
"data-selected": r === e ? "true" : void 0,
|
|
2021
|
-
children: [/* @__PURE__ */ (0, _.jsx)(
|
|
2192
|
+
children: [/* @__PURE__ */ (0, _.jsx)(Ve, {
|
|
2022
2193
|
kind: e,
|
|
2023
2194
|
mode: t,
|
|
2024
2195
|
size: n ? "sm" : "md",
|
|
2025
2196
|
selected: r === e
|
|
2026
2197
|
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2027
|
-
className:
|
|
2198
|
+
className: Dt.label,
|
|
2028
2199
|
children: T(e)
|
|
2029
2200
|
})]
|
|
2030
2201
|
}, e))
|
|
@@ -2061,14 +2232,14 @@ var N = {
|
|
|
2061
2232
|
};
|
|
2062
2233
|
//#endregion
|
|
2063
2234
|
//#region src/components/molecules/ContextBudgetBar/ContextBudgetBar.tsx
|
|
2064
|
-
function
|
|
2235
|
+
function kt(e) {
|
|
2065
2236
|
return `${Math.round(e).toLocaleString()} tok`;
|
|
2066
2237
|
}
|
|
2067
|
-
function
|
|
2238
|
+
function At(e) {
|
|
2068
2239
|
return e.filter((e) => e.kind !== "empty" && e.tokens > 0);
|
|
2069
2240
|
}
|
|
2070
|
-
function
|
|
2071
|
-
let o =
|
|
2241
|
+
function jt({ snapshot: e, mode: t = "pattern", showLegend: n = !0, selectedPartId: r, className: i, ...a }) {
|
|
2242
|
+
let o = ze(e), s = Be(e), c = o > e.limit, l = !c && s >= .8, u = At(e.parts), d = r ?? e.selectedPartId;
|
|
2072
2243
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2073
2244
|
className: [
|
|
2074
2245
|
N.root,
|
|
@@ -2081,15 +2252,15 @@ function Tt({ snapshot: e, mode: t = "pattern", showLegend: n = !0, selectedPart
|
|
|
2081
2252
|
children: [
|
|
2082
2253
|
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2083
2254
|
className: N.header,
|
|
2084
|
-
children: [/* @__PURE__ */ (0, _.jsx)(
|
|
2255
|
+
children: [/* @__PURE__ */ (0, _.jsx)(b, {
|
|
2085
2256
|
transform: "uppercase",
|
|
2086
2257
|
children: e.title
|
|
2087
|
-
}), /* @__PURE__ */ (0, _.jsxs)(
|
|
2258
|
+
}), /* @__PURE__ */ (0, _.jsxs)(b, {
|
|
2088
2259
|
tone: c ? "danger" : l ? "warning" : "muted",
|
|
2089
2260
|
children: [
|
|
2090
|
-
|
|
2261
|
+
kt(o),
|
|
2091
2262
|
" / ",
|
|
2092
|
-
|
|
2263
|
+
kt(e.limit),
|
|
2093
2264
|
" · ",
|
|
2094
2265
|
Math.round(s * 100),
|
|
2095
2266
|
"%"
|
|
@@ -2099,7 +2270,7 @@ function Tt({ snapshot: e, mode: t = "pattern", showLegend: n = !0, selectedPart
|
|
|
2099
2270
|
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2100
2271
|
className: N.track,
|
|
2101
2272
|
role: "img",
|
|
2102
|
-
"aria-label": `${e.title}: ${
|
|
2273
|
+
"aria-label": `${e.title}: ${kt(o)} of ${kt(e.limit)} used`,
|
|
2103
2274
|
children: [u.map((t) => {
|
|
2104
2275
|
let n = e.limit > 0 ? Math.max(.5, t.tokens / e.limit * 100) : 0;
|
|
2105
2276
|
return /* @__PURE__ */ (0, _.jsx)("div", {
|
|
@@ -2109,7 +2280,7 @@ function Tt({ snapshot: e, mode: t = "pattern", showLegend: n = !0, selectedPart
|
|
|
2109
2280
|
d === t.id ? N.selected : ""
|
|
2110
2281
|
].filter(Boolean).join(" "),
|
|
2111
2282
|
style: { width: `${n}%` },
|
|
2112
|
-
title: `${t.label}: ${
|
|
2283
|
+
title: `${t.label}: ${kt(t.tokens)} (${T(t.kind)})`
|
|
2113
2284
|
}, t.id);
|
|
2114
2285
|
}), c && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2115
2286
|
className: N.limitMarker,
|
|
@@ -2126,7 +2297,7 @@ function Tt({ snapshot: e, mode: t = "pattern", showLegend: n = !0, selectedPart
|
|
|
2126
2297
|
/* @__PURE__ */ (0, _.jsx)("span", { children: e.label }),
|
|
2127
2298
|
/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2128
2299
|
className: N.tokens,
|
|
2129
|
-
children:
|
|
2300
|
+
children: kt(e.tokens)
|
|
2130
2301
|
})
|
|
2131
2302
|
]
|
|
2132
2303
|
}, e.id))
|
|
@@ -2159,10 +2330,10 @@ var P = {
|
|
|
2159
2330
|
};
|
|
2160
2331
|
//#endregion
|
|
2161
2332
|
//#region src/components/molecules/ContextStripDiagram/ContextStripDiagram.tsx
|
|
2162
|
-
function
|
|
2333
|
+
function Mt(e) {
|
|
2163
2334
|
return `${e.toLocaleString()} tok`;
|
|
2164
2335
|
}
|
|
2165
|
-
function
|
|
2336
|
+
function Nt({ snapshot: e, mode: t = "pattern", selectedPartId: n, showLabels: r = !0, className: i, ...a }) {
|
|
2166
2337
|
let o = n ?? e.selectedPartId, s = e.limit || e.parts.reduce((e, t) => e + t.tokens, 0);
|
|
2167
2338
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2168
2339
|
className: [P.root, i ?? ""].filter(Boolean).join(" "),
|
|
@@ -2182,7 +2353,7 @@ function Dt({ snapshot: e, mode: t = "pattern", selectedPartId: n, showLabels: r
|
|
|
2182
2353
|
n ? P.selected : ""
|
|
2183
2354
|
].filter(Boolean).join(" "),
|
|
2184
2355
|
style: { width: `${t}%` },
|
|
2185
|
-
title: `${e.label}: ${
|
|
2356
|
+
title: `${e.label}: ${Mt(e.tokens)} (${T(e.kind)})`,
|
|
2186
2357
|
children: r && t >= 7 && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2187
2358
|
className: P.label,
|
|
2188
2359
|
children: e.label
|
|
@@ -2226,10 +2397,10 @@ var F = {
|
|
|
2226
2397
|
};
|
|
2227
2398
|
//#endregion
|
|
2228
2399
|
//#region src/components/molecules/ContextStackDiagram/ContextStackDiagram.tsx
|
|
2229
|
-
function
|
|
2400
|
+
function Pt(e) {
|
|
2230
2401
|
return `${e.toLocaleString()} tok`;
|
|
2231
2402
|
}
|
|
2232
|
-
function
|
|
2403
|
+
function Ft({ snapshot: e, selectedPartId: t, className: n, ...r }) {
|
|
2233
2404
|
let i = t ?? e.selectedPartId, a = e.parts.filter((e) => e.tokens > 0), o = Math.max(...a.map((e) => e.tokens), 1);
|
|
2234
2405
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2235
2406
|
className: [F.root, n ?? ""].filter(Boolean).join(" "),
|
|
@@ -2248,13 +2419,13 @@ function kt({ snapshot: e, selectedPartId: t, className: n, ...r }) {
|
|
|
2248
2419
|
t ? F.selected : ""
|
|
2249
2420
|
].filter(Boolean).join(" "),
|
|
2250
2421
|
style: { minHeight: n },
|
|
2251
|
-
title: `${e.label}: ${
|
|
2422
|
+
title: `${e.label}: ${Pt(e.tokens)} (${T(e.kind)})`,
|
|
2252
2423
|
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2253
2424
|
className: F.label,
|
|
2254
2425
|
children: e.label
|
|
2255
2426
|
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2256
2427
|
className: F.tokens,
|
|
2257
|
-
children:
|
|
2428
|
+
children: Pt(e.tokens)
|
|
2258
2429
|
})]
|
|
2259
2430
|
}, e.id);
|
|
2260
2431
|
})
|
|
@@ -2289,11 +2460,11 @@ var I = {
|
|
|
2289
2460
|
};
|
|
2290
2461
|
//#endregion
|
|
2291
2462
|
//#region src/components/molecules/ContextTreemap/ContextTreemap.tsx
|
|
2292
|
-
function
|
|
2463
|
+
function It(e) {
|
|
2293
2464
|
return `${e.toLocaleString()} tok`;
|
|
2294
2465
|
}
|
|
2295
|
-
function
|
|
2296
|
-
let i = t ?? e.selectedPartId, a = e.parts.filter((e) => e.kind !== "empty" && e.tokens > 0), o =
|
|
2466
|
+
function Lt({ snapshot: e, selectedPartId: t, className: n, ...r }) {
|
|
2467
|
+
let i = t ?? e.selectedPartId, a = e.parts.filter((e) => e.kind !== "empty" && e.tokens > 0), o = ze(e) || 1;
|
|
2297
2468
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2298
2469
|
className: [I.root, n ?? ""].filter(Boolean).join(" "),
|
|
2299
2470
|
"data-rag-molecule": "ContextTreemap",
|
|
@@ -2314,20 +2485,20 @@ function jt({ snapshot: e, selectedPartId: t, className: n, ...r }) {
|
|
|
2314
2485
|
flexBasis: `${t}%`,
|
|
2315
2486
|
flexGrow: e.tokens
|
|
2316
2487
|
},
|
|
2317
|
-
title: `${e.label}: ${
|
|
2488
|
+
title: `${e.label}: ${It(e.tokens)} (${T(e.kind)})`,
|
|
2318
2489
|
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2319
2490
|
className: I.label,
|
|
2320
2491
|
children: e.label
|
|
2321
2492
|
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2322
2493
|
className: I.tokens,
|
|
2323
|
-
children:
|
|
2494
|
+
children: It(e.tokens)
|
|
2324
2495
|
})]
|
|
2325
2496
|
}, e.id);
|
|
2326
2497
|
})
|
|
2327
2498
|
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2328
2499
|
className: I.caption,
|
|
2329
2500
|
children: [
|
|
2330
|
-
|
|
2501
|
+
It(o),
|
|
2331
2502
|
" in use · ",
|
|
2332
2503
|
e.title
|
|
2333
2504
|
]
|
|
@@ -2351,14 +2522,14 @@ var L = {
|
|
|
2351
2522
|
system: "_system_15h6i_92",
|
|
2352
2523
|
developer: "_developer_15h6i_93",
|
|
2353
2524
|
other: "_other_15h6i_94"
|
|
2354
|
-
},
|
|
2525
|
+
}, Rt = {
|
|
2355
2526
|
system: "SYSTEM",
|
|
2356
2527
|
developer: "DEVELOPER",
|
|
2357
2528
|
user: "USER",
|
|
2358
2529
|
assistant: "ASSISTANT",
|
|
2359
2530
|
tool: "TOOL",
|
|
2360
2531
|
other: "MESSAGE"
|
|
2361
|
-
},
|
|
2532
|
+
}, zt = {
|
|
2362
2533
|
system: "◆",
|
|
2363
2534
|
developer: "◇",
|
|
2364
2535
|
user: "▸",
|
|
@@ -2366,11 +2537,11 @@ var L = {
|
|
|
2366
2537
|
tool: "⚙",
|
|
2367
2538
|
other: "•"
|
|
2368
2539
|
};
|
|
2369
|
-
function
|
|
2540
|
+
function Bt(e, t) {
|
|
2370
2541
|
return e.findIndex((e) => e.id === t) + 1;
|
|
2371
2542
|
}
|
|
2372
|
-
function
|
|
2373
|
-
let s = t.filter((t) => t.targetMessageId === e.id || e.annotationIds?.includes(t.id)), c = s.some((e) => e.id === n), l = e.name ? `${
|
|
2543
|
+
function Vt({ message: e, annotations: t = [], selectedAnnotationId: n, onAnnotationSelect: r, showAnnotationChips: i = !0, className: a, ...o }) {
|
|
2544
|
+
let s = t.filter((t) => t.targetMessageId === e.id || e.annotationIds?.includes(t.id)), c = s.some((e) => e.id === n), l = e.name ? `${Rt[e.role]} · ${e.name}` : Rt[e.role], u = [L.body, e.role === "tool" ? L.toolBody : ""].filter(Boolean).join(" ");
|
|
2374
2545
|
return /* @__PURE__ */ (0, _.jsxs)("article", {
|
|
2375
2546
|
className: [
|
|
2376
2547
|
L.root,
|
|
@@ -2390,7 +2561,7 @@ function Ft({ message: e, annotations: t = [], selectedAnnotationId: n, onAnnota
|
|
|
2390
2561
|
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2391
2562
|
className: L.roleGlyph,
|
|
2392
2563
|
"aria-hidden": "true",
|
|
2393
|
-
children:
|
|
2564
|
+
children: zt[e.role]
|
|
2394
2565
|
}), /* @__PURE__ */ (0, _.jsx)("span", {
|
|
2395
2566
|
className: L.roleLabel,
|
|
2396
2567
|
children: l
|
|
@@ -2398,7 +2569,7 @@ function Ft({ message: e, annotations: t = [], selectedAnnotationId: n, onAnnota
|
|
|
2398
2569
|
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2399
2570
|
className: L.metaCluster,
|
|
2400
2571
|
children: [i && s.map((e) => {
|
|
2401
|
-
let i =
|
|
2572
|
+
let i = Bt(t, e.id), a = n === e.id;
|
|
2402
2573
|
return /* @__PURE__ */ (0, _.jsxs)("button", {
|
|
2403
2574
|
type: "button",
|
|
2404
2575
|
className: L.noteChip,
|
|
@@ -2406,7 +2577,7 @@ function Ft({ message: e, annotations: t = [], selectedAnnotationId: n, onAnnota
|
|
|
2406
2577
|
onClick: () => r?.(e.id),
|
|
2407
2578
|
children: ["note ", i > 0 ? i : ""]
|
|
2408
2579
|
}, e.id);
|
|
2409
|
-
}), /* @__PURE__ */ (0, _.jsxs)(
|
|
2580
|
+
}), /* @__PURE__ */ (0, _.jsxs)(b, { children: [e.tokens?.toLocaleString() ?? "—", " tok"] })]
|
|
2410
2581
|
})]
|
|
2411
2582
|
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2412
2583
|
className: u,
|
|
@@ -2414,7 +2585,7 @@ function Ft({ message: e, annotations: t = [], selectedAnnotationId: n, onAnnota
|
|
|
2414
2585
|
})]
|
|
2415
2586
|
});
|
|
2416
2587
|
}
|
|
2417
|
-
var
|
|
2588
|
+
var Ht = {
|
|
2418
2589
|
root: "_root_1q2ab_1",
|
|
2419
2590
|
titleRow: "_titleRow_1q2ab_11",
|
|
2420
2591
|
metaRow: "_metaRow_1q2ab_12",
|
|
@@ -2422,24 +2593,24 @@ var It = {
|
|
|
2422
2593
|
};
|
|
2423
2594
|
//#endregion
|
|
2424
2595
|
//#region src/components/molecules/TranscriptSessionHeader/TranscriptSessionHeader.tsx
|
|
2425
|
-
function
|
|
2596
|
+
function Ut({ title: e, subtitle: t, messageCount: n, annotationCount: r, tokenTotal: i, rightSlot: a, className: o, ...s }) {
|
|
2426
2597
|
let c = [n == null ? void 0 : `${n} message${n === 1 ? "" : "s"}`, r == null ? void 0 : `${r} annotation${r === 1 ? "" : "s"}`].filter(Boolean).join(" · ");
|
|
2427
2598
|
return /* @__PURE__ */ (0, _.jsxs)("header", {
|
|
2428
|
-
className: [
|
|
2599
|
+
className: [Ht.root, o ?? ""].filter(Boolean).join(" "),
|
|
2429
2600
|
"data-rag-molecule": "TranscriptSessionHeader",
|
|
2430
2601
|
...s,
|
|
2431
2602
|
children: [/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2432
|
-
className:
|
|
2603
|
+
className: Ht.titleRow,
|
|
2433
2604
|
children: [/* @__PURE__ */ (0, _.jsxs)(h, {
|
|
2434
2605
|
as: "div",
|
|
2435
2606
|
size: "metric",
|
|
2436
2607
|
weight: "bold",
|
|
2437
2608
|
children: ["Session: ", e]
|
|
2438
|
-
}), i != null && /* @__PURE__ */ (0, _.jsxs)(
|
|
2609
|
+
}), i != null && /* @__PURE__ */ (0, _.jsxs)(b, { children: [i.toLocaleString(), " tok cumulative"] })]
|
|
2439
2610
|
}), (t || c || a) && /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2440
|
-
className:
|
|
2441
|
-
children: [/* @__PURE__ */ (0, _.jsx)(
|
|
2442
|
-
className:
|
|
2611
|
+
className: Ht.metaRow,
|
|
2612
|
+
children: [/* @__PURE__ */ (0, _.jsx)(b, { children: [t, c].filter(Boolean).join(" · ") }), a && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2613
|
+
className: Ht.rightSlot,
|
|
2443
2614
|
children: a
|
|
2444
2615
|
})]
|
|
2445
2616
|
})]
|
|
@@ -2456,7 +2627,7 @@ var R = {
|
|
|
2456
2627
|
};
|
|
2457
2628
|
//#endregion
|
|
2458
2629
|
//#region src/components/molecules/AnnotationNoteCard/AnnotationNoteCard.tsx
|
|
2459
|
-
function
|
|
2630
|
+
function Wt({ annotation: e, selected: t = !1, index: n, className: r, ...i }) {
|
|
2460
2631
|
return /* @__PURE__ */ (0, _.jsxs)("aside", {
|
|
2461
2632
|
className: [
|
|
2462
2633
|
R.root,
|
|
@@ -2472,7 +2643,7 @@ function Rt({ annotation: e, selected: t = !1, index: n, className: r, ...i }) {
|
|
|
2472
2643
|
children: [/* @__PURE__ */ (0, _.jsxs)("span", {
|
|
2473
2644
|
className: R.noteLabel,
|
|
2474
2645
|
children: ["NOTE ", n ?? ""]
|
|
2475
|
-
}), /* @__PURE__ */ (0, _.jsx)(
|
|
2646
|
+
}), /* @__PURE__ */ (0, _.jsx)(Ve, {
|
|
2476
2647
|
kind: e.kind,
|
|
2477
2648
|
size: "sm",
|
|
2478
2649
|
selected: t
|
|
@@ -2488,7 +2659,7 @@ function Rt({ annotation: e, selected: t = !1, index: n, className: r, ...i }) {
|
|
|
2488
2659
|
className: R.text,
|
|
2489
2660
|
children: e.text
|
|
2490
2661
|
}),
|
|
2491
|
-
e.confidence != null && /* @__PURE__ */ (0, _.jsxs)(
|
|
2662
|
+
e.confidence != null && /* @__PURE__ */ (0, _.jsxs)(b, { children: [
|
|
2492
2663
|
"confidence ",
|
|
2493
2664
|
Math.round(e.confidence * 100),
|
|
2494
2665
|
"%"
|
|
@@ -2512,7 +2683,7 @@ var z = {
|
|
|
2512
2683
|
};
|
|
2513
2684
|
//#endregion
|
|
2514
2685
|
//#region src/components/molecules/AnchoredCommentCard/AnchoredCommentCard.tsx
|
|
2515
|
-
function
|
|
2686
|
+
function Gt({ comment: e, index: t, selected: n = !1, compact: r = !1, onDismiss: i, className: a, ...o }) {
|
|
2516
2687
|
return /* @__PURE__ */ (0, _.jsxs)("article", {
|
|
2517
2688
|
className: [
|
|
2518
2689
|
z.root,
|
|
@@ -2554,7 +2725,7 @@ function zt({ comment: e, index: t, selected: n = !1, compact: r = !1, onDismiss
|
|
|
2554
2725
|
className: z.text,
|
|
2555
2726
|
children: e.text
|
|
2556
2727
|
}),
|
|
2557
|
-
e.status === "resolved" && /* @__PURE__ */ (0, _.jsx)(
|
|
2728
|
+
e.status === "resolved" && /* @__PURE__ */ (0, _.jsx)(b, {
|
|
2558
2729
|
tone: "success",
|
|
2559
2730
|
children: "resolved"
|
|
2560
2731
|
})
|
|
@@ -2572,7 +2743,7 @@ var B = {
|
|
|
2572
2743
|
};
|
|
2573
2744
|
//#endregion
|
|
2574
2745
|
//#region src/components/molecules/CourseStepNav/CourseStepNav.tsx
|
|
2575
|
-
function
|
|
2746
|
+
function Kt({ items: e, activeItemId: t, onItemSelect: n, className: r, ...i }) {
|
|
2576
2747
|
return /* @__PURE__ */ (0, _.jsx)("ol", {
|
|
2577
2748
|
className: [B.root, r ?? ""].filter(Boolean).join(" "),
|
|
2578
2749
|
"data-rag-molecule": "CourseStepNav",
|
|
@@ -2601,48 +2772,48 @@ function Bt({ items: e, activeItemId: t, onItemSelect: n, className: r, ...i })
|
|
|
2601
2772
|
children: e.description
|
|
2602
2773
|
})]
|
|
2603
2774
|
}),
|
|
2604
|
-
e.duration && /* @__PURE__ */ (0, _.jsx)(
|
|
2775
|
+
e.duration && /* @__PURE__ */ (0, _.jsx)(b, { children: e.duration })
|
|
2605
2776
|
]
|
|
2606
2777
|
})
|
|
2607
2778
|
}, e.id);
|
|
2608
2779
|
})
|
|
2609
2780
|
});
|
|
2610
2781
|
}
|
|
2611
|
-
var
|
|
2782
|
+
var qt = {
|
|
2612
2783
|
root: "_root_vz3kq_1",
|
|
2613
2784
|
cell: "_cell_vz3kq_2"
|
|
2614
2785
|
};
|
|
2615
2786
|
//#endregion
|
|
2616
2787
|
//#region src/components/molecules/KeyValueStrip/KeyValueStrip.tsx
|
|
2617
|
-
function
|
|
2788
|
+
function Jt({ items: e, className: t, ...n }) {
|
|
2618
2789
|
return /* @__PURE__ */ (0, _.jsx)("dl", {
|
|
2619
|
-
className: [
|
|
2790
|
+
className: [qt.root, t ?? ""].filter(Boolean).join(" "),
|
|
2620
2791
|
"data-rag-molecule": "KeyValueStrip",
|
|
2621
2792
|
...n,
|
|
2622
2793
|
children: e.map((e, t) => /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2623
|
-
className:
|
|
2794
|
+
className: qt.cell,
|
|
2624
2795
|
children: [/* @__PURE__ */ (0, _.jsx)("dt", { children: e.key }), /* @__PURE__ */ (0, _.jsx)("dd", { children: e.value })]
|
|
2625
2796
|
}, t))
|
|
2626
2797
|
});
|
|
2627
2798
|
}
|
|
2628
|
-
var
|
|
2799
|
+
var Yt = {
|
|
2629
2800
|
root: "_root_yhnta_1",
|
|
2630
2801
|
item: "_item_yhnta_2",
|
|
2631
2802
|
marker: "_marker_yhnta_3"
|
|
2632
2803
|
};
|
|
2633
2804
|
//#endregion
|
|
2634
2805
|
//#region src/components/molecules/CheckList/CheckList.tsx
|
|
2635
|
-
function
|
|
2806
|
+
function Xt({ items: e, marker: t = "✔", className: n, ...r }) {
|
|
2636
2807
|
return /* @__PURE__ */ (0, _.jsx)("ul", {
|
|
2637
|
-
className: [
|
|
2808
|
+
className: [Yt.root, n ?? ""].filter(Boolean).join(" "),
|
|
2638
2809
|
"data-rag-molecule": "CheckList",
|
|
2639
2810
|
...r,
|
|
2640
2811
|
children: e.map((e, n) => {
|
|
2641
2812
|
let r = typeof e == "object" && e && "text" in e ? e.text : e, i = typeof e == "object" && e && "id" in e && e.id ? e.id : n;
|
|
2642
2813
|
return /* @__PURE__ */ (0, _.jsxs)("li", {
|
|
2643
|
-
className:
|
|
2814
|
+
className: Yt.item,
|
|
2644
2815
|
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
2645
|
-
className:
|
|
2816
|
+
className: Yt.marker,
|
|
2646
2817
|
children: t
|
|
2647
2818
|
}), /* @__PURE__ */ (0, _.jsx)("span", { children: r })]
|
|
2648
2819
|
}, i);
|
|
@@ -2661,7 +2832,7 @@ var V = {
|
|
|
2661
2832
|
};
|
|
2662
2833
|
//#endregion
|
|
2663
2834
|
//#region src/components/molecules/StepList/StepList.tsx
|
|
2664
|
-
function
|
|
2835
|
+
function Zt({ items: e, activeItemId: t, onItemSelect: n, className: r, ...i }) {
|
|
2665
2836
|
return /* @__PURE__ */ (0, _.jsx)("ol", {
|
|
2666
2837
|
className: [V.root, r ?? ""].filter(Boolean).join(" "),
|
|
2667
2838
|
"data-rag-molecule": "StepList",
|
|
@@ -2703,7 +2874,7 @@ function Gt({ items: e, activeItemId: t, onItemSelect: n, className: r, ...i })
|
|
|
2703
2874
|
})
|
|
2704
2875
|
});
|
|
2705
2876
|
}
|
|
2706
|
-
var
|
|
2877
|
+
var Qt = {
|
|
2707
2878
|
root: "_root_9v8jy_1",
|
|
2708
2879
|
avatar: "_avatar_9v8jy_2",
|
|
2709
2880
|
body: "_body_9v8jy_3",
|
|
@@ -2713,35 +2884,35 @@ var Kt = {
|
|
|
2713
2884
|
};
|
|
2714
2885
|
//#endregion
|
|
2715
2886
|
//#region src/components/molecules/PersonSummary/PersonSummary.tsx
|
|
2716
|
-
function
|
|
2887
|
+
function $t({ name: e, subtitle: t, bio: n, avatar: r, className: i, ...a }) {
|
|
2717
2888
|
let o = typeof e == "string" && e.length > 0 ? e[0] : "?";
|
|
2718
2889
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2719
|
-
className: [
|
|
2890
|
+
className: [Qt.root, i ?? ""].filter(Boolean).join(" "),
|
|
2720
2891
|
"data-rag-molecule": "PersonSummary",
|
|
2721
2892
|
...a,
|
|
2722
2893
|
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2723
|
-
className:
|
|
2894
|
+
className: Qt.avatar,
|
|
2724
2895
|
children: r ?? o
|
|
2725
2896
|
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2726
|
-
className:
|
|
2897
|
+
className: Qt.body,
|
|
2727
2898
|
children: [
|
|
2728
2899
|
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2729
|
-
className:
|
|
2900
|
+
className: Qt.name,
|
|
2730
2901
|
children: e
|
|
2731
2902
|
}),
|
|
2732
2903
|
t && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2733
|
-
className:
|
|
2904
|
+
className: Qt.role,
|
|
2734
2905
|
children: t
|
|
2735
2906
|
}),
|
|
2736
2907
|
n && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2737
|
-
className:
|
|
2908
|
+
className: Qt.bio,
|
|
2738
2909
|
children: n
|
|
2739
2910
|
})
|
|
2740
2911
|
]
|
|
2741
2912
|
})]
|
|
2742
2913
|
});
|
|
2743
2914
|
}
|
|
2744
|
-
var
|
|
2915
|
+
var en = {
|
|
2745
2916
|
root: "_root_zdnh5_1",
|
|
2746
2917
|
media: "_media_zdnh5_9",
|
|
2747
2918
|
bordered: "_bordered_zdnh5_13",
|
|
@@ -2752,25 +2923,25 @@ var Jt = {
|
|
|
2752
2923
|
};
|
|
2753
2924
|
//#endregion
|
|
2754
2925
|
//#region src/components/molecules/FigureBlock/FigureBlock.tsx
|
|
2755
|
-
function
|
|
2926
|
+
function tn({ as: e = "figure", children: t, caption: n, legend: r, frame: i = "none", className: a, ...o }) {
|
|
2756
2927
|
return /* @__PURE__ */ (0, _.jsxs)(e, {
|
|
2757
2928
|
className: [
|
|
2758
|
-
|
|
2759
|
-
|
|
2929
|
+
en.root,
|
|
2930
|
+
en[i],
|
|
2760
2931
|
a ?? ""
|
|
2761
2932
|
].filter(Boolean).join(" "),
|
|
2762
2933
|
"data-rag-molecule": "FigureBlock",
|
|
2763
2934
|
...o,
|
|
2764
2935
|
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
2765
|
-
className:
|
|
2936
|
+
className: en.media,
|
|
2766
2937
|
children: t
|
|
2767
2938
|
}), (n || r) && /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
2768
|
-
className:
|
|
2769
|
-
children: [n && /* @__PURE__ */ (0, _.jsx)(
|
|
2770
|
-
className:
|
|
2939
|
+
className: en.supporting,
|
|
2940
|
+
children: [n && /* @__PURE__ */ (0, _.jsx)(b, {
|
|
2941
|
+
className: en.caption,
|
|
2771
2942
|
children: n
|
|
2772
2943
|
}), r && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
2773
|
-
className:
|
|
2944
|
+
className: en.legend,
|
|
2774
2945
|
children: r
|
|
2775
2946
|
})]
|
|
2776
2947
|
})]
|
|
@@ -2787,20 +2958,20 @@ var H = {
|
|
|
2787
2958
|
};
|
|
2788
2959
|
//#endregion
|
|
2789
2960
|
//#region src/components/molecules/KeyPointList/KeyPointList.tsx
|
|
2790
|
-
function
|
|
2961
|
+
function nn(e, t) {
|
|
2791
2962
|
return typeof e == "object" && e && !Array.isArray(e) && "text" in e ? e : {
|
|
2792
2963
|
text: e,
|
|
2793
2964
|
index: String(t + 1).padStart(2, "0")
|
|
2794
2965
|
};
|
|
2795
2966
|
}
|
|
2796
|
-
function
|
|
2967
|
+
function rn({ items: e, markerTone: t = "accent", className: n, ...r }) {
|
|
2797
2968
|
return /* @__PURE__ */ (0, _.jsx)("ol", {
|
|
2798
2969
|
className: [H.root, n ?? ""].filter(Boolean).join(" "),
|
|
2799
2970
|
"data-rag-molecule": "KeyPointList",
|
|
2800
2971
|
"data-marker-tone": t,
|
|
2801
2972
|
...r,
|
|
2802
2973
|
children: e.map((e, t) => {
|
|
2803
|
-
let n =
|
|
2974
|
+
let n = nn(e, t), r = n.index ?? String(t + 1).padStart(2, "0");
|
|
2804
2975
|
return /* @__PURE__ */ (0, _.jsxs)("li", {
|
|
2805
2976
|
className: H.item,
|
|
2806
2977
|
children: [
|
|
@@ -2839,7 +3010,7 @@ var U = {
|
|
|
2839
3010
|
};
|
|
2840
3011
|
//#endregion
|
|
2841
3012
|
//#region src/components/molecules/SidebarNav/SidebarNav.tsx
|
|
2842
|
-
function
|
|
3013
|
+
function an({ sections: e, activeItemId: t, onItemSelect: n, ariaLabel: r = "Course", className: i, ...a }) {
|
|
2843
3014
|
return /* @__PURE__ */ (0, _.jsx)("nav", {
|
|
2844
3015
|
className: [U.root, i ?? ""].filter(Boolean).join(" "),
|
|
2845
3016
|
"aria-label": r,
|
|
@@ -2913,13 +3084,13 @@ function G(e, t) {
|
|
|
2913
3084
|
}, `${t}-code-${i}`)) : n.push(/* @__PURE__ */ (0, _.jsx)("strong", { children: o[2] }, `${t}-strong-${i}`)), r = r.slice((o.index ?? 0) + o[0].length), i += 1;
|
|
2914
3085
|
return r && n.push(r), n;
|
|
2915
3086
|
}
|
|
2916
|
-
function
|
|
3087
|
+
function on(e) {
|
|
2917
3088
|
return e.every((e) => /^:?-{3,}:?$/.test(e.trim()));
|
|
2918
3089
|
}
|
|
2919
|
-
function
|
|
3090
|
+
function sn(e) {
|
|
2920
3091
|
return e.split("|").slice(1, -1).map((e) => e.trim());
|
|
2921
3092
|
}
|
|
2922
|
-
function
|
|
3093
|
+
function cn({ source: e, className: t, ...n }) {
|
|
2923
3094
|
let r = e.replace(/\r\n/g, "\n").split("\n"), i = [], a = 0, o = 0;
|
|
2924
3095
|
for (; a < r.length;) {
|
|
2925
3096
|
let e = r[a] ?? "", t = e.trim();
|
|
@@ -2973,8 +3144,8 @@ function tn({ source: e, className: t, ...n }) {
|
|
|
2973
3144
|
}
|
|
2974
3145
|
if (t.startsWith("|")) {
|
|
2975
3146
|
let e = [];
|
|
2976
|
-
for (; a < r.length && (r[a] ?? "").trim().startsWith("|");) e.push(
|
|
2977
|
-
let [t, ...n] = e.filter((e) =>
|
|
3147
|
+
for (; a < r.length && (r[a] ?? "").trim().startsWith("|");) e.push(sn((r[a] ?? "").trim())), a += 1;
|
|
3148
|
+
let [t, ...n] = e.filter((e) => !on(e));
|
|
2978
3149
|
t && i.push(/* @__PURE__ */ (0, _.jsxs)("table", {
|
|
2979
3150
|
className: W.table,
|
|
2980
3151
|
children: [/* @__PURE__ */ (0, _.jsx)("thead", { children: /* @__PURE__ */ (0, _.jsx)("tr", { children: t.map((e, t) => /* @__PURE__ */ (0, _.jsx)("th", { children: G(e, `th-${o}-${t}`) }, t)) }) }), /* @__PURE__ */ (0, _.jsx)("tbody", { children: n.map((e, t) => /* @__PURE__ */ (0, _.jsx)("tr", { children: e.map((e, n) => /* @__PURE__ */ (0, _.jsx)("td", { children: G(e, `td-${o}-${t}-${n}`) }, n)) }, t)) })]
|
|
@@ -3052,11 +3223,11 @@ var K = {
|
|
|
3052
3223
|
};
|
|
3053
3224
|
//#endregion
|
|
3054
3225
|
//#region src/components/molecules/DocumentListPanel/DocumentListPanel.tsx
|
|
3055
|
-
function
|
|
3226
|
+
function ln(e) {
|
|
3056
3227
|
let t = String(e ?? "").toLowerCase();
|
|
3057
3228
|
return t.includes("pdf") ? "▤" : t.includes("json") ? "{ }" : t.includes("markdown") || t.includes("md") ? "¶" : "□";
|
|
3058
3229
|
}
|
|
3059
|
-
function
|
|
3230
|
+
function un({ title: e, description: t, items: n, selectedItemId: r, onItemSelect: i, onDownloadAll: a, downloadAllLabel: o = "⤓ Download all (.zip)", emptyMessage: s = "No documents available.", showItemDescriptions: c = !1, className: l, ...u }) {
|
|
3060
3231
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3061
3232
|
className: [K.root, l ?? ""].filter(Boolean).join(" "),
|
|
3062
3233
|
"data-rag-molecule": "DocumentListPanel",
|
|
@@ -3069,7 +3240,7 @@ function rn({ title: e, description: t, items: n, selectedItemId: r, onItemSelec
|
|
|
3069
3240
|
size: "metric",
|
|
3070
3241
|
weight: "bold",
|
|
3071
3242
|
children: e
|
|
3072
|
-
}), t && /* @__PURE__ */ (0, _.jsx)(
|
|
3243
|
+
}), t && /* @__PURE__ */ (0, _.jsx)(b, {
|
|
3073
3244
|
className: K.description,
|
|
3074
3245
|
children: t
|
|
3075
3246
|
})]
|
|
@@ -3080,7 +3251,7 @@ function rn({ title: e, description: t, items: n, selectedItemId: r, onItemSelec
|
|
|
3080
3251
|
"aria-label": "Documents",
|
|
3081
3252
|
children: [n.length === 0 && /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3082
3253
|
className: K.empty,
|
|
3083
|
-
children: /* @__PURE__ */ (0, _.jsx)(
|
|
3254
|
+
children: /* @__PURE__ */ (0, _.jsx)(b, { children: s })
|
|
3084
3255
|
}), n.map((e) => {
|
|
3085
3256
|
let t = e.id === r;
|
|
3086
3257
|
return /* @__PURE__ */ (0, _.jsxs)("button", {
|
|
@@ -3094,7 +3265,7 @@ function rn({ title: e, description: t, items: n, selectedItemId: r, onItemSelec
|
|
|
3094
3265
|
children: [/* @__PURE__ */ (0, _.jsx)("span", {
|
|
3095
3266
|
className: K.icon,
|
|
3096
3267
|
"aria-hidden": "true",
|
|
3097
|
-
children: e.icon ??
|
|
3268
|
+
children: e.icon ?? ln(e.format)
|
|
3098
3269
|
}), /* @__PURE__ */ (0, _.jsxs)("span", {
|
|
3099
3270
|
className: K.itemBody,
|
|
3100
3271
|
children: [
|
|
@@ -3127,7 +3298,7 @@ function rn({ title: e, description: t, items: n, selectedItemId: r, onItemSelec
|
|
|
3127
3298
|
]
|
|
3128
3299
|
});
|
|
3129
3300
|
}
|
|
3130
|
-
var
|
|
3301
|
+
var dn = {
|
|
3131
3302
|
root: "_root_17s2o_1",
|
|
3132
3303
|
meta: "_meta_17s2o_15",
|
|
3133
3304
|
actions: "_actions_17s2o_16",
|
|
@@ -3135,32 +3306,32 @@ var an = {
|
|
|
3135
3306
|
};
|
|
3136
3307
|
//#endregion
|
|
3137
3308
|
//#region src/components/molecules/DocumentPreviewToolbar/DocumentPreviewToolbar.tsx
|
|
3138
|
-
function
|
|
3309
|
+
function fn({ file: e, format: t, size: n, onDownload: r, downloadLabel: i = "⤓ Download", rightSlot: a, className: o, ...s }) {
|
|
3139
3310
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3140
|
-
className: [
|
|
3311
|
+
className: [dn.root, o ?? ""].filter(Boolean).join(" "),
|
|
3141
3312
|
"data-rag-molecule": "DocumentPreviewToolbar",
|
|
3142
3313
|
...s,
|
|
3143
3314
|
children: [/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3144
|
-
className:
|
|
3315
|
+
className: dn.meta,
|
|
3145
3316
|
children: [
|
|
3146
|
-
/* @__PURE__ */ (0, _.jsx)(
|
|
3317
|
+
/* @__PURE__ */ (0, _.jsx)(oe, { children: e }),
|
|
3147
3318
|
t && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
3148
|
-
className:
|
|
3149
|
-
children: /* @__PURE__ */ (0, _.jsx)(
|
|
3319
|
+
className: dn.badge,
|
|
3320
|
+
children: /* @__PURE__ */ (0, _.jsx)(b, {
|
|
3150
3321
|
tone: "inherit",
|
|
3151
3322
|
children: t
|
|
3152
3323
|
})
|
|
3153
3324
|
}),
|
|
3154
3325
|
n && /* @__PURE__ */ (0, _.jsx)("span", {
|
|
3155
|
-
className:
|
|
3156
|
-
children: /* @__PURE__ */ (0, _.jsx)(
|
|
3326
|
+
className: dn.badge,
|
|
3327
|
+
children: /* @__PURE__ */ (0, _.jsx)(b, {
|
|
3157
3328
|
tone: "inherit",
|
|
3158
3329
|
children: n
|
|
3159
3330
|
})
|
|
3160
3331
|
})
|
|
3161
3332
|
]
|
|
3162
3333
|
}), /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3163
|
-
className:
|
|
3334
|
+
className: dn.actions,
|
|
3164
3335
|
children: [a, r && /* @__PURE__ */ (0, _.jsx)(C, {
|
|
3165
3336
|
size: "compact",
|
|
3166
3337
|
onClick: r,
|
|
@@ -3169,19 +3340,105 @@ function on({ file: e, format: t, size: n, onDownload: r, downloadLabel: i = "
|
|
|
3169
3340
|
})]
|
|
3170
3341
|
});
|
|
3171
3342
|
}
|
|
3172
|
-
var
|
|
3343
|
+
var pn = {
|
|
3344
|
+
root: "_root_88r47_1",
|
|
3345
|
+
input: "_input_88r47_40",
|
|
3346
|
+
icon: "_icon_88r47_54",
|
|
3347
|
+
title: "_title_88r47_60",
|
|
3348
|
+
description: "_description_88r47_64"
|
|
3349
|
+
};
|
|
3350
|
+
//#endregion
|
|
3351
|
+
//#region src/components/molecules/FileDropZone/FileDropZone.tsx
|
|
3352
|
+
function mn(e) {
|
|
3353
|
+
return e ? Array.from(e) : [];
|
|
3354
|
+
}
|
|
3355
|
+
function hn({ title: e = "Drop a file here", description: t = "or choose a file", icon: n, accept: r, multiple: o = !1, disabled: s = !1, active: c = !1, inputAriaLabel: l = "Choose file to upload", onFilesSelected: u, className: d, onDragEnter: f, onDragOver: ee, onDragLeave: p, onKeyDown: m, ...te }) {
|
|
3356
|
+
let g = i(null), [ne, re] = a(!1), ie = c || ne;
|
|
3357
|
+
function ae() {
|
|
3358
|
+
s || g.current?.click();
|
|
3359
|
+
}
|
|
3360
|
+
function oe(e) {
|
|
3361
|
+
!s && e.length > 0 && u?.(e);
|
|
3362
|
+
}
|
|
3363
|
+
function se(e) {
|
|
3364
|
+
f?.(e), !(e.defaultPrevented || s) && (e.preventDefault(), re(!0));
|
|
3365
|
+
}
|
|
3366
|
+
function ce(e) {
|
|
3367
|
+
ee?.(e), !(e.defaultPrevented || s) && (e.preventDefault(), re(!0));
|
|
3368
|
+
}
|
|
3369
|
+
function v(e) {
|
|
3370
|
+
p?.(e), !s && (e.currentTarget.contains(e.relatedTarget) || re(!1));
|
|
3371
|
+
}
|
|
3372
|
+
function le(e) {
|
|
3373
|
+
e.preventDefault(), re(!1), oe(mn(e.dataTransfer.files));
|
|
3374
|
+
}
|
|
3375
|
+
function ue(e) {
|
|
3376
|
+
e.target !== g.current && ae();
|
|
3377
|
+
}
|
|
3378
|
+
function y(e) {
|
|
3379
|
+
m?.(e), !(e.defaultPrevented || s) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ae());
|
|
3380
|
+
}
|
|
3381
|
+
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3382
|
+
className: [pn.root, d ?? ""].filter(Boolean).join(" "),
|
|
3383
|
+
role: "button",
|
|
3384
|
+
tabIndex: s ? void 0 : 0,
|
|
3385
|
+
"aria-disabled": s || void 0,
|
|
3386
|
+
"data-active": ie ? "true" : void 0,
|
|
3387
|
+
"data-disabled": s ? "true" : void 0,
|
|
3388
|
+
"data-rag-molecule": "FileDropZone",
|
|
3389
|
+
onClick: ue,
|
|
3390
|
+
onDragEnter: se,
|
|
3391
|
+
onDragOver: ce,
|
|
3392
|
+
onDragLeave: v,
|
|
3393
|
+
onDrop: le,
|
|
3394
|
+
onKeyDown: y,
|
|
3395
|
+
...te,
|
|
3396
|
+
children: [
|
|
3397
|
+
/* @__PURE__ */ (0, _.jsx)("input", {
|
|
3398
|
+
ref: g,
|
|
3399
|
+
className: pn.input,
|
|
3400
|
+
type: "file",
|
|
3401
|
+
accept: r,
|
|
3402
|
+
multiple: o,
|
|
3403
|
+
disabled: s,
|
|
3404
|
+
"aria-label": l,
|
|
3405
|
+
tabIndex: -1,
|
|
3406
|
+
onChange: (e) => {
|
|
3407
|
+
oe(mn(e.currentTarget.files)), e.currentTarget.value = "";
|
|
3408
|
+
}
|
|
3409
|
+
}),
|
|
3410
|
+
/* @__PURE__ */ (0, _.jsx)("div", {
|
|
3411
|
+
className: pn.icon,
|
|
3412
|
+
"aria-hidden": "true",
|
|
3413
|
+
children: n ?? /* @__PURE__ */ (0, _.jsx)(qe, { title: "" })
|
|
3414
|
+
}),
|
|
3415
|
+
/* @__PURE__ */ (0, _.jsx)(h, {
|
|
3416
|
+
as: "div",
|
|
3417
|
+
size: "body",
|
|
3418
|
+
weight: "bold",
|
|
3419
|
+
className: pn.title,
|
|
3420
|
+
children: e
|
|
3421
|
+
}),
|
|
3422
|
+
t && /* @__PURE__ */ (0, _.jsx)(b, {
|
|
3423
|
+
className: pn.description,
|
|
3424
|
+
children: t
|
|
3425
|
+
})
|
|
3426
|
+
]
|
|
3427
|
+
});
|
|
3428
|
+
}
|
|
3429
|
+
var gn = { viewport: "_viewport_1j377_1" }, _n = [
|
|
3173
3430
|
"strip",
|
|
3174
3431
|
"stack",
|
|
3175
3432
|
"budget",
|
|
3176
3433
|
"treemap"
|
|
3177
3434
|
];
|
|
3178
|
-
function
|
|
3179
|
-
let [o, s] =
|
|
3180
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
3435
|
+
function vn({ snapshot: e, initialView: t = "strip", selectedPartId: n, className: r, ...i }) {
|
|
3436
|
+
let [o, s] = a(t), c = n ?? e.selectedPartId;
|
|
3437
|
+
return /* @__PURE__ */ (0, _.jsx)(Qe, {
|
|
3181
3438
|
title: e.title,
|
|
3182
|
-
actions: /* @__PURE__ */ (0, _.jsx)(
|
|
3439
|
+
actions: /* @__PURE__ */ (0, _.jsx)(it, {
|
|
3183
3440
|
gap: "xs",
|
|
3184
|
-
children:
|
|
3441
|
+
children: _n.map((e) => /* @__PURE__ */ (0, _.jsx)(C, {
|
|
3185
3442
|
size: "compact",
|
|
3186
3443
|
selected: o === e,
|
|
3187
3444
|
"aria-pressed": o === e,
|
|
@@ -3191,33 +3448,33 @@ function ln({ snapshot: e, initialView: t = "strip", selectedPartId: n, classNam
|
|
|
3191
3448
|
}),
|
|
3192
3449
|
className: r,
|
|
3193
3450
|
"data-rag-organism": "ContextDiagramPanel",
|
|
3194
|
-
...
|
|
3195
|
-
children: /* @__PURE__ */ (0, _.jsxs)(
|
|
3451
|
+
...i,
|
|
3452
|
+
children: /* @__PURE__ */ (0, _.jsxs)(tt, {
|
|
3196
3453
|
gap: "sm",
|
|
3197
3454
|
children: [
|
|
3198
|
-
e.subtitle && /* @__PURE__ */ (0, _.jsx)(
|
|
3455
|
+
e.subtitle && /* @__PURE__ */ (0, _.jsx)(b, { children: e.subtitle }),
|
|
3199
3456
|
/* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3200
|
-
className:
|
|
3457
|
+
className: gn.viewport,
|
|
3201
3458
|
children: [
|
|
3202
|
-
o === "strip" && /* @__PURE__ */ (0, _.jsx)(
|
|
3459
|
+
o === "strip" && /* @__PURE__ */ (0, _.jsx)(Nt, {
|
|
3203
3460
|
snapshot: e,
|
|
3204
3461
|
selectedPartId: c
|
|
3205
3462
|
}),
|
|
3206
|
-
o === "stack" && /* @__PURE__ */ (0, _.jsx)(
|
|
3463
|
+
o === "stack" && /* @__PURE__ */ (0, _.jsx)(Ft, {
|
|
3207
3464
|
snapshot: e,
|
|
3208
3465
|
selectedPartId: c
|
|
3209
3466
|
}),
|
|
3210
|
-
o === "budget" && /* @__PURE__ */ (0, _.jsx)(
|
|
3467
|
+
o === "budget" && /* @__PURE__ */ (0, _.jsx)(jt, {
|
|
3211
3468
|
snapshot: e,
|
|
3212
3469
|
selectedPartId: c
|
|
3213
3470
|
}),
|
|
3214
|
-
o === "treemap" && /* @__PURE__ */ (0, _.jsx)(
|
|
3471
|
+
o === "treemap" && /* @__PURE__ */ (0, _.jsx)(Lt, {
|
|
3215
3472
|
snapshot: e,
|
|
3216
3473
|
selectedPartId: c
|
|
3217
3474
|
})
|
|
3218
3475
|
]
|
|
3219
3476
|
}),
|
|
3220
|
-
/* @__PURE__ */ (0, _.jsx)(
|
|
3477
|
+
/* @__PURE__ */ (0, _.jsx)(Ot, {
|
|
3221
3478
|
compact: !0,
|
|
3222
3479
|
kinds: [
|
|
3223
3480
|
"system",
|
|
@@ -3235,29 +3492,29 @@ function ln({ snapshot: e, initialView: t = "strip", selectedPartId: n, classNam
|
|
|
3235
3492
|
})
|
|
3236
3493
|
});
|
|
3237
3494
|
}
|
|
3238
|
-
var
|
|
3495
|
+
var yn = {
|
|
3239
3496
|
root: "_root_1szio_1",
|
|
3240
3497
|
stream: "_stream_1szio_9"
|
|
3241
3498
|
};
|
|
3242
3499
|
//#endregion
|
|
3243
3500
|
//#region src/components/organisms/TranscriptReaderPanel/TranscriptReaderPanel.tsx
|
|
3244
|
-
function
|
|
3501
|
+
function bn(e) {
|
|
3245
3502
|
return e.reduce((e, t) => e + (t.tokens ?? 0), 0);
|
|
3246
3503
|
}
|
|
3247
|
-
function
|
|
3504
|
+
function xn({ title: e = "Transcript", subtitle: t, messages: n, annotations: r = [], selectedAnnotationId: i, onAnnotationSelect: a, showAnnotationChips: o = !0, className: s, ...c }) {
|
|
3248
3505
|
return /* @__PURE__ */ (0, _.jsxs)("section", {
|
|
3249
|
-
className: [
|
|
3506
|
+
className: [yn.root, s ?? ""].filter(Boolean).join(" "),
|
|
3250
3507
|
"data-rag-organism": "TranscriptReaderPanel",
|
|
3251
3508
|
...c,
|
|
3252
|
-
children: [/* @__PURE__ */ (0, _.jsx)(
|
|
3509
|
+
children: [/* @__PURE__ */ (0, _.jsx)(Ut, {
|
|
3253
3510
|
title: e,
|
|
3254
3511
|
subtitle: t,
|
|
3255
3512
|
messageCount: n.length,
|
|
3256
3513
|
annotationCount: r.length,
|
|
3257
|
-
tokenTotal:
|
|
3514
|
+
tokenTotal: bn(n)
|
|
3258
3515
|
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3259
|
-
className:
|
|
3260
|
-
children: n.map((e) => /* @__PURE__ */ (0, _.jsx)(
|
|
3516
|
+
className: yn.stream,
|
|
3517
|
+
children: n.map((e) => /* @__PURE__ */ (0, _.jsx)(Vt, {
|
|
3261
3518
|
message: e,
|
|
3262
3519
|
annotations: r,
|
|
3263
3520
|
selectedAnnotationId: i,
|
|
@@ -3267,7 +3524,7 @@ function fn({ title: e = "Transcript", subtitle: t, messages: n, annotations: r
|
|
|
3267
3524
|
})]
|
|
3268
3525
|
});
|
|
3269
3526
|
}
|
|
3270
|
-
var
|
|
3527
|
+
var Sn = {
|
|
3271
3528
|
root: "_root_1jf6m_1",
|
|
3272
3529
|
header: "_header_1jf6m_10",
|
|
3273
3530
|
description: "_description_1jf6m_17",
|
|
@@ -3276,28 +3533,28 @@ var pn = {
|
|
|
3276
3533
|
};
|
|
3277
3534
|
//#endregion
|
|
3278
3535
|
//#region src/components/organisms/AnnotationRailPanel/AnnotationRailPanel.tsx
|
|
3279
|
-
function
|
|
3536
|
+
function Cn({ title: e = "Context-engineering notes", description: t = "What each message costs the window. Click a note or a message to focus it.", annotations: n, selectedAnnotationId: r, onAnnotationSelect: i, className: a, ...o }) {
|
|
3280
3537
|
return /* @__PURE__ */ (0, _.jsxs)("aside", {
|
|
3281
|
-
className: [
|
|
3538
|
+
className: [Sn.root, a ?? ""].filter(Boolean).join(" "),
|
|
3282
3539
|
"data-rag-organism": "AnnotationRailPanel",
|
|
3283
3540
|
...o,
|
|
3284
3541
|
children: [/* @__PURE__ */ (0, _.jsxs)("header", {
|
|
3285
|
-
className:
|
|
3542
|
+
className: Sn.header,
|
|
3286
3543
|
children: [/* @__PURE__ */ (0, _.jsx)(h, {
|
|
3287
3544
|
as: "div",
|
|
3288
3545
|
size: "label",
|
|
3289
3546
|
children: e
|
|
3290
|
-
}), /* @__PURE__ */ (0, _.jsx)(
|
|
3291
|
-
className:
|
|
3547
|
+
}), /* @__PURE__ */ (0, _.jsx)(b, {
|
|
3548
|
+
className: Sn.description,
|
|
3292
3549
|
children: t
|
|
3293
3550
|
})]
|
|
3294
3551
|
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3295
|
-
className:
|
|
3552
|
+
className: Sn.list,
|
|
3296
3553
|
children: n.map((e, t) => /* @__PURE__ */ (0, _.jsx)("button", {
|
|
3297
3554
|
type: "button",
|
|
3298
|
-
className:
|
|
3555
|
+
className: Sn.button,
|
|
3299
3556
|
onClick: () => i?.(e.id),
|
|
3300
|
-
children: /* @__PURE__ */ (0, _.jsx)(
|
|
3557
|
+
children: /* @__PURE__ */ (0, _.jsx)(Wt, {
|
|
3301
3558
|
annotation: e,
|
|
3302
3559
|
selected: e.id === r,
|
|
3303
3560
|
index: t + 1
|
|
@@ -3306,24 +3563,24 @@ function mn({ title: e = "Context-engineering notes", description: t = "What eac
|
|
|
3306
3563
|
})]
|
|
3307
3564
|
});
|
|
3308
3565
|
}
|
|
3309
|
-
var
|
|
3566
|
+
var wn = {
|
|
3310
3567
|
root: "_root_1q01w_1",
|
|
3311
3568
|
withNotes: "_withNotes_1q01w_8",
|
|
3312
3569
|
noNotes: "_noNotes_1q01w_13"
|
|
3313
3570
|
};
|
|
3314
3571
|
//#endregion
|
|
3315
3572
|
//#region src/components/organisms/TranscriptWorkspacePanel/TranscriptWorkspacePanel.tsx
|
|
3316
|
-
function
|
|
3573
|
+
function Tn({ title: e, subtitle: t, messages: n, annotations: r = [], selectedAnnotationId: i, onAnnotationSelect: a, showNotes: o = r.length > 0, className: s, ...c }) {
|
|
3317
3574
|
let l = o && r.length > 0;
|
|
3318
3575
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3319
3576
|
className: [
|
|
3320
|
-
|
|
3321
|
-
l ?
|
|
3577
|
+
wn.root,
|
|
3578
|
+
l ? wn.withNotes : wn.noNotes,
|
|
3322
3579
|
s ?? ""
|
|
3323
3580
|
].filter(Boolean).join(" "),
|
|
3324
3581
|
"data-rag-organism": "TranscriptWorkspacePanel",
|
|
3325
3582
|
...c,
|
|
3326
|
-
children: [/* @__PURE__ */ (0, _.jsx)(
|
|
3583
|
+
children: [/* @__PURE__ */ (0, _.jsx)(xn, {
|
|
3327
3584
|
title: e,
|
|
3328
3585
|
subtitle: t,
|
|
3329
3586
|
messages: n,
|
|
@@ -3331,7 +3588,7 @@ function gn({ title: e, subtitle: t, messages: n, annotations: r = [], selectedA
|
|
|
3331
3588
|
selectedAnnotationId: i,
|
|
3332
3589
|
onAnnotationSelect: a,
|
|
3333
3590
|
showAnnotationChips: l
|
|
3334
|
-
}), l && /* @__PURE__ */ (0, _.jsx)(
|
|
3591
|
+
}), l && /* @__PURE__ */ (0, _.jsx)(Cn, {
|
|
3335
3592
|
annotations: r,
|
|
3336
3593
|
selectedAnnotationId: i,
|
|
3337
3594
|
onAnnotationSelect: a
|
|
@@ -3340,15 +3597,15 @@ function gn({ title: e, subtitle: t, messages: n, annotations: r = [], selectedA
|
|
|
3340
3597
|
}
|
|
3341
3598
|
//#endregion
|
|
3342
3599
|
//#region src/components/organisms/AnchoredCommentRail/AnchoredCommentRail.tsx
|
|
3343
|
-
function
|
|
3344
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
3600
|
+
function En({ title: e = "Comments", comments: t, selectedCommentId: n, onCommentSelect: r, ...i }) {
|
|
3601
|
+
return /* @__PURE__ */ (0, _.jsx)(Qe, {
|
|
3345
3602
|
title: e,
|
|
3346
3603
|
fill: !0,
|
|
3347
3604
|
"data-rag-organism": "AnchoredCommentRail",
|
|
3348
3605
|
...i,
|
|
3349
|
-
children: /* @__PURE__ */ (0, _.jsxs)(
|
|
3606
|
+
children: /* @__PURE__ */ (0, _.jsxs)(tt, {
|
|
3350
3607
|
gap: "sm",
|
|
3351
|
-
children: [/* @__PURE__ */ (0, _.jsxs)(
|
|
3608
|
+
children: [/* @__PURE__ */ (0, _.jsxs)(b, { children: [
|
|
3352
3609
|
t.length,
|
|
3353
3610
|
" anchored comment",
|
|
3354
3611
|
t.length === 1 ? "" : "s"
|
|
@@ -3363,7 +3620,7 @@ function _n({ title: e = "Comments", comments: t, selectedCommentId: n, onCommen
|
|
|
3363
3620
|
cursor: "pointer"
|
|
3364
3621
|
},
|
|
3365
3622
|
onClick: () => r?.(e.id),
|
|
3366
|
-
children: /* @__PURE__ */ (0, _.jsx)(
|
|
3623
|
+
children: /* @__PURE__ */ (0, _.jsx)(Gt, {
|
|
3367
3624
|
comment: e,
|
|
3368
3625
|
index: t + 1,
|
|
3369
3626
|
selected: e.id === n
|
|
@@ -3386,7 +3643,7 @@ var q = {
|
|
|
3386
3643
|
};
|
|
3387
3644
|
//#endregion
|
|
3388
3645
|
//#region src/components/organisms/CourseLessonPanel/CourseLessonPanel.tsx
|
|
3389
|
-
function
|
|
3646
|
+
function Dn({ course: e, activeAgendaItemId: t, onAgendaItemSelect: n, className: r, ...i }) {
|
|
3390
3647
|
let a = e.agenda.map((e) => ({
|
|
3391
3648
|
id: e.id,
|
|
3392
3649
|
index: e.number,
|
|
@@ -3399,7 +3656,7 @@ function vn({ course: e, activeAgendaItemId: t, onAgendaItemSelect: n, className
|
|
|
3399
3656
|
"data-rag-organism": "CourseLessonPanel",
|
|
3400
3657
|
...i,
|
|
3401
3658
|
children: [
|
|
3402
|
-
/* @__PURE__ */ (0, _.jsxs)(
|
|
3659
|
+
/* @__PURE__ */ (0, _.jsxs)(A, {
|
|
3403
3660
|
density: "spacious",
|
|
3404
3661
|
divider: "bottom",
|
|
3405
3662
|
className: q.hero,
|
|
@@ -3424,10 +3681,10 @@ function vn({ course: e, activeAgendaItemId: t, onAgendaItemSelect: n, className
|
|
|
3424
3681
|
children: "Reserve a seat"
|
|
3425
3682
|
}),
|
|
3426
3683
|
/* @__PURE__ */ (0, _.jsx)(C, { children: "Preview the deck" }),
|
|
3427
|
-
e.price && /* @__PURE__ */ (0, _.jsx)(
|
|
3684
|
+
e.price && /* @__PURE__ */ (0, _.jsx)(b, { children: e.price })
|
|
3428
3685
|
]
|
|
3429
3686
|
}),
|
|
3430
|
-
/* @__PURE__ */ (0, _.jsx)(
|
|
3687
|
+
/* @__PURE__ */ (0, _.jsx)(Jt, {
|
|
3431
3688
|
className: q.metaStrip,
|
|
3432
3689
|
items: [
|
|
3433
3690
|
{
|
|
@@ -3446,35 +3703,35 @@ function vn({ course: e, activeAgendaItemId: t, onAgendaItemSelect: n, className
|
|
|
3446
3703
|
})
|
|
3447
3704
|
]
|
|
3448
3705
|
}),
|
|
3449
|
-
/* @__PURE__ */ (0, _.jsx)(
|
|
3706
|
+
/* @__PURE__ */ (0, _.jsx)(_t, {
|
|
3450
3707
|
ratio: "course",
|
|
3451
3708
|
divider: !0,
|
|
3452
|
-
left: /* @__PURE__ */ (0, _.jsxs)(
|
|
3709
|
+
left: /* @__PURE__ */ (0, _.jsxs)(A, {
|
|
3453
3710
|
label: "What you'll leave with",
|
|
3454
3711
|
density: "spacious",
|
|
3455
|
-
children: [/* @__PURE__ */ (0, _.jsx)(
|
|
3712
|
+
children: [/* @__PURE__ */ (0, _.jsx)(Xt, { items: e.outcomes }), e.instructor && /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3456
3713
|
className: q.instructorBlock,
|
|
3457
3714
|
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
3458
3715
|
className: q.sectionLabel,
|
|
3459
3716
|
children: "Instructor"
|
|
3460
|
-
}), /* @__PURE__ */ (0, _.jsx)(
|
|
3717
|
+
}), /* @__PURE__ */ (0, _.jsx)($t, {
|
|
3461
3718
|
name: e.instructor.name,
|
|
3462
3719
|
subtitle: e.instructor.role,
|
|
3463
3720
|
bio: e.instructor.bio
|
|
3464
3721
|
})]
|
|
3465
3722
|
})]
|
|
3466
3723
|
}),
|
|
3467
|
-
right: /* @__PURE__ */ (0, _.jsx)(
|
|
3724
|
+
right: /* @__PURE__ */ (0, _.jsx)(A, {
|
|
3468
3725
|
label: "Agenda · 2 hours",
|
|
3469
3726
|
density: "spacious",
|
|
3470
|
-
children: /* @__PURE__ */ (0, _.jsx)(
|
|
3727
|
+
children: /* @__PURE__ */ (0, _.jsx)(Zt, {
|
|
3471
3728
|
items: a,
|
|
3472
3729
|
activeItemId: t,
|
|
3473
3730
|
onItemSelect: n
|
|
3474
3731
|
})
|
|
3475
3732
|
})
|
|
3476
3733
|
}),
|
|
3477
|
-
e.blurb && /* @__PURE__ */ (0, _.jsx)(
|
|
3734
|
+
e.blurb && /* @__PURE__ */ (0, _.jsx)(A, {
|
|
3478
3735
|
density: "spacious",
|
|
3479
3736
|
divider: "top",
|
|
3480
3737
|
children: /* @__PURE__ */ (0, _.jsx)("p", {
|
|
@@ -3487,15 +3744,15 @@ function vn({ course: e, activeAgendaItemId: t, onAgendaItemSelect: n, className
|
|
|
3487
3744
|
}
|
|
3488
3745
|
//#endregion
|
|
3489
3746
|
//#region src/components/organisms/CourseSlidePanel/CourseSlidePanel.tsx
|
|
3490
|
-
function
|
|
3491
|
-
return e.view === "strip" ? /* @__PURE__ */ (0, _.jsx)(
|
|
3747
|
+
function On(e, t) {
|
|
3748
|
+
return e.view === "strip" ? /* @__PURE__ */ (0, _.jsx)(Nt, { snapshot: t }) : e.view === "stack" ? /* @__PURE__ */ (0, _.jsx)(Ft, { snapshot: t }) : e.view === "budget" ? /* @__PURE__ */ (0, _.jsx)(jt, { snapshot: t }) : /* @__PURE__ */ (0, _.jsx)(Lt, { snapshot: t });
|
|
3492
3749
|
}
|
|
3493
|
-
function
|
|
3494
|
-
let l = n != null && r != null ? `${String(n + 1).padStart(2, "0")} / ${String(r).padStart(2, "0")}` : void 0, u = /* @__PURE__ */ (0, _.jsx)(
|
|
3750
|
+
function kn({ slide: e, snapshot: t, index: n, total: r, visualSide: i = "left", onPrevious: a, onNext: o, className: s, ...c }) {
|
|
3751
|
+
let l = n != null && r != null ? `${String(n + 1).padStart(2, "0")} / ${String(r).padStart(2, "0")}` : void 0, u = /* @__PURE__ */ (0, _.jsx)(tn, {
|
|
3495
3752
|
caption: `${t.title} — ${t.limit.toLocaleString()} token window`,
|
|
3496
|
-
legend: /* @__PURE__ */ (0, _.jsx)(
|
|
3497
|
-
children:
|
|
3498
|
-
}), d = /* @__PURE__ */ (0, _.jsx)(
|
|
3753
|
+
legend: /* @__PURE__ */ (0, _.jsx)(Ot, { compact: !0 }),
|
|
3754
|
+
children: On(e, t)
|
|
3755
|
+
}), d = /* @__PURE__ */ (0, _.jsx)(rn, { items: e.notes }), f = a || o ? /* @__PURE__ */ (0, _.jsxs)(it, {
|
|
3499
3756
|
justify: "between",
|
|
3500
3757
|
children: [/* @__PURE__ */ (0, _.jsx)(C, {
|
|
3501
3758
|
size: "compact",
|
|
@@ -3509,7 +3766,7 @@ function bn({ slide: e, snapshot: t, index: n, total: r, visualSide: i = "left",
|
|
|
3509
3766
|
children: "Next ▸"
|
|
3510
3767
|
})]
|
|
3511
3768
|
}) : void 0;
|
|
3512
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
3769
|
+
return /* @__PURE__ */ (0, _.jsx)(vt, {
|
|
3513
3770
|
eyebrow: e.kicker,
|
|
3514
3771
|
counter: l,
|
|
3515
3772
|
title: e.title,
|
|
@@ -3523,26 +3780,26 @@ function bn({ slide: e, snapshot: t, index: n, total: r, visualSide: i = "left",
|
|
|
3523
3780
|
...c
|
|
3524
3781
|
});
|
|
3525
3782
|
}
|
|
3526
|
-
var
|
|
3783
|
+
var An = {
|
|
3527
3784
|
header: "_header_i94hr_1",
|
|
3528
3785
|
title: "_title_i94hr_7",
|
|
3529
3786
|
content: "_content_i94hr_13"
|
|
3530
3787
|
};
|
|
3531
3788
|
//#endregion
|
|
3532
3789
|
//#region src/components/organisms/CourseStudioShell/CourseStudioShell.tsx
|
|
3533
|
-
function
|
|
3534
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
3790
|
+
function jn({ sections: e, activeItemId: t, onNavigate: n, title: r = "Context Window Engineering", subtitle: i = "Course studio", sidebarFooter: a, className: o, children: s, ...c }) {
|
|
3791
|
+
return /* @__PURE__ */ (0, _.jsx)(bt, {
|
|
3535
3792
|
className: o,
|
|
3536
3793
|
sidebarWidth: 188,
|
|
3537
3794
|
header: /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3538
|
-
className:
|
|
3795
|
+
className: An.header,
|
|
3539
3796
|
children: [/* @__PURE__ */ (0, _.jsx)("div", {
|
|
3540
|
-
className:
|
|
3797
|
+
className: An.title,
|
|
3541
3798
|
children: r
|
|
3542
|
-
}), i && /* @__PURE__ */ (0, _.jsx)(
|
|
3799
|
+
}), i && /* @__PURE__ */ (0, _.jsx)(b, { children: i })]
|
|
3543
3800
|
}),
|
|
3544
3801
|
footer: a,
|
|
3545
|
-
sidebar: /* @__PURE__ */ (0, _.jsx)(
|
|
3802
|
+
sidebar: /* @__PURE__ */ (0, _.jsx)(an, {
|
|
3546
3803
|
sections: e,
|
|
3547
3804
|
activeItemId: t,
|
|
3548
3805
|
onItemSelect: n
|
|
@@ -3550,12 +3807,12 @@ function Sn({ sections: e, activeItemId: t, onNavigate: n, title: r = "Context W
|
|
|
3550
3807
|
"data-rag-organism": "CourseStudioShell",
|
|
3551
3808
|
...c,
|
|
3552
3809
|
children: /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3553
|
-
className:
|
|
3810
|
+
className: An.content,
|
|
3554
3811
|
children: s
|
|
3555
3812
|
})
|
|
3556
3813
|
});
|
|
3557
3814
|
}
|
|
3558
|
-
var
|
|
3815
|
+
var Mn = {
|
|
3559
3816
|
root: "_root_1a4mz_1",
|
|
3560
3817
|
sidebar: "_sidebar_1a4mz_10",
|
|
3561
3818
|
preview: "_preview_1a4mz_17",
|
|
@@ -3564,18 +3821,18 @@ var Cn = {
|
|
|
3564
3821
|
};
|
|
3565
3822
|
//#endregion
|
|
3566
3823
|
//#region src/components/organisms/HandoutDocumentShell/HandoutDocumentShell.tsx
|
|
3567
|
-
function
|
|
3824
|
+
function Nn(e, t) {
|
|
3568
3825
|
return e.find((e) => e.id === t) ?? e[0];
|
|
3569
3826
|
}
|
|
3570
|
-
function
|
|
3571
|
-
let u =
|
|
3827
|
+
function Pn({ intro: e, documents: t, selectedDocumentId: n, onDocumentSelect: r, onDownload: i, onDownloadAll: a, title: o = "Handout", emptyMessage: s = "Select a document to preview it.", className: c, ...l }) {
|
|
3828
|
+
let u = Nn(t, n);
|
|
3572
3829
|
return /* @__PURE__ */ (0, _.jsxs)("div", {
|
|
3573
|
-
className: [
|
|
3830
|
+
className: [Mn.root, c ?? ""].filter(Boolean).join(" "),
|
|
3574
3831
|
"data-rag-organism": "HandoutDocumentShell",
|
|
3575
3832
|
...l,
|
|
3576
3833
|
children: [/* @__PURE__ */ (0, _.jsx)("aside", {
|
|
3577
|
-
className:
|
|
3578
|
-
children: /* @__PURE__ */ (0, _.jsx)(
|
|
3834
|
+
className: Mn.sidebar,
|
|
3835
|
+
children: /* @__PURE__ */ (0, _.jsx)(un, {
|
|
3579
3836
|
title: o,
|
|
3580
3837
|
description: e,
|
|
3581
3838
|
items: t.map((e) => ({
|
|
@@ -3590,121 +3847,138 @@ function Tn({ intro: e, documents: t, selectedDocumentId: n, onDocumentSelect: r
|
|
|
3590
3847
|
onDownloadAll: a
|
|
3591
3848
|
})
|
|
3592
3849
|
}), /* @__PURE__ */ (0, _.jsx)("section", {
|
|
3593
|
-
className:
|
|
3594
|
-
children: u ? /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [/* @__PURE__ */ (0, _.jsx)(
|
|
3850
|
+
className: Mn.preview,
|
|
3851
|
+
children: u ? /* @__PURE__ */ (0, _.jsxs)(_.Fragment, { children: [/* @__PURE__ */ (0, _.jsx)(fn, {
|
|
3595
3852
|
file: u.file,
|
|
3596
3853
|
format: u.format,
|
|
3597
3854
|
size: u.size,
|
|
3598
3855
|
onDownload: i ? () => i(u.id) : void 0
|
|
3599
3856
|
}), /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3600
|
-
className:
|
|
3601
|
-
children: u.format.toLowerCase().includes("markdown") ? /* @__PURE__ */ (0, _.jsx)(
|
|
3602
|
-
className:
|
|
3603
|
-
children: /* @__PURE__ */ (0, _.jsx)(
|
|
3857
|
+
className: Mn.articleWrap,
|
|
3858
|
+
children: u.format.toLowerCase().includes("markdown") ? /* @__PURE__ */ (0, _.jsx)(cn, { source: u.body }) : /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3859
|
+
className: Mn.placeholder,
|
|
3860
|
+
children: /* @__PURE__ */ (0, _.jsx)(b, { children: u.description })
|
|
3604
3861
|
})
|
|
3605
3862
|
})] }) : /* @__PURE__ */ (0, _.jsx)("div", {
|
|
3606
|
-
className:
|
|
3607
|
-
children: /* @__PURE__ */ (0, _.jsx)(
|
|
3863
|
+
className: Mn.placeholder,
|
|
3864
|
+
children: /* @__PURE__ */ (0, _.jsx)(b, { children: s })
|
|
3608
3865
|
})
|
|
3609
3866
|
})]
|
|
3610
3867
|
});
|
|
3611
3868
|
}
|
|
3612
3869
|
//#endregion
|
|
3870
|
+
//#region src/components/organisms/ContextUploadDropArea/ContextUploadDropArea.tsx
|
|
3871
|
+
function Fn({ title: e = "Drop a .json file here", description: t = "or paste below · max 200k tokens", accept: n = "application/json,.json", disabled: r = !1, active: i = !1, onFilesSelected: a, ...o }) {
|
|
3872
|
+
return /* @__PURE__ */ (0, _.jsx)(hn, {
|
|
3873
|
+
title: e,
|
|
3874
|
+
description: t,
|
|
3875
|
+
accept: n,
|
|
3876
|
+
disabled: r,
|
|
3877
|
+
active: i,
|
|
3878
|
+
onFilesSelected: a,
|
|
3879
|
+
inputAriaLabel: "Choose context-window JSON file",
|
|
3880
|
+
"data-rag-organism": "ContextUploadDropArea",
|
|
3881
|
+
...o
|
|
3882
|
+
});
|
|
3883
|
+
}
|
|
3884
|
+
//#endregion
|
|
3613
3885
|
//#region src/widgets/WidgetRenderer.tsx
|
|
3614
|
-
function
|
|
3886
|
+
function In({ node: e, onAction: t }) {
|
|
3615
3887
|
return /* @__PURE__ */ (0, _.jsx)(_.Fragment, { children: J(e, t) });
|
|
3616
3888
|
}
|
|
3617
3889
|
function J(e, t) {
|
|
3618
|
-
return e.kind === "text" ? e.text : e.kind === "element" ?
|
|
3890
|
+
return e.kind === "text" ? e.text : e.kind === "element" ? Ln(e, t) : Rn(e, t);
|
|
3619
3891
|
}
|
|
3620
3892
|
function Y(e, t) {
|
|
3621
|
-
return (e ?? []).map((e, n) => /* @__PURE__ */ (0, _.jsx)(
|
|
3893
|
+
return (e ?? []).map((e, n) => /* @__PURE__ */ (0, _.jsx)(In, {
|
|
3622
3894
|
node: e,
|
|
3623
3895
|
onAction: t
|
|
3624
3896
|
}, n));
|
|
3625
3897
|
}
|
|
3626
3898
|
function X(e, t) {
|
|
3627
|
-
return
|
|
3899
|
+
return pe(e, (e) => J(e, t));
|
|
3628
3900
|
}
|
|
3629
3901
|
function Z(e, t) {
|
|
3630
3902
|
return e ? J(e, t) : void 0;
|
|
3631
3903
|
}
|
|
3632
|
-
function
|
|
3904
|
+
function Ln(e, n) {
|
|
3633
3905
|
let r = { ...e.attrs ?? {} };
|
|
3634
3906
|
return r.style && typeof r.style == "object" && (r.style = r.style), t(e.tag, r, ...Y(e.children, n));
|
|
3635
3907
|
}
|
|
3636
|
-
function
|
|
3908
|
+
function Rn(e, t) {
|
|
3637
3909
|
switch (e.type) {
|
|
3638
|
-
case "AppShell": return
|
|
3639
|
-
case "AppNav": return
|
|
3640
|
-
case "Button": return
|
|
3641
|
-
case "Text": return
|
|
3642
|
-
case "CodeText": return
|
|
3643
|
-
case "Divider": return
|
|
3644
|
-
case "ContextKindSwatch": return
|
|
3645
|
-
case "
|
|
3646
|
-
case "
|
|
3647
|
-
case "
|
|
3648
|
-
case "
|
|
3649
|
-
case "
|
|
3650
|
-
case "
|
|
3651
|
-
case "
|
|
3652
|
-
case "
|
|
3653
|
-
case "
|
|
3654
|
-
case "
|
|
3655
|
-
case "
|
|
3656
|
-
case "
|
|
3657
|
-
case "
|
|
3658
|
-
case "
|
|
3659
|
-
case "
|
|
3660
|
-
case "
|
|
3661
|
-
case "
|
|
3662
|
-
case "
|
|
3663
|
-
case "
|
|
3664
|
-
case "
|
|
3665
|
-
case "
|
|
3666
|
-
case "
|
|
3667
|
-
case "
|
|
3668
|
-
case "
|
|
3669
|
-
case "
|
|
3670
|
-
case "
|
|
3671
|
-
case "
|
|
3672
|
-
case "
|
|
3673
|
-
case "
|
|
3674
|
-
case "
|
|
3675
|
-
case "
|
|
3676
|
-
case "
|
|
3677
|
-
case "
|
|
3678
|
-
case "
|
|
3679
|
-
case "
|
|
3680
|
-
case "
|
|
3681
|
-
case "
|
|
3682
|
-
case "
|
|
3683
|
-
case "
|
|
3684
|
-
case "
|
|
3685
|
-
case "
|
|
3686
|
-
case "
|
|
3687
|
-
case "
|
|
3688
|
-
case "
|
|
3689
|
-
case "
|
|
3690
|
-
case "
|
|
3691
|
-
case "
|
|
3692
|
-
case "
|
|
3693
|
-
|
|
3910
|
+
case "AppShell": return zn(e, t);
|
|
3911
|
+
case "AppNav": return Bn(e, t);
|
|
3912
|
+
case "Button": return Vn(e, t);
|
|
3913
|
+
case "Text": return Hn(e, t);
|
|
3914
|
+
case "CodeText": return Un(e, t);
|
|
3915
|
+
case "Divider": return Wn(e);
|
|
3916
|
+
case "ContextKindSwatch": return Gn(e);
|
|
3917
|
+
case "ContextStudioNavIcon": return Kn(e);
|
|
3918
|
+
case "AnnotationBadge": return qn(e);
|
|
3919
|
+
case "TranscriptRoleBadge": return Jn(e);
|
|
3920
|
+
case "ContextLegend": return Yn(e);
|
|
3921
|
+
case "ContextBudgetBar": return Xn(e);
|
|
3922
|
+
case "ContextStripDiagram": return Zn(e);
|
|
3923
|
+
case "ContextStackDiagram": return Qn(e);
|
|
3924
|
+
case "ContextTreemap": return $n(e);
|
|
3925
|
+
case "ContextDiagramPanel": return er(e);
|
|
3926
|
+
case "TranscriptSessionHeader": return tr(e, t);
|
|
3927
|
+
case "TranscriptMessageCard": return nr(e, t);
|
|
3928
|
+
case "AnnotationNoteCard": return rr(e);
|
|
3929
|
+
case "AnnotationRailPanel": return ir(e, t);
|
|
3930
|
+
case "TranscriptReaderPanel": return ar(e, t);
|
|
3931
|
+
case "TranscriptWorkspacePanel": return or(e, t);
|
|
3932
|
+
case "AnchoredCommentCard": return sr(e, t);
|
|
3933
|
+
case "AnchoredCommentRail": return cr(e, t);
|
|
3934
|
+
case "KeyValueStrip": return lr(e, t);
|
|
3935
|
+
case "CheckList": return ur(e, t);
|
|
3936
|
+
case "StepList": return dr(e, t);
|
|
3937
|
+
case "PersonSummary": return fr(e, t);
|
|
3938
|
+
case "FigureBlock": return pr(e, t);
|
|
3939
|
+
case "KeyPointList": return mr(e, t);
|
|
3940
|
+
case "SidebarNav": return hr(e, t);
|
|
3941
|
+
case "CourseStepNav": return gr(e, t);
|
|
3942
|
+
case "MarkdownArticle": return _r(e);
|
|
3943
|
+
case "DocumentListPanel": return vr(e, t);
|
|
3944
|
+
case "DocumentPreviewToolbar": return yr(e, t);
|
|
3945
|
+
case "CourseLessonPanel": return br(e, t);
|
|
3946
|
+
case "CourseSlidePanel": return xr(e, t);
|
|
3947
|
+
case "CourseStudioShell": return Sr(e, t);
|
|
3948
|
+
case "HandoutDocumentShell": return Cr(e, t);
|
|
3949
|
+
case "ContextUploadDropArea": return wr(e, t);
|
|
3950
|
+
case "Caption": return kr(e, t);
|
|
3951
|
+
case "DashboardGrid": return Ar(e, t);
|
|
3952
|
+
case "DataTable": return jr(e, t);
|
|
3953
|
+
case "FormRow": return Mr(e, t);
|
|
3954
|
+
case "Inline": return Nr(e, t);
|
|
3955
|
+
case "MetadataGrid": return Pr(e, t);
|
|
3956
|
+
case "Panel": return Fr(e, t);
|
|
3957
|
+
case "ScrollRegion": return Ir(e, t);
|
|
3958
|
+
case "SectionBlock": return Lr(e, t);
|
|
3959
|
+
case "SplitPane": return Rr(e, t);
|
|
3960
|
+
case "SidebarShell": return zr(e, t);
|
|
3961
|
+
case "SlideShell": return Br(e, t);
|
|
3962
|
+
case "SelectInput": return Vr(e, t);
|
|
3963
|
+
case "Stack": return Hr(e, t);
|
|
3964
|
+
case "StatusText": return Ur(e, t);
|
|
3965
|
+
case "TabList": return Wr(e, t);
|
|
3966
|
+
case "TextInput": return Gr(e);
|
|
3967
|
+
default: return /* @__PURE__ */ (0, _.jsxs)(ye, { children: ["Unknown widget: ", e.type] });
|
|
3694
3968
|
}
|
|
3695
3969
|
}
|
|
3696
|
-
function
|
|
3970
|
+
function zn(e, t) {
|
|
3697
3971
|
let n = e.props ?? {};
|
|
3698
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
3972
|
+
return /* @__PURE__ */ (0, _.jsx)(lt, {
|
|
3699
3973
|
className: n.className,
|
|
3700
3974
|
header: n.header ? J(n.header, t) : void 0,
|
|
3701
3975
|
sidebar: n.sidebar ? J(n.sidebar, t) : void 0,
|
|
3702
3976
|
children: Y(e.children, t)
|
|
3703
3977
|
});
|
|
3704
3978
|
}
|
|
3705
|
-
function
|
|
3979
|
+
function Bn(e, t) {
|
|
3706
3980
|
let n = e.props ?? {};
|
|
3707
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
3981
|
+
return /* @__PURE__ */ (0, _.jsx)(Et, {
|
|
3708
3982
|
brand: X(n.brand, t),
|
|
3709
3983
|
items: n.items.map((e) => ({
|
|
3710
3984
|
id: e.id,
|
|
@@ -3720,7 +3994,7 @@ function An(e, t) {
|
|
|
3720
3994
|
}
|
|
3721
3995
|
});
|
|
3722
3996
|
}
|
|
3723
|
-
function
|
|
3997
|
+
function Vn(e, t) {
|
|
3724
3998
|
let n = e.props ?? {};
|
|
3725
3999
|
return /* @__PURE__ */ (0, _.jsx)(C, {
|
|
3726
4000
|
className: n.className,
|
|
@@ -3729,11 +4003,11 @@ function jn(e, t) {
|
|
|
3729
4003
|
selected: n.selected,
|
|
3730
4004
|
disabled: n.disabled,
|
|
3731
4005
|
type: n.type ?? "button",
|
|
3732
|
-
onClick:
|
|
4006
|
+
onClick: l(n.action, { componentType: "Button" }, t),
|
|
3733
4007
|
children: Y(e.children, t)
|
|
3734
4008
|
});
|
|
3735
4009
|
}
|
|
3736
|
-
function
|
|
4010
|
+
function Hn(e, t) {
|
|
3737
4011
|
let n = e.props ?? {};
|
|
3738
4012
|
return /* @__PURE__ */ (0, _.jsx)(h, {
|
|
3739
4013
|
className: n.className,
|
|
@@ -3746,9 +4020,9 @@ function Mn(e, t) {
|
|
|
3746
4020
|
children: Y(e.children, t)
|
|
3747
4021
|
});
|
|
3748
4022
|
}
|
|
3749
|
-
function
|
|
4023
|
+
function Un(e, t) {
|
|
3750
4024
|
let n = e.props ?? {};
|
|
3751
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4025
|
+
return /* @__PURE__ */ (0, _.jsx)(oe, {
|
|
3752
4026
|
className: n.className,
|
|
3753
4027
|
as: n.as,
|
|
3754
4028
|
tone: n.tone,
|
|
@@ -3757,16 +4031,16 @@ function Nn(e, t) {
|
|
|
3757
4031
|
children: Y(e.children, t)
|
|
3758
4032
|
});
|
|
3759
4033
|
}
|
|
3760
|
-
function
|
|
4034
|
+
function Wn(e) {
|
|
3761
4035
|
let t = e.props ?? {};
|
|
3762
4036
|
return /* @__PURE__ */ (0, _.jsx)(ue, {
|
|
3763
4037
|
className: t.className,
|
|
3764
4038
|
orientation: t.orientation
|
|
3765
4039
|
});
|
|
3766
4040
|
}
|
|
3767
|
-
function
|
|
4041
|
+
function Gn(e) {
|
|
3768
4042
|
let t = e.props ?? {};
|
|
3769
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4043
|
+
return /* @__PURE__ */ (0, _.jsx)(Ve, {
|
|
3770
4044
|
className: t.className,
|
|
3771
4045
|
kind: t.kind,
|
|
3772
4046
|
mode: t.mode,
|
|
@@ -3774,26 +4048,34 @@ function Fn(e) {
|
|
|
3774
4048
|
selected: t.selected
|
|
3775
4049
|
});
|
|
3776
4050
|
}
|
|
3777
|
-
function
|
|
4051
|
+
function Kn(e) {
|
|
3778
4052
|
let t = e.props ?? {};
|
|
3779
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4053
|
+
return /* @__PURE__ */ (0, _.jsx)(Ye, {
|
|
4054
|
+
className: t.className,
|
|
4055
|
+
id: t.id,
|
|
4056
|
+
title: t.title
|
|
4057
|
+
});
|
|
4058
|
+
}
|
|
4059
|
+
function qn(e) {
|
|
4060
|
+
let t = e.props ?? {};
|
|
4061
|
+
return /* @__PURE__ */ (0, _.jsx)(Ge, {
|
|
3780
4062
|
className: t.className,
|
|
3781
4063
|
kind: t.kind,
|
|
3782
4064
|
label: t.label,
|
|
3783
4065
|
selected: t.selected
|
|
3784
4066
|
});
|
|
3785
4067
|
}
|
|
3786
|
-
function
|
|
4068
|
+
function Jn(e) {
|
|
3787
4069
|
let t = e.props ?? {};
|
|
3788
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4070
|
+
return /* @__PURE__ */ (0, _.jsx)(Ue, {
|
|
3789
4071
|
className: t.className,
|
|
3790
4072
|
role: t.role,
|
|
3791
4073
|
name: t.name
|
|
3792
4074
|
});
|
|
3793
4075
|
}
|
|
3794
|
-
function
|
|
4076
|
+
function Yn(e) {
|
|
3795
4077
|
let t = e.props ?? {};
|
|
3796
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4078
|
+
return /* @__PURE__ */ (0, _.jsx)(Ot, {
|
|
3797
4079
|
className: t.className,
|
|
3798
4080
|
kinds: t.kinds,
|
|
3799
4081
|
mode: t.mode,
|
|
@@ -3801,9 +4083,9 @@ function Rn(e) {
|
|
|
3801
4083
|
selectedKind: t.selectedKind
|
|
3802
4084
|
});
|
|
3803
4085
|
}
|
|
3804
|
-
function
|
|
4086
|
+
function Xn(e) {
|
|
3805
4087
|
let t = e.props ?? {};
|
|
3806
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4088
|
+
return /* @__PURE__ */ (0, _.jsx)(jt, {
|
|
3807
4089
|
className: t.className,
|
|
3808
4090
|
snapshot: t.snapshot,
|
|
3809
4091
|
mode: t.mode,
|
|
@@ -3811,9 +4093,9 @@ function zn(e) {
|
|
|
3811
4093
|
selectedPartId: t.selectedPartId
|
|
3812
4094
|
});
|
|
3813
4095
|
}
|
|
3814
|
-
function
|
|
4096
|
+
function Zn(e) {
|
|
3815
4097
|
let t = e.props ?? {};
|
|
3816
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4098
|
+
return /* @__PURE__ */ (0, _.jsx)(Nt, {
|
|
3817
4099
|
className: t.className,
|
|
3818
4100
|
snapshot: t.snapshot,
|
|
3819
4101
|
mode: t.mode,
|
|
@@ -3821,34 +4103,34 @@ function Bn(e) {
|
|
|
3821
4103
|
showLabels: t.showLabels
|
|
3822
4104
|
});
|
|
3823
4105
|
}
|
|
3824
|
-
function
|
|
4106
|
+
function Qn(e) {
|
|
3825
4107
|
let t = e.props ?? {};
|
|
3826
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4108
|
+
return /* @__PURE__ */ (0, _.jsx)(Ft, {
|
|
3827
4109
|
className: t.className,
|
|
3828
4110
|
snapshot: t.snapshot,
|
|
3829
4111
|
selectedPartId: t.selectedPartId
|
|
3830
4112
|
});
|
|
3831
4113
|
}
|
|
3832
|
-
function
|
|
4114
|
+
function $n(e) {
|
|
3833
4115
|
let t = e.props ?? {};
|
|
3834
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4116
|
+
return /* @__PURE__ */ (0, _.jsx)(Lt, {
|
|
3835
4117
|
className: t.className,
|
|
3836
4118
|
snapshot: t.snapshot,
|
|
3837
4119
|
selectedPartId: t.selectedPartId
|
|
3838
4120
|
});
|
|
3839
4121
|
}
|
|
3840
|
-
function
|
|
4122
|
+
function er(e) {
|
|
3841
4123
|
let t = e.props ?? {};
|
|
3842
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4124
|
+
return /* @__PURE__ */ (0, _.jsx)(vn, {
|
|
3843
4125
|
className: t.className,
|
|
3844
4126
|
snapshot: t.snapshot,
|
|
3845
4127
|
initialView: t.initialView,
|
|
3846
4128
|
selectedPartId: t.selectedPartId
|
|
3847
4129
|
});
|
|
3848
4130
|
}
|
|
3849
|
-
function
|
|
4131
|
+
function tr(e, t) {
|
|
3850
4132
|
let n = e.props ?? {};
|
|
3851
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4133
|
+
return /* @__PURE__ */ (0, _.jsx)(Ut, {
|
|
3852
4134
|
className: n.className,
|
|
3853
4135
|
title: X(n.title, t),
|
|
3854
4136
|
subtitle: X(n.subtitle, t),
|
|
@@ -3858,40 +4140,40 @@ function Wn(e, t) {
|
|
|
3858
4140
|
rightSlot: Z(n.rightSlot, t)
|
|
3859
4141
|
});
|
|
3860
4142
|
}
|
|
3861
|
-
function
|
|
4143
|
+
function nr(e, t) {
|
|
3862
4144
|
let n = e.props ?? {};
|
|
3863
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4145
|
+
return /* @__PURE__ */ (0, _.jsx)(Vt, {
|
|
3864
4146
|
className: n.className,
|
|
3865
4147
|
message: n.message,
|
|
3866
4148
|
annotations: n.annotations,
|
|
3867
4149
|
selectedAnnotationId: n.selectedAnnotationId,
|
|
3868
4150
|
showAnnotationChips: n.showAnnotationChips,
|
|
3869
|
-
onAnnotationSelect:
|
|
4151
|
+
onAnnotationSelect: Or("TranscriptMessageCard", n.onAnnotationSelectAction, t)
|
|
3870
4152
|
});
|
|
3871
4153
|
}
|
|
3872
|
-
function
|
|
4154
|
+
function rr(e) {
|
|
3873
4155
|
let t = e.props ?? {};
|
|
3874
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4156
|
+
return /* @__PURE__ */ (0, _.jsx)(Wt, {
|
|
3875
4157
|
className: t.className,
|
|
3876
4158
|
annotation: t.annotation,
|
|
3877
4159
|
selected: t.selected,
|
|
3878
4160
|
index: t.index
|
|
3879
4161
|
});
|
|
3880
4162
|
}
|
|
3881
|
-
function
|
|
4163
|
+
function ir(e, t) {
|
|
3882
4164
|
let n = e.props ?? {};
|
|
3883
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4165
|
+
return /* @__PURE__ */ (0, _.jsx)(Cn, {
|
|
3884
4166
|
className: n.className,
|
|
3885
4167
|
title: n.title,
|
|
3886
4168
|
description: n.description,
|
|
3887
4169
|
annotations: n.annotations,
|
|
3888
4170
|
selectedAnnotationId: n.selectedAnnotationId,
|
|
3889
|
-
onAnnotationSelect:
|
|
4171
|
+
onAnnotationSelect: Or("AnnotationRailPanel", n.onAnnotationSelectAction, t)
|
|
3890
4172
|
});
|
|
3891
4173
|
}
|
|
3892
|
-
function
|
|
4174
|
+
function ar(e, t) {
|
|
3893
4175
|
let n = e.props ?? {};
|
|
3894
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4176
|
+
return /* @__PURE__ */ (0, _.jsx)(xn, {
|
|
3895
4177
|
className: n.className,
|
|
3896
4178
|
title: n.title,
|
|
3897
4179
|
subtitle: n.subtitle,
|
|
@@ -3899,12 +4181,12 @@ function Jn(e, t) {
|
|
|
3899
4181
|
annotations: n.annotations,
|
|
3900
4182
|
selectedAnnotationId: n.selectedAnnotationId,
|
|
3901
4183
|
showAnnotationChips: n.showAnnotationChips,
|
|
3902
|
-
onAnnotationSelect:
|
|
4184
|
+
onAnnotationSelect: Or("TranscriptReaderPanel", n.onAnnotationSelectAction, t)
|
|
3903
4185
|
});
|
|
3904
4186
|
}
|
|
3905
|
-
function
|
|
4187
|
+
function or(e, t) {
|
|
3906
4188
|
let n = e.props ?? {};
|
|
3907
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4189
|
+
return /* @__PURE__ */ (0, _.jsx)(Tn, {
|
|
3908
4190
|
className: n.className,
|
|
3909
4191
|
title: n.title,
|
|
3910
4192
|
subtitle: n.subtitle,
|
|
@@ -3912,12 +4194,12 @@ function Yn(e, t) {
|
|
|
3912
4194
|
annotations: n.annotations,
|
|
3913
4195
|
selectedAnnotationId: n.selectedAnnotationId,
|
|
3914
4196
|
showNotes: n.showNotes,
|
|
3915
|
-
onAnnotationSelect:
|
|
4197
|
+
onAnnotationSelect: Or("TranscriptWorkspacePanel", n.onAnnotationSelectAction, t)
|
|
3916
4198
|
});
|
|
3917
4199
|
}
|
|
3918
|
-
function
|
|
4200
|
+
function sr(e, t) {
|
|
3919
4201
|
let n = e.props ?? {};
|
|
3920
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4202
|
+
return /* @__PURE__ */ (0, _.jsx)(Gt, {
|
|
3921
4203
|
className: n.className,
|
|
3922
4204
|
comment: n.comment,
|
|
3923
4205
|
index: n.index,
|
|
@@ -3930,9 +4212,9 @@ function Xn(e, t) {
|
|
|
3930
4212
|
}, t) : void 0
|
|
3931
4213
|
});
|
|
3932
4214
|
}
|
|
3933
|
-
function
|
|
4215
|
+
function cr(e, t) {
|
|
3934
4216
|
let n = e.props ?? {};
|
|
3935
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4217
|
+
return /* @__PURE__ */ (0, _.jsx)(En, {
|
|
3936
4218
|
className: n.className,
|
|
3937
4219
|
title: n.title,
|
|
3938
4220
|
comments: n.comments,
|
|
@@ -3944,9 +4226,9 @@ function Zn(e, t) {
|
|
|
3944
4226
|
}, t) : void 0
|
|
3945
4227
|
});
|
|
3946
4228
|
}
|
|
3947
|
-
function
|
|
4229
|
+
function lr(e, t) {
|
|
3948
4230
|
let n = e.props ?? {};
|
|
3949
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4231
|
+
return /* @__PURE__ */ (0, _.jsx)(Jt, {
|
|
3950
4232
|
className: n.className,
|
|
3951
4233
|
items: n.items.map((e) => ({
|
|
3952
4234
|
key: X(e.key, t),
|
|
@@ -3954,20 +4236,20 @@ function Qn(e, t) {
|
|
|
3954
4236
|
}))
|
|
3955
4237
|
});
|
|
3956
4238
|
}
|
|
3957
|
-
function
|
|
4239
|
+
function ur(e, t) {
|
|
3958
4240
|
let n = e.props ?? {};
|
|
3959
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4241
|
+
return /* @__PURE__ */ (0, _.jsx)(Xt, {
|
|
3960
4242
|
className: n.className,
|
|
3961
4243
|
marker: X(n.marker, t),
|
|
3962
|
-
items: n.items.map((e) =>
|
|
4244
|
+
items: n.items.map((e) => Er(e) ? {
|
|
3963
4245
|
...e,
|
|
3964
4246
|
text: X(e.text, t)
|
|
3965
4247
|
} : X(e, t))
|
|
3966
4248
|
});
|
|
3967
4249
|
}
|
|
3968
|
-
function
|
|
4250
|
+
function dr(e, t) {
|
|
3969
4251
|
let n = e.props ?? {};
|
|
3970
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4252
|
+
return /* @__PURE__ */ (0, _.jsx)(Zt, {
|
|
3971
4253
|
className: n.className,
|
|
3972
4254
|
items: n.items.map((e) => ({
|
|
3973
4255
|
...e,
|
|
@@ -3980,9 +4262,9 @@ function er(e, t) {
|
|
|
3980
4262
|
onItemSelect: Q("StepList", n.onItemSelectAction, "itemId", t)
|
|
3981
4263
|
});
|
|
3982
4264
|
}
|
|
3983
|
-
function
|
|
4265
|
+
function fr(e, t) {
|
|
3984
4266
|
let n = e.props ?? {};
|
|
3985
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4267
|
+
return /* @__PURE__ */ (0, _.jsx)($t, {
|
|
3986
4268
|
className: n.className,
|
|
3987
4269
|
name: X(n.name, t),
|
|
3988
4270
|
subtitle: X(n.subtitle, t),
|
|
@@ -3990,9 +4272,9 @@ function tr(e, t) {
|
|
|
3990
4272
|
avatar: X(n.avatar, t)
|
|
3991
4273
|
});
|
|
3992
4274
|
}
|
|
3993
|
-
function
|
|
4275
|
+
function pr(e, t) {
|
|
3994
4276
|
let n = e.props ?? {};
|
|
3995
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4277
|
+
return /* @__PURE__ */ (0, _.jsx)(tn, {
|
|
3996
4278
|
className: n.className,
|
|
3997
4279
|
as: n.as,
|
|
3998
4280
|
caption: X(n.caption, t),
|
|
@@ -4001,12 +4283,12 @@ function nr(e, t) {
|
|
|
4001
4283
|
children: Y(e.children, t)
|
|
4002
4284
|
});
|
|
4003
4285
|
}
|
|
4004
|
-
function
|
|
4286
|
+
function mr(e, t) {
|
|
4005
4287
|
let n = e.props ?? {};
|
|
4006
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4288
|
+
return /* @__PURE__ */ (0, _.jsx)(rn, {
|
|
4007
4289
|
className: n.className,
|
|
4008
4290
|
markerTone: n.markerTone,
|
|
4009
|
-
items: n.items.map((e) =>
|
|
4291
|
+
items: n.items.map((e) => Dr(e) ? {
|
|
4010
4292
|
...e,
|
|
4011
4293
|
index: X(e.index, t),
|
|
4012
4294
|
title: X(e.title, t),
|
|
@@ -4015,9 +4297,9 @@ function rr(e, t) {
|
|
|
4015
4297
|
} : X(e, t))
|
|
4016
4298
|
});
|
|
4017
4299
|
}
|
|
4018
|
-
function
|
|
4300
|
+
function hr(e, t) {
|
|
4019
4301
|
let n = e.props ?? {};
|
|
4020
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4302
|
+
return /* @__PURE__ */ (0, _.jsx)(an, {
|
|
4021
4303
|
className: n.className,
|
|
4022
4304
|
sections: n.sections.map((e) => ({
|
|
4023
4305
|
...e,
|
|
@@ -4034,25 +4316,25 @@ function ir(e, t) {
|
|
|
4034
4316
|
onItemSelect: Q("SidebarNav", n.onItemSelectAction, "itemId", t)
|
|
4035
4317
|
});
|
|
4036
4318
|
}
|
|
4037
|
-
function
|
|
4319
|
+
function gr(e, t) {
|
|
4038
4320
|
let n = e.props ?? {};
|
|
4039
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4321
|
+
return /* @__PURE__ */ (0, _.jsx)(Kt, {
|
|
4040
4322
|
className: n.className,
|
|
4041
4323
|
items: n.items,
|
|
4042
4324
|
activeItemId: n.activeItemId,
|
|
4043
4325
|
onItemSelect: Q("CourseStepNav", n.onItemSelectAction, "itemId", t)
|
|
4044
4326
|
});
|
|
4045
4327
|
}
|
|
4046
|
-
function
|
|
4328
|
+
function _r(e) {
|
|
4047
4329
|
let t = e.props ?? {};
|
|
4048
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4330
|
+
return /* @__PURE__ */ (0, _.jsx)(cn, {
|
|
4049
4331
|
className: t.className,
|
|
4050
4332
|
source: t.source
|
|
4051
4333
|
});
|
|
4052
4334
|
}
|
|
4053
|
-
function
|
|
4335
|
+
function vr(e, t) {
|
|
4054
4336
|
let n = e.props ?? {};
|
|
4055
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4337
|
+
return /* @__PURE__ */ (0, _.jsx)(un, {
|
|
4056
4338
|
className: n.className,
|
|
4057
4339
|
title: X(n.title, t),
|
|
4058
4340
|
description: X(n.description, t),
|
|
@@ -4072,9 +4354,9 @@ function sr(e, t) {
|
|
|
4072
4354
|
showItemDescriptions: n.showItemDescriptions
|
|
4073
4355
|
});
|
|
4074
4356
|
}
|
|
4075
|
-
function
|
|
4357
|
+
function yr(e, t) {
|
|
4076
4358
|
let n = e.props ?? {};
|
|
4077
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4359
|
+
return /* @__PURE__ */ (0, _.jsx)(fn, {
|
|
4078
4360
|
className: n.className,
|
|
4079
4361
|
file: X(n.file, t),
|
|
4080
4362
|
format: X(n.format, t),
|
|
@@ -4084,18 +4366,18 @@ function cr(e, t) {
|
|
|
4084
4366
|
rightSlot: Z(n.rightSlot, t)
|
|
4085
4367
|
});
|
|
4086
4368
|
}
|
|
4087
|
-
function
|
|
4369
|
+
function br(e, t) {
|
|
4088
4370
|
let n = e.props ?? {};
|
|
4089
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4371
|
+
return /* @__PURE__ */ (0, _.jsx)(Dn, {
|
|
4090
4372
|
className: n.className,
|
|
4091
4373
|
course: n.course,
|
|
4092
4374
|
activeAgendaItemId: n.activeAgendaItemId,
|
|
4093
4375
|
onAgendaItemSelect: Q("CourseLessonPanel", n.onAgendaItemSelectAction, "agendaItemId", t)
|
|
4094
4376
|
});
|
|
4095
4377
|
}
|
|
4096
|
-
function
|
|
4378
|
+
function xr(e, t) {
|
|
4097
4379
|
let n = e.props ?? {};
|
|
4098
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4380
|
+
return /* @__PURE__ */ (0, _.jsx)(kn, {
|
|
4099
4381
|
className: n.className,
|
|
4100
4382
|
slide: n.slide,
|
|
4101
4383
|
snapshot: n.snapshot,
|
|
@@ -4112,9 +4394,9 @@ function ur(e, t) {
|
|
|
4112
4394
|
}, t) : void 0
|
|
4113
4395
|
});
|
|
4114
4396
|
}
|
|
4115
|
-
function
|
|
4397
|
+
function Sr(e, t) {
|
|
4116
4398
|
let n = e.props ?? {};
|
|
4117
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4399
|
+
return /* @__PURE__ */ (0, _.jsx)(jn, {
|
|
4118
4400
|
className: n.className,
|
|
4119
4401
|
sections: n.sections.map((e) => ({
|
|
4120
4402
|
...e,
|
|
@@ -4134,9 +4416,9 @@ function dr(e, t) {
|
|
|
4134
4416
|
children: Y(e.children, t)
|
|
4135
4417
|
});
|
|
4136
4418
|
}
|
|
4137
|
-
function
|
|
4419
|
+
function Cr(e, t) {
|
|
4138
4420
|
let n = e.props ?? {};
|
|
4139
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4421
|
+
return /* @__PURE__ */ (0, _.jsx)(Pn, {
|
|
4140
4422
|
className: n.className,
|
|
4141
4423
|
intro: X(n.intro, t),
|
|
4142
4424
|
documents: n.documents,
|
|
@@ -4152,10 +4434,39 @@ function fr(e, t) {
|
|
|
4152
4434
|
emptyMessage: X(n.emptyMessage, t)
|
|
4153
4435
|
});
|
|
4154
4436
|
}
|
|
4155
|
-
function
|
|
4437
|
+
function wr(e, t) {
|
|
4438
|
+
let n = e.props ?? {};
|
|
4439
|
+
return /* @__PURE__ */ (0, _.jsx)(Fn, {
|
|
4440
|
+
className: n.className,
|
|
4441
|
+
title: X(n.title, t),
|
|
4442
|
+
description: X(n.description, t),
|
|
4443
|
+
accept: n.accept,
|
|
4444
|
+
disabled: n.disabled,
|
|
4445
|
+
active: n.active,
|
|
4446
|
+
onFilesSelected: n.onFilesSelectedAction ? (e) => {
|
|
4447
|
+
Tr(n.onFilesSelectedAction, e, t);
|
|
4448
|
+
} : void 0
|
|
4449
|
+
});
|
|
4450
|
+
}
|
|
4451
|
+
async function Tr(e, t, n) {
|
|
4452
|
+
let r = await Promise.all(t.map(async (e) => ({
|
|
4453
|
+
name: e.name,
|
|
4454
|
+
size: e.size,
|
|
4455
|
+
type: e.type,
|
|
4456
|
+
lastModified: e.lastModified,
|
|
4457
|
+
text: await e.text()
|
|
4458
|
+
})));
|
|
4459
|
+
$(e, {
|
|
4460
|
+
componentType: "ContextUploadDropArea",
|
|
4461
|
+
files: r,
|
|
4462
|
+
fileNames: r.map((e) => e.name),
|
|
4463
|
+
fileCount: r.length
|
|
4464
|
+
}, n);
|
|
4465
|
+
}
|
|
4466
|
+
function Er(e) {
|
|
4156
4467
|
return typeof e == "object" && !!e && "text" in e;
|
|
4157
4468
|
}
|
|
4158
|
-
function
|
|
4469
|
+
function Dr(e) {
|
|
4159
4470
|
return typeof e == "object" && !!e && "text" in e;
|
|
4160
4471
|
}
|
|
4161
4472
|
function Q(e, t, n, r) {
|
|
@@ -4165,16 +4476,16 @@ function Q(e, t, n, r) {
|
|
|
4165
4476
|
componentType: e
|
|
4166
4477
|
}, r);
|
|
4167
4478
|
}
|
|
4168
|
-
function
|
|
4479
|
+
function Or(e, t, n) {
|
|
4169
4480
|
if (t) return (r) => $(t, {
|
|
4170
4481
|
annotationId: r,
|
|
4171
4482
|
value: r,
|
|
4172
4483
|
componentType: e
|
|
4173
4484
|
}, n);
|
|
4174
4485
|
}
|
|
4175
|
-
function
|
|
4486
|
+
function kr(e, t) {
|
|
4176
4487
|
let n = e.props ?? {};
|
|
4177
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4488
|
+
return /* @__PURE__ */ (0, _.jsx)(b, {
|
|
4178
4489
|
className: n.className,
|
|
4179
4490
|
tone: n.tone,
|
|
4180
4491
|
transform: n.transform,
|
|
@@ -4182,17 +4493,17 @@ function gr(e, t) {
|
|
|
4182
4493
|
children: Y(e.children, t)
|
|
4183
4494
|
});
|
|
4184
4495
|
}
|
|
4185
|
-
function
|
|
4496
|
+
function Ar(e, t) {
|
|
4186
4497
|
let n = e.props ?? {};
|
|
4187
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4498
|
+
return /* @__PURE__ */ (0, _.jsx)(st, {
|
|
4188
4499
|
className: n.className,
|
|
4189
4500
|
recipe: n.recipe,
|
|
4190
4501
|
children: Y(e.children, t)
|
|
4191
4502
|
});
|
|
4192
4503
|
}
|
|
4193
|
-
function
|
|
4504
|
+
function jr(e, t) {
|
|
4194
4505
|
let n = e.props ?? {}, r = n.onRowSelect;
|
|
4195
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4506
|
+
return /* @__PURE__ */ (0, _.jsx)(wt, {
|
|
4196
4507
|
className: n.className,
|
|
4197
4508
|
rows: n.rows,
|
|
4198
4509
|
columns: n.columns.map((e) => ({
|
|
@@ -4202,28 +4513,28 @@ function vr(e, t) {
|
|
|
4202
4513
|
maxWidth: e.maxWidth,
|
|
4203
4514
|
cell: (n) => fe(e.cell, n, (e) => J(e, t))
|
|
4204
4515
|
})),
|
|
4205
|
-
getRowKey: (e) =>
|
|
4516
|
+
getRowKey: (e) => me(e, n.getRowKey),
|
|
4206
4517
|
selectedKey: n.selectedKey == null ? n.selectedKey : String(n.selectedKey),
|
|
4207
4518
|
emptyMessage: X(n.emptyMessage, t),
|
|
4208
4519
|
onRowSelect: r ? (e) => $(r, {
|
|
4209
4520
|
row: e,
|
|
4210
|
-
rowKey:
|
|
4521
|
+
rowKey: me(e, n.getRowKey),
|
|
4211
4522
|
componentType: "DataTable"
|
|
4212
4523
|
}, t) : void 0
|
|
4213
4524
|
});
|
|
4214
4525
|
}
|
|
4215
|
-
function
|
|
4526
|
+
function Mr(e, t) {
|
|
4216
4527
|
let n = e.props ?? {};
|
|
4217
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4528
|
+
return /* @__PURE__ */ (0, _.jsx)(ht, {
|
|
4218
4529
|
className: n.className,
|
|
4219
4530
|
label: X(n.label, t),
|
|
4220
4531
|
control: J(n.control, t),
|
|
4221
4532
|
hint: X(n.hint, t)
|
|
4222
4533
|
});
|
|
4223
4534
|
}
|
|
4224
|
-
function
|
|
4535
|
+
function Nr(e, t) {
|
|
4225
4536
|
let n = e.props ?? {};
|
|
4226
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4537
|
+
return /* @__PURE__ */ (0, _.jsx)(it, {
|
|
4227
4538
|
className: n.className,
|
|
4228
4539
|
gap: n.gap,
|
|
4229
4540
|
justify: n.justify,
|
|
@@ -4231,9 +4542,9 @@ function br(e, t) {
|
|
|
4231
4542
|
children: Y(e.children, t)
|
|
4232
4543
|
});
|
|
4233
4544
|
}
|
|
4234
|
-
function
|
|
4545
|
+
function Pr(e, t) {
|
|
4235
4546
|
let n = e.props ?? {};
|
|
4236
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4547
|
+
return /* @__PURE__ */ (0, _.jsx)(St, {
|
|
4237
4548
|
className: n.className,
|
|
4238
4549
|
density: n.density,
|
|
4239
4550
|
items: n.items.map((e) => ({
|
|
@@ -4243,9 +4554,9 @@ function xr(e, t) {
|
|
|
4243
4554
|
}))
|
|
4244
4555
|
});
|
|
4245
4556
|
}
|
|
4246
|
-
function
|
|
4557
|
+
function Fr(e, t) {
|
|
4247
4558
|
let n = e.props ?? {};
|
|
4248
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4559
|
+
return /* @__PURE__ */ (0, _.jsx)(Qe, {
|
|
4249
4560
|
className: n.className,
|
|
4250
4561
|
title: X(n.title, t),
|
|
4251
4562
|
actions: X(n.actions, t),
|
|
@@ -4254,18 +4565,18 @@ function Sr(e, t) {
|
|
|
4254
4565
|
children: Y(e.children, t)
|
|
4255
4566
|
});
|
|
4256
4567
|
}
|
|
4257
|
-
function
|
|
4568
|
+
function Ir(e, t) {
|
|
4258
4569
|
let n = e.props ?? {};
|
|
4259
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4570
|
+
return /* @__PURE__ */ (0, _.jsx)(dt, {
|
|
4260
4571
|
className: n.className,
|
|
4261
4572
|
axis: n.axis,
|
|
4262
4573
|
style: n.style,
|
|
4263
4574
|
children: Y(e.children, t)
|
|
4264
4575
|
});
|
|
4265
4576
|
}
|
|
4266
|
-
function
|
|
4577
|
+
function Lr(e, t) {
|
|
4267
4578
|
let n = e.props ?? {};
|
|
4268
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4579
|
+
return /* @__PURE__ */ (0, _.jsx)(A, {
|
|
4269
4580
|
className: n.className,
|
|
4270
4581
|
as: n.as,
|
|
4271
4582
|
label: X(n.label, t),
|
|
@@ -4275,9 +4586,9 @@ function wr(e, t) {
|
|
|
4275
4586
|
children: Y(e.children, t)
|
|
4276
4587
|
});
|
|
4277
4588
|
}
|
|
4278
|
-
function
|
|
4589
|
+
function Rr(e, t) {
|
|
4279
4590
|
let n = e.props ?? {};
|
|
4280
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4591
|
+
return /* @__PURE__ */ (0, _.jsx)(_t, {
|
|
4281
4592
|
className: n.className,
|
|
4282
4593
|
left: J(n.left, t),
|
|
4283
4594
|
right: J(n.right, t),
|
|
@@ -4286,9 +4597,9 @@ function Tr(e, t) {
|
|
|
4286
4597
|
gutter: n.gutter
|
|
4287
4598
|
});
|
|
4288
4599
|
}
|
|
4289
|
-
function
|
|
4600
|
+
function zr(e, t) {
|
|
4290
4601
|
let n = e.props ?? {};
|
|
4291
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4602
|
+
return /* @__PURE__ */ (0, _.jsx)(bt, {
|
|
4292
4603
|
className: n.className,
|
|
4293
4604
|
sidebar: Z(n.sidebar, t),
|
|
4294
4605
|
sidebarWidth: n.sidebarWidth,
|
|
@@ -4298,9 +4609,9 @@ function Er(e, t) {
|
|
|
4298
4609
|
children: Y(e.children, t)
|
|
4299
4610
|
});
|
|
4300
4611
|
}
|
|
4301
|
-
function
|
|
4612
|
+
function Br(e, t) {
|
|
4302
4613
|
let n = e.props ?? {};
|
|
4303
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4614
|
+
return /* @__PURE__ */ (0, _.jsx)(vt, {
|
|
4304
4615
|
className: n.className,
|
|
4305
4616
|
as: n.as,
|
|
4306
4617
|
eyebrow: X(n.eyebrow, t),
|
|
@@ -4315,9 +4626,9 @@ function Dr(e, t) {
|
|
|
4315
4626
|
footer: Z(n.footer, t)
|
|
4316
4627
|
});
|
|
4317
4628
|
}
|
|
4318
|
-
function
|
|
4629
|
+
function Vr(e, t) {
|
|
4319
4630
|
let n = e.props ?? {};
|
|
4320
|
-
return /* @__PURE__ */ (0, _.jsxs)(
|
|
4631
|
+
return /* @__PURE__ */ (0, _.jsxs)(xe, {
|
|
4321
4632
|
className: n.className,
|
|
4322
4633
|
name: n.name,
|
|
4323
4634
|
value: n.value,
|
|
@@ -4329,27 +4640,27 @@ function Or(e, t) {
|
|
|
4329
4640
|
}, String(e.value))), Y(e.children, t)]
|
|
4330
4641
|
});
|
|
4331
4642
|
}
|
|
4332
|
-
function
|
|
4643
|
+
function Hr(e, t) {
|
|
4333
4644
|
let n = e.props ?? {};
|
|
4334
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4645
|
+
return /* @__PURE__ */ (0, _.jsx)(tt, {
|
|
4335
4646
|
className: n.className,
|
|
4336
4647
|
gap: n.gap,
|
|
4337
4648
|
align: n.align,
|
|
4338
4649
|
children: Y(e.children, t)
|
|
4339
4650
|
});
|
|
4340
4651
|
}
|
|
4341
|
-
function
|
|
4652
|
+
function Ur(e, t) {
|
|
4342
4653
|
let n = e.props ?? {};
|
|
4343
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4654
|
+
return /* @__PURE__ */ (0, _.jsx)(v, {
|
|
4344
4655
|
className: n.className,
|
|
4345
4656
|
status: n.status,
|
|
4346
4657
|
icon: n.icon,
|
|
4347
4658
|
children: Y(e.children, t)
|
|
4348
4659
|
});
|
|
4349
4660
|
}
|
|
4350
|
-
function
|
|
4661
|
+
function Wr(e, t) {
|
|
4351
4662
|
let n = e.props ?? {};
|
|
4352
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4663
|
+
return /* @__PURE__ */ (0, _.jsx)(pt, {
|
|
4353
4664
|
items: n.items.map((e) => ({
|
|
4354
4665
|
id: e.id,
|
|
4355
4666
|
label: X(e.label, t)
|
|
@@ -4364,9 +4675,9 @@ function jr(e, t) {
|
|
|
4364
4675
|
}
|
|
4365
4676
|
});
|
|
4366
4677
|
}
|
|
4367
|
-
function
|
|
4678
|
+
function Gr(e) {
|
|
4368
4679
|
let t = e.props ?? {};
|
|
4369
|
-
return /* @__PURE__ */ (0, _.jsx)(
|
|
4680
|
+
return /* @__PURE__ */ (0, _.jsx)(Ce, {
|
|
4370
4681
|
className: t.className,
|
|
4371
4682
|
name: t.name,
|
|
4372
4683
|
value: t.value,
|
|
@@ -4379,14 +4690,14 @@ function Mr(e) {
|
|
|
4379
4690
|
});
|
|
4380
4691
|
}
|
|
4381
4692
|
function $(e, t, n) {
|
|
4382
|
-
|
|
4693
|
+
l(e, t, n)?.();
|
|
4383
4694
|
}
|
|
4384
4695
|
//#endregion
|
|
4385
4696
|
//#region src/hooks/useWidgetPage.ts
|
|
4386
|
-
function
|
|
4387
|
-
let { enabled:
|
|
4697
|
+
function Kr(e, t = {}) {
|
|
4698
|
+
let { enabled: i = !0, fetcher: o = fetch } = t, [s, c] = a(null), [l, u] = a(!!(i && e)), [d, f] = a(null), [ee, p] = a(0), m = n(() => p((e) => e + 1), []);
|
|
4388
4699
|
return r(() => {
|
|
4389
|
-
if (!
|
|
4700
|
+
if (!i || !e) {
|
|
4390
4701
|
u(!1);
|
|
4391
4702
|
return;
|
|
4392
4703
|
}
|
|
@@ -4402,7 +4713,7 @@ function Nr(e, t = {}) {
|
|
|
4402
4713
|
t.signal.aborted || u(!1);
|
|
4403
4714
|
}), () => t.abort();
|
|
4404
4715
|
}, [
|
|
4405
|
-
|
|
4716
|
+
i,
|
|
4406
4717
|
o,
|
|
4407
4718
|
e,
|
|
4408
4719
|
ee
|
|
@@ -4414,6 +4725,6 @@ function Nr(e, t = {}) {
|
|
|
4414
4725
|
};
|
|
4415
4726
|
}
|
|
4416
4727
|
//#endregion
|
|
4417
|
-
export {
|
|
4728
|
+
export { Ve as $, Ft as A, c as At, A as B, Jt as C, b as Ct, Ut as D, ie as Dt, Wt as E, oe as Et, wt as F, st as G, pt as H, St as I, Qe as J, it as K, bt as L, jt as M, Ot as N, Vt as O, h as Ot, Et as P, Ue as Q, vt as R, Xt as S, me as St, Gt as T, v as Tt, dt as U, ht as V, lt as W, qe as X, Ye as Y, Ge as Z, an as _, xe as _t, jn as a, Be as at, $t as b, fe as bt, En as c, Pe as ct, xn as d, Te as dt, Me as et, vn as f, Ee as ft, cn as g, Ce as gt, un as h, je as ht, Pn as i, Ie as it, Nt as j, Lt as k, l as kt, Tn as l, we as lt, fn as m, Ae as mt, In as n, Fe as nt, kn as o, Ne as ot, hn as p, T as pt, tt as q, Fn as r, Re as rt, Dn as s, ze as st, Kr as t, Le as tt, Cn as u, w as ut, rn as v, ye as vt, Kt as w, ue as wt, Zt as x, pe as xt, tn as y, C as yt, _t as z };
|
|
4418
4729
|
|
|
4419
|
-
//# sourceMappingURL=useWidgetPage-
|
|
4730
|
+
//# sourceMappingURL=useWidgetPage-BdA824UK.js.map
|