@burdenoff/microfe-bigconsole 2026.1004.2 → 2026.1004.4

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 (150) hide show
  1. package/dist/bigconsole/BigConsoleRoutes.d.ts +1 -1
  2. package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -1
  3. package/dist/bigconsole/BigConsoleRoutes.js +15 -1
  4. package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
  5. package/dist/bigconsole/components/DrilldownModal.d.ts.map +1 -1
  6. package/dist/bigconsole/components/DrilldownModal.js +54 -53
  7. package/dist/bigconsole/components/DrilldownModal.js.map +1 -1
  8. package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +3 -1
  9. package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts.map +1 -1
  10. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +40 -39
  11. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
  12. package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts.map +1 -1
  13. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +184 -177
  14. package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
  15. package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts.map +1 -1
  16. package/dist/bigconsole/components/dashboard/DashboardGrid.js +40 -22
  17. package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -1
  18. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts.map +1 -1
  19. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +31 -25
  20. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -1
  21. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +1 -1
  22. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts.map +1 -1
  23. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +115 -80
  24. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
  25. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts.map +1 -1
  26. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +177 -146
  27. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  28. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +1 -1
  29. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts.map +1 -1
  30. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +375 -325
  31. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
  32. package/dist/bigconsole/components/datasink/CacheTTLSelector.d.ts.map +1 -1
  33. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +7 -1
  34. package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
  35. package/dist/bigconsole/components/parser/ParserSelector.d.ts +3 -1
  36. package/dist/bigconsole/components/parser/ParserSelector.d.ts.map +1 -1
  37. package/dist/bigconsole/components/parser/ParserSelector.js +94 -94
  38. package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
  39. package/dist/bigconsole/components/pipeline/PipelineCard.d.ts.map +1 -1
  40. package/dist/bigconsole/components/pipeline/PipelineCard.js +111 -89
  41. package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -1
  42. package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts +8 -0
  43. package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts.map +1 -0
  44. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +52 -0
  45. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js.map +1 -0
  46. package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
  47. package/dist/bigconsole/components/widgets/PropertiesPanel.js +257 -221
  48. package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
  49. package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +1 -0
  50. package/dist/bigconsole/components/widgets/WidgetHeader.d.ts.map +1 -1
  51. package/dist/bigconsole/components/widgets/WidgetHeader.js +29 -29
  52. package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -1
  53. package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +2 -0
  54. package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts.map +1 -1
  55. package/dist/bigconsole/components/widgets/WidgetWrapper.js +247 -239
  56. package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -1
  57. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts.map +1 -1
  58. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +6 -4
  59. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -1
  60. package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +1 -0
  61. package/dist/bigconsole/components/widgets/states/EmptyState.d.ts.map +1 -1
  62. package/dist/bigconsole/components/widgets/states/EmptyState.js +4 -4
  63. package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -1
  64. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts +7 -0
  65. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts.map +1 -0
  66. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js +94 -0
  67. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js.map +1 -0
  68. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts +7 -0
  69. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts.map +1 -0
  70. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +101 -0
  71. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js.map +1 -0
  72. package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts +16 -0
  73. package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts.map +1 -0
  74. package/dist/bigconsole/hooks/useBigConsoleSettings.js +57 -0
  75. package/dist/bigconsole/hooks/useBigConsoleSettings.js.map +1 -0
  76. package/dist/bigconsole/hooks/useDashboardOperations.d.ts.map +1 -1
  77. package/dist/bigconsole/hooks/useDashboardOperations.js +102 -79
  78. package/dist/bigconsole/hooks/useDashboardOperations.js.map +1 -1
  79. package/dist/bigconsole/hooks/useExportDashboard.d.ts +3 -1
  80. package/dist/bigconsole/hooks/useExportDashboard.d.ts.map +1 -1
  81. package/dist/bigconsole/hooks/useExportDashboard.js +23 -13
  82. package/dist/bigconsole/hooks/useExportDashboard.js.map +1 -1
  83. package/dist/bigconsole/hooks/useFilterUrlSync.d.ts +18 -0
  84. package/dist/bigconsole/hooks/useFilterUrlSync.d.ts.map +1 -1
  85. package/dist/bigconsole/hooks/useFilterUrlSync.js +87 -57
  86. package/dist/bigconsole/hooks/useFilterUrlSync.js.map +1 -1
  87. package/dist/bigconsole/hooks/useGlobalFilters.d.ts.map +1 -1
  88. package/dist/bigconsole/hooks/useGlobalFilters.js +39 -29
  89. package/dist/bigconsole/hooks/useGlobalFilters.js.map +1 -1
  90. package/dist/bigconsole/hooks/usePageOperations.d.ts.map +1 -1
  91. package/dist/bigconsole/hooks/usePageOperations.js +1 -0
  92. package/dist/bigconsole/hooks/usePageOperations.js.map +1 -1
  93. package/dist/bigconsole/hooks/usePipelineOperations.d.ts.map +1 -1
  94. package/dist/bigconsole/hooks/usePipelineOperations.js +114 -112
  95. package/dist/bigconsole/hooks/usePipelineOperations.js.map +1 -1
  96. package/dist/bigconsole/hooks/useShareRecipients.d.ts +22 -0
  97. package/dist/bigconsole/hooks/useShareRecipients.d.ts.map +1 -0
  98. package/dist/bigconsole/hooks/useShareRecipients.js +198 -0
  99. package/dist/bigconsole/hooks/useShareRecipients.js.map +1 -0
  100. package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
  101. package/dist/bigconsole/pages/DashboardBuilderPage.js +198 -193
  102. package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
  103. package/dist/bigconsole/pages/DashboardViewPage.d.ts.map +1 -1
  104. package/dist/bigconsole/pages/DashboardViewPage.js +171 -167
  105. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  106. package/dist/bigconsole/pages/DashboardsPage.d.ts.map +1 -1
  107. package/dist/bigconsole/pages/DashboardsPage.js +313 -266
  108. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  109. package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
  110. package/dist/bigconsole/pages/DataSinkBuilderPage.js +84 -79
  111. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  112. package/dist/bigconsole/pages/DataSinkViewPage.d.ts.map +1 -1
  113. package/dist/bigconsole/pages/DataSinkViewPage.js +267 -257
  114. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  115. package/dist/bigconsole/pages/InsightsPage.d.ts.map +1 -1
  116. package/dist/bigconsole/pages/InsightsPage.js +465 -402
  117. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  118. package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
  119. package/dist/bigconsole/pages/PipelineBuilderPage.js +169 -157
  120. package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
  121. package/dist/bigconsole/pages/PipelineViewPage.d.ts.map +1 -1
  122. package/dist/bigconsole/pages/PipelineViewPage.js +370 -230
  123. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  124. package/dist/bigconsole/pages/PipelinesPage.d.ts.map +1 -1
  125. package/dist/bigconsole/pages/PipelinesPage.js +181 -151
  126. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  127. package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
  128. package/dist/bigconsole/pages/SettingsPage.js +188 -208
  129. package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
  130. package/dist/bigconsole/pages/WidgetDemoPage.d.ts.map +1 -1
  131. package/dist/bigconsole/pages/WidgetDemoPage.js +134 -117
  132. package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
  133. package/dist/bigconsole/pages/WorkflowViewPage.d.ts.map +1 -1
  134. package/dist/bigconsole/pages/WorkflowViewPage.js +315 -267
  135. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  136. package/dist/bigconsole/pages/WorkflowsPage.d.ts.map +1 -1
  137. package/dist/bigconsole/pages/WorkflowsPage.js +4 -3
  138. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  139. package/dist/bigconsole/types/index.d.ts +4 -0
  140. package/dist/bigconsole/types/index.d.ts.map +1 -1
  141. package/dist/generated/wspace-operations.d.ts +148 -0
  142. package/dist/generated/wspace-operations.d.ts.map +1 -1
  143. package/dist/generated/wspace-operations.js +172 -133
  144. package/dist/generated/wspace-operations.js.map +1 -1
  145. package/dist/generated/wspace-types.d.ts +21 -0
  146. package/dist/generated/wspace-types.d.ts.map +1 -1
  147. package/dist/generated/wspace-types.js.map +1 -1
  148. package/dist/microfe-bigconsole.css +1 -1
  149. package/dist/translations/en.d.ts.map +1 -1
  150. package/package.json +3 -3
@@ -9,20 +9,20 @@ import { BIGCONSOLE_PERMISSIONS as a } from "../../constants/permissions.js";
9
9
  import { useTr as o } from "../../shared/hooks/useTr.js";
10
10
  import ee from "../components/dashboard/CreateDashboardDialog.js";
11
11
  import s, { useDashboardStatusLabel as te } from "../components/dashboard/DashboardStatusPill.js";
12
- import { isNative as c, nativeConfirm as ne, nativeImpact as l, nativeNotify as u } from "../../utils/nativeBridge.js";
13
- import re from "../components/dashboard/ImportDashboardDialog.js";
14
- import { resolveCreateParam as ie, withoutCreateParam as ae } from "../utils/createDialogParam.js";
15
- import { memo as d, useCallback as f, useEffect as p, useState as m } from "react";
16
- import { useSearchParams as oe } from "react-router";
17
- import { AccessDenied as se, PermissionButton as h } from "@burdenoff/fe-libs/shared/components";
18
- import { usePermissions as ce } from "@burdenoff/fe-libs/shared/providers/shell";
19
- import { Calendar as le, ChevronLeft as ue, ChevronRight as de, Copy as fe, FileText as pe, Layers as me, LayoutDashboard as g, LayoutGrid as he, List as ge, Pencil as _, Plus as v, Search as _e, Trash2 as ve, Upload as ye } from "lucide-react";
20
- import { AuroraBackground as y, Badge as b, Button as x, CTAOverflowMenu as S, Card as C, CardContent as w, GlassCard as be, GradientText as T, IllustratedEmptyState as xe, Input as Se, PagePurpose as Ce, Spinner as E } from "@burdenoff/fe-libs/ui";
21
- import { jsx as D, jsxs as O } from "react/jsx-runtime";
12
+ import { isNative as c, nativeConfirm as ne, nativeImpact as re, nativeNotify as l } from "../../utils/nativeBridge.js";
13
+ import ie from "../components/dashboard/ImportDashboardDialog.js";
14
+ import { resolveCreateParam as ae, withoutCreateParam as oe } from "../utils/createDialogParam.js";
15
+ import { memo as u, useCallback as d, useEffect as f, useState as p } from "react";
16
+ import { useSearchParams as se } from "react-router";
17
+ import { AccessDenied as ce, PermissionButton as m } from "@burdenoff/fe-libs/shared/components";
18
+ import { usePermissions as le } from "@burdenoff/fe-libs/shared/providers/shell";
19
+ import { Calendar as ue, ChevronLeft as de, ChevronRight as fe, Copy as pe, FileText as h, Layers as me, LayoutDashboard as g, LayoutGrid as he, List as ge, Pencil as _, Plus as v, Search as _e, Trash2 as ve, Upload as ye } from "lucide-react";
20
+ import { AuroraBackground as y, Badge as b, Button as x, CTAOverflowMenu as S, Card as be, CardContent as xe, GlassCard as Se, GradientText as C, IllustratedEmptyState as Ce, Input as we, PagePurpose as Te, Spinner as w } from "@burdenoff/fe-libs/ui";
21
+ import { jsx as T, jsxs as E } from "react/jsx-runtime";
22
22
  //#region src/bigconsole/pages/DashboardsPage.tsx
23
- var we = "bf-bigconsole-dashboards-view", k = 12, A = 7;
24
- function Te(e, t) {
25
- if (t <= A) return Array.from({ length: t }, (e, t) => t + 1);
23
+ var D = "bf-bigconsole-dashboards-view", O = 12, k = 7;
24
+ function Ee(e, t) {
25
+ if (t <= k) return Array.from({ length: t }, (e, t) => t + 1);
26
26
  let n = new Set([
27
27
  1,
28
28
  t,
@@ -34,12 +34,12 @@ function Te(e, t) {
34
34
  t > 0 && e - r[t - 1] > 1 && i.push(null), i.push(e);
35
35
  }), i;
36
36
  }
37
- var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onCreate: i, onImport: a, canCreate: o, canImport: ee }) {
38
- return /* @__PURE__ */ O("div", {
37
+ var De = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onCreate: i, onImport: a, canCreate: o, canImport: ee }) {
38
+ return /* @__PURE__ */ E("div", {
39
39
  className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
40
- children: [/* @__PURE__ */ D(y, { intensity: "subtle" }), /* @__PURE__ */ D("div", {
40
+ children: [/* @__PURE__ */ T(y, { intensity: "subtle" }), /* @__PURE__ */ T("div", {
41
41
  style: { padding: "var(--space-pagePadding)" },
42
- children: /* @__PURE__ */ O("div", {
42
+ children: /* @__PURE__ */ E("div", {
43
43
  style: {
44
44
  display: "flex",
45
45
  alignItems: "center",
@@ -47,14 +47,14 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
47
47
  flexWrap: "wrap",
48
48
  gap: "var(--space-formGap)"
49
49
  },
50
- children: [/* @__PURE__ */ O("div", {
50
+ children: [/* @__PURE__ */ E("div", {
51
51
  style: {
52
52
  display: "flex",
53
53
  alignItems: "center",
54
54
  gap: "var(--space-formGap)",
55
55
  minWidth: 0
56
56
  },
57
- children: [/* @__PURE__ */ D("div", {
57
+ children: [/* @__PURE__ */ T("div", {
58
58
  style: {
59
59
  display: "flex",
60
60
  height: "var(--size-controlHeight-lg)",
@@ -65,22 +65,22 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
65
65
  borderRadius: "var(--radius-card)",
66
66
  backgroundColor: "var(--color-action-primary-bg)"
67
67
  },
68
- children: /* @__PURE__ */ D(g, { style: {
68
+ children: /* @__PURE__ */ T(g, { style: {
69
69
  height: "var(--size-icon-lg)",
70
70
  width: "var(--size-icon-lg)",
71
71
  color: "var(--color-action-primary-text)"
72
72
  } })
73
- }), /* @__PURE__ */ O("div", {
73
+ }), /* @__PURE__ */ E("div", {
74
74
  style: { minWidth: 0 },
75
- children: [/* @__PURE__ */ D("h1", {
75
+ children: [/* @__PURE__ */ T("h1", {
76
76
  style: {
77
77
  fontSize: "var(--font-size-heading-h4)",
78
78
  fontWeight: "var(--font-weight-bold)",
79
79
  margin: 0,
80
80
  color: "var(--color-text-primary)"
81
81
  },
82
- children: /* @__PURE__ */ D(T, { children: e })
83
- }), /* @__PURE__ */ D("p", {
82
+ children: /* @__PURE__ */ T(C, { children: e })
83
+ }), /* @__PURE__ */ T("p", {
84
84
  style: {
85
85
  fontSize: "var(--font-size-body-sm)",
86
86
  color: "var(--color-text-secondary)",
@@ -89,14 +89,14 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
89
89
  children: t
90
90
  })]
91
91
  })]
92
- }), /* @__PURE__ */ D("div", {
92
+ }), /* @__PURE__ */ T("div", {
93
93
  "data-tour": "bigconsole-dashboard-create",
94
- children: /* @__PURE__ */ D(S, {
94
+ children: /* @__PURE__ */ T(S, {
95
95
  primary: {
96
96
  label: n,
97
97
  onSelect: i,
98
98
  disabled: !o,
99
- icon: /* @__PURE__ */ D(v, { style: {
99
+ icon: /* @__PURE__ */ T(v, { style: {
100
100
  marginRight: "var(--space-iconGap)",
101
101
  height: "var(--size-icon-sm)",
102
102
  width: "var(--size-icon-sm)"
@@ -106,7 +106,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
106
106
  label: r,
107
107
  onSelect: a,
108
108
  disabled: !ee,
109
- icon: /* @__PURE__ */ D(ye, { style: {
109
+ icon: /* @__PURE__ */ T(ye, { style: {
110
110
  height: "var(--size-icon-sm)",
111
111
  width: "var(--size-icon-sm)"
112
112
  } })
@@ -116,75 +116,80 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
116
116
  })
117
117
  })]
118
118
  });
119
- }), j = d(function() {
120
- let d = e(), y = o(), [S, T] = m(""), [A, j] = m(1), [De, M] = m(!1), [N, P] = m(!1), [Oe, F] = m(!1), [I, ke] = m(() => {
119
+ }), A = u(function() {
120
+ let u = e(), y = o(), [S, C] = p(""), [k, A] = p(""), [j, Oe] = p(""), [M, N] = p(1), [ke, P] = p(!1), [F, I] = p(!1), [Ae, L] = p(!1), [R, je] = p(() => {
121
121
  try {
122
- return window.localStorage.getItem(we) === "list" ? "list" : "grid";
122
+ return window.localStorage.getItem(D) === "list" ? "list" : "grid";
123
123
  } catch {
124
124
  return "grid";
125
125
  }
126
- }), L = f((e) => {
127
- ke(e);
126
+ }), z = d((e) => {
127
+ je(e);
128
128
  try {
129
- window.localStorage.setItem(we, e);
129
+ window.localStorage.setItem(D, e);
130
130
  } catch {}
131
- }, []), { loading: R, error: z, dashboards: B, createDashboard: V, deleteDashboard: H, cloneDashboard: U, refetch: W } = i(), { hasPermission: G, isLoading: K } = ce(), q = G(a.DASHBOARD_READ), J = G(a.DASHBOARD_CREATE), Ae = G(a.DASHBOARD_IMPORT), [Y, je] = oe();
132
- p(() => {
133
- let e = ie(Y, {
134
- permissionsLoading: K,
135
- canRead: q,
136
- canCreate: J
131
+ }, []), { loading: B, error: Me, dashboards: V, createDashboard: Ne, deleteDashboard: Pe, cloneDashboard: Fe, refetch: H } = i(), { hasPermission: U, isLoading: W } = le(), G = U(a.DASHBOARD_READ), K = U(a.DASHBOARD_CREATE), Ie = U(a.DASHBOARD_IMPORT), [q, Le] = se();
132
+ f(() => {
133
+ let e = ae(q, {
134
+ permissionsLoading: W,
135
+ canRead: G,
136
+ canCreate: K
137
137
  });
138
- e === "none" || e === "wait" || (e === "open" && M(!0), je(ae(Y), { replace: !0 }));
138
+ e === "none" || e === "wait" || (e === "open" && P(!0), Le(oe(q), { replace: !0 }));
139
139
  }, [
140
- Y,
141
- je,
142
- K,
143
140
  q,
144
- J
141
+ Le,
142
+ W,
143
+ G,
144
+ K
145
145
  ]);
146
- let X = B.filter((e) => e.name.toLowerCase().includes(S.toLowerCase()) || e.description?.toLowerCase().includes(S.toLowerCase())), Z = Math.max(1, Math.ceil(X.length / k)), Q = (A - 1) * k, $ = X.slice(Q, Q + k);
147
- p(() => {
148
- j(1);
149
- }, [S, I]), p(() => {
150
- A > Z && j(Z);
151
- }, [A, Z]);
152
- let Me = f(() => {
153
- j((e) => Math.max(1, e - 1));
154
- }, []), Ne = f(() => {
155
- j((e) => Math.min(Z, e + 1));
156
- }, [Z]), Pe = f((e) => {
157
- j(e);
158
- }, []), Fe = f(() => {
159
- M(!0);
160
- }, []), Ie = f(({ dashboardId: e }) => {
161
- W(), d(`/dashboards/${e}`);
162
- }, [W, d]), Le = f(() => {
163
- N || M(!1);
164
- }, [N]), Re = f(async (e) => {
146
+ let Re = Array.from(new Set(V.flatMap((e) => e.category ? [e.category] : []))).sort(), J = V.filter((e) => (!k || e.category === k) && (!j || e.status === j) && (e.name.toLowerCase().includes(S.toLowerCase()) || e.description?.toLowerCase().includes(S.toLowerCase()))), Y = Math.max(1, Math.ceil(J.length / O)), X = (M - 1) * O, Z = J.slice(X, X + O);
147
+ f(() => {
148
+ N(1);
149
+ }, [
150
+ S,
151
+ R,
152
+ k,
153
+ j
154
+ ]), f(() => {
155
+ M > Y && N(Y);
156
+ }, [M, Y]);
157
+ let ze = d(() => {
158
+ N((e) => Math.max(1, e - 1));
159
+ }, []), Be = d(() => {
160
+ N((e) => Math.min(Y, e + 1));
161
+ }, [Y]), Ve = d((e) => {
162
+ N(e);
163
+ }, []), He = d(() => {
165
164
  P(!0);
165
+ }, []), Ue = d(({ dashboardId: e }) => {
166
+ H(), u(`/dashboards/${e}`);
167
+ }, [H, u]), We = d(() => {
168
+ F || P(!1);
169
+ }, [F]), Ge = d(async (e) => {
170
+ I(!0);
166
171
  try {
167
- let t = await V({
172
+ let t = await Ne({
168
173
  name: e.name,
169
174
  description: e.description,
170
175
  category: e.category,
171
176
  tags: e.tags
172
177
  });
173
- t && (M(!1), d(`/dashboards/${t.id}/builder`));
178
+ t && (P(!1), u(`/dashboards/${t.id}/builder`));
174
179
  } catch (e) {
175
180
  if (t(e, "project")) {
176
- M(!1);
181
+ P(!1);
177
182
  return;
178
183
  }
179
- throw console.error("Failed to create dashboard:", e), c() && u("error"), e;
184
+ throw console.error("Failed to create dashboard:", e), c() && l("error"), e;
180
185
  } finally {
181
- P(!1);
186
+ I(!1);
182
187
  }
183
- }, [V, d]), ze = f((e) => {
184
- d(`/dashboards/${e}`);
185
- }, [d]), Be = f((e, t) => {
186
- t.stopPropagation(), d(`/dashboards/${e}/builder`);
187
- }, [d]), Ve = f(async (e, t) => {
188
+ }, [Ne, u]), Q = d((e) => {
189
+ u(`/dashboards/${e}`);
190
+ }, [u]), Ke = d((e, t) => {
191
+ t.stopPropagation(), u(`/dashboards/${e}/builder`);
192
+ }, [u]), qe = d(async (e, t) => {
188
193
  t.stopPropagation();
189
194
  let n = y("bigconsole.dashboards.confirmDelete", "Are you sure you want to delete this dashboard?"), r = await ne({
190
195
  title: "Delete dashboard?",
@@ -193,122 +198,122 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
193
198
  cancelButtonTitle: "Cancel"
194
199
  });
195
200
  if (r === null ? window.confirm(n) : r) {
196
- l("medium");
201
+ re("medium");
197
202
  try {
198
- await H(e), c() && u("success");
203
+ await Pe(e), c() && l("success");
199
204
  } catch (e) {
200
- throw c() && u("error"), e;
205
+ throw c() && l("error"), e;
201
206
  }
202
207
  }
203
- }, [H, y]), He = f(async (e, n, r) => {
208
+ }, [Pe, y]), Je = d(async (e, n, r) => {
204
209
  r.stopPropagation();
205
210
  let i = y("bigconsole.dashboards.clone.defaultSuffix", "{{sourceName}} (Copy)", { sourceName: n }), a = window.prompt(y("bigconsole.dashboards.clone.namePrompt", "Name for the cloned dashboard:"), i);
206
211
  if (!(!a || !a.trim())) {
207
- l("medium");
212
+ re("medium");
208
213
  try {
209
- let t = await U(e, a.trim());
210
- t && (c() && u("success"), d(`/dashboards/${t.id}`));
214
+ let t = await Fe(e, a.trim());
215
+ t && (c() && l("success"), u(`/dashboards/${t.id}`));
211
216
  } catch (e) {
212
217
  if (t(e, "project")) return;
213
- throw c() && u("error"), e;
218
+ throw c() && l("error"), e;
214
219
  }
215
220
  }
216
221
  }, [
217
- U,
218
- d,
222
+ Fe,
223
+ u,
219
224
  y
220
- ]), Ue = f(() => {
221
- F(!0);
222
- }, []), We = f(() => {
223
- F(!1);
224
- }, []), Ge = f((e, t) => {
225
- W();
226
- }, [W]), Ke = (e) => {
225
+ ]), Ye = d(() => {
226
+ L(!0);
227
+ }, []), Xe = d(() => {
228
+ L(!1);
229
+ }, []), Ze = d((e, t) => {
230
+ H();
231
+ }, [H]), Qe = (e) => {
227
232
  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);
228
233
  return i < 1 ? y("bigconsole.dashboards.time.justNow", "Just now") : i < 60 ? `${i}${y("bigconsole.dashboards.time.minutesAgoSuffix", "m ago")}` : a < 24 ? `${a}${y("bigconsole.dashboards.time.hoursAgoSuffix", "h ago")}` : o < 7 ? `${o}${y("bigconsole.dashboards.time.daysAgoSuffix", "d ago")}` : new Intl.DateTimeFormat("en-US", {
229
234
  month: "short",
230
235
  day: "numeric",
231
236
  year: t.getFullYear() === n.getFullYear() ? void 0 : "numeric"
232
237
  }).format(t);
233
- }, qe = te(), Je = (e) => e.widgetCount ?? 0, Ye = (e) => e.pageCount || 0, Xe = /* @__PURE__ */ D(Ee, {
238
+ }, $ = te(), $e = (e) => e.widgetCount ?? 0, et = (e) => e.pageCount || 0, tt = /* @__PURE__ */ T(De, {
234
239
  title: y("bigconsole.dashboards.title", "Dashboards"),
235
240
  subtitle: y("bigconsole.dashboards.subtitle", "Create and manage your analytics dashboards"),
236
241
  createLabel: y("bigconsole.dashboards.actions.create", "Create Dashboard"),
237
242
  importLabel: y("bigconsole.dashboards.actions.import", "Import"),
238
- onCreate: Fe,
239
- onImport: Ue,
240
- canCreate: J,
241
- canImport: Ae
243
+ onCreate: He,
244
+ onImport: Ye,
245
+ canCreate: K,
246
+ canImport: Ie
242
247
  });
243
- if (K) return /* @__PURE__ */ D("div", {
248
+ if (W) return /* @__PURE__ */ T("div", {
244
249
  style: {
245
250
  display: "flex",
246
251
  alignItems: "center",
247
252
  justifyContent: "center",
248
253
  padding: "80px 0"
249
254
  },
250
- children: /* @__PURE__ */ D(E, { style: {
255
+ children: /* @__PURE__ */ T(w, { style: {
251
256
  height: "var(--size-icon-xl)",
252
257
  width: "var(--size-icon-xl)"
253
258
  } })
254
259
  });
255
- if (!q) return /* @__PURE__ */ D(se, {
260
+ if (!G) return /* @__PURE__ */ T(ce, {
256
261
  title: y("bigconsole.dashboards.accessDenied.title", "Access Denied"),
257
262
  description: y("bigconsole.dashboards.accessDenied.description", "You don't have permission to view dashboards.")
258
263
  });
259
- if (z) return /* @__PURE__ */ O("div", {
264
+ if (Me) return /* @__PURE__ */ E("div", {
260
265
  "data-tour": "bigconsole-dashboards-list",
261
266
  style: {
262
267
  minHeight: "100vh",
263
268
  backgroundColor: "var(--color-bg-canvas)"
264
269
  },
265
- children: [Xe, /* @__PURE__ */ D("div", {
270
+ children: [tt, /* @__PURE__ */ T("div", {
266
271
  style: { padding: "var(--space-pagePadding)" },
267
- children: /* @__PURE__ */ D(n, {
272
+ children: /* @__PURE__ */ T(n, {
268
273
  headingLevel: 2,
269
274
  tone: "danger",
270
275
  title: y("bigconsole.dashboards.error.title", "Error loading dashboards"),
271
- description: z.message,
276
+ description: Me.message,
272
277
  "data-testid": "dashboards-error",
273
- actions: /* @__PURE__ */ D(x, {
278
+ actions: /* @__PURE__ */ T(x, {
274
279
  size: "sm",
275
- onClick: () => W(),
280
+ onClick: () => H(),
276
281
  children: y("bigconsole.dashboards.error.retry", "Retry")
277
282
  })
278
283
  })
279
284
  })]
280
285
  });
281
- let Ze = X.length;
282
- return /* @__PURE__ */ O("div", {
286
+ let nt = J.length;
287
+ return /* @__PURE__ */ E("div", {
283
288
  "data-tour": "bigconsole-dashboards-list",
284
289
  style: {
285
290
  minHeight: "100vh",
286
291
  backgroundColor: "var(--color-bg-canvas)"
287
292
  },
288
293
  children: [
289
- Xe,
290
- /* @__PURE__ */ D("div", {
294
+ tt,
295
+ /* @__PURE__ */ T("div", {
291
296
  style: { padding: "var(--space-pagePadding)" },
292
- children: /* @__PURE__ */ O(r, { children: [/* @__PURE__ */ D(n, {
297
+ children: /* @__PURE__ */ E(r, { children: [/* @__PURE__ */ T(n, {
293
298
  emphasis: "muted",
294
299
  padding: "compact",
295
300
  "aria-label": y("bigconsole.dashboards.about", "About dashboards"),
296
- children: /* @__PURE__ */ D(Ce, {
301
+ children: /* @__PURE__ */ T(Te, {
297
302
  className: "max-w-[80ch]",
298
303
  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."
299
304
  })
300
- }), /* @__PURE__ */ O(n, {
305
+ }), /* @__PURE__ */ E(n, {
301
306
  headingLevel: 2,
302
307
  emphasis: "primary",
303
308
  "data-testid": "dashboards-results",
304
309
  title: y("bigconsole.dashboards.results.title", "Your dashboards"),
305
310
  description: y("bigconsole.dashboards.results.description", "Open a board to view it, or use the card actions to edit, duplicate or delete."),
306
- meta: /* @__PURE__ */ D(b, {
311
+ meta: /* @__PURE__ */ T(b, {
307
312
  variant: "secondary",
308
- "aria-label": y("bigconsole.dashboards.results.count", `${Ze} dashboards`),
309
- children: Ze
313
+ "aria-label": y("bigconsole.dashboards.results.count", `${nt} dashboards`),
314
+ children: nt
310
315
  }),
311
- actions: /* @__PURE__ */ O("div", {
316
+ actions: /* @__PURE__ */ E("div", {
312
317
  role: "group",
313
318
  "aria-label": y("bigconsole.dashboards.view.label", "Result layout"),
314
319
  style: {
@@ -319,12 +324,12 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
319
324
  borderRadius: "var(--radius-button)",
320
325
  backgroundColor: "var(--color-bg-sunken)"
321
326
  },
322
- children: [/* @__PURE__ */ D(x, {
323
- variant: I === "grid" ? "default" : "ghost",
327
+ children: [/* @__PURE__ */ T(x, {
328
+ variant: R === "grid" ? "default" : "ghost",
324
329
  size: "sm",
325
- onClick: () => L("grid"),
330
+ onClick: () => z("grid"),
326
331
  "aria-label": y("bigconsole.dashboards.view.grid", "Grid view"),
327
- "aria-pressed": I === "grid",
332
+ "aria-pressed": R === "grid",
328
333
  title: y("bigconsole.dashboards.view.grid", "Grid view"),
329
334
  style: {
330
335
  height: "var(--size-controlHeight-md)",
@@ -332,16 +337,16 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
332
337
  padding: 0,
333
338
  borderRadius: "var(--radius-button)"
334
339
  },
335
- children: /* @__PURE__ */ D(he, { style: {
340
+ children: /* @__PURE__ */ T(he, { style: {
336
341
  height: "var(--size-icon-sm)",
337
342
  width: "var(--size-icon-sm)"
338
343
  } })
339
- }), /* @__PURE__ */ D(x, {
340
- variant: I === "list" ? "default" : "ghost",
344
+ }), /* @__PURE__ */ T(x, {
345
+ variant: R === "list" ? "default" : "ghost",
341
346
  size: "sm",
342
- onClick: () => L("list"),
347
+ onClick: () => z("list"),
343
348
  "aria-label": y("bigconsole.dashboards.view.list", "List view"),
344
- "aria-pressed": I === "list",
349
+ "aria-pressed": R === "list",
345
350
  title: y("bigconsole.dashboards.view.list", "List view"),
346
351
  style: {
347
352
  height: "var(--size-controlHeight-md)",
@@ -349,7 +354,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
349
354
  padding: 0,
350
355
  borderRadius: "var(--radius-button)"
351
356
  },
352
- children: /* @__PURE__ */ D(ge, { style: {
357
+ children: /* @__PURE__ */ T(ge, { style: {
353
358
  height: "var(--size-icon-sm)",
354
359
  width: "var(--size-icon-sm)"
355
360
  } })
@@ -357,13 +362,13 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
357
362
  }),
358
363
  bodyClassName: "flex flex-col gap-form-gap",
359
364
  children: [
360
- /* @__PURE__ */ O("div", {
365
+ /* @__PURE__ */ E("div", {
361
366
  style: {
362
367
  position: "relative",
363
368
  width: "100%",
364
369
  maxWidth: "420px"
365
370
  },
366
- children: [/* @__PURE__ */ D(_e, {
371
+ children: [/* @__PURE__ */ T(_e, {
367
372
  "aria-hidden": "true",
368
373
  style: {
369
374
  position: "absolute",
@@ -374,32 +379,60 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
374
379
  width: "var(--size-icon-sm)",
375
380
  color: "var(--color-text-muted)"
376
381
  }
377
- }), /* @__PURE__ */ D(Se, {
382
+ }), /* @__PURE__ */ T(we, {
378
383
  type: "search",
379
384
  "aria-label": y("bigconsole.dashboards.search.placeholder", "Search dashboards..."),
380
385
  placeholder: y("bigconsole.dashboards.search.placeholder", "Search dashboards..."),
381
386
  value: S,
382
- onChange: (e) => T(e.target.value),
387
+ onChange: (e) => C(e.target.value),
383
388
  style: {
384
389
  paddingLeft: "var(--size-controlHeight-md)",
385
390
  height: "var(--size-controlHeight-md)"
386
391
  }
387
392
  })]
388
393
  }),
389
- R && B.length === 0 && /* @__PURE__ */ D("div", {
394
+ /* @__PURE__ */ E("div", {
395
+ className: "flex flex-wrap gap-control-gap",
396
+ children: [/* @__PURE__ */ E("select", {
397
+ "aria-label": y("bigconsole.dashboards.filters.category", "Category"),
398
+ value: k,
399
+ onChange: (e) => A(e.target.value),
400
+ className: "min-w-0 max-w-full rounded-button border border-border-subtle bg-bg-surface p-2 text-sm text-text-primary",
401
+ children: [/* @__PURE__ */ T("option", {
402
+ value: "",
403
+ children: y("bigconsole.dashboards.filters.allCategories", "All categories")
404
+ }), Re.map((e) => /* @__PURE__ */ T("option", {
405
+ value: e,
406
+ children: e
407
+ }, e))]
408
+ }), /* @__PURE__ */ E("select", {
409
+ "aria-label": y("bigconsole.dashboards.filters.status", "Status"),
410
+ value: j,
411
+ onChange: (e) => Oe(e.target.value),
412
+ className: "min-w-0 max-w-full rounded-button border border-border-subtle bg-bg-surface p-2 text-sm text-text-primary",
413
+ children: [/* @__PURE__ */ T("option", {
414
+ value: "",
415
+ children: y("bigconsole.dashboards.filters.allStatuses", "All statuses")
416
+ }), Array.from(new Set(V.map((e) => e.status).filter((e) => e !== void 0))).sort().map((e) => /* @__PURE__ */ T("option", {
417
+ value: e,
418
+ children: $(e)
419
+ }, e))]
420
+ })]
421
+ }),
422
+ B && V.length === 0 && /* @__PURE__ */ T("div", {
390
423
  style: {
391
424
  display: "flex",
392
425
  alignItems: "center",
393
426
  justifyContent: "center",
394
427
  padding: "80px 0"
395
428
  },
396
- children: /* @__PURE__ */ O("div", {
429
+ children: /* @__PURE__ */ E("div", {
397
430
  style: { textAlign: "center" },
398
- children: [/* @__PURE__ */ D(E, { style: {
431
+ children: [/* @__PURE__ */ T(w, { style: {
399
432
  height: "var(--size-icon-xl)",
400
433
  width: "var(--size-icon-xl)",
401
434
  margin: "0 auto var(--space-formGap)"
402
- } }), /* @__PURE__ */ D("p", {
435
+ } }), /* @__PURE__ */ T("p", {
403
436
  style: {
404
437
  fontSize: "var(--font-size-body-sm)",
405
438
  color: "var(--color-text-muted)"
@@ -408,27 +441,27 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
408
441
  })]
409
442
  })
410
443
  }),
411
- !R && I === "grid" && X.length > 0 && /* @__PURE__ */ D("div", {
444
+ !B && R === "grid" && J.length > 0 && /* @__PURE__ */ T("div", {
412
445
  style: {
413
446
  display: "grid",
414
447
  gridTemplateColumns: "repeat(auto-fill, minmax(min(320px, 100%), 1fr))",
415
448
  gap: "var(--space-formGap)"
416
449
  },
417
- children: $.map((e) => /* @__PURE__ */ D(C, {
418
- onClick: () => ze(e.id),
450
+ children: Z.map((e) => /* @__PURE__ */ T(be, {
451
+ onClick: () => Q(e.id),
419
452
  style: { cursor: "pointer" },
420
453
  className: "motion-safe:transition-[box-shadow,border-color] hover:border-[var(--color-border-hover)] hover:shadow-[var(--shadow-elevation-2)]",
421
- children: /* @__PURE__ */ O(w, {
454
+ children: /* @__PURE__ */ E(xe, {
422
455
  style: { padding: "var(--space-cardPadding)" },
423
456
  children: [
424
- /* @__PURE__ */ O("div", {
457
+ /* @__PURE__ */ E("div", {
425
458
  style: {
426
459
  display: "flex",
427
460
  alignItems: "center",
428
461
  gap: "var(--space-controlGap)",
429
462
  marginBottom: "var(--space-formGap)"
430
463
  },
431
- children: [/* @__PURE__ */ D("div", {
464
+ children: [/* @__PURE__ */ T("div", {
432
465
  style: {
433
466
  display: "flex",
434
467
  height: "var(--size-controlHeight-lg)",
@@ -439,7 +472,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
439
472
  borderRadius: "var(--radius-button)",
440
473
  backgroundColor: "var(--color-bg-accentSubtle)"
441
474
  },
442
- children: /* @__PURE__ */ D(g, {
475
+ children: /* @__PURE__ */ T(g, {
443
476
  "aria-hidden": "true",
444
477
  style: {
445
478
  height: "var(--size-icon-md)",
@@ -447,12 +480,12 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
447
480
  color: "var(--color-action-primary-bg)"
448
481
  }
449
482
  })
450
- }), /* @__PURE__ */ O("div", {
483
+ }), /* @__PURE__ */ E("div", {
451
484
  style: {
452
485
  flex: 1,
453
486
  minWidth: 0
454
487
  },
455
- children: [/* @__PURE__ */ D("h3", {
488
+ children: [/* @__PURE__ */ T("h3", {
456
489
  style: {
457
490
  fontWeight: "var(--font-weight-bold)",
458
491
  fontSize: "var(--font-size-body-md)",
@@ -462,8 +495,15 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
462
495
  textOverflow: "ellipsis",
463
496
  whiteSpace: "nowrap"
464
497
  },
465
- children: e.name
466
- }), /* @__PURE__ */ O("div", {
498
+ children: /* @__PURE__ */ T("button", {
499
+ type: "button",
500
+ className: "max-w-full truncate text-left hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
501
+ onClick: (t) => {
502
+ t.stopPropagation(), Q(e.id);
503
+ },
504
+ children: e.name
505
+ })
506
+ }), /* @__PURE__ */ E("div", {
467
507
  style: {
468
508
  display: "flex",
469
509
  alignItems: "center",
@@ -471,7 +511,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
471
511
  flexWrap: "wrap",
472
512
  marginTop: "var(--space-controlGap)"
473
513
  },
474
- children: [e.category && /* @__PURE__ */ D(b, {
514
+ children: [e.category && /* @__PURE__ */ T(b, {
475
515
  variant: "secondary",
476
516
  style: {
477
517
  fontSize: "10px",
@@ -479,14 +519,14 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
479
519
  textTransform: "uppercase"
480
520
  },
481
521
  children: e.category
482
- }), e.status && /* @__PURE__ */ D(s, {
522
+ }), e.status && /* @__PURE__ */ T(s, {
483
523
  status: e.status,
484
- label: qe(e.status)
524
+ label: $(e.status)
485
525
  })]
486
526
  })]
487
527
  })]
488
528
  }),
489
- /* @__PURE__ */ D("p", {
529
+ /* @__PURE__ */ T("p", {
490
530
  style: {
491
531
  fontSize: "var(--font-size-body-sm)",
492
532
  lineHeight: "var(--font-lineHeight-normal)",
@@ -500,7 +540,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
500
540
  },
501
541
  children: e.description || y("bigconsole.dashboards.card.noDescription", "No description provided")
502
542
  }),
503
- /* @__PURE__ */ O("div", {
543
+ /* @__PURE__ */ E("div", {
504
544
  style: {
505
545
  display: "flex",
506
546
  alignItems: "center",
@@ -511,27 +551,27 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
511
551
  borderRadius: "var(--radius-button)"
512
552
  },
513
553
  children: [
514
- /* @__PURE__ */ O("div", {
554
+ /* @__PURE__ */ E("div", {
515
555
  style: {
516
556
  display: "flex",
517
557
  alignItems: "center",
518
558
  gap: "var(--space-iconGap)"
519
559
  },
520
560
  children: [
521
- /* @__PURE__ */ D(me, { style: {
561
+ /* @__PURE__ */ T(me, { style: {
522
562
  height: "var(--size-icon-sm)",
523
563
  width: "var(--size-icon-sm)",
524
564
  color: "var(--color-action-primary-bg)"
525
565
  } }),
526
- /* @__PURE__ */ D("span", {
566
+ /* @__PURE__ */ T("span", {
527
567
  style: {
528
568
  fontSize: "var(--font-size-body-sm)",
529
569
  fontWeight: "var(--font-weight-semibold)",
530
570
  color: "var(--color-text-primary)"
531
571
  },
532
- children: Ye(e)
572
+ children: et(e)
533
573
  }),
534
- /* @__PURE__ */ D("span", {
574
+ /* @__PURE__ */ T("span", {
535
575
  style: {
536
576
  fontSize: "var(--font-size-body-sm)",
537
577
  color: "var(--color-text-muted)"
@@ -540,32 +580,32 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
540
580
  })
541
581
  ]
542
582
  }),
543
- /* @__PURE__ */ D("div", { style: {
583
+ /* @__PURE__ */ T("div", { style: {
544
584
  width: "1px",
545
585
  height: "var(--size-icon-sm)",
546
586
  backgroundColor: "var(--color-border-subtle)"
547
587
  } }),
548
- /* @__PURE__ */ O("div", {
588
+ /* @__PURE__ */ E("div", {
549
589
  style: {
550
590
  display: "flex",
551
591
  alignItems: "center",
552
592
  gap: "var(--space-iconGap)"
553
593
  },
554
594
  children: [
555
- /* @__PURE__ */ D(pe, { style: {
595
+ /* @__PURE__ */ T(h, { style: {
556
596
  height: "var(--size-icon-sm)",
557
597
  width: "var(--size-icon-sm)",
558
598
  color: "var(--color-action-primary-bg)"
559
599
  } }),
560
- /* @__PURE__ */ D("span", {
600
+ /* @__PURE__ */ T("span", {
561
601
  style: {
562
602
  fontSize: "var(--font-size-body-sm)",
563
603
  fontWeight: "var(--font-weight-semibold)",
564
604
  color: "var(--color-text-primary)"
565
605
  },
566
- children: Je(e)
606
+ children: $e(e)
567
607
  }),
568
- /* @__PURE__ */ D("span", {
608
+ /* @__PURE__ */ T("span", {
569
609
  style: {
570
610
  fontSize: "var(--font-size-body-sm)",
571
611
  color: "var(--color-text-muted)"
@@ -576,7 +616,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
576
616
  })
577
617
  ]
578
618
  }),
579
- /* @__PURE__ */ O("div", {
619
+ /* @__PURE__ */ E("div", {
580
620
  style: {
581
621
  display: "flex",
582
622
  alignItems: "center",
@@ -586,38 +626,38 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
586
626
  paddingTop: "var(--space-controlGap)",
587
627
  borderTop: "1px solid var(--color-border-subtle)"
588
628
  },
589
- children: [/* @__PURE__ */ O("div", {
629
+ children: [/* @__PURE__ */ E("div", {
590
630
  style: {
591
631
  display: "flex",
592
632
  alignItems: "center",
593
633
  gap: "var(--space-iconGap)"
594
634
  },
595
- children: [/* @__PURE__ */ D(le, { style: {
635
+ children: [/* @__PURE__ */ T(ue, { style: {
596
636
  height: "var(--size-icon-sm)",
597
637
  width: "var(--size-icon-sm)",
598
638
  color: "var(--color-text-muted)"
599
- } }), /* @__PURE__ */ D("span", {
639
+ } }), /* @__PURE__ */ T("span", {
600
640
  style: {
601
641
  fontSize: "var(--font-size-body-sm)",
602
642
  fontWeight: "var(--font-weight-medium)",
603
643
  color: "var(--color-text-muted)"
604
644
  },
605
- children: Ke(e.updatedAt)
645
+ children: Qe(e.updatedAt)
606
646
  })]
607
- }), /* @__PURE__ */ O("div", {
647
+ }), /* @__PURE__ */ E("div", {
608
648
  style: {
609
649
  display: "flex",
610
650
  alignItems: "center",
611
651
  gap: "var(--space-controlGap)"
612
652
  },
613
653
  children: [
614
- /* @__PURE__ */ D(h, {
654
+ /* @__PURE__ */ T(m, {
615
655
  permission: a.DASHBOARD_UPDATE,
616
656
  deniedBehavior: "hide",
617
- children: /* @__PURE__ */ D(x, {
657
+ children: /* @__PURE__ */ T(x, {
618
658
  variant: "ghost",
619
659
  size: "sm",
620
- onClick: (t) => Be(e.id, t),
660
+ onClick: (t) => Ke(e.id, t),
621
661
  style: {
622
662
  height: "var(--size-controlHeight-md)",
623
663
  width: "var(--size-controlHeight-md)",
@@ -625,19 +665,19 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
625
665
  borderRadius: "var(--radius-button)"
626
666
  },
627
667
  title: y("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
628
- children: /* @__PURE__ */ D(_, { style: {
668
+ children: /* @__PURE__ */ T(_, { style: {
629
669
  height: "var(--size-icon-sm)",
630
670
  width: "var(--size-icon-sm)"
631
671
  } })
632
672
  })
633
673
  }),
634
- /* @__PURE__ */ D(h, {
674
+ /* @__PURE__ */ T(m, {
635
675
  permission: a.DASHBOARD_CREATE,
636
676
  deniedBehavior: "hide",
637
- children: /* @__PURE__ */ D(x, {
677
+ children: /* @__PURE__ */ T(x, {
638
678
  variant: "ghost",
639
679
  size: "sm",
640
- onClick: (t) => He(e.id, e.name, t),
680
+ onClick: (t) => Je(e.id, e.name, t),
641
681
  style: {
642
682
  height: "var(--size-controlHeight-md)",
643
683
  width: "var(--size-controlHeight-md)",
@@ -645,19 +685,19 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
645
685
  borderRadius: "var(--radius-button)"
646
686
  },
647
687
  title: y("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
648
- children: /* @__PURE__ */ D(fe, { style: {
688
+ children: /* @__PURE__ */ T(pe, { style: {
649
689
  height: "var(--size-icon-sm)",
650
690
  width: "var(--size-icon-sm)"
651
691
  } })
652
692
  })
653
693
  }),
654
- /* @__PURE__ */ D(h, {
694
+ /* @__PURE__ */ T(m, {
655
695
  permission: a.DASHBOARD_DELETE,
656
696
  deniedBehavior: "hide",
657
- children: /* @__PURE__ */ D(x, {
697
+ children: /* @__PURE__ */ T(x, {
658
698
  variant: "ghost",
659
699
  size: "sm",
660
- onClick: (t) => Ve(e.id, t),
700
+ onClick: (t) => qe(e.id, t),
661
701
  style: {
662
702
  height: "var(--size-controlHeight-md)",
663
703
  width: "var(--size-controlHeight-md)",
@@ -666,7 +706,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
666
706
  },
667
707
  className: "hover:text-status-error-text hover:bg-status-error-bg/10",
668
708
  title: y("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
669
- children: /* @__PURE__ */ D(ve, { style: {
709
+ children: /* @__PURE__ */ T(ve, { style: {
670
710
  height: "var(--size-icon-sm)",
671
711
  width: "var(--size-icon-sm)"
672
712
  } })
@@ -679,19 +719,19 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
679
719
  })
680
720
  }, e.id))
681
721
  }),
682
- !R && I === "list" && X.length > 0 && /* @__PURE__ */ D("div", {
722
+ !B && R === "list" && J.length > 0 && /* @__PURE__ */ T("div", {
683
723
  style: {
684
724
  display: "flex",
685
725
  flexDirection: "column",
686
726
  gap: "var(--space-controlGap)"
687
727
  },
688
- children: $.map((e) => /* @__PURE__ */ D(C, {
689
- onClick: () => ze(e.id),
728
+ children: Z.map((e) => /* @__PURE__ */ T(be, {
729
+ onClick: () => Q(e.id),
690
730
  style: { cursor: "pointer" },
691
731
  className: "motion-safe:transition-[box-shadow,border-color] hover:border-[var(--color-border-hover)] hover:shadow-[var(--shadow-elevation-2)]",
692
- children: /* @__PURE__ */ D(w, {
732
+ children: /* @__PURE__ */ T(xe, {
693
733
  style: { padding: "var(--space-cardPadding)" },
694
- children: /* @__PURE__ */ O("div", {
734
+ children: /* @__PURE__ */ E("div", {
695
735
  style: {
696
736
  display: "flex",
697
737
  alignItems: "center",
@@ -699,7 +739,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
699
739
  flexWrap: "wrap"
700
740
  },
701
741
  children: [
702
- /* @__PURE__ */ D("div", {
742
+ /* @__PURE__ */ T("div", {
703
743
  style: {
704
744
  display: "flex",
705
745
  height: "var(--size-controlHeight-lg)",
@@ -710,7 +750,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
710
750
  borderRadius: "var(--radius-button)",
711
751
  backgroundColor: "var(--color-bg-accentSubtle)"
712
752
  },
713
- children: /* @__PURE__ */ D(g, {
753
+ children: /* @__PURE__ */ T(g, {
714
754
  "aria-hidden": "true",
715
755
  style: {
716
756
  height: "var(--size-icon-md)",
@@ -719,12 +759,12 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
719
759
  }
720
760
  })
721
761
  }),
722
- /* @__PURE__ */ O("div", {
762
+ /* @__PURE__ */ E("div", {
723
763
  style: {
724
764
  flex: "1 1 12rem",
725
765
  minWidth: 0
726
766
  },
727
- children: [/* @__PURE__ */ O("div", {
767
+ children: [/* @__PURE__ */ E("div", {
728
768
  style: {
729
769
  display: "flex",
730
770
  alignItems: "center",
@@ -732,7 +772,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
732
772
  flexWrap: "wrap"
733
773
  },
734
774
  children: [
735
- /* @__PURE__ */ D("h3", {
775
+ /* @__PURE__ */ T("h3", {
736
776
  style: {
737
777
  fontWeight: "var(--font-weight-bold)",
738
778
  fontSize: "var(--font-size-body-md)",
@@ -743,9 +783,16 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
743
783
  whiteSpace: "nowrap",
744
784
  maxWidth: "100%"
745
785
  },
746
- children: e.name
786
+ children: /* @__PURE__ */ T("button", {
787
+ type: "button",
788
+ className: "max-w-full truncate text-left hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
789
+ onClick: (t) => {
790
+ t.stopPropagation(), Q(e.id);
791
+ },
792
+ children: e.name
793
+ })
747
794
  }),
748
- e.category && /* @__PURE__ */ D(b, {
795
+ e.category && /* @__PURE__ */ T(b, {
749
796
  variant: "secondary",
750
797
  style: {
751
798
  fontSize: "10px",
@@ -754,12 +801,12 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
754
801
  },
755
802
  children: e.category
756
803
  }),
757
- e.status && /* @__PURE__ */ D(s, {
804
+ e.status && /* @__PURE__ */ T(s, {
758
805
  status: e.status,
759
- label: qe(e.status)
806
+ label: $(e.status)
760
807
  })
761
808
  ]
762
- }), /* @__PURE__ */ D("p", {
809
+ }), /* @__PURE__ */ T("p", {
763
810
  style: {
764
811
  fontSize: "var(--font-size-body-sm)",
765
812
  lineHeight: "var(--font-lineHeight-normal)",
@@ -772,7 +819,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
772
819
  children: e.description || y("bigconsole.dashboards.card.noDescription", "No description provided")
773
820
  })]
774
821
  }),
775
- /* @__PURE__ */ O("div", {
822
+ /* @__PURE__ */ E("div", {
776
823
  style: {
777
824
  display: "flex",
778
825
  alignItems: "center",
@@ -780,27 +827,27 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
780
827
  flexWrap: "wrap"
781
828
  },
782
829
  children: [
783
- /* @__PURE__ */ O("div", {
830
+ /* @__PURE__ */ E("div", {
784
831
  style: {
785
832
  display: "flex",
786
833
  alignItems: "center",
787
834
  gap: "var(--space-iconGap)"
788
835
  },
789
836
  children: [
790
- /* @__PURE__ */ D(me, { style: {
837
+ /* @__PURE__ */ T(me, { style: {
791
838
  height: "var(--size-icon-sm)",
792
839
  width: "var(--size-icon-sm)",
793
840
  color: "var(--color-action-primary-bg)"
794
841
  } }),
795
- /* @__PURE__ */ D("span", {
842
+ /* @__PURE__ */ T("span", {
796
843
  style: {
797
844
  fontSize: "var(--font-size-body-sm)",
798
845
  fontWeight: "var(--font-weight-semibold)",
799
846
  color: "var(--color-text-primary)"
800
847
  },
801
- children: Ye(e)
848
+ children: et(e)
802
849
  }),
803
- /* @__PURE__ */ D("span", {
850
+ /* @__PURE__ */ T("span", {
804
851
  style: {
805
852
  fontSize: "var(--font-size-body-sm)",
806
853
  color: "var(--color-text-muted)"
@@ -809,27 +856,27 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
809
856
  })
810
857
  ]
811
858
  }),
812
- /* @__PURE__ */ O("div", {
859
+ /* @__PURE__ */ E("div", {
813
860
  style: {
814
861
  display: "flex",
815
862
  alignItems: "center",
816
863
  gap: "var(--space-iconGap)"
817
864
  },
818
865
  children: [
819
- /* @__PURE__ */ D(pe, { style: {
866
+ /* @__PURE__ */ T(h, { style: {
820
867
  height: "var(--size-icon-sm)",
821
868
  width: "var(--size-icon-sm)",
822
869
  color: "var(--color-action-primary-bg)"
823
870
  } }),
824
- /* @__PURE__ */ D("span", {
871
+ /* @__PURE__ */ T("span", {
825
872
  style: {
826
873
  fontSize: "var(--font-size-body-sm)",
827
874
  fontWeight: "var(--font-weight-semibold)",
828
875
  color: "var(--color-text-primary)"
829
876
  },
830
- children: Je(e)
877
+ children: $e(e)
831
878
  }),
832
- /* @__PURE__ */ D("span", {
879
+ /* @__PURE__ */ T("span", {
833
880
  style: {
834
881
  fontSize: "var(--font-size-body-sm)",
835
882
  color: "var(--color-text-muted)"
@@ -838,41 +885,41 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
838
885
  })
839
886
  ]
840
887
  }),
841
- /* @__PURE__ */ O("div", {
888
+ /* @__PURE__ */ E("div", {
842
889
  style: {
843
890
  display: "flex",
844
891
  alignItems: "center",
845
892
  gap: "var(--space-iconGap)"
846
893
  },
847
- children: [/* @__PURE__ */ D(le, { style: {
894
+ children: [/* @__PURE__ */ T(ue, { style: {
848
895
  height: "var(--size-icon-sm)",
849
896
  width: "var(--size-icon-sm)",
850
897
  color: "var(--color-text-muted)"
851
- } }), /* @__PURE__ */ D("span", {
898
+ } }), /* @__PURE__ */ T("span", {
852
899
  style: {
853
900
  fontSize: "var(--font-size-body-sm)",
854
901
  fontWeight: "var(--font-weight-medium)",
855
902
  color: "var(--color-text-muted)"
856
903
  },
857
- children: Ke(e.updatedAt)
904
+ children: Qe(e.updatedAt)
858
905
  })]
859
906
  })
860
907
  ]
861
908
  }),
862
- /* @__PURE__ */ O("div", {
909
+ /* @__PURE__ */ E("div", {
863
910
  style: {
864
911
  display: "flex",
865
912
  alignItems: "center",
866
913
  gap: "var(--space-controlGap)"
867
914
  },
868
915
  children: [
869
- /* @__PURE__ */ D(h, {
916
+ /* @__PURE__ */ T(m, {
870
917
  permission: a.DASHBOARD_UPDATE,
871
918
  deniedBehavior: "hide",
872
- children: /* @__PURE__ */ D(x, {
919
+ children: /* @__PURE__ */ T(x, {
873
920
  variant: "ghost",
874
921
  size: "sm",
875
- onClick: (t) => Be(e.id, t),
922
+ onClick: (t) => Ke(e.id, t),
876
923
  style: {
877
924
  height: "var(--size-controlHeight-md)",
878
925
  width: "var(--size-controlHeight-md)",
@@ -880,19 +927,19 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
880
927
  borderRadius: "var(--radius-button)"
881
928
  },
882
929
  title: y("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
883
- children: /* @__PURE__ */ D(_, { style: {
930
+ children: /* @__PURE__ */ T(_, { style: {
884
931
  height: "var(--size-icon-sm)",
885
932
  width: "var(--size-icon-sm)"
886
933
  } })
887
934
  })
888
935
  }),
889
- /* @__PURE__ */ D(h, {
936
+ /* @__PURE__ */ T(m, {
890
937
  permission: a.DASHBOARD_CREATE,
891
938
  deniedBehavior: "hide",
892
- children: /* @__PURE__ */ D(x, {
939
+ children: /* @__PURE__ */ T(x, {
893
940
  variant: "ghost",
894
941
  size: "sm",
895
- onClick: (t) => He(e.id, e.name, t),
942
+ onClick: (t) => Je(e.id, e.name, t),
896
943
  style: {
897
944
  height: "var(--size-controlHeight-md)",
898
945
  width: "var(--size-controlHeight-md)",
@@ -900,19 +947,19 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
900
947
  borderRadius: "var(--radius-button)"
901
948
  },
902
949
  title: y("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
903
- children: /* @__PURE__ */ D(fe, { style: {
950
+ children: /* @__PURE__ */ T(pe, { style: {
904
951
  height: "var(--size-icon-sm)",
905
952
  width: "var(--size-icon-sm)"
906
953
  } })
907
954
  })
908
955
  }),
909
- /* @__PURE__ */ D(h, {
956
+ /* @__PURE__ */ T(m, {
910
957
  permission: a.DASHBOARD_DELETE,
911
958
  deniedBehavior: "hide",
912
- children: /* @__PURE__ */ D(x, {
959
+ children: /* @__PURE__ */ T(x, {
913
960
  variant: "ghost",
914
961
  size: "sm",
915
- onClick: (t) => Ve(e.id, t),
962
+ onClick: (t) => qe(e.id, t),
916
963
  style: {
917
964
  height: "var(--size-controlHeight-md)",
918
965
  width: "var(--size-controlHeight-md)",
@@ -921,7 +968,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
921
968
  },
922
969
  className: "hover:text-status-error-text hover:bg-status-error-bg/10",
923
970
  title: y("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
924
- children: /* @__PURE__ */ D(ve, { style: {
971
+ children: /* @__PURE__ */ T(ve, { style: {
925
972
  height: "var(--size-icon-sm)",
926
973
  width: "var(--size-icon-sm)"
927
974
  } })
@@ -934,7 +981,7 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
934
981
  })
935
982
  }, e.id))
936
983
  }),
937
- !R && X.length > 0 && /* @__PURE__ */ D("p", {
984
+ !B && J.length > 0 && /* @__PURE__ */ T("p", {
938
985
  "data-testid": "dashboards-range",
939
986
  style: {
940
987
  margin: 0,
@@ -942,47 +989,47 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
942
989
  color: "var(--color-text-muted)"
943
990
  },
944
991
  children: y("bigconsole.dashboards.pagination.range", "Showing {{from}}–{{to}} of {{total}} dashboards", {
945
- from: Q + 1,
946
- to: Q + $.length,
947
- total: X.length
992
+ from: X + 1,
993
+ to: X + Z.length,
994
+ total: J.length
948
995
  })
949
996
  }),
950
- !R && X.length > k && /* @__PURE__ */ O("nav", {
997
+ !B && J.length > O && /* @__PURE__ */ E("nav", {
951
998
  "aria-label": y("bigconsole.dashboards.pagination.label", "Dashboard pages"),
952
999
  className: "flex flex-wrap items-center justify-center gap-control-gap border-t border-[var(--color-border-subtle)] pt-control-gap",
953
1000
  children: [
954
- /* @__PURE__ */ O(x, {
1001
+ /* @__PURE__ */ E(x, {
955
1002
  variant: "outline",
956
1003
  size: "sm",
957
- onClick: Me,
958
- disabled: A <= 1,
1004
+ onClick: ze,
1005
+ disabled: M <= 1,
959
1006
  "aria-label": y("bigconsole.dashboards.pagination.previous", "Previous"),
960
1007
  style: { minHeight: "var(--size-controlHeight-md)" },
961
- children: [/* @__PURE__ */ D(ue, { style: {
1008
+ children: [/* @__PURE__ */ T(de, { style: {
962
1009
  marginRight: "var(--space-iconGap)",
963
1010
  height: "var(--size-icon-sm)",
964
1011
  width: "var(--size-icon-sm)"
965
1012
  } }), y("bigconsole.dashboards.pagination.previous", "Previous")]
966
1013
  }),
967
- /* @__PURE__ */ D("div", {
1014
+ /* @__PURE__ */ T("div", {
968
1015
  style: {
969
1016
  display: "flex",
970
1017
  alignItems: "center",
971
1018
  gap: "var(--space-iconGap)",
972
1019
  flexWrap: "wrap"
973
1020
  },
974
- children: Te(A, Z).map((e, t) => e === null ? /* @__PURE__ */ D("span", {
1021
+ children: Ee(M, Y).map((e, t) => e === null ? /* @__PURE__ */ T("span", {
975
1022
  "aria-hidden": "true",
976
1023
  style: {
977
1024
  color: "var(--color-text-muted)",
978
1025
  padding: "0 var(--space-iconGap)"
979
1026
  },
980
1027
  children: "…"
981
- }, `gap-${t}`) : /* @__PURE__ */ D(x, {
982
- variant: e === A ? "default" : "ghost",
1028
+ }, `gap-${t}`) : /* @__PURE__ */ T(x, {
1029
+ variant: e === M ? "default" : "ghost",
983
1030
  size: "sm",
984
- onClick: () => Pe(e),
985
- "aria-current": e === A ? "page" : void 0,
1031
+ onClick: () => Ve(e),
1032
+ "aria-current": e === M ? "page" : void 0,
986
1033
  "aria-label": y("bigconsole.dashboards.pagination.page", `Page ${e}`),
987
1034
  style: {
988
1035
  minWidth: "var(--size-controlHeight-md)",
@@ -993,63 +1040,63 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
993
1040
  children: e
994
1041
  }, e))
995
1042
  }),
996
- /* @__PURE__ */ O(x, {
1043
+ /* @__PURE__ */ E(x, {
997
1044
  variant: "outline",
998
1045
  size: "sm",
999
- onClick: Ne,
1000
- disabled: A >= Z,
1046
+ onClick: Be,
1047
+ disabled: M >= Y,
1001
1048
  "aria-label": y("bigconsole.dashboards.pagination.next", "Next"),
1002
1049
  style: { minHeight: "var(--size-controlHeight-md)" },
1003
- children: [y("bigconsole.dashboards.pagination.next", "Next"), /* @__PURE__ */ D(de, { style: {
1050
+ children: [y("bigconsole.dashboards.pagination.next", "Next"), /* @__PURE__ */ T(fe, { style: {
1004
1051
  marginLeft: "var(--space-iconGap)",
1005
1052
  height: "var(--size-icon-sm)",
1006
1053
  width: "var(--size-icon-sm)"
1007
1054
  } })]
1008
1055
  }),
1009
- /* @__PURE__ */ D("span", {
1056
+ /* @__PURE__ */ T("span", {
1010
1057
  style: {
1011
1058
  fontSize: "var(--font-size-body-sm)",
1012
1059
  color: "var(--color-text-muted)"
1013
1060
  },
1014
1061
  children: y("bigconsole.dashboards.pagination.pageOf", "Page {{currentPage}} of {{totalPages}}", {
1015
- currentPage: A,
1016
- totalPages: Z
1062
+ currentPage: M,
1063
+ totalPages: Y
1017
1064
  })
1018
1065
  })
1019
1066
  ]
1020
1067
  }),
1021
- !R && X.length === 0 && /* @__PURE__ */ D(be, {
1068
+ !B && J.length === 0 && /* @__PURE__ */ T(Se, {
1022
1069
  treatment: "insight",
1023
1070
  className: "border-[var(--color-border-seam)]",
1024
- children: /* @__PURE__ */ D(xe, {
1071
+ children: /* @__PURE__ */ T(Ce, {
1025
1072
  illustration: S ? "empty-search" : "empty-data",
1026
1073
  title: S ? y("bigconsole.dashboards.empty.filteredTitle", "No dashboards found") : y("bigconsole.dashboards.empty.title", "No dashboards yet"),
1027
1074
  description: S ? y("bigconsole.dashboards.empty.filteredDescription", "Try adjusting your search terms") : y("bigconsole.dashboards.empty.description", "Get started by creating your first dashboard to visualize your data"),
1028
- action: S ? void 0 : /* @__PURE__ */ O("div", {
1075
+ action: S ? void 0 : /* @__PURE__ */ E("div", {
1029
1076
  style: {
1030
1077
  display: "flex",
1031
1078
  gap: "var(--space-controlGap)",
1032
1079
  flexWrap: "wrap",
1033
1080
  justifyContent: "center"
1034
1081
  },
1035
- children: [/* @__PURE__ */ D(h, {
1082
+ children: [/* @__PURE__ */ T(m, {
1036
1083
  permission: a.DASHBOARD_CREATE,
1037
1084
  deniedBehavior: "hide",
1038
- children: /* @__PURE__ */ O(x, {
1039
- onClick: Fe,
1040
- children: [/* @__PURE__ */ D(v, { style: {
1085
+ children: /* @__PURE__ */ E(x, {
1086
+ onClick: He,
1087
+ children: [/* @__PURE__ */ T(v, { style: {
1041
1088
  marginRight: "var(--space-iconGap)",
1042
1089
  height: "var(--size-icon-sm)",
1043
1090
  width: "var(--size-icon-sm)"
1044
1091
  } }), y("bigconsole.dashboards.actions.create", "Create Dashboard")]
1045
1092
  })
1046
- }), /* @__PURE__ */ D(h, {
1093
+ }), /* @__PURE__ */ T(m, {
1047
1094
  permission: a.DASHBOARD_IMPORT,
1048
1095
  deniedBehavior: "hide",
1049
- children: /* @__PURE__ */ O(x, {
1096
+ children: /* @__PURE__ */ E(x, {
1050
1097
  variant: "outline",
1051
- onClick: Ue,
1052
- children: [/* @__PURE__ */ D(ye, { style: {
1098
+ onClick: Ye,
1099
+ children: [/* @__PURE__ */ T(ye, { style: {
1053
1100
  marginRight: "var(--space-iconGap)",
1054
1101
  height: "var(--size-icon-sm)",
1055
1102
  width: "var(--size-icon-sm)"
@@ -1062,22 +1109,22 @@ var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
1062
1109
  ]
1063
1110
  })] })
1064
1111
  }),
1065
- /* @__PURE__ */ D(ee, {
1066
- isOpen: De,
1067
- isCreating: N,
1068
- onClose: Le,
1069
- onCreate: Re,
1070
- onTemplateInstalled: Ie
1071
- }),
1072
- /* @__PURE__ */ D(re, {
1073
- isOpen: Oe,
1112
+ /* @__PURE__ */ T(ee, {
1113
+ isOpen: ke,
1114
+ isCreating: F,
1074
1115
  onClose: We,
1075
- onSuccess: Ge
1116
+ onCreate: Ge,
1117
+ onTemplateInstalled: Ue
1118
+ }),
1119
+ /* @__PURE__ */ T(ie, {
1120
+ isOpen: Ae,
1121
+ onClose: Xe,
1122
+ onSuccess: Ze
1076
1123
  })
1077
1124
  ]
1078
1125
  });
1079
1126
  });
1080
1127
  //#endregion
1081
- export { j as DashboardsPage, j as default };
1128
+ export { A as DashboardsPage, A as default };
1082
1129
 
1083
1130
  //# sourceMappingURL=DashboardsPage.js.map