@gen-epix/ui-client-casedb 4.1.0 → 4.2.0

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 (41) hide show
  1. package/dist/_chunks/AddCasesToEventDialog.js +98 -98
  2. package/dist/_chunks/AddCasesToEventDialog.js.map +1 -1
  3. package/dist/_chunks/CaseContentForm.js +10 -10
  4. package/dist/_chunks/CaseInfoDialog.js +220 -220
  5. package/dist/_chunks/CaseInfoDialog.js.map +1 -1
  6. package/dist/_chunks/CaseSetInfoDialog.js +224 -224
  7. package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
  8. package/dist/_chunks/Dashboard.js +295 -295
  9. package/dist/_chunks/Dashboard.js.map +1 -1
  10. package/dist/_chunks/FindSimilarCasesDialog.js +76 -76
  11. package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
  12. package/dist/_chunks/LegendaItem.js.map +1 -1
  13. package/dist/_chunks/PanelSeparator.js +3 -3
  14. package/dist/_chunks/PanelSeparator.js.map +1 -1
  15. package/dist/_chunks/Upload.js +318 -318
  16. package/dist/_chunks/Upload.js.map +1 -1
  17. package/dist/_chunks/chunk-BV7QT456.js +1 -1
  18. package/dist/_chunks/chunk-BV7QT456.js.map +1 -1
  19. package/dist/_chunks/cloneDeep.js +1 -1
  20. package/dist/_chunks/cloneDeep.js.map +1 -1
  21. package/dist/_chunks/esm.js +3 -3
  22. package/dist/_chunks/esm.js.map +1 -1
  23. package/dist/_chunks/index.module.js +1 -1
  24. package/dist/_chunks/index.module.js.map +1 -1
  25. package/dist/_chunks/react.js +1 -1
  26. package/dist/_chunks/react.js.map +1 -1
  27. package/dist/_chunks/shallow.js +2 -2
  28. package/dist/_chunks/shallow.js.map +1 -1
  29. package/dist/_chunks/vanilla.js +1 -1
  30. package/dist/_chunks/vanilla.js.map +1 -1
  31. package/dist/_chunks/yup.js +24 -24
  32. package/dist/_chunks/yup.js.map +1 -1
  33. package/dist/components/form/fields/ArrangementEditor/index.js +30 -30
  34. package/dist/components/ui/CreateEventDialog/index.js +40 -40
  35. package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
  36. package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
  37. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +59 -59
  38. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
  39. package/package.json +68 -67
  40. package/dist/_chunks/index.esm.js +0 -1465
  41. package/dist/_chunks/index.esm.js.map +0 -1
@@ -10,34 +10,34 @@ import { WidgetUnavailable as l } from "../components/ui/WidgetUnavailable/index
10
10
  import { EventBusService as u } from "../classes/services/EventBusService/index.js";
11
11
  import { t as d } from "./shallow.js";
12
12
  import { t as f } from "./DashboardStoreLoader.js";
13
- import { c as p, n as m, o as h } from "./index.esm.js";
14
- import { DashboardEditCases as g } from "../components/ui/DashboardEditCases/index.js";
15
- import { t as _ } from "./CollectionIcon.js";
16
- import { t as v } from "./CaseSetInfoDialog.js";
17
- import { n as y } from "./CaseTypeInfoDialog.js";
18
- import { t as b } from "./AddCasesToEventDialog.js";
19
- import { n as x } from "./CaseInfoDialog.js";
20
- import { CreateEventDialog as S } from "../components/ui/CreateEventDialog/index.js";
21
- import { RemoveCasesFromEventDialog as C } from "../components/ui/RemoveCasesFromEventDialog/index.js";
22
- import { SequenceDownloadDialog as w } from "../components/ui/SequenceDownloadDialog/index.js";
23
- import { n as ee } from "./LegendaItem.js";
24
- import { Grouping as T } from "../components/ui/Grouping/index.js";
25
- import { t as te } from "./FindSimilarCasesDialog.js";
26
- import { t as E } from "./userProfileStoreContext.js";
27
- import { ArrangementEditor as D } from "../components/form/fields/ArrangementEditor/index.js";
28
- import { a as ne, i as O, n as re, o as k, r as A, t as ie } from "./PanelSeparator.js";
29
- import { WidgetHeaderIconButton as j } from "../components/ui/WidgetHeaderIconButton/index.js";
30
- import { WidgetMenu as M } from "../components/ui/WidgetMenu/index.js";
31
- import { Warning as ae } from "../components/ui/Warning/index.js";
32
- import { StringUtil as oe } from "@gen-epix/ui-core/utils/StringUtil";
33
- import { ConfigService as N } from "@gen-epix/ui-client-common/classes/services/ConfigService";
34
- import { Alert as se, AlertTitle as ce, Box as P, Button as F, ClickAwayListener as le, Divider as I, FormGroup as ue, IconButton as L, InputAdornment as de, Link as fe, ListItemIcon as pe, ListItemText as me, Menu as he, MenuItem as ge, MenuList as _e, OutlinedInput as ve, Paper as ye, Popper as be, Tooltip as xe, Typography as R, styled as Se, useTheme as Ce } from "@mui/material";
35
- import { Component as we, Fragment as Te, createContext as Ee, createElement as De, isValidElement as Oe, use as z, useCallback as B, useEffect as V, useId as ke, useImperativeHandle as Ae, useMemo as H, useRef as U, useState as W } from "react";
13
+ import { DashboardEditCases as p } from "../components/ui/DashboardEditCases/index.js";
14
+ import { t as m } from "./CollectionIcon.js";
15
+ import { t as h } from "./CaseSetInfoDialog.js";
16
+ import { n as g } from "./CaseTypeInfoDialog.js";
17
+ import { t as _ } from "./AddCasesToEventDialog.js";
18
+ import { n as v } from "./CaseInfoDialog.js";
19
+ import { CreateEventDialog as y } from "../components/ui/CreateEventDialog/index.js";
20
+ import { RemoveCasesFromEventDialog as b } from "../components/ui/RemoveCasesFromEventDialog/index.js";
21
+ import { SequenceDownloadDialog as x } from "../components/ui/SequenceDownloadDialog/index.js";
22
+ import { n as S } from "./LegendaItem.js";
23
+ import { Grouping as C } from "../components/ui/Grouping/index.js";
24
+ import { t as w } from "./FindSimilarCasesDialog.js";
25
+ import { t as T } from "./userProfileStoreContext.js";
26
+ import { ArrangementEditor as E } from "../components/form/fields/ArrangementEditor/index.js";
27
+ import { a as ee, i as D, n as te, o as O, r as k, t as ne } from "./PanelSeparator.js";
28
+ import { WidgetHeaderIconButton as A } from "../components/ui/WidgetHeaderIconButton/index.js";
29
+ import { WidgetMenu as j } from "../components/ui/WidgetMenu/index.js";
30
+ import { Warning as re } from "../components/ui/Warning/index.js";
31
+ import { StringUtil as ie } from "@gen-epix/ui-core/utils/StringUtil";
32
+ import { ConfigService as M } from "@gen-epix/ui-client-common/classes/services/ConfigService";
33
+ import { Alert as ae, AlertTitle as oe, Box as N, Button as P, ClickAwayListener as se, Divider as F, FormGroup as I, IconButton as L, InputAdornment as ce, Link as le, ListItemIcon as ue, ListItemText as de, Menu as fe, MenuItem as pe, MenuList as me, OutlinedInput as he, Paper as ge, Popper as _e, Tooltip as ve, Typography as R, styled as ye, useTheme as be } from "@mui/material";
34
+ import { Component as xe, Fragment as Se, createContext as Ce, createElement as we, isValidElement as Te, use as z, useCallback as B, useEffect as V, useId as Ee, useImperativeHandle as De, useMemo as H, useRef as U, useState as W } from "react";
36
35
  import { useTranslation as G } from "react-i18next";
37
- import { Fragment as je, jsx as K, jsxs as q } from "react/jsx-runtime";
38
- import { ResponseHandler as Me } from "@gen-epix/ui-client-common/components/ui/ResponseHandler";
39
- import { Box as Ne } from "@mui/system";
40
- import { STEPPER_DIRECTION as Pe, Stepper as Fe } from "@gen-epix/ui-core-components/components/Stepper";
36
+ import { Fragment as Oe, jsx as K, jsxs as q } from "react/jsx-runtime";
37
+ import { ResponseHandler as ke } from "@gen-epix/ui-client-common/components/ui/ResponseHandler";
38
+ import { Box as Ae } from "@mui/system";
39
+ import { STEPPER_DIRECTION as je, Stepper as Me } from "@gen-epix/ui-core-components/components/Stepper";
40
+ import { FormProvider as Ne, useForm as Pe, useWatch as Fe } from "react-hook-form";
41
41
  import { GenericForm as Ie } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
42
42
  import { TableFiltersSidebarItem as Le, TableFiltersSidebarItemIcon as Re } from "@gen-epix/ui-client-common/components/ui/Table";
43
43
  import { withDialog as ze } from "@gen-epix/ui-core-components/hoc/withDialog";
@@ -66,7 +66,7 @@ import ct from "@mui/icons-material/ZoomOutMap";
66
66
  import { MenuDataUtil as lt } from "@gen-epix/ui-client-common/utils/MenuDataUtil";
67
67
  //#region src/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.tsx
68
68
  var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i }) => {
69
- let { t: a } = G(), l = ke(), u = z(c), d = o(u, (e) => e.setFindSimilarCasesResults), f = H(() => r.getTreeConfigurations(i.completeCaseType), [i.completeCaseType]), p = o(u, (e) => e.findSimilarCasesResults), [m, h] = W(p);
69
+ let { t: a } = G(), l = Ee(), u = z(c), d = o(u, (e) => e.setFindSimilarCasesResults), f = H(() => r.getTreeConfigurations(i.completeCaseType), [i.completeCaseType]), p = o(u, (e) => e.findSimilarCasesResults), [m, h] = W(p);
70
70
  V(() => {
71
71
  n(a`Remove similar cases from results`);
72
72
  }, [a, n]);
@@ -115,12 +115,12 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
115
115
  let y = B((e) => {
116
116
  h(s(m, (t) => (t.splice(e, 1), t)));
117
117
  }, [m]), b = H(() => [{
118
- content: /* @__PURE__ */ K(P, {
118
+ content: /* @__PURE__ */ K(N, {
119
119
  sx: {
120
120
  marginBottom: 2,
121
121
  marginTop: 1
122
122
  },
123
- children: /* @__PURE__ */ K(F, {
123
+ children: /* @__PURE__ */ K(P, {
124
124
  color: "primary",
125
125
  onClick: v,
126
126
  variant: "outlined",
@@ -131,32 +131,32 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
131
131
  key: "start",
132
132
  label: a("Result without similar cases ({{numberOfCases}} cases)", { numberOfCases: p?.[0]?.originalCaseIds.length || 0 })
133
133
  }, ...m.map((e, t) => ({
134
- content: /* @__PURE__ */ q(P, { children: [/* @__PURE__ */ q(P, {
134
+ content: /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ q(N, {
135
135
  component: "ul",
136
136
  children: [
137
- /* @__PURE__ */ K(P, {
137
+ /* @__PURE__ */ K(N, {
138
138
  component: "li",
139
139
  children: a("Tree: {{treeLabel}}", { treeLabel: f.find((t) => t.col.id === e.colId)?.col?.label || e.colId })
140
140
  }),
141
- /* @__PURE__ */ K(P, {
141
+ /* @__PURE__ */ K(N, {
142
142
  component: "li",
143
143
  children: a("Distance: {{distance}}", { distance: e.distance })
144
144
  }),
145
- /* @__PURE__ */ K(P, {
145
+ /* @__PURE__ */ K(N, {
146
146
  component: "li",
147
147
  children: a("Found similar cases: {{foundCases}}", { foundCases: e.similarCaseIds.length })
148
148
  }),
149
- /* @__PURE__ */ K(P, {
149
+ /* @__PURE__ */ K(N, {
150
150
  component: "li",
151
151
  children: a("New number of cases: {{numberOfCases}}", { numberOfCases: e.similarCaseIds.length + e.originalCaseIds.length })
152
152
  })
153
153
  ]
154
- }), /* @__PURE__ */ K(P, {
154
+ }), /* @__PURE__ */ K(N, {
155
155
  sx: {
156
156
  marginBottom: 2,
157
157
  marginTop: 1
158
158
  },
159
- children: /* @__PURE__ */ K(F, {
159
+ children: /* @__PURE__ */ K(P, {
160
160
  color: "primary",
161
161
  disabled: t !== m.length - 1,
162
162
  onClick: () => y(t),
@@ -175,11 +175,11 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
175
175
  a,
176
176
  f
177
177
  ]);
178
- return /* @__PURE__ */ q(P, {
178
+ return /* @__PURE__ */ q(N, {
179
179
  sx: { position: "relative" },
180
- children: [b.length === 0 && /* @__PURE__ */ K(R, { children: a("No similar cases results to remove.") }), b.length > 0 && /* @__PURE__ */ K(Fe, {
180
+ children: [b.length === 0 && /* @__PURE__ */ K(R, { children: a("No similar cases results to remove.") }), b.length > 0 && /* @__PURE__ */ K(Me, {
181
181
  activeStep: b[b.length - 1].key,
182
- direction: Pe.VERTICAL,
182
+ direction: je.VERTICAL,
183
183
  hideCompletedIndicator: !0,
184
184
  steps: b
185
185
  })]
@@ -190,36 +190,36 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
190
190
  maxWidth: "lg",
191
191
  testId: "RemoveFindSimilarCasesResultDialog"
192
192
  }), dt = () => {
193
- let { t: e } = G(), t = z(E), n = o(t, d((e) => e.resetDashboardGeneralSettings)), r = o(t, d((e) => e.dashboardGeneralSettings)), i = o(t, d((e) => e.setDashboardGeneralSettings)), a = h({
193
+ let { t: e } = G(), t = z(T), n = o(t, d((e) => e.resetDashboardGeneralSettings)), r = o(t, d((e) => e.dashboardGeneralSettings)), i = o(t, d((e) => e.setDashboardGeneralSettings)), a = Pe({
194
194
  defaultValues: r,
195
195
  values: r
196
- }), { control: s } = a, c = p({ control: s }), l = B(() => {
196
+ }), { control: s } = a, c = Fe({ control: s }), l = B(() => {
197
197
  n();
198
198
  }, [n]);
199
199
  V(() => {
200
200
  i(c);
201
201
  }, [c, i]);
202
202
  let u = B(() => {}, []);
203
- return /* @__PURE__ */ q(m, {
203
+ return /* @__PURE__ */ q(Ne, {
204
204
  ...a,
205
205
  children: [/* @__PURE__ */ K("form", {
206
206
  autoComplete: "off",
207
207
  onSubmit: u,
208
- children: /* @__PURE__ */ K(P, {
208
+ children: /* @__PURE__ */ K(N, {
209
209
  sx: { marginY: 1 },
210
- children: /* @__PURE__ */ K(ue, { children: /* @__PURE__ */ K(Qe, {
210
+ children: /* @__PURE__ */ K(I, { children: /* @__PURE__ */ K(Qe, {
211
211
  label: e`Enable highlighting across widgets`,
212
212
  name: "isHighlightingEnabled"
213
213
  }) })
214
214
  })
215
- }), /* @__PURE__ */ K(P, {
215
+ }), /* @__PURE__ */ K(N, {
216
216
  sx: {
217
217
  display: "flex",
218
218
  justifyContent: "flex-end"
219
219
  },
220
- children: /* @__PURE__ */ K(P, {
220
+ children: /* @__PURE__ */ K(N, {
221
221
  sx: { marginX: 1 },
222
- children: /* @__PURE__ */ K(F, {
222
+ children: /* @__PURE__ */ K(P, {
223
223
  color: "primary",
224
224
  onClick: l,
225
225
  startIcon: /* @__PURE__ */ K(Ze, {}),
@@ -230,40 +230,40 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
230
230
  })]
231
231
  });
232
232
  }, ft = /* @__PURE__ */ e(t(), 1), pt = ({ onReset: e }) => {
233
- let { t } = G(), n = z(E), r = o(n, d((e) => e.resetDashboardLayout)), a = o(n, d((e) => e.dashboardArrangementConfig)), s = o(n, d((e) => e.setDashboardArrangementConfig)), c = h({ values: { arrangementKey: a.arrangementKey } }), { control: l } = c, u = p({ control: l }), f = B(() => {
233
+ let { t } = G(), n = z(T), r = o(n, d((e) => e.resetDashboardLayout)), a = o(n, d((e) => e.dashboardArrangementConfig)), s = o(n, d((e) => e.setDashboardArrangementConfig)), c = Pe({ values: { arrangementKey: a.arrangementKey } }), { control: l } = c, u = Fe({ control: l }), f = B(() => {
234
234
  r(), e && e();
235
235
  }, [e, r]);
236
236
  V(() => {
237
237
  let { arrangementKey: e } = u;
238
238
  if (!e) return;
239
- let t = N.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[e];
239
+ let t = M.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[e];
240
240
  t && s({
241
241
  arrangementKey: e,
242
- arrangementWidgetAssignments: i.getArrangementWidgetAssignments(t, N.getInstance().config.dashboard.DEFAULT_WIDGET_ASSIGNMENTS[e])
242
+ arrangementWidgetAssignments: i.getArrangementWidgetAssignments(t, M.getInstance().config.dashboard.DEFAULT_WIDGET_ASSIGNMENTS[e])
243
243
  });
244
244
  }, [u, s]);
245
- let g = ft.default;
246
- return /* @__PURE__ */ q(m, {
245
+ let p = ft.default;
246
+ return /* @__PURE__ */ q(Ne, {
247
247
  ...c,
248
248
  children: [/* @__PURE__ */ K("form", {
249
249
  autoComplete: "off",
250
- onSubmit: g,
251
- children: /* @__PURE__ */ K(P, {
250
+ onSubmit: p,
251
+ children: /* @__PURE__ */ K(N, {
252
252
  sx: { marginY: 1 },
253
- children: /* @__PURE__ */ K(ue, { children: /* @__PURE__ */ K(D, {
253
+ children: /* @__PURE__ */ K(I, { children: /* @__PURE__ */ K(E, {
254
254
  label: t`Arrangement`,
255
255
  name: "arrangementKey",
256
- options: N.getInstance().config.dashboard.ARRANGEMENT_OPTIONS
256
+ options: M.getInstance().config.dashboard.ARRANGEMENT_OPTIONS
257
257
  }) })
258
258
  })
259
- }), /* @__PURE__ */ K(P, {
259
+ }), /* @__PURE__ */ K(N, {
260
260
  sx: {
261
261
  display: "flex",
262
262
  justifyContent: "flex-end"
263
263
  },
264
- children: /* @__PURE__ */ K(P, {
264
+ children: /* @__PURE__ */ K(N, {
265
265
  sx: { marginX: 1 },
266
- children: /* @__PURE__ */ K(F, {
266
+ children: /* @__PURE__ */ K(P, {
267
267
  color: "primary",
268
268
  onClick: f,
269
269
  startIcon: /* @__PURE__ */ K(Ze, {}),
@@ -274,41 +274,41 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
274
274
  })]
275
275
  });
276
276
  }, mt = ({ widgetName: e }) => {
277
- let { t } = G(), n = z(E), r = ke(), i = o(n, d((e) => e.resetWidgetSettings)), a = o(n, d((e) => e.setWidgetSettings)), s = N.getInstance().config.dashboard.WIDGETS[e].configFormFieldsDefinitions, c = N.getInstance().config.dashboard.WIDGETS[e].configDefaultValues, l = H(() => {
277
+ let { t } = G(), n = z(T), r = Ee(), i = o(n, d((e) => e.resetWidgetSettings)), a = o(n, d((e) => e.setWidgetSettings)), s = M.getInstance().config.dashboard.WIDGETS[e].configFormFieldsDefinitions, c = M.getInstance().config.dashboard.WIDGETS[e].configDefaultValues, l = H(() => {
278
278
  if (s) return Be.createYupSchemaFromFormFieldDefinitions(s);
279
- }, [s]), u = h({
279
+ }, [s]), u = Pe({
280
280
  defaultValues: c,
281
281
  values: c
282
- }), { control: f } = u, m = p({ control: f }), g = B(() => {
282
+ }), { control: f } = u, p = Fe({ control: f }), m = B(() => {
283
283
  i(e);
284
284
  }, [i, e]);
285
285
  V(() => {
286
- a(e, m);
286
+ a(e, p);
287
287
  }, [
288
- m,
288
+ p,
289
289
  a,
290
290
  e
291
291
  ]);
292
- let _ = B(() => {}, []);
293
- return /* @__PURE__ */ q(P, { children: [/* @__PURE__ */ K(P, {
292
+ let h = B(() => {}, []);
293
+ return /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ K(N, {
294
294
  sx: { marginY: 1 },
295
295
  children: /* @__PURE__ */ K(Ie, {
296
296
  formFieldDefinitions: s,
297
297
  formId: r,
298
298
  formMethods: u,
299
- onSubmit: _,
299
+ onSubmit: h,
300
300
  schema: l
301
301
  })
302
- }), /* @__PURE__ */ K(P, {
302
+ }), /* @__PURE__ */ K(N, {
303
303
  sx: {
304
304
  display: "flex",
305
305
  justifyContent: "flex-end"
306
306
  },
307
- children: /* @__PURE__ */ K(P, {
307
+ children: /* @__PURE__ */ K(N, {
308
308
  sx: { marginX: 1 },
309
- children: /* @__PURE__ */ K(F, {
309
+ children: /* @__PURE__ */ K(P, {
310
310
  color: "primary",
311
- onClick: g,
311
+ onClick: m,
312
312
  startIcon: /* @__PURE__ */ K(Ze, {}),
313
313
  variant: "outlined",
314
314
  children: t("Reset {widgetName} settings", { widgetName: e })
@@ -316,7 +316,7 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
316
316
  })
317
317
  })] });
318
318
  }, ht = Xe, gt = ({ onReset: e }) => {
319
- let t = Ce(), { t: n } = G(), r = H(() => {
319
+ let t = be(), { t: n } = G(), r = H(() => {
320
320
  let t = [{
321
321
  component: /* @__PURE__ */ K(pt, { onReset: e }),
322
322
  label: n`Dashboard layout`
@@ -324,36 +324,36 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
324
324
  component: /* @__PURE__ */ K(dt, {}),
325
325
  label: n`General`
326
326
  }];
327
- return Object.entries(N.getInstance().config.dashboard.WIDGETS).forEach(([e, n]) => {
327
+ return Object.entries(M.getInstance().config.dashboard.WIDGETS).forEach(([e, n]) => {
328
328
  n.configFormFieldsDefinitions && t.push({
329
329
  component: /* @__PURE__ */ K(mt, { widgetName: e }),
330
330
  label: n.widgetLabel
331
331
  });
332
332
  }), t;
333
333
  }, [e, n]);
334
- return /* @__PURE__ */ K(P, {
334
+ return /* @__PURE__ */ K(N, {
335
335
  sx: { width: t.spacing(59) },
336
- children: r.map(({ component: e, label: t }, n) => /* @__PURE__ */ q(P, {
336
+ children: r.map(({ component: e, label: t }, n) => /* @__PURE__ */ q(N, {
337
337
  sx: {
338
338
  marginTop: n === 0 ? 0 : 2,
339
339
  paddingTop: n === r.length - 1 ? 0 : 1
340
340
  },
341
341
  children: [
342
- /* @__PURE__ */ K(P, {
342
+ /* @__PURE__ */ K(N, {
343
343
  sx: { marginBottom: 2 },
344
344
  children: /* @__PURE__ */ K(R, {
345
345
  variant: "h5",
346
346
  children: t
347
347
  })
348
348
  }),
349
- /* @__PURE__ */ K(P, {
349
+ /* @__PURE__ */ K(N, {
350
350
  sx: {
351
351
  marginBottom: 2,
352
352
  marginRight: 1
353
353
  },
354
354
  children: e
355
355
  }),
356
- /* @__PURE__ */ K(I, {
356
+ /* @__PURE__ */ K(F, {
357
357
  flexItem: !0,
358
358
  orientation: "horizontal",
359
359
  sx: {
@@ -377,10 +377,10 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
377
377
  width: 60,
378
378
  children: n && /* @__PURE__ */ K(gt, { onReset: t })
379
379
  });
380
- }, vt = Ee(null), yt = {
380
+ }, vt = Ce(null), yt = {
381
381
  didCatch: !1,
382
382
  error: null
383
- }, bt = class extends we {
383
+ }, bt = class extends xe {
384
384
  constructor(e) {
385
385
  super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = yt;
386
386
  }
@@ -416,11 +416,11 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
416
416
  resetErrorBoundary: this.resetErrorBoundary
417
417
  };
418
418
  if (typeof t == "function") o = t(e);
419
- else if (n) o = De(n, e);
419
+ else if (n) o = we(n, e);
420
420
  else if (r !== void 0) o = r;
421
421
  else throw a;
422
422
  }
423
- return De(vt.Provider, { value: {
423
+ return we(vt.Provider, { value: {
424
424
  didCatch: i,
425
425
  error: a,
426
426
  resetErrorBoundary: this.resetErrorBoundary
@@ -432,8 +432,8 @@ function xt(e = [], t = []) {
432
432
  }
433
433
  //#endregion
434
434
  //#region src/components/ui/Dashboard/DashboardZoneContext.ts
435
- var St = Ee(null), Ct = () => {
436
- let { t: e } = G(), [t, n] = W(null), r = z(E), a = z(St), s = o(r, (e) => e.dashboardArrangementConfig), c = o(r, (e) => e.setDashboardArrangementConfig), l = N.getInstance().config.dashboard.WIDGETS, u = a ? i.getAvailableWidgets(s, a, l) : [], d = B((e) => {
435
+ var St = Ce(null), Ct = () => {
436
+ let { t: e } = G(), [t, n] = W(null), r = z(T), a = z(St), s = o(r, (e) => e.dashboardArrangementConfig), c = o(r, (e) => e.setDashboardArrangementConfig), l = M.getInstance().config.dashboard.WIDGETS, u = a ? i.getAvailableWidgets(s, a, l) : [], d = B((e) => {
437
437
  n(e.currentTarget);
438
438
  }, []), f = B(() => {
439
439
  n(null);
@@ -455,7 +455,7 @@ var St = Ee(null), Ct = () => {
455
455
  let t = e.currentTarget.dataset.widgetName;
456
456
  t && p(t);
457
457
  }, [p]);
458
- return /* @__PURE__ */ q(P, {
458
+ return /* @__PURE__ */ q(N, {
459
459
  sx: {
460
460
  alignItems: "center",
461
461
  display: "flex",
@@ -463,19 +463,19 @@ var St = Ee(null), Ct = () => {
463
463
  justifyContent: "center",
464
464
  width: "100%"
465
465
  },
466
- children: [/* @__PURE__ */ K(F, {
466
+ children: [/* @__PURE__ */ K(P, {
467
467
  onClick: d,
468
468
  startIcon: /* @__PURE__ */ K($e, {}),
469
469
  variant: "outlined",
470
470
  children: e("Add a widget")
471
- }), /* @__PURE__ */ q(he, {
471
+ }), /* @__PURE__ */ q(fe, {
472
472
  anchorEl: t,
473
473
  onClose: f,
474
474
  open: !!t,
475
- children: [u.length === 0 && /* @__PURE__ */ K(ge, {
475
+ children: [u.length === 0 && /* @__PURE__ */ K(pe, {
476
476
  disabled: !0,
477
477
  children: e("No widgets available")
478
- }), u.map((e) => /* @__PURE__ */ K(ge, {
478
+ }), u.map((e) => /* @__PURE__ */ K(pe, {
479
479
  "data-widget-name": e,
480
480
  onClick: m,
481
481
  children: l[e].widgetLabel
@@ -488,55 +488,55 @@ var St = Ee(null), Ct = () => {
488
488
  e.getState().setDashboardPanelConfiguration(`${t}-${n}`, r);
489
489
  }
490
490
  }), Tt = ({ disabled: e, ref: t }) => {
491
- let n = z(E), r = z(c), a = o(n, (e) => e.dashboardArrangementConfig), s = o(r, (e) => e.expandedZone), { MIN_PANEL_HEIGHT: u, MIN_PANEL_WIDTH: d } = N.getInstance().config.dashboard, { arrangementKey: f, arrangementWidgetAssignments: p } = a, m = N.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[f], h = f, g = H(() => m?.cells ? i.getArrangementGroupInfos(m, h) : [], [m, h]), _ = H(() => wt(n, "epi-dashboard"), [n]), v = O({
491
+ let n = z(T), r = z(c), a = o(n, (e) => e.dashboardArrangementConfig), s = o(r, (e) => e.expandedZone), { MIN_PANEL_HEIGHT: u, MIN_PANEL_WIDTH: d } = M.getInstance().config.dashboard, { arrangementKey: f, arrangementWidgetAssignments: p } = a, m = M.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[f], h = f, g = H(() => m?.cells ? i.getArrangementGroupInfos(m, h) : [], [m, h]), _ = H(() => wt(n, "epi-dashboard"), [n]), v = D({
492
492
  groupId: g[0]?.groupId ?? `${h}-ph-0`,
493
493
  storage: _
494
- }), y = O({
494
+ }), y = D({
495
495
  groupId: g[1]?.groupId ?? `${h}-ph-1`,
496
496
  storage: _
497
- }), b = O({
497
+ }), b = D({
498
498
  groupId: g[2]?.groupId ?? `${h}-ph-2`,
499
499
  storage: _
500
- }), x = O({
500
+ }), x = D({
501
501
  groupId: g[3]?.groupId ?? `${h}-ph-3`,
502
502
  storage: _
503
- }), S = O({
503
+ }), S = D({
504
504
  groupId: g[4]?.groupId ?? `${h}-ph-4`,
505
505
  storage: _
506
- }), C = O({
506
+ }), C = D({
507
507
  groupId: g[5]?.groupId ?? `${h}-ph-5`,
508
508
  storage: _
509
- }), w = O({
509
+ }), w = D({
510
510
  groupId: g[6]?.groupId ?? `${h}-ph-6`,
511
511
  storage: _
512
- }), ee = O({
512
+ }), E = D({
513
513
  groupId: g[7]?.groupId ?? `${h}-ph-7`,
514
514
  storage: _
515
- }), T = O({
515
+ }), A = D({
516
516
  groupId: g[8]?.groupId ?? `${h}-ph-8`,
517
517
  storage: _
518
- }), te = O({
518
+ }), j = D({
519
519
  groupId: g[9]?.groupId ?? `${h}-ph-9`,
520
520
  storage: _
521
- }), D = O({
521
+ }), re = D({
522
522
  groupId: g[10]?.groupId ?? `${h}-ph-10`,
523
523
  storage: _
524
- }), j = O({
524
+ }), ae = D({
525
525
  groupId: g[11]?.groupId ?? `${h}-ph-11`,
526
526
  storage: _
527
- }), M = O({
527
+ }), oe = D({
528
528
  groupId: g[12]?.groupId ?? `${h}-ph-12`,
529
529
  storage: _
530
- }), ae = O({
530
+ }), N = D({
531
531
  groupId: g[13]?.groupId ?? `${h}-ph-13`,
532
532
  storage: _
533
- }), se = O({
533
+ }), P = D({
534
534
  groupId: g[14]?.groupId ?? `${h}-ph-14`,
535
535
  storage: _
536
- }), ce = O({
536
+ }), se = D({
537
537
  groupId: g[15]?.groupId ?? `${h}-ph-15`,
538
538
  storage: _
539
- }), P = k(), F = k(), le = k(), I = k(), ue = k(), L = k(), de = k(), fe = k(), pe = k(), me = k(), he = k(), ge = k(), _e = k(), ve = k(), ye = k(), be = k(), xe = [
539
+ }), F = O(), I = O(), L = O(), ce = O(), le = O(), ue = O(), de = O(), fe = O(), pe = O(), me = O(), he = O(), ge = O(), _e = O(), ve = O(), R = O(), ye = O(), be = [
540
540
  v,
541
541
  y,
542
542
  b,
@@ -544,22 +544,22 @@ var St = Ee(null), Ct = () => {
544
544
  S,
545
545
  C,
546
546
  w,
547
- ee,
548
- T,
549
- te,
550
- D,
547
+ E,
548
+ A,
551
549
  j,
552
- M,
550
+ re,
553
551
  ae,
554
- se,
555
- ce
556
- ], R = H(() => [
552
+ oe,
553
+ N,
557
554
  P,
555
+ se
556
+ ], xe = H(() => [
558
557
  F,
559
- le,
560
558
  I,
561
- ue,
562
559
  L,
560
+ ce,
561
+ le,
562
+ ue,
563
563
  de,
564
564
  fe,
565
565
  pe,
@@ -568,15 +568,15 @@ var St = Ee(null), Ct = () => {
568
568
  ge,
569
569
  _e,
570
570
  ve,
571
- ye,
572
- be
571
+ R,
572
+ ye
573
573
  ], [
574
- P,
575
574
  F,
576
- le,
577
575
  I,
578
- ue,
579
576
  L,
577
+ ce,
578
+ le,
579
+ ue,
580
580
  de,
581
581
  fe,
582
582
  pe,
@@ -585,12 +585,12 @@ var St = Ee(null), Ct = () => {
585
585
  ge,
586
586
  _e,
587
587
  ve,
588
- ye,
589
- be
588
+ R,
589
+ ye
590
590
  ]);
591
- Ae(t, () => ({ reset: () => {
591
+ De(t, () => ({ reset: () => {
592
592
  try {
593
- R.forEach((e) => {
593
+ xe.forEach((e) => {
594
594
  if (e.current) {
595
595
  let t = e.current.getLayout(), n = Object.keys(t);
596
596
  if (n.length > 0) {
@@ -600,25 +600,25 @@ var St = Ee(null), Ct = () => {
600
600
  }
601
601
  });
602
602
  } catch {}
603
- } }), [R]);
604
- let Se = H(() => {
605
- let e = N.getInstance().config.dashboard.WIDGETS;
603
+ } }), [xe]);
604
+ let Ce = H(() => {
605
+ let e = M.getInstance().config.dashboard.WIDGETS;
606
606
  return Object.fromEntries(Object.entries(e).map(([e, { component: t, widgetLabel: n }]) => [e, /* @__PURE__ */ K(bt, {
607
607
  fallback: /* @__PURE__ */ K(l, { widgetLabel: n }),
608
- children: De(t)
608
+ children: we(t)
609
609
  }, e)]));
610
610
  }, []);
611
611
  if (s) {
612
612
  let e = p[s];
613
613
  return /* @__PURE__ */ K(St, {
614
614
  value: s,
615
- children: Se[e] ?? null
615
+ children: Ce[e] ?? null
616
616
  });
617
617
  }
618
618
  if (!m?.cells) return null;
619
- let Ce = { value: 0 }, we = (t) => {
620
- let n = Ce.value++, r = g[n]?.groupId ?? `${h}-group-${n}`, i = t.orientation, { defaultLayout: a, onLayoutChanged: o } = xe[n] ?? {}, s = R[n];
621
- return /* @__PURE__ */ K(ne, {
619
+ let Te = { value: 0 }, B = (t) => {
620
+ let n = Te.value++, r = g[n]?.groupId ?? `${h}-group-${n}`, i = t.orientation, { defaultLayout: a, onLayoutChanged: o } = be[n] ?? {}, s = xe[n];
621
+ return /* @__PURE__ */ K(ee, {
622
622
  defaultLayout: a,
623
623
  groupRef: s,
624
624
  id: r,
@@ -630,64 +630,64 @@ var St = Ee(null), Ct = () => {
630
630
  },
631
631
  children: t.cells.map((n, a) => {
632
632
  let o = a === t.cells.length - 1, s = `${r}-panel-${a}`;
633
- return /* @__PURE__ */ q(Te, { children: [
634
- /* @__PURE__ */ K(A, {
633
+ return /* @__PURE__ */ q(Se, { children: [
634
+ /* @__PURE__ */ K(k, {
635
635
  defaultSize: n.size,
636
636
  id: s,
637
637
  minSize: i === "vertical" ? u : d,
638
638
  style: { overflow: "hidden" },
639
639
  children: "name" in n ? /* @__PURE__ */ K(St, {
640
640
  value: n.name,
641
- children: Se[p[n.name]] ?? /* @__PURE__ */ K(Ct, {})
642
- }) : we(n)
641
+ children: Ce[p[n.name]] ?? /* @__PURE__ */ K(Ct, {})
642
+ }) : B(n)
643
643
  }),
644
- !o && i === "horizontal" && /* @__PURE__ */ K(ie, { disabled: e }),
645
- !o && i === "vertical" && /* @__PURE__ */ K(re, { disabled: e })
646
- ] }, "name" in n ? n.name : oe.createHash(JSON.stringify(n)));
644
+ !o && i === "horizontal" && /* @__PURE__ */ K(ne, { disabled: e }),
645
+ !o && i === "vertical" && /* @__PURE__ */ K(te, { disabled: e })
646
+ ] }, "name" in n ? n.name : ie.createHash(JSON.stringify(n)));
647
647
  })
648
648
  });
649
649
  };
650
- return we(m);
650
+ return B(m);
651
651
  }, Et = Je, Dt = () => {
652
- let e = Ce(), { t } = G(), [n, r] = W([]);
652
+ let e = be(), { t } = G(), [n, r] = W([]);
653
653
  V(() => {
654
654
  let e = (e) => {
655
- e?.zone && r((t) => e.items === null ? t.filter((t) => t.zone !== e.zone) : [...t.filter((t) => t.zone !== e.zone), e].sort((e, t) => N.getInstance().config.dashboard.DOWNLOAD_SECTION_ORDER.indexOf(e.zone) - N.getInstance().config.dashboard.DOWNLOAD_SECTION_ORDER.indexOf(t.zone)));
655
+ e?.zone && r((t) => e.items === null ? t.filter((t) => t.zone !== e.zone) : [...t.filter((t) => t.zone !== e.zone), e].sort((e, t) => M.getInstance().config.dashboard.DOWNLOAD_SECTION_ORDER.indexOf(e.zone) - M.getInstance().config.dashboard.DOWNLOAD_SECTION_ORDER.indexOf(t.zone)));
656
656
  }, t = u.getInstance();
657
657
  return t.addEventListener("onDownloadOptionsChanged", e), t.emit("onDownloadOptionsRequested"), () => {
658
658
  t.removeEventListener("onDownloadOptionsChanged", e);
659
659
  };
660
660
  }, []);
661
- let i = B((e, t) => /* @__PURE__ */ K(P, {
661
+ let i = B((e, t) => /* @__PURE__ */ K(N, {
662
662
  sx: { marginLeft: 1 },
663
- children: t || e.disabled || !e.callback ? /* @__PURE__ */ K(R, { children: e.label }) : /* @__PURE__ */ K(fe, {
663
+ children: t || e.disabled || !e.callback ? /* @__PURE__ */ K(R, { children: e.label }) : /* @__PURE__ */ K(le, {
664
664
  component: "button",
665
665
  onClick: () => e.callback(),
666
666
  tabIndex: 0,
667
667
  children: e.label
668
668
  })
669
- }, e.label), []), a = B((e) => /* @__PURE__ */ q(P, { children: [/* @__PURE__ */ K(R, {
669
+ }, e.label), []), a = B((e) => /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ K(R, {
670
670
  variant: "h6",
671
671
  children: e.label
672
672
  }), e.items.map((t) => i(t, e.disabled))] }, e.label), [i]);
673
- return /* @__PURE__ */ K(P, {
673
+ return /* @__PURE__ */ K(N, {
674
674
  sx: { width: e.spacing(59) },
675
- children: n.map((n) => /* @__PURE__ */ q(P, {
675
+ children: n.map((n) => /* @__PURE__ */ q(N, {
676
676
  sx: {
677
677
  borderBottom: `1px solid ${e.palette.divider}`,
678
678
  padding: e.spacing(1)
679
679
  },
680
680
  children: [
681
- /* @__PURE__ */ K(P, { children: /* @__PURE__ */ K(R, {
681
+ /* @__PURE__ */ K(N, { children: /* @__PURE__ */ K(R, {
682
682
  color: n.disabled ? e.palette.text.disabled : void 0,
683
683
  variant: "h5",
684
684
  children: n.zoneLabel
685
685
  }) }),
686
- n.disabled && /* @__PURE__ */ K(P, {
686
+ n.disabled && /* @__PURE__ */ K(N, {
687
687
  sx: { padding: e.spacing(1) },
688
688
  children: /* @__PURE__ */ K(R, { children: t`No data available for download.` })
689
689
  }),
690
- !n.disabled && n.items.map((e) => "items" in e && e.disabled ? null : /* @__PURE__ */ K(Te, { children: "items" in e ? a(e) : i(e) }, e.label))
690
+ !n.disabled && n.items.map((e) => "items" in e && e.disabled ? null : /* @__PURE__ */ K(Se, { children: "items" in e ? a(e) : i(e) }, e.label))
691
691
  ]
692
692
  }, n.zone))
693
693
  });
@@ -1917,30 +1917,30 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1917
1917
  }, [t, n]), l = B((e) => {
1918
1918
  e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), r());
1919
1919
  }, [r]);
1920
- return /* @__PURE__ */ K(be, {
1920
+ return /* @__PURE__ */ K(_e, {
1921
1921
  anchorEl: e,
1922
1922
  open: i,
1923
1923
  placement: "bottom-end",
1924
1924
  sx: { zIndex: (e) => e.zIndex.modal + 1 },
1925
- children: /* @__PURE__ */ K(le, {
1925
+ children: /* @__PURE__ */ K(se, {
1926
1926
  onClickAway: n,
1927
- children: /* @__PURE__ */ q(ye, {
1927
+ children: /* @__PURE__ */ q(ge, {
1928
1928
  elevation: 8,
1929
1929
  sx: { width: 280 },
1930
1930
  ...J.createAttributes("DashboardSearchSettings"),
1931
1931
  children: [
1932
- /* @__PURE__ */ K(_e, {
1932
+ /* @__PURE__ */ K(me, {
1933
1933
  autoFocusItem: i,
1934
1934
  onKeyDown: l,
1935
- children: s.map((e) => /* @__PURE__ */ q(ge, {
1935
+ children: s.map((e) => /* @__PURE__ */ q(pe, {
1936
1936
  "data-search-mode": e.searchMode,
1937
1937
  onClick: c,
1938
1938
  selected: e.searchMode === a,
1939
- children: [/* @__PURE__ */ K(pe, { children: e.searchMode === a && /* @__PURE__ */ K(at, { fontSize: "small" }) }), /* @__PURE__ */ K(me, { children: e.label })]
1939
+ children: [/* @__PURE__ */ K(ue, { children: e.searchMode === a && /* @__PURE__ */ K(at, { fontSize: "small" }) }), /* @__PURE__ */ K(de, { children: e.label })]
1940
1940
  }, e.searchMode))
1941
1941
  }),
1942
- /* @__PURE__ */ K(I, {}),
1943
- /* @__PURE__ */ q(P, {
1942
+ /* @__PURE__ */ K(F, {}),
1943
+ /* @__PURE__ */ q(N, {
1944
1944
  sx: { p: 1.5 },
1945
1945
  children: [
1946
1946
  /* @__PURE__ */ K(R, {
@@ -1975,12 +1975,12 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1975
1975
  default: return `'${e}`;
1976
1976
  }
1977
1977
  }, er = () => {
1978
- let e = U(null), t = U(null), r = U(null), i = U(!1), s = U(null), l = U(null), u = U(null), d = z(c), f = o(d, (e) => e.sortedData), p = o(d, (e) => e.completeCaseType), m = Ce(), { t: h } = G(), [g, _] = W(""), [v, y] = W(null), [b, x] = W([]), [S, C] = W(!1), [w, T] = W(-1), [te, E] = W("include-match"), [D, ne] = W(null), O = z(ee), re = null;
1979
- g && (re = b.length ? w < 0 ? h("{{numResults}} results", { numResults: b.length }) : h("{{current}}/{{numResults}} results", {
1980
- current: w + 1,
1978
+ let e = U(null), t = U(null), r = U(null), i = U(!1), s = U(null), l = U(null), u = U(null), d = z(c), f = o(d, (e) => e.sortedData), p = o(d, (e) => e.completeCaseType), m = be(), { t: h } = G(), [g, _] = W(""), [v, y] = W(null), [b, x] = W([]), [C, w] = W(!1), [T, E] = W(-1), [ee, D] = W("include-match"), [te, O] = W(null), k = z(S), ne = null;
1979
+ g && (ne = b.length ? T < 0 ? h("{{numResults}} results", { numResults: b.length }) : h("{{current}}/{{numResults}} results", {
1980
+ current: T + 1,
1981
1981
  numResults: b.length
1982
1982
  }) : h`No results`);
1983
- let k = B(() => {
1983
+ let A = B(() => {
1984
1984
  let e = [];
1985
1985
  return f.forEach((t) => {
1986
1986
  let r = { id: t.id };
@@ -2007,77 +2007,77 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2007
2007
  threshold: .3,
2008
2008
  useExtendedSearch: !0
2009
2009
  });
2010
- }, [p, f]), A = B(() => {
2010
+ }, [p, f]), j = B(() => {
2011
2011
  if (v) return v;
2012
- let e = k();
2012
+ let e = A();
2013
2013
  return y(e), e;
2014
- }, [k, v]), ie = B((e) => {
2014
+ }, [A, v]), re = B((e) => {
2015
2015
  let t = e.target.value;
2016
- _(t), t && A();
2017
- }, [A]);
2016
+ _(t), t && j();
2017
+ }, [j]);
2018
2018
  V(() => {
2019
- _(""), C(!1), y(null), x([]), T(-1);
2019
+ _(""), w(!1), y(null), x([]), E(-1);
2020
2020
  }, [p, f]), V(() => {
2021
2021
  if (!g) {
2022
- x([]), T(-1), O.highlight({
2022
+ x([]), E(-1), k.highlight({
2023
2023
  caseIds: [],
2024
2024
  origin: a.SEARCH_BOX
2025
2025
  });
2026
2026
  return;
2027
2027
  }
2028
2028
  if (!v) return;
2029
- let e = $n(g, te), t = v.search(e).sort((e, t) => e.refIndex - t.refIndex);
2030
- x(t), T(-1);
2029
+ let e = $n(g, ee), t = v.search(e).sort((e, t) => e.refIndex - t.refIndex);
2030
+ x(t), E(-1);
2031
2031
  }, [
2032
- O,
2032
+ k,
2033
2033
  v,
2034
- te,
2034
+ ee,
2035
2035
  g
2036
2036
  ]);
2037
- let j = B(() => {
2038
- C(!0);
2037
+ let ie = B(() => {
2038
+ w(!0);
2039
2039
  }, []);
2040
2040
  V(() => {
2041
- S ? e.current?.focus() : i.current && (i.current = !1, t.current?.focus());
2042
- }, [S]);
2041
+ C ? e.current?.focus() : i.current && (i.current = !1, t.current?.focus());
2042
+ }, [C]);
2043
2043
  let M = B(() => {
2044
- i.current = !0, C(!1), _(""), x([]), T(-1), O.highlight({
2044
+ i.current = !0, w(!1), _(""), x([]), E(-1), k.highlight({
2045
2045
  caseIds: [],
2046
2046
  origin: a.SEARCH_BOX
2047
2047
  });
2048
- }, [O]), ae = B(() => {
2048
+ }, [k]), ae = B(() => {
2049
2049
  M();
2050
2050
  }, [M]), oe = B((e) => {
2051
2051
  e.key === "Escape" && (e.preventDefault(), M());
2052
- }, [M]), N = B((e) => {
2052
+ }, [M]), P = B((e) => {
2053
2053
  if (e.key === "Enter") {
2054
2054
  if (!b?.length) return;
2055
- e.preventDefault(), T(0), l.current?.focus();
2055
+ e.preventDefault(), E(0), l.current?.focus();
2056
2056
  }
2057
2057
  }, [b]), se = B(() => {
2058
- b?.length && T((e) => e <= 0 ? b.length - 1 : e - 1);
2059
- }, [b]), ce = B(() => {
2060
- b?.length && T((e) => e >= b.length - 1 ? 0 : e + 1);
2058
+ b?.length && E((e) => e <= 0 ? b.length - 1 : e - 1);
2059
+ }, [b]), F = B(() => {
2060
+ b?.length && E((e) => e >= b.length - 1 ? 0 : e + 1);
2061
2061
  }, [b]);
2062
2062
  V(() => {
2063
- if (!b?.length || w < 0 || w >= b.length) {
2064
- O.highlight({
2063
+ if (!b?.length || T < 0 || T >= b.length) {
2064
+ k.highlight({
2065
2065
  caseIds: [],
2066
2066
  origin: a.SEARCH_BOX
2067
2067
  });
2068
2068
  return;
2069
2069
  }
2070
- O.highlight({
2071
- caseIds: [b[w].item.id],
2070
+ k.highlight({
2071
+ caseIds: [b[T].item.id],
2072
2072
  origin: a.SEARCH_BOX,
2073
2073
  scrollIntoView: !0
2074
2074
  });
2075
2075
  }, [
2076
- O,
2076
+ k,
2077
2077
  b,
2078
- w
2078
+ T
2079
2079
  ]);
2080
- let F = B((t) => {
2080
+ let I = B((t) => {
2081
2081
  if (t.key === "ArrowRight") {
2082
2082
  t.preventDefault();
2083
2083
  let e = t.currentTarget.nextElementSibling;
@@ -2092,15 +2092,15 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2092
2092
  n && n.focus();
2093
2093
  }
2094
2094
  }, []), le = B(() => {
2095
- ne(r.current);
2096
- }, []), I = B(() => {
2097
- ne(null);
2095
+ O(r.current);
2098
2096
  }, []), ue = B(() => {
2099
- ne(null), r.current?.focus();
2097
+ O(null);
2098
+ }, []), de = B(() => {
2099
+ O(null), r.current?.focus();
2100
2100
  }, []), fe = B((t) => {
2101
- E(t), e.current?.focus();
2101
+ D(t), e.current?.focus();
2102
2102
  }, []);
2103
- return /* @__PURE__ */ K(P, {
2103
+ return /* @__PURE__ */ K(N, {
2104
2104
  sx: {
2105
2105
  height: m.spacing(4),
2106
2106
  maxWidth: m.spacing(60),
@@ -2108,17 +2108,17 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2108
2108
  width: "calc(100% / 2)"
2109
2109
  },
2110
2110
  ...J.createAttributes("DashboardSearch"),
2111
- children: S ? /* @__PURE__ */ K(P, {
2111
+ children: C ? /* @__PURE__ */ K(N, {
2112
2112
  onKeyDown: oe,
2113
- children: /* @__PURE__ */ K(ve, {
2114
- endAdornment: /* @__PURE__ */ q(de, {
2113
+ children: /* @__PURE__ */ K(he, {
2114
+ endAdornment: /* @__PURE__ */ q(ce, {
2115
2115
  position: "end",
2116
2116
  children: [
2117
- re && /* @__PURE__ */ K(P, {
2117
+ ne && /* @__PURE__ */ K(N, {
2118
2118
  "aria-atomic": "true",
2119
2119
  "aria-live": "polite",
2120
2120
  role: "status",
2121
- children: re
2121
+ children: ne
2122
2122
  }),
2123
2123
  /* @__PURE__ */ K(L, {
2124
2124
  ...J.createAttributes("DashboardSearch-PreviousButton"),
@@ -2126,7 +2126,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2126
2126
  disabled: !b?.length,
2127
2127
  edge: "end",
2128
2128
  onClick: se,
2129
- onKeyDown: F,
2129
+ onKeyDown: I,
2130
2130
  ref: s,
2131
2131
  sx: { color: m.palette.primary.main },
2132
2132
  children: /* @__PURE__ */ K(tt, {})
@@ -2136,8 +2136,8 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2136
2136
  "aria-label": h`Goto next search result`,
2137
2137
  disabled: !b?.length,
2138
2138
  edge: "end",
2139
- onClick: ce,
2140
- onKeyDown: F,
2139
+ onClick: F,
2140
+ onKeyDown: I,
2141
2141
  ref: l,
2142
2142
  sx: { color: m.palette.primary.main },
2143
2143
  children: /* @__PURE__ */ K(nt, {})
@@ -2147,24 +2147,24 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2147
2147
  "aria-label": h`Open settings`,
2148
2148
  edge: "end",
2149
2149
  onClick: le,
2150
- onKeyDown: F,
2150
+ onKeyDown: I,
2151
2151
  ref: r,
2152
2152
  children: /* @__PURE__ */ K(rt, {})
2153
2153
  }),
2154
2154
  /* @__PURE__ */ K(Qn, {
2155
- anchorEl: D,
2155
+ anchorEl: te,
2156
2156
  onChange: fe,
2157
- onClose: I,
2158
- onEscapeKeyDown: ue,
2159
- open: !!D,
2160
- searchMode: te
2157
+ onClose: ue,
2158
+ onEscapeKeyDown: de,
2159
+ open: !!te,
2160
+ searchMode: ee
2161
2161
  }),
2162
2162
  /* @__PURE__ */ K(L, {
2163
2163
  ...J.createAttributes("DashboardSearch-CloseButton"),
2164
2164
  "aria-label": h`Close search`,
2165
2165
  edge: "end",
2166
2166
  onClick: ae,
2167
- onKeyDown: F,
2167
+ onKeyDown: I,
2168
2168
  ref: u,
2169
2169
  children: /* @__PURE__ */ K(it, {})
2170
2170
  })
@@ -2173,8 +2173,8 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2173
2173
  fullWidth: !0,
2174
2174
  inputRef: e,
2175
2175
  name: h`Search listed cases`,
2176
- onChange: ie,
2177
- onKeyDown: N,
2176
+ onChange: re,
2177
+ onKeyDown: P,
2178
2178
  placeholder: h`Search listed cases`,
2179
2179
  size: "small",
2180
2180
  slotProps: { input: {
@@ -2194,7 +2194,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2194
2194
  type: "search",
2195
2195
  value: g
2196
2196
  })
2197
- }) : /* @__PURE__ */ K(P, {
2197
+ }) : /* @__PURE__ */ K(N, {
2198
2198
  sx: {
2199
2199
  justifySelf: "flex-end",
2200
2200
  marginRight: m.spacing(.6),
@@ -2203,7 +2203,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2203
2203
  children: /* @__PURE__ */ K(L, {
2204
2204
  "aria-label": h`Search`,
2205
2205
  edge: "end",
2206
- onClick: j,
2206
+ onClick: ie,
2207
2207
  ref: t,
2208
2208
  sx: {
2209
2209
  color: m.palette.primary.main,
@@ -2215,39 +2215,39 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2215
2215
  })
2216
2216
  });
2217
2217
  }, tr = ({ caseSet: e }) => {
2218
- let { t } = G(), n = Ce(), r = U(null), i = U(null), a = U(null), s = U(null), l = U(null), f = U(null), p = U(null), m = U(null), h = U(null), g = U(null), ee = U(null), [E, D] = W(!1), [ne, O] = W(!1), [re, k] = W(!1), A = z(c), ie = o(A, d((e) => e.fetchData)), j = o(A, (e) => e.completeCaseType), M = o(A, (e) => e.filters.filter((e) => !e.isInitialFilterValue()).length), ae = o(A, (e) => e.isMaxResultsExceeded), oe = o(A, (e) => e.isMaxResultsExceededDismissed), F = B(() => {
2219
- A.setState({ isMaxResultsExceededDismissed: !0 });
2220
- }, [A]);
2218
+ let { t } = G(), n = be(), r = U(null), i = U(null), a = U(null), s = U(null), l = U(null), f = U(null), p = U(null), S = U(null), T = U(null), E = U(null), ee = U(null), [D, te] = W(!1), [O, k] = W(!1), [ne, A] = W(!1), j = z(c), re = o(j, d((e) => e.fetchData)), ie = o(j, (e) => e.completeCaseType), P = o(j, (e) => e.filters.filter((e) => !e.isInitialFilterValue()).length), se = o(j, (e) => e.isMaxResultsExceeded), F = o(j, (e) => e.isMaxResultsExceededDismissed), I = B(() => {
2219
+ j.setState({ isMaxResultsExceededDismissed: !0 });
2220
+ }, [j]);
2221
2221
  V(() => {
2222
2222
  let e = u.getInstance(), t = [
2223
2223
  e.addEventListener("onEventCreated", () => {
2224
- ie();
2224
+ re();
2225
2225
  }),
2226
- e.addEventListener("openAddCasesToEventDialog", (...e) => g.current?.open(...e)),
2226
+ e.addEventListener("openAddCasesToEventDialog", (...e) => E.current?.open(...e)),
2227
2227
  e.addEventListener("openCaseInfoDialog", (...e) => f.current?.open(...e)),
2228
2228
  e.addEventListener("openContactDetailsDialog", (...e) => s.current?.open(...e)),
2229
- e.addEventListener("openCreateEventDialog", (...e) => m.current?.open(...e)),
2229
+ e.addEventListener("openCreateEventDialog", (...e) => S.current?.open(...e)),
2230
2230
  e.addEventListener("openFindSimilarCasesDialog", (...e) => p.current?.open(...e)),
2231
2231
  e.addEventListener("openRemoveFindSimilarCasesResultDialog", (...e) => ee.current?.open(...e)),
2232
- e.addEventListener("openRemoveCasesFromEventDialog", (...e) => h.current?.open(...e)),
2232
+ e.addEventListener("openRemoveCasesFromEventDialog", (...e) => T.current?.open(...e)),
2233
2233
  e.addEventListener("openSequenceDownloadDialog", (...e) => l.current?.open(...e)),
2234
- e.addEventListener("openFiltersMenu", () => D(!0))
2234
+ e.addEventListener("openFiltersMenu", () => te(!0))
2235
2235
  ];
2236
2236
  return () => {
2237
2237
  t.forEach((e) => e());
2238
2238
  };
2239
- }, [ie]), V(() => {
2239
+ }, [re]), V(() => {
2240
2240
  let e = [
2241
2241
  Ke.getInstance().registerShortcut({
2242
2242
  callback: () => {
2243
- D((e) => !e);
2243
+ te((e) => !e);
2244
2244
  },
2245
2245
  key: "f",
2246
2246
  modifier: null
2247
2247
  }),
2248
2248
  Ke.getInstance().registerShortcut({
2249
2249
  callback: () => {
2250
- O((e) => !e);
2250
+ k((e) => !e);
2251
2251
  },
2252
2252
  key: "s",
2253
2253
  modifier: null
@@ -2264,36 +2264,36 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2264
2264
  e.forEach((e) => e());
2265
2265
  };
2266
2266
  }, []);
2267
- let le = B(() => {
2268
- D(!1);
2269
- }, []), I = B(() => {
2270
- D(!0);
2271
- }, []), ue = B(() => {
2272
- O(!1);
2273
- }, []), L = B(() => {
2267
+ let L = B(() => {
2268
+ te(!1);
2269
+ }, []), ce = B(() => {
2270
+ te(!0);
2271
+ }, []), le = B(() => {
2274
2272
  k(!1);
2273
+ }, []), ue = B(() => {
2274
+ A(!1);
2275
2275
  }, []), de = B(() => {
2276
- O(!0);
2277
- }, []), fe = B(() => {
2278
2276
  k(!0);
2277
+ }, []), fe = B(() => {
2278
+ A(!0);
2279
2279
  }, []), pe = B(() => {
2280
2280
  a.current.open();
2281
2281
  }, []), me = B(() => {
2282
2282
  i.current.open({
2283
2283
  caseSetId: e?.id,
2284
- caseTypeId: j?.id
2284
+ caseTypeId: ie?.id
2285
2285
  });
2286
- }, [e?.id, j?.id]), he = B(() => {
2286
+ }, [e?.id, ie?.id]), he = B(() => {
2287
2287
  r.current?.reset();
2288
- }, []), ge = H(() => !!ae && !oe, [oe, ae]), _e = N.getInstance().config.dashboard.DASHBOARD_INJECTED_COMPONENT;
2289
- return /* @__PURE__ */ q(je, { children: [
2288
+ }, []), ge = H(() => !!se && !F, [F, se]), _e = M.getInstance().config.dashboard.DASHBOARD_INJECTED_COMPONENT;
2289
+ return /* @__PURE__ */ q(Oe, { children: [
2290
2290
  /* @__PURE__ */ q(We, { children: [
2291
2291
  /* @__PURE__ */ K(Ge, {
2292
2292
  badgeColor: "secondary",
2293
- badgeContent: M,
2293
+ badgeContent: P,
2294
2294
  first: !0,
2295
2295
  icon: /* @__PURE__ */ K(Re, {}),
2296
- onClick: I,
2296
+ onClick: ce,
2297
2297
  testIdAttributes: { name: "filters" },
2298
2298
  title: t`Open filters`
2299
2299
  }),
@@ -2311,7 +2311,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2311
2311
  title: t`Show case type information`
2312
2312
  }),
2313
2313
  e && /* @__PURE__ */ K(Ge, {
2314
- icon: /* @__PURE__ */ K(_, {}),
2314
+ icon: /* @__PURE__ */ K(m, {}),
2315
2315
  onClick: me,
2316
2316
  testIdAttributes: { name: "event" },
2317
2317
  title: t`Show event information`
@@ -2323,67 +2323,67 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2323
2323
  title: t`Download`
2324
2324
  }),
2325
2325
  /* @__PURE__ */ K(Le, {
2326
- onClose: le,
2327
- open: E
2326
+ onClose: L,
2327
+ open: D
2328
2328
  }),
2329
2329
  /* @__PURE__ */ K(_t, {
2330
- onClose: ue,
2330
+ onClose: le,
2331
2331
  onReset: he,
2332
- open: ne
2332
+ open: O
2333
2333
  }),
2334
- /* @__PURE__ */ K(y, { ref: a }),
2335
- e && /* @__PURE__ */ K(v, { ref: i }),
2334
+ /* @__PURE__ */ K(g, { ref: a }),
2335
+ e && /* @__PURE__ */ K(h, { ref: i }),
2336
2336
  /* @__PURE__ */ K(Ot, {
2337
- onClose: L,
2338
- open: re
2337
+ onClose: ue,
2338
+ open: ne
2339
2339
  })
2340
2340
  ] }),
2341
- /* @__PURE__ */ q(P, {
2341
+ /* @__PURE__ */ q(N, {
2342
2342
  sx: {
2343
2343
  display: "grid",
2344
2344
  gridTemplateRows: `${ge ? "max-content " : ""}max-content auto`,
2345
2345
  height: "100%",
2346
- paddingLeft: n.spacing(N.getInstance().config.layout.SIDEBAR_MENU_WIDTH + 1),
2346
+ paddingLeft: n.spacing(M.getInstance().config.layout.SIDEBAR_MENU_WIDTH + 1),
2347
2347
  width: "100%"
2348
2348
  },
2349
2349
  children: [
2350
- ge && /* @__PURE__ */ K(P, {
2350
+ ge && /* @__PURE__ */ K(N, {
2351
2351
  sx: { marginY: n.spacing(1) },
2352
- children: /* @__PURE__ */ q(se, {
2353
- onClose: F,
2352
+ children: /* @__PURE__ */ q(ae, {
2353
+ onClose: I,
2354
2354
  severity: "warning",
2355
2355
  sx: { width: "100%" },
2356
- children: [/* @__PURE__ */ K(ce, { children: t`Maximum number of results exceeded` }), t("The maximum number of results for {{caseTypeName}} ({{maxResultsForCaseType}}) has been exceeded. Refine your filters to reduce the number of results.", {
2357
- caseTypeName: j.name,
2358
- maxResultsForCaseType: j.props.read_max_n_cases
2356
+ children: [/* @__PURE__ */ K(oe, { children: t`Maximum number of results exceeded` }), t("The maximum number of results for {{caseTypeName}} ({{maxResultsForCaseType}}) has been exceeded. Refine your filters to reduce the number of results.", {
2357
+ caseTypeName: ie.name,
2358
+ maxResultsForCaseType: ie.props.read_max_n_cases
2359
2359
  })]
2360
2360
  })
2361
2361
  }),
2362
- /* @__PURE__ */ q(P, {
2362
+ /* @__PURE__ */ q(N, {
2363
2363
  sx: {
2364
2364
  display: "flex",
2365
2365
  justifyContent: "space-between"
2366
2366
  },
2367
- children: [/* @__PURE__ */ K(T, {}), /* @__PURE__ */ K(er, {})]
2367
+ children: [/* @__PURE__ */ K(C, {}), /* @__PURE__ */ K(er, {})]
2368
2368
  }),
2369
- /* @__PURE__ */ K(P, { children: /* @__PURE__ */ K(Tt, {
2370
- disabled: E || ne,
2369
+ /* @__PURE__ */ K(N, { children: /* @__PURE__ */ K(Tt, {
2370
+ disabled: D || O,
2371
2371
  ref: r
2372
2372
  }) })
2373
2373
  ]
2374
2374
  }),
2375
2375
  /* @__PURE__ */ K(He, { ref: s }),
2376
- /* @__PURE__ */ K(te, { ref: p }),
2376
+ /* @__PURE__ */ K(w, { ref: p }),
2377
2377
  /* @__PURE__ */ K(ut, { ref: ee }),
2378
- /* @__PURE__ */ K(w, { ref: l }),
2379
- /* @__PURE__ */ K(x, { ref: f }),
2380
- /* @__PURE__ */ K(S, { ref: m }),
2381
- /* @__PURE__ */ K(C, { ref: h }),
2382
- /* @__PURE__ */ K(b, { ref: g }),
2378
+ /* @__PURE__ */ K(x, { ref: l }),
2379
+ /* @__PURE__ */ K(v, { ref: f }),
2380
+ /* @__PURE__ */ K(y, { ref: S }),
2381
+ /* @__PURE__ */ K(b, { ref: T }),
2382
+ /* @__PURE__ */ K(_, { ref: E }),
2383
2383
  _e && /* @__PURE__ */ K(_e, {})
2384
2384
  ] });
2385
2385
  }, nr = ({ caseSet: e, children: t }) => {
2386
- let n = z(E), r = H(() => new ot({
2386
+ let n = z(T), r = H(() => new ot({
2387
2387
  caseIds: [],
2388
2388
  origin: null
2389
2389
  }), []), i = H(() => new ot(), []), a = H(() => new ot(), []), o = B(() => {
@@ -2412,7 +2412,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2412
2412
  a,
2413
2413
  o
2414
2414
  ]);
2415
- return /* @__PURE__ */ K(ee, {
2415
+ return /* @__PURE__ */ K(S, {
2416
2416
  value: c,
2417
2417
  children: t
2418
2418
  });
@@ -2429,27 +2429,27 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2429
2429
  };
2430
2430
  }, []), /* @__PURE__ */ K(nr, {
2431
2431
  caseSet: e,
2432
- children: /* @__PURE__ */ K(Ne, {
2432
+ children: /* @__PURE__ */ K(Ae, {
2433
2433
  sx: {
2434
2434
  height: "100%",
2435
2435
  position: "relative",
2436
2436
  width: "100%"
2437
2437
  },
2438
- children: /* @__PURE__ */ K(Me, {
2438
+ children: /* @__PURE__ */ K(ke, {
2439
2439
  error: n,
2440
2440
  isLoading: !1,
2441
- children: r ? /* @__PURE__ */ K(g, {
2441
+ children: r ? /* @__PURE__ */ K(p, {
2442
2442
  cases: r,
2443
2443
  onClose: a
2444
2444
  }) : /* @__PURE__ */ K(tr, { caseSet: e })
2445
2445
  })
2446
2446
  })
2447
2447
  });
2448
- }), ir = Se(I)(({ theme: e }) => ({
2448
+ }), ir = ye(F)(({ theme: e }) => ({
2449
2449
  marginBottom: e.spacing(.5),
2450
2450
  marginTop: e.spacing(.5)
2451
2451
  })), ar = ({ children: e, expandDisabled: t, isLoading: n, primaryMenu: r, secondaryMenu: a, title: s, warningMessage: l, widgetName: u }) => {
2452
- let d = Ce(), { t: f } = G(), p = z(E), m = z(c), h = z(St), g = o(m, (e) => e.expandZone), _ = o(m, (e) => e.expandedZone), v = o(p, (e) => i.getEnabledWidgets(e.dashboardArrangementConfig).length), y = o(p, (e) => e.setDashboardArrangementConfig), b = _ === h, x = B(() => {
2452
+ let d = be(), { t: f } = G(), p = z(T), m = z(c), h = z(St), g = o(m, (e) => e.expandZone), _ = o(m, (e) => e.expandedZone), v = o(p, (e) => i.getEnabledWidgets(e.dashboardArrangementConfig).length), y = o(p, (e) => e.setDashboardArrangementConfig), b = _ === h, x = B(() => {
2453
2453
  g(_ === h ? null : h);
2454
2454
  }, [
2455
2455
  g,
@@ -2469,7 +2469,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2469
2469
  p,
2470
2470
  h
2471
2471
  ]), C = H(() => {
2472
- if (typeof s == "string") return /* @__PURE__ */ K(xe, {
2472
+ if (typeof s == "string") return /* @__PURE__ */ K(ve, {
2473
2473
  arrow: !0,
2474
2474
  placement: "right",
2475
2475
  title: s,
@@ -2488,7 +2488,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2488
2488
  children: s
2489
2489
  })
2490
2490
  });
2491
- if (Oe(s)) return s;
2491
+ if (Te(s)) return s;
2492
2492
  if (lt.isMenuItemData(s)) return /* @__PURE__ */ K(Ye, {
2493
2493
  ButtonProps: {
2494
2494
  color: "inherit",
@@ -2505,13 +2505,13 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2505
2505
  menuItemsData: s,
2506
2506
  showTopLevelTooltip: !0
2507
2507
  });
2508
- }, [d, s]), w = H(() => /* @__PURE__ */ K(P, {
2508
+ }, [d, s]), w = H(() => /* @__PURE__ */ K(N, {
2509
2509
  sx: {
2510
2510
  height: d.spacing(3),
2511
2511
  position: "relative",
2512
2512
  width: "100%"
2513
2513
  },
2514
- children: /* @__PURE__ */ K(P, {
2514
+ children: /* @__PURE__ */ K(N, {
2515
2515
  sx: {
2516
2516
  height: d.spacing(3),
2517
2517
  left: 0,
@@ -2521,31 +2521,31 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2521
2521
  children: C
2522
2522
  })
2523
2523
  }), [d, C]);
2524
- return /* @__PURE__ */ q(P, {
2524
+ return /* @__PURE__ */ q(N, {
2525
2525
  ...J.createAttributes("DashboardWidget", { "widget-name": u }),
2526
2526
  sx: { height: "100%" },
2527
- children: [/* @__PURE__ */ q(P, {
2527
+ children: [/* @__PURE__ */ q(N, {
2528
2528
  sx: {
2529
2529
  display: "flex",
2530
2530
  height: d.spacing(3),
2531
2531
  justifyContent: "space-between"
2532
2532
  },
2533
- children: [w, /* @__PURE__ */ q(P, {
2533
+ children: [w, /* @__PURE__ */ q(N, {
2534
2534
  sx: { display: "flex" },
2535
- children: [/* @__PURE__ */ q(P, {
2535
+ children: [/* @__PURE__ */ q(N, {
2536
2536
  sx: {
2537
2537
  display: "flex",
2538
2538
  height: `calc(${d.spacing(3)} - 1px)`,
2539
2539
  justifySelf: "right",
2540
2540
  marginTop: "1px"
2541
2541
  },
2542
- children: [r && /* @__PURE__ */ K(M, { menu: r }), r && /* @__PURE__ */ K(ir, {
2542
+ children: [r && /* @__PURE__ */ K(j, { menu: r }), r && /* @__PURE__ */ K(ir, {
2543
2543
  "aria-hidden": "true",
2544
2544
  flexItem: !0,
2545
2545
  orientation: "vertical",
2546
2546
  variant: "middle"
2547
2547
  })]
2548
- }), /* @__PURE__ */ q(P, {
2548
+ }), /* @__PURE__ */ q(N, {
2549
2549
  sx: {
2550
2550
  display: "flex",
2551
2551
  height: `calc(${d.spacing(3)} - 1px)`,
@@ -2553,20 +2553,20 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2553
2553
  marginTop: "1px"
2554
2554
  },
2555
2555
  children: [
2556
- a && /* @__PURE__ */ K(M, { menu: a }),
2556
+ a && /* @__PURE__ */ K(j, { menu: a }),
2557
2557
  a && /* @__PURE__ */ K(ir, {
2558
2558
  "aria-hidden": "true",
2559
2559
  flexItem: !0,
2560
2560
  orientation: "vertical",
2561
2561
  variant: "middle"
2562
2562
  }),
2563
- v > 1 && /* @__PURE__ */ q(j, {
2563
+ v > 1 && /* @__PURE__ */ q(A, {
2564
2564
  disabled: t,
2565
2565
  label: b ? f`Collapse` : f`Expand`,
2566
2566
  onClick: x,
2567
2567
  children: [b && /* @__PURE__ */ K(st, {}), !b && /* @__PURE__ */ K(ct, {})]
2568
2568
  }),
2569
- !b && /* @__PURE__ */ K(j, {
2569
+ !b && /* @__PURE__ */ K(A, {
2570
2570
  label: f`Remove widget`,
2571
2571
  onClick: S,
2572
2572
  sx: { marginRight: d.spacing(-1) },
@@ -2575,15 +2575,15 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2575
2575
  ]
2576
2576
  })]
2577
2577
  })]
2578
- }), /* @__PURE__ */ q(P, {
2578
+ }), /* @__PURE__ */ q(N, {
2579
2579
  sx: {
2580
2580
  height: `calc(100% - ${d.spacing(3)})`,
2581
2581
  position: "relative"
2582
2582
  },
2583
- children: [l && /* @__PURE__ */ K(P, {
2583
+ children: [l && /* @__PURE__ */ K(N, {
2584
2584
  sx: { height: d.spacing(3) },
2585
- children: /* @__PURE__ */ K(ae, { warningMessage: l })
2586
- }), /* @__PURE__ */ q(P, {
2585
+ children: /* @__PURE__ */ K(re, { warningMessage: l })
2586
+ }), /* @__PURE__ */ q(N, {
2587
2587
  sx: { height: l ? `calc(100% - ${d.spacing(3)})` : "100%" },
2588
2588
  children: [n && /* @__PURE__ */ K(qe, { label: f`Loading` }), !n && e]
2589
2589
  })]