@burdenoff/microfe-bigconsole 2026.805.2 → 2026.812.1

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