@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
@@ -2,121 +2,121 @@ import "../contexts/index.js";
2
2
  import { useAppNavigate as e } from "../contexts/NavigationContext.js";
3
3
  import { newWorkflowPath as t } from "../BigConsoleRoutes.js";
4
4
  import { NEW_WORKFLOW_NAV as n } from "../workflowOpen.js";
5
- import { isNative as ee, nativeConfirm as te, nativeImpact as ne, nativeNotify as r } from "../../utils/nativeBridge.js";
5
+ import { isNative as r, nativeConfirm as ee, nativeImpact as te, nativeNotify as i } from "../../utils/nativeBridge.js";
6
6
  import "../components/common/sectionStyles.js";
7
- import { Section as i, SectionStack as re } from "../components/common/Section.js";
8
- import ie from "../hooks/useDataSinkOperations.js";
9
- import { useDataSinkStore as ae } from "../store/dataSinkStore.js";
10
- import { formatByteSize as oe } from "../utils/format.js";
11
- import { hasDataSinkPayload as a } from "../utils/dataSinkPayload.js";
12
- import { describeSetupGaps as se, getSetupGaps as ce } from "../utils/dataSinkSetup.js";
13
- import { DataSinkStatusBadge as o } from "../components/datasink/DataSinkStatusBadge.js";
14
- import { DataSinkDataViewer as le } from "../components/datasink/DataSinkDataViewer.js";
15
- import { DataSinkTableViewer as ue } from "../components/datasink/DataSinkTableViewer.js";
16
- import { LinkedWorkflowsPanel as de } from "../components/datasink/LinkedWorkflowsPanel.js";
17
- import { readSinkOwner as fe } from "../utils/dataSinkOwner.js";
18
- import { LinkedParsersPanel as pe } from "../components/datasink/LinkedParsersPanel.js";
19
- import { WorkflowStatusPanel as me } from "../components/datasink/WorkflowStatusPanel.js";
20
- import { ExportDataSinkDialog as he } from "../components/datasink/ExportDataSinkDialog.js";
21
- import { AnomalyDetectorPanel as ge } from "../components/datasink/AnomalyDetectorPanel.js";
22
- import { numericColumnSuggestions as _e } from "../utils/anomalyColumns.js";
23
- import { ImportDataGuideDialog as ve } from "../components/datasink/ImportDataGuideDialog.js";
7
+ import { Section as a, SectionStack as ne } from "../components/common/Section.js";
8
+ import re from "../hooks/useDataSinkOperations.js";
9
+ import { useDataSinkStore as ie } from "../store/dataSinkStore.js";
10
+ import { formatByteSize as ae } from "../utils/format.js";
11
+ import { hasDataSinkPayload as o } from "../utils/dataSinkPayload.js";
12
+ import { describeSetupGaps as oe, getSetupGaps as se } from "../utils/dataSinkSetup.js";
13
+ import { DataSinkStatusBadge as s } from "../components/datasink/DataSinkStatusBadge.js";
14
+ import { DataSinkDataViewer as ce } from "../components/datasink/DataSinkDataViewer.js";
15
+ import { DataSinkTableViewer as le } from "../components/datasink/DataSinkTableViewer.js";
16
+ import { LinkedWorkflowsPanel as ue } from "../components/datasink/LinkedWorkflowsPanel.js";
17
+ import { readSinkOwner as de } from "../utils/dataSinkOwner.js";
18
+ import { LinkedParsersPanel as fe } from "../components/datasink/LinkedParsersPanel.js";
19
+ import { WorkflowStatusPanel as pe } from "../components/datasink/WorkflowStatusPanel.js";
20
+ import { ExportDataSinkDialog as me } from "../components/datasink/ExportDataSinkDialog.js";
21
+ import { AnomalyDetectorPanel as he } from "../components/datasink/AnomalyDetectorPanel.js";
22
+ import { numericColumnSuggestions as ge } from "../utils/anomalyColumns.js";
23
+ import { ImportDataGuideDialog as _e } from "../components/datasink/ImportDataGuideDialog.js";
24
24
  import "../components/common/index.js";
25
- import { BIGCONSOLE_PERMISSIONS as s } from "../../constants/permissions.js";
26
- import { dataSinkSuggestAnchorProps as ye } from "../proactive/entities.js";
27
- import { memo as c, useCallback as l, useEffect as be, useMemo as xe, useState as u } from "react";
28
- import { useParams as Se } from "react-router";
29
- import { AccessDenied as Ce, PermissionButton as d } from "@burdenoff/fe-libs/shared/components";
30
- import { usePermissions as we } from "@burdenoff/fe-libs/shared/providers/shell";
31
- import { Activity as Te, AlertCircle as Ee, ArrowLeft as f, Bell as De, Code as Oe, Database as p, Download as ke, Edit as Ae, Eye as je, EyeOff as Me, Grid3X3 as Ne, Loader2 as m, RefreshCw as Pe, Trash2 as Fe, Upload as h } from "lucide-react";
32
- import { Button as g, IllustratedEmptyState as Ie, NextSteps as Le, PagePurpose as Re } from "@burdenoff/fe-libs/ui";
25
+ import { BIGCONSOLE_PERMISSIONS as c } from "../../constants/permissions.js";
26
+ import { dataSinkSuggestAnchorProps as ve } from "../proactive/entities.js";
27
+ import { memo as l, useCallback as u, useEffect as ye, useMemo as be, useState as d } from "react";
28
+ import { useParams as xe } from "react-router";
29
+ import { AccessDenied as Se, PermissionButton as f } from "@burdenoff/fe-libs/shared/components";
30
+ import { usePermissions as Ce } from "@burdenoff/fe-libs/shared/providers/shell";
31
+ import { Activity as we, AlertCircle as Te, ArrowLeft as p, Bell as Ee, Code as De, Database as m, Download as Oe, Edit as ke, Eye as Ae, EyeOff as je, Grid3X3 as Me, Loader2 as h, RefreshCw as Ne, Trash2 as Pe, Upload as g } from "lucide-react";
32
+ import { Button as _, IllustratedEmptyState as Fe, NextSteps as Ie, PagePurpose as Le, ThemedSelect as Re } from "@burdenoff/fe-libs/ui";
33
33
  import { useI18n as ze } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
34
- import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
35
- import { formatDistanceToNow as b } from "date-fns";
34
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
35
+ import { formatDistanceToNow as x } from "date-fns";
36
36
  // src/bigconsole/pages/DataSinkViewPage.tsx
37
- var x = "focus-visible:ring-inset focus-visible:ring-offset-0", S = c(function() {
38
- let { dataSinkId: c } = Se(), S = e(), { t: C } = ze(), { hasPermission: Be, isLoading: Ve } = we(), He = Be(s.DATASINK_READ), [w, T] = u(!1), [E, D] = u(!1), [O, k] = u(!1), [Ue, A] = u(!1), [We, j] = u(!1), [Ge, M] = u(!1), [N, Ke] = u(null), [P, F] = u(!1), [I, L] = u("table"), [R, qe] = u(100), [z, Je] = u(0), [B, Ye] = u(null), [Xe, Ze] = u(!1), V = ae((e) => c ? e.dataSinks.get(c) : void 0), H = fe(V?.metadata), Qe = xe(() => _e(N), [N]), { loading: $e, error: U, fetchDataSink: W, getDataSinkData: G, refreshDataSink: K, updateDataSink: q, deleteDataSink: J } = ie({ skipFetch: !0 });
39
- be(() => {
40
- c && W(c);
41
- }, [c, W]);
42
- let et = l(async () => {
43
- c && await W(c);
44
- }, [c, W]), Y = l(() => {
45
- S("/datasinks");
46
- }, [S]), X = l(() => {
47
- S(`/datasinks/${c}/edit`);
48
- }, [S, c]), Z = l(async () => {
49
- if (c) {
50
- D(!0);
37
+ var S = "focus-visible:ring-inset focus-visible:ring-offset-0", C = l(function() {
38
+ let { dataSinkId: l } = xe(), C = e(), { t: w } = ze(), { hasPermission: Be, isLoading: Ve } = Ce(), He = Be(c.DATASINK_READ), [T, E] = d(!1), [D, O] = d(!1), [Ue, k] = d(!1), [We, A] = d(!1), [Ge, j] = d(!1), [Ke, M] = d(!1), [N, qe] = d(null), [P, F] = d(!1), [I, L] = d("table"), [R, Je] = d(100), [z, Ye] = d(0), [B, Xe] = d(null), [Ze, Qe] = d(!1), V = ie((e) => l ? e.dataSinks.get(l) : void 0), H = de(V?.metadata), $e = be(() => ge(N), [N]), { loading: et, error: U, fetchDataSink: W, getDataSinkData: G, refreshDataSink: K, updateDataSink: q, deleteDataSink: J } = re({ skipFetch: !0 });
39
+ ye(() => {
40
+ l && W(l);
41
+ }, [l, W]);
42
+ let tt = u(async () => {
43
+ l && await W(l);
44
+ }, [l, W]), Y = u(() => {
45
+ C("/datasinks");
46
+ }, [C]), X = u(() => {
47
+ C(`/datasinks/${l}/edit`);
48
+ }, [C, l]), Z = u(async () => {
49
+ if (l) {
50
+ O(!0);
51
51
  try {
52
- await K({ id: c });
52
+ await K({ id: l });
53
53
  } catch {} finally {
54
- D(!1);
54
+ O(!1);
55
55
  }
56
56
  }
57
- }, [c, K]), tt = l(async () => {
58
- if (!c) return;
59
- let e = await te({
60
- title: C("bigconsole.dataSinks.view.deleteConfirmTitle", "Delete DataSink?"),
61
- message: C("bigconsole.dataSinks.view.deleteConfirmMessage", "Are you sure you want to delete this DataSink?"),
62
- okButtonTitle: C("bigconsole.dataSinks.view.delete", "Delete"),
63
- cancelButtonTitle: C("bigconsole.dataSinks.view.cancel", "Cancel")
57
+ }, [l, K]), nt = u(async () => {
58
+ if (!l) return;
59
+ let e = await ee({
60
+ title: w("bigconsole.dataSinks.view.deleteConfirmTitle", "Delete DataSink?"),
61
+ message: w("bigconsole.dataSinks.view.deleteConfirmMessage", "Are you sure you want to delete this DataSink?"),
62
+ okButtonTitle: w("bigconsole.dataSinks.view.delete", "Delete"),
63
+ cancelButtonTitle: w("bigconsole.dataSinks.view.cancel", "Cancel")
64
64
  });
65
- if (e === null ? window.confirm(C("bigconsole.dataSinks.view.deleteConfirmMessage", "Are you sure you want to delete this DataSink?")) : e) {
66
- ne("medium"), k(!0);
65
+ if (e === null ? window.confirm(w("bigconsole.dataSinks.view.deleteConfirmMessage", "Are you sure you want to delete this DataSink?")) : e) {
66
+ te("medium"), k(!0);
67
67
  try {
68
- await J(c), ee() && r("success"), S("/datasinks");
68
+ await J(l), r() && i("success"), C("/datasinks");
69
69
  } catch {
70
- ee() && r("error");
70
+ r() && i("error");
71
71
  } finally {
72
72
  k(!1);
73
73
  }
74
74
  }
75
75
  }, [
76
- c,
76
+ l,
77
77
  J,
78
- S,
79
- C
80
- ]), Q = l(async (e, t) => {
81
- if (c) {
78
+ C,
79
+ w
80
+ ]), Q = u(async (e, t) => {
81
+ if (l) {
82
82
  F(!0);
83
83
  try {
84
- let n = await G({ id: c }, {
84
+ let n = await G({ id: l }, {
85
85
  limit: t,
86
86
  offset: e
87
87
  });
88
- n && (Ke(n.raw || {}), Ye(typeof n.totalCount == "number" ? n.totalCount : null), Ze(!!n.hasMore), Je(e));
88
+ n && (qe(n.raw || {}), Xe(typeof n.totalCount == "number" ? n.totalCount : null), Qe(!!n.hasMore), Ye(e));
89
89
  } catch {} finally {
90
90
  F(!1);
91
91
  }
92
92
  }
93
- }, [c, G]), nt = l(async () => {
94
- c && (w ? T(!1) : (await Q(0, R), T(!0)));
93
+ }, [l, G]), rt = u(async () => {
94
+ l && (T ? E(!1) : (await Q(0, R), E(!0)));
95
95
  }, [
96
- c,
97
- w,
96
+ l,
97
+ T,
98
98
  Q,
99
99
  R
100
- ]), rt = l((e) => {
101
- qe(e), Q(0, e);
102
- }, [Q]), it = l(() => {
100
+ ]), it = u((e) => {
101
+ Je(e), Q(0, e);
102
+ }, [Q]), at = u(() => {
103
103
  A(!0);
104
- }, []), at = l(() => {
104
+ }, []), ot = u(() => {
105
105
  A(!1);
106
- }, []), ot = l(() => {
106
+ }, []), st = u(() => {
107
107
  j(!0);
108
- }, []), st = l(() => {
108
+ }, []), ct = u(() => {
109
109
  j(!1);
110
- }, []), ct = l(() => {
111
- j(!1), S(t(), n);
112
- }, [S]), lt = l(async (e) => {
110
+ }, []), lt = u(() => {
111
+ j(!1), C(t(), n);
112
+ }, [C]), ut = u(async (e) => {
113
113
  if (!V || !await q({
114
114
  id: V.id,
115
115
  version: V.version,
116
116
  data: e
117
117
  })) return !1;
118
118
  try {
119
- await Q(0, R), T(!0);
119
+ await Q(0, R), E(!0);
120
120
  } catch {}
121
121
  return !0;
122
122
  }, [
@@ -125,437 +125,439 @@ var x = "focus-visible:ring-inset focus-visible:ring-offset-0", S = c(function()
125
125
  Q,
126
126
  R
127
127
  ]);
128
- if ($e && !V) return /* @__PURE__ */ v("div", {
128
+ if (et && !V) return /* @__PURE__ */ y("div", {
129
129
  className: "flex min-h-[240px] items-center justify-center p-card-padding",
130
- children: /* @__PURE__ */ v(m, { className: "h-icon-lg w-icon-lg animate-spin text-text-secondary" })
130
+ children: /* @__PURE__ */ y(h, { className: "h-icon-lg w-icon-lg animate-spin text-text-secondary" })
131
131
  });
132
- if (U && !V) return /* @__PURE__ */ v("div", {
132
+ if (U && !V) return /* @__PURE__ */ y("div", {
133
133
  className: "p-card-padding",
134
- children: /* @__PURE__ */ v(i, {
134
+ children: /* @__PURE__ */ y(a, {
135
135
  tone: "danger",
136
136
  headingLevel: 2,
137
- title: C("bigconsole.dataSinks.view.loadError", "Failed to load DataSink"),
137
+ title: w("bigconsole.dataSinks.view.loadError", "Failed to load DataSink"),
138
138
  description: U.message,
139
- icon: /* @__PURE__ */ v(Ee, { className: "h-icon-sm w-icon-sm" }),
140
- actions: /* @__PURE__ */ y(g, {
139
+ icon: /* @__PURE__ */ y(Te, { className: "h-icon-sm w-icon-sm" }),
140
+ actions: /* @__PURE__ */ b(_, {
141
141
  onClick: Y,
142
142
  variant: "secondary",
143
143
  size: "sm",
144
- children: [/* @__PURE__ */ v(f, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.goBack", "Go back")]
144
+ children: [/* @__PURE__ */ y(p, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.goBack", "Go back")]
145
145
  })
146
146
  })
147
147
  });
148
- if (!Ve && !He) return /* @__PURE__ */ v(Ce, {
149
- title: C("bigconsole.dataSinks.view.accessDeniedTitle", "Access Denied"),
150
- description: C("bigconsole.dataSinks.view.accessDeniedDescription", "You don't have permission to view this data sink.")
148
+ if (!Ve && !He) return /* @__PURE__ */ y(Se, {
149
+ title: w("bigconsole.dataSinks.view.accessDeniedTitle", "Access Denied"),
150
+ description: w("bigconsole.dataSinks.view.accessDeniedDescription", "You don't have permission to view this data sink.")
151
151
  });
152
- if (!V) return /* @__PURE__ */ v("div", {
152
+ if (!V) return /* @__PURE__ */ y("div", {
153
153
  className: "flex min-h-[240px] items-center justify-center p-card-padding",
154
- children: /* @__PURE__ */ v(Ie, {
154
+ children: /* @__PURE__ */ y(Fe, {
155
155
  illustration: "empty-data",
156
- title: C("bigconsole.dataSinks.view.notFoundTitle", "DataSink not found"),
157
- description: C("bigconsole.dataSinks.view.notFoundDescription", "The DataSink you're looking for doesn't exist or has been deleted."),
158
- action: /* @__PURE__ */ y(g, {
156
+ kind: "not-found",
157
+ size: "page",
158
+ title: w("bigconsole.dataSinks.view.notFoundTitle", "DataSink not found"),
159
+ description: w("bigconsole.dataSinks.view.notFoundDescription", "The DataSink you're looking for doesn't exist or has been deleted."),
160
+ action: /* @__PURE__ */ b(_, {
159
161
  onClick: Y,
160
162
  variant: "default",
161
163
  size: "default",
162
- children: [/* @__PURE__ */ v(f, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.goBackToDataSinks", "Go back to DataSinks")]
164
+ children: [/* @__PURE__ */ y(p, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.goBackToDataSinks", "Go back to DataSinks")]
163
165
  })
164
166
  })
165
167
  });
166
- let $ = ce(V);
167
- return /* @__PURE__ */ y("div", {
168
+ let $ = se(V);
169
+ return /* @__PURE__ */ b("div", {
168
170
  className: "min-w-0 p-card-padding",
169
171
  children: [
170
- /* @__PURE__ */ y("header", {
172
+ /* @__PURE__ */ b("header", {
171
173
  className: "mb-section-gap flex flex-wrap items-start justify-between gap-form-gap",
172
- children: [/* @__PURE__ */ y("div", {
174
+ children: [/* @__PURE__ */ b("div", {
173
175
  className: "min-w-[min(100%,16rem)] flex-1",
174
176
  children: [
175
- /* @__PURE__ */ y(g, {
177
+ /* @__PURE__ */ b(_, {
176
178
  onClick: Y,
177
179
  variant: "ghost",
178
180
  size: "sm",
179
181
  className: "mb-4",
180
- children: [/* @__PURE__ */ v(f, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.backToDataSinks", "Back to DataSinks")]
182
+ children: [/* @__PURE__ */ y(p, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.backToDataSinks", "Back to DataSinks")]
181
183
  }),
182
- /* @__PURE__ */ y("div", {
184
+ /* @__PURE__ */ b("div", {
183
185
  className: "flex flex-wrap items-center gap-2",
184
- ...ye(V.id),
186
+ ...ve(V.id),
185
187
  children: [
186
- /* @__PURE__ */ v("h1", {
188
+ /* @__PURE__ */ y("h1", {
187
189
  className: "break-words text-2xl font-bold text-text-primary",
188
- children: V.name || C("bigconsole.dataSinks.view.untitled", "Untitled")
190
+ children: V.name || w("bigconsole.dataSinks.view.untitled", "Untitled")
189
191
  }),
190
- /* @__PURE__ */ v(o, { status: V.status }),
191
- /* @__PURE__ */ y("span", {
192
+ /* @__PURE__ */ y(s, { status: V.status }),
193
+ /* @__PURE__ */ b("span", {
192
194
  className: "rounded-pill border border-border-subtle px-2 py-1 text-xs text-text-secondary",
193
195
  children: ["v", V.version]
194
196
  })
195
197
  ]
196
198
  }),
197
- /* @__PURE__ */ v("p", {
199
+ /* @__PURE__ */ y("p", {
198
200
  className: "mt-1 break-all font-mono text-sm text-text-muted",
199
201
  children: V.key
200
202
  }),
201
- V.description && /* @__PURE__ */ v("p", {
203
+ V.description && /* @__PURE__ */ y("p", {
202
204
  className: "mt-2 break-words text-sm text-text-secondary",
203
205
  children: V.description
204
206
  })
205
207
  ]
206
- }), /* @__PURE__ */ y("div", {
208
+ }), /* @__PURE__ */ b("div", {
207
209
  className: "flex max-w-full flex-wrap items-center gap-2",
208
210
  children: [
209
- /* @__PURE__ */ v(d, {
210
- permission: s.DATASINK_EXECUTE,
211
+ /* @__PURE__ */ y(f, {
212
+ permission: c.DATASINK_EXECUTE,
211
213
  deniedBehavior: "disable",
212
- children: /* @__PURE__ */ y(g, {
214
+ children: /* @__PURE__ */ b(_, {
213
215
  onClick: Z,
214
- disabled: E,
216
+ disabled: D,
215
217
  variant: "default",
216
218
  size: "default",
217
- children: [/* @__PURE__ */ v(Pe, { className: `w-4 h-4 mr-2 ${E ? "animate-spin" : ""}` }), E ? C("bigconsole.dataSinks.view.refreshing", "Refreshing...") : C("bigconsole.dataSinks.view.refresh", "Refresh")]
219
+ children: [/* @__PURE__ */ y(Ne, { className: `w-4 h-4 mr-2 ${D ? "animate-spin" : ""}` }), D ? w("bigconsole.dataSinks.view.refreshing", "Refreshing...") : w("bigconsole.dataSinks.view.refresh", "Refresh")]
218
220
  })
219
221
  }),
220
- /* @__PURE__ */ y(g, {
221
- onClick: ot,
222
+ /* @__PURE__ */ b(_, {
223
+ onClick: st,
222
224
  variant: "secondary",
223
225
  size: "default",
224
- children: [/* @__PURE__ */ v(h, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.importData", "Import Data")]
226
+ children: [/* @__PURE__ */ y(g, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.importData", "Import Data")]
225
227
  }),
226
- /* @__PURE__ */ y(g, {
227
- onClick: it,
228
+ /* @__PURE__ */ b(_, {
229
+ onClick: at,
228
230
  variant: "secondary",
229
231
  size: "default",
230
- children: [/* @__PURE__ */ v(ke, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.export", "Export")]
232
+ children: [/* @__PURE__ */ y(Oe, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.export", "Export")]
231
233
  }),
232
- /* @__PURE__ */ y(g, {
233
- onClick: () => S(`/datasinks/${c}/alerts`),
234
+ /* @__PURE__ */ b(_, {
235
+ onClick: () => C(`/datasinks/${l}/alerts`),
234
236
  variant: "secondary",
235
237
  size: "default",
236
- children: [/* @__PURE__ */ v(De, { className: "w-4 h-4 mr-2" }), C("bigconsole.alerts.title", "Alerts")]
238
+ children: [/* @__PURE__ */ y(Ee, { className: "w-4 h-4 mr-2" }), w("bigconsole.alerts.title", "Alerts")]
237
239
  }),
238
- /* @__PURE__ */ y(g, {
240
+ /* @__PURE__ */ b(_, {
239
241
  onClick: () => M(!0),
240
242
  variant: "secondary",
241
243
  size: "default",
242
- children: [/* @__PURE__ */ v(Te, { className: "w-4 h-4 mr-2" }), C("bigconsole.anomalies.open", "Anomalies")]
244
+ children: [/* @__PURE__ */ y(we, { className: "w-4 h-4 mr-2" }), w("bigconsole.anomalies.open", "Anomalies")]
243
245
  }),
244
- /* @__PURE__ */ v(d, {
245
- permission: s.DATASINK_UPDATE,
246
+ /* @__PURE__ */ y(f, {
247
+ permission: c.DATASINK_UPDATE,
246
248
  deniedBehavior: "disable",
247
- children: /* @__PURE__ */ y(g, {
249
+ children: /* @__PURE__ */ b(_, {
248
250
  onClick: X,
249
251
  variant: "secondary",
250
252
  size: "default",
251
- children: [/* @__PURE__ */ v(Ae, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.edit", "Edit")]
253
+ children: [/* @__PURE__ */ y(ke, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.edit", "Edit")]
252
254
  })
253
255
  }),
254
- /* @__PURE__ */ v(d, {
255
- permission: s.DATASINK_DELETE,
256
+ /* @__PURE__ */ y(f, {
257
+ permission: c.DATASINK_DELETE,
256
258
  deniedBehavior: "hide",
257
- children: /* @__PURE__ */ y(g, {
258
- onClick: tt,
259
- disabled: O,
259
+ children: /* @__PURE__ */ b(_, {
260
+ onClick: nt,
261
+ disabled: Ue,
260
262
  variant: "destructive",
261
263
  size: "default",
262
- children: [/* @__PURE__ */ v(Fe, { className: "w-4 h-4 mr-2" }), O ? C("bigconsole.dataSinks.view.deleting", "Deleting...") : C("bigconsole.dataSinks.view.delete", "Delete")]
264
+ children: [/* @__PURE__ */ y(Pe, { className: "w-4 h-4 mr-2" }), Ue ? w("bigconsole.dataSinks.view.deleting", "Deleting...") : w("bigconsole.dataSinks.view.delete", "Delete")]
263
265
  })
264
266
  })
265
267
  ]
266
268
  })]
267
269
  }),
268
- /* @__PURE__ */ v(Re, {
270
+ /* @__PURE__ */ y(Le, {
269
271
  className: "mb-section-gap",
270
- children: C("bigconsole.dataSinks.view.pagePurpose", "A data sink is a structured store that holds your processed data and serves it to dashboards. From here you can inspect its schema and stats, preview the cached rows, refresh it from its linked workflow, or export it.")
272
+ children: w("bigconsole.dataSinks.view.pagePurpose", "A data sink is a structured store that holds your processed data and serves it to dashboards. From here you can inspect its schema and stats, preview the cached rows, refresh it from its linked workflow, or export it.")
271
273
  }),
272
- $.length > 0 && /* @__PURE__ */ y("div", {
274
+ $.length > 0 && /* @__PURE__ */ b("div", {
273
275
  role: "status",
274
276
  className: "mb-section-gap flex flex-wrap items-center justify-between gap-form-gap rounded-input border border-[var(--color-status-warning-border)] bg-[var(--color-status-warning-bgSubtle)] p-3",
275
- children: [/* @__PURE__ */ v("p", {
277
+ children: [/* @__PURE__ */ y("p", {
276
278
  className: "min-w-0 text-sm text-[var(--color-status-warning-text)]",
277
- children: se($, C)
278
- }), /* @__PURE__ */ v(d, {
279
- permission: s.DATASINK_UPDATE,
279
+ children: oe($, w)
280
+ }), /* @__PURE__ */ y(f, {
281
+ permission: c.DATASINK_UPDATE,
280
282
  deniedBehavior: "disable",
281
- children: /* @__PURE__ */ v(g, {
283
+ children: /* @__PURE__ */ y(_, {
282
284
  onClick: X,
283
285
  variant: "secondary",
284
286
  size: "sm",
285
- children: C("bigconsole.dataSinks.setup.continueSetup", "Continue setup")
287
+ children: w("bigconsole.dataSinks.setup.continueSetup", "Continue setup")
286
288
  })
287
289
  })]
288
290
  }),
289
- /* @__PURE__ */ y(re, {
291
+ /* @__PURE__ */ b(ne, {
290
292
  className: "mt-section-gap",
291
- children: [/* @__PURE__ */ y("div", {
293
+ children: [/* @__PURE__ */ b("div", {
292
294
  className: "grid min-w-0 gap-section-gap lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)]",
293
- children: [/* @__PURE__ */ v(i, {
295
+ children: [/* @__PURE__ */ y(a, {
294
296
  headingLevel: 2,
295
- title: C("bigconsole.dataSinks.view.details", "Details"),
297
+ title: w("bigconsole.dataSinks.view.details", "Details"),
296
298
  description: "Cache, refresh and storage settings for this sink.",
297
- children: /* @__PURE__ */ y("dl", {
299
+ children: /* @__PURE__ */ b("dl", {
298
300
  className: "divide-y divide-[var(--color-border-subtle)] text-sm",
299
301
  children: [
300
- /* @__PURE__ */ y("div", {
302
+ /* @__PURE__ */ b("div", {
301
303
  className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2 first:pt-0",
302
- children: [/* @__PURE__ */ v("dt", {
304
+ children: [/* @__PURE__ */ y("dt", {
303
305
  className: "min-w-0 text-text-secondary",
304
- children: C("bigconsole.dataSinks.view.status", "Status")
305
- }), /* @__PURE__ */ v("dd", { children: /* @__PURE__ */ v(o, {
306
+ children: w("bigconsole.dataSinks.view.status", "Status")
307
+ }), /* @__PURE__ */ y("dd", { children: /* @__PURE__ */ y(s, {
306
308
  status: V.status,
307
309
  size: "sm"
308
310
  }) })]
309
311
  }),
310
- /* @__PURE__ */ y("div", {
312
+ /* @__PURE__ */ b("div", {
311
313
  className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
312
- children: [/* @__PURE__ */ v("dt", {
314
+ children: [/* @__PURE__ */ y("dt", {
313
315
  className: "min-w-0 text-text-secondary",
314
- children: C("bigconsole.dataSinks.view.owner", "Owner")
315
- }), /* @__PURE__ */ v("dd", {
316
+ children: w("bigconsole.dataSinks.view.owner", "Owner")
317
+ }), /* @__PURE__ */ y("dd", {
316
318
  className: `min-w-0 break-words text-right ${H ? "font-medium text-text-primary" : "text-text-muted"}`,
317
319
  "data-testid": "datasink-owner",
318
- children: H || C("bigconsole.dataSinks.view.ownerNotSet", "Not set")
320
+ children: H || w("bigconsole.dataSinks.view.ownerNotSet", "Not set")
319
321
  })]
320
322
  }),
321
- /* @__PURE__ */ y("div", {
323
+ /* @__PURE__ */ b("div", {
322
324
  className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
323
- children: [/* @__PURE__ */ v("dt", {
325
+ children: [/* @__PURE__ */ y("dt", {
324
326
  className: "min-w-0 text-text-secondary",
325
- children: C("bigconsole.dataSinks.view.cacheTtl", "Cache TTL")
326
- }), /* @__PURE__ */ v("dd", {
327
+ children: w("bigconsole.dataSinks.view.cacheTtl", "Cache TTL")
328
+ }), /* @__PURE__ */ y("dd", {
327
329
  className: "font-medium text-text-primary",
328
- children: V.ttl ? `${V.ttl}s` : C("bigconsole.dataSinks.view.none", "None")
330
+ children: V.ttl ? `${V.ttl}s` : w("bigconsole.dataSinks.view.none", "None")
329
331
  })]
330
332
  }),
331
- /* @__PURE__ */ y("div", {
333
+ /* @__PURE__ */ b("div", {
332
334
  className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
333
- children: [/* @__PURE__ */ v("dt", {
335
+ children: [/* @__PURE__ */ y("dt", {
334
336
  className: "min-w-0 text-text-secondary",
335
- children: C("bigconsole.dataSinks.view.refreshType", "Refresh Type")
336
- }), /* @__PURE__ */ v("dd", {
337
+ children: w("bigconsole.dataSinks.view.refreshType", "Refresh Type")
338
+ }), /* @__PURE__ */ y("dd", {
337
339
  className: "font-medium capitalize text-text-primary",
338
- children: V.refresh?.type || C("bigconsole.dataSinks.view.manual", "Manual")
340
+ children: V.refresh?.type || w("bigconsole.dataSinks.view.manual", "Manual")
339
341
  })]
340
342
  }),
341
- /* @__PURE__ */ y("div", {
343
+ /* @__PURE__ */ b("div", {
342
344
  className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
343
- children: [/* @__PURE__ */ v("dt", {
345
+ children: [/* @__PURE__ */ y("dt", {
344
346
  className: "min-w-0 text-text-secondary",
345
- children: C("bigconsole.dataSinks.view.size", "Size")
346
- }), /* @__PURE__ */ v("dd", {
347
+ children: w("bigconsole.dataSinks.view.size", "Size")
348
+ }), /* @__PURE__ */ y("dd", {
347
349
  className: "font-medium text-text-primary",
348
- children: oe(V.sizeBytes || 0)
350
+ children: ae(V.sizeBytes || 0)
349
351
  })]
350
352
  }),
351
- /* @__PURE__ */ y("div", {
353
+ /* @__PURE__ */ b("div", {
352
354
  className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
353
- children: [/* @__PURE__ */ v("dt", {
355
+ children: [/* @__PURE__ */ y("dt", {
354
356
  className: "min-w-0 text-text-secondary",
355
- children: C("bigconsole.dataSinks.view.version", "Version")
356
- }), /* @__PURE__ */ v("dd", {
357
+ children: w("bigconsole.dataSinks.view.version", "Version")
358
+ }), /* @__PURE__ */ y("dd", {
357
359
  className: "font-medium text-text-primary",
358
360
  children: V.version || 1
359
361
  })]
360
362
  }),
361
- /* @__PURE__ */ y("div", {
363
+ /* @__PURE__ */ b("div", {
362
364
  className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2",
363
- children: [/* @__PURE__ */ v("dt", {
365
+ children: [/* @__PURE__ */ y("dt", {
364
366
  className: "min-w-0 text-text-secondary",
365
- children: C("bigconsole.dataSinks.view.lastRefreshed", "Last Refreshed")
366
- }), /* @__PURE__ */ v("dd", {
367
+ children: w("bigconsole.dataSinks.view.lastRefreshed", "Last Refreshed")
368
+ }), /* @__PURE__ */ y("dd", {
367
369
  className: "font-medium text-text-primary",
368
- children: V.lastRefreshedAt ? b(new Date(V.lastRefreshedAt), { addSuffix: !0 }) : C("bigconsole.dataSinks.view.never", "Never")
370
+ children: V.lastRefreshedAt ? x(new Date(V.lastRefreshedAt), { addSuffix: !0 }) : w("bigconsole.dataSinks.view.never", "Never")
369
371
  })]
370
372
  }),
371
- /* @__PURE__ */ y("div", {
373
+ /* @__PURE__ */ b("div", {
372
374
  className: "flex flex-wrap items-center justify-between gap-x-form-gap gap-y-1 py-2 last:pb-0",
373
- children: [/* @__PURE__ */ v("dt", {
375
+ children: [/* @__PURE__ */ y("dt", {
374
376
  className: "min-w-0 text-text-secondary",
375
- children: C("bigconsole.dataSinks.view.created", "Created")
376
- }), /* @__PURE__ */ v("dd", {
377
+ children: w("bigconsole.dataSinks.view.created", "Created")
378
+ }), /* @__PURE__ */ y("dd", {
377
379
  className: "font-medium text-text-primary",
378
- children: b(new Date(V.createdAt), { addSuffix: !0 })
380
+ children: x(new Date(V.createdAt), { addSuffix: !0 })
379
381
  })]
380
382
  })
381
383
  ]
382
384
  })
383
- }), /* @__PURE__ */ y(i, {
385
+ }), /* @__PURE__ */ b(a, {
384
386
  emphasis: "primary",
385
387
  headingLevel: 2,
386
- title: C("bigconsole.dataSinks.view.dataPreview", "Data Preview"),
388
+ title: w("bigconsole.dataSinks.view.dataPreview", "Data Preview"),
387
389
  description: "The rows this sink is currently serving to dashboards.",
388
- icon: /* @__PURE__ */ v(p, { className: "h-icon-sm w-icon-sm" }),
389
- actions: /* @__PURE__ */ y(_, { children: [w && /* @__PURE__ */ y("div", {
390
+ icon: /* @__PURE__ */ y(m, { className: "h-icon-sm w-icon-sm" }),
391
+ actions: /* @__PURE__ */ b(v, { children: [T && /* @__PURE__ */ b("div", {
390
392
  role: "group",
391
- "aria-label": C("bigconsole.dataSinks.view.dataPreview", "Data Preview"),
393
+ "aria-label": w("bigconsole.dataSinks.view.dataPreview", "Data Preview"),
392
394
  className: "flex items-center overflow-hidden rounded-button border border-[var(--color-border-default)]",
393
- children: [/* @__PURE__ */ v("button", {
395
+ children: [/* @__PURE__ */ y("button", {
394
396
  type: "button",
395
397
  onClick: () => L("table"),
396
398
  "aria-pressed": I === "table",
397
- className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface ${x} ${I === "table" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
398
- title: C("bigconsole.dataSinks.view.tableView", "Table view"),
399
- children: /* @__PURE__ */ v(Ne, { className: "w-4 h-4" })
400
- }), /* @__PURE__ */ v("button", {
399
+ className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface ${S} ${I === "table" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
400
+ title: w("bigconsole.dataSinks.view.tableView", "Table view"),
401
+ children: /* @__PURE__ */ y(Me, { className: "w-4 h-4" })
402
+ }), /* @__PURE__ */ y("button", {
401
403
  type: "button",
402
404
  onClick: () => L("json"),
403
405
  "aria-pressed": I === "json",
404
- className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface ${x} ${I === "json" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
405
- title: C("bigconsole.dataSinks.view.jsonView", "JSON view"),
406
- children: /* @__PURE__ */ v(Oe, { className: "w-4 h-4" })
406
+ className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface ${S} ${I === "json" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
407
+ title: w("bigconsole.dataSinks.view.jsonView", "JSON view"),
408
+ children: /* @__PURE__ */ y(De, { className: "w-4 h-4" })
407
409
  })]
408
- }), /* @__PURE__ */ v(g, {
409
- onClick: nt,
410
+ }), /* @__PURE__ */ y(_, {
411
+ onClick: rt,
410
412
  disabled: P,
411
- variant: w ? "secondary" : "default",
413
+ variant: T ? "secondary" : "default",
412
414
  size: "sm",
413
- children: P ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(m, { className: "w-4 h-4 mr-2 animate-spin" }), C("bigconsole.dataSinks.view.loading", "Loading...")] }) : w ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Me, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.hideData", "Hide Data")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(je, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.showData", "Show Data")] })
415
+ children: P ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(h, { className: "w-4 h-4 mr-2 animate-spin" }), w("bigconsole.dataSinks.view.loading", "Loading...")] }) : T ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(je, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.hideData", "Hide Data")] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Ae, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.showData", "Show Data")] })
414
416
  })] }),
415
- children: [w && N && /* @__PURE__ */ y(_, { children: [v(I === "table" ? ue : le, {
417
+ children: [T && N && /* @__PURE__ */ b(v, { children: [y(I === "table" ? le : ce, {
416
418
  data: N,
417
419
  maxHeight: "400px"
418
- }), B !== null && /* @__PURE__ */ y("div", {
420
+ }), B !== null && /* @__PURE__ */ b("div", {
419
421
  className: "mt-form-gap flex flex-wrap items-center justify-between gap-form-gap border-t border-[var(--color-border-subtle)] pt-form-gap",
420
- children: [/* @__PURE__ */ y("label", {
422
+ children: [/* @__PURE__ */ b("label", {
421
423
  className: "flex items-center gap-2 text-sm text-text-secondary",
422
- children: [/* @__PURE__ */ v("span", { children: C("bigconsole.dataSinks.view.rowsPerPage", "Rows per page") }), /* @__PURE__ */ v("select", {
423
- "aria-label": C("bigconsole.dataSinks.view.rowsPerPage", "Rows per page"),
424
+ children: [/* @__PURE__ */ y("span", { children: w("bigconsole.dataSinks.view.rowsPerPage", "Rows per page") }), /* @__PURE__ */ y(Re, {
425
+ "aria-label": w("bigconsole.dataSinks.view.rowsPerPage", "Rows per page"),
424
426
  className: "h-control-md rounded-input border border-[var(--color-border-default)] bg-bg-canvas px-2 text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
425
427
  value: R,
426
- onChange: (e) => rt(Number(e.target.value)),
428
+ onChange: (e) => it(Number(e.target.value)),
427
429
  children: [
428
430
  100,
429
431
  500,
430
432
  1e3
431
- ].map((e) => /* @__PURE__ */ v("option", {
433
+ ].map((e) => /* @__PURE__ */ y("option", {
432
434
  value: e,
433
435
  children: e
434
436
  }, e))
435
437
  })]
436
- }), /* @__PURE__ */ y("div", {
438
+ }), /* @__PURE__ */ b("div", {
437
439
  className: "flex flex-wrap items-center gap-control-gap text-sm text-text-secondary",
438
440
  children: [
439
- /* @__PURE__ */ v("span", { children: B === 0 ? C("bigconsole.dataSinks.view.zeroRows", "0 rows") : C("bigconsole.dataSinks.view.rowRange", "{{start}}–{{end}} of {{total}}", {
441
+ /* @__PURE__ */ y("span", { children: B === 0 ? w("bigconsole.dataSinks.view.zeroRows", "0 rows") : w("bigconsole.dataSinks.view.rowRange", "{{start}}–{{end}} of {{total}}", {
440
442
  start: z + 1,
441
443
  end: Math.min(z + R, B),
442
444
  total: B
443
445
  }) }),
444
- /* @__PURE__ */ v(g, {
446
+ /* @__PURE__ */ y(_, {
445
447
  variant: "secondary",
446
448
  size: "sm",
447
449
  disabled: z === 0 || P,
448
450
  onClick: () => void Q(Math.max(0, z - R), R),
449
- children: C("bigconsole.dataSinks.view.previous", "Previous")
451
+ children: w("bigconsole.dataSinks.view.previous", "Previous")
450
452
  }),
451
- /* @__PURE__ */ v(g, {
453
+ /* @__PURE__ */ y(_, {
452
454
  variant: "secondary",
453
455
  size: "sm",
454
- disabled: !Xe || P,
456
+ disabled: !Ze || P,
455
457
  onClick: () => void Q(z + R, R),
456
- children: C("bigconsole.dataSinks.view.next", "Next")
458
+ children: w("bigconsole.dataSinks.view.next", "Next")
457
459
  })
458
460
  ]
459
461
  })]
460
- })] }), !w && (a(V) ? /* @__PURE__ */ y("p", {
462
+ })] }), !T && (o(V) ? /* @__PURE__ */ b("p", {
461
463
  className: "flex items-center gap-icon-gap text-sm text-text-secondary",
462
- children: [/* @__PURE__ */ v(p, {
464
+ children: [/* @__PURE__ */ y(m, {
463
465
  "aria-hidden": "true",
464
466
  className: "h-icon-sm w-icon-sm shrink-0 text-text-muted"
465
- }), C("bigconsole.dataSinks.view.showDataHint", "Click \"Show Data\" to preview the cached data.")]
466
- }) : /* @__PURE__ */ y("div", {
467
+ }), w("bigconsole.dataSinks.view.showDataHint", "Click \"Show Data\" to preview the cached data.")]
468
+ }) : /* @__PURE__ */ b("div", {
467
469
  className: "flex flex-col items-center gap-form-gap py-form-gap text-center",
468
470
  children: [
469
- /* @__PURE__ */ v(p, {
471
+ /* @__PURE__ */ y(m, {
470
472
  "aria-hidden": "true",
471
473
  className: "h-icon-lg w-icon-lg text-text-muted"
472
474
  }),
473
- /* @__PURE__ */ v("p", {
475
+ /* @__PURE__ */ y("p", {
474
476
  className: "text-sm text-text-secondary",
475
- children: C("bigconsole.dataSinks.view.noDataYet", "This data sink has no data yet. Upload a CSV or build a workflow to import data.")
477
+ children: w("bigconsole.dataSinks.view.noDataYet", "This data sink has no data yet. Upload a CSV or build a workflow to import data.")
476
478
  }),
477
- /* @__PURE__ */ y(g, {
478
- onClick: ot,
479
+ /* @__PURE__ */ b(_, {
480
+ onClick: st,
479
481
  variant: "default",
480
482
  size: "sm",
481
- children: [/* @__PURE__ */ v(h, { className: "w-4 h-4 mr-2" }), C("bigconsole.dataSinks.view.importData", "Import Data")]
483
+ children: [/* @__PURE__ */ y(g, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.importData", "Import Data")]
482
484
  })
483
485
  ]
484
486
  }))]
485
487
  })]
486
- }), /* @__PURE__ */ y("div", {
488
+ }), /* @__PURE__ */ b("div", {
487
489
  className: "grid min-w-0 gap-section-gap md:grid-cols-2",
488
490
  children: [
489
- V.fluidGridsWorkflowId && /* @__PURE__ */ v(me, {
491
+ V.fluidGridsWorkflowId && /* @__PURE__ */ y(pe, {
490
492
  workflowId: V.fluidGridsWorkflowId,
491
493
  executionId: V.fluidGridsWorkflowExecutionId || void 0,
492
494
  lastRefreshedAt: V.lastRefreshedAt || void 0,
493
495
  setupState: V.setupState,
494
496
  status: V.status,
495
497
  onRerunWorkflow: Z,
496
- disabled: E,
497
- isRerunning: E
498
+ disabled: D,
499
+ isRerunning: D
498
500
  }),
499
- /* @__PURE__ */ v(de, {
501
+ /* @__PURE__ */ y(ue, {
500
502
  workflowLinks: V.workflowLinks,
501
503
  dataSinkKey: V.key,
502
- onLinked: et
504
+ onLinked: tt
503
505
  }),
504
- /* @__PURE__ */ v(pe, { dataSinkKey: V.key })
506
+ /* @__PURE__ */ y(fe, { dataSinkKey: V.key })
505
507
  ]
506
508
  })]
507
509
  }),
508
- /* @__PURE__ */ v(Le, {
510
+ /* @__PURE__ */ y(Ie, {
509
511
  storageKey: "bigconsole-datasink-view",
510
512
  steps: [
511
513
  {
512
514
  id: "preview",
513
- label: C("bigconsole.dataSinks.view.nextSteps.previewLabel", "Preview the data"),
514
- description: C("bigconsole.dataSinks.view.nextSteps.previewDescription", "Open the cached rows to confirm the sink holds what you expect."),
515
- onClick: nt
515
+ label: w("bigconsole.dataSinks.view.nextSteps.previewLabel", "Preview the data"),
516
+ description: w("bigconsole.dataSinks.view.nextSteps.previewDescription", "Open the cached rows to confirm the sink holds what you expect."),
517
+ onClick: rt
516
518
  },
517
519
  {
518
520
  id: "refresh",
519
- label: C("bigconsole.dataSinks.view.nextSteps.refreshLabel", "Refresh from source"),
520
- description: C("bigconsole.dataSinks.view.nextSteps.refreshDescription", "Re-run the linked workflow to pull the latest data."),
521
+ label: w("bigconsole.dataSinks.view.nextSteps.refreshLabel", "Refresh from source"),
522
+ description: w("bigconsole.dataSinks.view.nextSteps.refreshDescription", "Re-run the linked workflow to pull the latest data."),
521
523
  onClick: Z
522
524
  },
523
525
  {
524
526
  id: "build-dashboard",
525
- label: C("bigconsole.dataSinks.view.nextSteps.dashboardLabel", "Visualize it on a dashboard"),
526
- description: C("bigconsole.dataSinks.view.nextSteps.dashboardDescription", "Add widgets that query this sink to see your data live."),
527
- onClick: () => S("/dashboards")
527
+ label: w("bigconsole.dataSinks.view.nextSteps.dashboardLabel", "Visualize it on a dashboard"),
528
+ description: w("bigconsole.dataSinks.view.nextSteps.dashboardDescription", "Add widgets that query this sink to see your data live."),
529
+ onClick: () => C("/dashboards")
528
530
  },
529
531
  {
530
532
  id: "export",
531
- label: C("bigconsole.dataSinks.view.nextSteps.exportLabel", "Export the data"),
532
- description: C("bigconsole.dataSinks.view.nextSteps.exportDescription", "Download the contents for use elsewhere."),
533
- onClick: it
533
+ label: w("bigconsole.dataSinks.view.nextSteps.exportLabel", "Export the data"),
534
+ description: w("bigconsole.dataSinks.view.nextSteps.exportDescription", "Download the contents for use elsewhere."),
535
+ onClick: at
534
536
  }
535
537
  ]
536
538
  }),
537
- c && /* @__PURE__ */ v(ge, {
538
- isOpen: Ge,
539
- dataSinkId: c,
539
+ l && /* @__PURE__ */ y(he, {
540
+ isOpen: Ke,
541
+ dataSinkId: l,
540
542
  dataSinkName: V.name || V.key,
541
- columnSuggestions: Qe,
543
+ columnSuggestions: $e,
542
544
  onClose: () => M(!1)
543
545
  }),
544
- /* @__PURE__ */ v(he, {
545
- isOpen: Ue,
546
- dataSinkId: c || null,
546
+ /* @__PURE__ */ y(me, {
547
+ isOpen: We,
548
+ dataSinkId: l || null,
547
549
  dataSinkName: V.name || V.key,
548
- onClose: at
550
+ onClose: ot
549
551
  }),
550
- /* @__PURE__ */ v(ve, {
551
- isOpen: We,
552
+ /* @__PURE__ */ y(_e, {
553
+ isOpen: Ge,
552
554
  dataSinkName: V.name || V.key,
553
- hasExistingData: a(V),
554
- onClose: st,
555
- onGoToWorkflows: ct,
556
- onImportCsv: lt
555
+ hasExistingData: o(V),
556
+ onClose: ct,
557
+ onGoToWorkflows: lt,
558
+ onImportCsv: ut
557
559
  })
558
560
  ]
559
561
  });
560
562
  });
561
- export { S as DataSinkViewPage, S as default };
563
+ export { C as DataSinkViewPage, C as default };