@burdenoff/microfe-bigconsole 2026.1004.3 → 2026.1004.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/bigconsole/BigConsoleRoutes.d.ts +1 -1
  2. package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -1
  3. package/dist/bigconsole/BigConsoleRoutes.js +15 -1
  4. package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
  5. package/dist/bigconsole/components/DrilldownModal.d.ts.map +1 -1
  6. package/dist/bigconsole/components/DrilldownModal.js +54 -53
  7. package/dist/bigconsole/components/DrilldownModal.js.map +1 -1
  8. package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +3 -1
  9. package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts.map +1 -1
  10. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +40 -39
  11. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
  12. package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts.map +1 -1
  13. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +184 -177
  14. package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
  15. package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts.map +1 -1
  16. package/dist/bigconsole/components/dashboard/DashboardGrid.js +40 -22
  17. package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -1
  18. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts.map +1 -1
  19. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +31 -25
  20. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -1
  21. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +1 -1
  22. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts.map +1 -1
  23. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +115 -80
  24. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
  25. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts.map +1 -1
  26. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +177 -146
  27. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
  28. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +1 -1
  29. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts.map +1 -1
  30. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +375 -325
  31. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
  32. package/dist/bigconsole/components/datasink/CacheTTLSelector.d.ts.map +1 -1
  33. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +7 -1
  34. package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
  35. package/dist/bigconsole/components/parser/ParserSelector.d.ts +3 -1
  36. package/dist/bigconsole/components/parser/ParserSelector.d.ts.map +1 -1
  37. package/dist/bigconsole/components/parser/ParserSelector.js +94 -94
  38. package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
  39. package/dist/bigconsole/components/pipeline/PipelineCard.d.ts.map +1 -1
  40. package/dist/bigconsole/components/pipeline/PipelineCard.js +111 -89
  41. package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -1
  42. package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts +8 -0
  43. package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts.map +1 -0
  44. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +52 -0
  45. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js.map +1 -0
  46. package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
  47. package/dist/bigconsole/components/widgets/PropertiesPanel.js +257 -221
  48. package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
  49. package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +1 -0
  50. package/dist/bigconsole/components/widgets/WidgetHeader.d.ts.map +1 -1
  51. package/dist/bigconsole/components/widgets/WidgetHeader.js +29 -29
  52. package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -1
  53. package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +2 -0
  54. package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts.map +1 -1
  55. package/dist/bigconsole/components/widgets/WidgetWrapper.js +247 -239
  56. package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -1
  57. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts.map +1 -1
  58. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +6 -4
  59. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -1
  60. package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +1 -0
  61. package/dist/bigconsole/components/widgets/states/EmptyState.d.ts.map +1 -1
  62. package/dist/bigconsole/components/widgets/states/EmptyState.js +4 -4
  63. package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -1
  64. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts +7 -0
  65. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts.map +1 -0
  66. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js +94 -0
  67. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js.map +1 -0
  68. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts +7 -0
  69. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts.map +1 -0
  70. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +101 -0
  71. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js.map +1 -0
  72. package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts +16 -0
  73. package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts.map +1 -0
  74. package/dist/bigconsole/hooks/useBigConsoleSettings.js +57 -0
  75. package/dist/bigconsole/hooks/useBigConsoleSettings.js.map +1 -0
  76. package/dist/bigconsole/hooks/useDashboardOperations.d.ts.map +1 -1
  77. package/dist/bigconsole/hooks/useDashboardOperations.js +102 -79
  78. package/dist/bigconsole/hooks/useDashboardOperations.js.map +1 -1
  79. package/dist/bigconsole/hooks/useExportDashboard.d.ts +3 -1
  80. package/dist/bigconsole/hooks/useExportDashboard.d.ts.map +1 -1
  81. package/dist/bigconsole/hooks/useExportDashboard.js +23 -13
  82. package/dist/bigconsole/hooks/useExportDashboard.js.map +1 -1
  83. package/dist/bigconsole/hooks/useFilterUrlSync.d.ts +18 -0
  84. package/dist/bigconsole/hooks/useFilterUrlSync.d.ts.map +1 -1
  85. package/dist/bigconsole/hooks/useFilterUrlSync.js +87 -57
  86. package/dist/bigconsole/hooks/useFilterUrlSync.js.map +1 -1
  87. package/dist/bigconsole/hooks/useGlobalFilters.d.ts.map +1 -1
  88. package/dist/bigconsole/hooks/useGlobalFilters.js +39 -29
  89. package/dist/bigconsole/hooks/useGlobalFilters.js.map +1 -1
  90. package/dist/bigconsole/hooks/usePageOperations.d.ts.map +1 -1
  91. package/dist/bigconsole/hooks/usePageOperations.js +1 -0
  92. package/dist/bigconsole/hooks/usePageOperations.js.map +1 -1
  93. package/dist/bigconsole/hooks/usePipelineOperations.d.ts.map +1 -1
  94. package/dist/bigconsole/hooks/usePipelineOperations.js +114 -112
  95. package/dist/bigconsole/hooks/usePipelineOperations.js.map +1 -1
  96. package/dist/bigconsole/hooks/useShareRecipients.d.ts +22 -0
  97. package/dist/bigconsole/hooks/useShareRecipients.d.ts.map +1 -0
  98. package/dist/bigconsole/hooks/useShareRecipients.js +198 -0
  99. package/dist/bigconsole/hooks/useShareRecipients.js.map +1 -0
  100. package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
  101. package/dist/bigconsole/pages/DashboardBuilderPage.js +198 -193
  102. package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
  103. package/dist/bigconsole/pages/DashboardViewPage.d.ts.map +1 -1
  104. package/dist/bigconsole/pages/DashboardViewPage.js +171 -167
  105. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  106. package/dist/bigconsole/pages/DashboardsPage.d.ts.map +1 -1
  107. package/dist/bigconsole/pages/DashboardsPage.js +313 -266
  108. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  109. package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
  110. package/dist/bigconsole/pages/DataSinkBuilderPage.js +84 -79
  111. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  112. package/dist/bigconsole/pages/DataSinkViewPage.d.ts.map +1 -1
  113. package/dist/bigconsole/pages/DataSinkViewPage.js +267 -257
  114. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  115. package/dist/bigconsole/pages/InsightsPage.d.ts.map +1 -1
  116. package/dist/bigconsole/pages/InsightsPage.js +465 -402
  117. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  118. package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
  119. package/dist/bigconsole/pages/PipelineBuilderPage.js +169 -157
  120. package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
  121. package/dist/bigconsole/pages/PipelineViewPage.d.ts.map +1 -1
  122. package/dist/bigconsole/pages/PipelineViewPage.js +370 -230
  123. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  124. package/dist/bigconsole/pages/PipelinesPage.d.ts.map +1 -1
  125. package/dist/bigconsole/pages/PipelinesPage.js +181 -151
  126. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  127. package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
  128. package/dist/bigconsole/pages/SettingsPage.js +188 -208
  129. package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
  130. package/dist/bigconsole/pages/WidgetDemoPage.d.ts.map +1 -1
  131. package/dist/bigconsole/pages/WidgetDemoPage.js +134 -117
  132. package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
  133. package/dist/bigconsole/pages/WorkflowViewPage.d.ts.map +1 -1
  134. package/dist/bigconsole/pages/WorkflowViewPage.js +315 -267
  135. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  136. package/dist/bigconsole/pages/WorkflowsPage.d.ts.map +1 -1
  137. package/dist/bigconsole/pages/WorkflowsPage.js +4 -3
  138. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  139. package/dist/bigconsole/types/index.d.ts +4 -0
  140. package/dist/bigconsole/types/index.d.ts.map +1 -1
  141. package/dist/generated/wspace-operations.d.ts +148 -0
  142. package/dist/generated/wspace-operations.d.ts.map +1 -1
  143. package/dist/generated/wspace-operations.js +172 -133
  144. package/dist/generated/wspace-operations.js.map +1 -1
  145. package/dist/generated/wspace-types.d.ts +21 -0
  146. package/dist/generated/wspace-types.d.ts.map +1 -1
  147. package/dist/generated/wspace-types.js.map +1 -1
  148. package/dist/microfe-bigconsole.css +1 -1
  149. package/dist/translations/en.d.ts.map +1 -1
  150. package/package.json +1 -1
@@ -11,23 +11,23 @@ import c from "../../hooks/useEventWebhooks.js";
11
11
  import l from "../../hooks/useDataSinkOperations.js";
12
12
  import ee from "../../hooks/useParserOperations.js";
13
13
  import "../../hooks/index.js";
14
- import { getWidgetBinding as te, getWidgetBindingStatus as ne, reconcilePanelConfig as re, serializeWidgetBinding as ie } from "../../utils/widgetBinding.js";
15
- import ae from "./ActionConfigDialog.js";
16
- import oe from "./webhook-config/WebhookConfigPanel.js";
14
+ import { getWidgetBinding as u, getWidgetBindingStatus as te, reconcilePanelConfig as ne, serializeWidgetBinding as re } from "../../utils/widgetBinding.js";
15
+ import ie from "./ActionConfigDialog.js";
16
+ import ae from "./webhook-config/WebhookConfigPanel.js";
17
17
  import "./webhook-config/index.js";
18
- import se from "./event-logs/EventLogViewer.js";
18
+ import oe from "./event-logs/EventLogViewer.js";
19
19
  import "./event-logs/index.js";
20
- import ce from "./DrilldownConfigPanel.js";
21
- import { AdvancedSection as le } from "../builder/inspector/AdvancedSection.js";
22
- import { AppearanceSection as ue } from "../builder/inspector/AppearanceSection.js";
23
- import { GeneralSection as de } from "../builder/inspector/GeneralSection.js";
24
- import { DataBindingSection as fe } from "../builder/inspector/DataBindingSection.js";
25
- import pe from "../builder/inspector/LayoutSection.js";
20
+ import se from "./DrilldownConfigPanel.js";
21
+ import { AdvancedSection as ce } from "../builder/inspector/AdvancedSection.js";
22
+ import { AppearanceSection as le } from "../builder/inspector/AppearanceSection.js";
23
+ import { GeneralSection as ue } from "../builder/inspector/GeneralSection.js";
24
+ import { DataBindingSection as de } from "../builder/inspector/DataBindingSection.js";
25
+ import fe from "../builder/inspector/LayoutSection.js";
26
26
  import "../builder/inspector/index.js";
27
- import { DEFAULT_GRID_CONFIG as me } from "../../utils/widgetPositioning.js";
28
- import { memo as he, useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
29
- import { Check as h, ChevronDown as ge, ChevronUp as _e, ExternalLink as ve, Info as ye, Pencil as be, Plus as xe, Trash2 as Se, X as Ce } from "lucide-react";
30
- import { Button as g, Card as we, CardContent as Te, Input as _, Label as v, Select as Ee, SelectContent as De, SelectItem as y, SelectTrigger as Oe, SelectValue as b, Sheet as ke, SheetContent as Ae, SheetDescription as je, SheetHeader as Me, SheetTitle as Ne, Spinner as Pe, Tabs as Fe, TabsContent as x, TabsList as Ie, TabsTrigger as S, Textarea as C } from "@burdenoff/fe-libs/ui";
27
+ import { DEFAULT_GRID_CONFIG as pe } from "../../utils/widgetPositioning.js";
28
+ import { memo as d, useCallback as f, useEffect as p, useMemo as m, useRef as me, useState as h } from "react";
29
+ import { Check as g, ChevronDown as he, ChevronUp as ge, ExternalLink as _e, Info as ve, Pencil as ye, Plus as be, Trash2 as xe, X as Se } from "lucide-react";
30
+ import { Button as _, Card as Ce, CardContent as we, Input as v, Label as y, Select as Te, SelectContent as Ee, SelectItem as b, SelectTrigger as De, SelectValue as Oe, Sheet as ke, SheetContent as Ae, SheetDescription as je, SheetHeader as Me, SheetTitle as Ne, Spinner as Pe, Tabs as Fe, TabsContent as x, TabsList as Ie, TabsTrigger as S, Textarea as C } from "@burdenoff/fe-libs/ui";
31
31
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
32
32
  import { useI18n as Le } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
33
33
  import { toast as Re } from "sonner";
@@ -165,16 +165,16 @@ function We(e) {
165
165
  xAxisField: a
166
166
  };
167
167
  }
168
- var Ge = he(function({ widget: e, onSave: t }) {
169
- let { t: r } = Le(), [i, a] = m(""), [o, s] = m(null), c = p(!1);
170
- d(() => {
168
+ var Ge = d(function({ widget: e, onSave: t }) {
169
+ let { t: r } = Le(), [i, a] = h(""), [o, s] = h(null), c = me(!1);
170
+ p(() => {
171
171
  try {
172
172
  a(e.template && typeof e.template == "object" ? JSON.stringify(e.template, null, 2) : ""), s(null), c.current = !0;
173
173
  } catch {
174
174
  a("");
175
175
  }
176
176
  }, [e.id, e.template]);
177
- let l = u((e) => {
177
+ let l = f((e) => {
178
178
  let n = e.target.value;
179
179
  if (a(n), n.trim() === "") s(null), t({});
180
180
  else try {
@@ -183,7 +183,7 @@ var Ge = he(function({ widget: e, onSave: t }) {
183
183
  } catch (e) {
184
184
  s(e.message);
185
185
  }
186
- }, [t]), ee = u(() => {
186
+ }, [t]), ee = f(() => {
187
187
  try {
188
188
  let e = JSON.parse(i);
189
189
  a(JSON.stringify(e, null, 2)), s(null), t(e);
@@ -231,7 +231,7 @@ var Ge = he(function({ widget: e, onSave: t }) {
231
231
  }),
232
232
  /* @__PURE__ */ T("div", {
233
233
  className: "mt-control-gap flex flex-wrap items-center gap-control-gap",
234
- children: [/* @__PURE__ */ w(g, {
234
+ children: [/* @__PURE__ */ w(_, {
235
235
  variant: "outline",
236
236
  size: "sm",
237
237
  onClick: ee,
@@ -249,7 +249,7 @@ var Ge = he(function({ widget: e, onSave: t }) {
249
249
  alignItems: "center",
250
250
  gap: "4px"
251
251
  },
252
- children: [/* @__PURE__ */ w(h, { style: {
252
+ children: [/* @__PURE__ */ w(g, { style: {
253
253
  width: "12px",
254
254
  height: "12px"
255
255
  } }), r("bigconsole.widget.properties.template.validJson", "Valid JSON")]
@@ -275,7 +275,7 @@ var Ge = he(function({ widget: e, onSave: t }) {
275
275
  fontWeight: "var(--font-weight-medium)",
276
276
  textDecoration: "none"
277
277
  },
278
- children: [r("bigconsole.widget.properties.template.designer", "Designer"), /* @__PURE__ */ w(ve, { style: {
278
+ children: [r("bigconsole.widget.properties.template.designer", "Designer"), /* @__PURE__ */ w(_e, { style: {
279
279
  height: "var(--size-icon-sm)",
280
280
  width: "var(--size-icon-sm)"
281
281
  } })]
@@ -293,7 +293,7 @@ var Ge = he(function({ widget: e, onSave: t }) {
293
293
  fontWeight: "var(--font-weight-medium)",
294
294
  textDecoration: "none"
295
295
  },
296
- children: [r("bigconsole.widget.properties.template.blockKitBuilder", "Block Kit Builder"), /* @__PURE__ */ w(ve, { style: {
296
+ children: [r("bigconsole.widget.properties.template.blockKitBuilder", "Block Kit Builder"), /* @__PURE__ */ w(_e, { style: {
297
297
  height: "var(--size-icon-sm)",
298
298
  width: "var(--size-icon-sm)"
299
299
  } })]
@@ -304,7 +304,7 @@ var Ge = he(function({ widget: e, onSave: t }) {
304
304
  });
305
305
  });
306
306
  function Ke(e) {
307
- let t = e, n = te({
307
+ let t = e, n = u({
308
308
  dataSinkId: t.dataSinkId,
309
309
  parserId: t.parserId,
310
310
  config: e.config || {}
@@ -331,18 +331,18 @@ function Ke(e) {
331
331
  } : void 0
332
332
  };
333
333
  }
334
- var D = he(function({ isOpen: he, onClose: ve }) {
335
- let { t: D } = Le(), [qe, Je] = m("general"), [O, k] = m("idle"), [A, j] = m(null), [M, N] = m(!1), P = e((e) => e.selectedWidgetId), Ye = e((e) => e.widgets), F = e((e) => e.updateWidget), Xe = e((e) => e.updateWidgetPosition), Ze = t(), I = P ? Ye.get(P) : void 0, Qe = I ? {
334
+ var D = d(function({ isOpen: d, onClose: _e }) {
335
+ let { t: D } = Le(), [qe, Je] = h("general"), [O, k] = h("idle"), [A, j] = h(null), [M, N] = h(!1), P = e((e) => e.selectedWidgetId), Ye = e((e) => e.widgets), F = e((e) => e.updateWidget), Xe = e((e) => e.updateWidgetPosition), Ze = t(), I = P ? Ye.get(P) : void 0, Qe = I ? {
336
336
  x: I.position?.x ?? I.positionX ?? 0,
337
337
  y: I.position?.y ?? I.positionY ?? 0,
338
338
  width: I.position?.width ?? I.positionWidth ?? 4,
339
339
  height: I.position?.height ?? I.positionHeight ?? 4
340
- } : null, $e = u((e) => {
340
+ } : null, $e = f((e) => {
341
341
  P && Xe(P, e);
342
- }, [P, Xe]), et = p(null), tt = p({}), nt = p(0), L = u(() => {
342
+ }, [P, Xe]), et = me(null), tt = me({}), nt = me(0), L = f(() => {
343
343
  nt.current += 1, N(!0);
344
344
  }, []);
345
- d(() => {
345
+ p(() => {
346
346
  if (!P) {
347
347
  et.current = null, j(null), N(!1), k("idle");
348
348
  return;
@@ -357,162 +357,196 @@ var D = he(function({ isOpen: he, onClose: ve }) {
357
357
  I,
358
358
  M
359
359
  ]);
360
- let { updateWidget: rt } = a(I?.pageId, I?.dashboardId, { skipFetch: !0 }), { createDrilldown: it, updateDrilldown: at, deleteDrilldown: ot } = o(), { dataSinks: R } = l({ skipFetch: !1 }), [st, ct] = m(null), { executeParser: lt } = ee({
360
+ let { updateWidget: rt } = a(I?.pageId, I?.dashboardId, { skipFetch: !0 }), { createDrilldown: it, updateDrilldown: at, deleteDrilldown: ot } = o(), { dataSinks: R } = l({ skipFetch: !1 }), [st, z] = h(null), { executeParser: ct, fetchParser: lt } = ee({
361
361
  consoleId: I?.dashboardId,
362
362
  skipFetch: !0
363
- }), [ut, dt] = m(!1), [ft, z] = m(void 0), [pt, B] = m(!1), [mt, V] = m(null);
364
- d(() => {
365
- z(void 0), B(!1), V(null), dt(!1);
363
+ }), [B, ut] = h(null), [dt, ft] = h(!1), pt = A?.parserId;
364
+ p(() => {
365
+ let e = !1;
366
+ if (ut(null), !d || !pt) {
367
+ ft(!1);
368
+ return;
369
+ }
370
+ return ft(!0), lt(pt).then((t) => {
371
+ e || (ut(t), ft(!1));
372
+ }), () => {
373
+ e = !0;
374
+ };
375
+ }, [
376
+ d,
377
+ pt,
378
+ P,
379
+ lt
380
+ ]);
381
+ let [mt, ht] = h(!1), [gt, V] = h(void 0), [_t, H] = h(!1), [vt, U] = h(null);
382
+ p(() => {
383
+ V(void 0), H(!1), U(null), ht(!1);
366
384
  }, [P]);
367
- let { actions: H, loading: ht, createAction: gt, updateAction: _t, deleteAction: vt, reorderActions: U } = s(P || void 0), { webhooks: yt, loading: bt, createWebhook: xt, updateWebhook: St, deleteWebhook: W, refetch: Ct } = c({
385
+ let { actions: W, loading: yt, createAction: bt, updateAction: xt, deleteAction: St, reorderActions: G } = s(P || void 0), { webhooks: Ct, loading: wt, createWebhook: Tt, updateWebhook: Et, deleteWebhook: K, refetch: Dt } = c({
368
386
  widgetId: P || void 0,
369
387
  skipFetch: !P
370
- }), G = u((e, t) => {
388
+ }), q = f((e, t) => {
371
389
  let n = Ve(t);
372
390
  return e.find((e) => e.widgetId === P && e.eventPattern === n) ?? null;
373
- }, [P]), K = u((e) => G(yt, e), [G, yt]), wt = u(async (e, t) => {
391
+ }, [P]), J = f((e) => q(Ct, e), [q, Ct]), Ot = f(async (e, t) => {
374
392
  if (!P || t === void 0) return !0;
375
- let n = Ve(e), r = K(e);
376
- return !r && bt && (r = G((await Ct())?.data?.listEventWebhookMappings ?? [], e)), t && t.url ? r ? await St({
393
+ let n = Ve(e), r = J(e);
394
+ return !r && wt && (r = q((await Dt())?.data?.listEventWebhookMappings ?? [], e)), t && t.url ? r ? await Et({
377
395
  id: r.id,
378
396
  eventPattern: n,
379
397
  webhookUrl: t.url,
380
398
  method: t.method,
381
399
  isActive: !0
382
- }) !== null : await xt({
400
+ }) !== null : await Tt({
383
401
  widgetId: P,
384
402
  eventPattern: n,
385
403
  webhookUrl: t.url,
386
404
  method: t.method
387
- }) !== null : t === null && r ? W(r.id) : !0;
405
+ }) !== null : t === null && r ? K(r.id) : !0;
388
406
  }, [
389
407
  P,
390
- K,
391
- bt,
392
- Ct,
393
- G,
394
- xt,
395
- St,
396
- W
397
- ]), [Tt, q] = m(!1), [J, Y] = m(void 0), [Et, Dt] = m(!1), [Ot, X] = m(void 0), [kt, Z] = m(null), At = f(() => {
398
- if (!J) return null;
399
- let e = K(J.name);
408
+ J,
409
+ wt,
410
+ Dt,
411
+ q,
412
+ Tt,
413
+ Et,
414
+ K
415
+ ]), [kt, At] = h(!1), [jt, Y] = h(void 0), [Mt, Nt] = h(!1), [Pt, X] = h(void 0), [Ft, Z] = h(null), It = m(() => {
416
+ if (!jt) return null;
417
+ let e = J(jt.name);
400
418
  return e ? {
401
419
  url: e.webhookUrl,
402
420
  method: e.method
403
421
  } : null;
404
- }, [J, K]), jt = Ot === void 0 ? At : Ot, Mt = f(() => {
422
+ }, [jt, J]), Lt = Pt === void 0 ? It : Pt, Rt = m(() => {
405
423
  let e = /* @__PURE__ */ new Map();
406
- for (let t of H) {
407
- let n = K(t.name);
424
+ for (let t of W) {
425
+ let n = J(t.name);
408
426
  n && e.set(t.name, n);
409
427
  }
410
428
  return e;
411
- }, [H, K]), Nt = u(() => {
412
- X(void 0), Z(null), Y(void 0), q(!0);
413
- }, []), Pt = u((e) => {
414
- X(void 0), Z(null), Y(e), q(!0);
415
- }, []), Ft = u(async (e, t) => {
429
+ }, [W, J]), zt = f(() => {
430
+ X(void 0), Z(null), Y(void 0), At(!0);
431
+ }, []), Bt = f((e) => {
432
+ X(void 0), Z(null), Y(e), At(!0);
433
+ }, []), Vt = f(async (e, t) => {
416
434
  if (P) {
417
- Dt(!0), Z(null);
435
+ Nt(!0), Z(null);
418
436
  try {
419
437
  let n = "id" in e && !!e.id, r = null;
420
- if (r = n ? await _t(e) : await gt(e), r) {
421
- let e = [...H];
438
+ if (r = n ? await xt(e) : await bt(e), r) {
439
+ let e = [...W];
422
440
  if (n) {
423
441
  let t = e.findIndex((e) => e.id === r?.id);
424
442
  t >= 0 && (e[t] = r);
425
443
  } else e.push(r);
426
- if (F(P, { actions: e.sort((e, t) => e.order - t.order) }), !await wt(r.name, t)) {
444
+ if (F(P, { actions: e.sort((e, t) => e.order - t.order) }), !await Ot(r.name, t)) {
427
445
  X(t), Z(t ? D("bigconsole.widget.properties.action.webhookSaveFailed", "The button was saved, but its webhook could not be saved. Check the URL and try again.") : D("bigconsole.widget.properties.action.webhookRemoveFailed", "The button was saved, but its old webhook could not be removed. Try again.")), Y(r);
428
446
  return;
429
447
  }
430
- X(void 0), Z(null), q(!1), Y(void 0);
448
+ X(void 0), Z(null), At(!1), Y(void 0);
431
449
  }
432
450
  } catch (e) {
433
451
  console.warn("Failed to save widget action:", e), Z(e instanceof Error ? e.message : D("bigconsole.widget.properties.action.saveFailed", "Could not save the button. Please try again."));
434
452
  } finally {
435
- Dt(!1);
453
+ Nt(!1);
436
454
  }
437
455
  }
438
456
  }, [
439
457
  P,
440
- H,
441
- gt,
442
- _t,
458
+ W,
459
+ bt,
460
+ xt,
443
461
  F,
444
- wt,
462
+ Ot,
445
463
  D
446
- ]), It = u(async (e) => {
464
+ ]), Ht = f(async (e) => {
447
465
  if (P && window.confirm(D("bigconsole.widget.properties.action.deleteConfirm", "Are you sure you want to delete this action?"))) {
448
- let t = H.find((t) => t.id === e);
449
- if (await vt(e) && (F(P, { actions: H.filter((t) => t.id !== e) }), t)) {
450
- let e = K(t.name);
451
- e && await W(e.id);
466
+ let t = W.find((t) => t.id === e);
467
+ if (await St(e) && (F(P, { actions: W.filter((t) => t.id !== e) }), t)) {
468
+ let e = J(t.name);
469
+ e && await K(e.id);
452
470
  }
453
471
  }
454
472
  }, [
455
473
  P,
456
- H,
457
- vt,
474
+ W,
475
+ St,
458
476
  F,
477
+ J,
459
478
  K,
460
- W,
461
479
  D
462
- ]), Lt = u(async (e) => {
480
+ ]), Ut = f(async (e) => {
463
481
  if (!P || e === 0) return;
464
- let t = [...H].sort((e, t) => e.order - t.order), n = t.map((e) => e.id);
465
- [n[e - 1], n[e]] = [n[e], n[e - 1]], await U(n) && F(P, { actions: t.map((e, t) => ({
482
+ let t = [...W].sort((e, t) => e.order - t.order), n = t.map((e) => e.id);
483
+ [n[e - 1], n[e]] = [n[e], n[e - 1]], await G(n) && F(P, { actions: t.map((e, t) => ({
466
484
  ...e,
467
485
  order: n.indexOf(e.id)
468
486
  })).sort((e, t) => e.order - t.order) });
469
487
  }, [
470
488
  P,
471
- H,
472
- U,
489
+ W,
490
+ G,
473
491
  F
474
- ]), Rt = u(async (e) => {
492
+ ]), Wt = f(async (e) => {
475
493
  if (!P) return;
476
- let t = [...H].sort((e, t) => e.order - t.order);
494
+ let t = [...W].sort((e, t) => e.order - t.order);
477
495
  if (e === t.length - 1) return;
478
496
  let n = t.map((e) => e.id);
479
- [n[e], n[e + 1]] = [n[e + 1], n[e]], await U(n) && F(P, { actions: t.map((e, t) => ({
497
+ [n[e], n[e + 1]] = [n[e + 1], n[e]], await G(n) && F(P, { actions: t.map((e, t) => ({
480
498
  ...e,
481
499
  order: n.indexOf(e.id)
482
500
  })).sort((e, t) => e.order - t.order) });
483
501
  }, [
484
502
  P,
485
- H,
486
- U,
503
+ W,
504
+ G,
487
505
  F
488
506
  ]);
489
- d(() => {
490
- P && H.length >= 0 && !ht && F(P, { actions: H });
507
+ p(() => {
508
+ P && W.length >= 0 && !yt && F(P, { actions: W });
491
509
  }, [
492
510
  P,
493
- H,
494
- ht,
511
+ W,
512
+ yt,
495
513
  F
496
514
  ]);
497
- let Q = u((e, t) => {
515
+ let Q = f((e, t) => {
498
516
  j((n) => n && {
499
517
  ...n,
500
518
  [e]: t
501
519
  }), L();
502
- }, [L]), $ = u((e) => {
520
+ }, [L]), $ = f((e) => {
503
521
  j((t) => t && {
504
522
  ...t,
505
523
  config: e
506
524
  }), L();
507
525
  }, [L]);
508
- d(() => {
509
- if (A?.dataSinkId && R.length > 0) {
510
- let e = R.find((e) => e.id === A.dataSinkId);
511
- e && ct(e.key);
512
- } else ct(null);
513
- }, [A?.dataSinkId, R]);
514
- let zt = u((e) => {
515
- if (z(void 0), B(!1), V(null), ct(e), e) {
526
+ p(() => {
527
+ if (!A) {
528
+ z(null);
529
+ return;
530
+ }
531
+ if (A.dataSinkId) {
532
+ z(R.find((e) => e.id === A.dataSinkId)?.key ?? null);
533
+ return;
534
+ }
535
+ let e = u({
536
+ parserId: A.parserId,
537
+ config: A.config
538
+ }), t = B?.id === A.parserId ? B : null, n = e.source.kind === "DATASINK" && !e.source.ref && t ? R.find((e) => e.key === t.inputSinkKey) : void 0;
539
+ z(n?.key ?? null), n && j((e) => e && e.parserId === t?.id && !e.dataSinkId ? {
540
+ ...e,
541
+ dataSinkId: n.id
542
+ } : e);
543
+ }, [
544
+ A,
545
+ R,
546
+ B
547
+ ]);
548
+ let Gt = f((e) => {
549
+ if (V(void 0), H(!1), U(null), z(e), e) {
516
550
  let t = R.find((t) => t.key === e);
517
551
  t && (Q("dataSinkId", t.id), j((t) => t && {
518
552
  ...t,
@@ -533,13 +567,13 @@ var D = he(function({ isOpen: he, onClose: ve }) {
533
567
  R,
534
568
  Q,
535
569
  L
536
- ]), Bt = u(async (e) => {
537
- if (Q("parserId", e || void 0), z(void 0), B(!1), V(null), e && I) {
538
- dt(!0);
570
+ ]), Kt = f(async (e) => {
571
+ if (Q("parserId", e || void 0), V(void 0), H(!1), U(null), e && I) {
572
+ ht(!0);
539
573
  try {
540
- let t = await lt(e);
574
+ let t = await ct(e);
541
575
  if (t?.success) {
542
- z(t.output), B(!0);
576
+ V(t.output), H(!0);
543
577
  let e = We(t.output);
544
578
  (e.labelField || e.valueField) && (j((t) => {
545
579
  if (!t) return t;
@@ -549,20 +583,20 @@ var D = he(function({ isOpen: he, onClose: ve }) {
549
583
  config: r
550
584
  };
551
585
  }), L());
552
- } else B(!0), V(t?.error || D("bigconsole.widget.properties.parser.previewFailed", "The parser could not produce a preview."));
586
+ } else H(!0), U(t?.error || D("bigconsole.widget.properties.parser.previewFailed", "The parser could not produce a preview."));
553
587
  } catch (e) {
554
- B(!0), V(e instanceof Error ? e.message : D("bigconsole.widget.properties.parser.previewFailed", "The parser could not produce a preview.")), console.warn("Failed to auto-detect parser fields:", e);
588
+ H(!0), U(e instanceof Error ? e.message : D("bigconsole.widget.properties.parser.previewFailed", "The parser could not produce a preview.")), console.warn("Failed to auto-detect parser fields:", e);
555
589
  } finally {
556
- dt(!1);
590
+ ht(!1);
557
591
  }
558
592
  }
559
593
  }, [
560
594
  Q,
561
- lt,
595
+ ct,
562
596
  I,
563
597
  L,
564
598
  D
565
- ]), Vt = u(async () => {
599
+ ]), qt = f(async () => {
566
600
  if (!I || !A) return;
567
601
  let t = nt.current;
568
602
  k("saving");
@@ -570,7 +604,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
570
604
  let n = {
571
605
  ...I.metadata || {},
572
606
  description: A.description || ""
573
- }, r = re(e.getState().widgets.get(I.id)?.config ?? {}, tt.current, A.config), i = ie(te({
607
+ }, r = ne(e.getState().widgets.get(I.id)?.config ?? {}, tt.current, A.config), i = re(u({
574
608
  dataSinkId: A.dataSinkId,
575
609
  parserId: A.parserId,
576
610
  config: {
@@ -654,26 +688,26 @@ var D = he(function({ isOpen: he, onClose: ve }) {
654
688
  at,
655
689
  ot,
656
690
  D
657
- ]), Ht = u(() => {
691
+ ]), Jt = f(() => {
658
692
  I && (j(Ke(I)), tt.current = I.config || {}, N(!1), k("idle"));
659
- }, [I]), Ut = u((e) => {
693
+ }, [I]), Yt = f((e) => {
660
694
  $(e);
661
- }, [$]), Wt = u((e) => {
695
+ }, [$]), Xt = f((e) => {
662
696
  j((t) => t && {
663
697
  ...t,
664
698
  drilldownConfig: e
665
699
  }), L();
666
- }, [L]), Gt = I ? i(I.type) : null, Kt = f(() => ze.map((e) => ({
700
+ }, [L]), Zt = I ? i(I.type) : null, Qt = m(() => ze.map((e) => ({
667
701
  value: e.value,
668
702
  label: D(e.labelKey, e.label),
669
703
  description: D(e.descriptionKey, e.description)
670
- })), [D]), qt = f(() => Be.map((e) => ({
704
+ })), [D]), $t = m(() => Be.map((e) => ({
671
705
  value: e.value,
672
706
  label: D(e.labelKey, e.label)
673
707
  })), [D]);
674
708
  return /* @__PURE__ */ w(ke, {
675
- open: he,
676
- onOpenChange: (e) => !e && ve(),
709
+ open: d,
710
+ onOpenChange: (e) => !e && _e(),
677
711
  modal: !1,
678
712
  children: /* @__PURE__ */ T(Ae, {
679
713
  style: {
@@ -711,7 +745,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
711
745
  boxShadow: "var(--shadow-elevation-2)",
712
746
  flexShrink: 0
713
747
  },
714
- children: /* @__PURE__ */ w(ye, { style: {
748
+ children: /* @__PURE__ */ w(ve, { style: {
715
749
  height: "var(--size-icon-md)",
716
750
  width: "var(--size-icon-md)",
717
751
  color: "var(--color-action-primary-text)"
@@ -741,25 +775,25 @@ var D = he(function({ isOpen: he, onClose: ve }) {
741
775
  height: "var(--size-icon-sm)",
742
776
  width: "var(--size-icon-sm)"
743
777
  } }),
744
- O === "saved" && /* @__PURE__ */ w(h, { style: {
778
+ O === "saved" && /* @__PURE__ */ w(g, { style: {
745
779
  height: "var(--size-icon-sm)",
746
780
  width: "var(--size-icon-sm)",
747
781
  color: "var(--color-status-success-bg)"
748
782
  } }),
749
- O === "error" && /* @__PURE__ */ w(Ce, { style: {
783
+ O === "error" && /* @__PURE__ */ w(Se, { style: {
750
784
  height: "var(--size-icon-sm)",
751
785
  width: "var(--size-icon-sm)",
752
786
  color: "var(--color-status-error-bg)"
753
787
  } })
754
788
  ]
755
- }), Gt && /* @__PURE__ */ w(je, {
789
+ }), Zt && /* @__PURE__ */ w(je, {
756
790
  style: {
757
791
  fontSize: "var(--font-size-body-sm)",
758
792
  color: "var(--color-text-secondary)",
759
793
  margin: "var(--space-controlGap) 0 0 0",
760
794
  fontWeight: "var(--font-weight-medium)"
761
795
  },
762
- children: Gt.name
796
+ children: Zt.name
763
797
  })]
764
798
  })]
765
799
  })
@@ -823,7 +857,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
823
857
  value: "general",
824
858
  className: "mt-0",
825
859
  children: A && /* @__PURE__ */ T(r, { children: [
826
- /* @__PURE__ */ w(de, {
860
+ /* @__PURE__ */ w(ue, {
827
861
  title: A.title,
828
862
  description: A.description,
829
863
  refreshInterval: A.refreshInterval,
@@ -835,45 +869,45 @@ var D = he(function({ isOpen: he, onClose: ve }) {
835
869
  title: D("bigconsole.widget.properties.actions.heading", "Buttons"),
836
870
  description: D("bigconsole.widget.properties.actions.subheading", "Configure buttons on this widget"),
837
871
  headingLevel: 3,
838
- meta: H.length > 0 ? /* @__PURE__ */ w("span", {
872
+ meta: W.length > 0 ? /* @__PURE__ */ w("span", {
839
873
  className: "rounded-pill bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary",
840
- children: H.length
874
+ children: W.length
841
875
  }) : void 0,
842
- actions: /* @__PURE__ */ T(g, {
876
+ actions: /* @__PURE__ */ T(_, {
843
877
  size: "sm",
844
- onClick: Nt,
845
- children: [/* @__PURE__ */ w(xe, { className: "size-4" }), D("bigconsole.widget.properties.actions.add", "Add button")]
878
+ onClick: zt,
879
+ children: [/* @__PURE__ */ w(be, { className: "size-4" }), D("bigconsole.widget.properties.actions.add", "Add button")]
846
880
  }),
847
881
  "data-testid": "widget-inspector-actions",
848
- children: ht ? /* @__PURE__ */ w("div", {
882
+ children: yt ? /* @__PURE__ */ w("div", {
849
883
  className: "flex justify-center py-8",
850
884
  children: /* @__PURE__ */ w(Pe, { className: "size-6" })
851
- }) : H.length === 0 ? /* @__PURE__ */ w("p", {
885
+ }) : W.length === 0 ? /* @__PURE__ */ w("p", {
852
886
  className: "text-sm text-text-secondary",
853
887
  children: D("bigconsole.widget.properties.actions.empty", "No buttons yet — add one to let viewers take an action.")
854
888
  }) : /* @__PURE__ */ w("div", {
855
889
  className: "space-y-2",
856
- children: [...H].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */ w(we, {
890
+ children: [...W].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */ w(Ce, {
857
891
  className: e.disabled ? "opacity-60" : "",
858
- children: /* @__PURE__ */ T(Te, {
892
+ children: /* @__PURE__ */ T(we, {
859
893
  className: "p-3 flex items-center gap-2",
860
894
  children: [
861
895
  /* @__PURE__ */ T("div", {
862
896
  className: "flex flex-col gap-0.5",
863
- children: [/* @__PURE__ */ w(g, {
897
+ children: [/* @__PURE__ */ w(_, {
864
898
  variant: "ghost",
865
899
  size: "icon-sm",
866
- onClick: () => Lt(t),
900
+ onClick: () => Ut(t),
867
901
  disabled: t === 0,
868
902
  className: "h-5 w-5",
869
- children: /* @__PURE__ */ w(_e, { className: "size-3" })
870
- }), /* @__PURE__ */ w(g, {
903
+ children: /* @__PURE__ */ w(ge, { className: "size-3" })
904
+ }), /* @__PURE__ */ w(_, {
871
905
  variant: "ghost",
872
906
  size: "icon-sm",
873
- onClick: () => Rt(t),
874
- disabled: t === H.length - 1,
907
+ onClick: () => Wt(t),
908
+ disabled: t === W.length - 1,
875
909
  className: "h-5 w-5",
876
- children: /* @__PURE__ */ w(ge, { className: "size-3" })
910
+ children: /* @__PURE__ */ w(he, { className: "size-3" })
877
911
  })]
878
912
  }),
879
913
  /* @__PURE__ */ T("div", {
@@ -889,26 +923,26 @@ var D = he(function({ isOpen: he, onClose: ve }) {
889
923
  })]
890
924
  }), /* @__PURE__ */ w("p", {
891
925
  className: "text-xs text-text-secondary truncate",
892
- children: Mt.has(e.name) ? D("bigconsole.widget.properties.actions.webhookSummary", "→ {{method}} {{url}}", {
893
- method: Mt.get(e.name)?.method ?? "",
894
- url: Mt.get(e.name)?.webhookUrl ?? ""
926
+ children: Rt.has(e.name) ? D("bigconsole.widget.properties.actions.webhookSummary", "→ {{method}} {{url}}", {
927
+ method: Rt.get(e.name)?.method ?? "",
928
+ url: Rt.get(e.name)?.webhookUrl ?? ""
895
929
  }) : D("bigconsole.widget.properties.actions.emitsEvent", "Emits an event")
896
930
  })]
897
931
  }),
898
932
  /* @__PURE__ */ T("div", {
899
933
  className: "flex shrink-0 gap-1",
900
- children: [/* @__PURE__ */ w(g, {
934
+ children: [/* @__PURE__ */ w(_, {
901
935
  variant: "ghost",
902
936
  size: "icon-sm",
903
937
  "aria-label": `Edit ${e.label}`,
904
- onClick: () => Pt(e),
905
- children: /* @__PURE__ */ w(be, { className: "size-4" })
906
- }), /* @__PURE__ */ w(g, {
938
+ onClick: () => Bt(e),
939
+ children: /* @__PURE__ */ w(ye, { className: "size-4" })
940
+ }), /* @__PURE__ */ w(_, {
907
941
  variant: "ghost",
908
942
  size: "icon-sm",
909
943
  "aria-label": `Delete ${e.label}`,
910
- onClick: () => It(e.id),
911
- children: /* @__PURE__ */ w(Se, { className: "size-4" })
944
+ onClick: () => Ht(e.id),
945
+ children: /* @__PURE__ */ w(xe, { className: "size-4" })
912
946
  })]
913
947
  })
914
948
  ]
@@ -916,9 +950,9 @@ var D = he(function({ isOpen: he, onClose: ve }) {
916
950
  }, e.id))
917
951
  })
918
952
  }),
919
- Ze && Qe && /* @__PURE__ */ w(pe, {
953
+ Ze && Qe && /* @__PURE__ */ w(fe, {
920
954
  position: Qe,
921
- columns: me.cols,
955
+ columns: pe.cols,
922
956
  onChange: $e
923
957
  })
924
958
  ] })
@@ -927,31 +961,33 @@ var D = he(function({ isOpen: he, onClose: ve }) {
927
961
  value: "data",
928
962
  className: "mt-0",
929
963
  children: A && /* @__PURE__ */ T(r, { children: [(() => {
930
- let e = te({
964
+ let e = u({
931
965
  dataSinkId: A.dataSinkId,
932
966
  parserId: A.parserId,
933
967
  config: {
934
968
  ...A.config,
935
969
  binding: void 0
936
970
  }
937
- }), t = ne({
971
+ }), t = te({
938
972
  binding: e,
939
- loading: ut,
940
- error: mt,
941
- preview: ft,
942
- previewComplete: pt
973
+ loading: mt || dt,
974
+ error: vt,
975
+ preview: gt,
976
+ previewComplete: _t
943
977
  });
944
- return /* @__PURE__ */ w(fe, {
978
+ return /* @__PURE__ */ w(de, {
945
979
  consoleId: I?.dashboardId || "",
946
980
  binding: e,
981
+ resolvedParser: B ?? void 0,
947
982
  dataSinkKey: st,
948
983
  dataPath: typeof A.config.dataPath == "string" ? A.config.dataPath : void 0,
949
984
  status: t.status,
985
+ resolving: dt,
950
986
  missingFields: t.missingFields,
951
- preview: ft,
952
- error: mt,
953
- onDataSinkChange: zt,
954
- onParserChange: Bt,
987
+ preview: gt,
988
+ error: vt,
989
+ onDataSinkChange: Gt,
990
+ onParserChange: Kt,
955
991
  onDataPathChange: (e) => $({
956
992
  ...A.config,
957
993
  dataPath: e
@@ -968,19 +1004,19 @@ var D = he(function({ isOpen: he, onClose: ve }) {
968
1004
  children: [
969
1005
  /* @__PURE__ */ T("div", {
970
1006
  className: "space-y-2",
971
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.data.sourceTypeLabel", "Data Source Type") }), /* @__PURE__ */ T(Ee, {
1007
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.data.sourceTypeLabel", "Data Source Type") }), /* @__PURE__ */ T(Te, {
972
1008
  value: A.config?.dataSourceType || "",
973
1009
  onValueChange: (e) => $({
974
1010
  ...A.config,
975
1011
  dataSourceType: e || void 0
976
1012
  }),
977
- children: [/* @__PURE__ */ w(Oe, {
1013
+ children: [/* @__PURE__ */ w(De, {
978
1014
  style: {
979
1015
  height: "var(--size-controlHeight-md)",
980
1016
  fontSize: "var(--font-size-body-sm)"
981
1017
  },
982
- children: /* @__PURE__ */ w(b, { placeholder: D("bigconsole.widget.properties.data.selectTypePlaceholder", "Select type...") })
983
- }), /* @__PURE__ */ w(De, {
1018
+ children: /* @__PURE__ */ w(Oe, { placeholder: D("bigconsole.widget.properties.data.selectTypePlaceholder", "Select type...") })
1019
+ }), /* @__PURE__ */ w(Ee, {
984
1020
  position: "popper",
985
1021
  side: "bottom",
986
1022
  sideOffset: 4,
@@ -993,7 +1029,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
993
1029
  boxShadow: "var(--shadow-elevation-3)",
994
1030
  borderRadius: "var(--radius-button)"
995
1031
  },
996
- children: qt.map((e) => /* @__PURE__ */ w(y, {
1032
+ children: $t.map((e) => /* @__PURE__ */ w(b, {
997
1033
  value: e.value,
998
1034
  children: e.label
999
1035
  }, e.value))
@@ -1005,7 +1041,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1005
1041
  children: [
1006
1042
  /* @__PURE__ */ T("div", {
1007
1043
  className: "space-y-2",
1008
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.rest.endpointUrlLabel", "Endpoint URL *") }), /* @__PURE__ */ w(_, {
1044
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.rest.endpointUrlLabel", "Endpoint URL *") }), /* @__PURE__ */ w(v, {
1009
1045
  value: A.config?.endpointUrl || "",
1010
1046
  onChange: (e) => $({
1011
1047
  ...A.config,
@@ -1016,33 +1052,33 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1016
1052
  }),
1017
1053
  /* @__PURE__ */ T("div", {
1018
1054
  className: "space-y-2",
1019
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.rest.httpMethodLabel", "HTTP Method") }), /* @__PURE__ */ T(Ee, {
1055
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.rest.httpMethodLabel", "HTTP Method") }), /* @__PURE__ */ T(Te, {
1020
1056
  value: A.config?.httpMethod || "GET",
1021
1057
  onValueChange: (e) => $({
1022
1058
  ...A.config,
1023
1059
  httpMethod: e
1024
1060
  }),
1025
- children: [/* @__PURE__ */ w(Oe, {
1061
+ children: [/* @__PURE__ */ w(De, {
1026
1062
  style: { height: "var(--size-controlHeight-md)" },
1027
- children: /* @__PURE__ */ w(b, {})
1028
- }), /* @__PURE__ */ T(De, {
1063
+ children: /* @__PURE__ */ w(Oe, {})
1064
+ }), /* @__PURE__ */ T(Ee, {
1029
1065
  position: "popper",
1030
1066
  side: "bottom",
1031
1067
  sideOffset: 4,
1032
1068
  children: [
1033
- /* @__PURE__ */ w(y, {
1069
+ /* @__PURE__ */ w(b, {
1034
1070
  value: "GET",
1035
1071
  children: "GET"
1036
1072
  }),
1037
- /* @__PURE__ */ w(y, {
1073
+ /* @__PURE__ */ w(b, {
1038
1074
  value: "POST",
1039
1075
  children: "POST"
1040
1076
  }),
1041
- /* @__PURE__ */ w(y, {
1077
+ /* @__PURE__ */ w(b, {
1042
1078
  value: "PUT",
1043
1079
  children: "PUT"
1044
1080
  }),
1045
- /* @__PURE__ */ w(y, {
1081
+ /* @__PURE__ */ w(b, {
1046
1082
  value: "DELETE",
1047
1083
  children: "DELETE"
1048
1084
  })
@@ -1052,7 +1088,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1052
1088
  }),
1053
1089
  /* @__PURE__ */ T("div", {
1054
1090
  className: "space-y-2",
1055
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.rest.headersLabel", "Headers (JSON)") }), /* @__PURE__ */ w(C, {
1091
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.rest.headersLabel", "Headers (JSON)") }), /* @__PURE__ */ w(C, {
1056
1092
  value: A.config?.headers || "",
1057
1093
  onChange: (e) => $({
1058
1094
  ...A.config,
@@ -1065,33 +1101,33 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1065
1101
  }),
1066
1102
  /* @__PURE__ */ T("div", {
1067
1103
  className: "space-y-2",
1068
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.rest.authenticationLabel", "Authentication") }), /* @__PURE__ */ T(Ee, {
1104
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.rest.authenticationLabel", "Authentication") }), /* @__PURE__ */ T(Te, {
1069
1105
  value: A.config?.authType || "none",
1070
1106
  onValueChange: (e) => $({
1071
1107
  ...A.config,
1072
1108
  authType: e
1073
1109
  }),
1074
- children: [/* @__PURE__ */ w(Oe, {
1110
+ children: [/* @__PURE__ */ w(De, {
1075
1111
  style: { height: "var(--size-controlHeight-md)" },
1076
- children: /* @__PURE__ */ w(b, {})
1077
- }), /* @__PURE__ */ T(De, {
1112
+ children: /* @__PURE__ */ w(Oe, {})
1113
+ }), /* @__PURE__ */ T(Ee, {
1078
1114
  position: "popper",
1079
1115
  side: "bottom",
1080
1116
  sideOffset: 4,
1081
1117
  children: [
1082
- /* @__PURE__ */ w(y, {
1118
+ /* @__PURE__ */ w(b, {
1083
1119
  value: "none",
1084
1120
  children: D("bigconsole.widget.properties.rest.authNone", "None")
1085
1121
  }),
1086
- /* @__PURE__ */ w(y, {
1122
+ /* @__PURE__ */ w(b, {
1087
1123
  value: "api_key",
1088
1124
  children: D("bigconsole.widget.properties.rest.authApiKey", "API Key")
1089
1125
  }),
1090
- /* @__PURE__ */ w(y, {
1126
+ /* @__PURE__ */ w(b, {
1091
1127
  value: "bearer",
1092
1128
  children: D("bigconsole.widget.properties.rest.authBearer", "Bearer Token")
1093
1129
  }),
1094
- /* @__PURE__ */ w(y, {
1130
+ /* @__PURE__ */ w(b, {
1095
1131
  value: "basic",
1096
1132
  children: D("bigconsole.widget.properties.rest.authBasic", "Basic Auth")
1097
1133
  })
@@ -1101,7 +1137,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1101
1137
  }),
1102
1138
  !!(A.config?.authType && A.config.authType !== "none") && /* @__PURE__ */ T("div", {
1103
1139
  className: "space-y-2",
1104
- children: [/* @__PURE__ */ w(v, { children: String(A.config.authType) === "basic" ? D("bigconsole.widget.properties.rest.credentialsLabel", "Credentials (user:pass)") : D("bigconsole.widget.properties.rest.tokenKeyLabel", "Token/Key") }), /* @__PURE__ */ w(_, {
1140
+ children: [/* @__PURE__ */ w(y, { children: String(A.config.authType) === "basic" ? D("bigconsole.widget.properties.rest.credentialsLabel", "Credentials (user:pass)") : D("bigconsole.widget.properties.rest.tokenKeyLabel", "Token/Key") }), /* @__PURE__ */ w(v, {
1105
1141
  type: "password",
1106
1142
  value: A.config?.authValue || "",
1107
1143
  onChange: (e) => $({
@@ -1113,7 +1149,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1113
1149
  }),
1114
1150
  (A.config?.httpMethod === "POST" || A.config?.httpMethod === "PUT") && /* @__PURE__ */ T("div", {
1115
1151
  className: "space-y-2",
1116
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.rest.requestBodyLabel", "Request Body (JSON)") }), /* @__PURE__ */ w(C, {
1152
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.rest.requestBodyLabel", "Request Body (JSON)") }), /* @__PURE__ */ w(C, {
1117
1153
  value: A.config?.requestBody || "",
1118
1154
  onChange: (e) => $({
1119
1155
  ...A.config,
@@ -1127,8 +1163,8 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1127
1163
  /* @__PURE__ */ T("div", {
1128
1164
  className: "space-y-2",
1129
1165
  children: [
1130
- /* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.dataPath.label", "Data Path (optional)") }),
1131
- /* @__PURE__ */ w(_, {
1166
+ /* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.dataPath.label", "Data Path (optional)") }),
1167
+ /* @__PURE__ */ w(v, {
1132
1168
  value: A.config?.dataPath || "",
1133
1169
  onChange: (e) => $({
1134
1170
  ...A.config,
@@ -1149,7 +1185,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1149
1185
  children: [
1150
1186
  /* @__PURE__ */ T("div", {
1151
1187
  className: "space-y-2",
1152
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.graphql.endpointLabel", "GraphQL Endpoint *") }), /* @__PURE__ */ w(_, {
1188
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.graphql.endpointLabel", "GraphQL Endpoint *") }), /* @__PURE__ */ w(v, {
1153
1189
  value: A.config?.graphqlEndpoint || "",
1154
1190
  onChange: (e) => $({
1155
1191
  ...A.config,
@@ -1160,7 +1196,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1160
1196
  }),
1161
1197
  /* @__PURE__ */ T("div", {
1162
1198
  className: "space-y-2",
1163
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.graphql.queryLabel", "Query *") }), /* @__PURE__ */ w(C, {
1199
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.graphql.queryLabel", "Query *") }), /* @__PURE__ */ w(C, {
1164
1200
  value: A.config?.graphqlQuery || "",
1165
1201
  onChange: (e) => $({
1166
1202
  ...A.config,
@@ -1173,7 +1209,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1173
1209
  }),
1174
1210
  /* @__PURE__ */ T("div", {
1175
1211
  className: "space-y-2",
1176
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.graphql.variablesLabel", "Variables (JSON, optional)") }), /* @__PURE__ */ w(C, {
1212
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.graphql.variablesLabel", "Variables (JSON, optional)") }), /* @__PURE__ */ w(C, {
1177
1213
  value: A.config?.graphqlVariables || "",
1178
1214
  onChange: (e) => $({
1179
1215
  ...A.config,
@@ -1186,7 +1222,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1186
1222
  }),
1187
1223
  /* @__PURE__ */ T("div", {
1188
1224
  className: "space-y-2",
1189
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.graphql.headersLabel", "Headers (JSON, optional)") }), /* @__PURE__ */ w(C, {
1225
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.graphql.headersLabel", "Headers (JSON, optional)") }), /* @__PURE__ */ w(C, {
1190
1226
  value: A.config?.headers || "",
1191
1227
  onChange: (e) => $({
1192
1228
  ...A.config,
@@ -1200,8 +1236,8 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1200
1236
  /* @__PURE__ */ T("div", {
1201
1237
  className: "space-y-2",
1202
1238
  children: [
1203
- /* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.dataPath.label", "Data Path (optional)") }),
1204
- /* @__PURE__ */ w(_, {
1239
+ /* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.dataPath.label", "Data Path (optional)") }),
1240
+ /* @__PURE__ */ w(v, {
1205
1241
  value: A.config?.dataPath || "",
1206
1242
  onChange: (e) => $({
1207
1243
  ...A.config,
@@ -1219,7 +1255,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1219
1255
  }),
1220
1256
  A.config?.dataSourceType === "MOCK" && /* @__PURE__ */ T("div", {
1221
1257
  className: "space-y-2",
1222
- children: [/* @__PURE__ */ w(v, { children: D("bigconsole.widget.properties.mock.sampleDataLabel", "Sample Data (JSON)") }), /* @__PURE__ */ w(C, {
1258
+ children: [/* @__PURE__ */ w(y, { children: D("bigconsole.widget.properties.mock.sampleDataLabel", "Sample Data (JSON)") }), /* @__PURE__ */ w(C, {
1223
1259
  value: A.config?.mockData || "",
1224
1260
  onChange: (e) => $({
1225
1261
  ...A.config,
@@ -1238,9 +1274,9 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1238
1274
  value: "advanced",
1239
1275
  className: "mt-0",
1240
1276
  children: /* @__PURE__ */ T(r, { children: [
1241
- A && /* @__PURE__ */ w(le, {
1277
+ A && /* @__PURE__ */ w(ce, {
1242
1278
  renderer: A.renderer,
1243
- rendererOptions: Kt,
1279
+ rendererOptions: Qt,
1244
1280
  onRendererChange: (e) => {
1245
1281
  Q("renderer", e), e === "BIGCONSOLE" && Q("template", void 0);
1246
1282
  },
@@ -1258,9 +1294,9 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1258
1294
  description: "Where a click on this widget's data takes the viewer.",
1259
1295
  headingLevel: 3,
1260
1296
  "data-testid": "widget-inspector-drilldown",
1261
- children: /* @__PURE__ */ w(ce, {
1297
+ children: /* @__PURE__ */ w(se, {
1262
1298
  widget: I,
1263
- onChange: Wt
1299
+ onChange: Xt
1264
1300
  })
1265
1301
  }),
1266
1302
  /* @__PURE__ */ w(n, {
@@ -1268,7 +1304,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1268
1304
  description: "HTTP endpoints called when this widget emits an event.",
1269
1305
  headingLevel: 3,
1270
1306
  "data-testid": "widget-inspector-webhooks",
1271
- children: /* @__PURE__ */ w(oe, {
1307
+ children: /* @__PURE__ */ w(ae, {
1272
1308
  dashboardId: I.dashboardId,
1273
1309
  widgetId: I.id
1274
1310
  })
@@ -1279,7 +1315,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1279
1315
  description: "Recent deliveries for this widget, newest first. Supporting detail — nothing here changes the widget.",
1280
1316
  headingLevel: 3,
1281
1317
  "data-testid": "widget-inspector-events",
1282
- children: /* @__PURE__ */ w(se, {
1318
+ children: /* @__PURE__ */ w(oe, {
1283
1319
  dashboardId: I.dashboardId,
1284
1320
  widgetId: I.id,
1285
1321
  maxHeight: "min(50vh, 360px)"
@@ -1290,10 +1326,10 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1290
1326
  /* @__PURE__ */ w(x, {
1291
1327
  value: "appearance",
1292
1328
  className: "mt-0",
1293
- children: A && /* @__PURE__ */ w(ue, {
1329
+ children: A && /* @__PURE__ */ w(le, {
1294
1330
  widgetType: I.type,
1295
1331
  config: A.config || {},
1296
- onChange: Ut
1332
+ onChange: Yt
1297
1333
  })
1298
1334
  })
1299
1335
  ]
@@ -1304,7 +1340,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1304
1340
  tone: "info",
1305
1341
  title: D("bigconsole.widget.properties.emptyState", "Select a widget to edit"),
1306
1342
  headingLevel: 3,
1307
- icon: /* @__PURE__ */ w(ye, { className: "h-icon-md w-icon-md" }),
1343
+ icon: /* @__PURE__ */ w(ve, { className: "h-icon-md w-icon-md" }),
1308
1344
  className: "w-full max-w-sm",
1309
1345
  "data-testid": "widget-inspector-empty",
1310
1346
  children: /* @__PURE__ */ w("p", {
@@ -1334,7 +1370,7 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1334
1370
  padding: "compact",
1335
1371
  title: D("bigconsole.widget.properties.footer.allSaved", "All changes saved"),
1336
1372
  headingLevel: 3,
1337
- icon: /* @__PURE__ */ w(h, { className: "h-icon-sm w-icon-sm" }),
1373
+ icon: /* @__PURE__ */ w(g, { className: "h-icon-sm w-icon-sm" }),
1338
1374
  className: "mb-control-gap",
1339
1375
  "data-testid": "widget-inspector-save-saved"
1340
1376
  }),
@@ -1343,14 +1379,14 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1343
1379
  padding: "compact",
1344
1380
  title: D("bigconsole.widget.properties.footer.saveFailed", "Failed to save changes"),
1345
1381
  headingLevel: 3,
1346
- icon: /* @__PURE__ */ w(Ce, { className: "h-icon-sm w-icon-sm" }),
1382
+ icon: /* @__PURE__ */ w(Se, { className: "h-icon-sm w-icon-sm" }),
1347
1383
  className: "mb-control-gap",
1348
1384
  "data-testid": "widget-inspector-save-error"
1349
1385
  }),
1350
1386
  /* @__PURE__ */ T("div", {
1351
1387
  className: "flex flex-wrap gap-control-gap",
1352
- children: [/* @__PURE__ */ w(g, {
1353
- onClick: Vt,
1388
+ children: [/* @__PURE__ */ w(_, {
1389
+ onClick: qt,
1354
1390
  disabled: O === "saving" || !M,
1355
1391
  style: {
1356
1392
  flex: 1,
@@ -1374,20 +1410,20 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1374
1410
  alignItems: "center",
1375
1411
  gap: "var(--space-iconGap)"
1376
1412
  },
1377
- children: [/* @__PURE__ */ w(h, { style: {
1413
+ children: [/* @__PURE__ */ w(g, { style: {
1378
1414
  width: "var(--size-icon-sm)",
1379
1415
  height: "var(--size-icon-sm)"
1380
1416
  } }), D("bigconsole.widget.properties.footer.saveChanges", "Save Changes")]
1381
1417
  })
1382
- }), /* @__PURE__ */ T(g, {
1418
+ }), /* @__PURE__ */ T(_, {
1383
1419
  variant: "outline",
1384
- onClick: Ht,
1420
+ onClick: Jt,
1385
1421
  disabled: O === "saving" || !M,
1386
1422
  style: {
1387
1423
  height: "var(--size-controlHeight-md)",
1388
1424
  opacity: M ? 1 : .5
1389
1425
  },
1390
- children: [/* @__PURE__ */ w(Ce, { style: {
1426
+ children: [/* @__PURE__ */ w(Se, { style: {
1391
1427
  width: "var(--size-icon-sm)",
1392
1428
  height: "var(--size-icon-sm)"
1393
1429
  } }), D("bigconsole.widget.properties.footer.discard", "Discard")]
@@ -1395,16 +1431,16 @@ var D = he(function({ isOpen: he, onClose: ve }) {
1395
1431
  })
1396
1432
  ]
1397
1433
  }),
1398
- /* @__PURE__ */ w(ae, {
1399
- isOpen: Tt,
1400
- action: J,
1401
- initialWebhook: jt,
1402
- isLoading: Et,
1403
- saveError: kt,
1434
+ /* @__PURE__ */ w(ie, {
1435
+ isOpen: kt,
1436
+ action: jt,
1437
+ initialWebhook: Lt,
1438
+ isLoading: Mt,
1439
+ saveError: Ft,
1404
1440
  onClose: () => {
1405
- q(!1), Y(void 0), X(void 0), Z(null);
1441
+ At(!1), Y(void 0), X(void 0), Z(null);
1406
1442
  },
1407
- onSave: Ft
1443
+ onSave: Vt
1408
1444
  })
1409
1445
  ]
1410
1446
  })