@burdenoff/microfe-bigconsole 2026.1113.1 → 2026.1115.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 (43) hide show
  1. package/dist/bigconsole/components/datasink/DataSinkCard.js +60 -58
  2. package/dist/bigconsole/components/widgets/PropertiesPanel.js +383 -380
  3. package/dist/bigconsole/components/widgets/WidgetWrapper.js +123 -121
  4. package/dist/bigconsole/context/BigConsoleContext.d.ts +2 -0
  5. package/dist/bigconsole/context/BigConsoleContext.js +14 -12
  6. package/dist/bigconsole/pages/DashboardViewPage.js +241 -239
  7. package/dist/bigconsole/pages/DashboardsPage.js +265 -262
  8. package/dist/bigconsole/pages/DataSinkViewPage.js +253 -251
  9. package/dist/bigconsole/pages/DataSinksPage.js +162 -160
  10. package/dist/bigconsole/pages/SettingsPage.js +127 -123
  11. package/dist/bigconsole/proactive/actions.d.ts +16 -0
  12. package/dist/bigconsole/proactive/actions.js +34 -0
  13. package/dist/bigconsole/proactive/activityEntity.d.ts +5 -0
  14. package/dist/bigconsole/proactive/activityEntity.js +27 -0
  15. package/dist/bigconsole/proactive/entities.d.ts +16 -0
  16. package/dist/bigconsole/proactive/entities.js +20 -0
  17. package/dist/bigconsole/proactive/index.d.ts +15 -0
  18. package/dist/bigconsole/proactive/index.js +5 -0
  19. package/dist/bigconsole/proactive/routes.d.ts +11 -0
  20. package/dist/bigconsole/proactive/routes.js +6 -0
  21. package/dist/bigconsole/types/index.d.ts +7 -0
  22. package/dist/bigconsole/utils/widgetPanelPosition.d.ts +24 -0
  23. package/dist/bigconsole/utils/widgetPanelPosition.js +24 -0
  24. package/dist/generated/wspace-operations.js +213 -19
  25. package/dist/node_modules/zod/v4/classic/errors.js +42 -0
  26. package/dist/node_modules/zod/v4/classic/parse.js +5 -0
  27. package/dist/node_modules/zod/v4/classic/schemas.js +622 -0
  28. package/dist/node_modules/zod/v4/core/api.js +427 -0
  29. package/dist/node_modules/zod/v4/core/checks.js +141 -0
  30. package/dist/node_modules/zod/v4/core/core.js +82 -0
  31. package/dist/node_modules/zod/v4/core/doc.js +27 -0
  32. package/dist/node_modules/zod/v4/core/errors.js +88 -0
  33. package/dist/node_modules/zod/v4/core/json-schema-processors.js +190 -0
  34. package/dist/node_modules/zod/v4/core/memoizer.js +186 -0
  35. package/dist/node_modules/zod/v4/core/parse.js +157 -0
  36. package/dist/node_modules/zod/v4/core/regexes.js +32 -0
  37. package/dist/node_modules/zod/v4/core/registries.js +39 -0
  38. package/dist/node_modules/zod/v4/core/schemas.js +856 -0
  39. package/dist/node_modules/zod/v4/core/to-json-schema.js +328 -0
  40. package/dist/node_modules/zod/v4/core/util.js +415 -0
  41. package/dist/node_modules/zod/v4/core/versions.js +7 -0
  42. package/dist/node_modules/zod/v4/locales/en.js +94 -0
  43. package/package.json +8 -4
@@ -5,28 +5,29 @@ import { Section as r, SectionStack as i } from "../components/common/Section.js
5
5
  import { SortBySelect as a } from "../components/common/SortBySelect.js";
6
6
  import "../context/index.js";
7
7
  import o from "../hooks/useDashboardOperations.js";
8
- import { isNative as s, nativeConfirm as ee, nativeImpact as c, nativeNotify as l } from "../../utils/nativeBridge.js";
8
+ import { isNative as s, nativeConfirm as ee, nativeImpact as te, nativeNotify as c } from "../../utils/nativeBridge.js";
9
9
  import "../hooks/index.js";
10
- import { CreateDashboardDialog as te } from "../components/dashboard/CreateDashboardDialog.js";
11
- import { DashboardStatusPill as u, useDashboardStatusLabel as ne } from "../components/dashboard/DashboardStatusPill.js";
12
- import { ImportDashboardDialog as re } from "../components/dashboard/ImportDashboardDialog.js";
10
+ import { CreateDashboardDialog as ne } from "../components/dashboard/CreateDashboardDialog.js";
11
+ import { DashboardStatusPill as l, useDashboardStatusLabel as re } from "../components/dashboard/DashboardStatusPill.js";
12
+ import { ImportDashboardDialog as ie } from "../components/dashboard/ImportDashboardDialog.js";
13
13
  import "../components/common/index.js";
14
- import { dashboardsListControls as ie } from "../assistant/pageControls.js";
15
- import { LIST_SORT_COPY as ae, listSortOptions as oe } from "../utils/listSort.js";
16
- import { selectDashboards as se } from "../utils/dashboardList.js";
17
- import { isBigConsoleQuotaError as ce, reportBigConsoleQuotaError as le } from "../utils/quota.js";
18
- import { resolveCreateParam as ue, withoutCreateParam as de } from "../utils/createDialogParam.js";
19
- import { memo as d, useCallback as f, useEffect as p, useMemo as m, useState as h } from "react";
20
- import { useSearchParams as fe } from "react-router";
21
- import { AccessDenied as pe, PermissionButton as g } from "@burdenoff/fe-libs/shared/components";
22
- import { usePermissions as me } from "@burdenoff/fe-libs/shared/providers/shell";
23
- import { Calendar as he, ChevronLeft as ge, ChevronRight as _e, Copy as ve, FileText as ye, Layers as be, LayoutDashboard as _, LayoutGrid as xe, List as Se, Pencil as Ce, Plus as we, Search as Te, Trash2 as Ee, Upload as De } from "lucide-react";
24
- import { AuroraBackground as v, Badge as y, Button as b, CTAOverflowMenu as x, Card as Oe, CardContent as ke, GlassCard as Ae, GradientText as S, IllustratedEmptyState as je, Input as Me, PagePurpose as Ne, Spinner as C } from "@burdenoff/fe-libs/ui";
14
+ import { dashboardsListControls as ae } from "../assistant/pageControls.js";
15
+ import { LIST_SORT_COPY as oe, listSortOptions as se } from "../utils/listSort.js";
16
+ import { selectDashboards as ce } from "../utils/dashboardList.js";
17
+ import { isBigConsoleQuotaError as le, reportBigConsoleQuotaError as ue } from "../utils/quota.js";
18
+ import { resolveCreateParam as de, withoutCreateParam as fe } from "../utils/createDialogParam.js";
19
+ import { dashboardSuggestAnchorProps as pe } from "../proactive/entities.js";
20
+ import { memo as u, useCallback as d, useEffect as f, useMemo as p, useState as m } from "react";
21
+ import { useSearchParams as me } from "react-router";
22
+ import { AccessDenied as he, PermissionButton as h } from "@burdenoff/fe-libs/shared/components";
23
+ import { usePermissions as ge } from "@burdenoff/fe-libs/shared/providers/shell";
24
+ import { Calendar as _e, ChevronLeft as ve, ChevronRight as ye, Copy as be, FileText as xe, Layers as Se, LayoutDashboard as g, LayoutGrid as Ce, List as we, Pencil as Te, Plus as Ee, Search as De, Trash2 as Oe, Upload as ke } from "lucide-react";
25
+ import { AuroraBackground as _, Badge as v, Button as y, CTAOverflowMenu as b, Card as Ae, CardContent as x, GlassCard as je, GradientText as S, IllustratedEmptyState as Me, Input as Ne, PagePurpose as Pe, Spinner as C } from "@burdenoff/fe-libs/ui";
25
26
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
26
- import { useAssistantPageControls as Pe } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
27
+ import { useAssistantPageControls as Fe } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
27
28
  // src/bigconsole/pages/DashboardsPage.tsx
28
29
  var E = "bf-bigconsole-dashboards-view", D = 12, O = 7;
29
- function Fe(e, t) {
30
+ function Ie(e, t) {
30
31
  if (t <= O) return Array.from({ length: t }, (e, t) => t + 1);
31
32
  let n = /* @__PURE__ */ new Set([
32
33
  1,
@@ -39,10 +40,10 @@ function Fe(e, t) {
39
40
  t > 0 && e - r[t - 1] > 1 && i.push(null), i.push(e);
40
41
  }), i;
41
42
  }
42
- var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onCreate: i, onImport: a, canCreate: o, canImport: s }) {
43
+ var Le = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onCreate: i, onImport: a, canCreate: o, canImport: s }) {
43
44
  return /* @__PURE__ */ T("div", {
44
45
  className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
45
- children: [/* @__PURE__ */ w(v, { intensity: "subtle" }), /* @__PURE__ */ w("div", {
46
+ children: [/* @__PURE__ */ w(_, { intensity: "subtle" }), /* @__PURE__ */ w("div", {
46
47
  style: { padding: "var(--space-pagePadding)" },
47
48
  children: /* @__PURE__ */ T("div", {
48
49
  style: {
@@ -70,7 +71,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
70
71
  borderRadius: "var(--radius-card)",
71
72
  backgroundColor: "var(--color-action-primary-bg)"
72
73
  },
73
- children: /* @__PURE__ */ w(_, { style: {
74
+ children: /* @__PURE__ */ w(g, { style: {
74
75
  height: "var(--size-icon-lg)",
75
76
  width: "var(--size-icon-lg)",
76
77
  color: "var(--color-action-primary-text)"
@@ -96,12 +97,12 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
96
97
  })]
97
98
  }), /* @__PURE__ */ w("div", {
98
99
  "data-tour": "bigconsole-dashboard-create",
99
- children: /* @__PURE__ */ w(x, {
100
+ children: /* @__PURE__ */ w(b, {
100
101
  primary: {
101
102
  label: n,
102
103
  onSelect: i,
103
104
  disabled: !o,
104
- icon: /* @__PURE__ */ w(we, { style: {
105
+ icon: /* @__PURE__ */ w(Ee, { style: {
105
106
  marginRight: "var(--space-iconGap)",
106
107
  height: "var(--size-icon-sm)",
107
108
  width: "var(--size-icon-sm)"
@@ -111,7 +112,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
111
112
  label: r,
112
113
  onSelect: a,
113
114
  disabled: !s,
114
- icon: /* @__PURE__ */ w(De, { style: {
115
+ icon: /* @__PURE__ */ w(ke, { style: {
115
116
  height: "var(--size-icon-sm)",
116
117
  width: "var(--size-icon-sm)"
117
118
  } })
@@ -121,65 +122,65 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
121
122
  })
122
123
  })]
123
124
  });
124
- }), k = d(function() {
125
- let d = e(), v = t(), [x, S] = h(""), [O, k] = h(""), [A, Le] = h(""), [j, Re] = h("default"), [M, N] = h(1), [ze, P] = h(!1), [F, Be] = h(!1), [Ve, He] = h(!1), [I, Ue] = h(() => {
125
+ }), k = u(function() {
126
+ let u = e(), _ = t(), [b, S] = m(""), [O, k] = m(""), [A, Re] = m(""), [j, M] = m("default"), [N, P] = m(1), [ze, F] = m(!1), [I, Be] = m(!1), [Ve, He] = m(!1), [L, Ue] = m(() => {
126
127
  try {
127
128
  return window.localStorage.getItem(E) === "list" ? "list" : "grid";
128
129
  } catch {
129
130
  return "grid";
130
131
  }
131
- }), We = f((e) => {
132
+ }), We = d((e) => {
132
133
  Ue(e);
133
134
  try {
134
135
  window.localStorage.setItem(E, e);
135
136
  } catch {}
136
- }, []), { loading: L, error: R, dashboards: z, createDashboard: Ge, deleteDashboard: Ke, cloneDashboard: qe, refetch: B } = o(), { hasPermission: V, isLoading: H } = me(), U = V(n.DASHBOARD_READ), W = V(n.DASHBOARD_CREATE), Je = V(n.DASHBOARD_IMPORT), [G, Ye] = fe();
137
- p(() => {
138
- let e = ue(G, {
139
- permissionsLoading: H,
140
- canRead: U,
141
- canCreate: W
137
+ }, []), { loading: R, error: z, dashboards: B, createDashboard: Ge, deleteDashboard: Ke, cloneDashboard: qe, refetch: V } = o(), { hasPermission: H, isLoading: U } = ge(), W = H(n.DASHBOARD_READ), G = H(n.DASHBOARD_CREATE), Je = H(n.DASHBOARD_IMPORT), [K, Ye] = me();
138
+ f(() => {
139
+ let e = de(K, {
140
+ permissionsLoading: U,
141
+ canRead: W,
142
+ canCreate: G
142
143
  });
143
- e !== "none" && e !== "wait" && (e === "open" && P(!0), Ye(de(G), { replace: !0 }));
144
+ e !== "none" && e !== "wait" && (e === "open" && F(!0), Ye(fe(K), { replace: !0 }));
144
145
  }, [
145
- G,
146
+ K,
146
147
  Ye,
147
- H,
148
148
  U,
149
- W
149
+ W,
150
+ G
150
151
  ]);
151
- let K = m(() => Array.from(new Set(z.flatMap((e) => e.category ? [e.category] : []))).sort(), [z]), { filtered: q, totalPages: J, pageItems: Y } = se(z, {
152
- search: x,
152
+ let q = p(() => Array.from(new Set(B.flatMap((e) => e.category ? [e.category] : []))).sort(), [B]), { filtered: J, totalPages: Y, pageItems: X } = ce(B, {
153
+ search: b,
153
154
  category: O,
154
155
  status: A,
155
156
  sort: j,
156
- page: M,
157
+ page: N,
157
158
  pageSize: D
158
- }), Xe = (Math.min(M, J) - 1) * D;
159
- p(() => {
160
- N(1);
159
+ }), Xe = (Math.min(N, Y) - 1) * D;
160
+ f(() => {
161
+ P(1);
161
162
  }, [
162
- x,
163
- I,
163
+ b,
164
+ L,
164
165
  O,
165
166
  A,
166
167
  j
167
- ]), p(() => {
168
- M > J && N(J);
169
- }, [M, J]);
170
- let Ze = f(() => {
171
- N((e) => Math.max(1, e - 1));
172
- }, []), Qe = f(() => {
173
- N((e) => Math.min(J, e + 1));
174
- }, [J]), $e = f((e) => {
175
- N(e);
176
- }, []), et = f(() => {
177
- P(!0);
178
- }, []), tt = f(({ dashboardId: e }) => {
179
- B(), d(`/dashboards/${e}`);
180
- }, [B, d]), nt = f(() => {
181
- F || P(!1);
182
- }, [F]), rt = f(async (e) => {
168
+ ]), f(() => {
169
+ N > Y && P(Y);
170
+ }, [N, Y]);
171
+ let Ze = d(() => {
172
+ P((e) => Math.max(1, e - 1));
173
+ }, []), Qe = d(() => {
174
+ P((e) => Math.min(Y, e + 1));
175
+ }, [Y]), $e = d((e) => {
176
+ P(e);
177
+ }, []), et = d(() => {
178
+ F(!0);
179
+ }, []), tt = d(({ dashboardId: e }) => {
180
+ V(), u(`/dashboards/${e}`);
181
+ }, [V, u]), nt = d(() => {
182
+ I || F(!1);
183
+ }, [I]), rt = d(async (e) => {
183
184
  Be(!0);
184
185
  try {
185
186
  let t = await Ge({
@@ -188,104 +189,104 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
188
189
  category: e.category,
189
190
  tags: e.tags
190
191
  });
191
- if (!t) throw Error(v("bigconsole.dashboards.createDialog.error.createFailed", "Failed to create dashboard. Please try again."));
192
- P(!1), d(`/dashboards/${t.id}/builder`);
192
+ if (!t) throw Error(_("bigconsole.dashboards.createDialog.error.createFailed", "Failed to create dashboard. Please try again."));
193
+ F(!1), u(`/dashboards/${t.id}/builder`);
193
194
  } catch (e) {
194
- throw ce(e) || console.error("Failed to create dashboard:", e), s() && l("error"), e;
195
+ throw le(e) || console.error("Failed to create dashboard:", e), s() && c("error"), e;
195
196
  } finally {
196
197
  Be(!1);
197
198
  }
198
199
  }, [
199
200
  Ge,
200
- d,
201
- v
202
- ]), X = f((e) => {
203
- d(`/dashboards/${e}`);
204
- }, [d]), Z = f((e, t) => {
205
- t.stopPropagation(), d(`/dashboards/${e}/builder`);
206
- }, [d]), it = f(async (e, t) => {
201
+ u,
202
+ _
203
+ ]), Z = d((e) => {
204
+ u(`/dashboards/${e}`);
205
+ }, [u]), it = d((e, t) => {
206
+ t.stopPropagation(), u(`/dashboards/${e}/builder`);
207
+ }, [u]), at = d(async (e, t) => {
207
208
  t.stopPropagation();
208
- let n = v("bigconsole.dashboards.confirmDelete", "Are you sure you want to delete this dashboard?"), r = await ee({
209
+ let n = _("bigconsole.dashboards.confirmDelete", "Are you sure you want to delete this dashboard?"), r = await ee({
209
210
  title: "Delete dashboard?",
210
211
  message: n,
211
212
  okButtonTitle: "Delete",
212
213
  cancelButtonTitle: "Cancel"
213
214
  });
214
215
  if (r === null ? window.confirm(n) : r) {
215
- c("medium");
216
+ te("medium");
216
217
  try {
217
- await Ke(e), s() && l("success");
218
+ await Ke(e), s() && c("success");
218
219
  } catch (e) {
219
- throw s() && l("error"), e;
220
+ throw s() && c("error"), e;
220
221
  }
221
222
  }
222
- }, [Ke, v]), at = f(async (e, t, n) => {
223
+ }, [Ke, _]), ot = d(async (e, t, n) => {
223
224
  n.stopPropagation();
224
- let r = v("bigconsole.dashboards.clone.defaultSuffix", "{{sourceName}} (Copy)", { sourceName: t }), i = window.prompt(v("bigconsole.dashboards.clone.namePrompt", "Name for the cloned dashboard:"), r);
225
+ let r = _("bigconsole.dashboards.clone.defaultSuffix", "{{sourceName}} (Copy)", { sourceName: t }), i = window.prompt(_("bigconsole.dashboards.clone.namePrompt", "Name for the cloned dashboard:"), r);
225
226
  if (i && i.trim()) {
226
- c("medium");
227
+ te("medium");
227
228
  try {
228
229
  let t = await qe(e, i.trim());
229
- t && (s() && l("success"), d(`/dashboards/${t.id}`));
230
+ t && (s() && c("success"), u(`/dashboards/${t.id}`));
230
231
  } catch (e) {
231
- if (le(e, "project")) return;
232
- throw s() && l("error"), e;
232
+ if (ue(e, "project")) return;
233
+ throw s() && c("error"), e;
233
234
  }
234
235
  }
235
236
  }, [
236
237
  qe,
237
- d,
238
- v
239
- ]), ot = f(() => {
238
+ u,
239
+ _
240
+ ]), st = d(() => {
240
241
  He(!0);
241
- }, []), st = f(() => {
242
+ }, []), ct = d(() => {
242
243
  He(!1);
243
- }, []), ct = f((e, t) => {
244
- B();
245
- }, [B]), lt = (e) => {
244
+ }, []), lt = d((e, t) => {
245
+ V();
246
+ }, [V]), ut = (e) => {
246
247
  let t = new Date(e), n = /* @__PURE__ */ new Date(), r = n.getTime() - t.getTime(), i = Math.floor(r / 6e4), a = Math.floor(r / 36e5), o = Math.floor(r / 864e5);
247
- return i < 1 ? v("bigconsole.dashboards.time.justNow", "Just now") : i < 60 ? `${i}${v("bigconsole.dashboards.time.minutesAgoSuffix", "m ago")}` : a < 24 ? `${a}${v("bigconsole.dashboards.time.hoursAgoSuffix", "h ago")}` : o < 7 ? `${o}${v("bigconsole.dashboards.time.daysAgoSuffix", "d ago")}` : new Intl.DateTimeFormat("en-US", {
248
+ return i < 1 ? _("bigconsole.dashboards.time.justNow", "Just now") : i < 60 ? `${i}${_("bigconsole.dashboards.time.minutesAgoSuffix", "m ago")}` : a < 24 ? `${a}${_("bigconsole.dashboards.time.hoursAgoSuffix", "h ago")}` : o < 7 ? `${o}${_("bigconsole.dashboards.time.daysAgoSuffix", "d ago")}` : new Intl.DateTimeFormat("en-US", {
248
249
  month: "short",
249
250
  day: "numeric",
250
251
  year: t.getFullYear() === n.getFullYear() ? void 0 : "numeric"
251
252
  }).format(t);
252
- }, Q = ne(), $ = m(() => Array.from(new Set(z.map((e) => e.status).filter((e) => e !== void 0))).sort().map((e) => ({
253
+ }, Q = re(), $ = p(() => Array.from(new Set(B.map((e) => e.status).filter((e) => e !== void 0))).sort().map((e) => ({
253
254
  value: e,
254
255
  label: Q(e)
255
- })), [z, Q]), ut = m(() => oe(v, !0), [v]), dt = m(() => !H && U && !R ? ie({
256
- tr: v,
257
- categories: K,
256
+ })), [B, Q]), dt = p(() => se(_, !0), [_]), ft = p(() => !U && W && !z ? ae({
257
+ tr: _,
258
+ categories: q,
258
259
  statuses: $,
259
260
  category: O,
260
261
  status: A,
261
262
  setCategory: k,
262
- setStatus: Le,
263
+ setStatus: Re,
263
264
  setSearch: S,
264
265
  sort: j,
265
- setSort: Re
266
+ setSort: M
266
267
  }) : null, [
267
- v,
268
- H,
268
+ _,
269
269
  U,
270
- R,
271
- K,
270
+ W,
271
+ z,
272
+ q,
272
273
  $,
273
274
  O,
274
275
  A,
275
276
  j
276
277
  ]);
277
- Pe(dt);
278
- let ft = (e) => e.widgetCount ?? 0, pt = (e) => e.pageCount || 0, mt = /* @__PURE__ */ w(Ie, {
279
- title: v("bigconsole.dashboards.title", "Dashboards"),
280
- subtitle: v("bigconsole.dashboards.subtitle", "Create and manage your analytics dashboards"),
281
- createLabel: v("bigconsole.dashboards.actions.create", "Create Dashboard"),
282
- importLabel: v("bigconsole.dashboards.actions.import", "Import"),
278
+ Fe(ft);
279
+ let pt = (e) => e.widgetCount ?? 0, mt = (e) => e.pageCount || 0, ht = /* @__PURE__ */ w(Le, {
280
+ title: _("bigconsole.dashboards.title", "Dashboards"),
281
+ subtitle: _("bigconsole.dashboards.subtitle", "Create and manage your analytics dashboards"),
282
+ createLabel: _("bigconsole.dashboards.actions.create", "Create Dashboard"),
283
+ importLabel: _("bigconsole.dashboards.actions.import", "Import"),
283
284
  onCreate: et,
284
- onImport: ot,
285
- canCreate: W,
285
+ onImport: st,
286
+ canCreate: G,
286
287
  canImport: Je
287
288
  });
288
- if (H) return /* @__PURE__ */ w("div", {
289
+ if (U) return /* @__PURE__ */ w("div", {
289
290
  style: {
290
291
  display: "flex",
291
292
  alignItems: "center",
@@ -297,33 +298,33 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
297
298
  width: "var(--size-icon-xl)"
298
299
  } })
299
300
  });
300
- if (!U) return /* @__PURE__ */ w(pe, {
301
- title: v("bigconsole.dashboards.accessDenied.title", "Access Denied"),
302
- description: v("bigconsole.dashboards.accessDenied.description", "You don't have permission to view dashboards.")
301
+ if (!W) return /* @__PURE__ */ w(he, {
302
+ title: _("bigconsole.dashboards.accessDenied.title", "Access Denied"),
303
+ description: _("bigconsole.dashboards.accessDenied.description", "You don't have permission to view dashboards.")
303
304
  });
304
- if (R) return /* @__PURE__ */ T("div", {
305
+ if (z) return /* @__PURE__ */ T("div", {
305
306
  "data-tour": "bigconsole-dashboards-list",
306
307
  style: {
307
308
  minHeight: "100vh",
308
309
  backgroundColor: "var(--color-bg-canvas)"
309
310
  },
310
- children: [mt, /* @__PURE__ */ w("div", {
311
+ children: [ht, /* @__PURE__ */ w("div", {
311
312
  style: { padding: "var(--space-pagePadding)" },
312
313
  children: /* @__PURE__ */ w(r, {
313
314
  headingLevel: 2,
314
315
  tone: "danger",
315
- title: v("bigconsole.dashboards.error.title", "Error loading dashboards"),
316
- description: R.message,
316
+ title: _("bigconsole.dashboards.error.title", "Error loading dashboards"),
317
+ description: z.message,
317
318
  "data-testid": "dashboards-error",
318
- actions: /* @__PURE__ */ w(b, {
319
+ actions: /* @__PURE__ */ w(y, {
319
320
  size: "sm",
320
- onClick: () => B(),
321
- children: v("bigconsole.dashboards.error.retry", "Retry")
321
+ onClick: () => V(),
322
+ children: _("bigconsole.dashboards.error.retry", "Retry")
322
323
  })
323
324
  })
324
325
  })]
325
326
  });
326
- let ht = q.length;
327
+ let gt = J.length;
327
328
  return /* @__PURE__ */ T("div", {
328
329
  "data-tour": "bigconsole-dashboards-list",
329
330
  style: {
@@ -331,14 +332,14 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
331
332
  backgroundColor: "var(--color-bg-canvas)"
332
333
  },
333
334
  children: [
334
- mt,
335
+ ht,
335
336
  /* @__PURE__ */ w("div", {
336
337
  style: { padding: "var(--space-pagePadding)" },
337
338
  children: /* @__PURE__ */ T(i, { children: [/* @__PURE__ */ w(r, {
338
339
  emphasis: "muted",
339
340
  padding: "compact",
340
- "aria-label": v("bigconsole.dashboards.about", "About dashboards"),
341
- children: /* @__PURE__ */ w(Ne, {
341
+ "aria-label": _("bigconsole.dashboards.about", "About dashboards"),
342
+ children: /* @__PURE__ */ w(Pe, {
342
343
  className: "max-w-[80ch]",
343
344
  children: "Dashboards are live, shareable views built from widgets that query your data sinks — charts, tables, metrics, and drill-downs in one place. Compose a board to monitor a system, share KPIs with your team, or explore data interactively."
344
345
  })
@@ -346,16 +347,16 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
346
347
  headingLevel: 2,
347
348
  emphasis: "primary",
348
349
  "data-testid": "dashboards-results",
349
- title: v("bigconsole.dashboards.results.title", "Your dashboards"),
350
- description: v("bigconsole.dashboards.results.description", "Open a board to view it, or use the card actions to edit, duplicate or delete."),
351
- meta: /* @__PURE__ */ w(y, {
350
+ title: _("bigconsole.dashboards.results.title", "Your dashboards"),
351
+ description: _("bigconsole.dashboards.results.description", "Open a board to view it, or use the card actions to edit, duplicate or delete."),
352
+ meta: /* @__PURE__ */ w(v, {
352
353
  variant: "secondary",
353
- "aria-label": v("bigconsole.dashboards.results.count", `${ht} dashboards`),
354
- children: ht
354
+ "aria-label": _("bigconsole.dashboards.results.count", `${gt} dashboards`),
355
+ children: gt
355
356
  }),
356
357
  actions: /* @__PURE__ */ T("div", {
357
358
  role: "group",
358
- "aria-label": v("bigconsole.dashboards.view.label", "Result layout"),
359
+ "aria-label": _("bigconsole.dashboards.view.label", "Result layout"),
359
360
  style: {
360
361
  display: "flex",
361
362
  alignItems: "center",
@@ -364,37 +365,37 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
364
365
  borderRadius: "var(--radius-button)",
365
366
  backgroundColor: "var(--color-bg-sunken)"
366
367
  },
367
- children: [/* @__PURE__ */ w(b, {
368
- variant: I === "grid" ? "default" : "ghost",
368
+ children: [/* @__PURE__ */ w(y, {
369
+ variant: L === "grid" ? "default" : "ghost",
369
370
  size: "sm",
370
371
  onClick: () => We("grid"),
371
- "aria-label": v("bigconsole.dashboards.view.grid", "Grid view"),
372
- "aria-pressed": I === "grid",
373
- title: v("bigconsole.dashboards.view.grid", "Grid view"),
372
+ "aria-label": _("bigconsole.dashboards.view.grid", "Grid view"),
373
+ "aria-pressed": L === "grid",
374
+ title: _("bigconsole.dashboards.view.grid", "Grid view"),
374
375
  style: {
375
376
  height: "var(--size-controlHeight-md)",
376
377
  width: "var(--size-controlHeight-md)",
377
378
  padding: 0,
378
379
  borderRadius: "var(--radius-button)"
379
380
  },
380
- children: /* @__PURE__ */ w(xe, { style: {
381
+ children: /* @__PURE__ */ w(Ce, { style: {
381
382
  height: "var(--size-icon-sm)",
382
383
  width: "var(--size-icon-sm)"
383
384
  } })
384
- }), /* @__PURE__ */ w(b, {
385
- variant: I === "list" ? "default" : "ghost",
385
+ }), /* @__PURE__ */ w(y, {
386
+ variant: L === "list" ? "default" : "ghost",
386
387
  size: "sm",
387
388
  onClick: () => We("list"),
388
- "aria-label": v("bigconsole.dashboards.view.list", "List view"),
389
- "aria-pressed": I === "list",
390
- title: v("bigconsole.dashboards.view.list", "List view"),
389
+ "aria-label": _("bigconsole.dashboards.view.list", "List view"),
390
+ "aria-pressed": L === "list",
391
+ title: _("bigconsole.dashboards.view.list", "List view"),
391
392
  style: {
392
393
  height: "var(--size-controlHeight-md)",
393
394
  width: "var(--size-controlHeight-md)",
394
395
  padding: 0,
395
396
  borderRadius: "var(--radius-button)"
396
397
  },
397
- children: /* @__PURE__ */ w(Se, { style: {
398
+ children: /* @__PURE__ */ w(we, { style: {
398
399
  height: "var(--size-icon-sm)",
399
400
  width: "var(--size-icon-sm)"
400
401
  } })
@@ -408,7 +409,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
408
409
  width: "100%",
409
410
  maxWidth: "420px"
410
411
  },
411
- children: [/* @__PURE__ */ w(Te, {
412
+ children: [/* @__PURE__ */ w(De, {
412
413
  "aria-hidden": "true",
413
414
  style: {
414
415
  position: "absolute",
@@ -419,11 +420,11 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
419
420
  width: "var(--size-icon-sm)",
420
421
  color: "var(--color-text-muted)"
421
422
  }
422
- }), /* @__PURE__ */ w(Me, {
423
+ }), /* @__PURE__ */ w(Ne, {
423
424
  type: "search",
424
- "aria-label": v("bigconsole.dashboards.search.placeholder", "Search dashboards..."),
425
- placeholder: v("bigconsole.dashboards.search.placeholder", "Search dashboards..."),
426
- value: x,
425
+ "aria-label": _("bigconsole.dashboards.search.placeholder", "Search dashboards..."),
426
+ placeholder: _("bigconsole.dashboards.search.placeholder", "Search dashboards..."),
427
+ value: b,
427
428
  onChange: (e) => S(e.target.value),
428
429
  style: {
429
430
  paddingLeft: "var(--size-controlHeight-md)",
@@ -435,40 +436,40 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
435
436
  className: "flex flex-wrap gap-control-gap",
436
437
  children: [
437
438
  /* @__PURE__ */ T("select", {
438
- "aria-label": v("bigconsole.dashboards.filters.category", "Category"),
439
+ "aria-label": _("bigconsole.dashboards.filters.category", "Category"),
439
440
  value: O,
440
441
  onChange: (e) => k(e.target.value),
441
442
  className: "min-w-0 max-w-full rounded-button border border-border-subtle bg-bg-surface p-2 text-sm text-text-primary",
442
443
  children: [/* @__PURE__ */ w("option", {
443
444
  value: "",
444
- children: v("bigconsole.dashboards.filters.allCategories", "All categories")
445
- }), K.map((e) => /* @__PURE__ */ w("option", {
445
+ children: _("bigconsole.dashboards.filters.allCategories", "All categories")
446
+ }), q.map((e) => /* @__PURE__ */ w("option", {
446
447
  value: e,
447
448
  children: e
448
449
  }, e))]
449
450
  }),
450
451
  /* @__PURE__ */ T("select", {
451
- "aria-label": v("bigconsole.dashboards.filters.status", "Status"),
452
+ "aria-label": _("bigconsole.dashboards.filters.status", "Status"),
452
453
  value: A,
453
- onChange: (e) => Le(e.target.value),
454
+ onChange: (e) => Re(e.target.value),
454
455
  className: "min-w-0 max-w-full rounded-button border border-border-subtle bg-bg-surface p-2 text-sm text-text-primary",
455
456
  children: [/* @__PURE__ */ w("option", {
456
457
  value: "",
457
- children: v("bigconsole.dashboards.filters.allStatuses", "All statuses")
458
+ children: _("bigconsole.dashboards.filters.allStatuses", "All statuses")
458
459
  }), $.map((e) => /* @__PURE__ */ w("option", {
459
460
  value: e.value,
460
461
  children: e.label
461
462
  }, e.value))]
462
463
  }),
463
464
  /* @__PURE__ */ w(a, {
464
- label: v(ae.label.key, ae.label.en),
465
+ label: _(oe.label.key, oe.label.en),
465
466
  value: j,
466
- options: ut,
467
- onChange: Re
467
+ options: dt,
468
+ onChange: M
468
469
  })
469
470
  ]
470
471
  }),
471
- L && z.length === 0 && /* @__PURE__ */ w("div", {
472
+ R && B.length === 0 && /* @__PURE__ */ w("div", {
472
473
  style: {
473
474
  display: "flex",
474
475
  alignItems: "center",
@@ -486,21 +487,22 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
486
487
  fontSize: "var(--font-size-body-sm)",
487
488
  color: "var(--color-text-muted)"
488
489
  },
489
- children: v("bigconsole.dashboards.loading", "Loading dashboards...")
490
+ children: _("bigconsole.dashboards.loading", "Loading dashboards...")
490
491
  })]
491
492
  })
492
493
  }),
493
- !L && I === "grid" && q.length > 0 && /* @__PURE__ */ w("div", {
494
+ !R && L === "grid" && J.length > 0 && /* @__PURE__ */ w("div", {
494
495
  style: {
495
496
  display: "grid",
496
497
  gridTemplateColumns: "repeat(auto-fill, minmax(min(320px, 100%), 1fr))",
497
498
  gap: "var(--space-formGap)"
498
499
  },
499
- children: Y.map((e) => /* @__PURE__ */ w(Oe, {
500
- onClick: () => X(e.id),
500
+ children: X.map((e) => /* @__PURE__ */ w(Ae, {
501
+ ...pe(e.id),
502
+ onClick: () => Z(e.id),
501
503
  style: { cursor: "pointer" },
502
504
  className: "motion-safe:transition-[box-shadow,border-color] hover:border-[var(--color-border-hover)] hover:shadow-[var(--shadow-elevation-2)]",
503
- children: /* @__PURE__ */ T(ke, {
505
+ children: /* @__PURE__ */ T(x, {
504
506
  style: { padding: "var(--space-cardPadding)" },
505
507
  children: [
506
508
  /* @__PURE__ */ T("div", {
@@ -521,7 +523,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
521
523
  borderRadius: "var(--radius-button)",
522
524
  backgroundColor: "var(--color-bg-accentSubtle)"
523
525
  },
524
- children: /* @__PURE__ */ w(_, {
526
+ children: /* @__PURE__ */ w(g, {
525
527
  "aria-hidden": "true",
526
528
  style: {
527
529
  height: "var(--size-icon-md)",
@@ -548,7 +550,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
548
550
  type: "button",
549
551
  className: "max-w-full truncate text-left hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
550
552
  onClick: (t) => {
551
- t.stopPropagation(), X(e.id);
553
+ t.stopPropagation(), Z(e.id);
552
554
  },
553
555
  children: e.name
554
556
  })
@@ -560,7 +562,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
560
562
  flexWrap: "wrap",
561
563
  marginTop: "var(--space-controlGap)"
562
564
  },
563
- children: [e.category && /* @__PURE__ */ w(y, {
565
+ children: [e.category && /* @__PURE__ */ w(v, {
564
566
  variant: "secondary",
565
567
  style: {
566
568
  fontSize: "10px",
@@ -568,7 +570,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
568
570
  textTransform: "uppercase"
569
571
  },
570
572
  children: e.category
571
- }), e.status && /* @__PURE__ */ w(u, {
573
+ }), e.status && /* @__PURE__ */ w(l, {
572
574
  status: e.status,
573
575
  label: Q(e.status)
574
576
  })]
@@ -587,7 +589,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
587
589
  WebkitBoxOrient: "vertical",
588
590
  overflow: "hidden"
589
591
  },
590
- children: e.description || v("bigconsole.dashboards.card.noDescription", "No description provided")
592
+ children: e.description || _("bigconsole.dashboards.card.noDescription", "No description provided")
591
593
  }),
592
594
  /* @__PURE__ */ T("div", {
593
595
  style: {
@@ -607,7 +609,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
607
609
  gap: "var(--space-iconGap)"
608
610
  },
609
611
  children: [
610
- /* @__PURE__ */ w(be, { style: {
612
+ /* @__PURE__ */ w(Se, { style: {
611
613
  height: "var(--size-icon-sm)",
612
614
  width: "var(--size-icon-sm)",
613
615
  color: "var(--color-action-primary-bg)"
@@ -618,14 +620,14 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
618
620
  fontWeight: "var(--font-weight-semibold)",
619
621
  color: "var(--color-text-primary)"
620
622
  },
621
- children: pt(e)
623
+ children: mt(e)
622
624
  }),
623
625
  /* @__PURE__ */ w("span", {
624
626
  style: {
625
627
  fontSize: "var(--font-size-body-sm)",
626
628
  color: "var(--color-text-muted)"
627
629
  },
628
- children: v("bigconsole.dashboards.card.pages", "pages")
630
+ children: _("bigconsole.dashboards.card.pages", "pages")
629
631
  })
630
632
  ]
631
633
  }),
@@ -641,7 +643,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
641
643
  gap: "var(--space-iconGap)"
642
644
  },
643
645
  children: [
644
- /* @__PURE__ */ w(ye, { style: {
646
+ /* @__PURE__ */ w(xe, { style: {
645
647
  height: "var(--size-icon-sm)",
646
648
  width: "var(--size-icon-sm)",
647
649
  color: "var(--color-action-primary-bg)"
@@ -652,14 +654,14 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
652
654
  fontWeight: "var(--font-weight-semibold)",
653
655
  color: "var(--color-text-primary)"
654
656
  },
655
- children: ft(e)
657
+ children: pt(e)
656
658
  }),
657
659
  /* @__PURE__ */ w("span", {
658
660
  style: {
659
661
  fontSize: "var(--font-size-body-sm)",
660
662
  color: "var(--color-text-muted)"
661
663
  },
662
- children: v("bigconsole.dashboards.card.widgets", "widgets")
664
+ children: _("bigconsole.dashboards.card.widgets", "widgets")
663
665
  })
664
666
  ]
665
667
  })
@@ -681,7 +683,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
681
683
  alignItems: "center",
682
684
  gap: "var(--space-iconGap)"
683
685
  },
684
- children: [/* @__PURE__ */ w(he, { style: {
686
+ children: [/* @__PURE__ */ w(_e, { style: {
685
687
  height: "var(--size-icon-sm)",
686
688
  width: "var(--size-icon-sm)",
687
689
  color: "var(--color-text-muted)"
@@ -691,7 +693,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
691
693
  fontWeight: "var(--font-weight-medium)",
692
694
  color: "var(--color-text-muted)"
693
695
  },
694
- children: lt(e.updatedAt)
696
+ children: ut(e.updatedAt)
695
697
  })]
696
698
  }), /* @__PURE__ */ T("div", {
697
699
  style: {
@@ -700,53 +702,53 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
700
702
  gap: "var(--space-controlGap)"
701
703
  },
702
704
  children: [
703
- /* @__PURE__ */ w(g, {
705
+ /* @__PURE__ */ w(h, {
704
706
  permission: n.DASHBOARD_UPDATE,
705
707
  deniedBehavior: "hide",
706
- children: /* @__PURE__ */ w(b, {
708
+ children: /* @__PURE__ */ w(y, {
707
709
  variant: "ghost",
708
710
  size: "sm",
709
- onClick: (t) => Z(e.id, t),
711
+ onClick: (t) => it(e.id, t),
710
712
  style: {
711
713
  height: "var(--size-controlHeight-md)",
712
714
  width: "var(--size-controlHeight-md)",
713
715
  padding: 0,
714
716
  borderRadius: "var(--radius-button)"
715
717
  },
716
- title: v("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
717
- children: /* @__PURE__ */ w(Ce, { style: {
718
+ title: _("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
719
+ children: /* @__PURE__ */ w(Te, { style: {
718
720
  height: "var(--size-icon-sm)",
719
721
  width: "var(--size-icon-sm)"
720
722
  } })
721
723
  })
722
724
  }),
723
- /* @__PURE__ */ w(g, {
725
+ /* @__PURE__ */ w(h, {
724
726
  permission: n.DASHBOARD_CREATE,
725
727
  deniedBehavior: "hide",
726
- children: /* @__PURE__ */ w(b, {
728
+ children: /* @__PURE__ */ w(y, {
727
729
  variant: "ghost",
728
730
  size: "sm",
729
- onClick: (t) => at(e.id, e.name, t),
731
+ onClick: (t) => ot(e.id, e.name, t),
730
732
  style: {
731
733
  height: "var(--size-controlHeight-md)",
732
734
  width: "var(--size-controlHeight-md)",
733
735
  padding: 0,
734
736
  borderRadius: "var(--radius-button)"
735
737
  },
736
- title: v("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
737
- children: /* @__PURE__ */ w(ve, { style: {
738
+ title: _("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
739
+ children: /* @__PURE__ */ w(be, { style: {
738
740
  height: "var(--size-icon-sm)",
739
741
  width: "var(--size-icon-sm)"
740
742
  } })
741
743
  })
742
744
  }),
743
- /* @__PURE__ */ w(g, {
745
+ /* @__PURE__ */ w(h, {
744
746
  permission: n.DASHBOARD_DELETE,
745
747
  deniedBehavior: "hide",
746
- children: /* @__PURE__ */ w(b, {
748
+ children: /* @__PURE__ */ w(y, {
747
749
  variant: "ghost",
748
750
  size: "sm",
749
- onClick: (t) => it(e.id, t),
751
+ onClick: (t) => at(e.id, t),
750
752
  style: {
751
753
  height: "var(--size-controlHeight-md)",
752
754
  width: "var(--size-controlHeight-md)",
@@ -754,8 +756,8 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
754
756
  borderRadius: "var(--radius-button)"
755
757
  },
756
758
  className: "hover:text-status-error-text hover:bg-status-error-bg/10",
757
- title: v("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
758
- children: /* @__PURE__ */ w(Ee, { style: {
759
+ title: _("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
760
+ children: /* @__PURE__ */ w(Oe, { style: {
759
761
  height: "var(--size-icon-sm)",
760
762
  width: "var(--size-icon-sm)"
761
763
  } })
@@ -768,17 +770,18 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
768
770
  })
769
771
  }, e.id))
770
772
  }),
771
- !L && I === "list" && q.length > 0 && /* @__PURE__ */ w("div", {
773
+ !R && L === "list" && J.length > 0 && /* @__PURE__ */ w("div", {
772
774
  style: {
773
775
  display: "flex",
774
776
  flexDirection: "column",
775
777
  gap: "var(--space-controlGap)"
776
778
  },
777
- children: Y.map((e) => /* @__PURE__ */ w(Oe, {
778
- onClick: () => X(e.id),
779
+ children: X.map((e) => /* @__PURE__ */ w(Ae, {
780
+ ...pe(e.id),
781
+ onClick: () => Z(e.id),
779
782
  style: { cursor: "pointer" },
780
783
  className: "motion-safe:transition-[box-shadow,border-color] hover:border-[var(--color-border-hover)] hover:shadow-[var(--shadow-elevation-2)]",
781
- children: /* @__PURE__ */ w(ke, {
784
+ children: /* @__PURE__ */ w(x, {
782
785
  style: { padding: "var(--space-cardPadding)" },
783
786
  children: /* @__PURE__ */ T("div", {
784
787
  style: {
@@ -799,7 +802,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
799
802
  borderRadius: "var(--radius-button)",
800
803
  backgroundColor: "var(--color-bg-accentSubtle)"
801
804
  },
802
- children: /* @__PURE__ */ w(_, {
805
+ children: /* @__PURE__ */ w(g, {
803
806
  "aria-hidden": "true",
804
807
  style: {
805
808
  height: "var(--size-icon-md)",
@@ -836,12 +839,12 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
836
839
  type: "button",
837
840
  className: "max-w-full truncate text-left hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
838
841
  onClick: (t) => {
839
- t.stopPropagation(), X(e.id);
842
+ t.stopPropagation(), Z(e.id);
840
843
  },
841
844
  children: e.name
842
845
  })
843
846
  }),
844
- e.category && /* @__PURE__ */ w(y, {
847
+ e.category && /* @__PURE__ */ w(v, {
845
848
  variant: "secondary",
846
849
  style: {
847
850
  fontSize: "10px",
@@ -850,7 +853,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
850
853
  },
851
854
  children: e.category
852
855
  }),
853
- e.status && /* @__PURE__ */ w(u, {
856
+ e.status && /* @__PURE__ */ w(l, {
854
857
  status: e.status,
855
858
  label: Q(e.status)
856
859
  })
@@ -865,7 +868,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
865
868
  textOverflow: "ellipsis",
866
869
  whiteSpace: "nowrap"
867
870
  },
868
- children: e.description || v("bigconsole.dashboards.card.noDescription", "No description provided")
871
+ children: e.description || _("bigconsole.dashboards.card.noDescription", "No description provided")
869
872
  })]
870
873
  }),
871
874
  /* @__PURE__ */ T("div", {
@@ -883,7 +886,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
883
886
  gap: "var(--space-iconGap)"
884
887
  },
885
888
  children: [
886
- /* @__PURE__ */ w(be, { style: {
889
+ /* @__PURE__ */ w(Se, { style: {
887
890
  height: "var(--size-icon-sm)",
888
891
  width: "var(--size-icon-sm)",
889
892
  color: "var(--color-action-primary-bg)"
@@ -894,14 +897,14 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
894
897
  fontWeight: "var(--font-weight-semibold)",
895
898
  color: "var(--color-text-primary)"
896
899
  },
897
- children: pt(e)
900
+ children: mt(e)
898
901
  }),
899
902
  /* @__PURE__ */ w("span", {
900
903
  style: {
901
904
  fontSize: "var(--font-size-body-sm)",
902
905
  color: "var(--color-text-muted)"
903
906
  },
904
- children: v("bigconsole.dashboards.card.pages", "pages")
907
+ children: _("bigconsole.dashboards.card.pages", "pages")
905
908
  })
906
909
  ]
907
910
  }),
@@ -912,7 +915,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
912
915
  gap: "var(--space-iconGap)"
913
916
  },
914
917
  children: [
915
- /* @__PURE__ */ w(ye, { style: {
918
+ /* @__PURE__ */ w(xe, { style: {
916
919
  height: "var(--size-icon-sm)",
917
920
  width: "var(--size-icon-sm)",
918
921
  color: "var(--color-action-primary-bg)"
@@ -923,14 +926,14 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
923
926
  fontWeight: "var(--font-weight-semibold)",
924
927
  color: "var(--color-text-primary)"
925
928
  },
926
- children: ft(e)
929
+ children: pt(e)
927
930
  }),
928
931
  /* @__PURE__ */ w("span", {
929
932
  style: {
930
933
  fontSize: "var(--font-size-body-sm)",
931
934
  color: "var(--color-text-muted)"
932
935
  },
933
- children: v("bigconsole.dashboards.card.widgets", "widgets")
936
+ children: _("bigconsole.dashboards.card.widgets", "widgets")
934
937
  })
935
938
  ]
936
939
  }),
@@ -940,7 +943,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
940
943
  alignItems: "center",
941
944
  gap: "var(--space-iconGap)"
942
945
  },
943
- children: [/* @__PURE__ */ w(he, { style: {
946
+ children: [/* @__PURE__ */ w(_e, { style: {
944
947
  height: "var(--size-icon-sm)",
945
948
  width: "var(--size-icon-sm)",
946
949
  color: "var(--color-text-muted)"
@@ -950,7 +953,7 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
950
953
  fontWeight: "var(--font-weight-medium)",
951
954
  color: "var(--color-text-muted)"
952
955
  },
953
- children: lt(e.updatedAt)
956
+ children: ut(e.updatedAt)
954
957
  })]
955
958
  })
956
959
  ]
@@ -962,53 +965,53 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
962
965
  gap: "var(--space-controlGap)"
963
966
  },
964
967
  children: [
965
- /* @__PURE__ */ w(g, {
968
+ /* @__PURE__ */ w(h, {
966
969
  permission: n.DASHBOARD_UPDATE,
967
970
  deniedBehavior: "hide",
968
- children: /* @__PURE__ */ w(b, {
971
+ children: /* @__PURE__ */ w(y, {
969
972
  variant: "ghost",
970
973
  size: "sm",
971
- onClick: (t) => Z(e.id, t),
974
+ onClick: (t) => it(e.id, t),
972
975
  style: {
973
976
  height: "var(--size-controlHeight-md)",
974
977
  width: "var(--size-controlHeight-md)",
975
978
  padding: 0,
976
979
  borderRadius: "var(--radius-button)"
977
980
  },
978
- title: v("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
979
- children: /* @__PURE__ */ w(Ce, { style: {
981
+ title: _("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
982
+ children: /* @__PURE__ */ w(Te, { style: {
980
983
  height: "var(--size-icon-sm)",
981
984
  width: "var(--size-icon-sm)"
982
985
  } })
983
986
  })
984
987
  }),
985
- /* @__PURE__ */ w(g, {
988
+ /* @__PURE__ */ w(h, {
986
989
  permission: n.DASHBOARD_CREATE,
987
990
  deniedBehavior: "hide",
988
- children: /* @__PURE__ */ w(b, {
991
+ children: /* @__PURE__ */ w(y, {
989
992
  variant: "ghost",
990
993
  size: "sm",
991
- onClick: (t) => at(e.id, e.name, t),
994
+ onClick: (t) => ot(e.id, e.name, t),
992
995
  style: {
993
996
  height: "var(--size-controlHeight-md)",
994
997
  width: "var(--size-controlHeight-md)",
995
998
  padding: 0,
996
999
  borderRadius: "var(--radius-button)"
997
1000
  },
998
- title: v("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
999
- children: /* @__PURE__ */ w(ve, { style: {
1001
+ title: _("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
1002
+ children: /* @__PURE__ */ w(be, { style: {
1000
1003
  height: "var(--size-icon-sm)",
1001
1004
  width: "var(--size-icon-sm)"
1002
1005
  } })
1003
1006
  })
1004
1007
  }),
1005
- /* @__PURE__ */ w(g, {
1008
+ /* @__PURE__ */ w(h, {
1006
1009
  permission: n.DASHBOARD_DELETE,
1007
1010
  deniedBehavior: "hide",
1008
- children: /* @__PURE__ */ w(b, {
1011
+ children: /* @__PURE__ */ w(y, {
1009
1012
  variant: "ghost",
1010
1013
  size: "sm",
1011
- onClick: (t) => it(e.id, t),
1014
+ onClick: (t) => at(e.id, t),
1012
1015
  style: {
1013
1016
  height: "var(--size-controlHeight-md)",
1014
1017
  width: "var(--size-controlHeight-md)",
@@ -1016,8 +1019,8 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
1016
1019
  borderRadius: "var(--radius-button)"
1017
1020
  },
1018
1021
  className: "hover:text-status-error-text hover:bg-status-error-bg/10",
1019
- title: v("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
1020
- children: /* @__PURE__ */ w(Ee, { style: {
1022
+ title: _("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
1023
+ children: /* @__PURE__ */ w(Oe, { style: {
1021
1024
  height: "var(--size-icon-sm)",
1022
1025
  width: "var(--size-icon-sm)"
1023
1026
  } })
@@ -1030,35 +1033,35 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
1030
1033
  })
1031
1034
  }, e.id))
1032
1035
  }),
1033
- !L && q.length > 0 && /* @__PURE__ */ w("p", {
1036
+ !R && J.length > 0 && /* @__PURE__ */ w("p", {
1034
1037
  "data-testid": "dashboards-range",
1035
1038
  style: {
1036
1039
  margin: 0,
1037
1040
  fontSize: "var(--font-size-body-sm)",
1038
1041
  color: "var(--color-text-muted)"
1039
1042
  },
1040
- children: v("bigconsole.dashboards.pagination.range", "Showing {{from}}–{{to}} of {{total}} dashboards", {
1043
+ children: _("bigconsole.dashboards.pagination.range", "Showing {{from}}–{{to}} of {{total}} dashboards", {
1041
1044
  from: Xe + 1,
1042
- to: Xe + Y.length,
1043
- total: q.length
1045
+ to: Xe + X.length,
1046
+ total: J.length
1044
1047
  })
1045
1048
  }),
1046
- !L && q.length > D && /* @__PURE__ */ T("nav", {
1047
- "aria-label": v("bigconsole.dashboards.pagination.label", "Dashboard pages"),
1049
+ !R && J.length > D && /* @__PURE__ */ T("nav", {
1050
+ "aria-label": _("bigconsole.dashboards.pagination.label", "Dashboard pages"),
1048
1051
  className: "flex flex-wrap items-center justify-center gap-control-gap border-t border-[var(--color-border-subtle)] pt-control-gap",
1049
1052
  children: [
1050
- /* @__PURE__ */ T(b, {
1053
+ /* @__PURE__ */ T(y, {
1051
1054
  variant: "outline",
1052
1055
  size: "sm",
1053
1056
  onClick: Ze,
1054
- disabled: M <= 1,
1055
- "aria-label": v("bigconsole.dashboards.pagination.previous", "Previous"),
1057
+ disabled: N <= 1,
1058
+ "aria-label": _("bigconsole.dashboards.pagination.previous", "Previous"),
1056
1059
  style: { minHeight: "var(--size-controlHeight-md)" },
1057
- children: [/* @__PURE__ */ w(ge, { style: {
1060
+ children: [/* @__PURE__ */ w(ve, { style: {
1058
1061
  marginRight: "var(--space-iconGap)",
1059
1062
  height: "var(--size-icon-sm)",
1060
1063
  width: "var(--size-icon-sm)"
1061
- } }), v("bigconsole.dashboards.pagination.previous", "Previous")]
1064
+ } }), _("bigconsole.dashboards.pagination.previous", "Previous")]
1062
1065
  }),
1063
1066
  /* @__PURE__ */ w("div", {
1064
1067
  style: {
@@ -1067,19 +1070,19 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
1067
1070
  gap: "var(--space-iconGap)",
1068
1071
  flexWrap: "wrap"
1069
1072
  },
1070
- children: Fe(M, J).map((e, t) => e === null ? /* @__PURE__ */ w("span", {
1073
+ children: Ie(N, Y).map((e, t) => e === null ? /* @__PURE__ */ w("span", {
1071
1074
  "aria-hidden": "true",
1072
1075
  style: {
1073
1076
  color: "var(--color-text-muted)",
1074
1077
  padding: "0 var(--space-iconGap)"
1075
1078
  },
1076
1079
  children: "…"
1077
- }, `gap-${t}`) : /* @__PURE__ */ w(b, {
1078
- variant: e === M ? "default" : "ghost",
1080
+ }, `gap-${t}`) : /* @__PURE__ */ w(y, {
1081
+ variant: e === N ? "default" : "ghost",
1079
1082
  size: "sm",
1080
1083
  onClick: () => $e(e),
1081
- "aria-current": e === M ? "page" : void 0,
1082
- "aria-label": v("bigconsole.dashboards.pagination.page", `Page ${e}`),
1084
+ "aria-current": e === N ? "page" : void 0,
1085
+ "aria-label": _("bigconsole.dashboards.pagination.page", `Page ${e}`),
1083
1086
  style: {
1084
1087
  minWidth: "var(--size-controlHeight-md)",
1085
1088
  height: "var(--size-controlHeight-md)",
@@ -1089,14 +1092,14 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
1089
1092
  children: e
1090
1093
  }, e))
1091
1094
  }),
1092
- /* @__PURE__ */ T(b, {
1095
+ /* @__PURE__ */ T(y, {
1093
1096
  variant: "outline",
1094
1097
  size: "sm",
1095
1098
  onClick: Qe,
1096
- disabled: M >= J,
1097
- "aria-label": v("bigconsole.dashboards.pagination.next", "Next"),
1099
+ disabled: N >= Y,
1100
+ "aria-label": _("bigconsole.dashboards.pagination.next", "Next"),
1098
1101
  style: { minHeight: "var(--size-controlHeight-md)" },
1099
- children: [v("bigconsole.dashboards.pagination.next", "Next"), /* @__PURE__ */ w(_e, { style: {
1102
+ children: [_("bigconsole.dashboards.pagination.next", "Next"), /* @__PURE__ */ w(ye, { style: {
1100
1103
  marginLeft: "var(--space-iconGap)",
1101
1104
  height: "var(--size-icon-sm)",
1102
1105
  width: "var(--size-icon-sm)"
@@ -1107,49 +1110,49 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
1107
1110
  fontSize: "var(--font-size-body-sm)",
1108
1111
  color: "var(--color-text-muted)"
1109
1112
  },
1110
- children: v("bigconsole.dashboards.pagination.pageOf", "Page {{currentPage}} of {{totalPages}}", {
1111
- currentPage: M,
1112
- totalPages: J
1113
+ children: _("bigconsole.dashboards.pagination.pageOf", "Page {{currentPage}} of {{totalPages}}", {
1114
+ currentPage: N,
1115
+ totalPages: Y
1113
1116
  })
1114
1117
  })
1115
1118
  ]
1116
1119
  }),
1117
- !L && q.length === 0 && /* @__PURE__ */ w(Ae, {
1120
+ !R && J.length === 0 && /* @__PURE__ */ w(je, {
1118
1121
  treatment: "insight",
1119
1122
  className: "border-[var(--color-border-seam)]",
1120
- children: /* @__PURE__ */ w(je, {
1121
- illustration: x ? "empty-search" : "empty-data",
1122
- title: x ? v("bigconsole.dashboards.empty.filteredTitle", "No dashboards found") : v("bigconsole.dashboards.empty.title", "No dashboards yet"),
1123
- description: x ? v("bigconsole.dashboards.empty.filteredDescription", "Try adjusting your search terms") : v("bigconsole.dashboards.empty.description", "Get started by creating your first dashboard to visualize your data"),
1124
- action: x ? void 0 : /* @__PURE__ */ T("div", {
1123
+ children: /* @__PURE__ */ w(Me, {
1124
+ illustration: b ? "empty-search" : "empty-data",
1125
+ title: b ? _("bigconsole.dashboards.empty.filteredTitle", "No dashboards found") : _("bigconsole.dashboards.empty.title", "No dashboards yet"),
1126
+ description: b ? _("bigconsole.dashboards.empty.filteredDescription", "Try adjusting your search terms") : _("bigconsole.dashboards.empty.description", "Get started by creating your first dashboard to visualize your data"),
1127
+ action: b ? void 0 : /* @__PURE__ */ T("div", {
1125
1128
  style: {
1126
1129
  display: "flex",
1127
1130
  gap: "var(--space-controlGap)",
1128
1131
  flexWrap: "wrap",
1129
1132
  justifyContent: "center"
1130
1133
  },
1131
- children: [/* @__PURE__ */ w(g, {
1134
+ children: [/* @__PURE__ */ w(h, {
1132
1135
  permission: n.DASHBOARD_CREATE,
1133
1136
  deniedBehavior: "hide",
1134
- children: /* @__PURE__ */ T(b, {
1137
+ children: /* @__PURE__ */ T(y, {
1135
1138
  onClick: et,
1136
- children: [/* @__PURE__ */ w(we, { style: {
1139
+ children: [/* @__PURE__ */ w(Ee, { style: {
1137
1140
  marginRight: "var(--space-iconGap)",
1138
1141
  height: "var(--size-icon-sm)",
1139
1142
  width: "var(--size-icon-sm)"
1140
- } }), v("bigconsole.dashboards.actions.create", "Create Dashboard")]
1143
+ } }), _("bigconsole.dashboards.actions.create", "Create Dashboard")]
1141
1144
  })
1142
- }), /* @__PURE__ */ w(g, {
1145
+ }), /* @__PURE__ */ w(h, {
1143
1146
  permission: n.DASHBOARD_IMPORT,
1144
1147
  deniedBehavior: "hide",
1145
- children: /* @__PURE__ */ T(b, {
1148
+ children: /* @__PURE__ */ T(y, {
1146
1149
  variant: "outline",
1147
- onClick: ot,
1148
- children: [/* @__PURE__ */ w(De, { style: {
1150
+ onClick: st,
1151
+ children: [/* @__PURE__ */ w(ke, { style: {
1149
1152
  marginRight: "var(--space-iconGap)",
1150
1153
  height: "var(--size-icon-sm)",
1151
1154
  width: "var(--size-icon-sm)"
1152
- } }), v("bigconsole.dashboards.actions.importDashboard", "Import Dashboard")]
1155
+ } }), _("bigconsole.dashboards.actions.importDashboard", "Import Dashboard")]
1153
1156
  })
1154
1157
  })]
1155
1158
  })
@@ -1158,17 +1161,17 @@ var Ie = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
1158
1161
  ]
1159
1162
  })] })
1160
1163
  }),
1161
- /* @__PURE__ */ w(te, {
1164
+ /* @__PURE__ */ w(ne, {
1162
1165
  isOpen: ze,
1163
- isCreating: F,
1166
+ isCreating: I,
1164
1167
  onClose: nt,
1165
1168
  onCreate: rt,
1166
1169
  onTemplateInstalled: tt
1167
1170
  }),
1168
- /* @__PURE__ */ w(re, {
1171
+ /* @__PURE__ */ w(ie, {
1169
1172
  isOpen: Ve,
1170
- onClose: st,
1171
- onSuccess: ct
1173
+ onClose: ct,
1174
+ onSuccess: lt
1172
1175
  })
1173
1176
  ]
1174
1177
  });