@burdenoff/microfe-bigconsole 2026.1123.6 → 2026.1124.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 (88) hide show
  1. package/dist/bigconsole/asof/AsOfControl.js +2 -2
  2. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
  3. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
  4. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
  5. package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
  6. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
  7. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
  8. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  9. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
  10. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
  11. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
  12. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
  13. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  14. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
  15. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
  16. package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
  17. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
  18. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
  19. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
  20. package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
  21. package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
  22. package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
  23. package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
  24. package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
  25. package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
  26. package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
  27. package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
  28. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  29. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  30. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  31. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  32. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  33. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  34. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  35. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  36. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  37. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  38. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  39. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  40. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  41. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  42. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  43. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  44. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  45. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  46. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  47. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  48. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  49. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  50. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  51. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  52. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  53. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  54. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  56. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  57. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  58. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  59. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  60. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  61. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  62. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  63. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  64. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  65. package/dist/bigconsole/pages/AdminPage.js +147 -146
  66. package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
  67. package/dist/bigconsole/pages/DashboardsPage.js +638 -855
  68. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  69. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  70. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  71. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  72. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  73. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  74. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  75. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  76. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  77. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  78. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  79. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  80. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  81. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  82. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  83. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  84. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  85. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  86. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  87. package/dist/bigconsole/utils/statusTone.js +44 -0
  88. package/package.json +4 -4
@@ -14,72 +14,72 @@ import { memo as c, useCallback as l, useEffect as ce, useId as le, useMemo as u
14
14
  import { useParams as ue, useSearchParams as de } from "react-router";
15
15
  import { AccessDenied as fe } from "@burdenoff/fe-libs/shared/components";
16
16
  import { usePermissions as pe } from "@burdenoff/fe-libs/shared/providers/shell";
17
- import { Button as f, IllustratedEmptyState as me, PagePurpose as he, Spinner as ge } from "@burdenoff/fe-libs/ui";
17
+ import { Button as f, IllustratedEmptyState as me, PagePurpose as he, Spinner as ge, ThemedSelect as p } from "@burdenoff/fe-libs/ui";
18
18
  import { useUnsavedChanges as _e } from "@burdenoff/fe-libs/shared/hooks";
19
19
  import { useI18n as ve } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
20
- import { Fragment as ye, jsx as p, jsxs as m } from "react/jsx-runtime";
20
+ import { Fragment as ye, jsx as m, jsxs as h } from "react/jsx-runtime";
21
21
  // src/bigconsole/pages/PipelineBuilderPage.tsx
22
- var h = "min-h-[var(--size-controlHeight-md)]", g = "mb-1 block text-sm font-medium text-text-primary", _ = "mt-1 text-xs text-text-secondary", be = "mb-1 text-xs font-semibold uppercase tracking-wide text-text-muted", v = `w-full min-w-0 rounded-input border border-[var(--color-border-subtle)] bg-bg-canvas px-3 py-2 text-sm text-text-primary ${n}`, y = `${v} font-mono`, b = `inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-button text-text-secondary motion-safe:transition-colors disabled:opacity-30 ${n}`, x = `${b} hover:bg-bg-surface hover:text-text-primary`, xe = `${b} hover:bg-[var(--color-status-error-bgSubtle)] hover:text-status-error-text`, Se = ({ className: e }) => /* @__PURE__ */ p("svg", {
22
+ var g = "min-h-[var(--size-controlHeight-md)]", _ = "mb-1 block text-sm font-medium text-text-primary", v = "mt-1 text-xs text-text-secondary", be = "mb-1 text-xs font-semibold uppercase tracking-wide text-text-muted", y = `w-full min-w-0 rounded-input border border-[var(--color-border-subtle)] bg-bg-canvas px-3 py-2 text-sm text-text-primary ${n}`, b = `${y} font-mono`, x = `inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-button text-text-secondary motion-safe:transition-colors disabled:opacity-30 ${n}`, S = `${x} hover:bg-bg-surface hover:text-text-primary`, xe = `${x} hover:bg-[var(--color-status-error-bgSubtle)] hover:text-status-error-text`, Se = ({ className: e }) => /* @__PURE__ */ m("svg", {
23
23
  className: e,
24
24
  fill: "none",
25
25
  stroke: "currentColor",
26
26
  viewBox: "0 0 24 24",
27
- children: /* @__PURE__ */ p("path", {
27
+ children: /* @__PURE__ */ m("path", {
28
28
  strokeLinecap: "round",
29
29
  strokeLinejoin: "round",
30
30
  strokeWidth: 2,
31
31
  d: "M10 19l-7-7m0 0l7-7m-7 7h18"
32
32
  })
33
- }), S = ({ className: e }) => /* @__PURE__ */ p("svg", {
33
+ }), C = ({ className: e }) => /* @__PURE__ */ m("svg", {
34
34
  className: e,
35
35
  fill: "none",
36
36
  stroke: "currentColor",
37
37
  viewBox: "0 0 24 24",
38
- children: /* @__PURE__ */ p("path", {
38
+ children: /* @__PURE__ */ m("path", {
39
39
  strokeLinecap: "round",
40
40
  strokeLinejoin: "round",
41
41
  strokeWidth: 2,
42
42
  d: "M12 4v16m8-8H4"
43
43
  })
44
- }), Ce = ({ className: e }) => /* @__PURE__ */ p("svg", {
44
+ }), Ce = ({ className: e }) => /* @__PURE__ */ m("svg", {
45
45
  className: e,
46
46
  fill: "none",
47
47
  stroke: "currentColor",
48
48
  viewBox: "0 0 24 24",
49
- children: /* @__PURE__ */ p("path", {
49
+ children: /* @__PURE__ */ m("path", {
50
50
  strokeLinecap: "round",
51
51
  strokeLinejoin: "round",
52
52
  strokeWidth: 2,
53
53
  d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
54
54
  })
55
- }), we = ({ className: e }) => /* @__PURE__ */ p("svg", {
55
+ }), we = ({ className: e }) => /* @__PURE__ */ m("svg", {
56
56
  className: e,
57
57
  fill: "none",
58
58
  stroke: "currentColor",
59
59
  viewBox: "0 0 24 24",
60
- children: /* @__PURE__ */ p("path", {
60
+ children: /* @__PURE__ */ m("path", {
61
61
  strokeLinecap: "round",
62
62
  strokeLinejoin: "round",
63
63
  strokeWidth: 2,
64
64
  d: "M5 15l7-7 7 7"
65
65
  })
66
- }), Te = ({ className: e }) => /* @__PURE__ */ p("svg", {
66
+ }), Te = ({ className: e }) => /* @__PURE__ */ m("svg", {
67
67
  className: e,
68
68
  fill: "none",
69
69
  stroke: "currentColor",
70
70
  viewBox: "0 0 24 24",
71
- children: /* @__PURE__ */ p("path", {
71
+ children: /* @__PURE__ */ m("path", {
72
72
  strokeLinecap: "round",
73
73
  strokeLinejoin: "round",
74
74
  strokeWidth: 2,
75
75
  d: "M19 9l-7 7-7-7"
76
76
  })
77
- }), C = ({ className: e }) => /* @__PURE__ */ p("svg", {
77
+ }), w = ({ className: e }) => /* @__PURE__ */ m("svg", {
78
78
  className: e,
79
79
  fill: "none",
80
80
  stroke: "currentColor",
81
81
  viewBox: "0 0 24 24",
82
- children: /* @__PURE__ */ p("path", {
82
+ children: /* @__PURE__ */ m("path", {
83
83
  strokeLinecap: "round",
84
84
  strokeLinejoin: "round",
85
85
  strokeWidth: 2,
@@ -98,7 +98,7 @@ var h = "min-h-[var(--size-controlHeight-md)]", g = "mb-1 block text-sm font-med
98
98
  value: "inactive",
99
99
  label: "Inactive"
100
100
  }
101
- ], w = [
101
+ ], T = [
102
102
  {
103
103
  value: "fail",
104
104
  label: "Fail",
@@ -125,8 +125,8 @@ var h = "min-h-[var(--size-controlHeight-md)]", g = "mb-1 block text-sm font-med
125
125
  fallbackValue: "",
126
126
  description: "",
127
127
  expression: ""
128
- }, T = c(function() {
129
- let { t: o } = ve(), { pipelineId: c } = ue(), b = e(), T = !!c && c !== "new", [E, Oe] = de(), [D, ke] = d(null), O = T ? D ?? "default" : E.get("consoleId") || "default", k = le(), { hasPermission: A, isLoading: Ae } = pe(), je = A(a.PIPELINE_READ), Me = A(a.PIPELINE_CREATE), Ne = A(a.PIPELINE_UPDATE), j = T ? Ne : Me, [M, Pe] = d(""), [N, P] = d(""), [F, I] = d("draft"), [L, R] = d([]), [z, Fe] = d(1), [B, V] = d(!1), [Ie, H] = d(null), [U, W] = d(T ? null : {
128
+ }, E = c(function() {
129
+ let { t: o } = ve(), { pipelineId: c } = ue(), x = e(), E = !!c && c !== "new", [D, Oe] = de(), [O, ke] = d(null), k = E ? O ?? "default" : D.get("consoleId") || "default", A = le(), { hasPermission: j, isLoading: Ae } = pe(), je = j(a.PIPELINE_READ), Me = j(a.PIPELINE_CREATE), Ne = j(a.PIPELINE_UPDATE), M = E ? Ne : Me, [N, P] = d(""), [F, I] = d(""), [L, R] = d("draft"), [z, B] = d([]), [V, Pe] = d(1), [H, U] = d(!1), [Fe, W] = d(null), [G, K] = d(E ? null : {
130
130
  owner: null,
131
131
  values: [
132
132
  "",
@@ -135,33 +135,33 @@ var h = "min-h-[var(--size-controlHeight-md)]", g = "mb-1 block text-sm font-med
135
135
  [],
136
136
  1
137
137
  ]
138
- }), G = U && (!T || U.owner === c) ? U.values : null;
138
+ }), q = G && (!E || G.owner === c) ? G.values : null;
139
139
  _e({
140
140
  id: "pipeline-editor",
141
141
  label: o("bigconsole.assistant.unsaved.pipelineEditor", "the pipeline editor"),
142
142
  dirty: ee([
143
- M,
144
143
  N,
145
144
  F,
146
145
  L,
147
- z
148
- ], G)
146
+ z,
147
+ V
148
+ ], q)
149
149
  });
150
- let { loading: Le, error: K, fetchPipeline: q, createPipeline: J, updatePipeline: Re } = te({
151
- consoleId: O,
150
+ let { loading: Ie, error: J, fetchPipeline: Le, createPipeline: Re, updatePipeline: ze } = te({
151
+ consoleId: k,
152
152
  skipFetch: !0
153
153
  }), { parsers: Y } = ne({
154
- consoleId: O,
155
- skipFetch: T && !D
154
+ consoleId: k,
155
+ skipFetch: E && !O
156
156
  });
157
157
  ce(() => {
158
- if (!T || !c) return;
158
+ if (!E || !c) return;
159
159
  let e = !0;
160
- return q(c).then((t) => {
160
+ return Le(c).then((t) => {
161
161
  if (e && t) {
162
- ke(t.consoleId), Pe(t.name), P(t.description || ""), I(t.status), Fe(t.version);
162
+ ke(t.consoleId), P(t.name), I(t.description || ""), R(t.status), Pe(t.version);
163
163
  let e = oe(t.stages);
164
- R(e), W({
164
+ B(e), K({
165
165
  owner: c,
166
166
  values: [
167
167
  t.name,
@@ -176,375 +176,378 @@ var h = "min-h-[var(--size-controlHeight-md)]", g = "mb-1 block text-sm font-med
176
176
  e = !1;
177
177
  };
178
178
  }, [
179
- T,
179
+ E,
180
180
  c,
181
- q
181
+ Le
182
182
  ]);
183
- let ze = {
183
+ let Be = {
184
184
  draft: o("bigconsole.pipelines.builder.status.draft", "Draft"),
185
185
  active: o("bigconsole.pipelines.builder.status.active", "Active"),
186
186
  inactive: o("bigconsole.pipelines.builder.status.inactive", "Inactive"),
187
187
  error: o("bigconsole.pipelines.builder.status.error", "Error")
188
- }, Be = {
188
+ }, Ve = {
189
189
  fail: o("bigconsole.pipelines.builder.onError.fail", "Fail"),
190
190
  skip: o("bigconsole.pipelines.builder.onError.skip", "Skip"),
191
191
  fallback: o("bigconsole.pipelines.builder.onError.fallback", "Fallback")
192
- }, X = u(() => !M.trim() || L.length === 0 ? !1 : L.every(s), [M, L]), Ve = u(() => M.trim() ? L.length === 0 ? "Add at least one stage to save this pipeline." : L.every(s) ? null : "Every stage needs a parser, an input key and an output key." : "Give the pipeline a name to save it.", [M, L]), Z = l(() => {
193
- b(`/pipelines?consoleId=${encodeURIComponent(O)}`);
194
- }, [b, O]), He = l(() => {
195
- R((e) => [...e, {
192
+ }, X = u(() => !N.trim() || z.length === 0 ? !1 : z.every(s), [N, z]), He = u(() => N.trim() ? z.length === 0 ? "Add at least one stage to save this pipeline." : z.every(s) ? null : "Every stage needs a parser, an input key and an output key." : "Give the pipeline a name to save it.", [N, z]), Z = l(() => {
193
+ x(`/pipelines?consoleId=${encodeURIComponent(k)}`);
194
+ }, [x, k]), Ue = l(() => {
195
+ B((e) => [...e, {
196
196
  ...De,
197
197
  inputKey: ie(e.length)
198
198
  }]);
199
- }, []), Ue = l((e) => {
200
- R((t) => t.filter((t, n) => n !== e));
201
- }, []), We = l((e, t) => {
202
- R((n) => {
199
+ }, []), We = l((e) => {
200
+ B((t) => t.filter((t, n) => n !== e));
201
+ }, []), Ge = l((e, t) => {
202
+ B((n) => {
203
203
  let r = [...n], i = t === "up" ? e - 1 : e + 1;
204
204
  return i < 0 || i >= r.length ? n : ([r[e], r[i]] = [r[i], r[e]], r);
205
205
  });
206
206
  }, []), Q = l((e, t) => {
207
- R((n) => n.map((n, r) => r === e ? {
207
+ B((n) => n.map((n, r) => r === e ? {
208
208
  ...n,
209
209
  ...t
210
210
  } : n));
211
- }, []), Ge = l((e, t) => {
211
+ }, []), Ke = l((e, t) => {
212
212
  let n = Y.find((e) => e.id === t);
213
213
  n && Q(e, {
214
214
  parserId: n.id,
215
215
  parserName: n.name,
216
216
  parserType: n.type
217
217
  });
218
- }, [Y, Q]), Ke = l(async () => {
219
- if (X && O && j) {
220
- V(!0), H(null);
218
+ }, [Y, Q]), qe = l(async () => {
219
+ if (X && k && M) {
220
+ U(!0), W(null);
221
221
  try {
222
- let e = ae(L);
223
- if (T && c) await Re(c, {
224
- name: M,
225
- description: N || void 0,
226
- status: F,
222
+ let e = ae(z);
223
+ if (E && c) await ze(c, {
224
+ name: N,
225
+ description: F || void 0,
226
+ status: L,
227
227
  stages: e
228
- }, z) && (W({
228
+ }, V) && (K({
229
229
  owner: c,
230
230
  values: [
231
- M,
232
231
  N,
233
232
  F,
234
233
  L,
235
- z
234
+ z,
235
+ V
236
236
  ]
237
- }), b(`/pipelines/${c}`));
237
+ }), x(`/pipelines/${c}`));
238
238
  else {
239
- let t = await J({
240
- consoleId: O,
241
- name: M,
242
- description: N || void 0,
243
- status: F,
239
+ let t = await Re({
240
+ consoleId: k,
241
+ name: N,
242
+ description: F || void 0,
243
+ status: L,
244
244
  stages: e
245
245
  });
246
- t && (W({
246
+ t && (K({
247
247
  owner: null,
248
248
  values: [
249
- M,
250
249
  N,
251
250
  F,
252
251
  L,
253
- z
252
+ z,
253
+ V
254
254
  ]
255
- }), b(`/pipelines/${t.id}`));
255
+ }), x(`/pipelines/${t.id}`));
256
256
  }
257
257
  } catch (e) {
258
- H(e instanceof Error ? e.message : o("bigconsole.pipelines.builder.errors.saveFailed", "Failed to save pipeline"));
258
+ W(e instanceof Error ? e.message : o("bigconsole.pipelines.builder.errors.saveFailed", "Failed to save pipeline"));
259
259
  } finally {
260
- V(!1);
260
+ U(!1);
261
261
  }
262
262
  }
263
263
  }, [
264
264
  X,
265
- O,
266
- j,
267
- T,
268
- c,
265
+ k,
269
266
  M,
267
+ E,
268
+ c,
270
269
  N,
271
270
  F,
272
271
  L,
273
272
  z,
274
- J,
273
+ V,
275
274
  Re,
276
- b,
275
+ ze,
276
+ x,
277
277
  o
278
278
  ]);
279
- if (Le && T && G === null) return /* @__PURE__ */ p("div", {
279
+ if (Ie && E && q === null) return /* @__PURE__ */ m("div", {
280
280
  className: "p-card-padding",
281
- children: /* @__PURE__ */ m("div", {
281
+ children: /* @__PURE__ */ h("div", {
282
282
  className: "flex flex-col items-center justify-center py-16",
283
283
  role: "status",
284
- children: [/* @__PURE__ */ p(ge, { style: {
284
+ children: [/* @__PURE__ */ m(ge, { style: {
285
285
  height: "var(--size-icon-xl)",
286
286
  width: "var(--size-icon-xl)"
287
- } }), /* @__PURE__ */ p("p", {
287
+ } }), /* @__PURE__ */ m("p", {
288
288
  className: "mt-form-gap text-sm text-text-secondary",
289
289
  children: o("bigconsole.pipelines.builder.loading", "Loading Pipeline...")
290
290
  })]
291
291
  })
292
292
  });
293
- if (T && !Ae && !je) return /* @__PURE__ */ p(fe, {
293
+ if (E && !Ae && !je) return /* @__PURE__ */ m(fe, {
294
294
  title: o("bigconsole.pipelines.builder.accessDenied.title", "Access Denied"),
295
295
  description: o("bigconsole.pipelines.builder.accessDenied.description", "You don't have permission to view this pipeline.")
296
296
  });
297
- let qe = !!K && T && G === null, $ = Ie ?? (K && !qe ? K.message : null);
298
- return K && qe ? /* @__PURE__ */ p("div", {
297
+ let Je = !!J && E && q === null, $ = Fe ?? (J && !Je ? J.message : null);
298
+ return J && Je ? /* @__PURE__ */ m("div", {
299
299
  className: "p-card-padding",
300
- children: /* @__PURE__ */ p(r, {
300
+ children: /* @__PURE__ */ m(r, {
301
301
  tone: "danger",
302
302
  headingLevel: 2,
303
303
  title: o("bigconsole.pipelines.builder.errors.loadFailed", "Failed to load Pipeline"),
304
- description: K.message,
305
- icon: /* @__PURE__ */ p(C, { className: "h-icon-sm w-icon-sm" }),
306
- actions: /* @__PURE__ */ p(f, {
304
+ description: J.message,
305
+ icon: /* @__PURE__ */ m(w, { className: "h-icon-sm w-icon-sm" }),
306
+ actions: /* @__PURE__ */ m(f, {
307
307
  onClick: Z,
308
- className: h,
308
+ className: g,
309
309
  children: o("bigconsole.pipelines.builder.actions.backToPipelines", "Back to Pipelines")
310
310
  }),
311
311
  "data-testid": "pipeline-builder-error",
312
- children: /* @__PURE__ */ p("p", {
312
+ children: /* @__PURE__ */ m("p", {
313
313
  className: "text-sm text-text-secondary",
314
314
  children: "The pipeline could not be read from the console service. Nothing was changed."
315
315
  })
316
316
  })
317
- }) : /* @__PURE__ */ p("div", {
317
+ }) : /* @__PURE__ */ m("div", {
318
318
  className: "p-card-padding",
319
- children: /* @__PURE__ */ m(i, { children: [
320
- /* @__PURE__ */ m("header", {
319
+ children: /* @__PURE__ */ h(i, { children: [
320
+ /* @__PURE__ */ h("header", {
321
321
  className: "flex flex-col gap-form-gap sm:flex-row sm:items-start sm:justify-between",
322
- children: [/* @__PURE__ */ m("div", {
322
+ children: [/* @__PURE__ */ h("div", {
323
323
  className: "flex min-w-0 flex-col gap-control-gap",
324
- children: [/* @__PURE__ */ m(f, {
324
+ children: [/* @__PURE__ */ h(f, {
325
325
  variant: "ghost",
326
326
  size: "sm",
327
327
  onClick: Z,
328
328
  className: "w-fit",
329
- children: [/* @__PURE__ */ p(Se, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.actions.backToPipelines", "Back to Pipelines")]
330
- }), /* @__PURE__ */ m("div", {
329
+ children: [/* @__PURE__ */ m(Se, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.actions.backToPipelines", "Back to Pipelines")]
330
+ }), /* @__PURE__ */ h("div", {
331
331
  className: "min-w-0",
332
- children: [/* @__PURE__ */ p("h1", {
332
+ children: [/* @__PURE__ */ m("h1", {
333
333
  className: "text-2xl font-bold leading-tight text-text-primary",
334
- children: T ? o("bigconsole.pipelines.builder.header.editTitle", "Edit Pipeline") : o("bigconsole.pipelines.builder.header.createTitle", "Create Pipeline")
335
- }), /* @__PURE__ */ p("p", {
334
+ children: E ? o("bigconsole.pipelines.builder.header.editTitle", "Edit Pipeline") : o("bigconsole.pipelines.builder.header.createTitle", "Create Pipeline")
335
+ }), /* @__PURE__ */ m("p", {
336
336
  className: "mt-1 text-sm text-text-secondary",
337
- children: T ? o("bigconsole.pipelines.builder.header.editSubtitle", "Update pipeline settings and stages") : o("bigconsole.pipelines.builder.header.createSubtitle", "Create a new data transformation pipeline")
337
+ children: E ? o("bigconsole.pipelines.builder.header.editSubtitle", "Update pipeline settings and stages") : o("bigconsole.pipelines.builder.header.createSubtitle", "Create a new data transformation pipeline")
338
338
  })]
339
339
  })]
340
- }), /* @__PURE__ */ m("div", {
340
+ }), /* @__PURE__ */ h("div", {
341
341
  className: "flex flex-col gap-1 sm:items-end",
342
- children: [/* @__PURE__ */ m("div", {
342
+ children: [/* @__PURE__ */ h("div", {
343
343
  className: "flex flex-wrap items-center gap-control-gap",
344
- children: [/* @__PURE__ */ p(f, {
344
+ children: [/* @__PURE__ */ m(f, {
345
345
  variant: "secondary",
346
346
  onClick: Z,
347
- className: h,
347
+ className: g,
348
348
  children: o("bigconsole.pipelines.builder.actions.cancel", "Cancel")
349
- }), /* @__PURE__ */ p(f, {
350
- onClick: Ke,
351
- disabled: !X || B || !j,
352
- title: j ? void 0 : T ? o("bigconsole.pipelines.builder.actions.noUpdatePermission", "You don't have permission to update pipelines.") : o("bigconsole.pipelines.builder.actions.noCreatePermission", "You don't have permission to create pipelines."),
353
- className: h,
354
- children: B ? o("bigconsole.pipelines.builder.actions.saving", "Saving...") : T ? o("bigconsole.pipelines.builder.actions.saveChanges", "Save Changes") : o("bigconsole.pipelines.builder.actions.createPipeline", "Create Pipeline")
349
+ }), /* @__PURE__ */ m(f, {
350
+ onClick: qe,
351
+ disabled: !X || H || !M,
352
+ title: M ? void 0 : E ? o("bigconsole.pipelines.builder.actions.noUpdatePermission", "You don't have permission to update pipelines.") : o("bigconsole.pipelines.builder.actions.noCreatePermission", "You don't have permission to create pipelines."),
353
+ className: g,
354
+ children: H ? o("bigconsole.pipelines.builder.actions.saving", "Saving...") : E ? o("bigconsole.pipelines.builder.actions.saveChanges", "Save Changes") : o("bigconsole.pipelines.builder.actions.createPipeline", "Create Pipeline")
355
355
  })]
356
- }), Ve && /* @__PURE__ */ p("p", {
356
+ }), He && /* @__PURE__ */ m("p", {
357
357
  className: "text-xs text-text-secondary sm:text-right",
358
358
  "data-testid": "pipeline-save-blocked-reason",
359
- children: Ve
359
+ children: He
360
360
  })]
361
361
  })]
362
362
  }),
363
- /* @__PURE__ */ p(he, {
363
+ /* @__PURE__ */ m(he, {
364
364
  className: "max-w-[75ch]",
365
365
  children: o("bigconsole.pipelines.builder.header.purpose", "Build a pipeline by chaining parser stages — each stage reads an input key, runs a parser, and writes a structured output key that the next stage (or a data sink) can use. Name it, add your stages in order, then test it before saving so your data flows end to end.")
366
366
  }),
367
- $ && /* @__PURE__ */ p(r, {
367
+ $ && /* @__PURE__ */ m(r, {
368
368
  tone: "danger",
369
369
  headingLevel: 2,
370
370
  title: o("bigconsole.pipelines.builder.errors.saveFailed", "Failed to save pipeline"),
371
371
  description: $,
372
- icon: /* @__PURE__ */ p(C, { className: "h-icon-sm w-icon-sm" }),
372
+ icon: /* @__PURE__ */ m(w, { className: "h-icon-sm w-icon-sm" }),
373
373
  "data-testid": "pipeline-save-error"
374
374
  }),
375
- /* @__PURE__ */ m("div", {
375
+ /* @__PURE__ */ h("div", {
376
376
  className: "grid grid-cols-1 gap-section-gap lg:grid-cols-3",
377
- children: [/* @__PURE__ */ p("div", {
377
+ children: [/* @__PURE__ */ m("div", {
378
378
  className: "min-w-0 lg:col-span-2",
379
- children: /* @__PURE__ */ m(i, { children: [/* @__PURE__ */ p(r, {
379
+ children: /* @__PURE__ */ h(i, { children: [/* @__PURE__ */ m(r, {
380
380
  headingLevel: 2,
381
381
  title: o("bigconsole.pipelines.builder.basicInfo.heading", "Basic Information"),
382
382
  description: "How this pipeline is identified, and whether it runs.",
383
383
  "data-testid": "pipeline-basic-info",
384
- children: /* @__PURE__ */ m("div", {
384
+ children: /* @__PURE__ */ h("div", {
385
385
  className: "flex flex-col gap-form-gap",
386
386
  children: [
387
- /* @__PURE__ */ p(t, {
388
- value: O,
389
- disabled: T,
387
+ /* @__PURE__ */ m(t, {
388
+ value: k,
389
+ disabled: E,
390
390
  onChange: (e) => {
391
- Oe(se(E, e));
391
+ Oe(se(D, e));
392
392
  }
393
393
  }),
394
- /* @__PURE__ */ m("div", {
394
+ /* @__PURE__ */ h("div", {
395
395
  className: "min-w-0",
396
- children: [/* @__PURE__ */ m("label", {
397
- htmlFor: `${k}-name`,
398
- className: g,
396
+ children: [/* @__PURE__ */ h("label", {
397
+ htmlFor: `${A}-name`,
398
+ className: _,
399
399
  children: [
400
400
  o("bigconsole.pipelines.builder.basicInfo.nameLabel", "Name"),
401
401
  " ",
402
- /* @__PURE__ */ p("span", {
402
+ /* @__PURE__ */ m("span", {
403
403
  className: "text-status-error-text",
404
404
  children: "*"
405
405
  })
406
406
  ]
407
- }), /* @__PURE__ */ p("input", {
408
- id: `${k}-name`,
407
+ }), /* @__PURE__ */ m("input", {
408
+ id: `${A}-name`,
409
409
  type: "text",
410
- value: M,
411
- onChange: (e) => Pe(e.target.value),
410
+ value: N,
411
+ onChange: (e) => P(e.target.value),
412
412
  placeholder: o("bigconsole.pipelines.builder.basicInfo.namePlaceholder", "My Pipeline"),
413
- className: v
413
+ className: y
414
414
  })]
415
415
  }),
416
- /* @__PURE__ */ m("div", {
416
+ /* @__PURE__ */ h("div", {
417
417
  className: "min-w-0",
418
- children: [/* @__PURE__ */ p("label", {
419
- htmlFor: `${k}-description`,
420
- className: g,
418
+ children: [/* @__PURE__ */ m("label", {
419
+ htmlFor: `${A}-description`,
420
+ className: _,
421
421
  children: o("bigconsole.pipelines.builder.basicInfo.descriptionLabel", "Description")
422
- }), /* @__PURE__ */ p("textarea", {
423
- id: `${k}-description`,
424
- value: N,
425
- onChange: (e) => P(e.target.value),
422
+ }), /* @__PURE__ */ m("textarea", {
423
+ id: `${A}-description`,
424
+ value: F,
425
+ onChange: (e) => I(e.target.value),
426
426
  placeholder: o("bigconsole.pipelines.builder.basicInfo.descriptionPlaceholder", "What does this pipeline do?"),
427
427
  rows: 3,
428
- className: `${v} resize-y`
428
+ className: `${y} resize-y`
429
429
  })]
430
430
  }),
431
- /* @__PURE__ */ m("div", {
431
+ /* @__PURE__ */ h("div", {
432
432
  className: "min-w-0 border-t border-[var(--color-border-subtle)] pt-form-gap",
433
433
  children: [
434
- /* @__PURE__ */ p("label", {
435
- htmlFor: `${k}-status`,
436
- className: g,
434
+ /* @__PURE__ */ m("label", {
435
+ htmlFor: `${A}-status`,
436
+ className: _,
437
437
  children: o("bigconsole.pipelines.builder.basicInfo.statusLabel", "Status")
438
438
  }),
439
- /* @__PURE__ */ p("select", {
440
- id: `${k}-status`,
441
- value: F,
442
- onChange: (e) => I(e.target.value),
443
- className: v,
444
- children: Ee.map((e) => /* @__PURE__ */ p("option", {
439
+ /* @__PURE__ */ m(p, {
440
+ id: `${A}-status`,
441
+ value: L,
442
+ onChange: (e) => R(e.target.value),
443
+ className: y,
444
+ children: Ee.map((e) => /* @__PURE__ */ m("option", {
445
445
  value: e.value,
446
- children: ze[e.value]
446
+ children: Be[e.value]
447
447
  }, e.value))
448
448
  }),
449
- /* @__PURE__ */ p("p", {
450
- className: _,
449
+ /* @__PURE__ */ m("p", {
450
+ className: v,
451
451
  children: "Only active pipelines process incoming data."
452
452
  })
453
453
  ]
454
454
  })
455
455
  ]
456
456
  })
457
- }), /* @__PURE__ */ p(r, {
457
+ }), /* @__PURE__ */ m(r, {
458
458
  emphasis: "primary",
459
459
  headingLevel: 2,
460
- title: o("bigconsole.pipelines.builder.stages.heading", "Stages ({{count}})", { count: L.length }),
460
+ title: o("bigconsole.pipelines.builder.stages.heading", "Stages ({{count}})", { count: z.length }),
461
461
  description: "Each stage reads an input key, runs a parser, and writes an output key for the next stage.",
462
- actions: /* @__PURE__ */ m(f, {
462
+ actions: /* @__PURE__ */ h(f, {
463
463
  size: "sm",
464
- onClick: He,
465
- className: h,
466
- children: [/* @__PURE__ */ p(S, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.stages.addStage", "Add Stage")]
464
+ onClick: Ue,
465
+ className: g,
466
+ children: [/* @__PURE__ */ m(C, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.stages.addStage", "Add Stage")]
467
467
  }),
468
468
  "data-testid": "pipeline-stages-editor",
469
- children: L.length === 0 ? /* @__PURE__ */ p(me, {
469
+ children: z.length === 0 ? /* @__PURE__ */ m(me, {
470
470
  illustration: "empty-generic",
471
+ kind: "first-use",
472
+ glassIllustration: "workflows",
473
+ size: "panel",
471
474
  title: o("bigconsole.pipelines.builder.stages.emptyTitle", "No stages yet"),
472
475
  description: o("bigconsole.pipelines.builder.stages.emptyDescription", "Add a stage to start building your pipeline."),
473
- action: /* @__PURE__ */ m(f, {
474
- onClick: He,
475
- className: h,
476
- children: [/* @__PURE__ */ p(S, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.stages.addFirstStage", "Add First Stage")]
476
+ action: /* @__PURE__ */ h(f, {
477
+ onClick: Ue,
478
+ className: g,
479
+ children: [/* @__PURE__ */ m(C, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.stages.addFirstStage", "Add First Stage")]
477
480
  })
478
- }) : /* @__PURE__ */ p("ol", {
481
+ }) : /* @__PURE__ */ m("ol", {
479
482
  className: "flex flex-col gap-form-gap",
480
- children: L.map((e, t) => /* @__PURE__ */ p("li", {
483
+ children: z.map((e, t) => /* @__PURE__ */ m("li", {
481
484
  className: "min-w-0",
482
- children: /* @__PURE__ */ p(r, {
485
+ children: /* @__PURE__ */ m(r, {
483
486
  emphasis: "muted",
484
487
  padding: "compact",
485
488
  headingLevel: 3,
486
- title: /* @__PURE__ */ m("span", {
489
+ title: /* @__PURE__ */ h("span", {
487
490
  className: "flex min-w-0 items-center gap-icon-gap",
488
- children: [/* @__PURE__ */ p("span", {
491
+ children: [/* @__PURE__ */ m("span", {
489
492
  "aria-hidden": "true",
490
493
  className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-pill bg-bg-surface text-xs font-semibold text-text-secondary",
491
494
  children: t + 1
492
- }), /* @__PURE__ */ p("span", {
495
+ }), /* @__PURE__ */ m("span", {
493
496
  className: "min-w-0 truncate",
494
497
  children: e.parserName || o("bigconsole.pipelines.builder.stages.defaultStageName", "Stage {{number}}", { number: t + 1 })
495
498
  })]
496
499
  }),
497
- actions: /* @__PURE__ */ m(ye, { children: [
498
- /* @__PURE__ */ p("button", {
500
+ actions: /* @__PURE__ */ h(ye, { children: [
501
+ /* @__PURE__ */ m("button", {
499
502
  type: "button",
500
- onClick: () => We(t, "up"),
503
+ onClick: () => Ge(t, "up"),
501
504
  disabled: t === 0,
502
- className: x,
505
+ className: S,
503
506
  "aria-label": `Move stage ${t + 1} up`,
504
- children: /* @__PURE__ */ p(we, { className: "h-icon-sm w-icon-sm" })
507
+ children: /* @__PURE__ */ m(we, { className: "h-icon-sm w-icon-sm" })
505
508
  }),
506
- /* @__PURE__ */ p("button", {
509
+ /* @__PURE__ */ m("button", {
507
510
  type: "button",
508
- onClick: () => We(t, "down"),
509
- disabled: t === L.length - 1,
510
- className: x,
511
+ onClick: () => Ge(t, "down"),
512
+ disabled: t === z.length - 1,
513
+ className: S,
511
514
  "aria-label": `Move stage ${t + 1} down`,
512
- children: /* @__PURE__ */ p(Te, { className: "h-icon-sm w-icon-sm" })
515
+ children: /* @__PURE__ */ m(Te, { className: "h-icon-sm w-icon-sm" })
513
516
  }),
514
- /* @__PURE__ */ p("button", {
517
+ /* @__PURE__ */ m("button", {
515
518
  type: "button",
516
- onClick: () => Ue(t),
519
+ onClick: () => We(t),
517
520
  className: xe,
518
521
  "aria-label": `Remove stage ${t + 1}`,
519
- children: /* @__PURE__ */ p(Ce, { className: "h-icon-sm w-icon-sm" })
522
+ children: /* @__PURE__ */ m(Ce, { className: "h-icon-sm w-icon-sm" })
520
523
  })
521
524
  ] }),
522
525
  "data-testid": "pipeline-stage-editor",
523
- children: /* @__PURE__ */ m("div", {
526
+ children: /* @__PURE__ */ h("div", {
524
527
  className: "flex flex-col gap-form-gap",
525
528
  children: [
526
- /* @__PURE__ */ m("div", {
529
+ /* @__PURE__ */ h("div", {
527
530
  className: "min-w-0",
528
- children: [/* @__PURE__ */ m("label", {
529
- htmlFor: `${k}-parser-${t}`,
530
- className: g,
531
+ children: [/* @__PURE__ */ h("label", {
532
+ htmlFor: `${A}-parser-${t}`,
533
+ className: _,
531
534
  children: [
532
535
  o("bigconsole.pipelines.builder.stages.parserLabel", "Parser"),
533
536
  " ",
534
- /* @__PURE__ */ p("span", {
537
+ /* @__PURE__ */ m("span", {
535
538
  className: "text-status-error-text",
536
539
  children: "*"
537
540
  })
538
541
  ]
539
- }), /* @__PURE__ */ m("select", {
540
- id: `${k}-parser-${t}`,
542
+ }), /* @__PURE__ */ h(p, {
543
+ id: `${A}-parser-${t}`,
541
544
  value: e.parserId,
542
- onChange: (e) => Ge(t, e.target.value),
543
- className: v,
544
- children: [/* @__PURE__ */ p("option", {
545
+ onChange: (e) => Ke(t, e.target.value),
546
+ className: y,
547
+ children: [/* @__PURE__ */ m("option", {
545
548
  value: "",
546
549
  children: o("bigconsole.pipelines.builder.stages.parserPlaceholder", "Select a parser...")
547
- }), Y.map((e) => /* @__PURE__ */ m("option", {
550
+ }), Y.map((e) => /* @__PURE__ */ h("option", {
548
551
  value: e.id,
549
552
  children: [
550
553
  e.name,
@@ -555,129 +558,129 @@ var h = "min-h-[var(--size-controlHeight-md)]", g = "mb-1 block text-sm font-med
555
558
  }, e.id))]
556
559
  })]
557
560
  }),
558
- /* @__PURE__ */ m("fieldset", {
561
+ /* @__PURE__ */ h("fieldset", {
559
562
  className: "min-w-0",
560
- children: [/* @__PURE__ */ p("legend", {
563
+ children: [/* @__PURE__ */ m("legend", {
561
564
  className: be,
562
565
  children: "Data contract"
563
- }), /* @__PURE__ */ m("div", {
566
+ }), /* @__PURE__ */ h("div", {
564
567
  className: "grid grid-cols-1 gap-form-gap sm:grid-cols-2",
565
- children: [/* @__PURE__ */ m("div", {
568
+ children: [/* @__PURE__ */ h("div", {
566
569
  className: "min-w-0",
567
570
  children: [
568
- /* @__PURE__ */ m("label", {
569
- htmlFor: `${k}-input-${t}`,
570
- className: g,
571
+ /* @__PURE__ */ h("label", {
572
+ htmlFor: `${A}-input-${t}`,
573
+ className: _,
571
574
  children: [
572
575
  o("bigconsole.pipelines.builder.stages.inputKeyLabel", "Input Key"),
573
576
  " ",
574
- /* @__PURE__ */ p("span", {
577
+ /* @__PURE__ */ m("span", {
575
578
  className: "text-status-error-text",
576
579
  children: "*"
577
580
  })
578
581
  ]
579
582
  }),
580
- /* @__PURE__ */ p("input", {
581
- id: `${k}-input-${t}`,
583
+ /* @__PURE__ */ m("input", {
584
+ id: `${A}-input-${t}`,
582
585
  type: "text",
583
586
  value: e.inputKey,
584
587
  onChange: (e) => Q(t, { inputKey: e.target.value }),
585
588
  placeholder: o("bigconsole.pipelines.builder.stages.inputKeyPlaceholder", "$input"),
586
- "aria-describedby": `${k}-input-help-${t}`,
587
- className: y
589
+ "aria-describedby": `${A}-input-help-${t}`,
590
+ className: b
588
591
  }),
589
- /* @__PURE__ */ p("p", {
590
- id: `${k}-input-help-${t}`,
591
- className: _,
592
+ /* @__PURE__ */ m("p", {
593
+ id: `${A}-input-help-${t}`,
594
+ className: v,
592
595
  children: o("bigconsole.pipelines.builder.stages.inputKeyHelp", "$input is the pipeline input, $current is the previous stage output. You can also enter an earlier stage Output Key. Any other name reads the previous stage output.")
593
596
  })
594
597
  ]
595
- }), /* @__PURE__ */ m("div", {
598
+ }), /* @__PURE__ */ h("div", {
596
599
  className: "min-w-0",
597
- children: [/* @__PURE__ */ m("label", {
598
- htmlFor: `${k}-output-${t}`,
599
- className: g,
600
+ children: [/* @__PURE__ */ h("label", {
601
+ htmlFor: `${A}-output-${t}`,
602
+ className: _,
600
603
  children: [
601
604
  o("bigconsole.pipelines.builder.stages.outputKeyLabel", "Output Key"),
602
605
  " ",
603
- /* @__PURE__ */ p("span", {
606
+ /* @__PURE__ */ m("span", {
604
607
  className: "text-status-error-text",
605
608
  children: "*"
606
609
  })
607
610
  ]
608
- }), /* @__PURE__ */ p("input", {
609
- id: `${k}-output-${t}`,
611
+ }), /* @__PURE__ */ m("input", {
612
+ id: `${A}-output-${t}`,
610
613
  type: "text",
611
614
  value: e.outputKey,
612
615
  onChange: (e) => Q(t, { outputKey: e.target.value }),
613
616
  placeholder: o("bigconsole.pipelines.builder.stages.outputKeyPlaceholder", "result"),
614
- className: y
617
+ className: b
615
618
  })]
616
619
  })]
617
620
  })]
618
621
  }),
619
- /* @__PURE__ */ m("fieldset", {
622
+ /* @__PURE__ */ h("fieldset", {
620
623
  className: "min-w-0",
621
- children: [/* @__PURE__ */ p("legend", {
624
+ children: [/* @__PURE__ */ m("legend", {
622
625
  className: be,
623
626
  children: "Failure policy"
624
- }), /* @__PURE__ */ m("div", {
627
+ }), /* @__PURE__ */ h("div", {
625
628
  className: "grid grid-cols-1 gap-form-gap sm:grid-cols-2",
626
629
  children: [
627
- /* @__PURE__ */ m("div", {
630
+ /* @__PURE__ */ h("div", {
628
631
  className: "min-w-0",
629
632
  children: [
630
- /* @__PURE__ */ p("label", {
631
- htmlFor: `${k}-onerror-${t}`,
632
- className: g,
633
+ /* @__PURE__ */ m("label", {
634
+ htmlFor: `${A}-onerror-${t}`,
635
+ className: _,
633
636
  children: o("bigconsole.pipelines.builder.stages.onErrorLabel", "On Error")
634
637
  }),
635
- /* @__PURE__ */ p("select", {
636
- id: `${k}-onerror-${t}`,
638
+ /* @__PURE__ */ m(p, {
639
+ id: `${A}-onerror-${t}`,
637
640
  value: e.onError,
638
641
  onChange: (e) => Q(t, { onError: e.target.value }),
639
- className: v,
640
- children: w.map((e) => /* @__PURE__ */ p("option", {
642
+ className: y,
643
+ children: T.map((e) => /* @__PURE__ */ m("option", {
641
644
  value: e.value,
642
- children: Be[e.value]
645
+ children: Ve[e.value]
643
646
  }, e.value))
644
647
  }),
645
- /* @__PURE__ */ p("p", {
646
- className: _,
647
- children: w.find((t) => t.value === e.onError)?.description
648
+ /* @__PURE__ */ m("p", {
649
+ className: v,
650
+ children: T.find((t) => t.value === e.onError)?.description
648
651
  })
649
652
  ]
650
653
  }),
651
- /* @__PURE__ */ p("div", {
654
+ /* @__PURE__ */ m("div", {
652
655
  className: "flex min-w-0 items-start",
653
- children: /* @__PURE__ */ m("label", {
654
- htmlFor: `${k}-enabled-${t}`,
655
- className: `flex cursor-pointer items-center gap-2 ${h}`,
656
- children: [/* @__PURE__ */ p("input", {
657
- id: `${k}-enabled-${t}`,
656
+ children: /* @__PURE__ */ h("label", {
657
+ htmlFor: `${A}-enabled-${t}`,
658
+ className: `flex cursor-pointer items-center gap-2 ${g}`,
659
+ children: [/* @__PURE__ */ m("input", {
660
+ id: `${A}-enabled-${t}`,
658
661
  type: "checkbox",
659
662
  checked: e.enabled,
660
663
  onChange: (e) => Q(t, { enabled: e.target.checked }),
661
664
  className: `h-4 w-4 rounded border-[var(--color-border-subtle)] text-action-primary-bg ${n}`
662
- }), /* @__PURE__ */ p("span", {
665
+ }), /* @__PURE__ */ m("span", {
663
666
  className: "text-sm text-text-primary",
664
667
  children: o("bigconsole.pipelines.builder.stages.enabledLabel", "Enabled")
665
668
  })]
666
669
  })
667
670
  }),
668
- e.onError === "fallback" && /* @__PURE__ */ m("div", {
671
+ e.onError === "fallback" && /* @__PURE__ */ h("div", {
669
672
  className: "min-w-0 sm:col-span-2",
670
- children: [/* @__PURE__ */ p("label", {
671
- htmlFor: `${k}-fallback-${t}`,
672
- className: g,
673
+ children: [/* @__PURE__ */ m("label", {
674
+ htmlFor: `${A}-fallback-${t}`,
675
+ className: _,
673
676
  children: o("bigconsole.pipelines.builder.stages.fallbackValueLabel", "Fallback Value (JSON)")
674
- }), /* @__PURE__ */ p("input", {
675
- id: `${k}-fallback-${t}`,
677
+ }), /* @__PURE__ */ m("input", {
678
+ id: `${A}-fallback-${t}`,
676
679
  type: "text",
677
680
  value: e.fallbackValue,
678
681
  onChange: (e) => Q(t, { fallbackValue: e.target.value }),
679
682
  placeholder: "{\"default\": true}",
680
- className: y
683
+ className: b
681
684
  })]
682
685
  })
683
686
  ]
@@ -689,88 +692,88 @@ var h = "min-h-[var(--size-controlHeight-md)]", g = "mb-1 block text-sm font-med
689
692
  }, t))
690
693
  })
691
694
  })] })
692
- }), /* @__PURE__ */ p("div", {
695
+ }), /* @__PURE__ */ m("div", {
693
696
  className: "min-w-0",
694
- children: /* @__PURE__ */ m(i, { children: [/* @__PURE__ */ p(r, {
697
+ children: /* @__PURE__ */ h(i, { children: [/* @__PURE__ */ m(r, {
695
698
  emphasis: "muted",
696
699
  headingLevel: 2,
697
700
  title: o("bigconsole.pipelines.builder.preview.heading", "Preview"),
698
701
  description: "What will be saved.",
699
702
  "data-testid": "pipeline-preview",
700
- children: /* @__PURE__ */ m("dl", {
703
+ children: /* @__PURE__ */ h("dl", {
701
704
  className: "flex flex-col gap-3 text-sm",
702
705
  children: [
703
- /* @__PURE__ */ m("div", {
706
+ /* @__PURE__ */ h("div", {
704
707
  className: "min-w-0",
705
- children: [/* @__PURE__ */ p("dt", {
708
+ children: [/* @__PURE__ */ m("dt", {
706
709
  className: "text-xs text-text-muted",
707
710
  children: o("bigconsole.pipelines.builder.preview.nameLabel", "Name")
708
- }), /* @__PURE__ */ p("dd", {
711
+ }), /* @__PURE__ */ m("dd", {
709
712
  className: "break-words text-text-primary",
710
- children: M || o("bigconsole.pipelines.builder.preview.untitled", "Untitled")
713
+ children: N || o("bigconsole.pipelines.builder.preview.untitled", "Untitled")
711
714
  })]
712
715
  }),
713
- /* @__PURE__ */ m("div", {
716
+ /* @__PURE__ */ h("div", {
714
717
  className: "min-w-0",
715
- children: [/* @__PURE__ */ p("dt", {
718
+ children: [/* @__PURE__ */ m("dt", {
716
719
  className: "text-xs text-text-muted",
717
720
  children: o("bigconsole.pipelines.builder.preview.statusLabel", "Status")
718
- }), /* @__PURE__ */ p("dd", {
721
+ }), /* @__PURE__ */ m("dd", {
719
722
  className: "mt-1",
720
- children: /* @__PURE__ */ p(re, {
721
- status: F,
723
+ children: /* @__PURE__ */ m(re, {
724
+ status: L,
722
725
  size: "sm"
723
726
  })
724
727
  })]
725
728
  }),
726
- /* @__PURE__ */ m("div", {
729
+ /* @__PURE__ */ h("div", {
727
730
  className: "min-w-0",
728
- children: [/* @__PURE__ */ p("dt", {
731
+ children: [/* @__PURE__ */ m("dt", {
729
732
  className: "text-xs text-text-muted",
730
733
  children: o("bigconsole.pipelines.builder.preview.stagesLabel", "Stages")
731
- }), /* @__PURE__ */ p("dd", {
734
+ }), /* @__PURE__ */ m("dd", {
732
735
  className: "text-text-primary",
733
- children: L.length
736
+ children: z.length
734
737
  })]
735
738
  }),
736
- L.length > 0 && /* @__PURE__ */ m("div", {
739
+ z.length > 0 && /* @__PURE__ */ h("div", {
737
740
  className: "min-w-0 border-t border-[var(--color-border-subtle)] pt-3",
738
- children: [/* @__PURE__ */ p("dt", {
741
+ children: [/* @__PURE__ */ m("dt", {
739
742
  className: "text-xs text-text-muted",
740
743
  children: o("bigconsole.pipelines.builder.preview.dataFlowLabel", "Data Flow")
741
- }), /* @__PURE__ */ m("dd", {
744
+ }), /* @__PURE__ */ h("dd", {
742
745
  className: "mt-1 flex flex-wrap items-center gap-1 text-xs",
743
- children: [L.map((e, t) => /* @__PURE__ */ m("span", {
746
+ children: [z.map((e, t) => /* @__PURE__ */ h("span", {
744
747
  className: "flex items-center gap-1",
745
- children: [/* @__PURE__ */ p("code", {
748
+ children: [/* @__PURE__ */ m("code", {
746
749
  className: "rounded-button bg-bg-surface px-1.5 py-0.5 font-mono break-all text-text-primary",
747
750
  children: e.inputKey
748
- }), /* @__PURE__ */ p("span", {
751
+ }), /* @__PURE__ */ m("span", {
749
752
  "aria-hidden": "true",
750
753
  className: "text-text-muted",
751
754
  children: "→"
752
755
  })]
753
- }, t)), /* @__PURE__ */ p("code", {
756
+ }, t)), /* @__PURE__ */ m("code", {
754
757
  className: "rounded-button bg-bg-surface px-1.5 py-0.5 font-mono break-all text-text-primary",
755
- children: L[L.length - 1].outputKey
758
+ children: z[z.length - 1].outputKey
756
759
  })]
757
760
  })]
758
761
  })
759
762
  ]
760
763
  })
761
- }), /* @__PURE__ */ p(r, {
764
+ }), /* @__PURE__ */ m(r, {
762
765
  emphasis: "muted",
763
766
  padding: "compact",
764
767
  headingLevel: 2,
765
768
  title: o("bigconsole.pipelines.builder.tips.heading", "Tips"),
766
769
  "data-testid": "pipeline-builder-tips",
767
- children: /* @__PURE__ */ m("ul", {
770
+ children: /* @__PURE__ */ h("ul", {
768
771
  className: "list-disc space-y-1 pl-4 text-sm text-text-secondary",
769
772
  children: [
770
- /* @__PURE__ */ p("li", { children: o("bigconsole.pipelines.builder.tips.item1", "Each stage processes the output of the previous stage") }),
771
- /* @__PURE__ */ p("li", { children: o("bigconsole.pipelines.builder.tips.item2", "Use consistent input/output keys to chain data") }),
772
- /* @__PURE__ */ p("li", { children: o("bigconsole.pipelines.builder.tips.item3", "Set error handling per stage for robustness") }),
773
- /* @__PURE__ */ p("li", { children: o("bigconsole.pipelines.builder.tips.item4", "Disable stages to skip them during execution") })
773
+ /* @__PURE__ */ m("li", { children: o("bigconsole.pipelines.builder.tips.item1", "Each stage processes the output of the previous stage") }),
774
+ /* @__PURE__ */ m("li", { children: o("bigconsole.pipelines.builder.tips.item2", "Use consistent input/output keys to chain data") }),
775
+ /* @__PURE__ */ m("li", { children: o("bigconsole.pipelines.builder.tips.item3", "Set error handling per stage for robustness") }),
776
+ /* @__PURE__ */ m("li", { children: o("bigconsole.pipelines.builder.tips.item4", "Disable stages to skip them during execution") })
774
777
  ]
775
778
  })
776
779
  })] })
@@ -779,4 +782,4 @@ var h = "min-h-[var(--size-controlHeight-md)]", g = "mb-1 block text-sm font-med
779
782
  ] })
780
783
  });
781
784
  });
782
- export { T as PipelineBuilderPage, T as default };
785
+ export { E as PipelineBuilderPage, E as default };