@burdenoff/microfe-bigconsole 2026.805.1 → 2026.805.3

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