@burdenoff/microfe-bigconsole 2026.805.2 → 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 (134) hide show
  1. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +109 -113
  2. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
  3. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
  4. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
  5. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
  6. package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
  7. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +90 -89
  8. package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
  9. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
  10. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
  11. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
  12. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
  13. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
  14. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
  17. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
  18. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  19. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
  20. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
  21. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
  22. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
  23. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +151 -154
  24. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
  25. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
  26. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
  27. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  28. package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
  29. package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
  30. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
  31. package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
  32. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
  33. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
  34. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
  35. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
  36. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
  37. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
  38. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +182 -197
  39. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
  40. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
  41. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
  42. package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
  43. package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
  44. package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
  45. package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
  46. package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
  47. package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
  48. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
  49. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
  50. package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
  51. package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
  52. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +222 -215
  53. package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
  54. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
  55. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
  56. package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
  57. package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
  58. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
  59. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
  60. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
  61. package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
  62. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
  63. package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
  64. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
  65. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
  66. package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
  67. package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
  68. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +69 -68
  69. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
  70. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
  71. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
  72. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
  73. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
  74. package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
  75. package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
  76. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
  77. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
  78. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
  79. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
  80. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
  81. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
  82. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +178 -177
  83. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
  84. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
  85. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
  86. package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
  87. package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
  88. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
  89. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
  90. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
  91. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
  92. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
  93. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
  94. package/dist/bigconsole/pages/DashboardBuilderPage.js +181 -176
  95. package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
  96. package/dist/bigconsole/pages/DashboardViewPage.js +196 -192
  97. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  98. package/dist/bigconsole/pages/DashboardsPage.js +223 -219
  99. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  100. package/dist/bigconsole/pages/DataParsersPage.js +167 -170
  101. package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
  102. package/dist/bigconsole/pages/DataSinkBuilderPage.js +204 -189
  103. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  104. package/dist/bigconsole/pages/DataSinkViewPage.js +175 -169
  105. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  106. package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
  107. package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
  108. package/dist/bigconsole/pages/InsightsPage.js +238 -208
  109. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  110. package/dist/bigconsole/pages/ParserBuilderPage.js +464 -412
  111. package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
  112. package/dist/bigconsole/pages/ParserViewPage.js +92 -90
  113. package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
  114. package/dist/bigconsole/pages/PipelineBuilderPage.js +221 -194
  115. package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
  116. package/dist/bigconsole/pages/PipelineViewPage.js +181 -184
  117. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  118. package/dist/bigconsole/pages/PipelinesPage.js +128 -127
  119. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  120. package/dist/bigconsole/pages/SettingsPage.js +177 -172
  121. package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
  122. package/dist/bigconsole/pages/WidgetDemoPage.js +121 -83
  123. package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
  124. package/dist/bigconsole/pages/WorkflowViewPage.js +199 -193
  125. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  126. package/dist/bigconsole/pages/WorkflowsPage.js +129 -128
  127. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  128. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
  129. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
  130. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
  131. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
  132. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
  133. package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
  134. package/package.json +2 -1
@@ -3,11 +3,12 @@ import t from "../../hooks/useBigConsoleAnalytics.js";
3
3
  import n from "../../hooks/useImportDashboard.js";
4
4
  import "../../hooks/index.js";
5
5
  import { memo as r, useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
6
- import { AlertTriangle as c, ArrowLeft as ee, Check as l, FileJson as u, Info as d, RefreshCw as f, Upload as p, XCircle as m } from "lucide-react";
7
- import { Badge as h, Button as g, Card as _, CardContent as v, Checkbox as te, Dialog as y, DialogContent as b, DialogDescription as x, DialogFooter as S, DialogHeader as C, DialogTitle as w, Input as T, Label as E, Spinner as ne } from "@burdenoff/fe-libs/ui";
8
- import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
6
+ import { AlertTriangle as c, ArrowLeft as l, Check as u, FileJson as ee, Info as d, RefreshCw as te, Upload as f, XCircle as p } from "lucide-react";
7
+ import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
+ import { Badge as h, Button as g, Card as _, CardContent as v, Checkbox as y, Dialog as b, DialogContent as ne, DialogDescription as re, DialogFooter as ie, DialogHeader as x, DialogTitle as S, Input as C, Label as w, Spinner as T } from "@burdenoff/fe-libs/ui";
9
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
9
10
  //#region src/bigconsole/components/dashboard/ImportDashboardDialog.tsx
10
- function A(e) {
11
+ function k(e) {
11
12
  if (!e) return null;
12
13
  try {
13
14
  let t = JSON.parse(e);
@@ -16,16 +17,16 @@ function A(e) {
16
17
  return null;
17
18
  }
18
19
  }
19
- var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
20
- let [N, P] = s("select"), [, F] = s(null), [I, L] = s(null), [R, z] = s(""), [B, V] = s("PRIVATE"), [H, U] = s(!1), W = o(null), { loading: G, error: K, validationResult: q, importResult: J, validateImport: Y, importDashboard: X, clearState: Z } = n(), Q = t();
20
+ var A = r(function({ isOpen: r, onClose: A, onSuccess: j }) {
21
+ let { t: M } = m(), [N, P] = s("select"), [, F] = s(null), [I, L] = s(null), [R, z] = s(""), [B, V] = s("PRIVATE"), [H, U] = s(!1), W = o(null), { loading: G, error: K, validationResult: q, importResult: J, validateImport: Y, importDashboard: X, clearState: Z } = n(), Q = t();
21
22
  a(() => {
22
23
  r && (P("select"), F(null), L(null), z(""), V("PRIVATE"), U(!1), Z());
23
24
  }, [r, Z]);
24
- let re = i(async (e) => {
25
+ let ae = i(async (e) => {
25
26
  let t = e.target.files?.[0];
26
27
  if (!t) return;
27
28
  if (!t.name.endsWith(".json")) {
28
- alert("Please select a JSON file");
29
+ alert(M("bigconsole.dashboards.import.selectJsonFile", "Please select a JSON file"));
29
30
  return;
30
31
  }
31
32
  F(t);
@@ -36,16 +37,16 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
36
37
  let n = await Y(t);
37
38
  n && (P("preview"), n.dashboardInfo?.name && z(n.dashboardInfo.name));
38
39
  }, n.onerror = () => {
39
- alert("Failed to read file");
40
+ alert(M("bigconsole.dashboards.import.failedToReadFile", "Failed to read file"));
40
41
  }, n.readAsText(t);
41
- }, [Y]), ie = i((e) => {
42
+ }, [Y, M]), oe = i((e) => {
42
43
  e.preventDefault();
43
44
  let t = e.dataTransfer.files?.[0];
44
45
  if (t) {
45
46
  let e = new DataTransfer();
46
47
  e.items.add(t), W.current && (W.current.files = e.files, W.current.dispatchEvent(new Event("change", { bubbles: !0 })));
47
48
  }
48
- }, []), ae = i(async () => {
49
+ }, []), se = i(async () => {
49
50
  if (!I) return;
50
51
  P("importing");
51
52
  let t = {
@@ -60,10 +61,10 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
60
61
  dashboardId: e.dashboard.id,
61
62
  source: "import",
62
63
  originalUpdated: e.originalUpdated ?? !1
63
- }), M?.(e.dashboard.id, e.dashboard.name, e.originalUpdated ?? !1)) : P("preview");
64
+ }), j?.(e.dashboard.id, e.dashboard.name, e.originalUpdated ?? !1)) : P("preview");
64
65
  } catch (t) {
65
66
  if (e(t, "project")) {
66
- j();
67
+ A();
67
68
  return;
68
69
  }
69
70
  P("preview");
@@ -73,143 +74,139 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
73
74
  I,
74
75
  X,
75
76
  R,
77
+ A,
76
78
  j,
77
- M,
78
79
  H,
79
80
  B
80
81
  ]), $ = !G && N !== "importing";
81
- return /* @__PURE__ */ O(y, {
82
+ return /* @__PURE__ */ D(b, {
82
83
  open: r,
83
- onOpenChange: (e) => !e && $ && j(),
84
- children: /* @__PURE__ */ k(b, {
84
+ onOpenChange: (e) => !e && $ && A(),
85
+ children: /* @__PURE__ */ O(ne, {
85
86
  className: "sm:max-w-lg max-h-[85vh] flex flex-col",
86
87
  children: [
87
- /* @__PURE__ */ k(C, { children: [/* @__PURE__ */ k("div", {
88
+ /* @__PURE__ */ O(x, { children: [/* @__PURE__ */ O("div", {
88
89
  className: "flex items-center gap-3",
89
- children: [/* @__PURE__ */ O("div", {
90
+ children: [/* @__PURE__ */ D("div", {
90
91
  className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10",
91
- children: /* @__PURE__ */ O(p, { className: "size-5 text-primary" })
92
- }), /* @__PURE__ */ O(w, { children: "Import Dashboard" })]
93
- }), /* @__PURE__ */ O(x, { children: "Upload a Dashboard export file to restore it into this workspace." })] }),
94
- /* @__PURE__ */ k("div", {
92
+ children: /* @__PURE__ */ D(f, { className: "size-5 text-primary" })
93
+ }), /* @__PURE__ */ D(S, { children: M("bigconsole.dashboards.import.title", "Import Dashboard") })]
94
+ }), /* @__PURE__ */ D(re, { children: M("bigconsole.dashboards.import.description", "Upload a Dashboard export file to restore it into this workspace.") })] }),
95
+ /* @__PURE__ */ O("div", {
95
96
  className: "flex-1 overflow-y-auto py-4 space-y-4",
96
97
  children: [
97
- N === "select" && /* @__PURE__ */ k("div", {
98
+ N === "select" && /* @__PURE__ */ O("div", {
98
99
  onDragOver: (e) => e.preventDefault(),
99
- onDrop: ie,
100
+ onDrop: oe,
100
101
  className: "border-2 border-dashed rounded-lg p-8 text-center hover:border-primary transition-colors",
101
102
  children: [
102
- /* @__PURE__ */ O(u, { className: "size-12 mx-auto text-text-secondary mb-4" }),
103
- /* @__PURE__ */ O("p", {
103
+ /* @__PURE__ */ D(ee, { className: "size-12 mx-auto text-text-secondary mb-4" }),
104
+ /* @__PURE__ */ D("p", {
104
105
  className: "text-sm mb-2",
105
- children: "Drag and drop a dashboard export file here"
106
+ children: M("bigconsole.dashboards.import.dropzoneTitle", "Drag and drop a dashboard export file here")
106
107
  }),
107
- /* @__PURE__ */ O("p", {
108
+ /* @__PURE__ */ D("p", {
108
109
  className: "text-xs text-text-secondary mb-4",
109
- children: "or"
110
+ children: M("bigconsole.dashboards.import.or", "or")
110
111
  }),
111
- /* @__PURE__ */ O("input", {
112
+ /* @__PURE__ */ D("input", {
112
113
  ref: W,
113
114
  type: "file",
114
115
  accept: ".json",
115
- onChange: re,
116
+ onChange: ae,
116
117
  className: "hidden"
117
118
  }),
118
- /* @__PURE__ */ O(g, {
119
+ /* @__PURE__ */ D(g, {
119
120
  onClick: () => W.current?.click(),
120
121
  disabled: G,
121
- children: "Browse Files"
122
+ children: M("bigconsole.dashboards.import.browseFiles", "Browse Files")
122
123
  }),
123
- /* @__PURE__ */ O("p", {
124
+ /* @__PURE__ */ D("p", {
124
125
  className: "text-xs text-text-secondary mt-4",
125
- children: "Only .json files exported from BigConsole are supported"
126
+ children: M("bigconsole.dashboards.import.supportedFilesHint", "Only .json files exported from BigConsole are supported")
126
127
  })
127
128
  ]
128
129
  }),
129
- (N === "preview" || N === "importing") && q && /* @__PURE__ */ k(D, { children: [
130
- /* @__PURE__ */ O(_, { children: /* @__PURE__ */ k(v, {
130
+ (N === "preview" || N === "importing") && q && /* @__PURE__ */ O(E, { children: [
131
+ /* @__PURE__ */ D(_, { children: /* @__PURE__ */ O(v, {
131
132
  className: "p-4 space-y-2",
132
133
  children: [
133
- /* @__PURE__ */ k("div", {
134
+ /* @__PURE__ */ O("div", {
134
135
  className: "flex items-center justify-between",
135
- children: [/* @__PURE__ */ O("span", {
136
+ children: [/* @__PURE__ */ D("span", {
136
137
  className: "text-sm text-text-secondary",
137
- children: "Dashboard"
138
- }), /* @__PURE__ */ O("span", {
138
+ children: M("bigconsole.dashboards.import.fieldDashboard", "Dashboard")
139
+ }), /* @__PURE__ */ D("span", {
139
140
  className: "text-sm font-medium",
140
141
  children: q.dashboardInfo.name
141
142
  })]
142
143
  }),
143
- q.dashboardInfo.description && /* @__PURE__ */ k("div", {
144
+ q.dashboardInfo.description && /* @__PURE__ */ O("div", {
144
145
  className: "flex items-start justify-between",
145
- children: [/* @__PURE__ */ O("span", {
146
+ children: [/* @__PURE__ */ D("span", {
146
147
  className: "text-sm text-text-secondary",
147
- children: "Description"
148
- }), /* @__PURE__ */ O("span", {
148
+ children: M("bigconsole.dashboards.import.fieldDescription", "Description")
149
+ }), /* @__PURE__ */ D("span", {
149
150
  className: "text-sm text-right max-w-[60%] truncate",
150
151
  children: q.dashboardInfo.description
151
152
  })]
152
153
  }),
153
- /* @__PURE__ */ k("div", {
154
+ /* @__PURE__ */ O("div", {
154
155
  className: "flex items-center justify-between",
155
- children: [/* @__PURE__ */ O("span", {
156
+ children: [/* @__PURE__ */ D("span", {
156
157
  className: "text-sm text-text-secondary",
157
- children: "Pages"
158
- }), /* @__PURE__ */ O(h, {
158
+ children: M("bigconsole.dashboards.import.fieldPages", "Pages")
159
+ }), /* @__PURE__ */ D(h, {
159
160
  variant: "secondary",
160
161
  children: q.dashboardInfo.pageCount
161
162
  })]
162
163
  }),
163
- /* @__PURE__ */ k("div", {
164
+ /* @__PURE__ */ O("div", {
164
165
  className: "flex items-center justify-between",
165
- children: [/* @__PURE__ */ O("span", {
166
+ children: [/* @__PURE__ */ D("span", {
166
167
  className: "text-sm text-text-secondary",
167
- children: "Widgets"
168
- }), /* @__PURE__ */ O(h, {
168
+ children: M("bigconsole.dashboards.import.fieldWidgets", "Widgets")
169
+ }), /* @__PURE__ */ D(h, {
169
170
  variant: "secondary",
170
171
  children: q.dashboardInfo.widgetCount
171
172
  })]
172
173
  }),
173
- q.dashboardInfo.exportedFrom && /* @__PURE__ */ k("div", {
174
+ q.dashboardInfo.exportedFrom && /* @__PURE__ */ O("div", {
174
175
  className: "flex items-center justify-between",
175
- children: [/* @__PURE__ */ O("span", {
176
+ children: [/* @__PURE__ */ D("span", {
176
177
  className: "text-sm text-text-secondary",
177
- children: "Source ID"
178
- }), /* @__PURE__ */ O("span", {
178
+ children: M("bigconsole.dashboards.import.fieldSourceId", "Source ID")
179
+ }), /* @__PURE__ */ D("span", {
179
180
  className: "text-xs text-text-secondary font-mono truncate max-w-[180px]",
180
181
  children: q.dashboardInfo.exportedFrom
181
182
  })]
182
183
  }),
183
- /* @__PURE__ */ k("div", {
184
+ /* @__PURE__ */ O("div", {
184
185
  className: "flex items-center justify-between",
185
- children: [/* @__PURE__ */ O("span", {
186
+ children: [/* @__PURE__ */ D("span", {
186
187
  className: "text-sm text-text-secondary",
187
- children: "Schema Version"
188
- }), /* @__PURE__ */ O("span", {
188
+ children: M("bigconsole.dashboards.import.fieldSchemaVersion", "Schema Version")
189
+ }), /* @__PURE__ */ D("span", {
189
190
  className: "text-xs text-text-secondary",
190
191
  children: q.dashboardInfo.schemaVersion
191
192
  })]
192
193
  })
193
194
  ]
194
195
  }) }),
195
- q.errors.length > 0 && /* @__PURE__ */ O(_, {
196
+ q.errors.length > 0 && /* @__PURE__ */ D(_, {
196
197
  className: "border-status-error-border/50 bg-status-error-bg/5",
197
- children: /* @__PURE__ */ k(v, {
198
+ children: /* @__PURE__ */ O(v, {
198
199
  className: "p-3",
199
- children: [/* @__PURE__ */ k("div", {
200
+ children: [/* @__PURE__ */ O("div", {
200
201
  className: "flex items-center gap-2 mb-2",
201
- children: [/* @__PURE__ */ O(m, { className: "size-4 text-status-error-text" }), /* @__PURE__ */ k("span", {
202
+ children: [/* @__PURE__ */ D(p, { className: "size-4 text-status-error-text" }), /* @__PURE__ */ D("span", {
202
203
  className: "text-sm font-medium text-status-error-text",
203
- children: [
204
- "Errors (",
205
- q.errors.length,
206
- ")"
207
- ]
204
+ children: M("bigconsole.dashboards.import.errorsCount", "Errors ({{count}})", { count: q.errors.length })
208
205
  })]
209
- }), /* @__PURE__ */ O("ul", {
206
+ }), /* @__PURE__ */ D("ul", {
210
207
  className: "text-xs text-status-error-text space-y-1",
211
- children: q.errors.map((e, t) => /* @__PURE__ */ k("li", { children: [
212
- /* @__PURE__ */ k("span", {
208
+ children: q.errors.map((e, t) => /* @__PURE__ */ O("li", { children: [
209
+ /* @__PURE__ */ O("span", {
213
210
  className: "font-mono",
214
211
  children: [
215
212
  "[",
@@ -223,24 +220,20 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
223
220
  })]
224
221
  })
225
222
  }),
226
- q.warnings.length > 0 && /* @__PURE__ */ O(_, {
223
+ q.warnings.length > 0 && /* @__PURE__ */ D(_, {
227
224
  className: "border-yellow-500/50 bg-yellow-500/5",
228
- children: /* @__PURE__ */ k(v, {
225
+ children: /* @__PURE__ */ O(v, {
229
226
  className: "p-3",
230
- children: [/* @__PURE__ */ k("div", {
227
+ children: [/* @__PURE__ */ O("div", {
231
228
  className: "flex items-center gap-2 mb-2",
232
- children: [/* @__PURE__ */ O(c, { className: "size-4 text-yellow-600" }), /* @__PURE__ */ k("span", {
229
+ children: [/* @__PURE__ */ D(c, { className: "size-4 text-yellow-600" }), /* @__PURE__ */ D("span", {
233
230
  className: "text-sm font-medium text-yellow-600",
234
- children: [
235
- "Warnings (",
236
- q.warnings.length,
237
- ")"
238
- ]
231
+ children: M("bigconsole.dashboards.import.warningsCount", "Warnings ({{count}})", { count: q.warnings.length })
239
232
  })]
240
- }), /* @__PURE__ */ O("ul", {
233
+ }), /* @__PURE__ */ D("ul", {
241
234
  className: "text-xs text-yellow-600 space-y-1",
242
- children: q.warnings.map((e, t) => /* @__PURE__ */ k("li", { children: [
243
- /* @__PURE__ */ k("span", {
235
+ children: q.warnings.map((e, t) => /* @__PURE__ */ O("li", { children: [
236
+ /* @__PURE__ */ O("span", {
244
237
  className: "font-mono",
245
238
  children: [
246
239
  "[",
@@ -254,57 +247,57 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
254
247
  })]
255
248
  })
256
249
  }),
257
- q.isValid && /* @__PURE__ */ k("div", {
250
+ q.isValid && /* @__PURE__ */ O("div", {
258
251
  className: "space-y-4",
259
252
  children: [
260
- /* @__PURE__ */ O("p", {
253
+ /* @__PURE__ */ D("p", {
261
254
  className: "text-sm font-medium",
262
- children: "Import Options"
255
+ children: M("bigconsole.dashboards.import.optionsTitle", "Import Options")
263
256
  }),
264
- /* @__PURE__ */ O(_, {
257
+ /* @__PURE__ */ D(_, {
265
258
  className: "border-blue-500/50 bg-blue-500/5",
266
- children: /* @__PURE__ */ O(v, {
259
+ children: /* @__PURE__ */ D(v, {
267
260
  className: "p-3",
268
- children: /* @__PURE__ */ k("div", {
261
+ children: /* @__PURE__ */ O("div", {
269
262
  className: "flex items-start gap-2",
270
- children: [/* @__PURE__ */ O(d, { className: "size-4 text-blue-600 mt-0.5 shrink-0" }), /* @__PURE__ */ O("div", {
263
+ children: [/* @__PURE__ */ D(d, { className: "size-4 text-blue-600 mt-0.5 shrink-0" }), /* @__PURE__ */ D("div", {
271
264
  className: "text-xs text-blue-700 dark:text-blue-400",
272
- children: A(I) ? /* @__PURE__ */ k(D, { children: [
273
- /* @__PURE__ */ O("p", {
265
+ children: k(I) ? /* @__PURE__ */ O(E, { children: [
266
+ /* @__PURE__ */ D("p", {
274
267
  className: "font-medium mb-1",
275
- children: "Import will check for existing dashboard"
268
+ children: M("bigconsole.dashboards.import.checkExistingTitle", "Import will check for existing dashboard")
276
269
  }),
277
- /* @__PURE__ */ k("p", { children: [
278
- "If the original dashboard (ID:",
270
+ /* @__PURE__ */ O("p", { children: [
271
+ M("bigconsole.dashboards.import.checkExistingIdPrefix", "If the original dashboard (ID:"),
279
272
  " ",
280
- /* @__PURE__ */ k("code", {
273
+ /* @__PURE__ */ O("code", {
281
274
  className: "font-mono bg-blue-200/50 px-1 rounded",
282
- children: [A(I)?.slice(0, 8), "..."]
275
+ children: [k(I)?.slice(0, 8), "..."]
283
276
  }),
284
- ") exists:"
277
+ M("bigconsole.dashboards.import.checkExistingIdSuffix", ") exists:")
285
278
  ] }),
286
- /* @__PURE__ */ k("ul", {
279
+ /* @__PURE__ */ O("ul", {
287
280
  className: "list-disc list-inside mt-1 space-y-0.5",
288
- children: [/* @__PURE__ */ O("li", { children: "With changes → Update the existing dashboard" }), /* @__PURE__ */ O("li", { children: "No changes → Show \"already exists\" message" })]
281
+ children: [/* @__PURE__ */ D("li", { children: M("bigconsole.dashboards.import.checkExistingWithChanges", "With changes → Update the existing dashboard") }), /* @__PURE__ */ D("li", { children: M("bigconsole.dashboards.import.checkExistingNoChanges", "No changes → Show \"already exists\" message") })]
289
282
  }),
290
- /* @__PURE__ */ O("p", {
283
+ /* @__PURE__ */ D("p", {
291
284
  className: "mt-1",
292
- children: "If original doesn't exist → Create a new dashboard"
285
+ children: M("bigconsole.dashboards.import.checkExistingNotFound", "If original doesn't exist → Create a new dashboard")
293
286
  })
294
- ] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("p", {
287
+ ] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("p", {
295
288
  className: "font-medium mb-1",
296
- children: "A new dashboard will be created"
297
- }), /* @__PURE__ */ O("p", { children: "Import as a new dashboard with the specified configuration." })] })
289
+ children: M("bigconsole.dashboards.import.newDashboardTitle", "A new dashboard will be created")
290
+ }), /* @__PURE__ */ D("p", { children: M("bigconsole.dashboards.import.newDashboardBody", "Import as a new dashboard with the specified configuration.") })] })
298
291
  })]
299
292
  })
300
293
  })
301
294
  }),
302
- /* @__PURE__ */ k("div", {
295
+ /* @__PURE__ */ O("div", {
303
296
  className: "space-y-2",
304
- children: [/* @__PURE__ */ O(E, {
297
+ children: [/* @__PURE__ */ D(w, {
305
298
  htmlFor: "import-name",
306
- children: "Dashboard Name"
307
- }), /* @__PURE__ */ O(T, {
299
+ children: M("bigconsole.dashboards.import.dashboardNameLabel", "Dashboard Name")
300
+ }), /* @__PURE__ */ D(C, {
308
301
  id: "import-name",
309
302
  type: "text",
310
303
  value: R,
@@ -313,124 +306,112 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
313
306
  disabled: N === "importing"
314
307
  })]
315
308
  }),
316
- /* @__PURE__ */ k("div", {
309
+ /* @__PURE__ */ O("div", {
317
310
  className: "space-y-2",
318
- children: [/* @__PURE__ */ O(E, { children: "Visibility" }), /* @__PURE__ */ O("div", {
311
+ children: [/* @__PURE__ */ D(w, { children: M("bigconsole.dashboards.import.visibilityLabel", "Visibility") }), /* @__PURE__ */ D("div", {
319
312
  className: "flex gap-2",
320
313
  children: [
321
314
  "PRIVATE",
322
315
  "TEAM",
323
316
  "PUBLIC"
324
- ].map((e) => /* @__PURE__ */ O(g, {
317
+ ].map((e) => /* @__PURE__ */ D(g, {
325
318
  type: "button",
326
319
  variant: B === e ? "default" : "outline",
327
320
  size: "sm",
328
321
  onClick: () => V(e),
329
322
  disabled: N === "importing",
330
- children: e.charAt(0) + e.slice(1).toLowerCase()
323
+ children: e === "PRIVATE" ? M("bigconsole.dashboards.import.visibilityPrivate", "Private") : e === "TEAM" ? M("bigconsole.dashboards.import.visibilityTeam", "Team") : M("bigconsole.dashboards.import.visibilityPublic", "Public")
331
324
  }, e))
332
325
  })]
333
326
  }),
334
- q.warnings.length > 0 && /* @__PURE__ */ k("div", {
327
+ q.warnings.length > 0 && /* @__PURE__ */ O("div", {
335
328
  className: "flex items-start space-x-3",
336
- children: [/* @__PURE__ */ O(te, {
329
+ children: [/* @__PURE__ */ D(y, {
337
330
  id: "skipWarnings",
338
331
  checked: H,
339
332
  onCheckedChange: (e) => U(e === !0),
340
333
  disabled: N === "importing"
341
- }), /* @__PURE__ */ O("div", {
334
+ }), /* @__PURE__ */ D("div", {
342
335
  className: "grid gap-1.5 leading-none",
343
- children: /* @__PURE__ */ O(E, {
336
+ children: /* @__PURE__ */ D(w, {
344
337
  htmlFor: "skipWarnings",
345
338
  className: "cursor-pointer",
346
- children: "Acknowledge warnings and proceed"
339
+ children: M("bigconsole.dashboards.import.acknowledgeWarnings", "Acknowledge warnings and proceed")
347
340
  })
348
341
  })]
349
342
  })
350
343
  ]
351
344
  })
352
345
  ] }),
353
- N === "complete" && J?.success && /* @__PURE__ */ k("div", {
346
+ N === "complete" && J?.success && /* @__PURE__ */ O("div", {
354
347
  className: "text-center py-6",
355
348
  children: [
356
- J.alreadyExists && /* @__PURE__ */ k(D, { children: [
357
- /* @__PURE__ */ O("div", {
349
+ J.alreadyExists && /* @__PURE__ */ O(E, { children: [
350
+ /* @__PURE__ */ D("div", {
358
351
  className: "size-16 mx-auto mb-4 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center",
359
- children: /* @__PURE__ */ O(d, { className: "size-8 text-blue-600" })
352
+ children: /* @__PURE__ */ D(d, { className: "size-8 text-blue-600" })
360
353
  }),
361
- /* @__PURE__ */ O("h3", {
354
+ /* @__PURE__ */ D("h3", {
362
355
  className: "text-lg font-medium mb-2",
363
- children: "Dashboard Already Exists"
356
+ children: M("bigconsole.dashboards.import.alreadyExistsTitle", "Dashboard Already Exists")
364
357
  }),
365
- /* @__PURE__ */ k("p", {
358
+ /* @__PURE__ */ D("p", {
366
359
  className: "text-sm text-text-secondary mb-4",
367
- children: [
368
- "Dashboard \"",
369
- J.dashboard?.name,
370
- "\" already exists with the same data. No changes were made."
371
- ]
360
+ children: M("bigconsole.dashboards.import.alreadyExistsBody", "Dashboard \"{{name}}\" already exists with the same data. No changes were made.", { name: J.dashboard?.name ?? "" })
372
361
  })
373
362
  ] }),
374
- J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ k(D, { children: [
375
- /* @__PURE__ */ O("div", {
363
+ J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
364
+ /* @__PURE__ */ D("div", {
376
365
  className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
377
- children: /* @__PURE__ */ O(f, { className: "size-8 text-green-600" })
366
+ children: /* @__PURE__ */ D(te, { className: "size-8 text-green-600" })
378
367
  }),
379
- /* @__PURE__ */ O("h3", {
368
+ /* @__PURE__ */ D("h3", {
380
369
  className: "text-lg font-medium mb-2",
381
- children: "Dashboard Updated!"
370
+ children: M("bigconsole.dashboards.import.updatedTitle", "Dashboard Updated!")
382
371
  }),
383
- /* @__PURE__ */ k("p", {
372
+ /* @__PURE__ */ D("p", {
384
373
  className: "text-sm text-text-secondary mb-4",
385
- children: [
386
- "Dashboard \"",
387
- J.dashboard?.name,
388
- "\" has been updated with the imported data."
389
- ]
374
+ children: M("bigconsole.dashboards.import.updatedBody", "Dashboard \"{{name}}\" has been updated with the imported data.", { name: J.dashboard?.name ?? "" })
390
375
  })
391
376
  ] }),
392
- !J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ k(D, { children: [
393
- /* @__PURE__ */ O("div", {
377
+ !J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
378
+ /* @__PURE__ */ D("div", {
394
379
  className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
395
- children: /* @__PURE__ */ O(l, { className: "size-8 text-green-600" })
380
+ children: /* @__PURE__ */ D(u, { className: "size-8 text-green-600" })
396
381
  }),
397
- /* @__PURE__ */ O("h3", {
382
+ /* @__PURE__ */ D("h3", {
398
383
  className: "text-lg font-medium mb-2",
399
- children: "Import Successful!"
384
+ children: M("bigconsole.dashboards.import.successTitle", "Import Successful!")
400
385
  }),
401
- /* @__PURE__ */ k("p", {
386
+ /* @__PURE__ */ D("p", {
402
387
  className: "text-sm text-text-secondary mb-4",
403
- children: [
404
- "Dashboard \"",
405
- J.dashboard?.name,
406
- "\" has been created."
407
- ]
388
+ children: M("bigconsole.dashboards.import.successBody", "Dashboard \"{{name}}\" has been created.", { name: J.dashboard?.name ?? "" })
408
389
  }),
409
- J.stats && /* @__PURE__ */ O(_, {
390
+ J.stats && /* @__PURE__ */ D(_, {
410
391
  className: "inline-block text-left",
411
- children: /* @__PURE__ */ k(v, {
392
+ children: /* @__PURE__ */ O(v, {
412
393
  className: "p-4",
413
- children: [/* @__PURE__ */ O("p", {
394
+ children: [/* @__PURE__ */ D("p", {
414
395
  className: "text-xs font-medium text-text-secondary mb-2",
415
- children: "Import Summary"
416
- }), /* @__PURE__ */ k("div", {
396
+ children: M("bigconsole.dashboards.import.summaryTitle", "Import Summary")
397
+ }), /* @__PURE__ */ O("div", {
417
398
  className: "grid grid-cols-2 gap-x-6 gap-y-1 text-xs",
418
399
  children: [
419
- /* @__PURE__ */ O("span", {
400
+ /* @__PURE__ */ D("span", {
420
401
  className: "text-text-secondary",
421
- children: "Pages:"
402
+ children: M("bigconsole.dashboards.import.summaryPages", "Pages:")
422
403
  }),
423
- /* @__PURE__ */ O("span", { children: J.stats.pagesCreated }),
424
- /* @__PURE__ */ O("span", {
404
+ /* @__PURE__ */ D("span", { children: J.stats.pagesCreated }),
405
+ /* @__PURE__ */ D("span", {
425
406
  className: "text-text-secondary",
426
- children: "Widgets:"
407
+ children: M("bigconsole.dashboards.import.summaryWidgets", "Widgets:")
427
408
  }),
428
- /* @__PURE__ */ O("span", { children: J.stats.widgetsCreated }),
429
- /* @__PURE__ */ O("span", {
409
+ /* @__PURE__ */ D("span", { children: J.stats.widgetsCreated }),
410
+ /* @__PURE__ */ D("span", {
430
411
  className: "text-text-secondary",
431
- children: "Actions:"
412
+ children: M("bigconsole.dashboards.import.summaryActions", "Actions:")
432
413
  }),
433
- /* @__PURE__ */ O("span", { children: J.stats.actionsCreated })
414
+ /* @__PURE__ */ D("span", { children: J.stats.actionsCreated })
434
415
  ]
435
416
  })]
436
417
  })
@@ -438,21 +419,21 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
438
419
  ] })
439
420
  ]
440
421
  }),
441
- K && /* @__PURE__ */ O(_, {
422
+ K && /* @__PURE__ */ D(_, {
442
423
  className: "border-status-error-border/50 bg-status-error-bg/5",
443
- children: /* @__PURE__ */ O(v, {
424
+ children: /* @__PURE__ */ D(v, {
444
425
  className: "p-3",
445
- children: /* @__PURE__ */ O("p", {
426
+ children: /* @__PURE__ */ D("p", {
446
427
  className: "text-sm text-status-error-text",
447
428
  children: K.message
448
429
  })
449
430
  })
450
431
  }),
451
- J && !J.success && J.errorMessage && /* @__PURE__ */ O(_, {
432
+ J && !J.success && J.errorMessage && /* @__PURE__ */ D(_, {
452
433
  className: "border-status-error-border/50 bg-status-error-bg/5",
453
- children: /* @__PURE__ */ O(v, {
434
+ children: /* @__PURE__ */ D(v, {
454
435
  className: "p-3",
455
- children: /* @__PURE__ */ O("p", {
436
+ children: /* @__PURE__ */ D("p", {
456
437
  className: "text-sm text-status-error-text",
457
438
  children: J.errorMessage
458
439
  })
@@ -460,36 +441,36 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
460
441
  })
461
442
  ]
462
443
  }),
463
- /* @__PURE__ */ k(S, {
444
+ /* @__PURE__ */ O(ie, {
464
445
  className: "flex-row justify-between sm:justify-between",
465
- children: [/* @__PURE__ */ O("div", { children: N === "preview" && /* @__PURE__ */ k(g, {
446
+ children: [/* @__PURE__ */ D("div", { children: N === "preview" && /* @__PURE__ */ O(g, {
466
447
  variant: "ghost",
467
448
  onClick: () => {
468
449
  P("select"), F(null), L(null), Z();
469
450
  },
470
451
  disabled: G,
471
- children: [/* @__PURE__ */ O(ee, { className: "size-4" }), "Back"]
472
- }) }), /* @__PURE__ */ k("div", {
452
+ children: [/* @__PURE__ */ D(l, { className: "size-4" }), M("bigconsole.dashboards.import.back", "Back")]
453
+ }) }), /* @__PURE__ */ O("div", {
473
454
  className: "flex items-center gap-2",
474
455
  children: [
475
- N !== "complete" && /* @__PURE__ */ O(g, {
456
+ N !== "complete" && /* @__PURE__ */ D(g, {
476
457
  variant: "outline",
477
- onClick: j,
458
+ onClick: A,
478
459
  disabled: !$,
479
- children: "Cancel"
460
+ children: M("bigconsole.dashboards.import.cancel", "Cancel")
480
461
  }),
481
- N === "preview" && q?.isValid && /* @__PURE__ */ k(g, {
482
- onClick: ae,
462
+ N === "preview" && q?.isValid && /* @__PURE__ */ O(g, {
463
+ onClick: se,
483
464
  disabled: G || q.warnings.length > 0 && !H,
484
- children: [/* @__PURE__ */ O(p, { className: "size-4" }), "Import Dashboard"]
465
+ children: [/* @__PURE__ */ D(f, { className: "size-4" }), M("bigconsole.dashboards.import.importButton", "Import Dashboard")]
485
466
  }),
486
- N === "importing" && /* @__PURE__ */ k("div", {
467
+ N === "importing" && /* @__PURE__ */ O("div", {
487
468
  className: "flex items-center gap-2 text-sm text-text-secondary",
488
- children: [/* @__PURE__ */ O(ne, { className: "size-4" }), "Importing..."]
469
+ children: [/* @__PURE__ */ D(T, { className: "size-4" }), M("bigconsole.dashboards.import.importing", "Importing...")]
489
470
  }),
490
- N === "complete" && /* @__PURE__ */ O(g, {
491
- onClick: j,
492
- children: "Done"
471
+ N === "complete" && /* @__PURE__ */ D(g, {
472
+ onClick: A,
473
+ children: M("bigconsole.dashboards.import.done", "Done")
493
474
  })
494
475
  ]
495
476
  })]
@@ -499,6 +480,6 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
499
480
  });
500
481
  });
501
482
  //#endregion
502
- export { j as default };
483
+ export { A as default };
503
484
 
504
485
  //# sourceMappingURL=ImportDashboardDialog.js.map