@burdenoff/microfe-bigconsole 2026.624.1 → 2026.625.1

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