@burdenoff/microfe-bigconsole 2026.805.2 → 2026.805.3

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