@burdenoff/microfe-bigconsole 2026.924.2 → 2026.925.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 (134) hide show
  1. package/dist/bigconsole/BigConsoleRoot.js +94 -84
  2. package/dist/bigconsole/BigConsoleRoot.js.map +1 -1
  3. package/dist/bigconsole/BigConsoleRoutes.js +137 -138
  4. package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
  5. package/dist/bigconsole/assistant/previewController.js +7 -7
  6. package/dist/bigconsole/components/DrilldownDashboardRenderer.js +17 -17
  7. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +32 -32
  8. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +52 -52
  9. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
  10. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +7 -7
  11. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +53 -0
  12. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js.map +1 -0
  13. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +60 -60
  14. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +21 -21
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +36 -36
  17. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  18. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +38 -38
  19. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  20. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +121 -121
  21. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
  22. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +22 -22
  23. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  24. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +53 -53
  25. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  26. package/dist/bigconsole/components/dashboard/WidgetPalette.js +47 -47
  27. package/dist/bigconsole/components/dashboard/index.js +1 -0
  28. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  29. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  30. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  31. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -29
  32. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
  33. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +48 -48
  34. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +126 -114
  35. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
  36. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  37. package/dist/bigconsole/components/overview/DashboardGuide.js +214 -0
  38. package/dist/bigconsole/components/overview/DashboardGuide.js.map +1 -0
  39. package/dist/bigconsole/components/overview/DataHealthCard.js +97 -0
  40. package/dist/bigconsole/components/overview/DataHealthCard.js.map +1 -0
  41. package/dist/bigconsole/components/overview/OverviewQuickActions.js +32 -0
  42. package/dist/bigconsole/components/overview/OverviewQuickActions.js.map +1 -0
  43. package/dist/bigconsole/components/overview/OverviewStatCard.js +57 -0
  44. package/dist/bigconsole/components/overview/OverviewStatCard.js.map +1 -0
  45. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +107 -0
  46. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js.map +1 -0
  47. package/dist/bigconsole/components/overview/dashboardGuideSteps.js +119 -0
  48. package/dist/bigconsole/components/overview/dashboardGuideSteps.js.map +1 -0
  49. package/dist/bigconsole/components/overview/index.js +8 -0
  50. package/dist/bigconsole/components/overview/overviewModel.js +119 -0
  51. package/dist/bigconsole/components/overview/overviewModel.js.map +1 -0
  52. package/dist/bigconsole/components/overview/useOverviewData.js +48 -0
  53. package/dist/bigconsole/components/overview/useOverviewData.js.map +1 -0
  54. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  55. package/dist/bigconsole/components/parser/ImportParserDialog.js +127 -127
  56. package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
  57. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  58. package/dist/bigconsole/components/preview/AiPreviewContent.js +5 -5
  59. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +32 -32
  60. package/dist/bigconsole/components/preview/AiPreviewPanel.js +37 -37
  61. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +13 -13
  62. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +70 -70
  63. package/dist/bigconsole/components/widgets/PropertiesPanel.js +28 -28
  64. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +25 -25
  65. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  66. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  67. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  68. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  69. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  70. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  71. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +21 -21
  72. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  73. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  74. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  75. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  76. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  77. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  78. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  79. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  80. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
  81. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +68 -68
  82. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
  83. package/dist/bigconsole/hooks/useDataSinkOperations.js +92 -89
  84. package/dist/bigconsole/hooks/useDataSinkOperations.js.map +1 -1
  85. package/dist/bigconsole/hooks/useImportDataSink.js +96 -91
  86. package/dist/bigconsole/hooks/useImportDataSink.js.map +1 -1
  87. package/dist/bigconsole/pages/AdminPage.js +136 -136
  88. package/dist/bigconsole/pages/DashboardBuilderPage.js +10 -10
  89. package/dist/bigconsole/pages/DashboardViewPage.js +61 -61
  90. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  91. package/dist/bigconsole/pages/DashboardsPage.js +327 -348
  92. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  93. package/dist/bigconsole/pages/DataParsersPage.js +5 -5
  94. package/dist/bigconsole/pages/DataSinkBuilderPage.js +82 -80
  95. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  96. package/dist/bigconsole/pages/DataSinkViewPage.js +83 -83
  97. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  98. package/dist/bigconsole/pages/DataSinksPage.js +11 -11
  99. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  100. package/dist/bigconsole/pages/InsightsPage.js +315 -315
  101. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  102. package/dist/bigconsole/pages/OverviewPage.js +244 -0
  103. package/dist/bigconsole/pages/OverviewPage.js.map +1 -0
  104. package/dist/bigconsole/pages/ParserBuilderPage.js +5 -5
  105. package/dist/bigconsole/pages/ParserViewPage.js +98 -98
  106. package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
  107. package/dist/bigconsole/pages/PipelineBuilderPage.js +8 -8
  108. package/dist/bigconsole/pages/PipelineViewPage.js +46 -46
  109. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  110. package/dist/bigconsole/pages/PipelinesPage.js +80 -80
  111. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  112. package/dist/bigconsole/pages/SettingsPage.js +70 -70
  113. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  114. package/dist/bigconsole/pages/WorkflowViewPage.js +200 -200
  115. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  116. package/dist/bigconsole/pages/WorkflowsPage.js +78 -78
  117. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  118. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +36 -35
  119. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js.map +1 -1
  120. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
  121. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +79 -79
  122. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  123. package/dist/bigconsole/utils/createDialogParam.js +14 -0
  124. package/dist/bigconsole/utils/createDialogParam.js.map +1 -0
  125. package/dist/bigconsole/utils/quota.js +51 -23
  126. package/dist/bigconsole/utils/quota.js.map +1 -1
  127. package/dist/generated/global-operations.js +1 -1
  128. package/dist/generated/wspace-operations.js +285 -222
  129. package/dist/generated/wspace-operations.js.map +1 -1
  130. package/dist/shared/hooks/useTr.js +10 -7
  131. package/dist/shared/hooks/useTr.js.map +1 -1
  132. package/package.json +1 -1
  133. package/dist/bigconsole/pages/HomePage.js +0 -318
  134. package/dist/bigconsole/pages/HomePage.js.map +0 -1
@@ -1,135 +1,135 @@
1
1
  import { useAppNavigate as e } from "../contexts/NavigationContext.js";
2
2
  import "../contexts/index.js";
3
- import { SECTION_FOCUS_RING as t, sectionSurfaceClasses as n } from "../components/common/sectionStyles.js";
4
- import { Section as r, SectionStack as i } from "../components/common/Section.js";
5
- import "../components/common/index.js";
6
- import ee from "../hooks/useWorkflowOperations.js";
7
- import { BOOTSTRAP_RETRY_DELAY_MS as te } from "../constants.js";
8
- import { useBigConsole as a } from "../context/BigConsoleContext.js";
3
+ import t from "../hooks/useWorkflowOperations.js";
4
+ import { BOOTSTRAP_RETRY_DELAY_MS as n } from "../constants.js";
5
+ import { useBigConsole as r } from "../context/BigConsoleContext.js";
9
6
  import "../context/index.js";
10
- import { BIGCONSOLE_PERMISSIONS as o } from "../../constants/permissions.js";
11
- import { isNative as s, nativeCopyText as c, nativeNotify as l, nativeToast as ne } from "../../utils/nativeBridge.js";
12
- import re from "../components/workflow/WorkflowStatusBadge.js";
13
- import ie from "../components/workflow/WorkflowDeleteDialog.js";
14
- import { memo as u, useCallback as d, useEffect as ae, useState as f } from "react";
15
- import { useParams as p } from "react-router";
16
- import { AccessDenied as m, PermissionButton as h } from "@burdenoff/fe-libs/shared/components";
17
- import { usePermissions as oe } from "@burdenoff/fe-libs/shared/providers/shell";
18
- import { useI18n as se } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
19
- import { Button as g, IllustratedEmptyState as _, NextSteps as ce, PagePurpose as le, Spinner as ue } from "@burdenoff/fe-libs/ui";
20
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
21
- import { WorkflowBuilder as de } from "@burdenoff/fluidgrids-fe-sdk";
22
- import { formatDistanceToNow as x } from "date-fns";
7
+ import { SECTION_FOCUS_RING as i, sectionSurfaceClasses as ee } from "../components/common/sectionStyles.js";
8
+ import { Section as a, SectionStack as o } from "../components/common/Section.js";
9
+ import "../components/common/index.js";
10
+ import { BIGCONSOLE_PERMISSIONS as s } from "../../constants/permissions.js";
11
+ import { isNative as c, nativeCopyText as te, nativeNotify as l, nativeToast as u } from "../../utils/nativeBridge.js";
12
+ import ne from "../components/workflow/WorkflowStatusBadge.js";
13
+ import d from "../components/workflow/WorkflowDeleteDialog.js";
14
+ import { memo as f, useCallback as p, useEffect as re, useState as m } from "react";
15
+ import { useParams as h } from "react-router";
16
+ import { AccessDenied as g, PermissionButton as _ } from "@burdenoff/fe-libs/shared/components";
17
+ import { usePermissions as ie } from "@burdenoff/fe-libs/shared/providers/shell";
18
+ import { Button as v, IllustratedEmptyState as y, NextSteps as ae, PagePurpose as oe, Spinner as se } from "@burdenoff/fe-libs/ui";
19
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
20
+ import { WorkflowBuilder as ce } from "@burdenoff/fluidgrids-fe-sdk";
21
+ import { useI18n as le } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
22
+ import { formatDistanceToNow as C } from "date-fns";
23
23
  //#region src/bigconsole/pages/WorkflowViewPage.tsx
24
- var fe = ({ className: e }) => /* @__PURE__ */ y("svg", {
24
+ var ue = ({ className: e }) => /* @__PURE__ */ x("svg", {
25
25
  className: e,
26
26
  fill: "none",
27
27
  stroke: "currentColor",
28
28
  viewBox: "0 0 24 24",
29
- children: /* @__PURE__ */ y("path", {
29
+ children: /* @__PURE__ */ x("path", {
30
30
  strokeLinecap: "round",
31
31
  strokeLinejoin: "round",
32
32
  strokeWidth: 2,
33
33
  d: "M15 19l-7-7 7-7"
34
34
  })
35
- }), pe = ({ className: e }) => /* @__PURE__ */ y("svg", {
35
+ }), de = ({ className: e }) => /* @__PURE__ */ x("svg", {
36
36
  className: e,
37
37
  fill: "none",
38
38
  stroke: "currentColor",
39
39
  viewBox: "0 0 24 24",
40
- children: /* @__PURE__ */ y("path", {
40
+ children: /* @__PURE__ */ x("path", {
41
41
  strokeLinecap: "round",
42
42
  strokeLinejoin: "round",
43
43
  strokeWidth: 2,
44
44
  d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
45
45
  })
46
- }), me = ({ className: e }) => /* @__PURE__ */ y("svg", {
46
+ }), fe = ({ className: e }) => /* @__PURE__ */ x("svg", {
47
47
  className: e,
48
48
  fill: "none",
49
49
  stroke: "currentColor",
50
50
  viewBox: "0 0 24 24",
51
- children: /* @__PURE__ */ y("path", {
51
+ children: /* @__PURE__ */ x("path", {
52
52
  strokeLinecap: "round",
53
53
  strokeLinejoin: "round",
54
54
  strokeWidth: 2,
55
55
  d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
56
56
  })
57
- }), he = ({ className: e }) => /* @__PURE__ */ b("svg", {
57
+ }), pe = ({ className: e }) => /* @__PURE__ */ S("svg", {
58
58
  className: e,
59
59
  fill: "none",
60
60
  stroke: "currentColor",
61
61
  viewBox: "0 0 24 24",
62
- children: [/* @__PURE__ */ y("path", {
62
+ children: [/* @__PURE__ */ x("path", {
63
63
  strokeLinecap: "round",
64
64
  strokeLinejoin: "round",
65
65
  strokeWidth: 2,
66
66
  d: "M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"
67
- }), /* @__PURE__ */ y("path", {
67
+ }), /* @__PURE__ */ x("path", {
68
68
  strokeLinecap: "round",
69
69
  strokeLinejoin: "round",
70
70
  strokeWidth: 2,
71
71
  d: "M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
72
72
  })]
73
- }), ge = ({ className: e }) => /* @__PURE__ */ y("svg", {
73
+ }), me = ({ className: e }) => /* @__PURE__ */ x("svg", {
74
74
  className: e,
75
75
  fill: "none",
76
76
  stroke: "currentColor",
77
77
  viewBox: "0 0 24 24",
78
- children: /* @__PURE__ */ y("path", {
78
+ children: /* @__PURE__ */ x("path", {
79
79
  strokeLinecap: "round",
80
80
  strokeLinejoin: "round",
81
81
  strokeWidth: 2,
82
82
  d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
83
83
  })
84
- }), _e = ({ className: e }) => /* @__PURE__ */ y("svg", {
84
+ }), he = ({ className: e }) => /* @__PURE__ */ x("svg", {
85
85
  className: e,
86
86
  fill: "none",
87
87
  stroke: "currentColor",
88
88
  viewBox: "0 0 24 24",
89
- children: /* @__PURE__ */ y("path", {
89
+ children: /* @__PURE__ */ x("path", {
90
90
  strokeLinecap: "round",
91
91
  strokeLinejoin: "round",
92
92
  strokeWidth: 2,
93
93
  d: "M5 13l4 4L19 7"
94
94
  })
95
- }), ve = ({ className: e }) => /* @__PURE__ */ y("svg", {
95
+ }), ge = ({ className: e }) => /* @__PURE__ */ x("svg", {
96
96
  className: e,
97
97
  fill: "none",
98
98
  stroke: "currentColor",
99
99
  viewBox: "0 0 24 24",
100
- children: /* @__PURE__ */ y("path", {
100
+ children: /* @__PURE__ */ x("path", {
101
101
  strokeLinecap: "round",
102
102
  strokeLinejoin: "round",
103
103
  strokeWidth: 2,
104
104
  d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4"
105
105
  })
106
- }), ye = ({ className: e }) => /* @__PURE__ */ y("svg", {
106
+ }), _e = ({ className: e }) => /* @__PURE__ */ x("svg", {
107
107
  className: e,
108
108
  fill: "none",
109
109
  stroke: "currentColor",
110
110
  viewBox: "0 0 24 24",
111
- children: /* @__PURE__ */ y("path", {
111
+ children: /* @__PURE__ */ x("path", {
112
112
  strokeLinecap: "round",
113
113
  strokeLinejoin: "round",
114
114
  strokeWidth: 2,
115
115
  d: "M19 9l-7 7-7-7"
116
116
  })
117
- }), S = u(function() {
118
- let u = e(), { t: S } = se(), { workflowId: C } = p(), { apiGatewayUrl: w, authToken: T, workspaceId: E } = a(), { hasPermission: D, isLoading: O } = oe(), k = D(o.WORKFLOW_READ), A = D(o.WORKFLOW_UPDATE);
119
- D(o.WORKFLOW_DELETE);
120
- let j = D(o.WORKFLOW_EXECUTE), [M, N] = f(null), [P, F] = f(!1), [, I] = f(!1), [L, R] = f(!1), [be, z] = f(!1), [B, V] = f(!1), [xe, H] = f(!1), [U, W] = f(null), { loading: Se, error: G, fetchWorkflow: K, deleteWorkflow: q, executeWorkflow: J, pollWorkflowExecution: Y } = ee({ skipFetch: !0 });
121
- ae(() => {
122
- if (!C) {
117
+ }), w = f(function() {
118
+ let f = e(), { t: w } = le(), { workflowId: T } = h(), { apiGatewayUrl: ve, authToken: ye, workspaceId: E } = r(), { hasPermission: D, isLoading: O } = ie(), k = D(s.WORKFLOW_READ), A = D(s.WORKFLOW_UPDATE);
119
+ D(s.WORKFLOW_DELETE);
120
+ let j = D(s.WORKFLOW_EXECUTE), [M, N] = m(null), [P, F] = m(!1), [, I] = m(!1), [L, R] = m(!1), [be, z] = m(!1), [B, V] = m(!1), [xe, H] = m(!1), [U, W] = m(null), { loading: Se, error: G, fetchWorkflow: K, deleteWorkflow: q, executeWorkflow: J, pollWorkflowExecution: Y } = t({ skipFetch: !0 });
121
+ re(() => {
122
+ if (!T) {
123
123
  H(!0);
124
124
  return;
125
125
  }
126
- let e = !1, t = async (n) => {
126
+ let e = !1, t = async (r) => {
127
127
  try {
128
- let r = await K(C);
128
+ let i = await K(T);
129
129
  if (e) return;
130
- r ? (N(r), H(!0)) : n === 0 ? setTimeout(() => {
130
+ i ? (N(i), H(!0)) : r === 0 ? setTimeout(() => {
131
131
  e || t(1);
132
- }, te) : H(!0);
132
+ }, n) : H(!0);
133
133
  } catch {
134
134
  e || H(!0);
135
135
  }
@@ -137,32 +137,32 @@ var fe = ({ className: e }) => /* @__PURE__ */ y("svg", {
137
137
  return t(0), () => {
138
138
  e = !0;
139
139
  };
140
- }, [C, K]);
141
- let Ce = d(() => {
142
- u("/workflows");
143
- }, [u]), X = d(() => {
144
- u(`/workflows/${C}/edit`);
145
- }, [u, C]), we = d(async () => {
146
- if (C) {
140
+ }, [T, K]);
141
+ let Ce = p(() => {
142
+ f("/workflows");
143
+ }, [f]), X = p(() => {
144
+ f(`/workflows/${T}/edit`);
145
+ }, [f, T]), we = p(async () => {
146
+ if (T) {
147
147
  I(!0);
148
148
  try {
149
- await q(C) ? (s() && l("success"), u("/workflows")) : s() && l("error");
149
+ await q(T) ? (c() && l("success"), f("/workflows")) : c() && l("error");
150
150
  } catch {
151
- s() && l("error");
151
+ c() && l("error");
152
152
  } finally {
153
153
  I(!1), F(!1);
154
154
  }
155
155
  }
156
156
  }, [
157
- C,
157
+ T,
158
158
  q,
159
- u
160
- ]), Z = d(async () => {
161
- if (!C) return;
159
+ f
160
+ ]), Z = p(async () => {
161
+ if (!T) return;
162
162
  R(!0), W(null);
163
163
  let e = Date.now();
164
164
  try {
165
- let t = await J(C);
165
+ let t = await J(T);
166
166
  if (t) {
167
167
  let n = Date.now() - e;
168
168
  t.externalWorkflowId ? (W({
@@ -170,11 +170,11 @@ var fe = ({ className: e }) => /* @__PURE__ */ y("svg", {
170
170
  output: {
171
171
  externalWorkflowId: t.externalWorkflowId,
172
172
  executionCount: t.executionCount,
173
- status: S("bigconsole.workflows.view.executionTriggeredPolling", "Triggered — polling for completion...")
173
+ status: w("bigconsole.workflows.view.executionTriggeredPolling", "Triggered — polling for completion...")
174
174
  },
175
175
  error: null,
176
176
  executionTimeMs: n
177
- }), Y(C, {
177
+ }), Y(T, {
178
178
  intervalMs: 3e3,
179
179
  timeoutMs: 12e4,
180
180
  onProgress: (e) => {
@@ -185,7 +185,7 @@ var fe = ({ className: e }) => /* @__PURE__ */ y("svg", {
185
185
  ...n,
186
186
  output: {
187
187
  ...n.output || {},
188
- status: t.status === "error" ? S("bigconsole.workflows.view.executionStatusFailed", "Failed") : S("bigconsole.workflows.view.executionStatusCompleted", "Completed"),
188
+ status: t.status === "error" ? w("bigconsole.workflows.view.executionStatusFailed", "Failed") : w("bigconsole.workflows.view.executionStatusCompleted", "Completed"),
189
189
  executionCount: t.executionCount,
190
190
  lastExecutedAt: t.lastExecutedAt
191
191
  },
@@ -196,380 +196,380 @@ var fe = ({ className: e }) => /* @__PURE__ */ y("svg", {
196
196
  output: {
197
197
  executionCount: t.executionCount,
198
198
  lastExecutedAt: t.lastExecutedAt,
199
- status: S("bigconsole.workflows.view.executionStatusCompleted", "Completed")
199
+ status: w("bigconsole.workflows.view.executionStatusCompleted", "Completed")
200
200
  },
201
201
  error: null,
202
202
  executionTimeMs: n
203
203
  });
204
- let r = await K(C);
204
+ let r = await K(T);
205
205
  r && N(r);
206
206
  }
207
207
  } catch (t) {
208
208
  W({
209
209
  success: !1,
210
210
  output: null,
211
- error: t instanceof Error ? t.message : S("bigconsole.workflows.errors.executionFailed", "Execution failed"),
211
+ error: t instanceof Error ? t.message : w("bigconsole.workflows.errors.executionFailed", "Execution failed"),
212
212
  executionTimeMs: Date.now() - e
213
213
  });
214
214
  } finally {
215
215
  R(!1);
216
216
  }
217
217
  }, [
218
- C,
218
+ T,
219
219
  J,
220
220
  K,
221
221
  Y,
222
- S
223
- ]), Te = d(async () => {
222
+ w
223
+ ]), Te = p(async () => {
224
224
  if (M?.webhookUrl) try {
225
- await c(M.webhookUrl), z(!0), s() && ne(S("bigconsole.workflows.view.webhookCopiedToast", "Webhook copied")), setTimeout(() => z(!1), 2e3);
225
+ await te(M.webhookUrl), z(!0), c() && u(w("bigconsole.workflows.view.webhookCopiedToast", "Webhook copied")), setTimeout(() => z(!1), 2e3);
226
226
  } catch {}
227
- }, [M?.webhookUrl, S]), Ee = d((e) => {
228
- u(`/datasinks/${e}`);
229
- }, [u]), Q = /* @__PURE__ */ b("button", {
227
+ }, [M?.webhookUrl, w]), Ee = p((e) => {
228
+ f(`/datasinks/${e}`);
229
+ }, [f]), Q = /* @__PURE__ */ S("button", {
230
230
  type: "button",
231
231
  onClick: Ce,
232
- className: `inline-flex min-h-[var(--size-controlHeight-md)] items-center gap-1 rounded-button text-sm text-text-secondary motion-safe:transition-colors hover:text-text-primary ${t}`,
233
- children: [/* @__PURE__ */ y(fe, { className: "w-4 h-4" }), S("bigconsole.workflows.view.backToWorkflows", "Back to Workflows")]
232
+ className: `inline-flex min-h-[var(--size-controlHeight-md)] items-center gap-1 rounded-button text-sm text-text-secondary motion-safe:transition-colors hover:text-text-primary ${i}`,
233
+ children: [/* @__PURE__ */ x(ue, { className: "w-4 h-4" }), w("bigconsole.workflows.view.backToWorkflows", "Back to Workflows")]
234
234
  });
235
- if (!xe || Se && !M || O) return /* @__PURE__ */ y("div", {
235
+ if (!xe || Se && !M || O) return /* @__PURE__ */ x("div", {
236
236
  className: "mx-auto flex min-h-[400px] max-w-5xl items-center justify-center p-4 sm:p-[var(--space-pagePadding)]",
237
- children: /* @__PURE__ */ y(ue, { size: "lg" })
237
+ children: /* @__PURE__ */ x(se, { size: "lg" })
238
238
  });
239
- if (!k) return /* @__PURE__ */ y(m, {
240
- title: S("bigconsole.workflows.errors.accessDeniedTitle", "Access Denied"),
241
- description: S("bigconsole.workflows.errors.accessDeniedViewDescription", "You don't have permission to view this workflow.")
239
+ if (!k) return /* @__PURE__ */ x(g, {
240
+ title: w("bigconsole.workflows.errors.accessDeniedTitle", "Access Denied"),
241
+ description: w("bigconsole.workflows.errors.accessDeniedViewDescription", "You don't have permission to view this workflow.")
242
242
  });
243
- if (G || !M) return /* @__PURE__ */ y("div", {
243
+ if (G || !M) return /* @__PURE__ */ x("div", {
244
244
  className: "mx-auto max-w-5xl p-4 sm:p-[var(--space-pagePadding)]",
245
- children: /* @__PURE__ */ b(i, { children: [/* @__PURE__ */ y("div", { children: Q }), /* @__PURE__ */ y("section", {
245
+ children: /* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x("div", { children: Q }), /* @__PURE__ */ x("section", {
246
246
  "aria-label": "Workflow not found",
247
247
  "data-section-emphasis": "standard",
248
248
  "data-testid": "workflow-not-found",
249
- className: n("standard"),
250
- children: /* @__PURE__ */ y(_, {
249
+ className: ee("standard"),
250
+ children: /* @__PURE__ */ x(y, {
251
251
  illustration: "empty-data",
252
- title: S("bigconsole.workflows.view.notFoundTitle", "Workflow not found"),
253
- description: G?.message || S("bigconsole.workflows.view.notFoundDescription", "The workflow you are looking for does not exist.")
252
+ title: w("bigconsole.workflows.view.notFoundTitle", "Workflow not found"),
253
+ description: G?.message || w("bigconsole.workflows.view.notFoundDescription", "The workflow you are looking for does not exist.")
254
254
  })
255
255
  })] })
256
256
  });
257
257
  let $ = M.dataSinkLinks?.length || 0, De = !!M.externalWorkflowId, Oe = [
258
258
  ...j ? [{
259
259
  id: "execute",
260
- label: S("bigconsole.workflows.view.nextStepExecuteLabel", "Run the workflow"),
261
- description: S("bigconsole.workflows.view.nextStepExecuteDescription", "Trigger an execution to pull fresh data now."),
260
+ label: w("bigconsole.workflows.view.nextStepExecuteLabel", "Run the workflow"),
261
+ description: w("bigconsole.workflows.view.nextStepExecuteDescription", "Trigger an execution to pull fresh data now."),
262
262
  onClick: Z
263
263
  }] : [],
264
264
  {
265
265
  id: "design",
266
- label: S("bigconsole.workflows.view.nextStepDesignLabel", "Inspect the design"),
267
- description: S("bigconsole.workflows.view.nextStepDesignDescription", "Expand the read-only preview to see each step."),
266
+ label: w("bigconsole.workflows.view.nextStepDesignLabel", "Inspect the design"),
267
+ description: w("bigconsole.workflows.view.nextStepDesignDescription", "Expand the read-only preview to see each step."),
268
268
  onClick: () => V(!0)
269
269
  },
270
270
  ...A ? [{
271
271
  id: "edit",
272
- label: S("bigconsole.workflows.view.nextStepEditLabel", "Edit in the builder"),
273
- description: S("bigconsole.workflows.view.nextStepEditDescription", "Open the FluidGrids visual builder to change the flow."),
272
+ label: w("bigconsole.workflows.view.nextStepEditLabel", "Edit in the builder"),
273
+ description: w("bigconsole.workflows.view.nextStepEditDescription", "Open the FluidGrids visual builder to change the flow."),
274
274
  onClick: X
275
275
  }] : [],
276
276
  {
277
277
  id: "sinks",
278
- label: S("bigconsole.workflows.view.nextStepSinksLabel", "Check the linked data sinks"),
279
- description: S("bigconsole.workflows.view.nextStepSinksDescription", "See where this workflow writes its output."),
280
- onClick: () => u("/datasinks")
278
+ label: w("bigconsole.workflows.view.nextStepSinksLabel", "Check the linked data sinks"),
279
+ description: w("bigconsole.workflows.view.nextStepSinksDescription", "See where this workflow writes its output."),
280
+ onClick: () => f("/datasinks")
281
281
  }
282
282
  ];
283
- return /* @__PURE__ */ b("div", {
283
+ return /* @__PURE__ */ S("div", {
284
284
  className: "mx-auto max-w-5xl p-4 sm:p-[var(--space-pagePadding)]",
285
- children: [/* @__PURE__ */ b(i, { children: [
286
- /* @__PURE__ */ b("header", {
285
+ children: [/* @__PURE__ */ S(o, { children: [
286
+ /* @__PURE__ */ S("header", {
287
287
  "data-section-emphasis": "bare",
288
288
  className: "min-w-0",
289
- children: [/* @__PURE__ */ y("div", {
289
+ children: [/* @__PURE__ */ x("div", {
290
290
  className: "mb-form-gap",
291
291
  children: Q
292
- }), /* @__PURE__ */ b("div", {
292
+ }), /* @__PURE__ */ S("div", {
293
293
  className: "flex flex-col gap-form-gap md:flex-row md:items-start md:justify-between",
294
- children: [/* @__PURE__ */ b("div", {
294
+ children: [/* @__PURE__ */ S("div", {
295
295
  className: "min-w-0",
296
296
  children: [
297
- /* @__PURE__ */ b("div", {
297
+ /* @__PURE__ */ S("div", {
298
298
  className: "flex flex-wrap items-center gap-icon-gap",
299
- children: [/* @__PURE__ */ y("h1", {
299
+ children: [/* @__PURE__ */ x("h1", {
300
300
  className: "break-words text-2xl font-bold text-text-primary",
301
301
  children: M.name
302
- }), /* @__PURE__ */ y(re, { status: M.status })]
302
+ }), /* @__PURE__ */ x(ne, { status: M.status })]
303
303
  }),
304
- /* @__PURE__ */ y("p", {
304
+ /* @__PURE__ */ x("p", {
305
305
  className: "mt-1 break-all font-mono text-sm text-text-secondary",
306
306
  children: M.key
307
307
  }),
308
- M.externalWorkflowId && /* @__PURE__ */ b("p", {
308
+ M.externalWorkflowId && /* @__PURE__ */ S("p", {
309
309
  className: "mt-1 text-xs text-text-muted",
310
310
  children: [
311
- S("bigconsole.workflows.view.fluidGridsIdLabel", "FluidGrids ID:"),
311
+ w("bigconsole.workflows.view.fluidGridsIdLabel", "FluidGrids ID:"),
312
312
  " ",
313
- /* @__PURE__ */ y("span", {
313
+ /* @__PURE__ */ x("span", {
314
314
  className: "break-all font-mono",
315
315
  children: M.externalWorkflowId
316
316
  })
317
317
  ]
318
318
  })
319
319
  ]
320
- }), /* @__PURE__ */ b("div", {
320
+ }), /* @__PURE__ */ S("div", {
321
321
  className: "flex flex-wrap items-center gap-control-gap",
322
322
  children: [
323
- /* @__PURE__ */ y(h, {
324
- permission: o.WORKFLOW_EXECUTE,
323
+ /* @__PURE__ */ x(_, {
324
+ permission: s.WORKFLOW_EXECUTE,
325
325
  deniedBehavior: "disable",
326
- children: /* @__PURE__ */ b(g, {
326
+ children: /* @__PURE__ */ S(v, {
327
327
  size: "lg",
328
328
  onClick: Z,
329
329
  disabled: L,
330
- children: [/* @__PURE__ */ y(he, { className: "w-4 h-4" }), L ? S("bigconsole.workflows.actions.executing", "Executing...") : S("bigconsole.workflows.actions.execute", "Execute")]
330
+ children: [/* @__PURE__ */ x(pe, { className: "w-4 h-4" }), L ? w("bigconsole.workflows.actions.executing", "Executing...") : w("bigconsole.workflows.actions.execute", "Execute")]
331
331
  })
332
332
  }),
333
- /* @__PURE__ */ y(h, {
334
- permission: o.WORKFLOW_UPDATE,
333
+ /* @__PURE__ */ x(_, {
334
+ permission: s.WORKFLOW_UPDATE,
335
335
  deniedBehavior: "disable",
336
- children: /* @__PURE__ */ b(g, {
336
+ children: /* @__PURE__ */ S(v, {
337
337
  size: "lg",
338
338
  variant: "outline",
339
339
  onClick: X,
340
- children: [/* @__PURE__ */ y(pe, { className: "w-4 h-4" }), S("bigconsole.workflows.actions.edit", "Edit")]
340
+ children: [/* @__PURE__ */ x(de, { className: "w-4 h-4" }), w("bigconsole.workflows.actions.edit", "Edit")]
341
341
  })
342
342
  }),
343
- /* @__PURE__ */ y(h, {
344
- permission: o.WORKFLOW_DELETE,
343
+ /* @__PURE__ */ x(_, {
344
+ permission: s.WORKFLOW_DELETE,
345
345
  deniedBehavior: "hide",
346
- children: /* @__PURE__ */ b(g, {
346
+ children: /* @__PURE__ */ S(v, {
347
347
  size: "lg",
348
348
  variant: "ghost",
349
349
  onClick: () => F(!0),
350
350
  className: "text-[var(--color-status-error-text)] hover:bg-status-error-bg/10 hover:text-[var(--color-status-error-text)]",
351
- children: [/* @__PURE__ */ y(me, { className: "w-4 h-4" }), S("bigconsole.workflows.actions.delete", "Delete")]
351
+ children: [/* @__PURE__ */ x(fe, { className: "w-4 h-4" }), w("bigconsole.workflows.actions.delete", "Delete")]
352
352
  })
353
353
  })
354
354
  ]
355
355
  })]
356
356
  })]
357
357
  }),
358
- /* @__PURE__ */ y(le, { children: S("bigconsole.workflows.view.purpose", "A workflow is the visual ETL job that feeds this BigConsole — it fetches, transforms, and delivers data into linked data sinks. From here you can run it on demand, inspect its design and execution history, copy its webhook trigger, and edit it in the visual builder.") }),
359
- /* @__PURE__ */ y(ce, {
358
+ /* @__PURE__ */ x(oe, { children: w("bigconsole.workflows.view.purpose", "A workflow is the visual ETL job that feeds this BigConsole — it fetches, transforms, and delivers data into linked data sinks. From here you can run it on demand, inspect its design and execution history, copy its webhook trigger, and edit it in the visual builder.") }),
359
+ /* @__PURE__ */ x(ae, {
360
360
  storageKey: "bigconsole-workflow-view",
361
361
  steps: Oe
362
362
  }),
363
- U && /* @__PURE__ */ b(r, {
363
+ U && /* @__PURE__ */ S(a, {
364
364
  headingLevel: 2,
365
365
  tone: U.success ? "success" : "danger",
366
- title: U.success ? S("bigconsole.workflows.view.executionResultTriggered", "Execution Triggered") : S("bigconsole.workflows.view.executionResultFailed", "Execution Failed"),
366
+ title: U.success ? w("bigconsole.workflows.view.executionResultTriggered", "Execution Triggered") : w("bigconsole.workflows.view.executionResultFailed", "Execution Failed"),
367
367
  description: U.success ? "The run was accepted. Results refresh below as the run progresses." : "The run could not be started. The detail below comes straight from the workflow service.",
368
- meta: /* @__PURE__ */ b("span", {
368
+ meta: /* @__PURE__ */ S("span", {
369
369
  className: "rounded-pill bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary",
370
370
  children: [U.executionTimeMs, "ms"]
371
371
  }),
372
372
  "data-testid": "workflow-execution-result",
373
- children: [U.error ? /* @__PURE__ */ y("p", {
373
+ children: [U.error ? /* @__PURE__ */ x("p", {
374
374
  className: "break-words text-sm text-[var(--color-status-error-text)]",
375
375
  children: U.error
376
- }) : /* @__PURE__ */ y("pre", {
376
+ }) : /* @__PURE__ */ x("pre", {
377
377
  className: "max-h-[200px] min-w-0 overflow-auto rounded-card bg-bg-sunken p-2 font-mono text-xs text-text-secondary",
378
378
  children: JSON.stringify(U.output, null, 2)
379
- }), U.runId && /* @__PURE__ */ b("p", {
379
+ }), U.runId && /* @__PURE__ */ S("p", {
380
380
  className: "mt-2 text-xs text-text-muted",
381
381
  children: [
382
- S("bigconsole.workflows.view.runIdLabel", "Run ID:"),
382
+ w("bigconsole.workflows.view.runIdLabel", "Run ID:"),
383
383
  " ",
384
- /* @__PURE__ */ y("span", {
384
+ /* @__PURE__ */ x("span", {
385
385
  className: "break-all font-mono",
386
386
  children: U.runId
387
387
  })
388
388
  ]
389
389
  })]
390
390
  }),
391
- /* @__PURE__ */ b("div", {
391
+ /* @__PURE__ */ S("div", {
392
392
  className: "grid grid-cols-1 gap-section-gap md:grid-cols-2",
393
- children: [/* @__PURE__ */ y(r, {
393
+ children: [/* @__PURE__ */ x(a, {
394
394
  headingLevel: 2,
395
395
  emphasis: "muted",
396
- title: S("bigconsole.workflows.view.descriptionLabel", "Description"),
396
+ title: w("bigconsole.workflows.view.descriptionLabel", "Description"),
397
397
  description: "What this workflow is for, as entered by its author.",
398
- children: /* @__PURE__ */ y("p", {
398
+ children: /* @__PURE__ */ x("p", {
399
399
  className: "break-words text-sm text-text-primary",
400
- children: M.description || S("bigconsole.workflows.view.noDescription", "No description")
400
+ children: M.description || w("bigconsole.workflows.view.noDescription", "No description")
401
401
  })
402
- }), /* @__PURE__ */ y(r, {
402
+ }), /* @__PURE__ */ x(a, {
403
403
  headingLevel: 2,
404
404
  emphasis: De ? "standard" : "primary",
405
- title: S("bigconsole.workflows.view.executionStatsLabel", "Execution Stats"),
405
+ title: w("bigconsole.workflows.view.executionStatsLabel", "Execution Stats"),
406
406
  description: "How often this workflow has run, and when it last did.",
407
407
  "data-testid": "workflow-execution-stats",
408
- children: /* @__PURE__ */ b("div", {
408
+ children: /* @__PURE__ */ S("div", {
409
409
  className: "grid grid-cols-1 gap-form-gap sm:grid-cols-2",
410
- children: [/* @__PURE__ */ b("div", {
410
+ children: [/* @__PURE__ */ S("div", {
411
411
  className: "min-w-0",
412
- children: [/* @__PURE__ */ y("p", {
412
+ children: [/* @__PURE__ */ x("p", {
413
413
  className: "text-2xl font-bold text-text-primary",
414
414
  children: M.executionCount
415
- }), /* @__PURE__ */ y("p", {
415
+ }), /* @__PURE__ */ x("p", {
416
416
  className: "text-xs text-text-secondary",
417
- children: S("bigconsole.workflows.view.totalExecutionsLabel", "Total Executions")
417
+ children: w("bigconsole.workflows.view.totalExecutionsLabel", "Total Executions")
418
418
  })]
419
- }), /* @__PURE__ */ b("div", {
419
+ }), /* @__PURE__ */ S("div", {
420
420
  className: "min-w-0",
421
- children: [/* @__PURE__ */ y("p", {
421
+ children: [/* @__PURE__ */ x("p", {
422
422
  className: "text-sm font-medium text-text-primary",
423
- children: M.lastExecutedAt ? x(new Date(M.lastExecutedAt), { addSuffix: !0 }) : S("bigconsole.workflows.view.never", "Never")
424
- }), /* @__PURE__ */ y("p", {
423
+ children: M.lastExecutedAt ? C(new Date(M.lastExecutedAt), { addSuffix: !0 }) : w("bigconsole.workflows.view.never", "Never")
424
+ }), /* @__PURE__ */ x("p", {
425
425
  className: "text-xs text-text-secondary",
426
- children: S("bigconsole.workflows.view.lastExecutedLabel", "Last Executed")
426
+ children: w("bigconsole.workflows.view.lastExecutedLabel", "Last Executed")
427
427
  })]
428
428
  })]
429
429
  })
430
430
  })]
431
431
  }),
432
- M.externalWorkflowId && /* @__PURE__ */ y(r, {
432
+ M.externalWorkflowId && /* @__PURE__ */ x(a, {
433
433
  headingLevel: 2,
434
434
  emphasis: "primary",
435
- title: S("bigconsole.workflows.view.designPreviewTitle", "Workflow Design Preview"),
435
+ title: w("bigconsole.workflows.view.designPreviewTitle", "Workflow Design Preview"),
436
436
  description: "The steps this workflow runs, read-only. Open the builder to change them.",
437
- actions: /* @__PURE__ */ b(g, {
437
+ actions: /* @__PURE__ */ S(v, {
438
438
  variant: "outline",
439
439
  size: "sm",
440
440
  "aria-expanded": B,
441
441
  "aria-controls": "workflow-design-canvas",
442
442
  onClick: () => V((e) => !e),
443
- children: [B ? "Hide design" : "Show design", /* @__PURE__ */ y(ye, { className: `w-4 h-4 motion-safe:transition-transform ${B ? "rotate-180" : ""}` })]
443
+ children: [B ? "Hide design" : "Show design", /* @__PURE__ */ x(_e, { className: `w-4 h-4 motion-safe:transition-transform ${B ? "rotate-180" : ""}` })]
444
444
  }),
445
445
  "data-testid": "workflow-design-preview",
446
- children: B ? /* @__PURE__ */ y("div", {
446
+ children: B ? /* @__PURE__ */ x("div", {
447
447
  id: "workflow-design-canvas",
448
448
  className: "h-[320px] min-w-0 overflow-hidden rounded-card border border-[var(--color-border-subtle)] sm:h-[420px] lg:h-[450px]",
449
- children: /* @__PURE__ */ y(de, {
450
- apiGatewayUrl: w,
449
+ children: /* @__PURE__ */ x(ce, {
450
+ apiGatewayUrl: ve,
451
451
  workspaceId: E || "default",
452
- authToken: T,
452
+ authToken: ye,
453
453
  workflowId: M.externalWorkflowId,
454
454
  readonly: !0,
455
455
  hideHeader: !0,
456
456
  className: "h-full"
457
457
  })
458
- }) : /* @__PURE__ */ y("p", {
458
+ }) : /* @__PURE__ */ x("p", {
459
459
  id: "workflow-design-canvas",
460
460
  className: "text-sm text-text-secondary",
461
461
  children: "The canvas is collapsed. Show the design to see every step, its order and its connections."
462
462
  })
463
463
  }),
464
- M.webhookUrl && /* @__PURE__ */ y(r, {
464
+ M.webhookUrl && /* @__PURE__ */ x(a, {
465
465
  headingLevel: 2,
466
466
  emphasis: "muted",
467
- title: S("bigconsole.workflows.view.webhookUrlLabel", "Webhook URL"),
467
+ title: w("bigconsole.workflows.view.webhookUrlLabel", "Webhook URL"),
468
468
  description: "POST to this URL to run the workflow from an external system.",
469
- actions: /* @__PURE__ */ y(g, {
469
+ actions: /* @__PURE__ */ x(v, {
470
470
  variant: "ghost",
471
471
  size: "sm",
472
472
  onClick: Te,
473
- children: be ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(_e, { className: "w-4 h-4 text-status-success-text" }), S("bigconsole.workflows.actions.copied", "Copied!")] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(ge, { className: "w-4 h-4" }), S("bigconsole.workflows.actions.copy", "Copy")] })
473
+ children: be ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(he, { className: "w-4 h-4 text-status-success-text" }), w("bigconsole.workflows.actions.copied", "Copied!")] }) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(me, { className: "w-4 h-4" }), w("bigconsole.workflows.actions.copy", "Copy")] })
474
474
  }),
475
- children: /* @__PURE__ */ y("code", {
475
+ children: /* @__PURE__ */ x("code", {
476
476
  className: "block min-w-0 overflow-x-auto break-all rounded-card bg-bg-sunken px-3 py-2 font-mono text-sm text-text-primary",
477
477
  children: M.webhookUrl
478
478
  })
479
479
  }),
480
- /* @__PURE__ */ y(r, {
480
+ /* @__PURE__ */ x(a, {
481
481
  headingLevel: 2,
482
- title: S("bigconsole.workflows.view.linkedDataSinksTitle", "Linked DataSinks ({{count}})", { count: $ }),
482
+ title: w("bigconsole.workflows.view.linkedDataSinksTitle", "Linked DataSinks ({{count}})", { count: $ }),
483
483
  description: "Where this workflow writes the data it produces.",
484
484
  "data-testid": "workflow-linked-datasinks",
485
- children: $ === 0 ? /* @__PURE__ */ y(_, {
485
+ children: $ === 0 ? /* @__PURE__ */ x(y, {
486
486
  illustration: "empty-generic",
487
- title: S("bigconsole.workflows.view.noDataSinksTitle", "No data sinks linked"),
488
- description: S("bigconsole.workflows.view.noDataSinksDescription", "This workflow has no data sinks linked yet — its output isn't being stored.")
489
- }) : /* @__PURE__ */ y("ul", {
487
+ title: w("bigconsole.workflows.view.noDataSinksTitle", "No data sinks linked"),
488
+ description: w("bigconsole.workflows.view.noDataSinksDescription", "This workflow has no data sinks linked yet — its output isn't being stored.")
489
+ }) : /* @__PURE__ */ x("ul", {
490
490
  className: "flex flex-col gap-list-gap",
491
- children: M.dataSinkLinks?.map((e) => /* @__PURE__ */ b("li", {
491
+ children: M.dataSinkLinks?.map((e) => /* @__PURE__ */ S("li", {
492
492
  className: "flex flex-col gap-control-gap rounded-card bg-bg-sunken px-3 py-2 sm:flex-row sm:items-center sm:justify-between",
493
- children: [/* @__PURE__ */ b("div", {
493
+ children: [/* @__PURE__ */ S("div", {
494
494
  className: "flex min-w-0 items-center gap-icon-gap",
495
- children: [/* @__PURE__ */ y(ve, { className: "w-4 h-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ b("div", {
495
+ children: [/* @__PURE__ */ x(ge, { className: "w-4 h-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ S("div", {
496
496
  className: "min-w-0",
497
- children: [/* @__PURE__ */ y("p", {
497
+ children: [/* @__PURE__ */ x("p", {
498
498
  className: "truncate text-sm font-medium text-text-primary",
499
499
  children: e.dataSink?.name || e.dataSink?.key || e.dataSinkId
500
- }), e.dataSink?.key && /* @__PURE__ */ y("p", {
500
+ }), e.dataSink?.key && /* @__PURE__ */ x("p", {
501
501
  className: "truncate font-mono text-xs text-text-secondary",
502
502
  children: e.dataSink.key
503
503
  })]
504
504
  })]
505
- }), /* @__PURE__ */ b("div", {
505
+ }), /* @__PURE__ */ S("div", {
506
506
  className: "flex flex-wrap items-center gap-control-gap",
507
507
  children: [
508
- e.isEnabled ? /* @__PURE__ */ y("span", {
508
+ e.isEnabled ? /* @__PURE__ */ x("span", {
509
509
  className: "rounded-pill bg-[var(--color-status-success-bgSubtle)] px-2 py-0.5 text-xs font-medium text-status-success-text",
510
- children: S("bigconsole.workflows.view.dataSinkEnabled", "Enabled")
511
- }) : /* @__PURE__ */ y("span", {
510
+ children: w("bigconsole.workflows.view.dataSinkEnabled", "Enabled")
511
+ }) : /* @__PURE__ */ x("span", {
512
512
  className: "rounded-pill bg-bg-surface px-2 py-0.5 text-xs font-medium text-text-secondary",
513
- children: S("bigconsole.workflows.view.dataSinkDisabled", "Disabled")
513
+ children: w("bigconsole.workflows.view.dataSinkDisabled", "Disabled")
514
514
  }),
515
- /* @__PURE__ */ y("span", {
515
+ /* @__PURE__ */ x("span", {
516
516
  className: "text-xs text-text-muted",
517
- children: S("bigconsole.workflows.view.dataSinkPriority", "Priority: {{priority}}", { priority: e.priority })
517
+ children: w("bigconsole.workflows.view.dataSinkPriority", "Priority: {{priority}}", { priority: e.priority })
518
518
  }),
519
- e.dataSink && /* @__PURE__ */ y("button", {
519
+ e.dataSink && /* @__PURE__ */ x("button", {
520
520
  type: "button",
521
521
  onClick: () => Ee(e.dataSinkId),
522
522
  className: "inline-flex min-h-[var(--size-controlHeight-md)] items-center rounded-button px-2 text-xs font-medium text-text-link hover:underline sm:min-h-[var(--size-controlHeight-sm)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
523
- children: S("bigconsole.workflows.actions.view", "View")
523
+ children: w("bigconsole.workflows.actions.view", "View")
524
524
  })
525
525
  ]
526
526
  })]
527
527
  }, e.id))
528
528
  })
529
529
  }),
530
- /* @__PURE__ */ y(r, {
530
+ /* @__PURE__ */ x(a, {
531
531
  headingLevel: 2,
532
532
  emphasis: "muted",
533
533
  title: "Record history",
534
534
  padding: "compact",
535
- children: /* @__PURE__ */ b("dl", {
535
+ children: /* @__PURE__ */ S("dl", {
536
536
  className: "grid grid-cols-1 gap-form-gap sm:grid-cols-2",
537
- children: [/* @__PURE__ */ b("div", {
537
+ children: [/* @__PURE__ */ S("div", {
538
538
  className: "min-w-0",
539
539
  children: [
540
- /* @__PURE__ */ y("dt", {
540
+ /* @__PURE__ */ x("dt", {
541
541
  className: "text-xs text-text-secondary",
542
- children: S("bigconsole.workflows.view.createdLabel", "Created")
542
+ children: w("bigconsole.workflows.view.createdLabel", "Created")
543
543
  }),
544
- /* @__PURE__ */ y("dd", {
544
+ /* @__PURE__ */ x("dd", {
545
545
  className: "text-sm text-text-primary",
546
- children: x(new Date(M.createdAt), { addSuffix: !0 })
546
+ children: C(new Date(M.createdAt), { addSuffix: !0 })
547
547
  }),
548
- /* @__PURE__ */ y("dd", {
548
+ /* @__PURE__ */ x("dd", {
549
549
  className: "truncate text-xs text-text-muted",
550
- children: S("bigconsole.workflows.view.byAuthor", "by {{author}}", { author: M.createdBy })
550
+ children: w("bigconsole.workflows.view.byAuthor", "by {{author}}", { author: M.createdBy })
551
551
  })
552
552
  ]
553
- }), /* @__PURE__ */ b("div", {
553
+ }), /* @__PURE__ */ S("div", {
554
554
  className: "min-w-0",
555
555
  children: [
556
- /* @__PURE__ */ y("dt", {
556
+ /* @__PURE__ */ x("dt", {
557
557
  className: "text-xs text-text-secondary",
558
- children: S("bigconsole.workflows.view.lastUpdatedLabel", "Last Updated")
558
+ children: w("bigconsole.workflows.view.lastUpdatedLabel", "Last Updated")
559
559
  }),
560
- /* @__PURE__ */ y("dd", {
560
+ /* @__PURE__ */ x("dd", {
561
561
  className: "text-sm text-text-primary",
562
- children: x(new Date(M.updatedAt), { addSuffix: !0 })
562
+ children: C(new Date(M.updatedAt), { addSuffix: !0 })
563
563
  }),
564
- /* @__PURE__ */ y("dd", {
564
+ /* @__PURE__ */ x("dd", {
565
565
  className: "truncate text-xs text-text-muted",
566
- children: S("bigconsole.workflows.view.byAuthor", "by {{author}}", { author: M.updatedBy || M.createdBy })
566
+ children: w("bigconsole.workflows.view.byAuthor", "by {{author}}", { author: M.updatedBy || M.createdBy })
567
567
  })
568
568
  ]
569
569
  })]
570
570
  })
571
571
  })
572
- ] }), M && /* @__PURE__ */ y(ie, {
572
+ ] }), M && /* @__PURE__ */ x(d, {
573
573
  workflow: M,
574
574
  isOpen: P,
575
575
  onClose: () => F(!1),
@@ -578,6 +578,6 @@ var fe = ({ className: e }) => /* @__PURE__ */ y("svg", {
578
578
  });
579
579
  });
580
580
  //#endregion
581
- export { S as WorkflowViewPage };
581
+ export { w as WorkflowViewPage };
582
582
 
583
583
  //# sourceMappingURL=WorkflowViewPage.js.map