@burdenoff/microfe-bigconsole 2026.1012.3 → 2026.1012.5

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 (158) hide show
  1. package/dist/bigconsole/BigConsoleRoutes.js +149 -140
  2. package/dist/bigconsole/assistant/assistantApi.js +5 -5
  3. package/dist/bigconsole/assistant/assistantProduct.js +4 -1
  4. package/dist/bigconsole/assistant/displayCopy.d.ts +32 -0
  5. package/dist/bigconsole/assistant/pageContext.d.ts +14 -0
  6. package/dist/bigconsole/assistant/pageContext.js +6 -1
  7. package/dist/bigconsole/assistant/pageControls.d.ts +81 -0
  8. package/dist/bigconsole/assistant/pageControls.js +169 -0
  9. package/dist/bigconsole/assistant/previewControl.d.ts +16 -0
  10. package/dist/bigconsole/assistant/previewControl.js +10 -0
  11. package/dist/bigconsole/assistant/recordAdapters.js +27 -26
  12. package/dist/bigconsole/assistant/usePreviewControl.d.ts +2 -0
  13. package/dist/bigconsole/assistant/usePreviewControl.js +20 -0
  14. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +33 -18
  15. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
  16. package/dist/bigconsole/components/common/SortBySelect.d.ts +11 -0
  17. package/dist/bigconsole/components/common/SortBySelect.js +29 -0
  18. package/dist/bigconsole/components/common/index.d.ts +1 -0
  19. package/dist/bigconsole/components/common/index.js +1 -0
  20. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
  21. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
  22. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
  23. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
  24. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  25. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
  26. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  27. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
  28. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +153 -153
  29. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
  30. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  31. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +134 -134
  32. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
  33. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
  34. package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
  35. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  36. package/dist/bigconsole/components/dashboard/WidgetPalette.js +154 -150
  37. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
  38. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
  39. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  40. package/dist/bigconsole/components/datasink/DataSinkCard.js +51 -50
  41. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  42. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  43. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
  44. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
  45. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  46. package/dist/bigconsole/components/embed/renderer-manifest.js +12 -0
  47. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  48. package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
  49. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  50. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
  51. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +77 -76
  52. package/dist/bigconsole/components/preview/AiPreviewPanel.js +96 -95
  53. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
  54. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
  55. package/dist/bigconsole/components/widgets/PropertiesPanel.js +507 -499
  56. package/dist/bigconsole/components/widgets/WidgetRegistry.js +122 -1
  57. package/dist/bigconsole/components/widgets/WidgetWrapper.js +227 -224
  58. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.d.ts +10 -0
  59. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +113 -0
  60. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.d.ts +10 -0
  61. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +187 -0
  62. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +7 -0
  63. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.js +12 -0
  64. package/dist/bigconsole/components/widgets/advanced/data.d.ts +36 -0
  65. package/dist/bigconsole/components/widgets/advanced/data.js +113 -0
  66. package/dist/bigconsole/components/widgets/advanced/mapData.d.ts +10 -0
  67. package/dist/bigconsole/components/widgets/advanced/mapData.js +22 -0
  68. package/dist/bigconsole/components/widgets/advanced/waterfallData.d.ts +15 -0
  69. package/dist/bigconsole/components/widgets/advanced/waterfallData.js +28 -0
  70. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
  71. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  72. package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.js +34 -37
  73. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  74. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  75. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  76. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  77. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  78. package/dist/bigconsole/components/widgets/index.js +1 -1
  79. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  80. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  81. package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +2 -0
  82. package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +64 -63
  83. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  84. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  85. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  86. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  87. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  88. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  89. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  90. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
  91. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
  92. package/dist/bigconsole/constants/backendErrors.js +94 -0
  93. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
  94. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
  95. package/dist/bigconsole/graphql/widgetCapabilities.d.ts +7 -0
  96. package/dist/bigconsole/graphql/widgetCapabilities.js +37 -0
  97. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +14 -0
  98. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +32 -0
  99. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +23 -0
  100. package/dist/bigconsole/hooks/useDataSinkAlerts.js +138 -113
  101. package/dist/bigconsole/hooks/useDrilldown.js +3 -3
  102. package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
  103. package/dist/bigconsole/hooks/useWidgetCatalog.js +46 -41
  104. package/dist/bigconsole/hooks/useWidgetOperations.js +113 -88
  105. package/dist/bigconsole/pages/AdminPage.js +130 -130
  106. package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
  107. package/dist/bigconsole/pages/DashboardViewPage.js +244 -221
  108. package/dist/bigconsole/pages/DashboardsPage.js +269 -221
  109. package/dist/bigconsole/pages/DataParsersPage.js +180 -157
  110. package/dist/bigconsole/pages/DataSinkAlertsPage.js +62 -55
  111. package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -234
  112. package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
  113. package/dist/bigconsole/pages/DataSinksPage.js +335 -299
  114. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  115. package/dist/bigconsole/pages/InsightsPage.js +279 -265
  116. package/dist/bigconsole/pages/OverviewPage.js +47 -47
  117. package/dist/bigconsole/pages/ParserBuilderPage.js +229 -213
  118. package/dist/bigconsole/pages/ParserViewPage.js +97 -97
  119. package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
  120. package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
  121. package/dist/bigconsole/pages/PipelinesPage.js +107 -88
  122. package/dist/bigconsole/pages/SettingsPage.js +179 -173
  123. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  124. package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
  125. package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
  126. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
  127. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
  128. package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +8 -5
  129. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +69 -69
  130. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  131. package/dist/bigconsole/store/widgetStore.d.ts +12 -0
  132. package/dist/bigconsole/store/widgetStore.js +3 -1
  133. package/dist/bigconsole/types/index.d.ts +1 -1
  134. package/dist/bigconsole/utils/advancedWidgetCapabilities.d.ts +14 -0
  135. package/dist/bigconsole/utils/advancedWidgetCapabilities.js +36 -0
  136. package/dist/bigconsole/utils/backendError.d.ts +18 -0
  137. package/dist/bigconsole/utils/backendError.js +42 -0
  138. package/dist/bigconsole/utils/dashboardList.d.ts +28 -0
  139. package/dist/bigconsole/utils/dashboardList.js +15 -0
  140. package/dist/bigconsole/utils/dataSinkList.d.ts +15 -0
  141. package/dist/bigconsole/utils/dataSinkList.js +15 -0
  142. package/dist/bigconsole/utils/formDirty.d.ts +82 -0
  143. package/dist/bigconsole/utils/formDirty.js +21 -0
  144. package/dist/bigconsole/utils/insightsDraft.d.ts +29 -0
  145. package/dist/bigconsole/utils/insightsDraft.js +8 -0
  146. package/dist/bigconsole/utils/layoutBaseline.d.ts +130 -0
  147. package/dist/bigconsole/utils/layoutBaseline.js +96 -0
  148. package/dist/bigconsole/utils/listSort.d.ts +80 -0
  149. package/dist/bigconsole/utils/listSort.js +85 -0
  150. package/dist/bigconsole/utils/widgetFormDirty.d.ts +16 -0
  151. package/dist/bigconsole/utils/widgetFormDirty.js +13 -0
  152. package/dist/bigconsole/utils/widgetTypeMapping.d.ts +1 -1
  153. package/dist/bigconsole/utils/widgetTypeMapping.js +13 -2
  154. package/dist/bigconsole/workflowOpen.js +15 -14
  155. package/dist/generated/wspace-operations.d.ts +61 -2
  156. package/dist/generated/wspace-operations.js +44 -18
  157. package/dist/generated/wspace-types.d.ts +34 -3
  158. package/package.json +3 -3
@@ -9,52 +9,52 @@ import ne from "../../hooks/useWidgetComments.js";
9
9
  import re from "../../hooks/useWidgetExport.js";
10
10
  import ie from "../../hooks/useDrilldown.js";
11
11
  import "../../hooks/index.js";
12
- import { resolveTextData as c } from "./text-widget/textData.js";
13
- import ae from "./WidgetHeader.js";
14
- import { useBigConsoleSettings as oe } from "../../hooks/useBigConsoleSettings.js";
15
- import se from "./states/LoadingState.js";
16
- import ce from "./states/ErrorState.js";
17
- import l from "./states/EmptyState.js";
18
- import le from "./WidgetErrorBoundary.js";
19
- import { hasCustomIframeConfig as ue, hasRenderableCustomConfig as de } from "./custom/config.js";
20
- import { getBindingForWidget as fe } from "../../utils/widgetBinding.js";
21
- import pe from "../../renderers/factory/WidgetRendererFactory.js";
22
- import me from "./widget-actions/WidgetActions.js";
12
+ import { resolveTextData as ae } from "./text-widget/textData.js";
13
+ import oe from "./WidgetHeader.js";
14
+ import { useBigConsoleSettings as se } from "../../hooks/useBigConsoleSettings.js";
15
+ import ce from "./states/LoadingState.js";
16
+ import le from "./states/ErrorState.js";
17
+ import c from "./states/EmptyState.js";
18
+ import ue from "./WidgetErrorBoundary.js";
19
+ import { hasCustomIframeConfig as de, hasRenderableCustomConfig as fe } from "./custom/config.js";
20
+ import { getBindingForWidget as pe } from "../../utils/widgetBinding.js";
21
+ import me from "../../renderers/factory/WidgetRendererFactory.js";
22
+ import he from "./widget-actions/WidgetActions.js";
23
23
  import "./widget-actions/index.js";
24
- import { Suspense as u, lazy as d, memo as f, useCallback as p, useEffect as he, useMemo as m, useRef as h, useState as g } from "react";
25
- import { useApolloClient as ge } from "@apollo/client/react";
26
- import { jsx as _, jsxs as _e } from "react/jsx-runtime";
24
+ import { Suspense as l, lazy as u, memo as d, useCallback as f, useEffect as ge, useMemo as p, useRef as m, useState as h } from "react";
25
+ import { useApolloClient as _e } from "@apollo/client/react";
26
+ import { jsx as g, jsxs as ve } from "react/jsx-runtime";
27
27
  //#region src/bigconsole/components/widgets/WidgetWrapper.tsx
28
- var ve = d(() => import("./metric-card/index.js").then((e) => ({ default: e.MetricCardWidget }))), ye = d(() => import("./chart/index.js").then((e) => ({ default: e.ChartWidget }))), be = d(() => import("./table/index.js").then((e) => ({ default: e.TableWidget }))), xe = d(() => import("./pivot-table/index.js").then((e) => ({ default: e.PivotTableWidget }))), Se = d(() => import("./gauge/index.js").then((e) => ({ default: e.GaugeWidget }))), Ce = d(() => import("./progress/index.js").then((e) => ({ default: e.ProgressWidget }))), we = d(() => import("./list/index.js").then((e) => ({ default: e.ListWidget }))), Te = d(() => import("./heatmap/index.js").then((e) => ({ default: e.HeatmapWidget }))), Ee = d(() => import("./retention/index.js").then((e) => ({ default: e.RetentionWidget }))), De = d(() => import("./calendar/index.js").then((e) => ({ default: e.CalendarWidget }))), Oe = d(() => import("./kanban/index.js").then((e) => ({ default: e.KanbanWidget }))), ke = d(() => import("./timeline/index.js").then((e) => ({ default: e.TimelineWidget }))), Ae = d(() => import("./kpi-comparison/index.js").then((e) => ({ default: e.KPIComparisonWidget }))), je = d(() => import("./text-widget/index.js").then((e) => ({ default: e.TextWidget }))), Me = d(() => import("./map-widget/index.js").then((e) => ({ default: e.MapWidget }))), Ne = d(() => import("./iframe-widget/index.js").then((e) => ({ default: e.IframeWidget }))), Pe = d(() => import("./custom/index.js").then((e) => ({ default: e.CustomWidget })));
29
- d(() => import("./adaptive-card/index.js").then((e) => ({ default: e.AdaptiveCardWidget })));
30
- var Fe = d(() => import("./form/index.js").then((e) => ({ default: e.FormWidget }))), Ie = d(() => import("./comments/WidgetComments.js").then((e) => ({ default: e.WidgetComments })));
31
- function v(e, t) {
28
+ var ye = u(() => import("./metric-card/index.js").then((e) => ({ default: e.MetricCardWidget }))), be = u(() => import("./chart/index.js").then((e) => ({ default: e.ChartWidget }))), xe = u(() => import("./table/index.js").then((e) => ({ default: e.TableWidget }))), Se = u(() => import("./pivot-table/index.js").then((e) => ({ default: e.PivotTableWidget }))), Ce = u(() => import("./gauge/index.js").then((e) => ({ default: e.GaugeWidget }))), we = u(() => import("./progress/index.js").then((e) => ({ default: e.ProgressWidget }))), Te = u(() => import("./list/index.js").then((e) => ({ default: e.ListWidget }))), Ee = u(() => import("./heatmap/index.js").then((e) => ({ default: e.HeatmapWidget }))), De = u(() => import("./retention/index.js").then((e) => ({ default: e.RetentionWidget }))), Oe = u(() => import("./calendar/index.js").then((e) => ({ default: e.CalendarWidget }))), ke = u(() => import("./kanban/index.js").then((e) => ({ default: e.KanbanWidget }))), Ae = u(() => import("./timeline/index.js").then((e) => ({ default: e.TimelineWidget }))), je = u(() => import("./kpi-comparison/index.js").then((e) => ({ default: e.KPIComparisonWidget }))), Me = u(() => import("./text-widget/index.js").then((e) => ({ default: e.TextWidget }))), Ne = u(() => import("./map-widget/index.js").then((e) => ({ default: e.MapWidget }))), Pe = u(() => import("./iframe-widget/index.js").then((e) => ({ default: e.IframeWidget }))), Fe = u(() => import("./custom/index.js").then((e) => ({ default: e.CustomWidget })));
29
+ u(() => import("./adaptive-card/index.js").then((e) => ({ default: e.AdaptiveCardWidget })));
30
+ var Ie = u(() => import("./form/index.js").then((e) => ({ default: e.FormWidget }))), Le = u(() => import("./advanced/AdvancedWidgets.js").then((e) => ({ default: e.SankeyWidget }))), Re = u(() => import("./advanced/AdvancedWidgets.js").then((e) => ({ default: e.BoxPlotWidget }))), ze = u(() => import("./advanced/AdvancedWidgets.js").then((e) => ({ default: e.WaterfallWidget }))), Be = u(() => import("./comments/WidgetComments.js").then((e) => ({ default: e.WidgetComments })));
31
+ function _(e, t) {
32
32
  return !(e.previewOnly !== t.previewOnly || e.widget.id !== t.widget.id || e.widget.updatedAt !== t.widget.updatedAt || e.isLoading !== t.isLoading || e.error !== t.error || e.actions !== t.actions || e.data !== t.data || JSON.stringify(e.filterValues) !== JSON.stringify(t.filterValues));
33
33
  }
34
- var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoading: Le, error: Re, onRefresh: b, onDrilldown: ze, actions: x, onAction: S, filterValues: C, previewOnly: w = !1 }) {
35
- let T = oe(), Be = r((e) => e.viewMode === "edit"), E = !w && Be, D = t((e) => e.selectWidget), O = e(d.id), k = n(d.id), A = i(), j = ge(), M = d.dashboardId, N = m(() => {
36
- if (!M) return {};
34
+ var v = d(function({ widget: u, children: d, data: _, className: v = "", isLoading: Ve, error: He, onRefresh: y, onDrilldown: Ue, actions: b, onAction: x, filterValues: S, previewOnly: C = !1 }) {
35
+ let w = se(), We = r((e) => e.viewMode === "edit"), T = !C && We, E = t((e) => e.selectWidget), D = e(u.id), O = n(u.id), k = i(), A = _e(), j = u.dashboardId, M = p(() => {
36
+ if (!j) return {};
37
37
  try {
38
- let e = j.readQuery({
38
+ let e = A.readQuery({
39
39
  query: a,
40
- variables: { id: M }
40
+ variables: { id: j }
41
41
  }), t = {};
42
42
  for (let n of e?.getDashboard?.globalFilters ?? []) {
43
43
  let e = n.config?.field;
44
- typeof e == "string" && e && Object.hasOwn(A, n.id) && (t[n.id] = e);
44
+ typeof e == "string" && e && Object.hasOwn(k, n.id) && (t[n.id] = e);
45
45
  }
46
46
  return t;
47
47
  } catch {
48
48
  return {};
49
49
  }
50
50
  }, [
51
+ A,
51
52
  j,
52
- M,
53
- A
54
- ]), P = m(() => fe(d), [d]), F = P.source.kind !== "DATASINK" || !!P.source.ref || !!P.parserId || !!d.datasetId, { data: I, loading: Ve } = o(d.id, {
55
- skip: w || !F,
56
- pollInterval: (d.refreshInterval ?? 0) * 1e3 || 0
57
- }), L = m(() => {
53
+ k
54
+ ]), N = p(() => pe(u), [u]), P = N.source.kind !== "DATASINK" || !!N.source.ref || !!N.parserId || !!u.datasetId, { data: F, loading: Ge } = o(u.id, {
55
+ skip: C || !P,
56
+ pollInterval: (u.refreshInterval ?? 0) * 1e3 || 0
57
+ }), I = p(() => {
58
58
  if (typeof window > "u") return {};
59
59
  let e = new URLSearchParams(window.location.search), t = {};
60
60
  return e.forEach((e, n) => {
@@ -63,42 +63,42 @@ var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoadi
63
63
  r.startsWith("__") || (t[r] = e);
64
64
  }
65
65
  }), t;
66
- }, []), R = m(() => {
66
+ }, []), L = p(() => {
67
67
  let e = {};
68
- return L && Object.keys(L).length > 0 && Object.assign(e, L), A && Object.keys(A).length > 0 && Object.assign(e, A), C && Object.keys(C).length > 0 && Object.assign(e, C), e;
68
+ return I && Object.keys(I).length > 0 && Object.assign(e, I), k && Object.keys(k).length > 0 && Object.assign(e, k), S && Object.keys(S).length > 0 && Object.assign(e, S), e;
69
69
  }, [
70
- L,
71
- A,
72
- C
73
- ]), z = Object.keys(R).length > 0, B = Le ?? (Ve && !I) ?? k.isLoading, V = Re ?? k.errorMessage, He = s(d.type), H = h(b);
74
- he(() => {
75
- H.current = b;
76
- }, [b]);
77
- let Ue = p(async () => {
78
- H.current && await H.current();
79
- }, []), { timeUntilRefresh: We, isPaused: Ge } = te({
80
- widgetId: d.id,
81
- refreshInterval: d.refreshInterval,
82
- onRefresh: Ue,
83
- enabled: !w && !E && !!d.refreshInterval
84
- }), U = h(null), [W, Ke] = g(!1), [qe, Je] = g(!1), { count: Ye } = ne(d.id, qe), Xe = p(() => {
85
- Ke((e) => {
70
+ I,
71
+ k,
72
+ S
73
+ ]), R = Object.keys(L).length > 0, z = Ve ?? (Ge && !F) ?? O.isLoading, B = He ?? O.errorMessage, Ke = s(u.type), V = m(y);
74
+ ge(() => {
75
+ V.current = y;
76
+ }, [y]);
77
+ let qe = f(async () => {
78
+ V.current && await V.current();
79
+ }, []), { timeUntilRefresh: Je, isPaused: Ye } = te({
80
+ widgetId: u.id,
81
+ refreshInterval: u.refreshInterval,
82
+ onRefresh: qe,
83
+ enabled: !C && !T && !!u.refreshInterval
84
+ }), H = m(null), [U, W] = h(!1), [Xe, Ze] = h(!1), { count: Qe } = ne(u.id, Xe), $e = f(() => {
85
+ W((e) => {
86
86
  let t = !e;
87
- return t && Je(!0), t;
87
+ return t && Ze(!0), t;
88
88
  });
89
- }, []), Ze = m(() => {
90
- if (v && Array.isArray(v)) return v;
91
- let e = d.data;
89
+ }, []), et = p(() => {
90
+ if (_ && Array.isArray(_)) return _;
91
+ let e = u.data;
92
92
  if (e?.processed && Array.isArray(e.processed)) return e.processed;
93
93
  if (e?.raw) {
94
94
  let t = typeof e.raw == "string" ? JSON.parse(e.raw) : e.raw;
95
95
  if (Array.isArray(t)) return t;
96
96
  }
97
97
  return null;
98
- }, [v, d]), { exportCSV: Qe, exportPNG: $e } = re(d, {
99
- data: Ze,
100
- containerRef: U
101
- }), G = p((e) => {
98
+ }, [_, u]), { exportCSV: tt, exportPNG: nt } = re(u, {
99
+ data: et,
100
+ containerRef: H
101
+ }), G = f((e) => {
102
102
  if (e == null) return !1;
103
103
  if (Array.isArray(e)) return e.length > 0;
104
104
  if (typeof e == "object") {
@@ -109,10 +109,10 @@ var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoadi
109
109
  });
110
110
  }
111
111
  return !0;
112
- }, []), et = p((e) => {
113
- if (!z || !e) return e;
112
+ }, []), rt = f((e) => {
113
+ if (!R || !e) return e;
114
114
  let t = {}, n = {};
115
- Object.entries(R || {}).forEach(([e, r]) => {
115
+ Object.entries(L || {}).forEach(([e, r]) => {
116
116
  if (e.startsWith("ctx_")) {
117
117
  let n = e.slice(4);
118
118
  t[n] = r;
@@ -174,7 +174,7 @@ var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoadi
174
174
  }
175
175
  }
176
176
  if (typeof a == "object" && a && !Array.isArray(a)) continue;
177
- let n = N[t];
177
+ let n = M[t];
178
178
  if (n) {
179
179
  let t = i(e, n);
180
180
  if (t !== void 0) {
@@ -241,22 +241,22 @@ var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoadi
241
241
  }
242
242
  return e;
243
243
  }, [
244
- z,
245
244
  R,
246
- d.id,
247
- N
248
- ]), K = m(() => {
245
+ L,
246
+ u.id,
247
+ M
248
+ ]), K = p(() => {
249
249
  let e = null;
250
- if (v && G(v)) e = v;
251
- else if (I) {
252
- let t = I;
250
+ if (_ && G(_)) e = _;
251
+ else if (F) {
252
+ let t = F;
253
253
  if (t?.processed && G(t.processed)) e = t.processed;
254
254
  else if (t?.raw) try {
255
255
  let n = typeof t.raw == "string" ? JSON.parse(t.raw) : t.raw;
256
256
  G(n) && (e = n);
257
257
  } catch {}
258
258
  } else {
259
- let t = d.data;
259
+ let t = u.data;
260
260
  if (t?.processed && G(t.processed)) e = t.processed;
261
261
  else if (t?.raw) try {
262
262
  let n = typeof t.raw == "string" ? JSON.parse(t.raw) : t.raw;
@@ -264,59 +264,59 @@ var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoadi
264
264
  } catch {}
265
265
  }
266
266
  if (!e) {
267
- let t = d.config?.mockData;
267
+ let t = u.config?.mockData;
268
268
  if (t) try {
269
269
  let n = typeof t == "string" ? JSON.parse(t) : t;
270
270
  G(n) && (e = n);
271
271
  } catch {}
272
272
  }
273
273
  if (e && typeof e == "object" && !Array.isArray(e)) {
274
- let t = d.config, n = t?.dataKey ?? t?.dataPath ?? t?.seriesPath;
274
+ let t = u.config, n = t?.dataKey ?? t?.dataPath ?? t?.seriesPath;
275
275
  if (n && typeof n == "string") {
276
276
  let t = n.split(".").reduce((e, t) => e && typeof e == "object" ? e[t] : void 0, e);
277
277
  t != null && G(t) && (e = t);
278
278
  }
279
279
  }
280
- return z && e ? et(e) : e;
280
+ return R && e ? rt(e) : e;
281
281
  }, [
282
- v,
283
- d,
284
- I,
285
- z,
286
- et,
282
+ _,
283
+ u,
284
+ F,
287
285
  R,
286
+ rt,
287
+ L,
288
288
  G
289
- ]), q = m(() => K ?? null, [K]), tt = m(() => !q || F ? !1 : d.config?.mockData != null, [
289
+ ]), q = p(() => K ?? null, [K]), it = p(() => !q || P ? !1 : u.config?.mockData != null, [
290
290
  q,
291
- F,
292
- d.config
293
- ]), { executeDrilldown: nt, canDrilldown: rt } = ie({ onDrilldown: (e, t) => {
294
- ze?.(e);
295
- } }), J = m(() => rt(d), [d, rt]), it = p((e) => {
296
- if (!d.drilldown?.enabled) return;
291
+ P,
292
+ u.config
293
+ ]), { executeDrilldown: at, canDrilldown: ot } = ie({ onDrilldown: (e, t) => {
294
+ Ue?.(e);
295
+ } }), J = p(() => ot(u), [u, ot]), st = f((e) => {
296
+ if (!u.drilldown?.enabled) return;
297
297
  let t = {
298
298
  selectedData: e || {},
299
- globalFilters: A || {},
299
+ globalFilters: k || {},
300
300
  widgetData: q || {},
301
301
  metadata: {
302
- widgetId: d.id,
303
- widgetType: d.type,
304
- widgetTitle: d.title
302
+ widgetId: u.id,
303
+ widgetType: u.type,
304
+ widgetTitle: u.title
305
305
  },
306
- sourceDashboardId: d.dashboardId
306
+ sourceDashboardId: u.dashboardId
307
307
  };
308
- nt(d.drilldown, t);
308
+ at(u.drilldown, t);
309
309
  }, [
310
- d,
310
+ u,
311
311
  q,
312
- A,
313
- nt
314
- ]), Y = J && !E ? it : void 0, X = h(null), at = p((e) => {
312
+ k,
313
+ at
314
+ ]), Y = J && !T ? st : void 0, X = m(null), ct = f((e) => {
315
315
  X.current = {
316
316
  x: e.clientX,
317
317
  y: e.clientY
318
318
  };
319
- }, []), ot = p((e) => {
319
+ }, []), lt = f((e) => {
320
320
  if (e.stopPropagation(), X.current) {
321
321
  let t = Math.abs(e.clientX - X.current.x), n = Math.abs(e.clientY - X.current.y);
322
322
  if (t > 5 || n > 5) {
@@ -324,46 +324,46 @@ var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoadi
324
324
  return;
325
325
  }
326
326
  }
327
- X.current = null, E && D(d.id);
327
+ X.current = null, T && E(u.id);
328
328
  }, [
329
+ T,
329
330
  E,
330
- D,
331
- d.id
332
- ]), st = p((e) => {
333
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), E && D(d.id));
331
+ u.id
332
+ ]), ut = f((e) => {
333
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), T && E(u.id));
334
334
  }, [
335
+ T,
335
336
  E,
336
- D,
337
- d.id
338
- ]), ct = m(() => d.type === "custom" && de(d.config), [d.type, d.config]), lt = m(() => d.type === "custom" && ue(d.config), [d.type, d.config]), Z = J && !lt, ut = m(() => d.type === "text" ? c(d.config, q).hasContent : !1, [
339
- d.type,
340
- d.config,
337
+ u.id
338
+ ]), dt = p(() => u.type === "custom" && fe(u.config), [u.type, u.config]), ft = p(() => u.type === "custom" && de(u.config), [u.type, u.config]), Z = J && !ft, pt = p(() => u.type === "text" ? ae(u.config, q).hasContent : !1, [
339
+ u.type,
340
+ u.config,
341
341
  q
342
- ]), dt = !B && !V && !q && !ct && !ut, Q = m(() => d.renderer, [d]), ft = m(() => Q && Q !== "BIGCONSOLE", [Q]), pt = m(() => ({
343
- widgetId: d.id,
342
+ ]), mt = !z && !B && !q && !dt && !pt, Q = p(() => u.renderer, [u]), ht = p(() => Q && Q !== "BIGCONSOLE", [Q]), gt = p(() => ({
343
+ widgetId: u.id,
344
344
  data: q || {}
345
- }), [d.id, q]), $ = p((e, t) => {
346
- if (!S) return;
347
- let n = x?.find((t) => t.name === e.name);
348
- S(n || e, t);
349
- }, [S, x]), mt = p(() => {
345
+ }), [u.id, q]), $ = f((e, t) => {
346
+ if (!x) return;
347
+ let n = b?.find((t) => t.name === e.name);
348
+ x(n || e, t);
349
+ }, [x, b]), _t = f(() => {
350
350
  let e = {
351
- widget: d,
351
+ widget: u,
352
352
  data: (() => {
353
353
  if (!q) return q;
354
- if (d.type === "table" || d.type === "pivot_table") {
354
+ if (u.type === "table" || u.type === "pivot_table") {
355
355
  if (Array.isArray(q)) return q;
356
356
  if (q && typeof q == "object" && "rows" in q) return q.rows;
357
357
  }
358
- if (d.type === "list") {
358
+ if (u.type === "list") {
359
359
  if (Array.isArray(q)) return q;
360
360
  if (q && typeof q == "object" && "items" in q) return q.items;
361
361
  }
362
- if (d.type === "funnel_chart") {
362
+ if (u.type === "funnel_chart") {
363
363
  if (Array.isArray(q)) return q;
364
364
  if (q && typeof q == "object" && "stages" in q) return q.stages;
365
365
  }
366
- if (d.type === "chart") {
366
+ if (u.type === "chart") {
367
367
  if (Array.isArray(q)) return q;
368
368
  if (q && typeof q == "object" && "datasets" in q) {
369
369
  let e = q;
@@ -375,21 +375,21 @@ var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoadi
375
375
  });
376
376
  }
377
377
  }
378
- if (d.type === "text") {
379
- let e = c(d.config, q);
378
+ if (u.type === "text") {
379
+ let e = ae(u.config, q);
380
380
  return {
381
381
  content: e.content,
382
382
  format: e.format,
383
383
  alignment: e.alignment
384
384
  };
385
385
  }
386
- if (d.type === "custom") {
387
- let e = d.config?.valueField;
386
+ if (u.type === "custom") {
387
+ let e = u.config?.valueField;
388
388
  if (e && q && typeof q == "object" && !Array.isArray(q)) {
389
389
  let t = q;
390
390
  if (e in t) return {
391
391
  value: t[e],
392
- label: d.title,
392
+ label: u.title,
393
393
  data: t
394
394
  };
395
395
  }
@@ -398,164 +398,167 @@ var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoadi
398
398
  })(),
399
399
  onDrilldown: Y
400
400
  };
401
- if (ft) {
401
+ if (ht) {
402
402
  let e = {};
403
- if (K && typeof K == "object" && !Array.isArray(K) && Object.keys(K).length > 0 && (e = { ...K }), d.config?._internalWidgetType === "custom" && Object.keys(e).length > 0) {
404
- let t = d.config?.valueField;
403
+ if (K && typeof K == "object" && !Array.isArray(K) && Object.keys(K).length > 0 && (e = { ...K }), u.config?._internalWidgetType === "custom" && Object.keys(e).length > 0) {
404
+ let t = u.config?.valueField;
405
405
  if (t && t in e) {
406
406
  let n = e[t], r = typeof n == "number" ? n.toLocaleString() : String(n);
407
407
  e = {
408
408
  ...e,
409
409
  value: n,
410
410
  title: e.title || r,
411
- description: e.description || d.title || "",
411
+ description: e.description || u.title || "",
412
412
  text: e.text || r
413
413
  };
414
414
  }
415
415
  }
416
- return /* @__PURE__ */ _(pe, {
417
- widget: d,
416
+ return /* @__PURE__ */ g(me, {
417
+ widget: u,
418
418
  data: e,
419
- isEditMode: E,
420
- isSelected: O,
421
- isLoading: B,
422
- error: V,
419
+ isEditMode: T,
420
+ isSelected: D,
421
+ isLoading: z,
422
+ error: B,
423
423
  onDrilldown: Y,
424
424
  onAction: $
425
425
  });
426
426
  }
427
- switch (d.type?.toLowerCase() || "") {
428
- case "metric_card": return /* @__PURE__ */ _(ve, { ...e });
429
- case "kpi_card_comparison": return /* @__PURE__ */ _(Ae, { ...e });
427
+ switch (u.type?.toLowerCase() || "") {
428
+ case "metric_card": return /* @__PURE__ */ g(ye, { ...e });
429
+ case "kpi_card_comparison": return /* @__PURE__ */ g(je, { ...e });
430
430
  case "chart":
431
- case "funnel_chart": return /* @__PURE__ */ _(ye, { ...e });
432
- case "table": return /* @__PURE__ */ _(be, { ...e });
433
- case "pivot_table": return /* @__PURE__ */ _(xe, { ...e });
434
- case "gauge": return /* @__PURE__ */ _(Se, { ...e });
435
- case "progress": return /* @__PURE__ */ _(Ce, { ...e });
436
- case "list": return /* @__PURE__ */ _(we, { ...e });
437
- case "heatmap": return /* @__PURE__ */ _(Te, { ...e });
438
- case "retention": return /* @__PURE__ */ _(Ee, { ...e });
439
- case "calendar": return /* @__PURE__ */ _(De, { ...e });
440
- case "timeline": return /* @__PURE__ */ _(ke, { ...e });
441
- case "kanban": return /* @__PURE__ */ _(Oe, { ...e });
442
- case "form": return /* @__PURE__ */ _(Fe, { ...e });
443
- case "text": return /* @__PURE__ */ _(je, { ...e });
444
- case "iframe": return /* @__PURE__ */ _(Ne, { ...e });
445
- case "map": return /* @__PURE__ */ _(Me, { ...e });
446
- case "custom": return /* @__PURE__ */ _(Pe, { ...e });
447
- default: return f || /* @__PURE__ */ _(l, { widgetType: d.type });
431
+ case "funnel_chart": return /* @__PURE__ */ g(be, { ...e });
432
+ case "waterfall": return /* @__PURE__ */ g(ze, { ...e });
433
+ case "sankey": return /* @__PURE__ */ g(Le, { ...e });
434
+ case "box_plot": return /* @__PURE__ */ g(Re, { ...e });
435
+ case "table": return /* @__PURE__ */ g(xe, { ...e });
436
+ case "pivot_table": return /* @__PURE__ */ g(Se, { ...e });
437
+ case "gauge": return /* @__PURE__ */ g(Ce, { ...e });
438
+ case "progress": return /* @__PURE__ */ g(we, { ...e });
439
+ case "list": return /* @__PURE__ */ g(Te, { ...e });
440
+ case "heatmap": return /* @__PURE__ */ g(Ee, { ...e });
441
+ case "retention": return /* @__PURE__ */ g(De, { ...e });
442
+ case "calendar": return /* @__PURE__ */ g(Oe, { ...e });
443
+ case "timeline": return /* @__PURE__ */ g(Ae, { ...e });
444
+ case "kanban": return /* @__PURE__ */ g(ke, { ...e });
445
+ case "form": return /* @__PURE__ */ g(Ie, { ...e });
446
+ case "text": return /* @__PURE__ */ g(Me, { ...e });
447
+ case "iframe": return /* @__PURE__ */ g(Pe, { ...e });
448
+ case "map": return /* @__PURE__ */ g(Ne, { ...e });
449
+ case "custom": return /* @__PURE__ */ g(Fe, { ...e });
450
+ default: return d || /* @__PURE__ */ g(c, { widgetType: u.type });
448
451
  }
449
452
  }, [
450
- d,
453
+ u,
451
454
  q,
452
- f,
455
+ d,
453
456
  Y,
454
- ft,
455
- E,
456
- O,
457
+ ht,
458
+ T,
459
+ D,
460
+ z,
457
461
  B,
458
- V,
459
462
  $,
460
463
  K
461
464
  ]);
462
- return /* @__PURE__ */ _e("div", {
463
- ref: U,
465
+ return /* @__PURE__ */ ve("div", {
466
+ ref: H,
464
467
  className: `
465
468
  group relative flex flex-col
466
469
  h-full w-full min-w-0
467
470
  rounded-card border
468
471
  bg-bg-surface
469
472
  shadow-[var(--shadow-elevation-1)]
470
- ${T.animationsEnabled ? "motion-safe:transition-[box-shadow,border-color] motion-safe:duration-200" : ""}
471
- ${O && E ? "border-[var(--color-action-primary-border)] ring-2 ring-[var(--color-action-primary-border)]/30 shadow-[var(--shadow-elevation-2)]" : T.showWidgetBorders ? "border-[var(--color-border-subtle)] hover:border-action-primary-bg hover:shadow-[var(--shadow-elevation-2)]" : "border-transparent"}
472
- ${E ? "cursor-pointer" : ""}
473
- ${y}
473
+ ${w.animationsEnabled ? "motion-safe:transition-[box-shadow,border-color] motion-safe:duration-200" : ""}
474
+ ${D && T ? "border-[var(--color-action-primary-border)] ring-2 ring-[var(--color-action-primary-border)]/30 shadow-[var(--shadow-elevation-2)]" : w.showWidgetBorders ? "border-[var(--color-border-subtle)] hover:border-action-primary-bg hover:shadow-[var(--shadow-elevation-2)]" : "border-transparent"}
475
+ ${T ? "cursor-pointer" : ""}
476
+ ${v}
474
477
  `,
475
- onMouseDown: at,
476
- onClick: ot,
477
- onKeyDown: st,
478
- tabIndex: E ? 0 : -1,
479
- role: E ? "button" : void 0,
480
- "aria-selected": O,
481
- "aria-label": `Widget: ${d.title}`,
482
- "data-widget-id": d.id,
483
- "data-widget-type": d.type,
478
+ onMouseDown: ct,
479
+ onClick: lt,
480
+ onKeyDown: ut,
481
+ tabIndex: T ? 0 : -1,
482
+ role: T ? "button" : void 0,
483
+ "aria-selected": D,
484
+ "aria-label": `Widget: ${u.title}`,
485
+ "data-widget-id": u.id,
486
+ "data-widget-type": u.type,
484
487
  children: [
485
- /* @__PURE__ */ _(ae, {
486
- widget: d,
487
- previewOnly: w,
488
- definition: He,
489
- isSelected: O,
490
- isEditMode: E,
491
- isLoading: B,
492
- isSampleData: tt,
493
- timeUntilRefresh: d.refreshInterval && !Ge ? ee(We) : void 0,
488
+ /* @__PURE__ */ g(oe, {
489
+ widget: u,
490
+ previewOnly: C,
491
+ definition: Ke,
492
+ isSelected: D,
493
+ isEditMode: T,
494
+ isLoading: z,
495
+ isSampleData: it,
496
+ timeUntilRefresh: u.refreshInterval && !Ye ? ee(Je) : void 0,
494
497
  hasDrilldown: J,
495
- onRefresh: b,
496
- onExportCSV: Ze ? Qe : void 0,
497
- onExportPNG: $e,
498
+ onRefresh: y,
499
+ onExportCSV: et ? tt : void 0,
500
+ onExportPNG: nt,
498
501
  onDrilldown: Y ? () => Y() : void 0,
499
- onToggleComments: w ? void 0 : Xe,
500
- commentsOpen: W,
501
- commentCount: qe ? Ye : void 0
502
+ onToggleComments: C ? void 0 : $e,
503
+ commentsOpen: U,
504
+ commentCount: Xe ? Qe : void 0
502
505
  }),
503
- /* @__PURE__ */ _("div", {
506
+ /* @__PURE__ */ g("div", {
504
507
  className: `
505
508
  flex-1 overflow-hidden min-h-0 min-w-0
506
- ${T.compactMode ? "p-2" : "p-3 sm:p-4"}
507
- ${Z && !E ? "cursor-pointer" : ""}
509
+ ${w.compactMode ? "p-2" : "p-3 sm:p-4"}
510
+ ${Z && !T ? "cursor-pointer" : ""}
508
511
  `,
509
- title: Z && !E ? "Click data to drill down" : void 0,
510
- children: /* @__PURE__ */ _("div", {
512
+ title: Z && !T ? "Click data to drill down" : void 0,
513
+ children: /* @__PURE__ */ g("div", {
511
514
  className: "h-full min-w-0 overflow-auto",
512
515
  children: (() => {
513
- if (B) return /* @__PURE__ */ _(se, {});
514
- if (V) return /* @__PURE__ */ _(ce, {
515
- error: V,
516
- onRetry: b
516
+ if (z) return /* @__PURE__ */ g(ce, {});
517
+ if (B) return /* @__PURE__ */ g(le, {
518
+ error: B,
519
+ onRetry: y
517
520
  });
518
- if (dt && !f) return /* @__PURE__ */ _(l, {
519
- widgetType: d.type,
520
- hideEditHint: w,
521
- hasDataSource: F,
522
- templateSlot: typeof d.metadata?.templateDataSinkSlot == "string" ? d.metadata.templateDataSinkSlot : null
521
+ if (mt && !d) return /* @__PURE__ */ g(c, {
522
+ widgetType: u.type,
523
+ hideEditHint: C,
524
+ hasDataSource: P,
525
+ templateSlot: typeof u.metadata?.templateDataSinkSlot == "string" ? u.metadata.templateDataSinkSlot : null
523
526
  });
524
- let e = `${P.source.kind}|${P.source.ref ?? ""}|${P.parserId ?? ""}|${d.updatedAt ?? ""}`;
525
- return /* @__PURE__ */ _(le, {
526
- widgetId: d.id,
527
- widgetType: d.type,
528
- widgetTitle: d.title,
527
+ let e = `${N.source.kind}|${N.source.ref ?? ""}|${N.parserId ?? ""}|${u.updatedAt ?? ""}`;
528
+ return /* @__PURE__ */ g(ue, {
529
+ widgetId: u.id,
530
+ widgetType: u.type,
531
+ widgetTitle: u.title,
529
532
  resetKey: e,
530
- children: f ?? /* @__PURE__ */ _(u, {
531
- fallback: /* @__PURE__ */ _(se, {}),
532
- children: mt()
533
+ children: d ?? /* @__PURE__ */ g(l, {
534
+ fallback: /* @__PURE__ */ g(ce, {}),
535
+ children: _t()
533
536
  })
534
537
  });
535
538
  })()
536
539
  })
537
540
  }),
538
- x && x.length > 0 && !B && !V && /* @__PURE__ */ _("div", {
541
+ b && b.length > 0 && !z && !B && /* @__PURE__ */ g("div", {
539
542
  className: "min-w-0 border-t border-[var(--color-border-subtle)] bg-bg-sunken px-3 py-2 sm:px-4",
540
543
  style: { flexShrink: 0 },
541
- children: /* @__PURE__ */ _(me, {
542
- actions: x,
543
- context: pt,
544
- onAction: S,
545
- disabled: E,
544
+ children: /* @__PURE__ */ g(he, {
545
+ actions: b,
546
+ context: gt,
547
+ onAction: x,
548
+ disabled: T,
546
549
  layout: "horizontal",
547
550
  size: "sm"
548
551
  })
549
552
  }),
550
- Z && !E && /* @__PURE__ */ _("div", {
553
+ Z && !T && /* @__PURE__ */ g("div", {
551
554
  className: "\n absolute bottom-2 right-2\n opacity-0 group-hover:opacity-100\n transition-opacity duration-200\n ",
552
555
  title: "Click to drill down",
553
- children: /* @__PURE__ */ _("svg", {
556
+ children: /* @__PURE__ */ g("svg", {
554
557
  className: "w-4 h-4 text-text-secondary",
555
558
  fill: "none",
556
559
  stroke: "currentColor",
557
560
  viewBox: "0 0 24 24",
558
- children: /* @__PURE__ */ _("path", {
561
+ children: /* @__PURE__ */ g("path", {
559
562
  strokeLinecap: "round",
560
563
  strokeLinejoin: "round",
561
564
  strokeWidth: 2,
@@ -563,15 +566,15 @@ var y = f(function({ widget: d, children: f, data: v, className: y = "", isLoadi
563
566
  })
564
567
  })
565
568
  }),
566
- W && /* @__PURE__ */ _(u, {
569
+ U && /* @__PURE__ */ g(l, {
567
570
  fallback: null,
568
- children: /* @__PURE__ */ _(Ie, {
569
- widgetId: d.id,
570
- onClose: () => Ke(!1)
571
+ children: /* @__PURE__ */ g(Be, {
572
+ widgetId: u.id,
573
+ onClose: () => W(!1)
571
574
  })
572
575
  })
573
576
  ]
574
577
  });
575
- }, v);
578
+ }, _);
576
579
  //#endregion
577
- export { y as default };
580
+ export { v as default };