@burdenoff/microfe-cosmicintersection 2026.1108.2 → 2026.1109.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 (85) hide show
  1. package/dist/cosmicintersection/api/databricksTransport.d.ts +13 -0
  2. package/dist/cosmicintersection/api/databricksTransport.d.ts.map +1 -0
  3. package/dist/cosmicintersection/api/databricksTransport.js +38 -0
  4. package/dist/cosmicintersection/api/databricksTransport.js.map +1 -0
  5. package/dist/cosmicintersection/components/ActionMenu.js +17 -17
  6. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +13 -0
  7. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +1 -0
  8. package/dist/cosmicintersection/components/DatabricksQueueForm.js +221 -0
  9. package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -0
  10. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +6 -0
  11. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +1 -0
  12. package/dist/cosmicintersection/components/DatabricksRunPanel.js +206 -0
  13. package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -0
  14. package/dist/cosmicintersection/components/EntityFormShell.js +7 -7
  15. package/dist/cosmicintersection/components/EntityTagsField.js +8 -8
  16. package/dist/cosmicintersection/components/ErrorState.js +4 -4
  17. package/dist/cosmicintersection/components/FileUploadField.js +8 -8
  18. package/dist/cosmicintersection/components/Pagination.js +6 -6
  19. package/dist/cosmicintersection/components/ReleaseDraftDialog.js +17 -17
  20. package/dist/cosmicintersection/components/RunTriageCard.js +12 -12
  21. package/dist/cosmicintersection/components/SchemaProposalPanel.js +35 -35
  22. package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
  23. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +12 -12
  24. package/dist/cosmicintersection/components/index.js +7 -7
  25. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +2 -0
  26. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +1 -1
  27. package/dist/cosmicintersection/context/CosmicIntersectionContext.js +17 -13
  28. package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
  29. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +69 -0
  30. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +1 -0
  31. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +89 -0
  32. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -0
  33. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +59 -0
  34. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +1 -0
  35. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +158 -0
  36. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -0
  37. package/dist/cosmicintersection/lib/databricksForm.d.ts +4 -0
  38. package/dist/cosmicintersection/lib/databricksForm.d.ts.map +1 -0
  39. package/dist/cosmicintersection/lib/databricksForm.js +31 -0
  40. package/dist/cosmicintersection/lib/databricksForm.js.map +1 -0
  41. package/dist/cosmicintersection/lib/databricksIntent.d.ts +19 -0
  42. package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +1 -0
  43. package/dist/cosmicintersection/lib/databricksIntent.js +60 -0
  44. package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -0
  45. package/dist/cosmicintersection/lib/databricksPresentation.d.ts +5 -0
  46. package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +1 -0
  47. package/dist/cosmicintersection/lib/databricksPresentation.js +27 -0
  48. package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -0
  49. package/dist/cosmicintersection/pages/access/AccessPage.js +62 -62
  50. package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
  51. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +107 -107
  52. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  53. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +24 -24
  54. package/dist/cosmicintersection/pages/collections/CollectionsPage.js +12 -12
  55. package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +18 -18
  56. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +91 -91
  57. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +209 -209
  58. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
  59. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +98 -98
  60. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
  61. package/dist/cosmicintersection/pages/lineage/LineagePage.js +15 -15
  62. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +139 -139
  63. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  64. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +34 -34
  65. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +39 -39
  66. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  67. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +107 -107
  68. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
  69. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +32 -32
  70. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +213 -213
  71. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  72. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  73. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +250 -213
  74. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  75. package/dist/cosmicintersection/pages/runs/RunsPage.js +31 -31
  76. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +41 -41
  77. package/dist/cosmicintersection/pages/sources/SourcesPage.js +122 -122
  78. package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
  79. package/dist/generated/wspace-operations.d.ts +243 -0
  80. package/dist/generated/wspace-operations.d.ts.map +1 -0
  81. package/dist/generated/wspace-operations.js +1472 -0
  82. package/dist/generated/wspace-operations.js.map +1 -0
  83. package/dist/generated/wspace-types.d.ts +183281 -30204
  84. package/dist/generated/wspace-types.d.ts.map +1 -1
  85. package/package.json +10 -7
@@ -3,16 +3,16 @@ import { useCosCollectionsQuery as t, useCosDatasetsQuery as n, useCosSemanticSe
3
3
  import { useTr as ee } from "../../../shared/hooks/useTr.js";
4
4
  import { EmptyState as te } from "../../components/EmptyState.js";
5
5
  import { ErrorState as a } from "../../components/ErrorState.js";
6
- import { LoadingState as o } from "../../components/LoadingState.js";
7
- import { cn as s } from "../../utils/cn.js";
8
- import { PageLayout as ne } from "../../components/PageLayout.js";
9
- import { StatusBadge as c, formatEnumLabel as l } from "../../components/StatusBadge.js";
6
+ import { LoadingState as ne } from "../../components/LoadingState.js";
7
+ import { cn as re } from "../../utils/cn.js";
8
+ import { PageLayout as ie } from "../../components/PageLayout.js";
9
+ import { StatusBadge as o, formatEnumLabel as s } from "../../components/StatusBadge.js";
10
10
  import "../../components/index.js";
11
- import { FacetPanel as re } from "../../components/FacetPanel.js";
12
- import { useEffect as u, useMemo as d, useState as f } from "react";
13
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
14
- import { ArrowUpDown as ie, Database as ae, FileText as oe, Rows3 as se, Search as h, SlidersHorizontal as ce, Sparkles as g, Table as le, X as _ } from "lucide-react";
15
- import { Badge as v, Button as y, Input as b, Select as ue, SelectContent as de, SelectItem as fe, SelectTrigger as pe, SelectValue as me } from "@burdenoff/fe-libs/ui";
11
+ import { FacetPanel as ae } from "../../components/FacetPanel.js";
12
+ import { useEffect as oe, useMemo as c, useState as l } from "react";
13
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
14
+ import { Badge as f, Button as p, Input as m, Select as se, SelectContent as ce, SelectItem as le, SelectTrigger as ue, SelectValue as de } from "@burdenoff/fe-libs/ui";
15
+ import { ArrowUpDown as h, Database as g, FileText as _, Rows3 as fe, Search as v, SlidersHorizontal as pe, Sparkles as y, Table as me, X as b } from "lucide-react";
16
16
  //#region src/cosmicintersection/pages/discovery/DiscoveryPage.tsx
17
17
  var x = 200, he = 300, ge = [
18
18
  "PUBLIC",
@@ -45,8 +45,8 @@ function ve(e) {
45
45
  return Number.isFinite(t) && t > 0 ? `${t.toLocaleString()} rows` : "no rows";
46
46
  }
47
47
  function C() {
48
- let { navigate: C } = e(), w = ee(), [T, E] = f(""), [D, ye] = f(""), [O, k] = f({}), [A, j] = f("relevance"), [M, N] = f(!1), [P, F] = f(""), [I, L] = f(""), [be, R] = r();
49
- u(() => {
48
+ let { navigate: C } = e(), w = ee(), [T, E] = l(""), [D, ye] = l(""), [O, k] = l({}), [A, j] = l("relevance"), [M, N] = l(!1), [P, F] = l(""), [I, L] = l(""), [be, R] = r();
49
+ oe(() => {
50
50
  let e = window.setTimeout(() => ye(T.trim()), he);
51
51
  return () => window.clearTimeout(e);
52
52
  }, [T]);
@@ -59,15 +59,15 @@ function C() {
59
59
  }), B = i({ pagination: {
60
60
  limit: x,
61
61
  offset: 0
62
- } }), V = t(), H = d(() => z.data?.cosListDatasets?.items ?? [], [z.data]), xe = !!z.data?.cosListDatasets?.pageInfo?.hasMore, U = d(() => B.data?.cosListSources?.items ?? [], [B.data]), W = d(() => V.data?.cosListCollections ?? [], [V.data]), G = d(() => {
62
+ } }), V = t(), H = c(() => z.data?.cosListDatasets?.items ?? [], [z.data]), xe = !!z.data?.cosListDatasets?.pageInfo?.hasMore, U = c(() => B.data?.cosListSources?.items ?? [], [B.data]), W = c(() => V.data?.cosListCollections ?? [], [V.data]), G = c(() => {
63
63
  let e = /* @__PURE__ */ new Map();
64
64
  for (let t of U) e.set(t.id, t.type);
65
65
  return e;
66
- }, [U]), K = d(() => {
66
+ }, [U]), K = c(() => {
67
67
  let e = /* @__PURE__ */ new Map();
68
68
  for (let t of W) e.set(t.id, t.name);
69
69
  return e;
70
- }, [W]), q = d(() => {
70
+ }, [W]), q = c(() => {
71
71
  let e = O.instrument ?? [], t = O.access ?? [], n = O.format ?? [], r = O.mission ?? [];
72
72
  return {
73
73
  instrument: (t) => {
@@ -79,7 +79,7 @@ function C() {
79
79
  format: (e) => n.length === 0 || (e.format ? n.includes(e.format) : !1),
80
80
  mission: (e) => r.length === 0 || (e.collectionId ? r.includes(e.collectionId) : !1)
81
81
  };
82
- }, [O, G]), J = d(() => (e, t) => {
82
+ }, [O, G]), J = c(() => (e, t) => {
83
83
  let n = 0;
84
84
  for (let r of H) {
85
85
  let i = !0;
@@ -90,7 +90,7 @@ function C() {
90
90
  i && t(r) && (n += 1);
91
91
  }
92
92
  return n;
93
- }, [H, q]), Se = d(() => {
93
+ }, [H, q]), Se = c(() => {
94
94
  let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
95
95
  for (let r of H) {
96
96
  let i = r.sourceId ? G.get(r.sourceId) : void 0;
@@ -102,7 +102,7 @@ function C() {
102
102
  label: "Instrument",
103
103
  options: [...e].map((e) => ({
104
104
  value: e,
105
- label: l(e),
105
+ label: s(e),
106
106
  count: J("instrument", (t) => t.sourceId ? G.get(t.sourceId) === e : !1)
107
107
  })).sort((e, t) => t.count - e.count || e.label.localeCompare(t.label))
108
108
  },
@@ -111,7 +111,7 @@ function C() {
111
111
  label: "Access",
112
112
  options: ge.map((e) => ({
113
113
  value: e,
114
- label: l(e),
114
+ label: s(e),
115
115
  count: J("access", (t) => t.accessLevel === e)
116
116
  }))
117
117
  },
@@ -139,7 +139,7 @@ function C() {
139
139
  G,
140
140
  K,
141
141
  J
142
- ]), Y = d(() => {
142
+ ]), Y = c(() => {
143
143
  let e = [...H.filter((e) => q.instrument(e) && q.access(e) && q.format(e) && q.mission(e))];
144
144
  switch (A) {
145
145
  case "name":
@@ -182,32 +182,32 @@ function C() {
182
182
  case "NOTEBOOK": return `notebooks/${e.id}`;
183
183
  default: return null;
184
184
  }
185
- }, Te = z.loading && H.length === 0, Ee = z.error, De = /* @__PURE__ */ p(re, {
185
+ }, Te = z.loading && H.length === 0, Ee = z.error, De = /* @__PURE__ */ u(ae, {
186
186
  groups: Se,
187
187
  selected: O,
188
188
  onToggle: Ce,
189
189
  onClear: Z
190
190
  });
191
- return /* @__PURE__ */ p(ne, {
191
+ return /* @__PURE__ */ u(ie, {
192
192
  title: w("cosmicintersection.pages.discovery.title", "Discovery"),
193
193
  description: w("cosmicintersection.pages.discovery.description", "Search and facet the federated science catalog — full-text across datasets, refined by instrument, access, format and mission."),
194
- actions: /* @__PURE__ */ m(y, {
194
+ actions: /* @__PURE__ */ d(p, {
195
195
  type: "button",
196
196
  variant: "outline",
197
197
  onClick: () => C("datasets"),
198
- children: [/* @__PURE__ */ p(le, { className: "size-4" }), w("cosmicintersection.pages.discovery.tableView", "Table view")]
198
+ children: [/* @__PURE__ */ u(me, { className: "size-4" }), w("cosmicintersection.pages.discovery.tableView", "Table view")]
199
199
  }),
200
- children: /* @__PURE__ */ m("div", {
200
+ children: /* @__PURE__ */ d("div", {
201
201
  className: "space-y-5",
202
202
  children: [
203
- /* @__PURE__ */ m("div", {
203
+ /* @__PURE__ */ d("div", {
204
204
  className: "relative",
205
205
  children: [
206
- /* @__PURE__ */ p(h, {
206
+ /* @__PURE__ */ u(v, {
207
207
  className: "pointer-events-none absolute left-4 top-1/2 size-5 -translate-y-1/2 text-text-secondary",
208
208
  "aria-hidden": "true"
209
209
  }),
210
- /* @__PURE__ */ p(b, {
210
+ /* @__PURE__ */ u(m, {
211
211
  type: "search",
212
212
  value: T,
213
213
  onChange: (e) => E(e.target.value),
@@ -215,24 +215,24 @@ function C() {
215
215
  "aria-label": w("cosmicintersection.pages.discovery.searchAriaLabel", "Search datasets"),
216
216
  className: "h-12 rounded-card pl-12 pr-11 text-base"
217
217
  }),
218
- T ? /* @__PURE__ */ p("button", {
218
+ T ? /* @__PURE__ */ u("button", {
219
219
  type: "button",
220
220
  onClick: () => E(""),
221
221
  "aria-label": w("cosmicintersection.pages.discovery.clearSearch", "Clear search"),
222
222
  className: "absolute right-3 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded-full text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus",
223
- children: /* @__PURE__ */ p(_, { className: "size-4" })
223
+ children: /* @__PURE__ */ u(b, { className: "size-4" })
224
224
  }) : null
225
225
  ]
226
226
  }),
227
- /* @__PURE__ */ m("div", {
227
+ /* @__PURE__ */ d("div", {
228
228
  className: "flex flex-col gap-2 sm:flex-row",
229
229
  children: [
230
- /* @__PURE__ */ m("div", {
230
+ /* @__PURE__ */ d("div", {
231
231
  className: "relative flex-1",
232
- children: [/* @__PURE__ */ p(g, {
232
+ children: [/* @__PURE__ */ u(y, {
233
233
  className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
234
234
  "aria-hidden": "true"
235
- }), /* @__PURE__ */ p(b, {
235
+ }), /* @__PURE__ */ u(m, {
236
236
  type: "search",
237
237
  value: P,
238
238
  onChange: (e) => F(e.target.value),
@@ -244,34 +244,34 @@ function C() {
244
244
  className: "rounded-card pl-9"
245
245
  })]
246
246
  }),
247
- /* @__PURE__ */ m(y, {
247
+ /* @__PURE__ */ d(p, {
248
248
  type: "button",
249
249
  variant: "outline",
250
250
  onClick: Q,
251
251
  disabled: R.loading,
252
- children: [/* @__PURE__ */ p(g, { className: "size-4" }), R.loading ? w("cosmicintersection.pages.discovery.semanticSearching", "Searching…") : w("cosmicintersection.pages.discovery.semanticSearchAction", "Semantic search")]
252
+ children: [/* @__PURE__ */ u(y, { className: "size-4" }), R.loading ? w("cosmicintersection.pages.discovery.semanticSearching", "Searching…") : w("cosmicintersection.pages.discovery.semanticSearchAction", "Semantic search")]
253
253
  }),
254
- I ? /* @__PURE__ */ m(y, {
254
+ I ? /* @__PURE__ */ d(p, {
255
255
  type: "button",
256
256
  variant: "ghost",
257
257
  onClick: $,
258
- children: [/* @__PURE__ */ p(_, { className: "size-4" }), w("cosmicintersection.pages.discovery.clearSemantic", "Clear")]
258
+ children: [/* @__PURE__ */ u(b, { className: "size-4" }), w("cosmicintersection.pages.discovery.clearSemantic", "Clear")]
259
259
  }) : null
260
260
  ]
261
261
  }),
262
- R.error ? /* @__PURE__ */ p(a, {
262
+ R.error ? /* @__PURE__ */ u(a, {
263
263
  message: w("cosmicintersection.pages.discovery.semanticError", "We could not run that semantic search. Please try again."),
264
264
  onRetry: Q
265
265
  }) : null,
266
- R.data?.cosSemanticSearch && I ? /* @__PURE__ */ m("section", {
266
+ R.data?.cosSemanticSearch && I ? /* @__PURE__ */ d("section", {
267
267
  className: "space-y-3 rounded-card border border-border-default bg-bg-elevated p-4",
268
268
  children: [
269
- /* @__PURE__ */ m("div", {
269
+ /* @__PURE__ */ d("div", {
270
270
  className: "flex flex-wrap items-center justify-between gap-2",
271
- children: [/* @__PURE__ */ p("h2", {
271
+ children: [/* @__PURE__ */ u("h2", {
272
272
  className: "text-sm font-semibold text-text-primary",
273
273
  children: w("cosmicintersection.pages.discovery.semanticResultsTitle", "Semantic results for “{{query}}”", { query: I })
274
- }), /* @__PURE__ */ m("span", {
274
+ }), /* @__PURE__ */ d("span", {
275
275
  className: "text-xs text-text-tertiary",
276
276
  children: [
277
277
  R.data.cosSemanticSearch.total,
@@ -283,56 +283,56 @@ function C() {
283
283
  ]
284
284
  })]
285
285
  }),
286
- R.data.cosSemanticSearch.expandedTerms.length > 0 ? /* @__PURE__ */ p("p", {
286
+ R.data.cosSemanticSearch.expandedTerms.length > 0 ? /* @__PURE__ */ u("p", {
287
287
  className: "text-xs text-text-tertiary",
288
288
  children: w("cosmicintersection.pages.discovery.semanticExpanded", "Also searched: {{terms}}", { terms: R.data.cosSemanticSearch.expandedTerms.join(", ") })
289
289
  }) : null,
290
- R.data.cosSemanticSearch.hits.length === 0 ? /* @__PURE__ */ p("p", {
290
+ R.data.cosSemanticSearch.hits.length === 0 ? /* @__PURE__ */ u("p", {
291
291
  className: "text-sm text-text-secondary",
292
292
  children: w("cosmicintersection.pages.discovery.semanticNoHits", "Nothing in the catalog matched that question. Embargoed datasets never appear without an active grant.")
293
- }) : /* @__PURE__ */ p("ul", {
293
+ }) : /* @__PURE__ */ u("ul", {
294
294
  className: "space-y-2",
295
295
  children: R.data.cosSemanticSearch.hits.map((e) => {
296
296
  let t = we(e);
297
- return /* @__PURE__ */ m("li", {
297
+ return /* @__PURE__ */ d("li", {
298
298
  className: "rounded-card border border-border-default bg-bg-sunken p-3",
299
299
  children: [
300
- /* @__PURE__ */ m("div", {
300
+ /* @__PURE__ */ d("div", {
301
301
  className: "flex flex-wrap items-center gap-2",
302
302
  children: [
303
- /* @__PURE__ */ p(v, {
303
+ /* @__PURE__ */ u(f, {
304
304
  variant: "secondary",
305
305
  className: "text-xs",
306
- children: l(e.entityType)
306
+ children: s(e.entityType)
307
307
  }),
308
- t ? /* @__PURE__ */ p("button", {
308
+ t ? /* @__PURE__ */ u("button", {
309
309
  type: "button",
310
310
  onClick: () => C(t),
311
311
  className: "text-left text-sm font-medium text-text-link underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus",
312
312
  children: e.title
313
- }) : /* @__PURE__ */ p("span", {
313
+ }) : /* @__PURE__ */ u("span", {
314
314
  className: "text-sm font-medium text-text-primary",
315
315
  children: e.title
316
316
  }),
317
- /* @__PURE__ */ p("span", {
317
+ /* @__PURE__ */ u("span", {
318
318
  className: "text-xs tabular-nums text-text-tertiary",
319
319
  children: w("cosmicintersection.pages.discovery.semanticScore", "score {{score}}", { score: e.score.toFixed(2) })
320
320
  })
321
321
  ]
322
322
  }),
323
- e.snippet ? /* @__PURE__ */ p("p", {
323
+ e.snippet ? /* @__PURE__ */ u("p", {
324
324
  className: "mt-1 line-clamp-2 text-sm text-text-secondary",
325
325
  children: e.snippet
326
326
  }) : null,
327
- e.evidence.length > 0 ? /* @__PURE__ */ p("ul", {
327
+ e.evidence.length > 0 ? /* @__PURE__ */ u("ul", {
328
328
  className: "mt-2 space-y-0.5",
329
- children: e.evidence.slice(0, 3).map((e, t) => /* @__PURE__ */ m("li", {
329
+ children: e.evidence.slice(0, 3).map((e, t) => /* @__PURE__ */ d("li", {
330
330
  className: "text-xs text-text-tertiary",
331
331
  children: [
332
- /* @__PURE__ */ m("span", {
332
+ /* @__PURE__ */ d("span", {
333
333
  className: "font-medium text-text-secondary",
334
334
  children: [
335
- l(e.kind),
335
+ s(e.kind),
336
336
  e.label ? ` · ${e.label}` : "",
337
337
  ":"
338
338
  ]
@@ -342,7 +342,7 @@ function C() {
342
342
  ]
343
343
  }, t))
344
344
  }) : null,
345
- e.lineage.length > 0 ? /* @__PURE__ */ m("p", {
345
+ e.lineage.length > 0 ? /* @__PURE__ */ d("p", {
346
346
  className: "mt-1 text-xs text-text-tertiary",
347
347
  children: [
348
348
  w("cosmicintersection.pages.discovery.semanticLineage", "Lineage"),
@@ -357,128 +357,128 @@ function C() {
357
357
  })
358
358
  ]
359
359
  }) : null,
360
- /* @__PURE__ */ p("div", {
360
+ /* @__PURE__ */ u("div", {
361
361
  className: "flex items-center justify-between gap-3 lg:hidden",
362
- children: /* @__PURE__ */ m(y, {
362
+ children: /* @__PURE__ */ d(p, {
363
363
  type: "button",
364
364
  variant: "outline",
365
365
  onClick: () => N((e) => !e),
366
366
  "aria-expanded": M,
367
- children: [/* @__PURE__ */ p(ce, { className: "size-4" }), X > 0 ? w("cosmicintersection.pages.discovery.filtersWithCount", "Filters ({{count}})", { count: X }) : w("cosmicintersection.pages.discovery.filters", "Filters")]
367
+ children: [/* @__PURE__ */ u(pe, { className: "size-4" }), X > 0 ? w("cosmicintersection.pages.discovery.filtersWithCount", "Filters ({{count}})", { count: X }) : w("cosmicintersection.pages.discovery.filters", "Filters")]
368
368
  })
369
369
  }),
370
- /* @__PURE__ */ m("div", {
370
+ /* @__PURE__ */ d("div", {
371
371
  className: "flex flex-col gap-6 lg:flex-row",
372
- children: [/* @__PURE__ */ p("aside", {
373
- className: s("shrink-0 lg:block lg:w-60 lg:border-r lg:border-border-seam lg:pr-6", M ? "block" : "hidden"),
374
- children: /* @__PURE__ */ p("div", {
372
+ children: [/* @__PURE__ */ u("aside", {
373
+ className: re("shrink-0 lg:block lg:w-60 lg:border-r lg:border-border-seam lg:pr-6", M ? "block" : "hidden"),
374
+ children: /* @__PURE__ */ u("div", {
375
375
  className: "lg:sticky lg:top-0",
376
376
  children: De
377
377
  })
378
- }), /* @__PURE__ */ m("div", {
378
+ }), /* @__PURE__ */ d("div", {
379
379
  className: "min-w-0 flex-1 space-y-4",
380
380
  children: [
381
- /* @__PURE__ */ m("div", {
381
+ /* @__PURE__ */ d("div", {
382
382
  className: "flex flex-wrap items-center justify-between gap-3",
383
- children: [/* @__PURE__ */ m("div", {
383
+ children: [/* @__PURE__ */ d("div", {
384
384
  className: "flex items-baseline gap-2",
385
- children: [/* @__PURE__ */ p("span", {
385
+ children: [/* @__PURE__ */ u("span", {
386
386
  className: "text-lg font-semibold tabular-nums text-text-primary",
387
387
  children: Y.length
388
- }), /* @__PURE__ */ m("span", {
388
+ }), /* @__PURE__ */ d("span", {
389
389
  className: "text-sm text-text-secondary",
390
390
  children: [Y.length === 1 ? w("cosmicintersection.pages.discovery.resultCountSingular", "dataset") : w("cosmicintersection.pages.discovery.resultCountPlural", "datasets"), D ? ` ${w("cosmicintersection.pages.discovery.matching", "matching “{{q}}”", { q: D })}` : ""]
391
391
  })]
392
- }), /* @__PURE__ */ m("label", {
392
+ }), /* @__PURE__ */ d("label", {
393
393
  className: "flex items-center gap-2 text-sm",
394
- children: [/* @__PURE__ */ p(ie, {
394
+ children: [/* @__PURE__ */ u(h, {
395
395
  className: "size-4 text-text-secondary",
396
396
  "aria-hidden": "true"
397
- }), /* @__PURE__ */ m(ue, {
397
+ }), /* @__PURE__ */ d(se, {
398
398
  value: A,
399
399
  onValueChange: (e) => j(e),
400
- children: [/* @__PURE__ */ p(pe, {
400
+ children: [/* @__PURE__ */ u(ue, {
401
401
  "aria-label": w("cosmicintersection.pages.discovery.sortResults", "Sort results"),
402
402
  className: "w-48",
403
- children: /* @__PURE__ */ p(me, {})
404
- }), /* @__PURE__ */ p(de, { children: Object.keys(S).map((e) => /* @__PURE__ */ p(fe, {
403
+ children: /* @__PURE__ */ u(de, {})
404
+ }), /* @__PURE__ */ u(ce, { children: Object.keys(S).map((e) => /* @__PURE__ */ u(le, {
405
405
  value: e,
406
406
  children: S[e]
407
407
  }, e)) })]
408
408
  })]
409
409
  })]
410
410
  }),
411
- xe ? /* @__PURE__ */ p("p", {
411
+ xe ? /* @__PURE__ */ u("p", {
412
412
  className: "rounded-card border border-border-default bg-bg-sunken px-3 py-2 text-xs text-text-secondary",
413
413
  children: w("cosmicintersection.pages.discovery.poolLimitNotice", "Showing facets and results for the first {{limit}} matches. Refine your search to narrow the set.", { limit: x })
414
414
  }) : null,
415
- Te ? /* @__PURE__ */ p(o, {
415
+ Te ? /* @__PURE__ */ u(ne, {
416
416
  variant: "rows",
417
417
  rows: 6,
418
418
  label: w("cosmicintersection.pages.discovery.loading", "Searching the catalog…")
419
- }) : Ee ? /* @__PURE__ */ p(a, {
419
+ }) : Ee ? /* @__PURE__ */ u(a, {
420
420
  message: w("cosmicintersection.pages.discovery.error", "We could not run that search. Please try again."),
421
421
  onRetry: () => void z.refetch()
422
- }) : Y.length === 0 ? /* @__PURE__ */ p(te, {
423
- icon: h,
422
+ }) : Y.length === 0 ? /* @__PURE__ */ u(te, {
423
+ icon: v,
424
424
  title: D || X > 0 ? w("cosmicintersection.pages.discovery.noDatasetsMatch", "No datasets match") : w("cosmicintersection.pages.discovery.startExploring", "Start exploring"),
425
425
  description: D || X > 0 ? w("cosmicintersection.pages.discovery.noDatasetsMatchDescription", "Try a broader search term or clear some facets.") : w("cosmicintersection.pages.discovery.startExploringDescription", "Search by name, description or tag, or pick a facet to browse the catalog."),
426
- action: X > 0 ? /* @__PURE__ */ p(y, {
426
+ action: X > 0 ? /* @__PURE__ */ u(p, {
427
427
  type: "button",
428
428
  variant: "outline",
429
429
  onClick: Z,
430
430
  children: w("cosmicintersection.pages.discovery.clearFilters", "Clear filters")
431
431
  }) : void 0
432
- }) : /* @__PURE__ */ p("div", {
432
+ }) : /* @__PURE__ */ u("div", {
433
433
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3",
434
- children: Y.map((e) => /* @__PURE__ */ m("button", {
434
+ children: Y.map((e) => /* @__PURE__ */ d("button", {
435
435
  type: "button",
436
436
  onClick: () => C(`datasets/${e.id}`),
437
437
  className: "group flex flex-col overflow-hidden rounded-card border border-border-default bg-bg-elevated text-left outline-none transition-colors hover:border-border-strong hover:bg-bg-sunken focus-visible:ring-2 focus-visible:ring-border-focus",
438
- children: [/* @__PURE__ */ p("div", { className: "h-1 w-full bg-gradient-to-r from-accent-blue via-accent-purple to-accent-teal" }), /* @__PURE__ */ m("div", {
438
+ children: [/* @__PURE__ */ u("div", { className: "h-1 w-full bg-gradient-to-r from-accent-blue via-accent-purple to-accent-teal" }), /* @__PURE__ */ d("div", {
439
439
  className: "flex flex-1 flex-col gap-3 p-4",
440
440
  children: [
441
- /* @__PURE__ */ p("h3", {
441
+ /* @__PURE__ */ u("h3", {
442
442
  className: "line-clamp-2 text-sm font-semibold text-text-primary",
443
443
  children: e.name
444
444
  }),
445
- /* @__PURE__ */ m("div", {
445
+ /* @__PURE__ */ d("div", {
446
446
  className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-text-secondary",
447
447
  children: [
448
- /* @__PURE__ */ m("span", {
448
+ /* @__PURE__ */ d("span", {
449
449
  className: "inline-flex items-center gap-1",
450
- children: [/* @__PURE__ */ p(oe, {
450
+ children: [/* @__PURE__ */ u(_, {
451
451
  className: "size-3.5",
452
452
  "aria-hidden": "true"
453
453
  }), e.format || "No format"]
454
454
  }),
455
- /* @__PURE__ */ m("span", {
455
+ /* @__PURE__ */ d("span", {
456
456
  className: "inline-flex items-center gap-1",
457
- children: [/* @__PURE__ */ p(ae, {
457
+ children: [/* @__PURE__ */ u(g, {
458
458
  className: "size-3.5",
459
459
  "aria-hidden": "true"
460
460
  }), _e(e.sizeBytes)]
461
461
  }),
462
- /* @__PURE__ */ m("span", {
462
+ /* @__PURE__ */ d("span", {
463
463
  className: "inline-flex items-center gap-1",
464
- children: [/* @__PURE__ */ p(se, {
464
+ children: [/* @__PURE__ */ u(fe, {
465
465
  className: "size-3.5",
466
466
  "aria-hidden": "true"
467
467
  }), ve(e.rowCount)]
468
468
  })
469
469
  ]
470
470
  }),
471
- /* @__PURE__ */ m("div", {
471
+ /* @__PURE__ */ d("div", {
472
472
  className: "flex flex-wrap items-center gap-1.5",
473
- children: [/* @__PURE__ */ p(c, { status: e.status }), /* @__PURE__ */ p(c, { status: e.accessLevel })]
473
+ children: [/* @__PURE__ */ u(o, { status: e.status }), /* @__PURE__ */ u(o, { status: e.accessLevel })]
474
474
  }),
475
- e.tags.length > 0 ? /* @__PURE__ */ m("div", {
475
+ e.tags.length > 0 ? /* @__PURE__ */ d("div", {
476
476
  className: "mt-auto flex flex-wrap gap-1 pt-1",
477
- children: [e.tags.slice(0, 3).map((e) => /* @__PURE__ */ p(v, {
477
+ children: [e.tags.slice(0, 3).map((e) => /* @__PURE__ */ u(f, {
478
478
  variant: "secondary",
479
479
  className: "text-xs",
480
480
  children: e
481
- }, e)), e.tags.length > 3 ? /* @__PURE__ */ m("span", {
481
+ }, e)), e.tags.length > 3 ? /* @__PURE__ */ d("span", {
482
482
  className: "text-xs text-text-secondary",
483
483
  children: ["+", e.tags.length - 3]
484
484
  }) : null]