@burdenoff/microfe-bigconsole 2026.805.1 → 2026.805.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/bigconsole/AdminRoot.js +21 -16
  2. package/dist/bigconsole/AdminRoot.js.map +1 -1
  3. package/dist/bigconsole/BigConsoleRoot.js +44 -39
  4. package/dist/bigconsole/BigConsoleRoot.js.map +1 -1
  5. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +109 -113
  6. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
  7. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
  8. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
  9. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
  10. package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
  11. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +116 -100
  12. package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
  13. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
  14. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
  17. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
  18. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
  19. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
  20. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
  21. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
  22. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  23. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
  24. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
  25. package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +100 -98
  26. package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js.map +1 -1
  27. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
  28. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
  29. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +151 -154
  30. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
  31. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +187 -193
  32. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
  33. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  34. package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
  35. package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
  36. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
  37. package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
  38. package/dist/bigconsole/components/datasink/DataSinkCard.js +20 -20
  39. package/dist/bigconsole/components/datasink/DataSinkCard.js.map +1 -1
  40. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
  41. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
  42. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
  43. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
  44. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
  45. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
  46. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +182 -197
  47. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
  48. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
  49. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
  50. package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
  51. package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
  52. package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
  53. package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
  54. package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
  55. package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
  56. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
  57. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
  58. package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
  59. package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
  60. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +243 -230
  61. package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
  62. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
  63. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
  64. package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
  65. package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
  66. package/dist/bigconsole/components/widgets/WidgetMenu.js +87 -76
  67. package/dist/bigconsole/components/widgets/WidgetMenu.js.map +1 -1
  68. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
  69. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
  70. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
  71. package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
  72. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
  73. package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
  74. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
  75. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
  76. package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
  77. package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
  78. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +69 -68
  79. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
  80. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
  81. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
  82. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
  83. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
  84. package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
  85. package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
  86. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
  87. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
  88. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
  89. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
  90. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
  91. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
  92. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +178 -177
  93. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
  94. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
  95. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
  96. package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
  97. package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
  98. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
  99. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
  100. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +120 -118
  101. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js.map +1 -1
  102. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
  103. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
  104. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
  105. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
  106. package/dist/bigconsole/pages/DashboardBuilderPage.js +189 -175
  107. package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
  108. package/dist/bigconsole/pages/DashboardViewPage.js +200 -187
  109. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  110. package/dist/bigconsole/pages/DashboardsPage.js +379 -324
  111. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  112. package/dist/bigconsole/pages/DataParsersPage.js +185 -178
  113. package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
  114. package/dist/bigconsole/pages/DataSinkBuilderPage.js +195 -170
  115. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  116. package/dist/bigconsole/pages/DataSinkViewPage.js +224 -200
  117. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  118. package/dist/bigconsole/pages/DataSinksPage.js +281 -268
  119. package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
  120. package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
  121. package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
  122. package/dist/bigconsole/pages/InsightsPage.js +238 -208
  123. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  124. package/dist/bigconsole/pages/ParserBuilderPage.js +480 -413
  125. package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
  126. package/dist/bigconsole/pages/ParserViewPage.js +192 -172
  127. package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
  128. package/dist/bigconsole/pages/PipelineBuilderPage.js +198 -163
  129. package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
  130. package/dist/bigconsole/pages/PipelineViewPage.js +138 -133
  131. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  132. package/dist/bigconsole/pages/PipelinesPage.js +162 -136
  133. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  134. package/dist/bigconsole/pages/SettingsPage.js +177 -172
  135. package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
  136. package/dist/bigconsole/pages/WidgetDemoPage.js +121 -83
  137. package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
  138. package/dist/bigconsole/pages/WorkflowViewPage.js +269 -242
  139. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  140. package/dist/bigconsole/pages/WorkflowsPage.js +153 -138
  141. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  142. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
  143. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
  144. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
  145. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
  146. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
  147. package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
  148. package/dist/constants/permissions.js +83 -0
  149. package/dist/constants/permissions.js.map +1 -0
  150. package/package.json +2 -1
@@ -2,193 +2,190 @@ import e from "../../hooks/useBigConsoleAnalytics.js";
2
2
  import t from "../../hooks/useImportDataSink.js";
3
3
  import "../../hooks/index.js";
4
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 p } from "lucide-react";
6
- import { Badge as m, Button as h, Card as g, CardContent as _, Dialog as v, DialogContent as y, DialogDescription as b, DialogFooter as ee, DialogHeader as te, DialogTitle as x, Input as S, Label as C, Spinner as w } from "@burdenoff/fe-libs/ui";
7
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
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";
8
9
  //#region src/bigconsole/components/datasink/ImportDataSinkDialog.tsx
9
- var O = n(function({ isOpen: n, onClose: O, onSuccess: k }) {
10
- let [A, j] = o("select"), [, M] = o(null), [N, P] = o(null), [F, I] = o(""), [L, R] = o(""), z = a(null), { loading: B, error: V, validationResult: H, importResult: U, validateImport: W, importDataSink: G, extractDataSinkId: K, clearState: q } = t(), J = e();
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();
11
12
  i(() => {
12
- n && (j("select"), M(null), P(null), I(""), R(""), q());
13
- }, [n, q]);
14
- let Y = r(async (e) => {
13
+ n && (N("select"), P(null), I(null), R(""), B(""), Y());
14
+ }, [n, Y]);
15
+ let Z = r(async (e) => {
15
16
  let t = e.target.files?.[0];
16
17
  if (!t) return;
17
18
  if (!t.name.endsWith(".json")) {
18
- alert("Please select a JSON file");
19
+ alert(j("bigconsole.dataSinks.import.selectJsonFile", "Please select a JSON file"));
19
20
  return;
20
21
  }
21
- M(t);
22
+ P(t);
22
23
  let n = new FileReader();
23
24
  n.onload = async (e) => {
24
25
  let t = e.target?.result;
25
- P(t);
26
- let n = W(t);
27
- n.isValid && n.dataSinkInfo ? (j("preview"), I(n.dataSinkInfo.name || ""), R(n.dataSinkInfo.key || "")) : j("preview");
26
+ I(t);
27
+ let n = K(t);
28
+ n.isValid && n.dataSinkInfo ? (N("preview"), R(n.dataSinkInfo.name || ""), B(n.dataSinkInfo.key || "")) : N("preview");
28
29
  }, n.onerror = () => {
29
- alert("Failed to read file");
30
+ alert(j("bigconsole.dataSinks.import.readFileError", "Failed to read file"));
30
31
  }, n.readAsText(t);
31
- }, [W]), X = r((e) => {
32
+ }, [K, j]), ne = r((e) => {
32
33
  e.preventDefault();
33
34
  let t = e.dataTransfer.files?.[0];
34
35
  if (t) {
35
36
  let e = new DataTransfer();
36
- e.items.add(t), z.current && (z.current.files = e.files, z.current.dispatchEvent(new Event("change", { bubbles: !0 })));
37
+ e.items.add(t), V.current && (V.current.files = e.files, V.current.dispatchEvent(new Event("change", { bubbles: !0 })));
37
38
  }
38
- }, []), Z = r(async () => {
39
- if (!N) return;
40
- j("importing");
39
+ }, []), re = r(async () => {
40
+ if (!F) return;
41
+ N("importing");
41
42
  let e = {
42
- name: F.trim() || void 0,
43
- key: L.trim() || void 0
43
+ name: L.trim() || void 0,
44
+ key: z.trim() || void 0
44
45
  };
45
- J("bigconsole.data_sink.import_clicked", { source: "import" });
46
- let t = await G(N, e);
47
- t?.success && t.dataSink ? (j("complete"), J("bigconsole.data_sink.imported", {
46
+ X("bigconsole.data_sink.import_clicked", { source: "import" });
47
+ let t = await q(F, e);
48
+ t?.success && t.dataSink ? (N("complete"), X("bigconsole.data_sink.imported", {
48
49
  dataSinkId: t.dataSink.id,
49
50
  source: "import",
50
51
  originalUpdated: t.originalUpdated ?? !1
51
- }), k?.(t.dataSink.id, t.dataSink.name, t.originalUpdated ?? !1)) : j("preview");
52
+ }), A?.(t.dataSink.id, t.dataSink.name, t.originalUpdated ?? !1)) : N("preview");
52
53
  }, [
53
- J,
54
- N,
55
- G,
56
- L,
54
+ X,
57
55
  F,
58
- k
59
- ]), Q = !B && A !== "importing", $ = N ? K(N) : null;
60
- return /* @__PURE__ */ E(v, {
56
+ q,
57
+ z,
58
+ L,
59
+ A
60
+ ]), Q = !H && M !== "importing", $ = F ? J(F) : null;
61
+ return /* @__PURE__ */ D(_, {
61
62
  open: n,
62
- onOpenChange: (e) => !e && Q && O(),
63
- children: /* @__PURE__ */ D(y, {
63
+ onOpenChange: (e) => !e && Q && k(),
64
+ children: /* @__PURE__ */ O(v, {
64
65
  className: "sm:max-w-lg max-h-[85vh] flex flex-col",
65
66
  children: [
66
- /* @__PURE__ */ D(te, { children: [/* @__PURE__ */ D("div", {
67
+ /* @__PURE__ */ O(x, { children: [/* @__PURE__ */ O("div", {
67
68
  className: "flex items-center gap-3",
68
- children: [/* @__PURE__ */ E("div", {
69
+ children: [/* @__PURE__ */ D("div", {
69
70
  className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10",
70
- children: /* @__PURE__ */ E(f, { className: "size-5 text-primary" })
71
- }), /* @__PURE__ */ E(x, { children: "Import DataSink" })]
72
- }), /* @__PURE__ */ E(b, { children: "Upload a DataSink export file to restore it into this workspace." })] }),
73
- /* @__PURE__ */ D("div", {
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", {
74
75
  className: "flex-1 overflow-y-auto py-4 space-y-4",
75
76
  children: [
76
- A === "select" && /* @__PURE__ */ D("div", {
77
+ M === "select" && /* @__PURE__ */ O("div", {
77
78
  onDragOver: (e) => e.preventDefault(),
78
- onDrop: X,
79
+ onDrop: ne,
79
80
  className: "border-2 border-dashed rounded-lg p-8 text-center hover:border-primary transition-colors",
80
81
  children: [
81
- /* @__PURE__ */ E(l, { className: "size-12 mx-auto text-text-secondary mb-4" }),
82
- /* @__PURE__ */ E("p", {
82
+ /* @__PURE__ */ D(l, { className: "size-12 mx-auto text-text-secondary mb-4" }),
83
+ /* @__PURE__ */ D("p", {
83
84
  className: "text-sm mb-2",
84
- children: "Drag and drop a DataSink export file here"
85
+ children: j("bigconsole.dataSinks.import.dropzoneText", "Drag and drop a DataSink export file here")
85
86
  }),
86
- /* @__PURE__ */ E("p", {
87
+ /* @__PURE__ */ D("p", {
87
88
  className: "text-xs text-text-secondary mb-4",
88
- children: "or"
89
+ children: j("bigconsole.dataSinks.import.or", "or")
89
90
  }),
90
- /* @__PURE__ */ E("input", {
91
- ref: z,
91
+ /* @__PURE__ */ D("input", {
92
+ ref: V,
92
93
  type: "file",
93
94
  accept: ".json",
94
- onChange: Y,
95
+ onChange: Z,
95
96
  className: "hidden"
96
97
  }),
97
- /* @__PURE__ */ E(h, {
98
- onClick: () => z.current?.click(),
99
- disabled: B,
100
- children: "Browse Files"
98
+ /* @__PURE__ */ D(m, {
99
+ onClick: () => V.current?.click(),
100
+ disabled: H,
101
+ children: j("bigconsole.dataSinks.import.browseFiles", "Browse Files")
101
102
  }),
102
- /* @__PURE__ */ E("p", {
103
+ /* @__PURE__ */ D("p", {
103
104
  className: "text-xs text-text-secondary mt-4",
104
- children: "Only .json files exported from BigConsole are supported"
105
+ children: j("bigconsole.dataSinks.import.supportedFilesHint", "Only .json files exported from BigConsole are supported")
105
106
  })
106
107
  ]
107
108
  }),
108
- (A === "preview" || A === "importing") && H && /* @__PURE__ */ D(T, { children: [
109
- H.dataSinkInfo && /* @__PURE__ */ E(g, { children: /* @__PURE__ */ D(_, {
109
+ (M === "preview" || M === "importing") && W && /* @__PURE__ */ O(E, { children: [
110
+ W.dataSinkInfo && /* @__PURE__ */ D(h, { children: /* @__PURE__ */ O(g, {
110
111
  className: "p-4 space-y-2",
111
112
  children: [
112
- /* @__PURE__ */ D("div", {
113
+ /* @__PURE__ */ O("div", {
113
114
  className: "flex items-center justify-between",
114
- children: [/* @__PURE__ */ E("span", {
115
+ children: [/* @__PURE__ */ D("span", {
115
116
  className: "text-sm text-text-secondary",
116
- children: "Name"
117
- }), /* @__PURE__ */ E("span", {
117
+ children: j("bigconsole.dataSinks.import.nameLabel", "Name")
118
+ }), /* @__PURE__ */ D("span", {
118
119
  className: "text-sm font-medium",
119
- children: H.dataSinkInfo.name || "Unnamed"
120
+ children: W.dataSinkInfo.name || j("bigconsole.dataSinks.import.unnamed", "Unnamed")
120
121
  })]
121
122
  }),
122
- /* @__PURE__ */ D("div", {
123
+ /* @__PURE__ */ O("div", {
123
124
  className: "flex items-center justify-between",
124
- children: [/* @__PURE__ */ E("span", {
125
+ children: [/* @__PURE__ */ D("span", {
125
126
  className: "text-sm text-text-secondary",
126
- children: "Key"
127
- }), /* @__PURE__ */ E("span", {
127
+ children: j("bigconsole.dataSinks.import.keyLabel", "Key")
128
+ }), /* @__PURE__ */ D("span", {
128
129
  className: "text-xs font-mono",
129
- children: H.dataSinkInfo.key
130
+ children: W.dataSinkInfo.key
130
131
  })]
131
132
  }),
132
- /* @__PURE__ */ D("div", {
133
+ /* @__PURE__ */ O("div", {
133
134
  className: "flex items-center justify-between",
134
- children: [/* @__PURE__ */ E("span", {
135
+ children: [/* @__PURE__ */ D("span", {
135
136
  className: "text-sm text-text-secondary",
136
- children: "Status"
137
- }), /* @__PURE__ */ E(m, {
137
+ children: j("bigconsole.dataSinks.import.statusLabel", "Status")
138
+ }), /* @__PURE__ */ D(p, {
138
139
  variant: "secondary",
139
- children: H.dataSinkInfo.status
140
+ children: W.dataSinkInfo.status
140
141
  })]
141
142
  }),
142
- /* @__PURE__ */ D("div", {
143
+ /* @__PURE__ */ O("div", {
143
144
  className: "flex items-center justify-between",
144
- children: [/* @__PURE__ */ E("span", {
145
+ children: [/* @__PURE__ */ D("span", {
145
146
  className: "text-sm text-text-secondary",
146
- children: "Setup State"
147
- }), /* @__PURE__ */ E(m, {
147
+ children: j("bigconsole.dataSinks.import.setupStateLabel", "Setup State")
148
+ }), /* @__PURE__ */ D(p, {
148
149
  variant: "outline",
149
- children: H.dataSinkInfo.setupState
150
+ children: W.dataSinkInfo.setupState
150
151
  })]
151
152
  }),
152
- H.dataSinkInfo.exportedFrom && /* @__PURE__ */ D("div", {
153
+ W.dataSinkInfo.exportedFrom && /* @__PURE__ */ O("div", {
153
154
  className: "flex items-center justify-between",
154
- children: [/* @__PURE__ */ E("span", {
155
+ children: [/* @__PURE__ */ D("span", {
155
156
  className: "text-sm text-text-secondary",
156
- children: "Source ID"
157
- }), /* @__PURE__ */ E("span", {
157
+ children: j("bigconsole.dataSinks.import.sourceIdLabel", "Source ID")
158
+ }), /* @__PURE__ */ D("span", {
158
159
  className: "text-xs text-text-secondary font-mono truncate max-w-[180px]",
159
- children: H.dataSinkInfo.exportedFrom
160
+ children: W.dataSinkInfo.exportedFrom
160
161
  })]
161
162
  }),
162
- /* @__PURE__ */ D("div", {
163
+ /* @__PURE__ */ O("div", {
163
164
  className: "flex items-center justify-between",
164
- children: [/* @__PURE__ */ E("span", {
165
+ children: [/* @__PURE__ */ D("span", {
165
166
  className: "text-sm text-text-secondary",
166
- children: "Schema Version"
167
- }), /* @__PURE__ */ E("span", {
167
+ children: j("bigconsole.dataSinks.import.schemaVersionLabel", "Schema Version")
168
+ }), /* @__PURE__ */ D("span", {
168
169
  className: "text-xs text-text-secondary",
169
- children: H.dataSinkInfo.schemaVersion
170
+ children: W.dataSinkInfo.schemaVersion
170
171
  })]
171
172
  })
172
173
  ]
173
174
  }) }),
174
- H.errors.length > 0 && /* @__PURE__ */ E(g, {
175
+ W.errors.length > 0 && /* @__PURE__ */ D(h, {
175
176
  className: "border-status-error-border/50 bg-status-error-bg/5",
176
- children: /* @__PURE__ */ D(_, {
177
+ children: /* @__PURE__ */ O(g, {
177
178
  className: "p-3",
178
- children: [/* @__PURE__ */ D("div", {
179
+ children: [/* @__PURE__ */ O("div", {
179
180
  className: "flex items-center gap-2 mb-2",
180
- children: [/* @__PURE__ */ E(p, { className: "size-4 text-status-error-text" }), /* @__PURE__ */ D("span", {
181
+ children: [/* @__PURE__ */ D(ee, { className: "size-4 text-status-error-text" }), /* @__PURE__ */ D("span", {
181
182
  className: "text-sm font-medium text-status-error-text",
182
- children: [
183
- "Errors (",
184
- H.errors.length,
185
- ")"
186
- ]
183
+ children: j("bigconsole.dataSinks.import.errorsHeading", "Errors ({{count}})", { count: W.errors.length })
187
184
  })]
188
- }), /* @__PURE__ */ E("ul", {
185
+ }), /* @__PURE__ */ D("ul", {
189
186
  className: "text-xs text-status-error-text space-y-1",
190
- children: H.errors.map((e, t) => /* @__PURE__ */ D("li", { children: [
191
- /* @__PURE__ */ D("span", {
187
+ children: W.errors.map((e, t) => /* @__PURE__ */ O("li", { children: [
188
+ /* @__PURE__ */ O("span", {
192
189
  className: "font-mono",
193
190
  children: [
194
191
  "[",
@@ -202,200 +199,188 @@ var O = n(function({ isOpen: n, onClose: O, onSuccess: k }) {
202
199
  })]
203
200
  })
204
201
  }),
205
- H.isValid && /* @__PURE__ */ D("div", {
202
+ W.isValid && /* @__PURE__ */ O("div", {
206
203
  className: "space-y-4",
207
204
  children: [
208
- /* @__PURE__ */ E("p", {
205
+ /* @__PURE__ */ D("p", {
209
206
  className: "text-sm font-medium",
210
- children: "Import Options"
207
+ children: j("bigconsole.dataSinks.import.optionsHeading", "Import Options")
211
208
  }),
212
- /* @__PURE__ */ E(g, {
209
+ /* @__PURE__ */ D(h, {
213
210
  className: "border-blue-500/50 bg-blue-500/5",
214
- children: /* @__PURE__ */ E(_, {
211
+ children: /* @__PURE__ */ D(g, {
215
212
  className: "p-3",
216
- children: /* @__PURE__ */ D("div", {
213
+ children: /* @__PURE__ */ O("div", {
217
214
  className: "flex items-start gap-2",
218
- children: [/* @__PURE__ */ E(u, { className: "size-4 text-blue-600 mt-0.5 shrink-0" }), /* @__PURE__ */ E("div", {
215
+ children: [/* @__PURE__ */ D(u, { className: "size-4 text-blue-600 mt-0.5 shrink-0" }), /* @__PURE__ */ D("div", {
219
216
  className: "text-xs text-blue-700 dark:text-blue-400",
220
- children: $ ? /* @__PURE__ */ D(T, { children: [
221
- /* @__PURE__ */ E("p", {
217
+ children: $ ? /* @__PURE__ */ O(E, { children: [
218
+ /* @__PURE__ */ D("p", {
222
219
  className: "font-medium mb-1",
223
- children: "Import will check for existing DataSink"
220
+ children: j("bigconsole.dataSinks.import.checkExistingHeading", "Import will check for existing DataSink")
224
221
  }),
225
- /* @__PURE__ */ D("p", { children: [
226
- "If the original DataSink (ID:",
222
+ /* @__PURE__ */ O("p", { children: [
223
+ j("bigconsole.dataSinks.import.ifOriginalExistsPrefix", "If the original DataSink (ID:"),
227
224
  " ",
228
- /* @__PURE__ */ D("code", {
225
+ /* @__PURE__ */ O("code", {
229
226
  className: "font-mono bg-blue-200/50 px-1 rounded",
230
227
  children: [$.slice(0, 8), "..."]
231
228
  }),
232
- ") exists:"
229
+ j("bigconsole.dataSinks.import.ifOriginalExistsSuffix", ") exists:")
233
230
  ] }),
234
- /* @__PURE__ */ D("ul", {
231
+ /* @__PURE__ */ O("ul", {
235
232
  className: "list-disc list-inside mt-1 space-y-0.5",
236
- children: [/* @__PURE__ */ E("li", { children: "With changes → Update the existing DataSink" }), /* @__PURE__ */ E("li", { children: "No changes → Show \"already exists\" message" })]
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") })]
237
234
  }),
238
- /* @__PURE__ */ E("p", {
235
+ /* @__PURE__ */ D("p", {
239
236
  className: "mt-1",
240
- children: "If original doesn't exist → Create a new DataSink"
237
+ children: j("bigconsole.dataSinks.import.ifNotExistsCreate", "If original doesn't exist → Create a new DataSink")
241
238
  })
242
- ] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("p", {
239
+ ] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("p", {
243
240
  className: "font-medium mb-1",
244
- children: "A new DataSink will be created"
245
- }), /* @__PURE__ */ E("p", { children: "Import as a new DataSink with the specified configuration." })] })
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.") })] })
246
243
  })]
247
244
  })
248
245
  })
249
246
  }),
250
- /* @__PURE__ */ D("div", {
247
+ /* @__PURE__ */ O("div", {
251
248
  className: "space-y-2",
252
- children: [/* @__PURE__ */ E(C, {
249
+ children: [/* @__PURE__ */ D(w, {
253
250
  htmlFor: "import-name",
254
- children: "DataSink Name"
255
- }), /* @__PURE__ */ E(S, {
251
+ children: j("bigconsole.dataSinks.import.nameFieldLabel", "DataSink Name")
252
+ }), /* @__PURE__ */ D(C, {
256
253
  id: "import-name",
257
254
  type: "text",
258
- value: F,
259
- onChange: (e) => I(e.target.value),
260
- placeholder: H.dataSinkInfo?.name || "DataSink name",
261
- disabled: A === "importing"
255
+ value: L,
256
+ onChange: (e) => R(e.target.value),
257
+ placeholder: W.dataSinkInfo?.name || j("bigconsole.dataSinks.import.namePlaceholder", "DataSink name"),
258
+ disabled: M === "importing"
262
259
  })]
263
260
  }),
264
- /* @__PURE__ */ D("div", {
261
+ /* @__PURE__ */ O("div", {
265
262
  className: "space-y-2",
266
263
  children: [
267
- /* @__PURE__ */ E(C, {
264
+ /* @__PURE__ */ D(w, {
268
265
  htmlFor: "import-key",
269
- children: "DataSink Key"
266
+ children: j("bigconsole.dataSinks.import.keyFieldLabel", "DataSink Key")
270
267
  }),
271
- /* @__PURE__ */ E(S, {
268
+ /* @__PURE__ */ D(C, {
272
269
  id: "import-key",
273
270
  type: "text",
274
- value: L,
275
- onChange: (e) => R(e.target.value),
276
- placeholder: H.dataSinkInfo?.key || "datasink-key",
277
- disabled: A === "importing"
271
+ value: z,
272
+ onChange: (e) => B(e.target.value),
273
+ placeholder: W.dataSinkInfo?.key || j("bigconsole.dataSinks.import.keyPlaceholder", "datasink-key"),
274
+ disabled: M === "importing"
278
275
  }),
279
- /* @__PURE__ */ E("p", {
276
+ /* @__PURE__ */ D("p", {
280
277
  className: "text-xs text-text-secondary",
281
- children: "Use a unique key to avoid conflicts with existing DataSinks."
278
+ children: j("bigconsole.dataSinks.import.keyHelp", "Use a unique key to avoid conflicts with existing DataSinks.")
282
279
  })
283
280
  ]
284
281
  })
285
282
  ]
286
283
  })
287
284
  ] }),
288
- A === "complete" && U?.success && /* @__PURE__ */ D("div", {
285
+ M === "complete" && G?.success && /* @__PURE__ */ O("div", {
289
286
  className: "text-center py-6",
290
287
  children: [
291
- U.alreadyExists && /* @__PURE__ */ D(T, { children: [
292
- /* @__PURE__ */ E("div", {
288
+ G.alreadyExists && /* @__PURE__ */ O(E, { children: [
289
+ /* @__PURE__ */ D("div", {
293
290
  className: "size-16 mx-auto mb-4 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center",
294
- children: /* @__PURE__ */ E(u, { className: "size-8 text-blue-600" })
291
+ children: /* @__PURE__ */ D(u, { className: "size-8 text-blue-600" })
295
292
  }),
296
- /* @__PURE__ */ E("h3", {
293
+ /* @__PURE__ */ D("h3", {
297
294
  className: "text-lg font-medium mb-2",
298
- children: "DataSink Already Exists"
295
+ children: j("bigconsole.dataSinks.import.alreadyExistsTitle", "DataSink Already Exists")
299
296
  }),
300
297
  /* @__PURE__ */ D("p", {
301
298
  className: "text-sm text-text-secondary mb-4",
302
- children: [
303
- "DataSink \"",
304
- U.dataSink?.name || U.dataSink?.key,
305
- "\" already exists with the same data. No changes were made."
306
- ]
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 || "" })
307
300
  })
308
301
  ] }),
309
- U.originalUpdated && !U.alreadyExists && /* @__PURE__ */ D(T, { children: [
310
- /* @__PURE__ */ E("div", {
302
+ G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ O(E, { children: [
303
+ /* @__PURE__ */ D("div", {
311
304
  className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
312
- children: /* @__PURE__ */ E(d, { className: "size-8 text-green-600" })
305
+ children: /* @__PURE__ */ D(d, { className: "size-8 text-green-600" })
313
306
  }),
314
- /* @__PURE__ */ E("h3", {
307
+ /* @__PURE__ */ D("h3", {
315
308
  className: "text-lg font-medium mb-2",
316
- children: "DataSink Updated!"
309
+ children: j("bigconsole.dataSinks.import.updatedTitle", "DataSink Updated!")
317
310
  }),
318
311
  /* @__PURE__ */ D("p", {
319
312
  className: "text-sm text-text-secondary mb-4",
320
- children: [
321
- "DataSink \"",
322
- U.dataSink?.name || U.dataSink?.key,
323
- "\" has been updated with the imported data."
324
- ]
313
+ children: j("bigconsole.dataSinks.import.updatedBody", "DataSink \"{{name}}\" has been updated with the imported data.", { name: G.dataSink?.name || G.dataSink?.key || "" })
325
314
  })
326
315
  ] }),
327
- !U.originalUpdated && !U.alreadyExists && /* @__PURE__ */ D(T, { children: [
328
- /* @__PURE__ */ E("div", {
316
+ !G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ O(E, { children: [
317
+ /* @__PURE__ */ D("div", {
329
318
  className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
330
- children: /* @__PURE__ */ E(c, { className: "size-8 text-green-600" })
319
+ children: /* @__PURE__ */ D(c, { className: "size-8 text-green-600" })
331
320
  }),
332
- /* @__PURE__ */ E("h3", {
321
+ /* @__PURE__ */ D("h3", {
333
322
  className: "text-lg font-medium mb-2",
334
- children: "Import Successful!"
323
+ children: j("bigconsole.dataSinks.import.successTitle", "Import Successful!")
335
324
  }),
336
325
  /* @__PURE__ */ D("p", {
337
326
  className: "text-sm text-text-secondary mb-4",
338
- children: [
339
- "DataSink \"",
340
- U.dataSink?.name || U.dataSink?.key,
341
- "\" has been created."
342
- ]
327
+ children: j("bigconsole.dataSinks.import.successBody", "DataSink \"{{name}}\" has been created.", { name: G.dataSink?.name || G.dataSink?.key || "" })
343
328
  })
344
329
  ] })
345
330
  ]
346
331
  }),
347
- V && /* @__PURE__ */ E(g, {
332
+ U && /* @__PURE__ */ D(h, {
348
333
  className: "border-status-error-border/50 bg-status-error-bg/5",
349
- children: /* @__PURE__ */ E(_, {
334
+ children: /* @__PURE__ */ D(g, {
350
335
  className: "p-3",
351
- children: /* @__PURE__ */ E("p", {
336
+ children: /* @__PURE__ */ D("p", {
352
337
  className: "text-sm text-status-error-text",
353
- children: V.message
338
+ children: U.message
354
339
  })
355
340
  })
356
341
  }),
357
- U && !U.success && U.errorMessage && /* @__PURE__ */ E(g, {
342
+ G && !G.success && G.errorMessage && /* @__PURE__ */ D(h, {
358
343
  className: "border-status-error-border/50 bg-status-error-bg/5",
359
- children: /* @__PURE__ */ E(_, {
344
+ children: /* @__PURE__ */ D(g, {
360
345
  className: "p-3",
361
- children: /* @__PURE__ */ E("p", {
346
+ children: /* @__PURE__ */ D("p", {
362
347
  className: "text-sm text-status-error-text",
363
- children: U.errorMessage
348
+ children: G.errorMessage
364
349
  })
365
350
  })
366
351
  })
367
352
  ]
368
353
  }),
369
- /* @__PURE__ */ D(ee, {
354
+ /* @__PURE__ */ O(b, {
370
355
  className: "flex-row justify-between sm:justify-between",
371
- children: [/* @__PURE__ */ E("div", { children: A === "preview" && /* @__PURE__ */ D(h, {
356
+ children: [/* @__PURE__ */ D("div", { children: M === "preview" && /* @__PURE__ */ O(m, {
372
357
  variant: "ghost",
373
358
  onClick: () => {
374
- j("select"), M(null), P(null), q();
359
+ N("select"), P(null), I(null), Y();
375
360
  },
376
- disabled: B,
377
- children: [/* @__PURE__ */ E(s, { className: "size-4" }), "Back"]
378
- }) }), /* @__PURE__ */ D("div", {
361
+ disabled: H,
362
+ children: [/* @__PURE__ */ D(s, { className: "size-4" }), j("bigconsole.dataSinks.import.back", "Back")]
363
+ }) }), /* @__PURE__ */ O("div", {
379
364
  className: "flex items-center gap-2",
380
365
  children: [
381
- A !== "complete" && /* @__PURE__ */ E(h, {
366
+ M !== "complete" && /* @__PURE__ */ D(m, {
382
367
  variant: "outline",
383
- onClick: O,
368
+ onClick: k,
384
369
  disabled: !Q,
385
- children: "Cancel"
370
+ children: j("bigconsole.dataSinks.import.cancel", "Cancel")
386
371
  }),
387
- A === "preview" && H?.isValid && /* @__PURE__ */ D(h, {
388
- onClick: Z,
389
- disabled: B,
390
- children: [/* @__PURE__ */ E(f, { className: "size-4" }), "Import DataSink"]
372
+ M === "preview" && W?.isValid && /* @__PURE__ */ O(m, {
373
+ onClick: re,
374
+ disabled: H,
375
+ children: [/* @__PURE__ */ D(f, { className: "size-4" }), j("bigconsole.dataSinks.import.importButton", "Import DataSink")]
391
376
  }),
392
- A === "importing" && /* @__PURE__ */ D("div", {
377
+ M === "importing" && /* @__PURE__ */ O("div", {
393
378
  className: "flex items-center gap-2 text-sm text-text-secondary",
394
- children: [/* @__PURE__ */ E(w, { className: "size-4" }), "Importing..."]
379
+ children: [/* @__PURE__ */ D(T, { className: "size-4" }), j("bigconsole.dataSinks.import.importing", "Importing...")]
395
380
  }),
396
- A === "complete" && /* @__PURE__ */ E(h, {
397
- onClick: O,
398
- children: "Done"
381
+ M === "complete" && /* @__PURE__ */ D(m, {
382
+ onClick: k,
383
+ children: j("bigconsole.dataSinks.import.done", "Done")
399
384
  })
400
385
  ]
401
386
  })]
@@ -405,6 +390,6 @@ var O = n(function({ isOpen: n, onClose: O, onSuccess: k }) {
405
390
  });
406
391
  });
407
392
  //#endregion
408
- export { O as default };
393
+ export { k as default };
409
394
 
410
395
  //# sourceMappingURL=ImportDataSinkDialog.js.map