@burdenoff/microfe-bigconsole 2026.1011.10 → 2026.1012.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +19 -0
  2. package/dist/bigconsole/BigConsoleRoot.js +88 -82
  3. package/dist/bigconsole/BigConsoleRoutes.js +163 -136
  4. package/dist/bigconsole/assistant/assistantProduct.js +1 -4
  5. package/dist/bigconsole/assistant/pageContext.d.ts +0 -14
  6. package/dist/bigconsole/assistant/pageContext.js +1 -6
  7. package/dist/bigconsole/assistant/recordAdapters.js +26 -27
  8. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
  9. package/dist/bigconsole/components/common/index.d.ts +0 -1
  10. package/dist/bigconsole/components/common/index.js +0 -1
  11. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
  12. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
  13. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
  14. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +58 -57
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
  17. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  18. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
  19. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
  20. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
  21. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  22. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +164 -173
  23. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
  24. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
  25. package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
  26. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  27. package/dist/bigconsole/components/dashboard/WidgetPalette.js +165 -163
  28. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
  29. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
  30. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  31. package/dist/bigconsole/components/datasink/DataSinkCard.js +50 -51
  32. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  33. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  34. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
  35. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
  36. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  37. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  38. package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
  39. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  40. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
  41. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +76 -77
  42. package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -96
  43. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
  44. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
  45. package/dist/bigconsole/components/widgets/PropertiesPanel.js +499 -507
  46. package/dist/bigconsole/components/widgets/WidgetRegistry.js +0 -1
  47. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
  48. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  49. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  50. package/dist/bigconsole/components/widgets/custom/CustomWidget.js +73 -131
  51. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  52. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  53. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  54. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  55. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +28 -9
  56. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +115 -42
  57. package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.d.ts +20 -0
  58. package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.js +10 -0
  59. package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +2 -1
  60. package/dist/bigconsole/components/widgets/iframe-widget/index.js +3 -2
  61. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  62. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  63. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  64. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  65. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  66. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  67. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  68. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  69. package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +110 -27
  70. package/dist/bigconsole/components/widgets/text-widget/textData.d.ts +6 -0
  71. package/dist/bigconsole/components/widgets/text-widget/textData.js +17 -14
  72. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  73. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
  74. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
  75. package/dist/bigconsole/context/BigConsoleContext.d.ts +10 -0
  76. package/dist/bigconsole/context/BigConsoleContext.js +47 -30
  77. package/dist/bigconsole/context/index.d.ts +1 -1
  78. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +58 -49
  79. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +74 -72
  80. package/dist/bigconsole/customWidget/proposalPreview.d.ts +5 -0
  81. package/dist/bigconsole/customWidget/proposalPreview.js +31 -0
  82. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +0 -23
  83. package/dist/bigconsole/hooks/useDataSinkAlerts.js +113 -138
  84. package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +7 -0
  85. package/dist/bigconsole/hooks/useDataSinkOperations.js +109 -98
  86. package/dist/bigconsole/hooks/useDataSinkSubscription.js +0 -1
  87. package/dist/bigconsole/hooks/useDrilldown.js +68 -67
  88. package/dist/bigconsole/hooks/useExportDataSink.js +1 -1
  89. package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
  90. package/dist/bigconsole/hooks/useImportDataSink.js +102 -90
  91. package/dist/bigconsole/pages/AdminPage.js +130 -130
  92. package/dist/bigconsole/pages/DashboardBuilderPage.js +60 -72
  93. package/dist/bigconsole/pages/DashboardViewPage.js +235 -258
  94. package/dist/bigconsole/pages/DashboardsPage.js +221 -269
  95. package/dist/bigconsole/pages/DataParsersPage.js +157 -180
  96. package/dist/bigconsole/pages/DataSinkAlertsPage.js +55 -62
  97. package/dist/bigconsole/pages/DataSinkBuilderPage.js +318 -295
  98. package/dist/bigconsole/pages/DataSinkViewPage.js +256 -255
  99. package/dist/bigconsole/pages/DataSinksPage.js +216 -251
  100. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  101. package/dist/bigconsole/pages/InsightsPage.js +265 -279
  102. package/dist/bigconsole/pages/OverviewPage.js +47 -47
  103. package/dist/bigconsole/pages/ParserBuilderPage.js +213 -229
  104. package/dist/bigconsole/pages/ParserViewPage.js +97 -97
  105. package/dist/bigconsole/pages/PipelineBuilderPage.js +214 -256
  106. package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
  107. package/dist/bigconsole/pages/PipelinesPage.js +88 -107
  108. package/dist/bigconsole/pages/SettingsPage.js +173 -179
  109. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  110. package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
  111. package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
  112. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
  113. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +235 -122
  114. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -1
  115. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +151 -151
  116. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  117. package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +29 -0
  118. package/dist/bigconsole/renderers/adapters/adaptiveCardContent.js +51 -0
  119. package/dist/bigconsole/store/widgetStore.d.ts +0 -12
  120. package/dist/bigconsole/store/widgetStore.js +1 -3
  121. package/dist/bigconsole/types/index.d.ts +17 -2
  122. package/dist/bigconsole/utils/backendError.d.ts +0 -18
  123. package/dist/bigconsole/utils/dataSinkPayload.d.ts +48 -0
  124. package/dist/bigconsole/utils/dataSinkPayload.js +38 -0
  125. package/dist/bigconsole/utils/index.d.ts +2 -0
  126. package/dist/bigconsole/utils/safeUrl.d.ts +79 -0
  127. package/dist/bigconsole/utils/safeUrl.js +93 -0
  128. package/dist/bigconsole/utils/sanitizeHtml.d.ts +16 -0
  129. package/dist/bigconsole/utils/sanitizeHtml.js +67 -0
  130. package/dist/bigconsole/workflowOpen.js +14 -15
  131. package/dist/generated/wspace-operations.d.ts +138 -8
  132. package/dist/generated/wspace-operations.js +281 -240
  133. package/dist/node_modules/dompurify/dist/purify.es.js +800 -0
  134. package/package.json +9 -5
  135. package/dist/bigconsole/assistant/displayCopy.d.ts +0 -32
  136. package/dist/bigconsole/assistant/pageControls.d.ts +0 -81
  137. package/dist/bigconsole/assistant/pageControls.js +0 -169
  138. package/dist/bigconsole/assistant/previewControl.d.ts +0 -16
  139. package/dist/bigconsole/assistant/previewControl.js +0 -10
  140. package/dist/bigconsole/assistant/usePreviewControl.d.ts +0 -2
  141. package/dist/bigconsole/assistant/usePreviewControl.js +0 -20
  142. package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -11
  143. package/dist/bigconsole/components/common/SortBySelect.js +0 -29
  144. package/dist/bigconsole/constants/backendErrors.js +0 -94
  145. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -14
  146. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +0 -32
  147. package/dist/bigconsole/utils/backendError.js +0 -42
  148. package/dist/bigconsole/utils/dashboardList.d.ts +0 -28
  149. package/dist/bigconsole/utils/dashboardList.js +0 -15
  150. package/dist/bigconsole/utils/dataSinkList.d.ts +0 -15
  151. package/dist/bigconsole/utils/dataSinkList.js +0 -15
  152. package/dist/bigconsole/utils/formDirty.d.ts +0 -82
  153. package/dist/bigconsole/utils/formDirty.js +0 -21
  154. package/dist/bigconsole/utils/insightsDraft.d.ts +0 -29
  155. package/dist/bigconsole/utils/insightsDraft.js +0 -8
  156. package/dist/bigconsole/utils/layoutBaseline.d.ts +0 -130
  157. package/dist/bigconsole/utils/layoutBaseline.js +0 -96
  158. package/dist/bigconsole/utils/listSort.d.ts +0 -80
  159. package/dist/bigconsole/utils/listSort.js +0 -85
  160. package/dist/bigconsole/utils/widgetFormDirty.d.ts +0 -16
  161. package/dist/bigconsole/utils/widgetFormDirty.js +0 -13
package/README.md CHANGED
@@ -31,6 +31,25 @@ import { WorkflowsRoot } from '@burdenoff/micro-fe/workflows';
31
31
  />
32
32
  ```
33
33
 
34
+ ## Widget content
35
+
36
+ Widget configuration and parser output are rendered as data:
37
+
38
+ - **Text widgets** render markdown through the shared fe-libs `Markdown`
39
+ component (raw HTML inside markdown is not rendered, images show their alt
40
+ text). The `html` format is available only when the widget is configured for
41
+ it, and the markup is sanitised with DOMPurify before it is rendered.
42
+ - **Links** in text, custom, Adaptive Card and Block Kit content are limited to
43
+ `https:`, `http:` and `mailto:` URLs; text and custom-widget content may also
44
+ link to in-app paths and fragments.
45
+ - **Iframe and custom-widget embeds** accept absolute `https:` URLs on another
46
+ origin only, and always use the same sandbox
47
+ (`allow-scripts allow-popups allow-forms`) with
48
+ `referrerpolicy="no-referrer"`. Hosts can restrict the embeddable sites with
49
+ the `iframeAllowedOrigins` root prop, a list of exact https origins such as
50
+ `['https://reports.example.com']`. An empty or missing list allows any https
51
+ origin.
52
+
34
53
  ## Development
35
54
 
36
55
  ```bash
@@ -16,67 +16,71 @@ import { useSearchParams as v } from "react-router";
16
16
  import { ErrorBoundary as y } from "@burdenoff/fe-libs/shared/components";
17
17
  import { FeatureFlagProvider as b } from "@burdenoff/fe-libs/shared/feature-flags";
18
18
  import { PermissionProvider as x } from "@burdenoff/fe-libs/shared/providers/shell";
19
- import { BarChart3 as S, Boxes as C, Database as w, LayoutDashboard as T, Lightbulb as E, Settings as ee } from "lucide-react";
20
- import { jsx as D, jsxs as O } from "react/jsx-runtime";
21
- import { resetFluidGridsClient as k, resetFluidGridsConfig as A, resetGlobalStoreClient as j, setFluidGridsClient as M, setFluidGridsConfig as N, setGlobalStoreClient as P } from "@burdenoff/fluidgrids-fe-sdk";
22
- import { useGatewayClient as F } from "@burdenoff/fe-libs/shared/graphql";
19
+ import { BarChart3 as S, Boxes as C, Database as w, LayoutDashboard as T, Lightbulb as E, Settings as D } from "lucide-react";
20
+ import { jsx as O, jsxs as k } from "react/jsx-runtime";
21
+ import { setFluidGridsClient as A, setFluidGridsConfig as j, setGlobalStoreClient as M } from "@burdenoff/fluidgrids-fe-sdk";
22
+ import { useGatewayClient as N } from "@burdenoff/fe-libs/shared/graphql";
23
23
  //#region src/bigconsole/BigConsoleRoot.tsx
24
- var I = i, L = r, R = a, z = /* @__PURE__ */ new Set(), B = (r) => {
25
- let { registerNavItems: i, registerFooterItems: a, basePath: B = "/bigconsole", navigate: V } = r, H = F("workspace"), U = F("global"), [W, G] = _(!1), [K, q] = _(null), J = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
24
+ var P = i, F = r, I = a, L = /* @__PURE__ */ new Set(), R = (r) => {
25
+ let { registerNavItems: i, registerFooterItems: a, basePath: R = "/bigconsole", navigate: z } = r, B = r.dashboardOnly ?? !1, V = N("workspace"), H = N("global"), [U, W] = _(B), [G, K] = _(null), q = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
26
26
  m(() => {
27
27
  if (i) return i({
28
28
  id: "bigconsole",
29
29
  label: "Analytics",
30
- path: B,
31
- icon: /* @__PURE__ */ D(S, { size: 20 }),
30
+ path: R,
31
+ icon: /* @__PURE__ */ O(S, { size: 20 }),
32
32
  order: 15,
33
33
  group: "bigconsole",
34
34
  children: [
35
35
  {
36
36
  id: "bigconsole-home",
37
37
  label: "Overview",
38
- path: B,
39
- icon: /* @__PURE__ */ D(S, { size: 16 }),
38
+ path: R,
39
+ icon: /* @__PURE__ */ O(S, { size: 16 }),
40
40
  order: 10
41
41
  },
42
42
  {
43
43
  id: "bigconsole-dashboards",
44
44
  label: "Dashboards",
45
- path: J(B, "dashboards"),
46
- icon: /* @__PURE__ */ D(T, { size: 16 }),
45
+ path: q(R, "dashboards"),
46
+ icon: /* @__PURE__ */ O(T, { size: 16 }),
47
47
  order: 20
48
48
  },
49
49
  {
50
50
  id: "bigconsole-datasources",
51
51
  label: "Data Sources",
52
- path: J(B, "datasources"),
53
- icon: /* @__PURE__ */ D(w, { size: 16 }),
52
+ path: q(R, "datasources"),
53
+ icon: /* @__PURE__ */ O(w, { size: 16 }),
54
54
  order: 30
55
55
  },
56
56
  {
57
57
  id: "bigconsole-insights",
58
58
  label: "AI Insights",
59
- path: J(B, "insights"),
60
- icon: /* @__PURE__ */ D(E, { size: 16 }),
59
+ path: q(R, "insights"),
60
+ icon: /* @__PURE__ */ O(E, { size: 16 }),
61
61
  order: 40
62
62
  },
63
63
  {
64
64
  id: "bigconsole-widgets",
65
65
  label: "Widget Demo",
66
- path: J(B, "widgets/demo"),
67
- icon: /* @__PURE__ */ D(C, { size: 16 }),
66
+ path: q(R, "widgets/demo"),
67
+ icon: /* @__PURE__ */ O(C, { size: 16 }),
68
68
  order: 50
69
69
  },
70
70
  {
71
71
  id: "bigconsole-settings",
72
72
  label: "Settings",
73
- path: J(B, "settings"),
74
- icon: /* @__PURE__ */ D(ee, { size: 16 }),
73
+ path: q(R, "settings"),
74
+ icon: /* @__PURE__ */ O(D, { size: 16 }),
75
75
  order: 60
76
76
  }
77
- ]
77
+ ].filter((e) => !B || e.id === "bigconsole-dashboards")
78
78
  });
79
- }, [i, B]), m(() => {
79
+ }, [
80
+ i,
81
+ R,
82
+ B
83
+ ]), m(() => {
80
84
  if (a) return a([{
81
85
  id: "bigconsole-status",
82
86
  label: "Analytics Ready",
@@ -84,51 +88,55 @@ var I = i, L = r, R = a, z = /* @__PURE__ */ new Set(), B = (r) => {
84
88
  order: 15,
85
89
  section: "left"
86
90
  }]);
87
- }, [a]), m(() => (H && U && (M(H), P(U), G(!0)), () => {
88
- k(), j();
89
- }), [H, U]), m(() => {
90
- if (W) return;
91
+ }, [a]), m(() => {
92
+ B || V && H && (A(V), M(H), W(!0));
93
+ }, [
94
+ V,
95
+ H,
96
+ B
97
+ ]), m(() => {
98
+ if (U) return;
91
99
  let e = setTimeout(() => {
92
- W || q("BigConsole could not connect to the gateway. Please refresh the page or check your configuration.");
100
+ U || K("BigConsole could not connect to the gateway. Please refresh the page or check your configuration.");
93
101
  }, 1e4);
94
102
  return () => clearTimeout(e);
95
- }, [W]);
96
- let Y = p(async (e) => {
103
+ }, [U]);
104
+ let J = p(async (e) => {
97
105
  if (e.operation === "created") {
98
- if (!H) {
106
+ if (!V) {
99
107
  console.warn("[BigConsole] onWorkflowSaved: workspace client not ready");
100
108
  return;
101
109
  }
102
- if (!z.has(e.workflowKey)) {
103
- z.add(e.workflowKey);
110
+ if (!L.has(e.workflowKey)) {
111
+ L.add(e.workflowKey);
104
112
  try {
105
- if ((await H.query({
106
- query: I,
113
+ if ((await V.query({
114
+ query: P,
107
115
  variables: { key: e.workflowKey },
108
116
  fetchPolicy: "network-only"
109
117
  })).data?.workflowByKey) return;
110
- await H.mutate({
111
- mutation: L,
118
+ await V.mutate({
119
+ mutation: F,
112
120
  variables: { input: {
113
121
  name: e.name,
114
122
  key: e.workflowKey,
115
123
  description: e.description,
116
124
  externalWorkflowId: e.dbId
117
125
  } },
118
- refetchQueries: [{ query: R }]
126
+ refetchQueries: [{ query: I }]
119
127
  });
120
128
  } catch (e) {
121
129
  console.warn("[BigConsole] onWorkflowSaved: failed to create record:", e);
122
130
  } finally {
123
- z.delete(e.workflowKey);
131
+ L.delete(e.workflowKey);
124
132
  }
125
133
  }
126
134
  }
127
- }, [H]), X = g(Y);
135
+ }, [V]), Y = g(J);
128
136
  h(() => {
129
- X.current = Y;
130
- }, [Y]), m(() => {
131
- if (r.apiGatewayUrl) {
137
+ Y.current = J;
138
+ }, [J]), m(() => {
139
+ if (!B && r.apiGatewayUrl) {
132
140
  let e = r.apiGatewayUrl.endsWith("/") ? r.apiGatewayUrl.slice(0, -1) : r.apiGatewayUrl;
133
141
  console.log("[BigConsole] Setting FluidGrids config", {
134
142
  apiGatewayUrl: e,
@@ -136,83 +144,81 @@ var I = i, L = r, R = a, z = /* @__PURE__ */ new Set(), B = (r) => {
136
144
  tenantId: r.tenantId,
137
145
  productId: r.productId,
138
146
  productName: r.productName
139
- }), N({
147
+ }), j({
140
148
  apiGatewayUrl: e,
141
149
  authToken: r.authToken,
142
150
  workspaceId: r.workspaceId ?? "",
143
151
  tenantId: r.tenantId,
144
152
  productId: r.productId ?? "bigconsole",
145
153
  productName: r.productName ?? "BigConsole",
146
- onWorkflowSaved: (e) => X.current(e)
154
+ onWorkflowSaved: (e) => Y.current(e)
147
155
  });
148
156
  }
149
- return () => {
150
- A();
151
- };
152
157
  }, [
153
158
  r.apiGatewayUrl,
154
159
  r.authToken,
155
160
  r.workspaceId,
156
161
  r.tenantId,
157
162
  r.productId,
158
- r.productName
163
+ r.productName,
164
+ B
159
165
  ]);
160
- let [Z, Q] = v(), te = e((e) => e.isOpen), $ = e((e) => e.closeModal);
166
+ let [X, Z] = v(), Q = e((e) => e.isOpen), $ = e((e) => e.closeModal);
161
167
  l();
162
- let ne = p(() => {
168
+ let ee = p(() => {
163
169
  $();
164
- let e = new URLSearchParams(Z);
170
+ let e = new URLSearchParams(X);
165
171
  Array.from(e.keys()).forEach((t) => {
166
172
  (t.startsWith("filter_") || t.startsWith("ctx_")) && e.delete(t);
167
- }), Q(e, { replace: !0 }), document.activeElement instanceof HTMLElement && document.activeElement.blur();
173
+ }), Z(e, { replace: !0 }), document.activeElement instanceof HTMLElement && document.activeElement.blur();
168
174
  }, [
169
175
  $,
170
- Z,
171
- Q
172
- ]), re = p((e) => {
176
+ X,
177
+ Z
178
+ ]), te = p((e) => {
173
179
  let t = new URLSearchParams();
174
180
  for (let e of [
175
181
  "org",
176
182
  "workspace",
177
183
  "project"
178
184
  ]) {
179
- let n = Z.get(e);
185
+ let n = X.get(e);
180
186
  n && t.set(e, n);
181
187
  }
182
188
  let n = t.toString(), r = n ? `${e}?${n}` : e;
183
- if (V) {
184
- V(r);
189
+ if (z) {
190
+ z(r);
185
191
  return;
186
192
  }
187
193
  window.location.assign(r);
188
- }, [V, Z]), ie = p((e, t) => /* @__PURE__ */ D(u, {
194
+ }, [z, X]), ne = p((e, t) => /* @__PURE__ */ O(u, {
189
195
  dashboardId: e,
190
196
  params: t
191
197
  }), []);
192
- return W ? /* @__PURE__ */ D(y, {
193
- fallback: /* @__PURE__ */ D("div", {
198
+ return U ? /* @__PURE__ */ O(y, {
199
+ fallback: /* @__PURE__ */ O("div", {
194
200
  className: "p-6 text-center text-text-secondary",
195
201
  children: "Something went wrong loading BigConsole. Please refresh the page."
196
202
  }),
197
- children: /* @__PURE__ */ D(b, {
203
+ children: /* @__PURE__ */ O(b, {
198
204
  workspaceId: null,
199
205
  gateway: "global",
200
206
  defaultEnabled: !0,
201
- children: /* @__PURE__ */ D(x, {
207
+ children: /* @__PURE__ */ O(x, {
202
208
  scopeId: r.workspaceId ?? null,
203
209
  gateway: "workspace",
204
- children: /* @__PURE__ */ D(s, {
210
+ children: /* @__PURE__ */ O(s, {
205
211
  props: r,
206
- children: /* @__PURE__ */ D(c, {
207
- onViewBilling: re,
208
- children: /* @__PURE__ */ D(n, {
209
- basePath: B,
210
- children: /* @__PURE__ */ O(t, { children: [
211
- /* @__PURE__ */ D(d, {}),
212
- /* @__PURE__ */ D(o, { ...r }),
213
- te && /* @__PURE__ */ D(f, {
214
- onClose: ne,
215
- renderDashboard: ie
212
+ children: /* @__PURE__ */ O(c, {
213
+ onViewBilling: te,
214
+ children: /* @__PURE__ */ O(n, {
215
+ basePath: R,
216
+ children: /* @__PURE__ */ k(t, { children: [
217
+ !B && /* @__PURE__ */ O(d, {}),
218
+ /* @__PURE__ */ O(o, { ...r }),
219
+ Q && /* @__PURE__ */ O(f, {
220
+ onClose: ee,
221
+ renderDashboard: ne
216
222
  })
217
223
  ] })
218
224
  })
@@ -220,24 +226,24 @@ var I = i, L = r, R = a, z = /* @__PURE__ */ new Set(), B = (r) => {
220
226
  })
221
227
  })
222
228
  })
223
- }) : K ? /* @__PURE__ */ D("div", {
229
+ }) : G ? /* @__PURE__ */ O("div", {
224
230
  className: "flex h-full min-h-[200px] w-full items-center justify-center p-6",
225
- children: /* @__PURE__ */ O("div", {
231
+ children: /* @__PURE__ */ k("div", {
226
232
  className: "text-center",
227
- children: [/* @__PURE__ */ D("p", {
233
+ children: [/* @__PURE__ */ O("p", {
228
234
  className: "text-sm text-text-secondary mb-4",
229
- children: K
230
- }), /* @__PURE__ */ D("button", {
235
+ children: G
236
+ }), /* @__PURE__ */ O("button", {
231
237
  type: "button",
232
238
  onClick: () => window.location.reload(),
233
239
  className: "px-4 py-2 text-sm font-medium text-white bg-action-primary-bg hover:bg-action-primary-bg/90 rounded-md transition-colors",
234
240
  children: "Reload Page"
235
241
  })]
236
242
  })
237
- }) : /* @__PURE__ */ D("div", {
243
+ }) : /* @__PURE__ */ O("div", {
238
244
  className: "flex h-full min-h-[200px] w-full items-center justify-center",
239
- children: /* @__PURE__ */ D("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-gray-300 border-t-blue-600" })
245
+ children: /* @__PURE__ */ O("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-gray-300 border-t-blue-600" })
240
246
  });
241
247
  };
242
248
  //#endregion
243
- export { B as BigConsoleRoot };
249
+ export { R as BigConsoleRoot };