@burdenoff/microfe-bigconsole 2026.805.3 → 2026.812.2

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 (247) 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 +135 -97
  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 +209 -193
  23. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
  24. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +213 -231
  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 +109 -102
  29. package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
  30. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +81 -70
  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 +25 -23
  35. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
  36. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +3 -3
  37. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
  38. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +5 -3
  39. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
  40. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +170 -284
  41. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  42. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +147 -151
  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/SavedViewsDropdown/SavedViewsDropdown.js +17 -8
  49. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
  50. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -95
  51. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
  52. package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js +20 -18
  53. package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js.map +1 -1
  54. package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js +26 -58
  55. package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js.map +1 -1
  56. package/dist/bigconsole/components/dashboard/WidgetPalette.js +307 -231
  57. package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
  58. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +29 -29
  59. package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
  60. package/dist/bigconsole/components/datasink/DataSinkCard.js +78 -79
  61. package/dist/bigconsole/components/datasink/DataSinkCard.js.map +1 -1
  62. package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +33 -34
  63. package/dist/bigconsole/components/datasink/DataSinkDataViewer.js.map +1 -1
  64. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +79 -56
  65. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
  66. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +75 -65
  67. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
  68. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +1 -1
  69. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
  70. package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +20 -19
  71. package/dist/bigconsole/components/datasink/DataSinkTableViewer.js.map +1 -1
  72. package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +127 -171
  73. package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js.map +1 -1
  74. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +263 -243
  75. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
  76. package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +65 -66
  77. package/dist/bigconsole/components/datasink/LinkedParsersPanel.js.map +1 -1
  78. package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +121 -127
  79. package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js.map +1 -1
  80. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +33 -26
  81. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
  82. package/dist/bigconsole/components/datasink/SetupStateBadge.js +3 -3
  83. package/dist/bigconsole/components/datasink/SetupStateBadge.js.map +1 -1
  84. package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +95 -95
  85. package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js.map +1 -1
  86. package/dist/bigconsole/components/parser/DataSinkSelector.js +154 -123
  87. package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
  88. package/dist/bigconsole/components/parser/ExpressionEditor.js +3 -3
  89. package/dist/bigconsole/components/parser/ExpressionEditor.js.map +1 -1
  90. package/dist/bigconsole/components/parser/ImportParserDialog.js +235 -275
  91. package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
  92. package/dist/bigconsole/components/parser/ParserCard.js +133 -114
  93. package/dist/bigconsole/components/parser/ParserCard.js.map +1 -1
  94. package/dist/bigconsole/components/parser/ParserSelector.js +191 -174
  95. package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
  96. package/dist/bigconsole/components/parser/ParserStatusBadge.js +2 -2
  97. package/dist/bigconsole/components/parser/ParserStatusBadge.js.map +1 -1
  98. package/dist/bigconsole/components/parser/ParserTypeBadge.js +4 -4
  99. package/dist/bigconsole/components/parser/ParserTypeBadge.js.map +1 -1
  100. package/dist/bigconsole/components/pipeline/PipelineCard.js +134 -89
  101. package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -1
  102. package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +77 -64
  103. package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js.map +1 -1
  104. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +7 -10
  105. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js.map +1 -1
  106. package/dist/bigconsole/components/preview/AiPreviewContent.js +31 -32
  107. package/dist/bigconsole/components/preview/AiPreviewContent.js.map +1 -1
  108. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +152 -106
  109. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
  110. package/dist/bigconsole/components/preview/AiPreviewPanel.js +193 -152
  111. package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
  112. package/dist/bigconsole/components/preview/previewShared.js +41 -23
  113. package/dist/bigconsole/components/preview/previewShared.js.map +1 -1
  114. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +342 -308
  115. package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
  116. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +262 -238
  117. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
  118. package/dist/bigconsole/components/widgets/PropertiesPanel.js +783 -867
  119. package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
  120. package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +7 -5
  121. package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js.map +1 -1
  122. package/dist/bigconsole/components/widgets/WidgetHeader.js +7 -8
  123. package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -1
  124. package/dist/bigconsole/components/widgets/WidgetRegistry.js +4 -4
  125. package/dist/bigconsole/components/widgets/WidgetRegistry.js.map +1 -1
  126. package/dist/bigconsole/components/widgets/WidgetWrapper.js +8 -7
  127. package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -1
  128. package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +1 -1
  129. package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js.map +1 -1
  130. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +2 -2
  131. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
  132. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +11 -5
  133. package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
  134. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +19 -15
  135. package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
  136. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +154 -102
  137. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
  138. package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +36 -32
  139. package/dist/bigconsole/components/widgets/gauge/CircularGauge.js.map +1 -1
  140. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +85 -60
  141. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
  142. package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +64 -35
  143. package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js.map +1 -1
  144. package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +46 -45
  145. package/dist/bigconsole/components/widgets/gauge/LinearGauge.js.map +1 -1
  146. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +35 -24
  147. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
  148. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +2 -2
  149. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js.map +1 -1
  150. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  151. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
  152. package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +153 -90
  153. package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js.map +1 -1
  154. package/dist/bigconsole/components/widgets/list/ListConfig.js +8 -2
  155. package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
  156. package/dist/bigconsole/components/widgets/list/ListItem.js +1 -1
  157. package/dist/bigconsole/components/widgets/list/ListItem.js.map +1 -1
  158. package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +1 -1
  159. package/dist/bigconsole/components/widgets/map-widget/MapWidget.js.map +1 -1
  160. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +14 -4
  161. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
  162. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +112 -89
  163. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -1
  164. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +21 -13
  165. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
  166. package/dist/bigconsole/components/widgets/metric-card/index.js +4 -4
  167. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +3 -3
  168. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
  169. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +34 -25
  170. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
  171. package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +129 -114
  172. package/dist/bigconsole/components/widgets/progress/ProgressWidget.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 +10 -4
  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/utils/targetProgress.js +13 -0
  194. package/dist/bigconsole/components/widgets/utils/targetProgress.js.map +1 -0
  195. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +112 -85
  196. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
  197. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +28 -20
  198. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js.map +1 -1
  199. package/dist/bigconsole/components/workflow/WorkflowCard.js +92 -77
  200. package/dist/bigconsole/components/workflow/WorkflowCard.js.map +1 -1
  201. package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +70 -51
  202. package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js.map +1 -1
  203. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +16 -17
  204. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js.map +1 -1
  205. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +6 -4
  206. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
  207. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +360 -338
  208. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
  209. package/dist/bigconsole/hooks/useModalFocusTrap.js +53 -0
  210. package/dist/bigconsole/hooks/useModalFocusTrap.js.map +1 -0
  211. package/dist/bigconsole/pages/DashboardBuilderPage.js +209 -203
  212. package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
  213. package/dist/bigconsole/pages/DashboardViewPage.js +126 -120
  214. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  215. package/dist/bigconsole/pages/DashboardsPage.js +838 -800
  216. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  217. package/dist/bigconsole/pages/DataParsersPage.js +263 -315
  218. package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
  219. package/dist/bigconsole/pages/DataSinkBuilderPage.js +301 -341
  220. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  221. package/dist/bigconsole/pages/DataSinkViewPage.js +346 -339
  222. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  223. package/dist/bigconsole/pages/DataSinksPage.js +356 -458
  224. package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
  225. package/dist/bigconsole/pages/DataSourcesPage.js +7 -2
  226. package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
  227. package/dist/bigconsole/pages/HomePage.js +186 -193
  228. package/dist/bigconsole/pages/HomePage.js.map +1 -1
  229. package/dist/bigconsole/pages/InsightsPage.js +887 -740
  230. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  231. package/dist/bigconsole/pages/ParserBuilderPage.js +679 -637
  232. package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
  233. package/dist/bigconsole/pages/ParserViewPage.js +368 -342
  234. package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
  235. package/dist/bigconsole/pages/PipelineBuilderPage.js +537 -444
  236. package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
  237. package/dist/bigconsole/pages/PipelineViewPage.js +412 -377
  238. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  239. package/dist/bigconsole/pages/PipelinesPage.js +248 -298
  240. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  241. package/dist/bigconsole/pages/WidgetDemoPage.js +251 -153
  242. package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
  243. package/dist/bigconsole/pages/WorkflowViewPage.js +381 -371
  244. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  245. package/dist/bigconsole/pages/WorkflowsPage.js +171 -286
  246. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  247. package/package.json +1 -1
@@ -1,18 +1,37 @@
1
- import e from "../../hooks/useBigConsoleAnalytics.js";
2
- import t from "../../hooks/useImportDataSink.js";
1
+ import { Section as e, SectionStack as t } from "../common/Section.js";
2
+ import "../common/index.js";
3
+ import n from "../../hooks/useBigConsoleAnalytics.js";
4
+ import r from "../../hooks/useImportDataSink.js";
3
5
  import "../../hooks/index.js";
4
- import { memo as n, useCallback as r, useEffect as i, useRef as a, useState as o } from "react";
5
- import { ArrowLeft as s, Check as c, FileJson as l, Info as u, RefreshCw as d, Upload as f, XCircle as ee } from "lucide-react";
6
- import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- import { Badge as p, Button as m, Card as h, CardContent as g, Dialog as _, DialogContent as v, DialogDescription as y, DialogFooter as b, DialogHeader as x, DialogTitle as S, Input as C, Label as w, Spinner as T } from "@burdenoff/fe-libs/ui";
8
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
6
+ import { memo as i, useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
7
+ import { ArrowLeft as l, Check as ee, FileJson as u, Info as d, RefreshCw as te, Upload as f, XCircle as p } from "lucide-react";
8
+ import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
+ import { Badge as h, Button as g, Dialog as _, DialogContent as v, DialogDescription as y, DialogFooter as b, DialogHeader as ne, DialogTitle as re, Input as x, Label as S, Spinner as C } from "@burdenoff/fe-libs/ui";
10
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
9
11
  //#region src/bigconsole/components/datasink/ImportDataSinkDialog.tsx
10
- var k = n(function({ isOpen: n, onClose: k, onSuccess: A }) {
11
- let { t: j } = te(), [M, N] = o("select"), [, P] = o(null), [F, I] = o(null), [L, R] = o(""), [z, B] = o(""), V = a(null), { loading: H, error: U, validationResult: W, importResult: G, validateImport: K, importDataSink: q, extractDataSinkId: J, clearState: Y } = t(), X = e();
12
- i(() => {
13
- n && (N("select"), P(null), I(null), R(""), B(""), Y());
14
- }, [n, Y]);
15
- let Z = r(async (e) => {
12
+ var D = [
13
+ {
14
+ id: "select",
15
+ label: "Choose file"
16
+ },
17
+ {
18
+ id: "preview",
19
+ label: "Review"
20
+ },
21
+ {
22
+ id: "complete",
23
+ label: "Done"
24
+ }
25
+ ];
26
+ function O(e) {
27
+ return e === "select" ? 0 : e === "complete" ? 2 : 1;
28
+ }
29
+ var k = i(function({ isOpen: i, onClose: k, onSuccess: A }) {
30
+ let { t: j } = m(), [M, N] = c("select"), [, P] = c(null), [F, I] = c(null), [L, R] = c(""), [z, B] = c(""), V = s(null), { loading: H, error: U, validationResult: W, importResult: G, validateImport: K, importDataSink: q, extractDataSinkId: J, clearState: Y } = r(), X = n();
31
+ o(() => {
32
+ i && (N("select"), P(null), I(null), R(""), B(""), Y());
33
+ }, [i, Y]);
34
+ let ie = a(async (e) => {
16
35
  let t = e.target.files?.[0];
17
36
  if (!t) return;
18
37
  if (!t.name.endsWith(".json")) {
@@ -29,14 +48,14 @@ var k = n(function({ isOpen: n, onClose: k, onSuccess: A }) {
29
48
  }, n.onerror = () => {
30
49
  alert(j("bigconsole.dataSinks.import.readFileError", "Failed to read file"));
31
50
  }, n.readAsText(t);
32
- }, [K, j]), ne = r((e) => {
51
+ }, [K, j]), ae = a((e) => {
33
52
  e.preventDefault();
34
53
  let t = e.dataTransfer.files?.[0];
35
54
  if (t) {
36
55
  let e = new DataTransfer();
37
56
  e.items.add(t), V.current && (V.current.files = e.files, V.current.dispatchEvent(new Event("change", { bubbles: !0 })));
38
57
  }
39
- }, []), re = r(async () => {
58
+ }, []), oe = a(async () => {
40
59
  if (!F) return;
41
60
  N("importing");
42
61
  let e = {
@@ -57,199 +76,212 @@ var k = n(function({ isOpen: n, onClose: k, onSuccess: A }) {
57
76
  z,
58
77
  L,
59
78
  A
60
- ]), Q = !H && M !== "importing", $ = F ? J(F) : null;
61
- return /* @__PURE__ */ D(_, {
62
- open: n,
63
- onOpenChange: (e) => !e && Q && k(),
64
- children: /* @__PURE__ */ O(v, {
65
- className: "sm:max-w-lg max-h-[85vh] flex flex-col",
79
+ ]), Z = !H && M !== "importing", Q = F ? J(F) : null, $ = O(M);
80
+ return /* @__PURE__ */ T(_, {
81
+ open: i,
82
+ onOpenChange: (e) => !e && Z && k(),
83
+ children: /* @__PURE__ */ E(v, {
84
+ className: "flex max-h-[85vh] flex-col sm:max-w-lg",
66
85
  children: [
67
- /* @__PURE__ */ O(x, { children: [/* @__PURE__ */ O("div", {
86
+ /* @__PURE__ */ E(ne, { children: [/* @__PURE__ */ E("div", {
68
87
  className: "flex items-center gap-3",
69
- children: [/* @__PURE__ */ D("div", {
70
- className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10",
71
- children: /* @__PURE__ */ D(f, { className: "size-5 text-primary" })
72
- }), /* @__PURE__ */ D(S, { children: j("bigconsole.dataSinks.import.title", "Import DataSink") })]
73
- }), /* @__PURE__ */ D(y, { children: j("bigconsole.dataSinks.import.description", "Upload a DataSink export file to restore it into this workspace.") })] }),
74
- /* @__PURE__ */ O("div", {
75
- className: "flex-1 overflow-y-auto py-4 space-y-4",
76
- children: [
77
- M === "select" && /* @__PURE__ */ O("div", {
78
- onDragOver: (e) => e.preventDefault(),
79
- onDrop: ne,
80
- className: "border-2 border-dashed rounded-lg p-8 text-center hover:border-primary transition-colors",
81
- children: [
82
- /* @__PURE__ */ D(l, { className: "size-12 mx-auto text-text-secondary mb-4" }),
83
- /* @__PURE__ */ D("p", {
84
- className: "text-sm mb-2",
85
- children: j("bigconsole.dataSinks.import.dropzoneText", "Drag and drop a DataSink export file here")
86
- }),
87
- /* @__PURE__ */ D("p", {
88
- className: "text-xs text-text-secondary mb-4",
89
- children: j("bigconsole.dataSinks.import.or", "or")
90
- }),
91
- /* @__PURE__ */ D("input", {
92
- ref: V,
93
- type: "file",
94
- accept: ".json",
95
- onChange: Z,
96
- className: "hidden"
97
- }),
98
- /* @__PURE__ */ D(m, {
99
- onClick: () => V.current?.click(),
100
- disabled: H,
101
- children: j("bigconsole.dataSinks.import.browseFiles", "Browse Files")
102
- }),
103
- /* @__PURE__ */ D("p", {
104
- className: "text-xs text-text-secondary mt-4",
105
- children: j("bigconsole.dataSinks.import.supportedFilesHint", "Only .json files exported from BigConsole are supported")
106
- })
107
- ]
88
+ children: [/* @__PURE__ */ T("div", {
89
+ className: "flex size-10 items-center justify-center rounded-card bg-bg-accentSubtle",
90
+ children: /* @__PURE__ */ T(f, { className: "size-5 text-text-link" })
91
+ }), /* @__PURE__ */ T(re, { children: j("bigconsole.dataSinks.import.title", "Import DataSink") })]
92
+ }), /* @__PURE__ */ T(y, { children: j("bigconsole.dataSinks.import.description", "Upload a DataSink export file to restore it into this workspace.") })] }),
93
+ /* @__PURE__ */ T("ol", {
94
+ className: "flex flex-wrap items-center gap-x-icon-gap gap-y-1 text-xs",
95
+ "aria-label": "Import progress",
96
+ children: D.map((e, t) => /* @__PURE__ */ E("li", {
97
+ "aria-current": t === $ ? "step" : void 0,
98
+ className: `flex items-center gap-icon-gap ${t === $ ? "font-semibold text-text-primary" : "text-text-muted"}`,
99
+ children: [
100
+ /* @__PURE__ */ T("span", {
101
+ className: `inline-flex size-5 items-center justify-center rounded-pill text-[10px] ${t <= $ ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken"}`,
102
+ children: t + 1
103
+ }),
104
+ e.label,
105
+ t < D.length - 1 && /* @__PURE__ */ T("span", {
106
+ "aria-hidden": "true",
107
+ className: "text-text-muted",
108
+ children: ""
109
+ })
110
+ ]
111
+ }, e.id))
112
+ }),
113
+ /* @__PURE__ */ T("div", {
114
+ className: "min-w-0 flex-1 overflow-y-auto py-4",
115
+ children: /* @__PURE__ */ E(t, { children: [
116
+ M === "select" && /* @__PURE__ */ T(e, {
117
+ title: "Choose an export file",
118
+ description: j("bigconsole.dataSinks.import.supportedFilesHint", "Only .json files exported from BigConsole are supported"),
119
+ headingLevel: 3,
120
+ bodyClassName: "mt-form-gap",
121
+ children: /* @__PURE__ */ E("div", {
122
+ onDragOver: (e) => e.preventDefault(),
123
+ onDrop: ae,
124
+ className: "rounded-card border-2 border-dashed border-[var(--color-border-default)] p-8 text-center hover:border-[var(--color-action-primary-bg)] motion-safe:transition-colors",
125
+ children: [
126
+ /* @__PURE__ */ T(u, { className: "mx-auto mb-4 size-12 text-text-secondary" }),
127
+ /* @__PURE__ */ T("p", {
128
+ className: "mb-2 text-sm",
129
+ children: j("bigconsole.dataSinks.import.dropzoneText", "Drag and drop a DataSink export file here")
130
+ }),
131
+ /* @__PURE__ */ T("p", {
132
+ className: "mb-4 text-xs text-text-secondary",
133
+ children: j("bigconsole.dataSinks.import.or", "or")
134
+ }),
135
+ /* @__PURE__ */ T("input", {
136
+ ref: V,
137
+ type: "file",
138
+ accept: ".json",
139
+ onChange: ie,
140
+ className: "hidden"
141
+ }),
142
+ /* @__PURE__ */ T(g, {
143
+ onClick: () => V.current?.click(),
144
+ disabled: H,
145
+ children: j("bigconsole.dataSinks.import.browseFiles", "Browse Files")
146
+ })
147
+ ]
148
+ })
108
149
  }),
109
- (M === "preview" || M === "importing") && W && /* @__PURE__ */ O(E, { children: [
110
- W.dataSinkInfo && /* @__PURE__ */ D(h, { children: /* @__PURE__ */ O(g, {
111
- className: "p-4 space-y-2",
150
+ (M === "preview" || M === "importing") && W && /* @__PURE__ */ E(w, { children: [
151
+ W.dataSinkInfo && /* @__PURE__ */ E(e, {
152
+ emphasis: "muted",
153
+ padding: "compact",
154
+ headingLevel: 3,
155
+ title: "File contents",
156
+ description: "What this export file describes.",
157
+ bodyClassName: "space-y-2",
112
158
  children: [
113
- /* @__PURE__ */ O("div", {
114
- className: "flex items-center justify-between",
115
- children: [/* @__PURE__ */ D("span", {
159
+ /* @__PURE__ */ E("div", {
160
+ className: "flex items-center justify-between gap-icon-gap",
161
+ children: [/* @__PURE__ */ T("span", {
116
162
  className: "text-sm text-text-secondary",
117
163
  children: j("bigconsole.dataSinks.import.nameLabel", "Name")
118
- }), /* @__PURE__ */ D("span", {
119
- className: "text-sm font-medium",
164
+ }), /* @__PURE__ */ T("span", {
165
+ className: "min-w-0 truncate text-sm font-medium",
120
166
  children: W.dataSinkInfo.name || j("bigconsole.dataSinks.import.unnamed", "Unnamed")
121
167
  })]
122
168
  }),
123
- /* @__PURE__ */ O("div", {
124
- className: "flex items-center justify-between",
125
- children: [/* @__PURE__ */ D("span", {
169
+ /* @__PURE__ */ E("div", {
170
+ className: "flex items-center justify-between gap-icon-gap",
171
+ children: [/* @__PURE__ */ T("span", {
126
172
  className: "text-sm text-text-secondary",
127
173
  children: j("bigconsole.dataSinks.import.keyLabel", "Key")
128
- }), /* @__PURE__ */ D("span", {
129
- className: "text-xs font-mono",
174
+ }), /* @__PURE__ */ T("span", {
175
+ className: "min-w-0 truncate font-mono text-xs",
130
176
  children: W.dataSinkInfo.key
131
177
  })]
132
178
  }),
133
- /* @__PURE__ */ O("div", {
134
- className: "flex items-center justify-between",
135
- children: [/* @__PURE__ */ D("span", {
179
+ /* @__PURE__ */ E("div", {
180
+ className: "flex items-center justify-between gap-icon-gap",
181
+ children: [/* @__PURE__ */ T("span", {
136
182
  className: "text-sm text-text-secondary",
137
183
  children: j("bigconsole.dataSinks.import.statusLabel", "Status")
138
- }), /* @__PURE__ */ D(p, {
184
+ }), /* @__PURE__ */ T(h, {
139
185
  variant: "secondary",
140
186
  children: W.dataSinkInfo.status
141
187
  })]
142
188
  }),
143
- /* @__PURE__ */ O("div", {
144
- className: "flex items-center justify-between",
145
- children: [/* @__PURE__ */ D("span", {
189
+ /* @__PURE__ */ E("div", {
190
+ className: "flex items-center justify-between gap-icon-gap",
191
+ children: [/* @__PURE__ */ T("span", {
146
192
  className: "text-sm text-text-secondary",
147
193
  children: j("bigconsole.dataSinks.import.setupStateLabel", "Setup State")
148
- }), /* @__PURE__ */ D(p, {
194
+ }), /* @__PURE__ */ T(h, {
149
195
  variant: "outline",
150
196
  children: W.dataSinkInfo.setupState
151
197
  })]
152
198
  }),
153
- W.dataSinkInfo.exportedFrom && /* @__PURE__ */ O("div", {
154
- className: "flex items-center justify-between",
155
- children: [/* @__PURE__ */ D("span", {
199
+ W.dataSinkInfo.exportedFrom && /* @__PURE__ */ E("div", {
200
+ className: "flex items-center justify-between gap-icon-gap",
201
+ children: [/* @__PURE__ */ T("span", {
156
202
  className: "text-sm text-text-secondary",
157
203
  children: j("bigconsole.dataSinks.import.sourceIdLabel", "Source ID")
158
- }), /* @__PURE__ */ D("span", {
159
- className: "text-xs text-text-secondary font-mono truncate max-w-[180px]",
204
+ }), /* @__PURE__ */ T("span", {
205
+ className: "min-w-0 max-w-[180px] truncate font-mono text-xs text-text-secondary",
160
206
  children: W.dataSinkInfo.exportedFrom
161
207
  })]
162
208
  }),
163
- /* @__PURE__ */ O("div", {
164
- className: "flex items-center justify-between",
165
- children: [/* @__PURE__ */ D("span", {
209
+ /* @__PURE__ */ E("div", {
210
+ className: "flex items-center justify-between gap-icon-gap",
211
+ children: [/* @__PURE__ */ T("span", {
166
212
  className: "text-sm text-text-secondary",
167
213
  children: j("bigconsole.dataSinks.import.schemaVersionLabel", "Schema Version")
168
- }), /* @__PURE__ */ D("span", {
214
+ }), /* @__PURE__ */ T("span", {
169
215
  className: "text-xs text-text-secondary",
170
216
  children: W.dataSinkInfo.schemaVersion
171
217
  })]
172
218
  })
173
219
  ]
174
- }) }),
175
- W.errors.length > 0 && /* @__PURE__ */ D(h, {
176
- className: "border-status-error-border/50 bg-status-error-bg/5",
177
- children: /* @__PURE__ */ O(g, {
178
- className: "p-3",
179
- children: [/* @__PURE__ */ O("div", {
180
- className: "flex items-center gap-2 mb-2",
181
- children: [/* @__PURE__ */ D(ee, { className: "size-4 text-status-error-text" }), /* @__PURE__ */ D("span", {
182
- className: "text-sm font-medium text-status-error-text",
183
- children: j("bigconsole.dataSinks.import.errorsHeading", "Errors ({{count}})", { count: W.errors.length })
184
- })]
185
- }), /* @__PURE__ */ D("ul", {
186
- className: "text-xs text-status-error-text space-y-1",
187
- children: W.errors.map((e, t) => /* @__PURE__ */ O("li", { children: [
188
- /* @__PURE__ */ O("span", {
189
- className: "font-mono",
190
- children: [
191
- "[",
192
- e.code,
193
- "]"
194
- ]
195
- }),
196
- " ",
197
- e.message
198
- ] }, t))
199
- })]
220
+ }),
221
+ W.errors.length > 0 && /* @__PURE__ */ T(e, {
222
+ tone: "danger",
223
+ padding: "compact",
224
+ headingLevel: 3,
225
+ title: j("bigconsole.dataSinks.import.errorsHeading", "Errors ({{count}})", { count: W.errors.length }),
226
+ icon: /* @__PURE__ */ T(p, { className: "size-4" }),
227
+ children: /* @__PURE__ */ T("ul", {
228
+ className: "space-y-1 text-xs text-status-error-text",
229
+ children: W.errors.map((e, t) => /* @__PURE__ */ E("li", { children: [
230
+ /* @__PURE__ */ E("span", {
231
+ className: "font-mono",
232
+ children: [
233
+ "[",
234
+ e.code,
235
+ "]"
236
+ ]
237
+ }),
238
+ " ",
239
+ e.message
240
+ ] }, t))
200
241
  })
201
242
  }),
202
- W.isValid && /* @__PURE__ */ O("div", {
203
- className: "space-y-4",
243
+ W.isValid && /* @__PURE__ */ E(e, {
244
+ title: j("bigconsole.dataSinks.import.optionsHeading", "Import Options"),
245
+ description: "Rename the sink or give it a different key before importing.",
246
+ headingLevel: 3,
247
+ bodyClassName: "space-y-form-gap",
204
248
  children: [
205
- /* @__PURE__ */ D("p", {
206
- className: "text-sm font-medium",
207
- children: j("bigconsole.dataSinks.import.optionsHeading", "Import Options")
208
- }),
209
- /* @__PURE__ */ D(h, {
210
- className: "border-blue-500/50 bg-blue-500/5",
211
- children: /* @__PURE__ */ D(g, {
212
- className: "p-3",
213
- children: /* @__PURE__ */ O("div", {
214
- className: "flex items-start gap-2",
215
- children: [/* @__PURE__ */ D(u, { className: "size-4 text-blue-600 mt-0.5 shrink-0" }), /* @__PURE__ */ D("div", {
216
- className: "text-xs text-blue-700 dark:text-blue-400",
217
- children: $ ? /* @__PURE__ */ O(E, { children: [
218
- /* @__PURE__ */ D("p", {
219
- className: "font-medium mb-1",
220
- children: j("bigconsole.dataSinks.import.checkExistingHeading", "Import will check for existing DataSink")
221
- }),
222
- /* @__PURE__ */ O("p", { children: [
223
- j("bigconsole.dataSinks.import.ifOriginalExistsPrefix", "If the original DataSink (ID:"),
224
- " ",
225
- /* @__PURE__ */ O("code", {
226
- className: "font-mono bg-blue-200/50 px-1 rounded",
227
- children: [$.slice(0, 8), "..."]
228
- }),
229
- j("bigconsole.dataSinks.import.ifOriginalExistsSuffix", ") exists:")
230
- ] }),
231
- /* @__PURE__ */ O("ul", {
232
- className: "list-disc list-inside mt-1 space-y-0.5",
233
- children: [/* @__PURE__ */ D("li", { children: j("bigconsole.dataSinks.import.withChangesUpdate", "With changes → Update the existing DataSink") }), /* @__PURE__ */ D("li", { children: j("bigconsole.dataSinks.import.noChangesMessage", "No changes → Show \"already exists\" message") })]
234
- }),
235
- /* @__PURE__ */ D("p", {
236
- className: "mt-1",
237
- children: j("bigconsole.dataSinks.import.ifNotExistsCreate", "If original doesn't exist → Create a new DataSink")
238
- })
239
- ] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("p", {
240
- className: "font-medium mb-1",
241
- children: j("bigconsole.dataSinks.import.newWillBeCreatedHeading", "A new DataSink will be created")
242
- }), /* @__PURE__ */ D("p", { children: j("bigconsole.dataSinks.import.newWillBeCreatedBody", "Import as a new DataSink with the specified configuration.") })] })
243
- })]
244
- })
249
+ /* @__PURE__ */ T(e, {
250
+ tone: "info",
251
+ emphasis: "muted",
252
+ padding: "compact",
253
+ headingLevel: 4,
254
+ icon: /* @__PURE__ */ T(d, { className: "size-4" }),
255
+ title: Q ? j("bigconsole.dataSinks.import.checkExistingHeading", "Import will check for existing DataSink") : j("bigconsole.dataSinks.import.newWillBeCreatedHeading", "A new DataSink will be created"),
256
+ children: /* @__PURE__ */ T("div", {
257
+ className: "text-xs text-[var(--color-status-info-text)]",
258
+ children: Q ? /* @__PURE__ */ E(w, { children: [
259
+ /* @__PURE__ */ E("p", { children: [
260
+ j("bigconsole.dataSinks.import.ifOriginalExistsPrefix", "If the original DataSink (ID:"),
261
+ " ",
262
+ /* @__PURE__ */ E("code", {
263
+ className: "rounded-input bg-bg-surface px-1 font-mono",
264
+ children: [Q.slice(0, 8), "..."]
265
+ }),
266
+ j("bigconsole.dataSinks.import.ifOriginalExistsSuffix", ") exists:")
267
+ ] }),
268
+ /* @__PURE__ */ E("ul", {
269
+ className: "mt-1 list-inside list-disc space-y-0.5",
270
+ children: [/* @__PURE__ */ T("li", { children: j("bigconsole.dataSinks.import.withChangesUpdate", "With changes → Update the existing DataSink") }), /* @__PURE__ */ T("li", { children: j("bigconsole.dataSinks.import.noChangesMessage", "No changes → Show \"already exists\" message") })]
271
+ }),
272
+ /* @__PURE__ */ T("p", {
273
+ className: "mt-1",
274
+ children: j("bigconsole.dataSinks.import.ifNotExistsCreate", "If original doesn't exist → Create a new DataSink")
275
+ })
276
+ ] }) : /* @__PURE__ */ T("p", { children: j("bigconsole.dataSinks.import.newWillBeCreatedBody", "Import as a new DataSink with the specified configuration.") })
245
277
  })
246
278
  }),
247
- /* @__PURE__ */ O("div", {
279
+ /* @__PURE__ */ E("div", {
248
280
  className: "space-y-2",
249
- children: [/* @__PURE__ */ D(w, {
281
+ children: [/* @__PURE__ */ T(S, {
250
282
  htmlFor: "import-name",
251
283
  children: j("bigconsole.dataSinks.import.nameFieldLabel", "DataSink Name")
252
- }), /* @__PURE__ */ D(C, {
284
+ }), /* @__PURE__ */ T(x, {
253
285
  id: "import-name",
254
286
  type: "text",
255
287
  value: L,
@@ -258,14 +290,14 @@ var k = n(function({ isOpen: n, onClose: k, onSuccess: A }) {
258
290
  disabled: M === "importing"
259
291
  })]
260
292
  }),
261
- /* @__PURE__ */ O("div", {
293
+ /* @__PURE__ */ E("div", {
262
294
  className: "space-y-2",
263
295
  children: [
264
- /* @__PURE__ */ D(w, {
296
+ /* @__PURE__ */ T(S, {
265
297
  htmlFor: "import-key",
266
298
  children: j("bigconsole.dataSinks.import.keyFieldLabel", "DataSink Key")
267
299
  }),
268
- /* @__PURE__ */ D(C, {
300
+ /* @__PURE__ */ T(x, {
269
301
  id: "import-key",
270
302
  type: "text",
271
303
  value: z,
@@ -273,7 +305,7 @@ var k = n(function({ isOpen: n, onClose: k, onSuccess: A }) {
273
305
  placeholder: W.dataSinkInfo?.key || j("bigconsole.dataSinks.import.keyPlaceholder", "datasink-key"),
274
306
  disabled: M === "importing"
275
307
  }),
276
- /* @__PURE__ */ D("p", {
308
+ /* @__PURE__ */ T("p", {
277
309
  className: "text-xs text-text-secondary",
278
310
  children: j("bigconsole.dataSinks.import.keyHelp", "Use a unique key to avoid conflicts with existing DataSinks.")
279
311
  })
@@ -282,103 +314,91 @@ var k = n(function({ isOpen: n, onClose: k, onSuccess: A }) {
282
314
  ]
283
315
  })
284
316
  ] }),
285
- M === "complete" && G?.success && /* @__PURE__ */ O("div", {
286
- className: "text-center py-6",
287
- children: [
288
- G.alreadyExists && /* @__PURE__ */ O(E, { children: [
289
- /* @__PURE__ */ D("div", {
290
- className: "size-16 mx-auto mb-4 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center",
291
- children: /* @__PURE__ */ D(u, { className: "size-8 text-blue-600" })
292
- }),
293
- /* @__PURE__ */ D("h3", {
294
- className: "text-lg font-medium mb-2",
295
- children: j("bigconsole.dataSinks.import.alreadyExistsTitle", "DataSink Already Exists")
296
- }),
297
- /* @__PURE__ */ D("p", {
298
- className: "text-sm text-text-secondary mb-4",
299
- children: j("bigconsole.dataSinks.import.alreadyExistsBody", "DataSink \"{{name}}\" already exists with the same data. No changes were made.", { name: G.dataSink?.name || G.dataSink?.key || "" })
300
- })
301
- ] }),
302
- G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ O(E, { children: [
303
- /* @__PURE__ */ D("div", {
304
- className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
305
- children: /* @__PURE__ */ D(d, { className: "size-8 text-green-600" })
306
- }),
307
- /* @__PURE__ */ D("h3", {
308
- className: "text-lg font-medium mb-2",
309
- children: j("bigconsole.dataSinks.import.updatedTitle", "DataSink Updated!")
310
- }),
311
- /* @__PURE__ */ D("p", {
312
- className: "text-sm text-text-secondary mb-4",
313
- children: j("bigconsole.dataSinks.import.updatedBody", "DataSink \"{{name}}\" has been updated with the imported data.", { name: G.dataSink?.name || G.dataSink?.key || "" })
314
- })
315
- ] }),
316
- !G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ O(E, { children: [
317
- /* @__PURE__ */ D("div", {
318
- className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
319
- children: /* @__PURE__ */ D(c, { className: "size-8 text-green-600" })
320
- }),
321
- /* @__PURE__ */ D("h3", {
322
- className: "text-lg font-medium mb-2",
323
- children: j("bigconsole.dataSinks.import.successTitle", "Import Successful!")
324
- }),
325
- /* @__PURE__ */ D("p", {
326
- className: "text-sm text-text-secondary mb-4",
327
- children: j("bigconsole.dataSinks.import.successBody", "DataSink \"{{name}}\" has been created.", { name: G.dataSink?.name || G.dataSink?.key || "" })
328
- })
329
- ] })
330
- ]
331
- }),
332
- U && /* @__PURE__ */ D(h, {
333
- className: "border-status-error-border/50 bg-status-error-bg/5",
334
- children: /* @__PURE__ */ D(g, {
335
- className: "p-3",
336
- children: /* @__PURE__ */ D("p", {
337
- className: "text-sm text-status-error-text",
338
- children: U.message
317
+ M === "complete" && G?.success && /* @__PURE__ */ E(w, { children: [
318
+ G.alreadyExists && /* @__PURE__ */ T(e, {
319
+ tone: "info",
320
+ headingLevel: 3,
321
+ title: j("bigconsole.dataSinks.import.alreadyExistsTitle", "DataSink Already Exists"),
322
+ icon: /* @__PURE__ */ T(d, { className: "h-icon-sm w-icon-sm" }),
323
+ children: /* @__PURE__ */ T("p", {
324
+ className: "text-sm text-text-secondary",
325
+ children: j("bigconsole.dataSinks.import.alreadyExistsBody", "DataSink \"{{name}}\" already exists with the same data. No changes were made.", { name: G.dataSink?.name || G.dataSink?.key || "" })
326
+ })
327
+ }),
328
+ G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ T(e, {
329
+ tone: "success",
330
+ headingLevel: 3,
331
+ title: j("bigconsole.dataSinks.import.updatedTitle", "DataSink Updated!"),
332
+ icon: /* @__PURE__ */ T(te, { className: "h-icon-sm w-icon-sm" }),
333
+ children: /* @__PURE__ */ T("p", {
334
+ className: "text-sm text-text-secondary",
335
+ children: j("bigconsole.dataSinks.import.updatedBody", "DataSink \"{{name}}\" has been updated with the imported data.", { name: G.dataSink?.name || G.dataSink?.key || "" })
336
+ })
337
+ }),
338
+ !G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ T(e, {
339
+ tone: "success",
340
+ headingLevel: 3,
341
+ title: j("bigconsole.dataSinks.import.successTitle", "Import Successful!"),
342
+ icon: /* @__PURE__ */ T(ee, { className: "h-icon-sm w-icon-sm" }),
343
+ children: /* @__PURE__ */ T("p", {
344
+ className: "text-sm text-text-secondary",
345
+ children: j("bigconsole.dataSinks.import.successBody", "DataSink \"{{name}}\" has been created.", { name: G.dataSink?.name || G.dataSink?.key || "" })
339
346
  })
340
347
  })
348
+ ] }),
349
+ U && /* @__PURE__ */ T(e, {
350
+ tone: "danger",
351
+ padding: "compact",
352
+ headingLevel: 3,
353
+ title: "Import failed",
354
+ children: /* @__PURE__ */ T("p", {
355
+ className: "text-sm text-status-error-text",
356
+ children: U.message
357
+ })
341
358
  }),
342
- G && !G.success && G.errorMessage && /* @__PURE__ */ D(h, {
343
- className: "border-status-error-border/50 bg-status-error-bg/5",
344
- children: /* @__PURE__ */ D(g, {
345
- className: "p-3",
346
- children: /* @__PURE__ */ D("p", {
347
- className: "text-sm text-status-error-text",
348
- children: G.errorMessage
349
- })
359
+ G && !G.success && G.errorMessage && /* @__PURE__ */ T(e, {
360
+ tone: "danger",
361
+ padding: "compact",
362
+ headingLevel: 3,
363
+ title: "Import failed",
364
+ children: /* @__PURE__ */ T("p", {
365
+ className: "text-sm text-status-error-text",
366
+ children: G.errorMessage
350
367
  })
351
368
  })
352
- ]
369
+ ] })
353
370
  }),
354
- /* @__PURE__ */ O(b, {
355
- className: "flex-row justify-between sm:justify-between",
356
- children: [/* @__PURE__ */ D("div", { children: M === "preview" && /* @__PURE__ */ O(m, {
371
+ /* @__PURE__ */ E(b, {
372
+ className: "flex flex-col-reverse gap-control-gap sm:flex-row sm:justify-between",
373
+ children: [M === "preview" ? /* @__PURE__ */ E(g, {
357
374
  variant: "ghost",
358
375
  onClick: () => {
359
376
  N("select"), P(null), I(null), Y();
360
377
  },
361
378
  disabled: H,
362
- children: [/* @__PURE__ */ D(s, { className: "size-4" }), j("bigconsole.dataSinks.import.back", "Back")]
363
- }) }), /* @__PURE__ */ O("div", {
364
- className: "flex items-center gap-2",
379
+ children: [/* @__PURE__ */ T(l, { className: "size-4" }), j("bigconsole.dataSinks.import.back", "Back")]
380
+ }) : /* @__PURE__ */ T("span", {
381
+ "aria-hidden": "true",
382
+ className: "hidden sm:block"
383
+ }), /* @__PURE__ */ E("div", {
384
+ className: "flex flex-wrap items-center gap-2",
365
385
  children: [
366
- M !== "complete" && /* @__PURE__ */ D(m, {
386
+ M !== "complete" && /* @__PURE__ */ T(g, {
367
387
  variant: "outline",
368
388
  onClick: k,
369
- disabled: !Q,
389
+ disabled: !Z,
370
390
  children: j("bigconsole.dataSinks.import.cancel", "Cancel")
371
391
  }),
372
- M === "preview" && W?.isValid && /* @__PURE__ */ O(m, {
373
- onClick: re,
392
+ M === "preview" && W?.isValid && /* @__PURE__ */ E(g, {
393
+ onClick: oe,
374
394
  disabled: H,
375
- children: [/* @__PURE__ */ D(f, { className: "size-4" }), j("bigconsole.dataSinks.import.importButton", "Import DataSink")]
395
+ children: [/* @__PURE__ */ T(f, { className: "size-4" }), j("bigconsole.dataSinks.import.importButton", "Import DataSink")]
376
396
  }),
377
- M === "importing" && /* @__PURE__ */ O("div", {
397
+ M === "importing" && /* @__PURE__ */ E("div", {
378
398
  className: "flex items-center gap-2 text-sm text-text-secondary",
379
- children: [/* @__PURE__ */ D(T, { className: "size-4" }), j("bigconsole.dataSinks.import.importing", "Importing...")]
399
+ children: [/* @__PURE__ */ T(C, { className: "size-4" }), j("bigconsole.dataSinks.import.importing", "Importing...")]
380
400
  }),
381
- M === "complete" && /* @__PURE__ */ D(m, {
401
+ M === "complete" && /* @__PURE__ */ T(g, {
382
402
  onClick: k,
383
403
  children: j("bigconsole.dataSinks.import.done", "Done")
384
404
  })