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