@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
@@ -14,30 +14,31 @@ import ee from "../hooks/usePageOperations.js";
14
14
  import "../hooks/index.js";
15
15
  import te, { parseUrlToGlobalFilterValues as ne } from "../hooks/useFilterUrlSync.js";
16
16
  import re from "../hooks/useActivePage.js";
17
- import { DashboardCanvas as ie } from "../components/dashboard/DashboardCanvas.js";
18
- import { dashboardPageTabs as ae } from "../assistant/pageControls.js";
19
- import { LiveCanvasToggle as oe } from "../components/dashboard/LiveCanvasToggle.js";
20
- import { ExportDashboardDialog as se } from "../components/dashboard/ExportDashboardDialog.js";
21
- import { DrilldownBreadcrumb as ce } from "../components/dashboard/DrilldownBreadcrumb.js";
22
- import { PublishToStoreDialog as le } from "../components/dashboard/PublishToStoreDialog.js";
23
- import { loadBigConsoleSettings as ue } from "../hooks/useBigConsoleSettings.js";
17
+ import { dashboardPageTabs as ie } from "../assistant/pageControls.js";
18
+ import { DashboardCanvas as ae } from "../components/dashboard/DashboardCanvas.js";
19
+ import { loadBigConsoleSettings as oe } from "../hooks/useBigConsoleSettings.js";
20
+ import { LiveCanvasToggle as se } from "../components/dashboard/LiveCanvasToggle.js";
21
+ import { ExportDashboardDialog as ce } from "../components/dashboard/ExportDashboardDialog.js";
22
+ import { DrilldownBreadcrumb as le } from "../components/dashboard/DrilldownBreadcrumb.js";
23
+ import { PublishToStoreDialog as ue } from "../components/dashboard/PublishToStoreDialog.js";
24
24
  import { LIVE_STRUCTURE_POLL_MS as de, isLiveDataRefreshDue as fe } from "../utils/liveBoardRefresh.js";
25
- import { DigestPanel as pe } from "../components/narrative/DigestPanel.js";
26
- import { registerBreadcrumbName as me, unregisterBreadcrumbName as he } from "../utils/breadcrumbRegistry.js";
25
+ import { registerBreadcrumbName as pe, unregisterBreadcrumbName as me } from "../utils/breadcrumbRegistry.js";
26
+ import { DigestPanel as he } from "../components/narrative/DigestPanel.js";
27
27
  import { GetWidgetDocument as ge } from "../../generated/wspace-operations.js";
28
- import { memo as c, useCallback as l, useEffect as u, useMemo as d, useRef as _e, useState as f } from "react";
29
- import { useLocation as ve, useParams as ye } from "react-router";
30
- import { AccessDenied as be } from "@burdenoff/fe-libs/shared/components";
31
- import { usePermissions as xe } from "@burdenoff/fe-libs/shared/providers/shell";
32
- import { ArrowLeft as Se, Sparkles as Ce } from "lucide-react";
33
- import { Button as p, IllustratedEmptyState as we } from "@burdenoff/fe-libs/ui";
34
- import { useI18n as Te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
35
- import { useApolloClient as Ee } from "@apollo/client/react";
36
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
37
- import { useAssistantPageControls as De } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
28
+ import { dashboardSuggestAnchorProps as _e } from "../proactive/entities.js";
29
+ import { memo as c, useCallback as l, useEffect as u, useMemo as ve, useRef as ye, useState as d } from "react";
30
+ import { useLocation as be, useParams as xe } from "react-router";
31
+ import { AccessDenied as Se } from "@burdenoff/fe-libs/shared/components";
32
+ import { usePermissions as Ce } from "@burdenoff/fe-libs/shared/providers/shell";
33
+ import { ArrowLeft as we, Sparkles as Te } from "lucide-react";
34
+ import { Button as f, IllustratedEmptyState as Ee } from "@burdenoff/fe-libs/ui";
35
+ import { useI18n as De } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
36
+ import { useApolloClient as Oe } from "@apollo/client/react";
37
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
38
+ import { useAssistantPageControls as ke } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
38
39
  // src/bigconsole/pages/DashboardViewPage.tsx
39
- var _ = c(function() {
40
- let { dashboardId: c } = ye(), _ = i(), Oe = r(), { t: v } = Te(), y = Ee(), { hasPermission: b, isLoading: x } = xe(), S = b(n.DASHBOARD_READ), ke = b(n.DASHBOARD_UPDATE), Ae = b(n.DASHBOARD_EXPORT), je = b(n.DASHBOARD_PUBLISH), [Me, C] = f(!1), [w, T] = f(!1), [Ne, E] = f(!1), [D, Pe] = f(!1), [O, k] = f(!1), { isInDrilldown: A, getContextFromUrl: j, getDrilldownMetadata: M } = te(), N = t((e) => e.currentDashboard), P = t((e) => e.setCurrentDashboard), F = t((e) => e.setGlobalFilterValue), I = t((e) => e.clearAllGlobalFilters), L = t((e) => e.setGlobalFilterValues), R = e((e) => e.widgets), Fe = ve(), { activePageId: z, setActivePage: B } = re(N?.id === c ? N?.pages : void 0), V = e((e) => e.clipboardWidgetId), H = e((e) => e.clipboardAction), U = e((e) => e.clearClipboard), W = e((e) => e.selectWidget), { loading: G, error: K, fetchDashboard: q, updateDashboard: J } = s(), { createWidget: Y, deleteWidget: Ie, duplicateWidget: Le, batchUpdatePositions: Re, refetch: ze } = o(z || void 0, c), { createPage: Be, updatePage: Ve, deletePage: He, duplicatePage: Ue, reorderPages: We } = ee(), Ge = l((e) => {
40
+ var g = c(function() {
41
+ let { dashboardId: c } = xe(), g = i(), Ae = r(), { t: _ } = De(), je = Oe(), { hasPermission: v, isLoading: y } = Ce(), b = v(n.DASHBOARD_READ), Me = v(n.DASHBOARD_UPDATE), Ne = v(n.DASHBOARD_EXPORT), Pe = v(n.DASHBOARD_PUBLISH), [Fe, x] = d(!1), [S, C] = d(!1), [Ie, w] = d(!1), [T, Le] = d(!1), [Re, ze] = d(!1), { isInDrilldown: E, getContextFromUrl: Be, getDrilldownMetadata: D } = te(), O = t((e) => e.currentDashboard), k = t((e) => e.setCurrentDashboard), A = t((e) => e.setGlobalFilterValue), j = t((e) => e.clearAllGlobalFilters), M = t((e) => e.setGlobalFilterValues), N = e((e) => e.widgets), Ve = be(), { activePageId: P, setActivePage: F } = re(O?.id === c ? O?.pages : void 0), I = e((e) => e.clipboardWidgetId), L = e((e) => e.clipboardAction), R = e((e) => e.clearClipboard), z = e((e) => e.selectWidget), { loading: B, error: V, fetchDashboard: H, updateDashboard: U } = s(), { createWidget: W, deleteWidget: G, duplicateWidget: K, batchUpdatePositions: q, refetch: J } = o(P || void 0, c), { createPage: Y, updatePage: He, deletePage: Ue, duplicatePage: We, reorderPages: Ge } = ee(), Ke = l((e) => {
41
42
  let t = e?.parentElement;
42
43
  if (!e || !t) return;
43
44
  let n = t;
@@ -57,40 +58,40 @@ var _ = c(function() {
57
58
  };
58
59
  }, []);
59
60
  u(() => {
60
- if (!c) _("/dashboards");
61
- else return L(ne(window.location.search, "filter_")), T(!1), q(c).then((e) => {
62
- e || T(!0);
61
+ if (!c) g("/dashboards");
62
+ else return M(ne(window.location.search, "filter_")), C(!1), H(c).then((e) => {
63
+ e || C(!0);
63
64
  }), () => {
64
- P(null), I(), T(!1);
65
+ k(null), j(), C(!1);
65
66
  };
66
67
  }, [
67
68
  c,
68
- _,
69
- q,
70
- P,
71
- I,
72
- L
69
+ g,
70
+ H,
71
+ k,
72
+ j,
73
+ M
73
74
  ]), u(() => {
74
- if (!A) return;
75
- let e = j(), t = M();
75
+ if (!E) return;
76
+ let e = Be(), t = D();
76
77
  Object.entries(e).forEach(([e, t]) => {
77
- F(`ctx_${e}`, t);
78
- }), t.depth > 0 && (F("__drilldown_depth", t.depth), F("__drilldown_parent", t.parent), F("__drilldown_path", t.path)), Object.keys(e).length;
78
+ A(`ctx_${e}`, t);
79
+ }), t.depth > 0 && (A("__drilldown_depth", t.depth), A("__drilldown_parent", t.parent), A("__drilldown_path", t.path)), Object.keys(e).length;
79
80
  }, [
81
+ E,
82
+ Be,
83
+ D,
80
84
  A,
81
- j,
82
- M,
83
- F,
84
- Fe.search
85
+ Ve.search
85
86
  ]);
86
- let Ke = _e(ze);
87
- Ke.current = ze, u(() => {
88
- if (!D || !c) return;
87
+ let qe = ye(J);
88
+ qe.current = J, u(() => {
89
+ if (!T || !c) return;
89
90
  let e = null, n = () => {
90
91
  if (typeof document < "u" && document.visibilityState !== "visible" || t.getState().viewMode === "edit") return;
91
- q(c, { silent: !0 }), Ke.current();
92
+ H(c, { silent: !0 }), qe.current();
92
93
  let n = Date.now();
93
- fe(e, n) && (e = n, y.refetchQueries({ include: [ge] }).catch((e) => {
94
+ fe(e, n) && (e = n, je.refetchQueries({ include: [ge] }).catch((e) => {
94
95
  console.warn("[DashboardViewPage] Live widget data refresh failed", e);
95
96
  }));
96
97
  };
@@ -102,52 +103,52 @@ var _ = c(function() {
102
103
  window.clearInterval(r), document.removeEventListener("visibilitychange", i);
103
104
  };
104
105
  }, [
105
- D,
106
+ T,
106
107
  c,
107
- q,
108
- y
108
+ H,
109
+ je
109
110
  ]);
110
- let qe = l(async () => {
111
+ let Je = l(async () => {
111
112
  if (c) {
112
- C(!0);
113
+ x(!0);
113
114
  try {
114
- let e = Array.from(R.values());
115
+ let e = Array.from(N.values());
115
116
  if (e.length > 0) {
116
117
  let t = e.map((e) => ({
117
118
  id: e.id,
118
119
  position: e.position
119
120
  }));
120
- await Re(t);
121
+ await q(t);
121
122
  }
122
- N && await J({
123
+ O && await U({
123
124
  id: c,
124
- name: N.name,
125
- description: N.description
125
+ name: O.name,
126
+ description: O.description
126
127
  });
127
128
  } catch {} finally {
128
- C(!1);
129
+ x(!1);
129
130
  }
130
131
  }
131
132
  }, [
132
133
  c,
133
- R,
134
134
  N,
135
- Re,
136
- J
137
- ]), Je = l(() => {
138
- _("/dashboards");
139
- }, [_]), X = l((e) => {
140
- B(e);
141
- }, [B]), Z = d(() => (N?.pages || []).map((e, t) => ({
135
+ O,
136
+ q,
137
+ U
138
+ ]), Ye = l(() => {
139
+ g("/dashboards");
140
+ }, [g]), X = l((e) => {
141
+ F(e);
142
+ }, [F]), Z = ve(() => (O?.pages || []).map((e, t) => ({
142
143
  id: e.id,
143
- name: e.name || v("bigconsole.dashboards.view.pageName", "Page {{count}}", { count: t + 1 }),
144
+ name: e.name || _("bigconsole.dashboards.view.pageName", "Page {{count}}", { count: t + 1 }),
144
145
  order: e.order ?? 0
145
- })), [N?.pages, v]), Q = N && N.id === c ? N.name : null, $ = z || N?.pages?.[0]?.id || null;
146
+ })), [O?.pages, _]), Q = O && O.id === c ? O.name : null, $ = P || O?.pages?.[0]?.id || null;
146
147
  u(() => {
147
- if (c && Q) return me(c, Q), () => he(c);
148
+ if (c && Q) return pe(c, Q), () => me(c);
148
149
  }, [c, Q]);
149
- let Ye = d(() => !x && S && !K && !w && !G && Q !== null ? ae({
150
- dashboardName: Q || v("bigconsole.dashboards.title", "Dashboards"),
150
+ let Xe = ve(() => !y && b && !V && !S && !B && Q !== null ? ie({
151
+ dashboardName: Q || _("bigconsole.dashboards.title", "Dashboards"),
151
152
  tabs: Z.map((e) => ({
152
153
  id: e.id,
153
154
  label: e.name
@@ -155,39 +156,39 @@ var _ = c(function() {
155
156
  current: $,
156
157
  select: X
157
158
  }) : null, [
158
- x,
159
+ y,
160
+ b,
161
+ V,
159
162
  S,
160
- K,
161
- w,
162
- G,
163
+ B,
163
164
  Q,
164
165
  Z,
165
166
  $,
166
167
  X,
167
- v
168
+ _
168
169
  ]);
169
- De(Ye);
170
- let Xe = l(async () => {
171
- let e = z || N?.pages?.[0]?.id;
172
- if (!V || !c || !e) return;
173
- let t = R.get(V);
170
+ ke(Xe);
171
+ let Ze = l(async () => {
172
+ let e = P || O?.pages?.[0]?.id;
173
+ if (!I || !c || !e) return;
174
+ let t = N.get(I);
174
175
  if (!t) {
175
- U();
176
+ R();
176
177
  return;
177
178
  }
178
179
  let n = {
179
180
  x: 0,
180
- y: Array.from(R.values()).reduce((e, t) => {
181
+ y: Array.from(N.values()).reduce((e, t) => {
181
182
  let n = (t.positionY ?? 0) + (t.positionHeight ?? 4);
182
183
  return Math.max(e, n);
183
184
  }, 0),
184
- width: Math.min(t.positionWidth ?? 4, N?.pages.find((t) => t.id === e)?.gridColumns ?? 12),
185
+ width: Math.min(t.positionWidth ?? 4, O?.pages.find((t) => t.id === e)?.gridColumns ?? 12),
185
186
  height: t.positionHeight ?? 4
186
- }, r = H === "copy" ? v("bigconsole.dashboards.view.widgetCopyTitle", "{{title}} (Copy)", { title: t.title }) : t.title, i = null;
187
+ }, r = L === "copy" ? _("bigconsole.dashboards.view.widgetCopyTitle", "{{title}} (Copy)", { title: t.title }) : t.title, i = null;
187
188
  try {
188
- i = await Le(V, n, r);
189
+ i = await K(I, n, r);
189
190
  } catch {}
190
- i ||= await Y({
191
+ i ||= await W({
191
192
  pageId: e,
192
193
  dashboardId: c,
193
194
  type: t.type,
@@ -201,270 +202,271 @@ var _ = c(function() {
201
202
  position: n,
202
203
  refreshInterval: t.refreshInterval ?? void 0,
203
204
  metadata: t.metadata
204
- }), i && (W(i.id), H === "cut" && await Ie(V)), U();
205
+ }), i && (z(i.id), L === "cut" && await G(I)), R();
205
206
  }, [
206
- V,
207
- H,
207
+ I,
208
+ L,
208
209
  c,
209
- z,
210
+ P,
211
+ O,
210
212
  N,
211
- R,
212
- Le,
213
- Y,
214
- Ie,
213
+ K,
215
214
  W,
216
- U,
217
- v
218
- ]), Ze = l(() => {
219
- E(!0);
220
- }, []), [Qe, $e] = f(!1), et = l(() => {
221
- $e(!0);
222
- }, []), tt = l(() => {
223
- $e(!1);
215
+ G,
216
+ z,
217
+ R,
218
+ _
219
+ ]), Qe = l(() => {
220
+ w(!0);
221
+ }, []), [$e, et] = d(!1), tt = l(() => {
222
+ et(!0);
224
223
  }, []), nt = l(() => {
225
- E(!1);
226
- }, []), rt = l(async () => {
227
- if (!N || !c) return;
228
- let e = (N.pages?.length || 0) + 1, t = v("bigconsole.dashboards.view.pageName", "Page {{count}}", { count: e }), n = await Be({
224
+ et(!1);
225
+ }, []), rt = l(() => {
226
+ w(!1);
227
+ }, []), it = l(async () => {
228
+ if (!O || !c) return;
229
+ let e = (O.pages?.length || 0) + 1, t = _("bigconsole.dashboards.view.pageName", "Page {{count}}", { count: e }), n = await Y({
229
230
  dashboardId: c,
230
231
  name: t,
231
- gridColumns: ue().defaultGridColumns
232
+ gridColumns: oe().defaultGridColumns
232
233
  });
233
- n && (P({
234
- ...N,
235
- pages: [...N.pages || [], n]
236
- }), B(n.id));
234
+ n && (k({
235
+ ...O,
236
+ pages: [...O.pages || [], n]
237
+ }), F(n.id));
237
238
  }, [
238
- N,
239
+ O,
239
240
  c,
240
- P,
241
- Be,
242
- B,
243
- v
244
- ]), it = l(async (e, t) => {
245
- N && await Ve({
241
+ k,
242
+ Y,
243
+ F,
244
+ _
245
+ ]), at = l(async (e, t) => {
246
+ O && await He({
246
247
  id: e,
247
248
  name: t
248
- }) && P({
249
- ...N,
250
- pages: N.pages?.map((n) => n.id === e ? {
249
+ }) && k({
250
+ ...O,
251
+ pages: O.pages?.map((n) => n.id === e ? {
251
252
  ...n,
252
253
  name: t
253
254
  } : n)
254
255
  });
255
256
  }, [
256
- N,
257
- P,
258
- Ve
259
- ]), at = l(async (e) => {
260
- if (!N || !c) return;
261
- let t = N.pages?.find((t) => t.id === e);
257
+ O,
258
+ k,
259
+ He
260
+ ]), ot = l(async (e) => {
261
+ if (!O || !c) return;
262
+ let t = O.pages?.find((t) => t.id === e);
262
263
  if (!t) return;
263
- let n = await Ue(e, v("bigconsole.dashboards.view.pageCopyName", "{{name}} (Copy)", { name: t.name ?? "" }));
264
- n && (P({
265
- ...N,
266
- pages: [...N.pages || [], n]
267
- }), B(n.id));
264
+ let n = await We(e, _("bigconsole.dashboards.view.pageCopyName", "{{name}} (Copy)", { name: t.name ?? "" }));
265
+ n && (k({
266
+ ...O,
267
+ pages: [...O.pages || [], n]
268
+ }), F(n.id));
268
269
  }, [
269
- N,
270
+ O,
270
271
  c,
271
- P,
272
- Ue,
273
- B,
274
- v
275
- ]), ot = l(async (e) => {
276
- if (!(!N || (N.pages?.length || 0) <= 1) && await He(e)) {
277
- let t = N.pages?.filter((t) => t.id !== e).map((e, t) => ({
272
+ k,
273
+ We,
274
+ F,
275
+ _
276
+ ]), st = l(async (e) => {
277
+ if (!(!O || (O.pages?.length || 0) <= 1) && await Ue(e)) {
278
+ let t = O.pages?.filter((t) => t.id !== e).map((e, t) => ({
278
279
  ...e,
279
280
  order: t
280
281
  }));
281
- P({
282
- ...N,
282
+ k({
283
+ ...O,
283
284
  pages: t
284
285
  });
285
286
  let n = t?.[0]?.id;
286
- z === e && n && B(n, { replace: !0 });
287
+ P === e && n && F(n, { replace: !0 });
287
288
  }
288
289
  }, [
289
- N,
290
+ O,
291
+ k,
290
292
  P,
291
- z,
292
- He,
293
- B
294
- ]), st = l(async (e) => {
295
- if (!N || !c) return;
296
- P({
297
- ...N,
293
+ Ue,
294
+ F
295
+ ]), ct = l(async (e) => {
296
+ if (!O || !c) return;
297
+ k({
298
+ ...O,
298
299
  pages: e.map((e, t) => ({
299
300
  ...e,
300
301
  order: t
301
302
  }))
302
303
  });
303
304
  let t = e.map((e) => e.id);
304
- await We(c, t);
305
+ await Ge(c, t);
305
306
  }, [
306
- N,
307
+ O,
307
308
  c,
308
- P,
309
- We
309
+ k,
310
+ Ge
310
311
  ]);
311
- return x ? /* @__PURE__ */ h("div", {
312
+ return y ? /* @__PURE__ */ m("div", {
312
313
  className: "flex items-center justify-center h-full",
313
- children: /* @__PURE__ */ h("div", { className: "animate-spin w-8 h-8 border-4 border-action-primary-bg border-t-transparent rounded-full" })
314
- }) : S ? K ? /* @__PURE__ */ h("div", {
314
+ children: /* @__PURE__ */ m("div", { className: "animate-spin w-8 h-8 border-4 border-action-primary-bg border-t-transparent rounded-full" })
315
+ }) : b ? V ? /* @__PURE__ */ m("div", {
315
316
  className: "flex h-full flex-col items-center justify-center",
316
317
  style: { padding: "var(--space-pagePadding)" },
317
- children: /* @__PURE__ */ h(a, {
318
+ children: /* @__PURE__ */ m(a, {
318
319
  headingLevel: 2,
319
320
  tone: "danger",
320
- title: v("bigconsole.dashboards.view.errorTitle", "Error loading dashboard"),
321
- description: /* @__PURE__ */ h("span", {
321
+ title: _("bigconsole.dashboards.view.errorTitle", "Error loading dashboard"),
322
+ description: /* @__PURE__ */ m("span", {
322
323
  className: "break-words",
323
- children: K.message
324
+ children: V.message
324
325
  }),
325
326
  className: "w-full max-w-md",
326
327
  "data-testid": "dashboard-view-error",
327
- actions: /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(p, {
328
+ actions: /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(f, {
328
329
  size: "sm",
329
- onClick: () => q(c),
330
- children: v("bigconsole.dashboards.view.retry", "Retry")
331
- }), /* @__PURE__ */ h(p, {
330
+ onClick: () => H(c),
331
+ children: _("bigconsole.dashboards.view.retry", "Retry")
332
+ }), /* @__PURE__ */ m(f, {
332
333
  size: "sm",
333
334
  variant: "outline",
334
- onClick: () => _("/dashboards"),
335
- children: v("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
335
+ onClick: () => g("/dashboards"),
336
+ children: _("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
336
337
  })] })
337
338
  })
338
- }) : w ? /* @__PURE__ */ h("div", {
339
+ }) : S ? /* @__PURE__ */ m("div", {
339
340
  className: "flex flex-col items-center justify-center h-full",
340
341
  style: { padding: "var(--space-pagePadding)" },
341
- children: /* @__PURE__ */ h(we, {
342
+ children: /* @__PURE__ */ m(Ee, {
342
343
  illustration: "empty-data",
343
- title: v("bigconsole.dashboards.view.notFoundTitle", "Dashboard not found"),
344
- description: /* @__PURE__ */ g(m, { children: [v("bigconsole.dashboards.view.notFoundDescription", "The dashboard you're looking for doesn't exist or has been deleted."), /* @__PURE__ */ h("span", {
344
+ title: _("bigconsole.dashboards.view.notFoundTitle", "Dashboard not found"),
345
+ description: /* @__PURE__ */ h(p, { children: [_("bigconsole.dashboards.view.notFoundDescription", "The dashboard you're looking for doesn't exist or has been deleted."), /* @__PURE__ */ m("span", {
345
346
  className: "mt-2 block font-mono text-xs text-text-muted break-all",
346
- children: v("bigconsole.dashboards.view.idLabel", "ID: {{id}}", { id: c ?? "" })
347
+ children: _("bigconsole.dashboards.view.idLabel", "ID: {{id}}", { id: c ?? "" })
347
348
  })] }),
348
- action: /* @__PURE__ */ h(p, {
349
- onClick: () => _("/dashboards"),
350
- children: v("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
349
+ action: /* @__PURE__ */ m(f, {
350
+ onClick: () => g("/dashboards"),
351
+ children: _("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards")
351
352
  })
352
353
  })
353
- }) : G || !N ? /* @__PURE__ */ h("div", {
354
+ }) : B || !O ? /* @__PURE__ */ m("div", {
354
355
  className: "flex items-center justify-center h-full",
355
356
  role: "status",
356
357
  "aria-live": "polite",
357
- children: /* @__PURE__ */ g("div", {
358
+ children: /* @__PURE__ */ h("div", {
358
359
  className: "flex flex-col items-center gap-4",
359
- children: [/* @__PURE__ */ h("div", { className: "animate-spin w-8 h-8 border-4 border-action-primary-bg border-t-transparent rounded-full" }), /* @__PURE__ */ h("p", {
360
+ children: [/* @__PURE__ */ m("div", { className: "animate-spin w-8 h-8 border-4 border-action-primary-bg border-t-transparent rounded-full" }), /* @__PURE__ */ m("p", {
360
361
  className: "text-sm text-text-secondary",
361
- children: v("bigconsole.dashboards.view.loading", "Loading dashboard...")
362
+ children: _("bigconsole.dashboards.view.loading", "Loading dashboard...")
362
363
  })]
363
364
  })
364
- }) : /* @__PURE__ */ g("div", {
365
- ref: Ge,
365
+ }) : /* @__PURE__ */ h("div", {
366
+ ref: Ke,
366
367
  className: "h-full flex flex-col overflow-hidden",
367
368
  children: [
368
- /* @__PURE__ */ h(a, {
369
+ /* @__PURE__ */ m(a, {
369
370
  emphasis: "bare",
370
371
  padding: "none",
371
372
  "data-testid": "dashboard-route-header",
372
373
  "aria-label": "Dashboard",
373
374
  className: "flex-shrink-0 border-b border-[var(--color-border-subtle)] bg-bg-surface px-3 py-2",
374
375
  headerClassName: "",
375
- header: /* @__PURE__ */ g("div", {
376
+ header: /* @__PURE__ */ h("div", {
376
377
  className: "flex flex-wrap items-center gap-control-gap",
377
378
  children: [
378
- /* @__PURE__ */ g(p, {
379
- onClick: Je,
379
+ /* @__PURE__ */ h(f, {
380
+ onClick: Ye,
380
381
  variant: "ghost",
381
382
  size: "sm",
382
- title: v("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards"),
383
- "aria-label": v("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards"),
383
+ title: _("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards"),
384
+ "aria-label": _("bigconsole.dashboards.view.backToDashboards", "Back to Dashboards"),
384
385
  className: "flex-shrink-0",
385
- children: [/* @__PURE__ */ h(Se, { className: "w-4 h-4 mr-2" }), v("bigconsole.dashboards.view.back", "Back")]
386
+ children: [/* @__PURE__ */ m(we, { className: "w-4 h-4 mr-2" }), _("bigconsole.dashboards.view.back", "Back")]
386
387
  }),
387
- /* @__PURE__ */ h("h1", {
388
+ /* @__PURE__ */ m("h1", {
388
389
  className: "min-w-0 flex-1 truncate text-sm font-semibold text-text-primary",
389
- title: N.name,
390
- children: N.name
390
+ title: O.name,
391
+ ..._e(O.id),
392
+ children: O.name
391
393
  }),
392
- /* @__PURE__ */ h("div", {
394
+ /* @__PURE__ */ m("div", {
393
395
  className: "flex-shrink-0",
394
- children: /* @__PURE__ */ h(oe, {
395
- isLive: D,
396
- onToggle: () => Pe((e) => !e)
396
+ children: /* @__PURE__ */ m(se, {
397
+ isLive: T,
398
+ onToggle: () => Le((e) => !e)
397
399
  })
398
400
  }),
399
- /* @__PURE__ */ h("div", {
401
+ /* @__PURE__ */ m("div", {
400
402
  className: "flex-shrink-0",
401
- children: /* @__PURE__ */ g(p, {
402
- onClick: () => k((e) => !e),
403
+ children: /* @__PURE__ */ h(f, {
404
+ onClick: () => ze((e) => !e),
403
405
  variant: "ghost",
404
406
  size: "sm",
405
- "aria-pressed": O,
406
- title: v("bigconsole.dashboards.view.digest", "Console digest"),
407
- "aria-label": v("bigconsole.dashboards.view.digest", "Console digest"),
408
- children: [/* @__PURE__ */ h(Ce, { className: "w-4 h-4 mr-2" }), v("bigconsole.dashboards.view.digest", "Digest")]
407
+ "aria-pressed": Re,
408
+ title: _("bigconsole.dashboards.view.digest", "Console digest"),
409
+ "aria-label": _("bigconsole.dashboards.view.digest", "Console digest"),
410
+ children: [/* @__PURE__ */ m(Te, { className: "w-4 h-4 mr-2" }), _("bigconsole.dashboards.view.digest", "Digest")]
409
411
  })
410
412
  })
411
413
  ]
412
414
  })
413
415
  }),
414
- O && N && /* @__PURE__ */ h("div", {
416
+ Re && O && /* @__PURE__ */ m("div", {
415
417
  className: "flex-shrink-0 border-b border-[var(--color-border-subtle)] bg-bg-surface px-3 py-2 sm:px-4",
416
- children: /* @__PURE__ */ h("div", {
418
+ children: /* @__PURE__ */ m("div", {
417
419
  className: "mx-auto max-w-3xl",
418
- children: /* @__PURE__ */ h(pe, {
419
- dashboardId: N.id,
420
- onClose: () => k(!1)
420
+ children: /* @__PURE__ */ m(he, {
421
+ dashboardId: O.id,
422
+ onClose: () => ze(!1)
421
423
  })
422
424
  })
423
425
  }),
424
- A && /* @__PURE__ */ h(ce, {
425
- currentDashboardId: N.id,
426
- currentDashboardName: N.name,
427
- basePath: `${Oe}/dashboards`
426
+ E && /* @__PURE__ */ m(le, {
427
+ currentDashboardId: O.id,
428
+ currentDashboardName: O.name,
429
+ basePath: `${Ae}/dashboards`
428
430
  }),
429
- /* @__PURE__ */ h("div", {
431
+ /* @__PURE__ */ m("div", {
430
432
  className: "flex-1 min-w-0 overflow-hidden",
431
- children: /* @__PURE__ */ h(ie, {
432
- dashboardId: N.id,
433
- pageId: z || N.pages?.[0]?.id,
434
- title: N.name,
435
- onPaste: Xe,
436
- onSave: ke ? qe : void 0,
437
- isSaving: Me,
438
- onExport: Ae ? Ze : void 0,
439
- onPublishTemplate: je ? et : void 0,
433
+ children: /* @__PURE__ */ m(ae, {
434
+ dashboardId: O.id,
435
+ pageId: P || O.pages?.[0]?.id,
436
+ title: O.name,
437
+ onPaste: Ze,
438
+ onSave: Me ? Je : void 0,
439
+ isSaving: Fe,
440
+ onExport: Ne ? Qe : void 0,
441
+ onPublishTemplate: Pe ? tt : void 0,
440
442
  pages: Z,
441
443
  activePageId: $ ?? void 0,
442
444
  onPageChange: X,
443
- onPageAdd: rt,
444
- onPageRename: it,
445
- onPageDuplicate: at,
446
- onPageDelete: ot,
447
- onPagesReorder: st,
445
+ onPageAdd: it,
446
+ onPageRename: at,
447
+ onPageDuplicate: ot,
448
+ onPageDelete: st,
449
+ onPagesReorder: ct,
448
450
  showPageTabs: !0
449
451
  })
450
452
  }),
451
- /* @__PURE__ */ h(se, {
452
- isOpen: Ne,
453
- dashboardId: N.id,
454
- dashboardName: N.name,
455
- onClose: nt
453
+ /* @__PURE__ */ m(ce, {
454
+ isOpen: Ie,
455
+ dashboardId: O.id,
456
+ dashboardName: O.name,
457
+ onClose: rt
456
458
  }),
457
- /* @__PURE__ */ h(le, {
458
- isOpen: Qe,
459
- dashboardId: N.id,
460
- dashboardName: N.name,
461
- dashboardDescription: N.description,
462
- onClose: tt
459
+ /* @__PURE__ */ m(ue, {
460
+ isOpen: $e,
461
+ dashboardId: O.id,
462
+ dashboardName: O.name,
463
+ dashboardDescription: O.description,
464
+ onClose: nt
463
465
  })
464
466
  ]
465
- }) : /* @__PURE__ */ h(be, {
466
- title: v("bigconsole.dashboards.view.accessDeniedTitle", "Access Denied"),
467
- description: v("bigconsole.dashboards.view.accessDeniedDescription", "You don't have permission to view this dashboard.")
467
+ }) : /* @__PURE__ */ m(Se, {
468
+ title: _("bigconsole.dashboards.view.accessDeniedTitle", "Access Denied"),
469
+ description: _("bigconsole.dashboards.view.accessDeniedDescription", "You don't have permission to view this dashboard.")
468
470
  });
469
471
  });
470
- export { _ as DashboardViewPage, _ as default };
472
+ export { g as DashboardViewPage, g as default };