@burdenoff/microfe-cosmicintersection 2026.1101.2 → 2026.1102.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.
Files changed (55) hide show
  1. package/dist/cosmicintersection/api/cosmicApi.d.ts +33 -0
  2. package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
  3. package/dist/cosmicintersection/api/cosmicApi.js +118 -71
  4. package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
  5. package/dist/cosmicintersection/components/ScienceCanvas.d.ts +17 -0
  6. package/dist/cosmicintersection/components/ScienceCanvas.d.ts.map +1 -0
  7. package/dist/cosmicintersection/components/ScienceCanvas.js +791 -0
  8. package/dist/cosmicintersection/components/ScienceCanvas.js.map +1 -0
  9. package/dist/cosmicintersection/components/index.d.ts +2 -0
  10. package/dist/cosmicintersection/components/index.d.ts.map +1 -1
  11. package/dist/cosmicintersection/components/index.js +2 -0
  12. package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts +22 -0
  13. package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts.map +1 -0
  14. package/dist/cosmicintersection/lib/useTrackRecentItem.js +28 -0
  15. package/dist/cosmicintersection/lib/useTrackRecentItem.js.map +1 -0
  16. package/dist/cosmicintersection/lib/visualization.d.ts +189 -0
  17. package/dist/cosmicintersection/lib/visualization.d.ts.map +1 -0
  18. package/dist/cosmicintersection/lib/visualization.js +298 -0
  19. package/dist/cosmicintersection/lib/visualization.js.map +1 -0
  20. package/dist/cosmicintersection/lib/visualizationSamples.d.ts +80 -0
  21. package/dist/cosmicintersection/lib/visualizationSamples.d.ts.map +1 -0
  22. package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts.map +1 -1
  23. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +245 -237
  24. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  25. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts.map +1 -1
  26. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +101 -93
  27. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js.map +1 -1
  28. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +1 -1
  29. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +82 -74
  30. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
  31. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts.map +1 -1
  32. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +66 -58
  33. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  34. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts.map +1 -1
  35. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +126 -118
  36. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  37. package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
  38. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +211 -203
  39. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  40. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  41. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +92 -84
  42. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  43. package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts.map +1 -1
  44. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +101 -93
  45. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -1
  46. package/dist/index.d.ts +2 -0
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +2 -1
  49. package/dist/services/recentItems.d.ts +40 -0
  50. package/dist/services/recentItems.d.ts.map +1 -0
  51. package/dist/services/recentItems.js +128 -0
  52. package/dist/services/recentItems.js.map +1 -0
  53. package/dist/stories/ScienceCanvas.stories.d.ts +21 -0
  54. package/dist/stories/ScienceCanvas.stories.d.ts.map +1 -0
  55. package/package.json +5 -1
@@ -1,27 +1,28 @@
1
1
  import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
2
2
  import { notify as t } from "../../lib/toast.js";
3
- import { useCosAnalysesQuery as n, useCosCompleteAnalysisMutation as r, useCosDatasetsQuery as i, useCosNotebooksQuery as a, useCosRunAnalysisMutation as o } from "../../api/cosmicApi.js";
4
- import { useTr as s } from "../../../shared/hooks/useTr.js";
5
- import { ActionMenu as c } from "../../components/ActionMenu.js";
6
- import { EmptyState as l } from "../../components/EmptyState.js";
7
- import { ErrorState as u } from "../../components/ErrorState.js";
8
- import { LoadingState as d } from "../../components/LoadingState.js";
9
- import { FileUploadField as f, useFileDownloadUrl as p } from "../../components/FileUploadField.js";
10
- import { PageLayout as m } from "../../components/PageLayout.js";
11
- import { StatusBadge as h } from "../../components/StatusBadge.js";
3
+ import { useCosAnalysesQuery as n, useCosAnalysisQuery as r, useCosCompleteAnalysisMutation as i, useCosDatasetsQuery as a, useCosNotebooksQuery as o, useCosRunAnalysisMutation as s } from "../../api/cosmicApi.js";
4
+ import { useTr as c } from "../../../shared/hooks/useTr.js";
5
+ import { ActionMenu as l } from "../../components/ActionMenu.js";
6
+ import { EmptyState as u } from "../../components/EmptyState.js";
7
+ import { ErrorState as d } from "../../components/ErrorState.js";
8
+ import { LoadingState as f } from "../../components/LoadingState.js";
9
+ import { FileUploadField as p, useFileDownloadUrl as m } from "../../components/FileUploadField.js";
10
+ import { PageLayout as h } from "../../components/PageLayout.js";
11
+ import { ScienceCanvas as g } from "../../components/ScienceCanvas.js";
12
+ import { StatusBadge as _ } from "../../components/StatusBadge.js";
12
13
  import "../../components/index.js";
13
- import { useSelectedRecord as g } from "../../lib/useSelectedRecord.js";
14
- import { ResultsChart as _ } from "../../components/ResultsChart.js";
15
- import { ASSISTANT_AWARE_DIALOG_CONTENT_PROPS as v, ASSISTANT_AWARE_DIALOG_ROOT_PROPS as y } from "../../lib/assistantAwareDialog.js";
16
- import { useMemo as b, useState as x } from "react";
17
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
18
- import { BarChart3 as T, Beaker as E, Download as D, ExternalLink as O, Play as k, Sparkles as A } from "lucide-react";
19
- import { Badge as j, Button as M, Dialog as N, DialogClose as P, DialogContent as F, DialogDescription as I, DialogFooter as L, DialogHeader as R, DialogTitle as z, Input as B, Label as V, Select as H, SelectContent as U, SelectItem as W, SelectTrigger as G, SelectValue as K, Switch as q, Table as ee, TableBody as te, TableCell as J, TableHead as Y, TableHeader as ne, TableRow as re, Textarea as ie } from "@burdenoff/fe-libs/ui";
14
+ import { useSelectedRecord as v } from "../../lib/useSelectedRecord.js";
15
+ import { ASSISTANT_AWARE_DIALOG_CONTENT_PROPS as y, ASSISTANT_AWARE_DIALOG_ROOT_PROPS as b } from "../../lib/assistantAwareDialog.js";
16
+ import { useTrackRecentItem as ee } from "../../lib/useTrackRecentItem.js";
17
+ import { useMemo as x, useState as S } from "react";
18
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
19
+ import { BarChart3 as E, Beaker as D, Download as O, ExternalLink as k, Play as A, Sparkles as te } from "lucide-react";
20
+ import { Badge as ne, Button as j, Dialog as M, DialogClose as re, DialogContent as N, DialogDescription as P, DialogFooter as F, DialogHeader as I, DialogTitle as L, Input as R, Label as z, Select as B, SelectContent as V, SelectItem as H, SelectTrigger as U, SelectValue as W, Switch as G, Table as ie, TableBody as ae, TableCell as K, TableHead as q, TableHeader as oe, TableRow as se, Textarea as J } from "@burdenoff/fe-libs/ui";
20
21
  //#region src/cosmicintersection/pages/analyses/AnalysesPage.tsx
21
- function X(e) {
22
+ function Y(e) {
22
23
  return !!e.outputFile?.id || !!(e.results && Object.keys(e.results).length > 0);
23
24
  }
24
- var ae = [
25
+ var ce = [
25
26
  {
26
27
  value: "PENDING",
27
28
  label: "Pending"
@@ -38,8 +39,8 @@ var ae = [
38
39
  value: "FAILED",
39
40
  label: "Failed"
40
41
  }
41
- ], Z = "ALL";
42
- function Q(e) {
42
+ ], X = "ALL";
43
+ function Z(e) {
43
44
  if (!e) return "—";
44
45
  let t = new Date(e);
45
46
  return Number.isNaN(t.getTime()) ? "—" : t.toLocaleString(void 0, {
@@ -50,70 +51,70 @@ function Q(e) {
50
51
  minute: "2-digit"
51
52
  });
52
53
  }
53
- function oe({ fileId: e }) {
54
- let { data: t, loading: n } = p(e), [r, i] = x(!1), a = t?.getFileDownloadUrl ?? null;
55
- return n ? /* @__PURE__ */ C("span", {
54
+ function Q({ fileId: e }) {
55
+ let { data: t, loading: n } = m(e), [r, i] = S(!1), a = t?.getFileDownloadUrl ?? null;
56
+ return n ? /* @__PURE__ */ w("span", {
56
57
  className: "text-xs text-text-secondary",
57
58
  children: "Resolving link…"
58
- }) : a ? /* @__PURE__ */ w("div", {
59
+ }) : a ? /* @__PURE__ */ T("div", {
59
60
  className: "space-y-2",
60
- children: [r ? null : /* @__PURE__ */ C("img", {
61
+ children: [r ? null : /* @__PURE__ */ w("img", {
61
62
  src: a,
62
63
  alt: "Analysis output preview",
63
64
  onError: () => i(!0),
64
65
  className: "max-h-72 w-full rounded-card border border-border-default bg-bg-sunken object-contain"
65
- }), /* @__PURE__ */ w("a", {
66
+ }), /* @__PURE__ */ T("a", {
66
67
  href: a,
67
68
  target: "_blank",
68
69
  rel: "noopener noreferrer",
69
70
  className: "inline-flex items-center gap-1 text-sm text-text-primary underline-offset-2 hover:underline",
70
- children: [/* @__PURE__ */ C(D, {
71
+ children: [/* @__PURE__ */ w(O, {
71
72
  className: "size-3.5",
72
73
  "aria-hidden": "true"
73
74
  }), "Download output"]
74
75
  })]
75
- }) : /* @__PURE__ */ w("span", {
76
+ }) : /* @__PURE__ */ T("span", {
76
77
  className: "text-xs text-text-secondary",
77
78
  children: ["File ", e]
78
79
  });
79
80
  }
80
- function se({ analysis: e, onOpenChange: t }) {
81
+ function le({ analysis: e, onOpenChange: t }) {
81
82
  let n = e?.results ?? null, r = !!(n && Object.keys(n).length > 0), i = !!e?.outputFile?.id;
82
- return /* @__PURE__ */ C(N, {
83
- ...y,
83
+ return /* @__PURE__ */ w(M, {
84
+ ...b,
84
85
  open: !!e,
85
86
  onOpenChange: t,
86
- children: /* @__PURE__ */ C(F, {
87
- ...v,
87
+ children: /* @__PURE__ */ w(N, {
88
+ ...y,
88
89
  className: "max-h-[85vh] max-w-2xl overflow-y-auto",
89
- children: e ? /* @__PURE__ */ w(S, { children: [
90
- /* @__PURE__ */ w(R, { children: [/* @__PURE__ */ w(z, {
90
+ children: e ? /* @__PURE__ */ T(C, { children: [
91
+ /* @__PURE__ */ T(I, { children: [/* @__PURE__ */ T(L, {
91
92
  className: "flex items-center gap-2",
92
- children: [/* @__PURE__ */ C(T, {
93
+ children: [/* @__PURE__ */ w(E, {
93
94
  className: "size-5 text-text-secondary",
94
95
  "aria-hidden": "true"
95
96
  }), "Analysis results"]
96
- }), /* @__PURE__ */ w(I, { children: [e.title, e.method ? ` · ${e.method}` : ""] })] }),
97
- /* @__PURE__ */ w("div", {
97
+ }), /* @__PURE__ */ T(P, { children: [e.title, e.method ? ` · ${e.method}` : ""] })] }),
98
+ /* @__PURE__ */ T("div", {
98
99
  className: "space-y-5",
99
100
  children: [
100
- r && n ? /* @__PURE__ */ C(_, { results: n }) : null,
101
- i && e.outputFile ? /* @__PURE__ */ w("div", {
101
+ r && n ? /* @__PURE__ */ w(g, { results: n }) : null,
102
+ i && e.outputFile ? /* @__PURE__ */ T("div", {
102
103
  className: "space-y-2",
103
- children: [/* @__PURE__ */ C("p", {
104
+ children: [/* @__PURE__ */ w("p", {
104
105
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
105
106
  children: "Output artifact"
106
- }), /* @__PURE__ */ C(oe, { fileId: e.outputFile.id })]
107
+ }), /* @__PURE__ */ w(Q, { fileId: e.outputFile.id })]
107
108
  }) : null,
108
- !r && !i ? /* @__PURE__ */ C("p", {
109
+ !r && !i ? /* @__PURE__ */ w("p", {
109
110
  className: "rounded-card border border-border-default bg-bg-sunken px-4 py-6 text-center text-sm text-text-secondary",
110
111
  children: "No results or output artifact has been recorded for this analysis yet."
111
112
  }) : null
112
113
  ]
113
114
  }),
114
- /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(P, {
115
+ /* @__PURE__ */ w(F, { children: /* @__PURE__ */ w(re, {
115
116
  asChild: !0,
116
- children: /* @__PURE__ */ C(M, {
117
+ children: /* @__PURE__ */ w(j, {
117
118
  type: "button",
118
119
  variant: "outline",
119
120
  children: "Close"
@@ -145,50 +146,50 @@ function $(e, t) {
145
146
  };
146
147
  }
147
148
  }
148
- function ce({ open: e, onOpenChange: n, onCompleted: r }) {
149
- let c = s(), [l, u] = x(""), [d, f] = x(""), [p, m] = x(!1), [h, g] = x("NOTEBOOK"), [_, v] = x(""), { data: y, loading: b } = a({ pagination: {
149
+ function ue({ open: e, onOpenChange: n, onCompleted: r }) {
150
+ let i = c(), [l, u] = S(""), [d, f] = S(""), [p, m] = S(!1), [h, g] = S("NOTEBOOK"), [_, v] = S(""), { data: y, loading: b } = o({ pagination: {
150
151
  limit: 100,
151
152
  offset: 0
152
- } }), { data: S, loading: T } = i({ pagination: {
153
+ } }), { data: ee, loading: x } = a({ pagination: {
153
154
  limit: 100,
154
155
  offset: 0
155
- } }), [E, { loading: D }] = o(), O = y?.cosListNotebooks.items ?? [], A = S?.cosListDatasets.items ?? [], j = () => {
156
+ } }), [C, { loading: E }] = s(), D = y?.cosListNotebooks.items ?? [], O = ee?.cosListDatasets.items ?? [], k = () => {
156
157
  u(""), f(""), m(!1), g("NOTEBOOK"), v("");
157
158
  };
158
- return /* @__PURE__ */ C(N, {
159
+ return /* @__PURE__ */ w(M, {
159
160
  open: e,
160
161
  onOpenChange: (e) => {
161
- D || n(e);
162
+ E || n(e);
162
163
  },
163
- children: /* @__PURE__ */ C(F, { children: /* @__PURE__ */ w("form", {
164
+ children: /* @__PURE__ */ w(N, { children: /* @__PURE__ */ T("form", {
164
165
  onSubmit: async (e) => {
165
166
  e.preventDefault();
166
- let i = l.trim();
167
- if (!i) {
168
- t.error(c("cosmicintersection.pages.analyses.titleRequired", "Title is required"), c("cosmicintersection.pages.analyses.titleRequiredDescription", "Give the analysis a descriptive title."));
167
+ let a = l.trim();
168
+ if (!a) {
169
+ t.error(i("cosmicintersection.pages.analyses.titleRequired", "Title is required"), i("cosmicintersection.pages.analyses.titleRequiredDescription", "Give the analysis a descriptive title."));
169
170
  return;
170
171
  }
171
172
  if (!_) {
172
- t.error(c("cosmicintersection.pages.analyses.selectSource", "Select a source"), c("cosmicintersection.pages.analyses.selectSourceDescription", "Choose a {{kind}} to analyse.", { kind: h === "NOTEBOOK" ? c("nav.notebooks", "notebook").toLowerCase() : c("nav.datasets", "dataset").toLowerCase() }));
173
+ t.error(i("cosmicintersection.pages.analyses.selectSource", "Select a source"), i("cosmicintersection.pages.analyses.selectSourceDescription", "Choose a {{kind}} to analyse.", { kind: h === "NOTEBOOK" ? i("nav.notebooks", "notebook").toLowerCase() : i("nav.datasets", "dataset").toLowerCase() }));
173
174
  return;
174
175
  }
175
- let a = await E({ variables: { input: {
176
- title: i,
176
+ let o = await C({ variables: { input: {
177
+ title: a,
177
178
  method: d.trim() || void 0,
178
179
  aiAssisted: p,
179
180
  ...h === "NOTEBOOK" ? { notebookId: _ } : { datasetId: _ }
180
181
  } } });
181
- a.error || !a.data?.cosRunAnalysis?.id || (t.success(c("cosmicintersection.pages.analyses.analysisStarted", "Analysis started"), c("cosmicintersection.pages.analyses.analysisStartedDescription", "“{{name}}” is now running.", { name: i })), j(), n(!1), r());
182
+ o.error || !o.data?.cosRunAnalysis?.id || (t.success(i("cosmicintersection.pages.analyses.analysisStarted", "Analysis started"), i("cosmicintersection.pages.analyses.analysisStartedDescription", "“{{name}}” is now running.", { name: a })), k(), n(!1), r());
182
183
  },
183
184
  className: "space-y-4",
184
185
  children: [
185
- /* @__PURE__ */ w(R, { children: [/* @__PURE__ */ C(z, { children: "Run analysis" }), /* @__PURE__ */ C(I, { children: "Launch a new analysis against a notebook or a dataset. Exactly one source is required." })] }),
186
- /* @__PURE__ */ w("div", {
186
+ /* @__PURE__ */ T(I, { children: [/* @__PURE__ */ w(L, { children: "Run analysis" }), /* @__PURE__ */ w(P, { children: "Launch a new analysis against a notebook or a dataset. Exactly one source is required." })] }),
187
+ /* @__PURE__ */ T("div", {
187
188
  className: "space-y-1.5",
188
- children: [/* @__PURE__ */ C(V, {
189
+ children: [/* @__PURE__ */ w(z, {
189
190
  htmlFor: "run-title",
190
191
  children: "Title"
191
- }), /* @__PURE__ */ C(B, {
192
+ }), /* @__PURE__ */ w(R, {
192
193
  id: "run-title",
193
194
  value: l,
194
195
  onChange: (e) => u(e.target.value),
@@ -196,176 +197,176 @@ function ce({ open: e, onOpenChange: n, onCompleted: r }) {
196
197
  required: !0
197
198
  })]
198
199
  }),
199
- /* @__PURE__ */ w("div", {
200
+ /* @__PURE__ */ T("div", {
200
201
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
201
- children: [/* @__PURE__ */ w("div", {
202
+ children: [/* @__PURE__ */ T("div", {
202
203
  className: "space-y-1.5",
203
- children: [/* @__PURE__ */ C(V, {
204
+ children: [/* @__PURE__ */ w(z, {
204
205
  htmlFor: "run-source-kind",
205
206
  children: "Source type"
206
- }), /* @__PURE__ */ w(H, {
207
+ }), /* @__PURE__ */ T(B, {
207
208
  value: h,
208
209
  onValueChange: (e) => {
209
210
  g(e), v("");
210
211
  },
211
- children: [/* @__PURE__ */ C(G, {
212
+ children: [/* @__PURE__ */ w(U, {
212
213
  id: "run-source-kind",
213
214
  "aria-label": "Source type",
214
- children: /* @__PURE__ */ C(K, {})
215
- }), /* @__PURE__ */ w(U, { children: [/* @__PURE__ */ C(W, {
215
+ children: /* @__PURE__ */ w(W, {})
216
+ }), /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(H, {
216
217
  value: "NOTEBOOK",
217
218
  children: "Notebook"
218
- }), /* @__PURE__ */ C(W, {
219
+ }), /* @__PURE__ */ w(H, {
219
220
  value: "DATASET",
220
221
  children: "Dataset"
221
222
  })] })]
222
223
  })]
223
- }), /* @__PURE__ */ w("div", {
224
+ }), /* @__PURE__ */ T("div", {
224
225
  className: "space-y-1.5",
225
- children: [/* @__PURE__ */ C(V, {
226
+ children: [/* @__PURE__ */ w(z, {
226
227
  htmlFor: "run-source-id",
227
228
  children: h === "NOTEBOOK" ? "Notebook" : "Dataset"
228
- }), /* @__PURE__ */ w(H, {
229
+ }), /* @__PURE__ */ T(B, {
229
230
  value: _,
230
231
  onValueChange: (e) => v(e),
231
- children: [/* @__PURE__ */ C(G, {
232
+ children: [/* @__PURE__ */ w(U, {
232
233
  id: "run-source-id",
233
234
  "aria-label": "Analysis source",
234
- children: /* @__PURE__ */ C(K, { placeholder: (h === "NOTEBOOK" ? b : T) ? "Loading…" : `Select a ${h === "NOTEBOOK" ? "notebook" : "dataset"}` })
235
- }), /* @__PURE__ */ C(U, { children: h === "NOTEBOOK" ? O.map((e) => /* @__PURE__ */ C(W, {
235
+ children: /* @__PURE__ */ w(W, { placeholder: (h === "NOTEBOOK" ? b : x) ? "Loading…" : `Select a ${h === "NOTEBOOK" ? "notebook" : "dataset"}` })
236
+ }), /* @__PURE__ */ w(V, { children: h === "NOTEBOOK" ? D.map((e) => /* @__PURE__ */ w(H, {
236
237
  value: e.id,
237
238
  children: e.title
238
- }, e.id)) : A.map((e) => /* @__PURE__ */ C(W, {
239
+ }, e.id)) : O.map((e) => /* @__PURE__ */ w(H, {
239
240
  value: e.id,
240
241
  children: e.name
241
242
  }, e.id)) })]
242
243
  })]
243
244
  })]
244
245
  }),
245
- /* @__PURE__ */ w("div", {
246
+ /* @__PURE__ */ T("div", {
246
247
  className: "space-y-1.5",
247
- children: [/* @__PURE__ */ C(V, {
248
+ children: [/* @__PURE__ */ w(z, {
248
249
  htmlFor: "run-method",
249
250
  children: "Method"
250
- }), /* @__PURE__ */ C(B, {
251
+ }), /* @__PURE__ */ w(R, {
251
252
  id: "run-method",
252
253
  value: d,
253
254
  onChange: (e) => f(e.target.value),
254
255
  placeholder: "e.g. gaussian-fit"
255
256
  })]
256
257
  }),
257
- /* @__PURE__ */ w("div", {
258
+ /* @__PURE__ */ T("div", {
258
259
  className: "flex items-center gap-3",
259
- children: [/* @__PURE__ */ C(q, {
260
+ children: [/* @__PURE__ */ w(G, {
260
261
  id: "run-ai",
261
262
  checked: p,
262
263
  onCheckedChange: (e) => m(e)
263
- }), /* @__PURE__ */ C(V, {
264
+ }), /* @__PURE__ */ w(z, {
264
265
  htmlFor: "run-ai",
265
266
  className: "cursor-pointer",
266
267
  children: "AI-assisted analysis"
267
268
  })]
268
269
  }),
269
- /* @__PURE__ */ w(L, { children: [/* @__PURE__ */ C(M, {
270
+ /* @__PURE__ */ T(F, { children: [/* @__PURE__ */ w(j, {
270
271
  type: "button",
271
272
  variant: "outline",
272
273
  onClick: () => n(!1),
273
- disabled: D,
274
+ disabled: E,
274
275
  children: "Cancel"
275
- }), /* @__PURE__ */ w(M, {
276
+ }), /* @__PURE__ */ T(j, {
276
277
  type: "submit",
277
- disabled: D,
278
- children: [/* @__PURE__ */ C(k, { className: "size-4" }), D ? "Starting…" : "Run analysis"]
278
+ disabled: E,
279
+ children: [/* @__PURE__ */ w(A, { className: "size-4" }), E ? "Starting…" : "Run analysis"]
279
280
  })] })
280
281
  ]
281
282
  }) })
282
283
  });
283
284
  }
284
- function le({ analysis: e, onOpenChange: n, onCompleted: i }) {
285
- let [a, o] = x("COMPLETED"), [c, l] = x(""), [u, d] = x(""), [p, { loading: m }] = r(), h = s();
286
- return /* @__PURE__ */ C(N, {
285
+ function de({ analysis: e, onOpenChange: n, onCompleted: r }) {
286
+ let [a, o] = S("COMPLETED"), [s, l] = S(""), [u, d] = S(""), [f, { loading: m }] = i(), h = c();
287
+ return /* @__PURE__ */ w(M, {
287
288
  open: !!e,
288
289
  onOpenChange: (e) => {
289
290
  m || n(e);
290
291
  },
291
- children: /* @__PURE__ */ C(F, { children: /* @__PURE__ */ w("form", {
292
- onSubmit: async (r) => {
293
- if (r.preventDefault(), !e) return;
294
- let o = $(c, h);
292
+ children: /* @__PURE__ */ w(N, { children: /* @__PURE__ */ T("form", {
293
+ onSubmit: async (i) => {
294
+ if (i.preventDefault(), !e) return;
295
+ let o = $(s, h);
295
296
  if (!o.ok) {
296
297
  t.error(h("cosmicintersection.pages.analyses.invalidResults", "Invalid results"), o.error);
297
298
  return;
298
299
  }
299
- let s = await p({ variables: {
300
+ let c = await f({ variables: {
300
301
  id: e.id,
301
302
  status: a,
302
303
  results: o.value,
303
304
  outputFileId: u || void 0
304
305
  } });
305
- s.error || !s.data?.cosCompleteAnalysis || (t.success(a === "COMPLETED" ? h("cosmicintersection.pages.analyses.analysisCompleted", "Analysis completed") : h("cosmicintersection.pages.analyses.analysisMarkedFailed", "Analysis marked failed"), h("cosmicintersection.pages.analyses.analysisUpdatedDescription", "“{{name}}” was updated.", { name: e.title })), n(!1), i());
306
+ c.error || !c.data?.cosCompleteAnalysis || (t.success(a === "COMPLETED" ? h("cosmicintersection.pages.analyses.analysisCompleted", "Analysis completed") : h("cosmicintersection.pages.analyses.analysisMarkedFailed", "Analysis marked failed"), h("cosmicintersection.pages.analyses.analysisUpdatedDescription", "“{{name}}” was updated.", { name: e.title })), n(!1), r());
306
307
  },
307
308
  className: "space-y-4",
308
309
  children: [
309
- /* @__PURE__ */ w(R, { children: [/* @__PURE__ */ C(z, { children: "Complete analysis" }), /* @__PURE__ */ w(I, { children: [
310
+ /* @__PURE__ */ T(I, { children: [/* @__PURE__ */ w(L, { children: "Complete analysis" }), /* @__PURE__ */ T(P, { children: [
310
311
  "Record the outcome for ",
311
312
  e ? `“${e.title}”` : "this analysis",
312
313
  ". Attach results or an output artifact if you have them."
313
314
  ] })] }),
314
- /* @__PURE__ */ w("div", {
315
+ /* @__PURE__ */ T("div", {
315
316
  className: "space-y-1.5",
316
- children: [/* @__PURE__ */ C(V, {
317
+ children: [/* @__PURE__ */ w(z, {
317
318
  htmlFor: "complete-status",
318
319
  children: "Outcome"
319
- }), /* @__PURE__ */ w(H, {
320
+ }), /* @__PURE__ */ T(B, {
320
321
  value: a,
321
322
  onValueChange: (e) => o(e),
322
- children: [/* @__PURE__ */ C(G, {
323
+ children: [/* @__PURE__ */ w(U, {
323
324
  id: "complete-status",
324
325
  "aria-label": "Outcome",
325
- children: /* @__PURE__ */ C(K, {})
326
- }), /* @__PURE__ */ w(U, { children: [/* @__PURE__ */ C(W, {
326
+ children: /* @__PURE__ */ w(W, {})
327
+ }), /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(H, {
327
328
  value: "COMPLETED",
328
329
  children: "Completed"
329
- }), /* @__PURE__ */ C(W, {
330
+ }), /* @__PURE__ */ w(H, {
330
331
  value: "FAILED",
331
332
  children: "Failed"
332
333
  })] })]
333
334
  })]
334
335
  }),
335
- /* @__PURE__ */ w("div", {
336
+ /* @__PURE__ */ T("div", {
336
337
  className: "space-y-1.5",
337
338
  children: [
338
- /* @__PURE__ */ C(V, {
339
+ /* @__PURE__ */ w(z, {
339
340
  htmlFor: "complete-results",
340
341
  children: "Results (JSON)"
341
342
  }),
342
- /* @__PURE__ */ C(ie, {
343
+ /* @__PURE__ */ w(J, {
343
344
  id: "complete-results",
344
- value: c,
345
+ value: s,
345
346
  onChange: (e) => l(e.target.value),
346
347
  rows: 4,
347
348
  className: "font-mono text-xs",
348
349
  placeholder: "{ \"snr\": 12.4, \"detections\": 3 }"
349
350
  }),
350
- /* @__PURE__ */ C("p", {
351
+ /* @__PURE__ */ w("p", {
351
352
  className: "text-xs text-text-secondary",
352
353
  children: "Optional structured results as a JSON object."
353
354
  })
354
355
  ]
355
356
  }),
356
- /* @__PURE__ */ C(f, {
357
+ /* @__PURE__ */ w(p, {
357
358
  value: u,
358
359
  onChange: (e) => d(e),
359
360
  label: "Attach output file",
360
361
  hint: "Optional output artifact (plots, tables, exports). Stored in workspace files."
361
362
  }),
362
- /* @__PURE__ */ w(L, { children: [/* @__PURE__ */ C(M, {
363
+ /* @__PURE__ */ T(F, { children: [/* @__PURE__ */ w(j, {
363
364
  type: "button",
364
365
  variant: "outline",
365
366
  onClick: () => n(!1),
366
367
  disabled: m,
367
368
  children: "Cancel"
368
- }), /* @__PURE__ */ C(M, {
369
+ }), /* @__PURE__ */ w(j, {
369
370
  type: "submit",
370
371
  disabled: m,
371
372
  children: m ? "Saving…" : "Save outcome"
@@ -374,247 +375,254 @@ function le({ analysis: e, onOpenChange: n, onCompleted: i }) {
374
375
  }) })
375
376
  });
376
377
  }
377
- function ue() {
378
- let { navigate: t } = e(), r = s(), [o, f] = x(void 0), [p, _] = x(!1), [v, y] = x(null), { data: D, loading: N, error: P, refetch: F } = n({ status: o }), { data: I } = a({ pagination: {
378
+ function fe() {
379
+ let { navigate: t } = e(), i = c(), [s, p] = S(void 0), [m, g] = S(!1), [y, b] = S(null), { data: O, loading: M, error: re, refetch: N } = n({ status: s }), { data: P } = o({ pagination: {
379
380
  limit: 100,
380
381
  offset: 0
381
- } }), { data: L } = i({ pagination: {
382
+ } }), { data: F } = a({ pagination: {
382
383
  limit: 100,
383
384
  offset: 0
384
- } }), R = D?.cosListAnalyses ?? [], { selectedId: z, select: B } = g(), V = z ? R.find((e) => e.id === z) ?? null : null, q = (e) => B(e ? e.id : null), ie = b(() => {
385
+ } }), I = O?.cosListAnalyses ?? [], { selectedId: L, select: R } = v(), z = L ? I.find((e) => e.id === L) ?? null : null, { data: G } = r(L, { skip: z !== null || M || !O }), J = G?.cosAnalysis ?? null, Q = z ?? (J && J.id === L ? J : null), $ = (e) => R(e ? e.id : null);
386
+ ee(Q ? {
387
+ type: "analysis",
388
+ id: Q.id,
389
+ name: Q.title,
390
+ path: `analyses?id=${encodeURIComponent(Q.id)}`
391
+ } : null);
392
+ let fe = x(() => {
385
393
  let e = /* @__PURE__ */ new Map();
386
- for (let t of I?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
394
+ for (let t of P?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
387
395
  return e;
388
- }, [I]), oe = b(() => {
396
+ }, [P]), pe = x(() => {
389
397
  let e = /* @__PURE__ */ new Map();
390
- for (let t of L?.cosListDatasets.items ?? []) e.set(t.id, t.name);
398
+ for (let t of F?.cosListDatasets.items ?? []) e.set(t.id, t.name);
391
399
  return e;
392
- }, [L]), $ = (e) => e.notebookId ? {
393
- label: ie.get(e.notebookId) ?? "Notebook",
400
+ }, [F]), me = (e) => e.notebookId ? {
401
+ label: fe.get(e.notebookId) ?? "Notebook",
394
402
  path: `notebooks/${e.notebookId}`
395
403
  } : e.datasetId ? {
396
- label: oe.get(e.datasetId) ?? "Dataset",
404
+ label: pe.get(e.datasetId) ?? "Dataset",
397
405
  path: `datasets/${e.datasetId}`
398
- } : null, ue = (e) => {
406
+ } : null, he = (e) => {
399
407
  let t = e.status === "PENDING" || e.status === "RUNNING";
400
- return [...X(e) ? [{
408
+ return [...Y(e) ? [{
401
409
  key: "view-results",
402
410
  label: "View results",
403
- icon: T,
404
- onSelect: () => q(e)
411
+ icon: E,
412
+ onSelect: () => $(e)
405
413
  }] : [], ...t ? [{
406
414
  key: "complete",
407
415
  label: "Complete…",
408
- icon: E,
409
- onSelect: () => y(e)
416
+ icon: D,
417
+ onSelect: () => b(e)
410
418
  }] : []];
411
- }, de = /* @__PURE__ */ w(M, {
419
+ }, ge = /* @__PURE__ */ T(j, {
412
420
  type: "button",
413
- onClick: () => _(!0),
414
- children: [/* @__PURE__ */ C(k, { className: "size-4" }), r("cosmicintersection.pages.analyses.create", "Run analysis")]
421
+ onClick: () => g(!0),
422
+ children: [/* @__PURE__ */ w(A, { className: "size-4" }), i("cosmicintersection.pages.analyses.create", "Run analysis")]
415
423
  });
416
- return /* @__PURE__ */ w(m, {
417
- title: r("cosmicintersection.pages.analyses.title", "Analyses"),
418
- description: r("cosmicintersection.pages.analyses.description", "Analysis runs executed over notebooks and federated datasets."),
419
- actions: de,
424
+ return /* @__PURE__ */ T(h, {
425
+ title: i("cosmicintersection.pages.analyses.title", "Analyses"),
426
+ description: i("cosmicintersection.pages.analyses.description", "Analysis runs executed over notebooks and federated datasets."),
427
+ actions: ge,
420
428
  children: [
421
- /* @__PURE__ */ w("div", {
429
+ /* @__PURE__ */ T("div", {
422
430
  className: "space-y-4",
423
- children: [/* @__PURE__ */ w("div", {
431
+ children: [/* @__PURE__ */ T("div", {
424
432
  className: "flex flex-wrap items-center gap-3",
425
- children: [/* @__PURE__ */ C("label", {
433
+ children: [/* @__PURE__ */ w("label", {
426
434
  className: "text-sm text-text-secondary",
427
435
  htmlFor: "analysis-status-filter",
428
436
  children: "Status"
429
- }), /* @__PURE__ */ w(H, {
430
- value: o ?? Z,
431
- onValueChange: (e) => f(e === Z ? void 0 : e),
432
- children: [/* @__PURE__ */ C(G, {
437
+ }), /* @__PURE__ */ T(B, {
438
+ value: s ?? X,
439
+ onValueChange: (e) => p(e === X ? void 0 : e),
440
+ children: [/* @__PURE__ */ w(U, {
433
441
  id: "analysis-status-filter",
434
442
  className: "w-48",
435
443
  "aria-label": "Filter by status",
436
- children: /* @__PURE__ */ C(K, {})
437
- }), /* @__PURE__ */ w(U, { children: [/* @__PURE__ */ C(W, {
438
- value: Z,
444
+ children: /* @__PURE__ */ w(W, {})
445
+ }), /* @__PURE__ */ T(V, { children: [/* @__PURE__ */ w(H, {
446
+ value: X,
439
447
  children: "All statuses"
440
- }), ae.map((e) => /* @__PURE__ */ C(W, {
448
+ }), ce.map((e) => /* @__PURE__ */ w(H, {
441
449
  value: e.value,
442
450
  children: e.label
443
451
  }, e.value))] })]
444
452
  })]
445
- }), N ? /* @__PURE__ */ C(d, {
453
+ }), M ? /* @__PURE__ */ w(f, {
446
454
  variant: "rows",
447
455
  rows: 6,
448
- label: r("cosmicintersection.pages.analyses.loading", "Loading analyses…")
449
- }) : P ? /* @__PURE__ */ C(u, {
450
- message: r("cosmicintersection.pages.analyses.error", "We could not load analyses. Please try again."),
451
- onRetry: () => void F()
452
- }) : R.length === 0 ? /* @__PURE__ */ C(l, {
453
- icon: E,
454
- title: o ? r("cosmicintersection.pages.analyses.emptyFilterTitle", "No analyses match this filter.") : r("cosmicintersection.pages.analyses.emptyTitle", "No analyses yet."),
455
- description: o ? r("cosmicintersection.pages.analyses.emptyFilterDescription", "Try a different status filter.") : r("cosmicintersection.pages.analyses.emptyDescription", "Run an analysis against a notebook or dataset to see results here."),
456
- action: o ? void 0 : /* @__PURE__ */ w(M, {
456
+ label: i("cosmicintersection.pages.analyses.loading", "Loading analyses…")
457
+ }) : re ? /* @__PURE__ */ w(d, {
458
+ message: i("cosmicintersection.pages.analyses.error", "We could not load analyses. Please try again."),
459
+ onRetry: () => void N()
460
+ }) : I.length === 0 ? /* @__PURE__ */ w(u, {
461
+ icon: D,
462
+ title: s ? i("cosmicintersection.pages.analyses.emptyFilterTitle", "No analyses match this filter.") : i("cosmicintersection.pages.analyses.emptyTitle", "No analyses yet."),
463
+ description: s ? i("cosmicintersection.pages.analyses.emptyFilterDescription", "Try a different status filter.") : i("cosmicintersection.pages.analyses.emptyDescription", "Run an analysis against a notebook or dataset to see results here."),
464
+ action: s ? void 0 : /* @__PURE__ */ T(j, {
457
465
  type: "button",
458
- onClick: () => _(!0),
459
- children: [/* @__PURE__ */ C(k, { className: "size-4" }), r("cosmicintersection.pages.analyses.create", "Run analysis")]
466
+ onClick: () => g(!0),
467
+ children: [/* @__PURE__ */ w(A, { className: "size-4" }), i("cosmicintersection.pages.analyses.create", "Run analysis")]
460
468
  })
461
- }) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
469
+ }) : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
462
470
  className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
463
- children: /* @__PURE__ */ w(ee, { children: [/* @__PURE__ */ C(ne, { children: /* @__PURE__ */ w(re, { children: [
464
- /* @__PURE__ */ C(Y, { children: "Title" }),
465
- /* @__PURE__ */ C(Y, { children: "Method" }),
466
- /* @__PURE__ */ C(Y, { children: "AI" }),
467
- /* @__PURE__ */ C(Y, { children: "Status" }),
468
- /* @__PURE__ */ C(Y, { children: "Source" }),
469
- /* @__PURE__ */ C(Y, { children: "Started" }),
470
- /* @__PURE__ */ C(Y, { children: "Finished" }),
471
- /* @__PURE__ */ C(Y, { children: "Output" }),
472
- /* @__PURE__ */ C(Y, {
471
+ children: /* @__PURE__ */ T(ie, { children: [/* @__PURE__ */ w(oe, { children: /* @__PURE__ */ T(se, { children: [
472
+ /* @__PURE__ */ w(q, { children: "Title" }),
473
+ /* @__PURE__ */ w(q, { children: "Method" }),
474
+ /* @__PURE__ */ w(q, { children: "AI" }),
475
+ /* @__PURE__ */ w(q, { children: "Status" }),
476
+ /* @__PURE__ */ w(q, { children: "Source" }),
477
+ /* @__PURE__ */ w(q, { children: "Started" }),
478
+ /* @__PURE__ */ w(q, { children: "Finished" }),
479
+ /* @__PURE__ */ w(q, { children: "Output" }),
480
+ /* @__PURE__ */ w(q, {
473
481
  className: "w-12 text-right",
474
482
  children: "Actions"
475
483
  })
476
- ] }) }), /* @__PURE__ */ C(te, { children: R.map((e) => {
477
- let n = $(e);
478
- return /* @__PURE__ */ w(re, { children: [
479
- /* @__PURE__ */ C(J, {
484
+ ] }) }), /* @__PURE__ */ w(ae, { children: I.map((e) => {
485
+ let n = me(e);
486
+ return /* @__PURE__ */ T(se, { children: [
487
+ /* @__PURE__ */ w(K, {
480
488
  className: "font-medium text-text-primary",
481
489
  children: e.title
482
490
  }),
483
- /* @__PURE__ */ C(J, {
491
+ /* @__PURE__ */ w(K, {
484
492
  className: "text-text-secondary",
485
493
  children: e.method ?? "—"
486
494
  }),
487
- /* @__PURE__ */ C(J, { children: e.aiAssisted ? /* @__PURE__ */ w(j, {
495
+ /* @__PURE__ */ w(K, { children: e.aiAssisted ? /* @__PURE__ */ T(ne, {
488
496
  variant: "secondary",
489
497
  className: "gap-1",
490
- children: [/* @__PURE__ */ C(A, {
498
+ children: [/* @__PURE__ */ w(te, {
491
499
  className: "size-3",
492
500
  "aria-hidden": "true"
493
501
  }), "AI"]
494
- }) : /* @__PURE__ */ C("span", {
502
+ }) : /* @__PURE__ */ w("span", {
495
503
  className: "text-text-secondary",
496
504
  children: "—"
497
505
  }) }),
498
- /* @__PURE__ */ C(J, { children: /* @__PURE__ */ C(h, { status: e.status }) }),
499
- /* @__PURE__ */ C(J, { children: n ? /* @__PURE__ */ w("button", {
506
+ /* @__PURE__ */ w(K, { children: /* @__PURE__ */ w(_, { status: e.status }) }),
507
+ /* @__PURE__ */ w(K, { children: n ? /* @__PURE__ */ T("button", {
500
508
  type: "button",
501
509
  onClick: () => t(n.path),
502
510
  className: "inline-flex max-w-[12rem] items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
503
- children: [/* @__PURE__ */ C(O, {
511
+ children: [/* @__PURE__ */ w(k, {
504
512
  className: "size-3.5 shrink-0",
505
513
  "aria-hidden": "true"
506
- }), /* @__PURE__ */ C("span", {
514
+ }), /* @__PURE__ */ w("span", {
507
515
  className: "truncate",
508
516
  children: n.label
509
517
  })]
510
- }) : /* @__PURE__ */ C("span", {
518
+ }) : /* @__PURE__ */ w("span", {
511
519
  className: "text-text-secondary",
512
520
  children: "—"
513
521
  }) }),
514
- /* @__PURE__ */ C(J, {
522
+ /* @__PURE__ */ w(K, {
515
523
  className: "whitespace-nowrap text-text-secondary",
516
- children: Q(e.startedAt)
524
+ children: Z(e.startedAt)
517
525
  }),
518
- /* @__PURE__ */ C(J, {
526
+ /* @__PURE__ */ w(K, {
519
527
  className: "whitespace-nowrap text-text-secondary",
520
- children: Q(e.finishedAt)
528
+ children: Z(e.finishedAt)
521
529
  }),
522
- /* @__PURE__ */ C(J, { children: X(e) ? /* @__PURE__ */ w(M, {
530
+ /* @__PURE__ */ w(K, { children: Y(e) ? /* @__PURE__ */ T(j, {
523
531
  type: "button",
524
532
  variant: "outline",
525
533
  size: "sm",
526
534
  className: "h-auto gap-1 px-2 py-1",
527
- onClick: () => q(e),
528
- children: [/* @__PURE__ */ C(T, {
535
+ onClick: () => $(e),
536
+ children: [/* @__PURE__ */ w(E, {
529
537
  className: "size-3.5",
530
538
  "aria-hidden": "true"
531
539
  }), "View"]
532
- }) : /* @__PURE__ */ C("span", {
540
+ }) : /* @__PURE__ */ w("span", {
533
541
  className: "text-text-secondary",
534
542
  children: "—"
535
543
  }) }),
536
- /* @__PURE__ */ C(J, {
544
+ /* @__PURE__ */ w(K, {
537
545
  className: "text-right",
538
- children: /* @__PURE__ */ C(c, {
546
+ children: /* @__PURE__ */ w(l, {
539
547
  ariaLabel: `Actions for ${e.title}`,
540
548
  onView: n ? () => t(n.path) : void 0,
541
- extraItems: ue(e)
549
+ extraItems: he(e)
542
550
  })
543
551
  })
544
552
  ] }, e.id);
545
553
  }) })] })
546
- }), /* @__PURE__ */ C("ul", {
554
+ }), /* @__PURE__ */ w("ul", {
547
555
  className: "space-y-3 md:hidden",
548
- children: R.map((e) => {
549
- let n = $(e), r = e.status === "PENDING" || e.status === "RUNNING";
550
- return /* @__PURE__ */ w("li", {
556
+ children: I.map((e) => {
557
+ let n = me(e), r = e.status === "PENDING" || e.status === "RUNNING";
558
+ return /* @__PURE__ */ T("li", {
551
559
  className: "space-y-3 rounded-card border border-border-default bg-bg-elevated p-4",
552
560
  children: [
553
- /* @__PURE__ */ w("div", {
561
+ /* @__PURE__ */ T("div", {
554
562
  className: "flex items-start justify-between gap-3",
555
- children: [/* @__PURE__ */ w("div", {
563
+ children: [/* @__PURE__ */ T("div", {
556
564
  className: "min-w-0",
557
- children: [/* @__PURE__ */ C("p", {
565
+ children: [/* @__PURE__ */ w("p", {
558
566
  className: "truncate font-medium text-text-primary",
559
567
  children: e.title
560
- }), e.method ? /* @__PURE__ */ C("p", {
568
+ }), e.method ? /* @__PURE__ */ w("p", {
561
569
  className: "truncate text-xs text-text-secondary",
562
570
  children: e.method
563
571
  }) : null]
564
- }), /* @__PURE__ */ C(h, { status: e.status })]
572
+ }), /* @__PURE__ */ w(_, { status: e.status })]
565
573
  }),
566
- /* @__PURE__ */ w("div", {
574
+ /* @__PURE__ */ T("div", {
567
575
  className: "flex flex-wrap items-center gap-2",
568
- children: [e.aiAssisted ? /* @__PURE__ */ w(j, {
576
+ children: [e.aiAssisted ? /* @__PURE__ */ T(ne, {
569
577
  variant: "secondary",
570
578
  className: "gap-1",
571
- children: [/* @__PURE__ */ C(A, {
579
+ children: [/* @__PURE__ */ w(te, {
572
580
  className: "size-3",
573
581
  "aria-hidden": "true"
574
582
  }), "AI"]
575
- }) : null, n ? /* @__PURE__ */ w("button", {
583
+ }) : null, n ? /* @__PURE__ */ T("button", {
576
584
  type: "button",
577
585
  onClick: () => t(n.path),
578
586
  className: "inline-flex max-w-full items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
579
- children: [/* @__PURE__ */ C(O, {
587
+ children: [/* @__PURE__ */ w(k, {
580
588
  className: "size-3.5 shrink-0",
581
589
  "aria-hidden": "true"
582
- }), /* @__PURE__ */ C("span", {
590
+ }), /* @__PURE__ */ w("span", {
583
591
  className: "truncate",
584
592
  children: n.label
585
593
  })]
586
594
  }) : null]
587
595
  }),
588
- /* @__PURE__ */ w("dl", {
596
+ /* @__PURE__ */ T("dl", {
589
597
  className: "grid grid-cols-2 gap-2 text-xs",
590
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("dt", {
598
+ children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("dt", {
591
599
  className: "text-text-secondary",
592
600
  children: "Started"
593
- }), /* @__PURE__ */ C("dd", {
601
+ }), /* @__PURE__ */ w("dd", {
594
602
  className: "text-text-primary",
595
- children: Q(e.startedAt)
596
- })] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("dt", {
603
+ children: Z(e.startedAt)
604
+ })] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("dt", {
597
605
  className: "text-text-secondary",
598
606
  children: "Finished"
599
- }), /* @__PURE__ */ C("dd", {
607
+ }), /* @__PURE__ */ w("dd", {
600
608
  className: "text-text-primary",
601
- children: Q(e.finishedAt)
609
+ children: Z(e.finishedAt)
602
610
  })] })]
603
611
  }),
604
- X(e) || r ? /* @__PURE__ */ w("div", {
612
+ Y(e) || r ? /* @__PURE__ */ T("div", {
605
613
  className: "flex flex-wrap gap-2",
606
- children: [X(e) ? /* @__PURE__ */ w(M, {
614
+ children: [Y(e) ? /* @__PURE__ */ T(j, {
607
615
  type: "button",
608
616
  variant: "outline",
609
617
  size: "sm",
610
- onClick: () => q(e),
611
- children: [/* @__PURE__ */ C(T, { className: "size-4" }), "View results"]
612
- }) : null, r ? /* @__PURE__ */ w(M, {
618
+ onClick: () => $(e),
619
+ children: [/* @__PURE__ */ w(E, { className: "size-4" }), "View results"]
620
+ }) : null, r ? /* @__PURE__ */ T(j, {
613
621
  type: "button",
614
622
  variant: "outline",
615
623
  size: "sm",
616
- onClick: () => y(e),
617
- children: [/* @__PURE__ */ C(E, { className: "size-4" }), "Complete"]
624
+ onClick: () => b(e),
625
+ children: [/* @__PURE__ */ w(D, { className: "size-4" }), "Complete"]
618
626
  }) : null]
619
627
  }) : null
620
628
  ]
@@ -622,28 +630,28 @@ function ue() {
622
630
  })
623
631
  })] })]
624
632
  }),
625
- /* @__PURE__ */ C(ce, {
626
- open: p,
627
- onOpenChange: _,
628
- onCompleted: () => void F()
633
+ /* @__PURE__ */ w(ue, {
634
+ open: m,
635
+ onOpenChange: g,
636
+ onCompleted: () => void N()
629
637
  }),
630
- /* @__PURE__ */ C(le, {
631
- analysis: v,
638
+ /* @__PURE__ */ w(de, {
639
+ analysis: y,
632
640
  onOpenChange: (e) => {
633
- e || y(null);
641
+ e || b(null);
634
642
  },
635
- onCompleted: () => void F()
636
- }, v?.id ?? "none"),
637
- /* @__PURE__ */ C(se, {
638
- analysis: V,
643
+ onCompleted: () => void N()
644
+ }, y?.id ?? "none"),
645
+ /* @__PURE__ */ w(le, {
646
+ analysis: Q,
639
647
  onOpenChange: (e) => {
640
- e || q(null);
648
+ e || $(null);
641
649
  }
642
650
  })
643
651
  ]
644
652
  });
645
653
  }
646
654
  //#endregion
647
- export { ue as default };
655
+ export { fe as default };
648
656
 
649
657
  //# sourceMappingURL=AnalysesPage.js.map