@burdenoff/microfe-bigconsole 2026.1113.1 → 2026.1113.2

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