@gen-epix/ui-client-casedb 4.1.0 → 4.3.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 (63) 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 +242 -241
  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 +549 -550
  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/LineListWidget.js +138 -136
  14. package/dist/_chunks/LineListWidget.js.map +1 -1
  15. package/dist/_chunks/PanelSeparator.js +3 -3
  16. package/dist/_chunks/PanelSeparator.js.map +1 -1
  17. package/dist/_chunks/Upload.js +318 -318
  18. package/dist/_chunks/Upload.js.map +1 -1
  19. package/dist/_chunks/{chunk-BV7QT456.js → chunk-OB3PAWPO.js} +3 -3
  20. package/dist/_chunks/chunk-OB3PAWPO.js.map +1 -0
  21. package/dist/_chunks/cloneDeep.js +1 -1
  22. package/dist/_chunks/cloneDeep.js.map +1 -1
  23. package/dist/_chunks/esm.js +3 -3
  24. package/dist/_chunks/esm.js.map +1 -1
  25. package/dist/_chunks/index.module.js +1 -1
  26. package/dist/_chunks/index.module.js.map +1 -1
  27. package/dist/_chunks/react.js +1 -1
  28. package/dist/_chunks/react.js.map +1 -1
  29. package/dist/_chunks/shallow.js +2 -2
  30. package/dist/_chunks/shallow.js.map +1 -1
  31. package/dist/_chunks/vanilla.js +1 -1
  32. package/dist/_chunks/vanilla.js.map +1 -1
  33. package/dist/_chunks/yup.js +24 -24
  34. package/dist/_chunks/yup.js.map +1 -1
  35. package/dist/components/form/fields/ArrangementEditor/index.js +30 -30
  36. package/dist/components/ui/CreateEventDialog/index.js +40 -40
  37. package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
  38. package/dist/components/ui/HistogramWidget/index.js +161 -162
  39. package/dist/components/ui/HistogramWidget/index.js.map +1 -1
  40. package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
  41. package/dist/locale/en.json +6 -0
  42. package/dist/locale/nl.json +7 -1
  43. package/dist/pages/CasesDetailPage/index.js +1 -1
  44. package/dist/pages/ColsAdminPage/index.js +1 -1
  45. package/dist/pages/ConceptsAdminPage/index.js +1 -1
  46. package/dist/pages/DimsAdminPage/index.js +1 -1
  47. package/dist/pages/EventsDetailPage/index.js +1 -1
  48. package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +120 -86
  49. package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -1
  50. package/dist/pages/RefColsAdminPage/index.js +1 -1
  51. package/dist/pages/RegionSetShapesAdminPage/index.js +1 -1
  52. package/dist/pages/RegionsAdminPage/index.js +1 -1
  53. package/dist/pages/UserEffectiveRightsAdminPage/index.js +1 -1
  54. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +59 -59
  55. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
  56. package/dist/routes/index.js +93 -91
  57. package/dist/routes/index.js.map +1 -1
  58. package/dist/setup/setup.js +2 -3
  59. package/dist/setup/setup.js.map +1 -1
  60. package/package.json +73 -72
  61. package/dist/_chunks/chunk-BV7QT456.js.map +0 -1
  62. package/dist/_chunks/index.esm.js +0 -1465
  63. package/dist/_chunks/index.esm.js.map +0 -1
@@ -10,63 +10,62 @@ 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";
41
- import { GenericForm as Ie } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
42
- import { TableFiltersSidebarItem as Le, TableFiltersSidebarItemIcon as Re } from "@gen-epix/ui-client-common/components/ui/Table";
43
- import { withDialog as ze } from "@gen-epix/ui-core-components/hoc/withDialog";
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 { STEPPER_DIRECTION as Ae, Stepper as je } from "@gen-epix/ui-core-components/components/Stepper";
39
+ import { FormProvider as Me, useForm as Ne, useWatch as Pe } from "react-hook-form";
40
+ import { GenericForm as Fe } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
41
+ import { TableFiltersSidebarItem as Ie, TableFiltersSidebarItemIcon as Le } from "@gen-epix/ui-client-common/components/ui/Table";
42
+ import { withDialog as Re } from "@gen-epix/ui-core-components/hoc/withDialog";
44
43
  import { TestIdUtil as J } from "@gen-epix/ui-core/utils/TestIdUtil";
45
- import { FormUtil as Be } from "@gen-epix/ui-core-form/utils/FormUtil";
46
- import Ve from "@mui/icons-material/Info";
47
- import { EpiContactDetailsDialog as He } from "@gen-epix/ui-client-common/components/epi/EpiContactDetailsDialog";
48
- import { SidebarItem as Ue, SidebarMenu as We, SidebarMenuItem as Ge } from "@gen-epix/ui-client-common/components/ui/Sidebar";
49
- import { KeyboardShortcutService as Ke } from "@gen-epix/ui-core/classes/services/KeyboardShortcutService";
50
- import { Spinner as qe } from "@gen-epix/ui-core-components/components/Spinner";
51
- import Je from "@mui/icons-material/Download";
52
- import { NestedDropdown as Ye } from "@gen-epix/ui-core-components/components/NestedMenu";
53
- import Xe from "@mui/icons-material/Settings";
54
- import Ze from "@mui/icons-material/RestartAlt";
55
- import { Switch as Qe } from "@gen-epix/ui-core-form/components/fields/Switch";
56
- import $e from "@mui/icons-material/Widgets";
57
- import et from "@mui/icons-material/Search";
58
- import tt from "@mui/icons-material/KeyboardArrowUp";
59
- import nt from "@mui/icons-material/KeyboardArrowDown";
60
- import rt from "@mui/icons-material/Tune";
61
- import it from "@mui/icons-material/Close";
62
- import at from "@mui/icons-material/Check";
63
- import { Subject as ot } from "@gen-epix/ui-core/classes/Subject";
64
- import st from "@mui/icons-material/ZoomInMap";
65
- import ct from "@mui/icons-material/ZoomOutMap";
66
- import { MenuDataUtil as lt } from "@gen-epix/ui-client-common/utils/MenuDataUtil";
44
+ import { FormUtil as ze } from "@gen-epix/ui-core-form/utils/FormUtil";
45
+ import Be from "@mui/icons-material/Info";
46
+ import { EpiContactDetailsDialog as Ve } from "@gen-epix/ui-client-common/components/epi/EpiContactDetailsDialog";
47
+ import { SidebarItem as He, SidebarMenu as Ue, SidebarMenuItem as We } from "@gen-epix/ui-client-common/components/ui/Sidebar";
48
+ import { KeyboardShortcutService as Ge } from "@gen-epix/ui-core/classes/services/KeyboardShortcutService";
49
+ import { Spinner as Ke } from "@gen-epix/ui-core-components/components/Spinner";
50
+ import qe from "@mui/icons-material/Download";
51
+ import { NestedDropdown as Je } from "@gen-epix/ui-core-components/components/NestedMenu";
52
+ import Ye from "@mui/icons-material/Settings";
53
+ import Xe from "@mui/icons-material/RestartAlt";
54
+ import { Switch as Ze } from "@gen-epix/ui-core-form/components/fields/Switch";
55
+ import Qe from "@mui/icons-material/Widgets";
56
+ import $e from "@mui/icons-material/Search";
57
+ import et from "@mui/icons-material/KeyboardArrowUp";
58
+ import tt from "@mui/icons-material/KeyboardArrowDown";
59
+ import nt from "@mui/icons-material/Tune";
60
+ import rt from "@mui/icons-material/Close";
61
+ import it from "@mui/icons-material/Check";
62
+ import { Subject as at } from "@gen-epix/ui-core/classes/Subject";
63
+ import ot from "@mui/icons-material/ZoomInMap";
64
+ import st from "@mui/icons-material/ZoomOutMap";
65
+ import { MenuDataUtil as ct } from "@gen-epix/ui-client-common/utils/MenuDataUtil";
67
66
  //#region src/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.tsx
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);
67
+ var lt = Re(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i }) => {
68
+ 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
69
  V(() => {
71
70
  n(a`Remove similar cases from results`);
72
71
  }, [a, n]);
@@ -115,12 +114,12 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
115
114
  let y = B((e) => {
116
115
  h(s(m, (t) => (t.splice(e, 1), t)));
117
116
  }, [m]), b = H(() => [{
118
- content: /* @__PURE__ */ K(P, {
117
+ content: /* @__PURE__ */ K(N, {
119
118
  sx: {
120
119
  marginBottom: 2,
121
120
  marginTop: 1
122
121
  },
123
- children: /* @__PURE__ */ K(F, {
122
+ children: /* @__PURE__ */ K(P, {
124
123
  color: "primary",
125
124
  onClick: v,
126
125
  variant: "outlined",
@@ -131,32 +130,32 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
131
130
  key: "start",
132
131
  label: a("Result without similar cases ({{numberOfCases}} cases)", { numberOfCases: p?.[0]?.originalCaseIds.length || 0 })
133
132
  }, ...m.map((e, t) => ({
134
- content: /* @__PURE__ */ q(P, { children: [/* @__PURE__ */ q(P, {
133
+ content: /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ q(N, {
135
134
  component: "ul",
136
135
  children: [
137
- /* @__PURE__ */ K(P, {
136
+ /* @__PURE__ */ K(N, {
138
137
  component: "li",
139
138
  children: a("Tree: {{treeLabel}}", { treeLabel: f.find((t) => t.col.id === e.colId)?.col?.label || e.colId })
140
139
  }),
141
- /* @__PURE__ */ K(P, {
140
+ /* @__PURE__ */ K(N, {
142
141
  component: "li",
143
142
  children: a("Distance: {{distance}}", { distance: e.distance })
144
143
  }),
145
- /* @__PURE__ */ K(P, {
144
+ /* @__PURE__ */ K(N, {
146
145
  component: "li",
147
146
  children: a("Found similar cases: {{foundCases}}", { foundCases: e.similarCaseIds.length })
148
147
  }),
149
- /* @__PURE__ */ K(P, {
148
+ /* @__PURE__ */ K(N, {
150
149
  component: "li",
151
150
  children: a("New number of cases: {{numberOfCases}}", { numberOfCases: e.similarCaseIds.length + e.originalCaseIds.length })
152
151
  })
153
152
  ]
154
- }), /* @__PURE__ */ K(P, {
153
+ }), /* @__PURE__ */ K(N, {
155
154
  sx: {
156
155
  marginBottom: 2,
157
156
  marginTop: 1
158
157
  },
159
- children: /* @__PURE__ */ K(F, {
158
+ children: /* @__PURE__ */ K(P, {
160
159
  color: "primary",
161
160
  disabled: t !== m.length - 1,
162
161
  onClick: () => y(t),
@@ -175,11 +174,11 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
175
174
  a,
176
175
  f
177
176
  ]);
178
- return /* @__PURE__ */ q(P, {
177
+ return /* @__PURE__ */ q(N, {
179
178
  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, {
179
+ children: [b.length === 0 && /* @__PURE__ */ K(R, { children: a("No similar cases results to remove.") }), b.length > 0 && /* @__PURE__ */ K(je, {
181
180
  activeStep: b[b.length - 1].key,
182
- direction: Pe.VERTICAL,
181
+ direction: Ae.VERTICAL,
183
182
  hideCompletedIndicator: !0,
184
183
  steps: b
185
184
  })]
@@ -189,171 +188,171 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
189
188
  fullWidth: !0,
190
189
  maxWidth: "lg",
191
190
  testId: "RemoveFindSimilarCasesResultDialog"
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({
191
+ }), ut = () => {
192
+ 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 = Ne({
194
193
  defaultValues: r,
195
194
  values: r
196
- }), { control: s } = a, c = p({ control: s }), l = B(() => {
195
+ }), { control: s } = a, c = Pe({ control: s }), l = B(() => {
197
196
  n();
198
197
  }, [n]);
199
198
  V(() => {
200
199
  i(c);
201
200
  }, [c, i]);
202
201
  let u = B(() => {}, []);
203
- return /* @__PURE__ */ q(m, {
202
+ return /* @__PURE__ */ q(Me, {
204
203
  ...a,
205
204
  children: [/* @__PURE__ */ K("form", {
206
205
  autoComplete: "off",
207
206
  onSubmit: u,
208
- children: /* @__PURE__ */ K(P, {
207
+ children: /* @__PURE__ */ K(N, {
209
208
  sx: { marginY: 1 },
210
- children: /* @__PURE__ */ K(ue, { children: /* @__PURE__ */ K(Qe, {
209
+ children: /* @__PURE__ */ K(I, { children: /* @__PURE__ */ K(Ze, {
211
210
  label: e`Enable highlighting across widgets`,
212
211
  name: "isHighlightingEnabled"
213
212
  }) })
214
213
  })
215
- }), /* @__PURE__ */ K(P, {
214
+ }), /* @__PURE__ */ K(N, {
216
215
  sx: {
217
216
  display: "flex",
218
217
  justifyContent: "flex-end"
219
218
  },
220
- children: /* @__PURE__ */ K(P, {
219
+ children: /* @__PURE__ */ K(N, {
221
220
  sx: { marginX: 1 },
222
- children: /* @__PURE__ */ K(F, {
221
+ children: /* @__PURE__ */ K(P, {
223
222
  color: "primary",
224
223
  onClick: l,
225
- startIcon: /* @__PURE__ */ K(Ze, {}),
224
+ startIcon: /* @__PURE__ */ K(Xe, {}),
226
225
  variant: "outlined",
227
226
  children: e`Reset general settings`
228
227
  })
229
228
  })
230
229
  })]
231
230
  });
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(() => {
231
+ }, dt = /* @__PURE__ */ e(t(), 1), ft = ({ onReset: e }) => {
232
+ 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 = Ne({ values: { arrangementKey: a.arrangementKey } }), { control: l } = c, u = Pe({ control: l }), f = B(() => {
234
233
  r(), e && e();
235
234
  }, [e, r]);
236
235
  V(() => {
237
236
  let { arrangementKey: e } = u;
238
237
  if (!e) return;
239
- let t = N.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[e];
238
+ let t = M.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[e];
240
239
  t && s({
241
240
  arrangementKey: e,
242
- arrangementWidgetAssignments: i.getArrangementWidgetAssignments(t, N.getInstance().config.dashboard.DEFAULT_WIDGET_ASSIGNMENTS[e])
241
+ arrangementWidgetAssignments: i.getArrangementWidgetAssignments(t, M.getInstance().config.dashboard.DEFAULT_WIDGET_ASSIGNMENTS[e])
243
242
  });
244
243
  }, [u, s]);
245
- let g = ft.default;
246
- return /* @__PURE__ */ q(m, {
244
+ let p = dt.default;
245
+ return /* @__PURE__ */ q(Me, {
247
246
  ...c,
248
247
  children: [/* @__PURE__ */ K("form", {
249
248
  autoComplete: "off",
250
- onSubmit: g,
251
- children: /* @__PURE__ */ K(P, {
249
+ onSubmit: p,
250
+ children: /* @__PURE__ */ K(N, {
252
251
  sx: { marginY: 1 },
253
- children: /* @__PURE__ */ K(ue, { children: /* @__PURE__ */ K(D, {
252
+ children: /* @__PURE__ */ K(I, { children: /* @__PURE__ */ K(E, {
254
253
  label: t`Arrangement`,
255
254
  name: "arrangementKey",
256
- options: N.getInstance().config.dashboard.ARRANGEMENT_OPTIONS
255
+ options: M.getInstance().config.dashboard.ARRANGEMENT_OPTIONS
257
256
  }) })
258
257
  })
259
- }), /* @__PURE__ */ K(P, {
258
+ }), /* @__PURE__ */ K(N, {
260
259
  sx: {
261
260
  display: "flex",
262
261
  justifyContent: "flex-end"
263
262
  },
264
- children: /* @__PURE__ */ K(P, {
263
+ children: /* @__PURE__ */ K(N, {
265
264
  sx: { marginX: 1 },
266
- children: /* @__PURE__ */ K(F, {
265
+ children: /* @__PURE__ */ K(P, {
267
266
  color: "primary",
268
267
  onClick: f,
269
- startIcon: /* @__PURE__ */ K(Ze, {}),
268
+ startIcon: /* @__PURE__ */ K(Xe, {}),
270
269
  variant: "outlined",
271
270
  children: t`Reset dashboard layout`
272
271
  })
273
272
  })
274
273
  })]
275
274
  });
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(() => {
278
- if (s) return Be.createYupSchemaFromFormFieldDefinitions(s);
279
- }, [s]), u = h({
275
+ }, pt = ({ widgetName: e }) => {
276
+ 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(() => {
277
+ if (s) return ze.createYupSchemaFromFormFieldDefinitions(s);
278
+ }, [s]), u = Ne({
280
279
  defaultValues: c,
281
280
  values: c
282
- }), { control: f } = u, m = p({ control: f }), g = B(() => {
281
+ }), { control: f } = u, p = Pe({ control: f }), m = B(() => {
283
282
  i(e);
284
283
  }, [i, e]);
285
284
  V(() => {
286
- a(e, m);
285
+ a(e, p);
287
286
  }, [
288
- m,
287
+ p,
289
288
  a,
290
289
  e
291
290
  ]);
292
- let _ = B(() => {}, []);
293
- return /* @__PURE__ */ q(P, { children: [/* @__PURE__ */ K(P, {
291
+ let h = B(() => {}, []);
292
+ return /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ K(N, {
294
293
  sx: { marginY: 1 },
295
- children: /* @__PURE__ */ K(Ie, {
294
+ children: /* @__PURE__ */ K(Fe, {
296
295
  formFieldDefinitions: s,
297
296
  formId: r,
298
297
  formMethods: u,
299
- onSubmit: _,
298
+ onSubmit: h,
300
299
  schema: l
301
300
  })
302
- }), /* @__PURE__ */ K(P, {
301
+ }), /* @__PURE__ */ K(N, {
303
302
  sx: {
304
303
  display: "flex",
305
304
  justifyContent: "flex-end"
306
305
  },
307
- children: /* @__PURE__ */ K(P, {
306
+ children: /* @__PURE__ */ K(N, {
308
307
  sx: { marginX: 1 },
309
- children: /* @__PURE__ */ K(F, {
308
+ children: /* @__PURE__ */ K(P, {
310
309
  color: "primary",
311
- onClick: g,
312
- startIcon: /* @__PURE__ */ K(Ze, {}),
310
+ onClick: m,
311
+ startIcon: /* @__PURE__ */ K(Xe, {}),
313
312
  variant: "outlined",
314
313
  children: t("Reset {widgetName} settings", { widgetName: e })
315
314
  })
316
315
  })
317
316
  })] });
318
- }, ht = Xe, gt = ({ onReset: e }) => {
319
- let t = Ce(), { t: n } = G(), r = H(() => {
317
+ }, mt = Ye, ht = ({ onReset: e }) => {
318
+ let t = be(), { t: n } = G(), r = H(() => {
320
319
  let t = [{
321
- component: /* @__PURE__ */ K(pt, { onReset: e }),
320
+ component: /* @__PURE__ */ K(ft, { onReset: e }),
322
321
  label: n`Dashboard layout`
323
322
  }, {
324
- component: /* @__PURE__ */ K(dt, {}),
323
+ component: /* @__PURE__ */ K(ut, {}),
325
324
  label: n`General`
326
325
  }];
327
- return Object.entries(N.getInstance().config.dashboard.WIDGETS).forEach(([e, n]) => {
326
+ return Object.entries(M.getInstance().config.dashboard.WIDGETS).forEach(([e, n]) => {
328
327
  n.configFormFieldsDefinitions && t.push({
329
- component: /* @__PURE__ */ K(mt, { widgetName: e }),
328
+ component: /* @__PURE__ */ K(pt, { widgetName: e }),
330
329
  label: n.widgetLabel
331
330
  });
332
331
  }), t;
333
332
  }, [e, n]);
334
- return /* @__PURE__ */ K(P, {
333
+ return /* @__PURE__ */ K(N, {
335
334
  sx: { width: t.spacing(59) },
336
- children: r.map(({ component: e, label: t }, n) => /* @__PURE__ */ q(P, {
335
+ children: r.map(({ component: e, label: t }, n) => /* @__PURE__ */ q(N, {
337
336
  sx: {
338
337
  marginTop: n === 0 ? 0 : 2,
339
338
  paddingTop: n === r.length - 1 ? 0 : 1
340
339
  },
341
340
  children: [
342
- /* @__PURE__ */ K(P, {
341
+ /* @__PURE__ */ K(N, {
343
342
  sx: { marginBottom: 2 },
344
343
  children: /* @__PURE__ */ K(R, {
345
344
  variant: "h5",
346
345
  children: t
347
346
  })
348
347
  }),
349
- /* @__PURE__ */ K(P, {
348
+ /* @__PURE__ */ K(N, {
350
349
  sx: {
351
350
  marginBottom: 2,
352
351
  marginRight: 1
353
352
  },
354
353
  children: e
355
354
  }),
356
- /* @__PURE__ */ K(I, {
355
+ /* @__PURE__ */ K(F, {
357
356
  flexItem: !0,
358
357
  orientation: "horizontal",
359
358
  sx: {
@@ -365,24 +364,24 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
365
364
  ]
366
365
  }, t))
367
366
  });
368
- }, _t = ({ onClose: e, onReset: t, open: n }) => {
367
+ }, gt = ({ onClose: e, onReset: t, open: n }) => {
369
368
  let { t: r } = G();
370
- return /* @__PURE__ */ K(Ue, {
371
- closeIcon: /* @__PURE__ */ K(ht, {}),
369
+ return /* @__PURE__ */ K(He, {
370
+ closeIcon: /* @__PURE__ */ K(mt, {}),
372
371
  closeIconTooltipText: r`Close settings`,
373
372
  onClose: e,
374
373
  open: n,
375
374
  testIdAttributes: { name: "DashboardSettingsSidebarItem" },
376
375
  title: r`Settings`,
377
376
  width: 60,
378
- children: n && /* @__PURE__ */ K(gt, { onReset: t })
377
+ children: n && /* @__PURE__ */ K(ht, { onReset: t })
379
378
  });
380
- }, vt = Ee(null), yt = {
379
+ }, _t = Ce(null), vt = {
381
380
  didCatch: !1,
382
381
  error: null
383
- }, bt = class extends we {
382
+ }, yt = class extends xe {
384
383
  constructor(e) {
385
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = yt;
384
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = vt;
386
385
  }
387
386
  static getDerivedStateFromError(e) {
388
387
  return {
@@ -395,18 +394,18 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
395
394
  t && (this.props.onReset?.({
396
395
  args: e,
397
396
  reason: "imperative-api"
398
- }), this.setState(yt));
397
+ }), this.setState(vt));
399
398
  }
400
399
  componentDidCatch(e, t) {
401
400
  this.props.onError?.(e, t);
402
401
  }
403
402
  componentDidUpdate(e, t) {
404
403
  let { didCatch: n } = this.state, { resetKeys: r } = this.props;
405
- n && t.didCatch && xt(e.resetKeys, r) && (this.props.onReset?.({
404
+ n && t.didCatch && bt(e.resetKeys, r) && (this.props.onReset?.({
406
405
  next: r,
407
406
  prev: e.resetKeys,
408
407
  reason: "keys"
409
- }), this.setState(yt));
408
+ }), this.setState(vt));
410
409
  }
411
410
  render() {
412
411
  let { children: e, fallbackRender: t, FallbackComponent: n, fallback: r } = this.props, { didCatch: i, error: a } = this.state, o = e;
@@ -416,24 +415,24 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
416
415
  resetErrorBoundary: this.resetErrorBoundary
417
416
  };
418
417
  if (typeof t == "function") o = t(e);
419
- else if (n) o = De(n, e);
418
+ else if (n) o = we(n, e);
420
419
  else if (r !== void 0) o = r;
421
420
  else throw a;
422
421
  }
423
- return De(vt.Provider, { value: {
422
+ return we(_t.Provider, { value: {
424
423
  didCatch: i,
425
424
  error: a,
426
425
  resetErrorBoundary: this.resetErrorBoundary
427
426
  } }, o);
428
427
  }
429
428
  };
430
- function xt(e = [], t = []) {
429
+ function bt(e = [], t = []) {
431
430
  return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
432
431
  }
433
432
  //#endregion
434
433
  //#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) => {
434
+ var xt = Ce(null), St = () => {
435
+ let { t: e } = G(), [t, n] = W(null), r = z(T), a = z(xt), 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
436
  n(e.currentTarget);
438
437
  }, []), f = B(() => {
439
438
  n(null);
@@ -455,7 +454,7 @@ var St = Ee(null), Ct = () => {
455
454
  let t = e.currentTarget.dataset.widgetName;
456
455
  t && p(t);
457
456
  }, [p]);
458
- return /* @__PURE__ */ q(P, {
457
+ return /* @__PURE__ */ q(N, {
459
458
  sx: {
460
459
  alignItems: "center",
461
460
  display: "flex",
@@ -463,80 +462,80 @@ var St = Ee(null), Ct = () => {
463
462
  justifyContent: "center",
464
463
  width: "100%"
465
464
  },
466
- children: [/* @__PURE__ */ K(F, {
465
+ children: [/* @__PURE__ */ K(P, {
467
466
  onClick: d,
468
- startIcon: /* @__PURE__ */ K($e, {}),
467
+ startIcon: /* @__PURE__ */ K(Qe, {}),
469
468
  variant: "outlined",
470
469
  children: e("Add a widget")
471
- }), /* @__PURE__ */ q(he, {
470
+ }), /* @__PURE__ */ q(fe, {
472
471
  anchorEl: t,
473
472
  onClose: f,
474
473
  open: !!t,
475
- children: [u.length === 0 && /* @__PURE__ */ K(ge, {
474
+ children: [u.length === 0 && /* @__PURE__ */ K(pe, {
476
475
  disabled: !0,
477
476
  children: e("No widgets available")
478
- }), u.map((e) => /* @__PURE__ */ K(ge, {
477
+ }), u.map((e) => /* @__PURE__ */ K(pe, {
479
478
  "data-widget-name": e,
480
479
  onClick: m,
481
480
  children: l[e].widgetLabel
482
481
  }, e))]
483
482
  })]
484
483
  });
485
- }, wt = (e, t) => ({
484
+ }, Ct = (e, t) => ({
486
485
  getItem: (n) => e.getState().dashboardPanels[`${t}-${n}`],
487
486
  setItem: (n, r) => {
488
487
  e.getState().setDashboardPanelConfiguration(`${t}-${n}`, r);
489
488
  }
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({
489
+ }), wt = ({ disabled: e, ref: t }) => {
490
+ 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(() => Ct(n, "epi-dashboard"), [n]), v = D({
492
491
  groupId: g[0]?.groupId ?? `${h}-ph-0`,
493
492
  storage: _
494
- }), y = O({
493
+ }), y = D({
495
494
  groupId: g[1]?.groupId ?? `${h}-ph-1`,
496
495
  storage: _
497
- }), b = O({
496
+ }), b = D({
498
497
  groupId: g[2]?.groupId ?? `${h}-ph-2`,
499
498
  storage: _
500
- }), x = O({
499
+ }), x = D({
501
500
  groupId: g[3]?.groupId ?? `${h}-ph-3`,
502
501
  storage: _
503
- }), S = O({
502
+ }), S = D({
504
503
  groupId: g[4]?.groupId ?? `${h}-ph-4`,
505
504
  storage: _
506
- }), C = O({
505
+ }), C = D({
507
506
  groupId: g[5]?.groupId ?? `${h}-ph-5`,
508
507
  storage: _
509
- }), w = O({
508
+ }), w = D({
510
509
  groupId: g[6]?.groupId ?? `${h}-ph-6`,
511
510
  storage: _
512
- }), ee = O({
511
+ }), E = D({
513
512
  groupId: g[7]?.groupId ?? `${h}-ph-7`,
514
513
  storage: _
515
- }), T = O({
514
+ }), A = D({
516
515
  groupId: g[8]?.groupId ?? `${h}-ph-8`,
517
516
  storage: _
518
- }), te = O({
517
+ }), j = D({
519
518
  groupId: g[9]?.groupId ?? `${h}-ph-9`,
520
519
  storage: _
521
- }), D = O({
520
+ }), re = D({
522
521
  groupId: g[10]?.groupId ?? `${h}-ph-10`,
523
522
  storage: _
524
- }), j = O({
523
+ }), ae = D({
525
524
  groupId: g[11]?.groupId ?? `${h}-ph-11`,
526
525
  storage: _
527
- }), M = O({
526
+ }), oe = D({
528
527
  groupId: g[12]?.groupId ?? `${h}-ph-12`,
529
528
  storage: _
530
- }), ae = O({
529
+ }), N = D({
531
530
  groupId: g[13]?.groupId ?? `${h}-ph-13`,
532
531
  storage: _
533
- }), se = O({
532
+ }), P = D({
534
533
  groupId: g[14]?.groupId ?? `${h}-ph-14`,
535
534
  storage: _
536
- }), ce = O({
535
+ }), se = D({
537
536
  groupId: g[15]?.groupId ?? `${h}-ph-15`,
538
537
  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 = [
538
+ }), 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
539
  v,
541
540
  y,
542
541
  b,
@@ -544,22 +543,22 @@ var St = Ee(null), Ct = () => {
544
543
  S,
545
544
  C,
546
545
  w,
547
- ee,
548
- T,
549
- te,
550
- D,
546
+ E,
547
+ A,
551
548
  j,
552
- M,
549
+ re,
553
550
  ae,
554
- se,
555
- ce
556
- ], R = H(() => [
551
+ oe,
552
+ N,
557
553
  P,
554
+ se
555
+ ], xe = H(() => [
558
556
  F,
559
- le,
560
557
  I,
561
- ue,
562
558
  L,
559
+ ce,
560
+ le,
561
+ ue,
563
562
  de,
564
563
  fe,
565
564
  pe,
@@ -568,15 +567,15 @@ var St = Ee(null), Ct = () => {
568
567
  ge,
569
568
  _e,
570
569
  ve,
571
- ye,
572
- be
570
+ R,
571
+ ye
573
572
  ], [
574
- P,
575
573
  F,
576
- le,
577
574
  I,
578
- ue,
579
575
  L,
576
+ ce,
577
+ le,
578
+ ue,
580
579
  de,
581
580
  fe,
582
581
  pe,
@@ -585,12 +584,12 @@ var St = Ee(null), Ct = () => {
585
584
  ge,
586
585
  _e,
587
586
  ve,
588
- ye,
589
- be
587
+ R,
588
+ ye
590
589
  ]);
591
- Ae(t, () => ({ reset: () => {
590
+ De(t, () => ({ reset: () => {
592
591
  try {
593
- R.forEach((e) => {
592
+ xe.forEach((e) => {
594
593
  if (e.current) {
595
594
  let t = e.current.getLayout(), n = Object.keys(t);
596
595
  if (n.length > 0) {
@@ -600,25 +599,25 @@ var St = Ee(null), Ct = () => {
600
599
  }
601
600
  });
602
601
  } catch {}
603
- } }), [R]);
604
- let Se = H(() => {
605
- let e = N.getInstance().config.dashboard.WIDGETS;
606
- return Object.fromEntries(Object.entries(e).map(([e, { component: t, widgetLabel: n }]) => [e, /* @__PURE__ */ K(bt, {
602
+ } }), [xe]);
603
+ let Ce = H(() => {
604
+ let e = M.getInstance().config.dashboard.WIDGETS;
605
+ return Object.fromEntries(Object.entries(e).map(([e, { component: t, widgetLabel: n }]) => [e, /* @__PURE__ */ K(yt, {
607
606
  fallback: /* @__PURE__ */ K(l, { widgetLabel: n }),
608
- children: De(t)
607
+ children: we(t)
609
608
  }, e)]));
610
609
  }, []);
611
610
  if (s) {
612
611
  let e = p[s];
613
- return /* @__PURE__ */ K(St, {
612
+ return /* @__PURE__ */ K(xt, {
614
613
  value: s,
615
- children: Se[e] ?? null
614
+ children: Ce[e] ?? null
616
615
  });
617
616
  }
618
617
  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, {
618
+ let Te = { value: 0 }, B = (t) => {
619
+ let n = Te.value++, r = g[n]?.groupId ?? `${h}-group-${n}`, i = t.orientation, { defaultLayout: a, onLayoutChanged: o } = be[n] ?? {}, s = xe[n];
620
+ return /* @__PURE__ */ K(ee, {
622
621
  defaultLayout: a,
623
622
  groupRef: s,
624
623
  id: r,
@@ -630,124 +629,124 @@ var St = Ee(null), Ct = () => {
630
629
  },
631
630
  children: t.cells.map((n, a) => {
632
631
  let o = a === t.cells.length - 1, s = `${r}-panel-${a}`;
633
- return /* @__PURE__ */ q(Te, { children: [
634
- /* @__PURE__ */ K(A, {
632
+ return /* @__PURE__ */ q(Se, { children: [
633
+ /* @__PURE__ */ K(k, {
635
634
  defaultSize: n.size,
636
635
  id: s,
637
636
  minSize: i === "vertical" ? u : d,
638
637
  style: { overflow: "hidden" },
639
- children: "name" in n ? /* @__PURE__ */ K(St, {
638
+ children: "name" in n ? /* @__PURE__ */ K(xt, {
640
639
  value: n.name,
641
- children: Se[p[n.name]] ?? /* @__PURE__ */ K(Ct, {})
642
- }) : we(n)
640
+ children: Ce[p[n.name]] ?? /* @__PURE__ */ K(St, {})
641
+ }) : B(n)
643
642
  }),
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)));
643
+ !o && i === "horizontal" && /* @__PURE__ */ K(ne, { disabled: e }),
644
+ !o && i === "vertical" && /* @__PURE__ */ K(te, { disabled: e })
645
+ ] }, "name" in n ? n.name : ie.createHash(JSON.stringify(n)));
647
646
  })
648
647
  });
649
648
  };
650
- return we(m);
651
- }, Et = Je, Dt = () => {
652
- let e = Ce(), { t } = G(), [n, r] = W([]);
649
+ return B(m);
650
+ }, Tt = qe, Et = () => {
651
+ let e = be(), { t } = G(), [n, r] = W([]);
653
652
  V(() => {
654
653
  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)));
654
+ 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
655
  }, t = u.getInstance();
657
656
  return t.addEventListener("onDownloadOptionsChanged", e), t.emit("onDownloadOptionsRequested"), () => {
658
657
  t.removeEventListener("onDownloadOptionsChanged", e);
659
658
  };
660
659
  }, []);
661
- let i = B((e, t) => /* @__PURE__ */ K(P, {
660
+ let i = B((e, t) => /* @__PURE__ */ K(N, {
662
661
  sx: { marginLeft: 1 },
663
- children: t || e.disabled || !e.callback ? /* @__PURE__ */ K(R, { children: e.label }) : /* @__PURE__ */ K(fe, {
662
+ children: t || e.disabled || !e.callback ? /* @__PURE__ */ K(R, { children: e.label }) : /* @__PURE__ */ K(le, {
664
663
  component: "button",
665
664
  onClick: () => e.callback(),
666
665
  tabIndex: 0,
667
666
  children: e.label
668
667
  })
669
- }, e.label), []), a = B((e) => /* @__PURE__ */ q(P, { children: [/* @__PURE__ */ K(R, {
668
+ }, e.label), []), a = B((e) => /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ K(R, {
670
669
  variant: "h6",
671
670
  children: e.label
672
671
  }), e.items.map((t) => i(t, e.disabled))] }, e.label), [i]);
673
- return /* @__PURE__ */ K(P, {
672
+ return /* @__PURE__ */ K(N, {
674
673
  sx: { width: e.spacing(59) },
675
- children: n.map((n) => /* @__PURE__ */ q(P, {
674
+ children: n.map((n) => /* @__PURE__ */ q(N, {
676
675
  sx: {
677
676
  borderBottom: `1px solid ${e.palette.divider}`,
678
677
  padding: e.spacing(1)
679
678
  },
680
679
  children: [
681
- /* @__PURE__ */ K(P, { children: /* @__PURE__ */ K(R, {
680
+ /* @__PURE__ */ K(N, { children: /* @__PURE__ */ K(R, {
682
681
  color: n.disabled ? e.palette.text.disabled : void 0,
683
682
  variant: "h5",
684
683
  children: n.zoneLabel
685
684
  }) }),
686
- n.disabled && /* @__PURE__ */ K(P, {
685
+ n.disabled && /* @__PURE__ */ K(N, {
687
686
  sx: { padding: e.spacing(1) },
688
687
  children: /* @__PURE__ */ K(R, { children: t`No data available for download.` })
689
688
  }),
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))
689
+ !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
690
  ]
692
691
  }, n.zone))
693
692
  });
694
- }, Ot = ({ onClose: e, open: t }) => {
693
+ }, Dt = ({ onClose: e, open: t }) => {
695
694
  let { t: n } = G();
696
- return /* @__PURE__ */ K(Ue, {
697
- closeIcon: /* @__PURE__ */ K(Et, {}),
695
+ return /* @__PURE__ */ K(He, {
696
+ closeIcon: /* @__PURE__ */ K(Tt, {}),
698
697
  closeIconTooltipText: n`Close download`,
699
698
  onClose: e,
700
699
  open: t,
701
700
  testIdAttributes: { name: "DashboardDownloadSidebarItem" },
702
701
  title: n`Download`,
703
702
  width: 60,
704
- children: t && /* @__PURE__ */ K(Dt, {})
703
+ children: t && /* @__PURE__ */ K(Et, {})
705
704
  });
706
705
  };
707
706
  //#endregion
708
707
  //#region ../../node_modules/.pnpm/fuse.js@7.5.0/node_modules/fuse.js/dist/fuse.mjs
709
708
  function Y(e) {
710
- return Array.isArray ? Array.isArray(e) : It(e) === "[object Array]";
709
+ return Array.isArray ? Array.isArray(e) : Ft(e) === "[object Array]";
711
710
  }
712
- function kt(e) {
711
+ function Ot(e) {
713
712
  if (typeof e == "string") return e;
714
713
  if (typeof e == "bigint") return e.toString();
715
714
  let t = e + "";
716
715
  return t == "0" && 1 / e == -Infinity ? "-0" : t;
717
716
  }
718
- function At(e) {
719
- return e == null ? "" : kt(e);
717
+ function kt(e) {
718
+ return e == null ? "" : Ot(e);
720
719
  }
721
720
  function X(e) {
722
721
  return typeof e == "string";
723
722
  }
724
- function jt(e) {
723
+ function At(e) {
725
724
  return typeof e == "number";
726
725
  }
727
- function Mt(e) {
728
- return e === !0 || e === !1 || Pt(e) && It(e) == "[object Boolean]";
726
+ function jt(e) {
727
+ return e === !0 || e === !1 || Nt(e) && Ft(e) == "[object Boolean]";
729
728
  }
730
- function Nt(e) {
729
+ function Mt(e) {
731
730
  return typeof e == "object";
732
731
  }
733
- function Pt(e) {
734
- return Nt(e) && e !== null;
732
+ function Nt(e) {
733
+ return Mt(e) && e !== null;
735
734
  }
736
735
  function Z(e) {
737
736
  return e != null;
738
737
  }
739
- function Ft(e) {
738
+ function Pt(e) {
740
739
  return !e.trim().length;
741
740
  }
742
- function It(e) {
741
+ function Ft(e) {
743
742
  return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
744
743
  }
745
- var Lt = "Incorrect 'index' type", Rt = "Invalid doc index: must be a non-negative integer within the bounds of the docs array", zt = (e) => `Invalid value for key ${e}`, Bt = (e) => `Pattern length exceeds max of ${e}.`, Vt = (e) => `Missing ${e} property in key`, Ht = (e) => `Property 'weight' in key '${e}' must be a positive integer`, Ut = "Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.", Wt = Object.prototype.hasOwnProperty, Gt = class {
744
+ var It = "Incorrect 'index' type", Lt = "Invalid doc index: must be a non-negative integer within the bounds of the docs array", Rt = (e) => `Invalid value for key ${e}`, zt = (e) => `Pattern length exceeds max of ${e}.`, Bt = (e) => `Missing ${e} property in key`, Vt = (e) => `Property 'weight' in key '${e}' must be a positive integer`, Ht = "Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.", Ut = Object.prototype.hasOwnProperty, Wt = class {
746
745
  constructor(e) {
747
746
  this._keys = [], this._keyMap = {};
748
747
  let t = 0;
749
748
  e.forEach((e) => {
750
- let n = Kt(e);
749
+ let n = Gt(e);
751
750
  this._keys.push(n), this._keyMap[n.id] = n, t += n.weight;
752
751
  }), this._keys.forEach((e) => {
753
752
  e.weight /= t;
@@ -763,14 +762,14 @@ var Lt = "Incorrect 'index' type", Rt = "Invalid doc index: must be a non-negati
763
762
  return JSON.stringify(this._keys);
764
763
  }
765
764
  };
766
- function Kt(e) {
765
+ function Gt(e) {
767
766
  let t = null, n = null, r = null, i = 1, a = null;
768
- if (X(e) || Y(e)) r = e, t = qt(e), n = Jt(e);
767
+ if (X(e) || Y(e)) r = e, t = Kt(e), n = qt(e);
769
768
  else {
770
- if (!Wt.call(e, "name")) throw Error(Vt("name"));
769
+ if (!Ut.call(e, "name")) throw Error(Bt("name"));
771
770
  let o = e.name;
772
- if (r = o, Wt.call(e, "weight") && e.weight !== void 0 && (i = e.weight, i <= 0)) throw Error(Ht(Jt(o)));
773
- t = qt(o), n = Jt(o), a = e.getFn ?? null;
771
+ if (r = o, Ut.call(e, "weight") && e.weight !== void 0 && (i = e.weight, i <= 0)) throw Error(Vt(qt(o)));
772
+ t = Kt(o), n = qt(o), a = e.getFn ?? null;
774
773
  }
775
774
  return {
776
775
  path: t,
@@ -780,13 +779,13 @@ function Kt(e) {
780
779
  getFn: a
781
780
  };
782
781
  }
783
- function qt(e) {
782
+ function Kt(e) {
784
783
  return Y(e) ? e : e.split(".");
785
784
  }
786
- function Jt(e) {
785
+ function qt(e) {
787
786
  return Y(e) ? e.join(".") : e;
788
787
  }
789
- function Yt(e, t) {
788
+ function Jt(e, t) {
790
789
  let n = [], r = !1, i = (e, t, a, o) => {
791
790
  if (Z(e)) {
792
791
  if (!t[a]) n.push(o === void 0 ? e : {
@@ -796,8 +795,8 @@ function Yt(e, t) {
796
795
  else {
797
796
  let s = e[t[a]];
798
797
  if (!Z(s)) return;
799
- if (a === t.length - 1 && (X(s) || jt(s) || Mt(s) || typeof s == "bigint")) n.push(o === void 0 ? At(s) : {
800
- v: At(s),
798
+ if (a === t.length - 1 && (X(s) || At(s) || jt(s) || typeof s == "bigint")) n.push(o === void 0 ? kt(s) : {
799
+ v: kt(s),
801
800
  i: o
802
801
  });
803
802
  else if (Y(s)) {
@@ -809,45 +808,45 @@ function Yt(e, t) {
809
808
  };
810
809
  return i(e, X(t) ? t.split(".") : t, 0), r ? n : n[0];
811
810
  }
812
- var Xt = {
811
+ var Yt = {
813
812
  includeMatches: !1,
814
813
  findAllMatches: !1,
815
814
  minMatchCharLength: 1
816
- }, Zt = {
815
+ }, Xt = {
817
816
  isCaseSensitive: !1,
818
817
  ignoreDiacritics: !1,
819
818
  includeScore: !1,
820
819
  keys: [],
821
820
  shouldSort: !0,
822
821
  sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
823
- }, Qt = {
822
+ }, Zt = {
824
823
  location: 0,
825
824
  threshold: .6,
826
825
  distance: 100
827
- }, $t = {
826
+ }, Qt = {
828
827
  useExtendedSearch: !1,
829
828
  useTokenSearch: !1,
830
829
  tokenize: void 0,
831
830
  tokenMatch: "any",
832
- getFn: Yt,
831
+ getFn: Jt,
833
832
  ignoreLocation: !1,
834
833
  ignoreFieldNorm: !1,
835
834
  fieldNormWeight: 1
836
835
  }, Q = Object.freeze({
837
- ...Zt,
838
836
  ...Xt,
839
- ...Qt,
840
- ...$t
837
+ ...Yt,
838
+ ...Zt,
839
+ ...Qt
841
840
  });
842
- function en(e) {
841
+ function $t(e) {
843
842
  return e >= 9 && e <= 13 || e === 32 || e === 160;
844
843
  }
845
- function tn(e = 1, t = 3) {
844
+ function en(e = 1, t = 3) {
846
845
  let n = /* @__PURE__ */ new Map(), r = 10 ** t;
847
846
  return {
848
847
  get(t) {
849
848
  let i = 0, a = !1;
850
- for (let e = 0; e < t.length; e++) en(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
849
+ for (let e = 0; e < t.length; e++) $t(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
851
850
  if (i === 0 && (i = 1), n.has(i)) return n.get(i);
852
851
  let o = Math.round(r / i ** (.5 * e)) / r;
853
852
  return n.set(i, o), o;
@@ -857,9 +856,9 @@ function tn(e = 1, t = 3) {
857
856
  }
858
857
  };
859
858
  }
860
- var nn = class {
859
+ var tn = class {
861
860
  constructor({ getFn: e = Q.getFn, fieldNormWeight: t = Q.fieldNormWeight } = {}) {
862
- this.norm = tn(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
861
+ this.norm = en(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
863
862
  }
864
863
  setSources(e = []) {
865
864
  this.docs = e;
@@ -886,7 +885,7 @@ var nn = class {
886
885
  this.records.length = t, this.norm.clear();
887
886
  }
888
887
  add(e, t) {
889
- if (!Number.isInteger(t) || t < 0) throw Error(Rt);
888
+ if (!Number.isInteger(t) || t < 0) throw Error(Lt);
890
889
  if (X(e)) {
891
890
  let n = this._createStringRecord(e, t);
892
891
  return n && this.records.push(n), n;
@@ -895,7 +894,7 @@ var nn = class {
895
894
  return this.records.push(n), n;
896
895
  }
897
896
  removeAt(e) {
898
- if (!Number.isInteger(e) || e < 0) throw Error(Rt);
897
+ if (!Number.isInteger(e) || e < 0) throw Error(Lt);
899
898
  for (let t = 0, n = this.records.length; t < n; t += 1) if (this.records[t].i === e) {
900
899
  this.records.splice(t, 1);
901
900
  break;
@@ -924,7 +923,7 @@ var nn = class {
924
923
  return this.records.length;
925
924
  }
926
925
  _createStringRecord(e, t) {
927
- return !Z(e) || Ft(e) ? null : {
926
+ return !Z(e) || Pt(e) ? null : {
928
927
  v: e,
929
928
  i: t,
930
929
  n: this.norm.get(e)
@@ -944,7 +943,7 @@ var nn = class {
944
943
  let n = i[t];
945
944
  if (Z(n)) {
946
945
  if (X(n)) {
947
- if (!Ft(n)) {
946
+ if (!Pt(n)) {
948
947
  let r = {
949
948
  v: n,
950
949
  i: t,
@@ -953,8 +952,8 @@ var nn = class {
953
952
  e.push(r);
954
953
  }
955
954
  } else if (Z(n.v)) {
956
- let t = X(n.v) ? n.v : At(n.v);
957
- if (!Ft(t)) {
955
+ let t = X(n.v) ? n.v : kt(n.v);
956
+ if (!Pt(t)) {
958
957
  let r = {
959
958
  v: t,
960
959
  i: n.i,
@@ -966,7 +965,7 @@ var nn = class {
966
965
  }
967
966
  }
968
967
  n.$[t] = e;
969
- } else if (X(i) && !Ft(i)) {
968
+ } else if (X(i) && !Pt(i)) {
970
969
  let e = {
971
970
  v: i,
972
971
  n: this.norm.get(i)
@@ -984,21 +983,21 @@ var nn = class {
984
983
  };
985
984
  }
986
985
  };
987
- function rn(e, t, { getFn: n = Q.getFn, fieldNormWeight: r = Q.fieldNormWeight } = {}) {
988
- let i = new nn({
986
+ function nn(e, t, { getFn: n = Q.getFn, fieldNormWeight: r = Q.fieldNormWeight } = {}) {
987
+ let i = new tn({
989
988
  getFn: n,
990
989
  fieldNormWeight: r
991
990
  });
992
- return i.setKeys(e.map(Kt)), i.setSources(t), i.create(), i;
991
+ return i.setKeys(e.map(Gt)), i.setSources(t), i.create(), i;
993
992
  }
994
- function an(e, { getFn: t = Q.getFn, fieldNormWeight: n = Q.fieldNormWeight } = {}) {
995
- let { keys: r, records: i } = e, a = new nn({
993
+ function rn(e, { getFn: t = Q.getFn, fieldNormWeight: n = Q.fieldNormWeight } = {}) {
994
+ let { keys: r, records: i } = e, a = new tn({
996
995
  getFn: t,
997
996
  fieldNormWeight: n
998
997
  });
999
998
  return a.setKeys(r), a.setIndexRecords(i), a;
1000
999
  }
1001
- function on(e = [], t = Q.minMatchCharLength) {
1000
+ function an(e = [], t = Q.minMatchCharLength) {
1002
1001
  let n = [], r = -1, i = -1, a = 0;
1003
1002
  for (let o = e.length; a < o; a += 1) {
1004
1003
  let o = e[a];
@@ -1006,8 +1005,8 @@ function on(e = [], t = Q.minMatchCharLength) {
1006
1005
  }
1007
1006
  return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
1008
1007
  }
1009
- function sn(e, t, n, { location: r = Q.location, distance: i = Q.distance, threshold: a = Q.threshold, findAllMatches: o = Q.findAllMatches, minMatchCharLength: s = Q.minMatchCharLength, includeMatches: c = Q.includeMatches, ignoreLocation: l = Q.ignoreLocation } = {}) {
1010
- if (t.length > 32) throw Error(Bt(32));
1008
+ function on(e, t, n, { location: r = Q.location, distance: i = Q.distance, threshold: a = Q.threshold, findAllMatches: o = Q.findAllMatches, minMatchCharLength: s = Q.minMatchCharLength, includeMatches: c = Q.includeMatches, ignoreLocation: l = Q.ignoreLocation } = {}) {
1009
+ if (t.length > 32) throw Error(zt(32));
1011
1010
  let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, h = (e, t) => {
1012
1011
  let n = e / u;
1013
1012
  if (l) return n;
@@ -1048,12 +1047,12 @@ function sn(e, t, n, { location: r = Q.location, distance: i = Q.distance, thres
1048
1047
  score: Math.max(.001, b)
1049
1048
  };
1050
1049
  if (g) {
1051
- let e = on(_, s);
1050
+ let e = an(_, s);
1052
1051
  e.length ? c && (w.indices = e) : w.isMatch = !1;
1053
1052
  }
1054
1053
  return w;
1055
1054
  }
1056
- function cn(e) {
1055
+ function sn(e) {
1057
1056
  let t = {};
1058
1057
  for (let n = 0, r = e.length; n < r; n += 1) {
1059
1058
  let i = e.charAt(n);
@@ -1061,7 +1060,7 @@ function cn(e) {
1061
1060
  }
1062
1061
  return t;
1063
1062
  }
1064
- function ln(e) {
1063
+ function cn(e) {
1065
1064
  if (e.length <= 1) return e;
1066
1065
  e.sort((e, t) => e[0] - t[0] || e[1] - t[1]);
1067
1066
  let t = [e[0]];
@@ -1071,7 +1070,7 @@ function ln(e) {
1071
1070
  }
1072
1071
  return t;
1073
1072
  }
1074
- var un = {
1073
+ var ln = {
1075
1074
  ł: "l",
1076
1075
  Ł: "L",
1077
1076
  đ: "d",
@@ -1084,7 +1083,7 @@ var un = {
1084
1083
  Ŧ: "T",
1085
1084
  ı: "i",
1086
1085
  ß: "ss"
1087
- }, dn = RegExp("[" + Object.keys(un).join("") + "]", "g"), fn = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(dn, (e) => un[e]) : (e) => e, pn = class {
1086
+ }, un = RegExp("[" + Object.keys(ln).join("") + "]", "g"), dn = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(un, (e) => ln[e]) : (e) => e, fn = class {
1088
1087
  constructor(e, { location: t = Q.location, threshold: n = Q.threshold, distance: r = Q.distance, includeMatches: i = Q.includeMatches, findAllMatches: a = Q.findAllMatches, minMatchCharLength: o = Q.minMatchCharLength, isCaseSensitive: s = Q.isCaseSensitive, ignoreDiacritics: c = Q.ignoreDiacritics, ignoreLocation: l = Q.ignoreLocation } = {}) {
1089
1088
  if (this.options = {
1090
1089
  location: t,
@@ -1096,11 +1095,11 @@ var un = {
1096
1095
  isCaseSensitive: s,
1097
1096
  ignoreDiacritics: c,
1098
1097
  ignoreLocation: l
1099
- }, e = s ? e : e.toLowerCase(), e = c ? fn(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
1098
+ }, e = s ? e : e.toLowerCase(), e = c ? dn(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
1100
1099
  let u = (e, t) => {
1101
1100
  this.chunks.push({
1102
1101
  pattern: e,
1103
- alphabet: cn(e),
1102
+ alphabet: sn(e),
1104
1103
  startIndex: t
1105
1104
  });
1106
1105
  }, d = this.pattern.length;
@@ -1115,7 +1114,7 @@ var un = {
1115
1114
  }
1116
1115
  searchIn(e) {
1117
1116
  let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
1118
- if (e = t ? e : e.toLowerCase(), e = n ? fn(e) : e, this.pattern === e) {
1117
+ if (e = t ? e : e.toLowerCase(), e = n ? dn(e) : e, this.pattern === e) {
1119
1118
  if (e.length < this.options.minMatchCharLength) return {
1120
1119
  isMatch: !1,
1121
1120
  score: 1
@@ -1128,7 +1127,7 @@ var un = {
1128
1127
  }
1129
1128
  let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
1130
1129
  this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
1131
- let { isMatch: m, score: h, indices: g } = sn(e, t, n, {
1130
+ let { isMatch: m, score: h, indices: g } = on(e, t, n, {
1132
1131
  location: i + p,
1133
1132
  distance: a,
1134
1133
  threshold: o,
@@ -1143,13 +1142,13 @@ var un = {
1143
1142
  isMatch: f,
1144
1143
  score: f ? d / this.chunks.length : 1
1145
1144
  };
1146
- return f && r && (p.indices = ln(u)), p;
1145
+ return f && r && (p.indices = cn(u)), p;
1147
1146
  }
1148
- }, mn = /* @__PURE__ */ new Set(["fuzzy", "include"]);
1149
- function hn(e) {
1147
+ }, pn = /* @__PURE__ */ new Set(["fuzzy", "include"]);
1148
+ function mn(e) {
1150
1149
  return e.startsWith("inverse");
1151
1150
  }
1152
- var gn = [
1151
+ var hn = [
1153
1152
  {
1154
1153
  type: "exact",
1155
1154
  multiRegex: /^="(.*)"$/,
@@ -1269,7 +1268,7 @@ var gn = [
1269
1268
  multiRegex: /^"(.*)"$/,
1270
1269
  singleRegex: /^(.*)$/,
1271
1270
  create: (e, t = {}) => {
1272
- let n = new pn(e, {
1271
+ let n = new fn(e, {
1273
1272
  location: t.location ?? Q.location,
1274
1273
  threshold: t.threshold ?? Q.threshold,
1275
1274
  distance: t.distance ?? Q.distance,
@@ -1288,8 +1287,8 @@ var gn = [
1288
1287
  };
1289
1288
  }
1290
1289
  }
1291
- ], _n = gn.length, vn = "\0", yn = "|";
1292
- function bn(e) {
1290
+ ], gn = hn.length, _n = "\0", vn = "|";
1291
+ function yn(e) {
1293
1292
  let t = [], n = e.length, r = 0;
1294
1293
  for (; r < n;) {
1295
1294
  for (; r < n && e[r] === " ";) r++;
@@ -1319,21 +1318,21 @@ function bn(e) {
1319
1318
  }
1320
1319
  return t;
1321
1320
  }
1322
- function xn(e, t) {
1321
+ function bn(e, t) {
1323
1322
  let n = e.match(t);
1324
1323
  return n ? n[1] : null;
1325
1324
  }
1326
- function Sn(e, t = {}) {
1327
- return e.replace(/\\\|/g, vn).split(yn).map((e) => {
1328
- let n = bn(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
1325
+ function xn(e, t = {}) {
1326
+ return e.replace(/\\\|/g, _n).split(vn).map((e) => {
1327
+ let n = yn(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
1329
1328
  for (let e = 0, i = n.length; e < i; e += 1) {
1330
1329
  let i = n[e], a = !1, o = -1;
1331
- for (; !a && ++o < _n;) {
1332
- let e = gn[o], n = xn(i, e.multiRegex);
1330
+ for (; !a && ++o < gn;) {
1331
+ let e = hn[o], n = bn(i, e.multiRegex);
1333
1332
  n && (r.push(e.create(n, t)), a = !0);
1334
1333
  }
1335
- if (!a) for (o = -1; ++o < _n;) {
1336
- let e = gn[o], n = xn(i, e.singleRegex);
1334
+ if (!a) for (o = -1; ++o < gn;) {
1335
+ let e = hn[o], n = bn(i, e.singleRegex);
1337
1336
  if (n) {
1338
1337
  r.push(e.create(n, t));
1339
1338
  break;
@@ -1343,7 +1342,7 @@ function Sn(e, t = {}) {
1343
1342
  return r;
1344
1343
  });
1345
1344
  }
1346
- var Cn = class {
1345
+ var Sn = class {
1347
1346
  constructor(e, { isCaseSensitive: t = Q.isCaseSensitive, ignoreDiacritics: n = Q.ignoreDiacritics, includeMatches: r = Q.includeMatches, minMatchCharLength: i = Q.minMatchCharLength, ignoreLocation: a = Q.ignoreLocation, findAllMatches: o = Q.findAllMatches, location: s = Q.location, threshold: c = Q.threshold, distance: l = Q.distance } = {}) {
1348
1347
  this.query = null, this.options = {
1349
1348
  isCaseSensitive: t,
@@ -1355,7 +1354,7 @@ var Cn = class {
1355
1354
  location: s,
1356
1355
  threshold: c,
1357
1356
  distance: l
1358
- }, e = t ? e : e.toLowerCase(), e = n ? fn(e) : e, this.pattern = e, this.query = Sn(this.pattern, this.options);
1357
+ }, e = t ? e : e.toLowerCase(), e = n ? dn(e) : e, this.pattern = e, this.query = xn(this.pattern, this.options);
1359
1358
  }
1360
1359
  static condition(e, t) {
1361
1360
  return t.useExtendedSearch;
@@ -1367,14 +1366,14 @@ var Cn = class {
1367
1366
  score: 1
1368
1367
  };
1369
1368
  let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
1370
- e = r ? e : e.toLowerCase(), e = i ? fn(e) : e;
1369
+ e = r ? e : e.toLowerCase(), e = i ? dn(e) : e;
1371
1370
  let a = 0, o = [], s = 0, c = !1;
1372
1371
  for (let r = 0, i = t.length; r < i; r += 1) {
1373
1372
  let i = t[r];
1374
1373
  o.length = 0, a = 0, c = !1;
1375
1374
  for (let t = 0, r = i.length; t < r; t += 1) {
1376
1375
  let r = i[t], { isMatch: l, indices: u, score: d } = r.search(e);
1377
- if (l) a += 1, s += d, hn(r.type) && (c = !0), n && (mn.has(r.type) ? o.push(...u) : o.push(u));
1376
+ if (l) a += 1, s += d, mn(r.type) && (c = !0), n && (pn.has(r.type) ? o.push(...u) : o.push(u));
1378
1377
  else {
1379
1378
  s = 0, a = 0, o.length = 0, c = !1;
1380
1379
  break;
@@ -1385,7 +1384,7 @@ var Cn = class {
1385
1384
  isMatch: !0,
1386
1385
  score: s / a
1387
1386
  };
1388
- return c && (e.hasInverse = !0), n && (e.indices = ln(o)), e;
1387
+ return c && (e.hasInverse = !0), n && (e.indices = cn(o)), e;
1389
1388
  }
1390
1389
  }
1391
1390
  return {
@@ -1393,43 +1392,43 @@ var Cn = class {
1393
1392
  score: 1
1394
1393
  };
1395
1394
  }
1396
- }, wn = [];
1397
- function Tn(...e) {
1398
- wn.push(...e);
1395
+ }, Cn = [];
1396
+ function wn(...e) {
1397
+ Cn.push(...e);
1399
1398
  }
1400
- function En(e, t) {
1401
- for (let n = 0, r = wn.length; n < r; n += 1) {
1402
- let r = wn[n];
1399
+ function Tn(e, t) {
1400
+ for (let n = 0, r = Cn.length; n < r; n += 1) {
1401
+ let r = Cn[n];
1403
1402
  if (r.condition(e, t)) return new r(e, t);
1404
1403
  }
1405
- return new pn(e, t);
1404
+ return new fn(e, t);
1406
1405
  }
1407
- var Dn = {
1406
+ var En = {
1408
1407
  AND: "$and",
1409
1408
  OR: "$or"
1410
- }, On = {
1409
+ }, Dn = {
1411
1410
  PATH: "$path",
1412
1411
  PATTERN: "$val"
1413
- }, kn = (e) => !!(e[Dn.AND] || e[Dn.OR]), An = (e) => !!e[On.PATH], jn = (e) => !Y(e) && Nt(e) && !kn(e), Mn = (e) => ({ [Dn.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
1414
- function Nn(e, t, { auto: n = !0 } = {}) {
1412
+ }, On = (e) => !!(e[En.AND] || e[En.OR]), kn = (e) => !!e[Dn.PATH], An = (e) => !Y(e) && Mt(e) && !On(e), jn = (e) => ({ [En.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
1413
+ function Mn(e, t, { auto: n = !0 } = {}) {
1415
1414
  let r = (e) => {
1416
1415
  if (X(e)) {
1417
1416
  let r = {
1418
1417
  keyId: null,
1419
1418
  pattern: e
1420
1419
  };
1421
- return n && (r.searcher = En(e, t)), r;
1420
+ return n && (r.searcher = Tn(e, t)), r;
1422
1421
  }
1423
- let i = Object.keys(e), a = An(e);
1424
- if (!a && i.length > 1 && !kn(e)) return r(Mn(e));
1425
- if (jn(e)) {
1426
- let r = a ? e[On.PATH] : i[0], o = a ? e[On.PATTERN] : e[r];
1427
- if (!X(o)) throw Error(zt(r));
1422
+ let i = Object.keys(e), a = kn(e);
1423
+ if (!a && i.length > 1 && !On(e)) return r(jn(e));
1424
+ if (An(e)) {
1425
+ let r = a ? e[Dn.PATH] : i[0], o = a ? e[Dn.PATTERN] : e[r];
1426
+ if (!X(o)) throw Error(Rt(r));
1428
1427
  let s = {
1429
- keyId: Jt(r),
1428
+ keyId: qt(r),
1430
1429
  pattern: o
1431
1430
  };
1432
- return n && (s.searcher = En(o, t)), s;
1431
+ return n && (s.searcher = Tn(o, t)), s;
1433
1432
  }
1434
1433
  let o = {
1435
1434
  children: [],
@@ -1442,21 +1441,21 @@ function Nn(e, t, { auto: n = !0 } = {}) {
1442
1441
  });
1443
1442
  }), o;
1444
1443
  };
1445
- return kn(e) || (e = Mn(e)), r(e);
1444
+ return On(e) || (e = jn(e)), r(e);
1446
1445
  }
1447
- function Pn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
1446
+ function Nn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
1448
1447
  let n = 1;
1449
1448
  return e.forEach(({ key: e, norm: r, score: i }) => {
1450
1449
  let a = e ? e.weight : null;
1451
1450
  n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
1452
1451
  }), n;
1453
1452
  }
1454
- function Fn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
1453
+ function Pn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
1455
1454
  e.forEach((e) => {
1456
- e.score = Pn(e.matches, { ignoreFieldNorm: t });
1455
+ e.score = Nn(e.matches, { ignoreFieldNorm: t });
1457
1456
  });
1458
1457
  }
1459
- var In = class {
1458
+ var Fn = class {
1460
1459
  constructor(e, t) {
1461
1460
  this.limit = e, this.heap = [], this.comparator = t;
1462
1461
  }
@@ -1490,7 +1489,7 @@ var In = class {
1490
1489
  } while (r !== e);
1491
1490
  }
1492
1491
  };
1493
- function Ln(e) {
1492
+ function In(e) {
1494
1493
  let t = [];
1495
1494
  return e.matches.forEach((e) => {
1496
1495
  if (!Z(e.indices) || !e.indices.length) return;
@@ -1501,20 +1500,20 @@ function Ln(e) {
1501
1500
  e.key && (n.key = e.key.id), e.idx > -1 && (n.refIndex = e.idx), t.push(n);
1502
1501
  }), t;
1503
1502
  }
1504
- function Rn(e, t, { includeMatches: n = Q.includeMatches, includeScore: r = Q.includeScore } = {}) {
1503
+ function Ln(e, t, { includeMatches: n = Q.includeMatches, includeScore: r = Q.includeScore } = {}) {
1505
1504
  return e.map((e) => {
1506
1505
  let { idx: i } = e, a = {
1507
1506
  item: t[i],
1508
1507
  refIndex: i
1509
1508
  };
1510
- return n && (a.matches = Ln(e)), r && (a.score = e.score), a;
1509
+ return n && (a.matches = In(e)), r && (a.score = e.score), a;
1511
1510
  });
1512
1511
  }
1513
- var zn = /[\p{L}\p{M}\p{N}_]+/gu, Bn = /* @__PURE__ */ new WeakSet();
1514
- function Vn(e) {
1515
- Bn.has(e) || (Bn.add(e), console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));
1512
+ var Rn = /[\p{L}\p{M}\p{N}_]+/gu, zn = /* @__PURE__ */ new WeakSet();
1513
+ function Bn(e) {
1514
+ zn.has(e) || (zn.add(e), console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));
1516
1515
  }
1517
- function Hn(e) {
1516
+ function Vn(e) {
1518
1517
  if (typeof e == "function") {
1519
1518
  let t = !1;
1520
1519
  return (n) => {
@@ -1523,20 +1522,20 @@ function Hn(e) {
1523
1522
  return r;
1524
1523
  };
1525
1524
  }
1526
- return e instanceof RegExp ? (e.global || Vn(e), (t) => t.match(e) || []) : (e) => e.match(zn) || [];
1525
+ return e instanceof RegExp ? (e.global || Bn(e), (t) => t.match(e) || []) : (e) => e.match(Rn) || [];
1527
1526
  }
1528
- function Un({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
1529
- let r = Hn(n);
1527
+ function Hn({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
1528
+ let r = Vn(n);
1530
1529
  return { tokenize(n) {
1531
- return e || (n = n.toLowerCase()), t && (n = fn(n)), r(n);
1530
+ return e || (n = n.toLowerCase()), t && (n = dn(n)), r(n);
1532
1531
  } };
1533
1532
  }
1534
- var Wn = class {
1533
+ var Un = class {
1535
1534
  static condition(e, t) {
1536
1535
  return t.useTokenSearch;
1537
1536
  }
1538
1537
  constructor(e, t) {
1539
- this.options = t, this.analyzer = Un({
1538
+ this.options = t, this.analyzer = Hn({
1540
1539
  isCaseSensitive: t.isCaseSensitive,
1541
1540
  ignoreDiacritics: t.ignoreDiacritics,
1542
1541
  tokenize: t.tokenize
@@ -1544,7 +1543,7 @@ var Wn = class {
1544
1543
  let n = this.analyzer.tokenize(e), { df: r, fieldCount: i } = t._invertedIndex;
1545
1544
  this.termSearchers = [], this.idfWeights = [];
1546
1545
  for (let e of n) {
1547
- this.termSearchers.push(new pn(e, {
1546
+ this.termSearchers.push(new fn(e, {
1548
1547
  location: t.location,
1549
1548
  threshold: t.threshold,
1550
1549
  distance: t.distance,
@@ -1578,10 +1577,10 @@ var Wn = class {
1578
1577
  isMatch: !0,
1579
1578
  score: Math.max(.001, s)
1580
1579
  };
1581
- return this.options.includeMatches && t.length && (c.indices = ln(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
1580
+ return this.options.includeMatches && t.length && (c.indices = cn(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
1582
1581
  }
1583
1582
  };
1584
- function Gn(e, t, n, r) {
1583
+ function Wn(e, t, n, r) {
1585
1584
  let i = r.tokenize(t);
1586
1585
  if (!i.length) return;
1587
1586
  e.fieldCount++, e.docFieldCount.set(n, (e.docFieldCount.get(n) || 0) + 1);
@@ -1589,34 +1588,34 @@ function Gn(e, t, n, r) {
1589
1588
  o || (o = /* @__PURE__ */ new Map(), e.docTermFieldHits.set(n, o));
1590
1589
  for (let t of a) o.set(t, (o.get(t) || 0) + 1), e.df.set(t, (e.df.get(t) || 0) + 1);
1591
1590
  }
1592
- function Kn(e, t, n, r) {
1591
+ function Gn(e, t, n, r) {
1593
1592
  let { i, v: a, $: o } = t;
1594
1593
  if (a !== void 0) {
1595
- Gn(e, a, i, r);
1594
+ Wn(e, a, i, r);
1596
1595
  return;
1597
1596
  }
1598
1597
  if (o) for (let t = 0; t < n; t++) {
1599
1598
  let n = o[t];
1600
1599
  if (n) {
1601
- if (Array.isArray(n)) for (let t of n) Gn(e, t.v, i, r);
1602
- else Gn(e, n.v, i, r);
1600
+ if (Array.isArray(n)) for (let t of n) Wn(e, t.v, i, r);
1601
+ else Wn(e, n.v, i, r);
1603
1602
  }
1604
1603
  }
1605
1604
  }
1606
- function qn(e, t, n) {
1605
+ function Kn(e, t, n) {
1607
1606
  let r = {
1608
1607
  fieldCount: 0,
1609
1608
  df: /* @__PURE__ */ new Map(),
1610
1609
  docFieldCount: /* @__PURE__ */ new Map(),
1611
1610
  docTermFieldHits: /* @__PURE__ */ new Map()
1612
1611
  };
1613
- for (let i of e) Kn(r, i, t, n);
1612
+ for (let i of e) Gn(r, i, t, n);
1614
1613
  return r;
1615
1614
  }
1616
- function Jn(e, t, n, r) {
1617
- Kn(e, t, n, r);
1615
+ function qn(e, t, n, r) {
1616
+ Gn(e, t, n, r);
1618
1617
  }
1619
- function Yn(e, t) {
1618
+ function Jn(e, t) {
1620
1619
  let n = e.docFieldCount.get(t);
1621
1620
  if (n === void 0) return;
1622
1621
  e.fieldCount -= n, e.docFieldCount.delete(t);
@@ -1629,10 +1628,10 @@ function Yn(e, t) {
1629
1628
  e.docTermFieldHits.delete(t);
1630
1629
  }
1631
1630
  }
1632
- function Xn(e, t) {
1631
+ function Yn(e, t) {
1633
1632
  if (t.length === 0) return;
1634
1633
  let n = Array.from(new Set(t)).sort((e, t) => e - t);
1635
- for (let t of n) Yn(e, t);
1634
+ for (let t of n) Jn(e, t);
1636
1635
  let r = (e) => {
1637
1636
  let t = 0, r = n.length;
1638
1637
  for (; t < r;) {
@@ -1652,28 +1651,28 @@ var $ = class {
1652
1651
  this.options = {
1653
1652
  ...Q,
1654
1653
  ...t
1655
- }, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new Gt(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
1654
+ }, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new Wt(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
1656
1655
  }
1657
1656
  _getSearcher(e) {
1658
1657
  if (this._lastQuery === e) return this._lastSearcher;
1659
- let t = En(e, this._invertedIndex ? {
1658
+ let t = Tn(e, this._invertedIndex ? {
1660
1659
  ...this.options,
1661
1660
  _invertedIndex: this._invertedIndex
1662
1661
  } : this.options);
1663
1662
  return this._lastQuery = e, this._lastSearcher = t, t;
1664
1663
  }
1665
1664
  setCollection(e, t) {
1666
- if (this._docs = e, t && !(t instanceof nn)) throw Error(Lt);
1667
- if (this._myIndex = t || rn(this.options.keys, this._docs, {
1665
+ if (this._docs = e, t && !(t instanceof tn)) throw Error(It);
1666
+ if (this._myIndex = t || nn(this.options.keys, this._docs, {
1668
1667
  getFn: this.options.getFn,
1669
1668
  fieldNormWeight: this.options.fieldNormWeight
1670
1669
  }), this.options.useTokenSearch) {
1671
- let e = Un({
1670
+ let e = Hn({
1672
1671
  isCaseSensitive: this.options.isCaseSensitive,
1673
1672
  ignoreDiacritics: this.options.ignoreDiacritics,
1674
1673
  tokenize: this.options.tokenize
1675
1674
  });
1676
- this._invertedIndex = qn(this._myIndex.records, this._myIndex.keys.length, e);
1675
+ this._invertedIndex = Kn(this._myIndex.records, this._myIndex.keys.length, e);
1677
1676
  }
1678
1677
  this._invalidateSearcherCache();
1679
1678
  }
@@ -1682,12 +1681,12 @@ var $ = class {
1682
1681
  this._docs.push(e);
1683
1682
  let t = this._myIndex.add(e, this._docs.length - 1);
1684
1683
  if (this._invertedIndex && t) {
1685
- let e = Un({
1684
+ let e = Hn({
1686
1685
  isCaseSensitive: this.options.isCaseSensitive,
1687
1686
  ignoreDiacritics: this.options.ignoreDiacritics,
1688
1687
  tokenize: this.options.tokenize
1689
1688
  });
1690
- Jn(this._invertedIndex, t, this._myIndex.keys.length, e);
1689
+ qn(this._invertedIndex, t, this._myIndex.keys.length, e);
1691
1690
  }
1692
1691
  this._invalidateSearcherCache();
1693
1692
  }
@@ -1695,15 +1694,15 @@ var $ = class {
1695
1694
  let t = [], n = [];
1696
1695
  for (let r = 0, i = this._docs.length; r < i; r += 1) e(this._docs[r], r) && (t.push(this._docs[r]), n.push(r));
1697
1696
  if (n.length) {
1698
- this._invertedIndex && Xn(this._invertedIndex, n);
1697
+ this._invertedIndex && Yn(this._invertedIndex, n);
1699
1698
  let e = new Set(n);
1700
1699
  this._docs = this._docs.filter((t, n) => !e.has(n)), this._myIndex.removeAll(n), this._invalidateSearcherCache();
1701
1700
  }
1702
1701
  return t;
1703
1702
  }
1704
1703
  removeAt(e) {
1705
- if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Rt);
1706
- this._invertedIndex && Xn(this._invertedIndex, [e]);
1704
+ if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Lt);
1705
+ this._invertedIndex && Yn(this._invertedIndex, [e]);
1707
1706
  let t = this._docs.splice(e, 1)[0];
1708
1707
  return this._myIndex.removeAt(e), this._invalidateSearcherCache(), t;
1709
1708
  }
@@ -1723,11 +1722,11 @@ var $ = class {
1723
1722
  item: e,
1724
1723
  refIndex: t
1725
1724
  }));
1726
- return jt(n) && n > -1 && (e = e.slice(0, n)), e;
1725
+ return At(n) && n > -1 && (e = e.slice(0, n)), e;
1727
1726
  }
1728
- let c = a && jt(n) && n > 0 && X(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
1727
+ let c = a && At(n) && n > 0 && X(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
1729
1728
  if (c) {
1730
- let t = new In(n, u);
1729
+ let t = new Fn(n, u);
1731
1730
  X(this._docs[0]) ? this._searchStringList(e, {
1732
1731
  heap: t,
1733
1732
  ignoreFieldNorm: s
@@ -1735,8 +1734,8 @@ var $ = class {
1735
1734
  heap: t,
1736
1735
  ignoreFieldNorm: s
1737
1736
  }), d = t.extractSorted();
1738
- } else d = X(e) ? X(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), Fn(d, { ignoreFieldNorm: s }), a && d.sort(X(e) ? u : l), jt(n) && n > -1 && (d = d.slice(0, n));
1739
- return Rn(d, this._docs, {
1737
+ } else d = X(e) ? X(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), Pn(d, { ignoreFieldNorm: s }), a && d.sort(X(e) ? u : l), At(n) && n > -1 && (d = d.slice(0, n));
1738
+ return Ln(d, this._docs, {
1740
1739
  includeMatches: r,
1741
1740
  includeScore: i
1742
1741
  });
@@ -1761,13 +1760,13 @@ var $ = class {
1761
1760
  idx: a,
1762
1761
  matches: l
1763
1762
  };
1764
- t ? (r.score = Pn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
1763
+ t ? (r.score = Nn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
1765
1764
  }
1766
1765
  }
1767
1766
  }), o;
1768
1767
  }
1769
1768
  _searchLogical(e) {
1770
- let t = Nn(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
1769
+ let t = Mn(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
1771
1770
  if (!("children" in e)) {
1772
1771
  let { keyId: r, searcher: a } = e, o;
1773
1772
  return r === null ? (o = [], n.forEach((e, n) => {
@@ -1790,7 +1789,7 @@ var $ = class {
1790
1789
  for (let e = 0, n = a.length; e < n; e += 1) {
1791
1790
  let n = a[e], c = r(n, t, i);
1792
1791
  if (c.length) s.push(...c);
1793
- else if (o === Dn.AND) return [];
1792
+ else if (o === En.AND) return [];
1794
1793
  }
1795
1794
  return s;
1796
1795
  }, i = this._myIndex.records, a = /* @__PURE__ */ new Map(), o = [];
@@ -1825,7 +1824,7 @@ var $ = class {
1825
1824
  item: e,
1826
1825
  matches: c
1827
1826
  };
1828
- t ? (r.score = Pn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
1827
+ t ? (r.score = Nn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
1829
1828
  }
1830
1829
  }), s;
1831
1830
  }
@@ -1880,16 +1879,16 @@ var $ = class {
1880
1879
  return n.size === t;
1881
1880
  }
1882
1881
  };
1883
- $.version = "7.5.0", $.createIndex = rn, $.parseIndex = an, $.config = Q, $.match = function(e, t, n) {
1884
- if (n && n.useTokenSearch) throw Error(Ut);
1885
- return En(e, {
1882
+ $.version = "7.5.0", $.createIndex = nn, $.parseIndex = rn, $.config = Q, $.match = function(e, t, n) {
1883
+ if (n && n.useTokenSearch) throw Error(Ht);
1884
+ return Tn(e, {
1886
1885
  ...Q,
1887
1886
  ...n
1888
1887
  }).searchIn(t);
1889
- }, $.parseQuery = Nn, Tn(Cn), Tn(Wn), $.use = function(...e) {
1890
- e.forEach((e) => Tn(e));
1888
+ }, $.parseQuery = Mn, wn(Sn), wn(Un), $.use = function(...e) {
1889
+ e.forEach((e) => wn(e));
1891
1890
  };
1892
- var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, open: i, searchMode: a }) => {
1891
+ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, open: i, searchMode: a }) => {
1893
1892
  let { t: o } = G(), s = [
1894
1893
  {
1895
1894
  label: o`Include match`,
@@ -1917,30 +1916,30 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1917
1916
  }, [t, n]), l = B((e) => {
1918
1917
  e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), r());
1919
1918
  }, [r]);
1920
- return /* @__PURE__ */ K(be, {
1919
+ return /* @__PURE__ */ K(_e, {
1921
1920
  anchorEl: e,
1922
1921
  open: i,
1923
1922
  placement: "bottom-end",
1924
1923
  sx: { zIndex: (e) => e.zIndex.modal + 1 },
1925
- children: /* @__PURE__ */ K(le, {
1924
+ children: /* @__PURE__ */ K(se, {
1926
1925
  onClickAway: n,
1927
- children: /* @__PURE__ */ q(ye, {
1926
+ children: /* @__PURE__ */ q(ge, {
1928
1927
  elevation: 8,
1929
1928
  sx: { width: 280 },
1930
1929
  ...J.createAttributes("DashboardSearchSettings"),
1931
1930
  children: [
1932
- /* @__PURE__ */ K(_e, {
1931
+ /* @__PURE__ */ K(me, {
1933
1932
  autoFocusItem: i,
1934
1933
  onKeyDown: l,
1935
- children: s.map((e) => /* @__PURE__ */ q(ge, {
1934
+ children: s.map((e) => /* @__PURE__ */ q(pe, {
1936
1935
  "data-search-mode": e.searchMode,
1937
1936
  onClick: c,
1938
1937
  selected: e.searchMode === a,
1939
- children: [/* @__PURE__ */ K(pe, { children: e.searchMode === a && /* @__PURE__ */ K(at, { fontSize: "small" }) }), /* @__PURE__ */ K(me, { children: e.label })]
1938
+ children: [/* @__PURE__ */ K(ue, { children: e.searchMode === a && /* @__PURE__ */ K(it, { fontSize: "small" }) }), /* @__PURE__ */ K(de, { children: e.label })]
1940
1939
  }, e.searchMode))
1941
1940
  }),
1942
- /* @__PURE__ */ K(I, {}),
1943
- /* @__PURE__ */ q(P, {
1941
+ /* @__PURE__ */ K(F, {}),
1942
+ /* @__PURE__ */ q(N, {
1944
1943
  sx: { p: 1.5 },
1945
1944
  children: [
1946
1945
  /* @__PURE__ */ K(R, {
@@ -1965,7 +1964,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1965
1964
  })
1966
1965
  })
1967
1966
  });
1968
- }, $n = (e, t) => {
1967
+ }, Qn = (e, t) => {
1969
1968
  switch (t) {
1970
1969
  case "exact-match": return `=${e}`;
1971
1970
  case "fuzzy-match": return e;
@@ -1974,13 +1973,13 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1974
1973
  case "suffix-exact-match": return `${e}$`;
1975
1974
  default: return `'${e}`;
1976
1975
  }
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,
1976
+ }, $n = () => {
1977
+ 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;
1978
+ g && (ne = b.length ? T < 0 ? h("{{numResults}} results", { numResults: b.length }) : h("{{current}}/{{numResults}} results", {
1979
+ current: T + 1,
1981
1980
  numResults: b.length
1982
1981
  }) : h`No results`);
1983
- let k = B(() => {
1982
+ let A = B(() => {
1984
1983
  let e = [];
1985
1984
  return f.forEach((t) => {
1986
1985
  let r = { id: t.id };
@@ -1992,7 +1991,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1992
1991
  let o = n.getRowValue({ [e]: t }, i, p);
1993
1992
  o.isMissing || (a.concept_set_id || (r[`${e}-raw`] = o.raw), o.full !== o.raw && (r[`${e}-full`] = o.full), o.long !== o.raw && o.long !== o.full && (r[`${e}-long`] = o.long), o.short !== o.raw && o.short !== o.full && o.short !== o.long && (r[`${e}-short`] = o.short));
1994
1993
  }), e.push(r);
1995
- }), new Zn(e, {
1994
+ }), new Xn(e, {
1996
1995
  ignoreDiacritics: !0,
1997
1996
  ignoreLocation: !1,
1998
1997
  includeMatches: !0,
@@ -2007,77 +2006,77 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2007
2006
  threshold: .3,
2008
2007
  useExtendedSearch: !0
2009
2008
  });
2010
- }, [p, f]), A = B(() => {
2009
+ }, [p, f]), j = B(() => {
2011
2010
  if (v) return v;
2012
- let e = k();
2011
+ let e = A();
2013
2012
  return y(e), e;
2014
- }, [k, v]), ie = B((e) => {
2013
+ }, [A, v]), re = B((e) => {
2015
2014
  let t = e.target.value;
2016
- _(t), t && A();
2017
- }, [A]);
2015
+ _(t), t && j();
2016
+ }, [j]);
2018
2017
  V(() => {
2019
- _(""), C(!1), y(null), x([]), T(-1);
2018
+ _(""), w(!1), y(null), x([]), E(-1);
2020
2019
  }, [p, f]), V(() => {
2021
2020
  if (!g) {
2022
- x([]), T(-1), O.highlight({
2021
+ x([]), E(-1), k.highlight({
2023
2022
  caseIds: [],
2024
2023
  origin: a.SEARCH_BOX
2025
2024
  });
2026
2025
  return;
2027
2026
  }
2028
2027
  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);
2028
+ let e = Qn(g, ee), t = v.search(e).sort((e, t) => e.refIndex - t.refIndex);
2029
+ x(t), E(-1);
2031
2030
  }, [
2032
- O,
2031
+ k,
2033
2032
  v,
2034
- te,
2033
+ ee,
2035
2034
  g
2036
2035
  ]);
2037
- let j = B(() => {
2038
- C(!0);
2036
+ let ie = B(() => {
2037
+ w(!0);
2039
2038
  }, []);
2040
2039
  V(() => {
2041
- S ? e.current?.focus() : i.current && (i.current = !1, t.current?.focus());
2042
- }, [S]);
2040
+ C ? e.current?.focus() : i.current && (i.current = !1, t.current?.focus());
2041
+ }, [C]);
2043
2042
  let M = B(() => {
2044
- i.current = !0, C(!1), _(""), x([]), T(-1), O.highlight({
2043
+ i.current = !0, w(!1), _(""), x([]), E(-1), k.highlight({
2045
2044
  caseIds: [],
2046
2045
  origin: a.SEARCH_BOX
2047
2046
  });
2048
- }, [O]), ae = B(() => {
2047
+ }, [k]), ae = B(() => {
2049
2048
  M();
2050
2049
  }, [M]), oe = B((e) => {
2051
2050
  e.key === "Escape" && (e.preventDefault(), M());
2052
- }, [M]), N = B((e) => {
2051
+ }, [M]), P = B((e) => {
2053
2052
  if (e.key === "Enter") {
2054
2053
  if (!b?.length) return;
2055
- e.preventDefault(), T(0), l.current?.focus();
2054
+ e.preventDefault(), E(0), l.current?.focus();
2056
2055
  }
2057
2056
  }, [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);
2057
+ b?.length && E((e) => e <= 0 ? b.length - 1 : e - 1);
2058
+ }, [b]), F = B(() => {
2059
+ b?.length && E((e) => e >= b.length - 1 ? 0 : e + 1);
2061
2060
  }, [b]);
2062
2061
  V(() => {
2063
- if (!b?.length || w < 0 || w >= b.length) {
2064
- O.highlight({
2062
+ if (!b?.length || T < 0 || T >= b.length) {
2063
+ k.highlight({
2065
2064
  caseIds: [],
2066
2065
  origin: a.SEARCH_BOX
2067
2066
  });
2068
2067
  return;
2069
2068
  }
2070
- O.highlight({
2071
- caseIds: [b[w].item.id],
2069
+ k.highlight({
2070
+ caseIds: [b[T].item.id],
2072
2071
  origin: a.SEARCH_BOX,
2073
2072
  scrollIntoView: !0
2074
2073
  });
2075
2074
  }, [
2076
- O,
2075
+ k,
2077
2076
  b,
2078
- w
2077
+ T
2079
2078
  ]);
2080
- let F = B((t) => {
2079
+ let I = B((t) => {
2081
2080
  if (t.key === "ArrowRight") {
2082
2081
  t.preventDefault();
2083
2082
  let e = t.currentTarget.nextElementSibling;
@@ -2092,15 +2091,15 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2092
2091
  n && n.focus();
2093
2092
  }
2094
2093
  }, []), le = B(() => {
2095
- ne(r.current);
2096
- }, []), I = B(() => {
2097
- ne(null);
2094
+ O(r.current);
2098
2095
  }, []), ue = B(() => {
2099
- ne(null), r.current?.focus();
2096
+ O(null);
2097
+ }, []), de = B(() => {
2098
+ O(null), r.current?.focus();
2100
2099
  }, []), fe = B((t) => {
2101
- E(t), e.current?.focus();
2100
+ D(t), e.current?.focus();
2102
2101
  }, []);
2103
- return /* @__PURE__ */ K(P, {
2102
+ return /* @__PURE__ */ K(N, {
2104
2103
  sx: {
2105
2104
  height: m.spacing(4),
2106
2105
  maxWidth: m.spacing(60),
@@ -2108,17 +2107,17 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2108
2107
  width: "calc(100% / 2)"
2109
2108
  },
2110
2109
  ...J.createAttributes("DashboardSearch"),
2111
- children: S ? /* @__PURE__ */ K(P, {
2110
+ children: C ? /* @__PURE__ */ K(N, {
2112
2111
  onKeyDown: oe,
2113
- children: /* @__PURE__ */ K(ve, {
2114
- endAdornment: /* @__PURE__ */ q(de, {
2112
+ children: /* @__PURE__ */ K(he, {
2113
+ endAdornment: /* @__PURE__ */ q(ce, {
2115
2114
  position: "end",
2116
2115
  children: [
2117
- re && /* @__PURE__ */ K(P, {
2116
+ ne && /* @__PURE__ */ K(N, {
2118
2117
  "aria-atomic": "true",
2119
2118
  "aria-live": "polite",
2120
2119
  role: "status",
2121
- children: re
2120
+ children: ne
2122
2121
  }),
2123
2122
  /* @__PURE__ */ K(L, {
2124
2123
  ...J.createAttributes("DashboardSearch-PreviousButton"),
@@ -2126,55 +2125,55 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2126
2125
  disabled: !b?.length,
2127
2126
  edge: "end",
2128
2127
  onClick: se,
2129
- onKeyDown: F,
2128
+ onKeyDown: I,
2130
2129
  ref: s,
2131
2130
  sx: { color: m.palette.primary.main },
2132
- children: /* @__PURE__ */ K(tt, {})
2131
+ children: /* @__PURE__ */ K(et, {})
2133
2132
  }),
2134
2133
  /* @__PURE__ */ K(L, {
2135
2134
  ...J.createAttributes("DashboardSearch-NextButton"),
2136
2135
  "aria-label": h`Goto next search result`,
2137
2136
  disabled: !b?.length,
2138
2137
  edge: "end",
2139
- onClick: ce,
2140
- onKeyDown: F,
2138
+ onClick: F,
2139
+ onKeyDown: I,
2141
2140
  ref: l,
2142
2141
  sx: { color: m.palette.primary.main },
2143
- children: /* @__PURE__ */ K(nt, {})
2142
+ children: /* @__PURE__ */ K(tt, {})
2144
2143
  }),
2145
2144
  /* @__PURE__ */ K(L, {
2146
2145
  ...J.createAttributes("DashboardSearch-SettingsButton"),
2147
2146
  "aria-label": h`Open settings`,
2148
2147
  edge: "end",
2149
2148
  onClick: le,
2150
- onKeyDown: F,
2149
+ onKeyDown: I,
2151
2150
  ref: r,
2152
- children: /* @__PURE__ */ K(rt, {})
2151
+ children: /* @__PURE__ */ K(nt, {})
2153
2152
  }),
2154
- /* @__PURE__ */ K(Qn, {
2155
- anchorEl: D,
2153
+ /* @__PURE__ */ K(Zn, {
2154
+ anchorEl: te,
2156
2155
  onChange: fe,
2157
- onClose: I,
2158
- onEscapeKeyDown: ue,
2159
- open: !!D,
2160
- searchMode: te
2156
+ onClose: ue,
2157
+ onEscapeKeyDown: de,
2158
+ open: !!te,
2159
+ searchMode: ee
2161
2160
  }),
2162
2161
  /* @__PURE__ */ K(L, {
2163
2162
  ...J.createAttributes("DashboardSearch-CloseButton"),
2164
2163
  "aria-label": h`Close search`,
2165
2164
  edge: "end",
2166
2165
  onClick: ae,
2167
- onKeyDown: F,
2166
+ onKeyDown: I,
2168
2167
  ref: u,
2169
- children: /* @__PURE__ */ K(it, {})
2168
+ children: /* @__PURE__ */ K(rt, {})
2170
2169
  })
2171
2170
  ]
2172
2171
  }),
2173
2172
  fullWidth: !0,
2174
2173
  inputRef: e,
2175
2174
  name: h`Search listed cases`,
2176
- onChange: ie,
2177
- onKeyDown: N,
2175
+ onChange: re,
2176
+ onKeyDown: P,
2178
2177
  placeholder: h`Search listed cases`,
2179
2178
  size: "small",
2180
2179
  slotProps: { input: {
@@ -2194,7 +2193,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2194
2193
  type: "search",
2195
2194
  value: g
2196
2195
  })
2197
- }) : /* @__PURE__ */ K(P, {
2196
+ }) : /* @__PURE__ */ K(N, {
2198
2197
  sx: {
2199
2198
  justifySelf: "flex-end",
2200
2199
  marginRight: m.spacing(.6),
@@ -2203,56 +2202,56 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2203
2202
  children: /* @__PURE__ */ K(L, {
2204
2203
  "aria-label": h`Search`,
2205
2204
  edge: "end",
2206
- onClick: j,
2205
+ onClick: ie,
2207
2206
  ref: t,
2208
2207
  sx: {
2209
2208
  color: m.palette.primary.main,
2210
2209
  margin: 0,
2211
2210
  padding: 0
2212
2211
  },
2213
- children: /* @__PURE__ */ K(et, {})
2212
+ children: /* @__PURE__ */ K($e, {})
2214
2213
  })
2215
2214
  })
2216
2215
  });
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]);
2216
+ }, er = ({ caseSet: e }) => {
2217
+ 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(() => {
2218
+ j.setState({ isMaxResultsExceededDismissed: !0 });
2219
+ }, [j]);
2221
2220
  V(() => {
2222
2221
  let e = u.getInstance(), t = [
2223
2222
  e.addEventListener("onEventCreated", () => {
2224
- ie();
2223
+ re();
2225
2224
  }),
2226
- e.addEventListener("openAddCasesToEventDialog", (...e) => g.current?.open(...e)),
2225
+ e.addEventListener("openAddCasesToEventDialog", (...e) => E.current?.open(...e)),
2227
2226
  e.addEventListener("openCaseInfoDialog", (...e) => f.current?.open(...e)),
2228
2227
  e.addEventListener("openContactDetailsDialog", (...e) => s.current?.open(...e)),
2229
- e.addEventListener("openCreateEventDialog", (...e) => m.current?.open(...e)),
2228
+ e.addEventListener("openCreateEventDialog", (...e) => S.current?.open(...e)),
2230
2229
  e.addEventListener("openFindSimilarCasesDialog", (...e) => p.current?.open(...e)),
2231
2230
  e.addEventListener("openRemoveFindSimilarCasesResultDialog", (...e) => ee.current?.open(...e)),
2232
- e.addEventListener("openRemoveCasesFromEventDialog", (...e) => h.current?.open(...e)),
2231
+ e.addEventListener("openRemoveCasesFromEventDialog", (...e) => T.current?.open(...e)),
2233
2232
  e.addEventListener("openSequenceDownloadDialog", (...e) => l.current?.open(...e)),
2234
- e.addEventListener("openFiltersMenu", () => D(!0))
2233
+ e.addEventListener("openFiltersMenu", () => te(!0))
2235
2234
  ];
2236
2235
  return () => {
2237
2236
  t.forEach((e) => e());
2238
2237
  };
2239
- }, [ie]), V(() => {
2238
+ }, [re]), V(() => {
2240
2239
  let e = [
2241
- Ke.getInstance().registerShortcut({
2240
+ Ge.getInstance().registerShortcut({
2242
2241
  callback: () => {
2243
- D((e) => !e);
2242
+ te((e) => !e);
2244
2243
  },
2245
2244
  key: "f",
2246
2245
  modifier: null
2247
2246
  }),
2248
- Ke.getInstance().registerShortcut({
2247
+ Ge.getInstance().registerShortcut({
2249
2248
  callback: () => {
2250
- O((e) => !e);
2249
+ k((e) => !e);
2251
2250
  },
2252
2251
  key: "s",
2253
2252
  modifier: null
2254
2253
  }),
2255
- Ke.getInstance().registerShortcut({
2254
+ Ge.getInstance().registerShortcut({
2256
2255
  callback: () => {
2257
2256
  a.current.open();
2258
2257
  },
@@ -2264,129 +2263,129 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2264
2263
  e.forEach((e) => e());
2265
2264
  };
2266
2265
  }, []);
2267
- let le = B(() => {
2268
- D(!1);
2269
- }, []), I = B(() => {
2270
- D(!0);
2271
- }, []), ue = B(() => {
2272
- O(!1);
2273
- }, []), L = B(() => {
2266
+ let L = B(() => {
2267
+ te(!1);
2268
+ }, []), ce = B(() => {
2269
+ te(!0);
2270
+ }, []), le = B(() => {
2274
2271
  k(!1);
2272
+ }, []), ue = B(() => {
2273
+ A(!1);
2275
2274
  }, []), de = B(() => {
2276
- O(!0);
2277
- }, []), fe = B(() => {
2278
2275
  k(!0);
2276
+ }, []), fe = B(() => {
2277
+ A(!0);
2279
2278
  }, []), pe = B(() => {
2280
2279
  a.current.open();
2281
2280
  }, []), me = B(() => {
2282
2281
  i.current.open({
2283
2282
  caseSetId: e?.id,
2284
- caseTypeId: j?.id
2283
+ caseTypeId: ie?.id
2285
2284
  });
2286
- }, [e?.id, j?.id]), he = B(() => {
2285
+ }, [e?.id, ie?.id]), he = B(() => {
2287
2286
  r.current?.reset();
2288
- }, []), ge = H(() => !!ae && !oe, [oe, ae]), _e = N.getInstance().config.dashboard.DASHBOARD_INJECTED_COMPONENT;
2289
- return /* @__PURE__ */ q(je, { children: [
2290
- /* @__PURE__ */ q(We, { children: [
2291
- /* @__PURE__ */ K(Ge, {
2287
+ }, []), ge = H(() => !!se && !F, [F, se]), _e = M.getInstance().config.dashboard.DASHBOARD_INJECTED_COMPONENT;
2288
+ return /* @__PURE__ */ q(Oe, { children: [
2289
+ /* @__PURE__ */ q(Ue, { children: [
2290
+ /* @__PURE__ */ K(We, {
2292
2291
  badgeColor: "secondary",
2293
- badgeContent: M,
2292
+ badgeContent: P,
2294
2293
  first: !0,
2295
- icon: /* @__PURE__ */ K(Re, {}),
2296
- onClick: I,
2294
+ icon: /* @__PURE__ */ K(Le, {}),
2295
+ onClick: ce,
2297
2296
  testIdAttributes: { name: "filters" },
2298
2297
  title: t`Open filters`
2299
2298
  }),
2300
- /* @__PURE__ */ K(Ge, {
2299
+ /* @__PURE__ */ K(We, {
2301
2300
  badgeColor: "secondary",
2302
- icon: /* @__PURE__ */ K(ht, {}),
2301
+ icon: /* @__PURE__ */ K(mt, {}),
2303
2302
  onClick: de,
2304
2303
  testIdAttributes: { name: "dashboard" },
2305
2304
  title: t`Change dashboard layout`
2306
2305
  }),
2307
- /* @__PURE__ */ K(Ge, {
2308
- icon: /* @__PURE__ */ K(Ve, {}),
2306
+ /* @__PURE__ */ K(We, {
2307
+ icon: /* @__PURE__ */ K(Be, {}),
2309
2308
  onClick: pe,
2310
2309
  testIdAttributes: { name: "case" },
2311
2310
  title: t`Show case type information`
2312
2311
  }),
2313
- e && /* @__PURE__ */ K(Ge, {
2314
- icon: /* @__PURE__ */ K(_, {}),
2312
+ e && /* @__PURE__ */ K(We, {
2313
+ icon: /* @__PURE__ */ K(m, {}),
2315
2314
  onClick: me,
2316
2315
  testIdAttributes: { name: "event" },
2317
2316
  title: t`Show event information`
2318
2317
  }),
2319
- /* @__PURE__ */ K(Ge, {
2320
- icon: /* @__PURE__ */ K(Et, {}),
2318
+ /* @__PURE__ */ K(We, {
2319
+ icon: /* @__PURE__ */ K(Tt, {}),
2321
2320
  onClick: fe,
2322
2321
  testIdAttributes: { name: "download" },
2323
2322
  title: t`Download`
2324
2323
  }),
2325
- /* @__PURE__ */ K(Le, {
2324
+ /* @__PURE__ */ K(Ie, {
2325
+ onClose: L,
2326
+ open: D
2327
+ }),
2328
+ /* @__PURE__ */ K(gt, {
2326
2329
  onClose: le,
2327
- open: E
2330
+ onReset: he,
2331
+ open: O
2328
2332
  }),
2329
- /* @__PURE__ */ K(_t, {
2333
+ /* @__PURE__ */ K(g, { ref: a }),
2334
+ e && /* @__PURE__ */ K(h, { ref: i }),
2335
+ /* @__PURE__ */ K(Dt, {
2330
2336
  onClose: ue,
2331
- onReset: he,
2332
2337
  open: ne
2333
- }),
2334
- /* @__PURE__ */ K(y, { ref: a }),
2335
- e && /* @__PURE__ */ K(v, { ref: i }),
2336
- /* @__PURE__ */ K(Ot, {
2337
- onClose: L,
2338
- open: re
2339
2338
  })
2340
2339
  ] }),
2341
- /* @__PURE__ */ q(P, {
2340
+ /* @__PURE__ */ q(N, {
2342
2341
  sx: {
2343
2342
  display: "grid",
2344
2343
  gridTemplateRows: `${ge ? "max-content " : ""}max-content auto`,
2345
2344
  height: "100%",
2346
- paddingLeft: n.spacing(N.getInstance().config.layout.SIDEBAR_MENU_WIDTH + 1),
2345
+ paddingLeft: n.spacing(M.getInstance().config.layout.SIDEBAR_MENU_WIDTH + 1),
2347
2346
  width: "100%"
2348
2347
  },
2349
2348
  children: [
2350
- ge && /* @__PURE__ */ K(P, {
2349
+ ge && /* @__PURE__ */ K(N, {
2351
2350
  sx: { marginY: n.spacing(1) },
2352
- children: /* @__PURE__ */ q(se, {
2353
- onClose: F,
2351
+ children: /* @__PURE__ */ q(ae, {
2352
+ onClose: I,
2354
2353
  severity: "warning",
2355
2354
  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
2355
+ 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.", {
2356
+ caseTypeName: ie.name,
2357
+ maxResultsForCaseType: ie.props.read_max_n_cases
2359
2358
  })]
2360
2359
  })
2361
2360
  }),
2362
- /* @__PURE__ */ q(P, {
2361
+ /* @__PURE__ */ q(N, {
2363
2362
  sx: {
2364
2363
  display: "flex",
2365
2364
  justifyContent: "space-between"
2366
2365
  },
2367
- children: [/* @__PURE__ */ K(T, {}), /* @__PURE__ */ K(er, {})]
2366
+ children: [/* @__PURE__ */ K(C, {}), /* @__PURE__ */ K($n, {})]
2368
2367
  }),
2369
- /* @__PURE__ */ K(P, { children: /* @__PURE__ */ K(Tt, {
2370
- disabled: E || ne,
2368
+ /* @__PURE__ */ K(N, { children: /* @__PURE__ */ K(wt, {
2369
+ disabled: D || O,
2371
2370
  ref: r
2372
2371
  }) })
2373
2372
  ]
2374
2373
  }),
2375
- /* @__PURE__ */ K(He, { ref: s }),
2376
- /* @__PURE__ */ K(te, { ref: p }),
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 }),
2374
+ /* @__PURE__ */ K(Ve, { ref: s }),
2375
+ /* @__PURE__ */ K(w, { ref: p }),
2376
+ /* @__PURE__ */ K(lt, { ref: ee }),
2377
+ /* @__PURE__ */ K(x, { ref: l }),
2378
+ /* @__PURE__ */ K(v, { ref: f }),
2379
+ /* @__PURE__ */ K(y, { ref: S }),
2380
+ /* @__PURE__ */ K(b, { ref: T }),
2381
+ /* @__PURE__ */ K(_, { ref: E }),
2383
2382
  _e && /* @__PURE__ */ K(_e, {})
2384
2383
  ] });
2385
- }, nr = ({ caseSet: e, children: t }) => {
2386
- let n = z(E), r = H(() => new ot({
2384
+ }, tr = ({ caseSet: e, children: t }) => {
2385
+ let n = z(T), r = H(() => new at({
2387
2386
  caseIds: [],
2388
2387
  origin: null
2389
- }), []), i = H(() => new ot(), []), a = H(() => new ot(), []), o = B(() => {
2388
+ }), []), i = H(() => new at(), []), a = H(() => new at(), []), o = B(() => {
2390
2389
  r.next({
2391
2390
  caseIds: [],
2392
2391
  origin: null
@@ -2412,11 +2411,11 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2412
2411
  a,
2413
2412
  o
2414
2413
  ]);
2415
- return /* @__PURE__ */ K(ee, {
2414
+ return /* @__PURE__ */ K(S, {
2416
2415
  value: c,
2417
2416
  children: t
2418
2417
  });
2419
- }, rr = f(({ caseSet: e }) => {
2418
+ }, nr = f(({ caseSet: e }) => {
2420
2419
  let t = z(c), n = o(t, (e) => e.dataError), [r, i] = W(null), a = B(() => {
2421
2420
  i(null);
2422
2421
  }, []);
@@ -2427,29 +2426,29 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2427
2426
  return () => {
2428
2427
  e.forEach((e) => e());
2429
2428
  };
2430
- }, []), /* @__PURE__ */ K(nr, {
2429
+ }, []), /* @__PURE__ */ K(tr, {
2431
2430
  caseSet: e,
2432
- children: /* @__PURE__ */ K(Ne, {
2431
+ children: /* @__PURE__ */ K(N, {
2433
2432
  sx: {
2434
2433
  height: "100%",
2435
2434
  position: "relative",
2436
2435
  width: "100%"
2437
2436
  },
2438
- children: /* @__PURE__ */ K(Me, {
2437
+ children: /* @__PURE__ */ K(ke, {
2439
2438
  error: n,
2440
2439
  isLoading: !1,
2441
- children: r ? /* @__PURE__ */ K(g, {
2440
+ children: r ? /* @__PURE__ */ K(p, {
2442
2441
  cases: r,
2443
2442
  onClose: a
2444
- }) : /* @__PURE__ */ K(tr, { caseSet: e })
2443
+ }) : /* @__PURE__ */ K(er, { caseSet: e })
2445
2444
  })
2446
2445
  })
2447
2446
  });
2448
- }), ir = Se(I)(({ theme: e }) => ({
2447
+ }), rr = ye(F)(({ theme: e }) => ({
2449
2448
  marginBottom: e.spacing(.5),
2450
2449
  marginTop: e.spacing(.5)
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(() => {
2450
+ })), ir = ({ children: e, expandDisabled: t, isLoading: n, primaryMenu: r, secondaryMenu: a, title: s, warningMessage: l, widgetName: u }) => {
2451
+ let d = be(), { t: f } = G(), p = z(T), m = z(c), h = z(xt), 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
2452
  g(_ === h ? null : h);
2454
2453
  }, [
2455
2454
  g,
@@ -2469,7 +2468,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2469
2468
  p,
2470
2469
  h
2471
2470
  ]), C = H(() => {
2472
- if (typeof s == "string") return /* @__PURE__ */ K(xe, {
2471
+ if (typeof s == "string") return /* @__PURE__ */ K(ve, {
2473
2472
  arrow: !0,
2474
2473
  placement: "right",
2475
2474
  title: s,
@@ -2488,8 +2487,8 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2488
2487
  children: s
2489
2488
  })
2490
2489
  });
2491
- if (Oe(s)) return s;
2492
- if (lt.isMenuItemData(s)) return /* @__PURE__ */ K(Ye, {
2490
+ if (Te(s)) return s;
2491
+ if (ct.isMenuItemData(s)) return /* @__PURE__ */ K(Je, {
2493
2492
  ButtonProps: {
2494
2493
  color: "inherit",
2495
2494
  size: "small",
@@ -2505,13 +2504,13 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2505
2504
  menuItemsData: s,
2506
2505
  showTopLevelTooltip: !0
2507
2506
  });
2508
- }, [d, s]), w = H(() => /* @__PURE__ */ K(P, {
2507
+ }, [d, s]), w = H(() => /* @__PURE__ */ K(N, {
2509
2508
  sx: {
2510
2509
  height: d.spacing(3),
2511
2510
  position: "relative",
2512
2511
  width: "100%"
2513
2512
  },
2514
- children: /* @__PURE__ */ K(P, {
2513
+ children: /* @__PURE__ */ K(N, {
2515
2514
  sx: {
2516
2515
  height: d.spacing(3),
2517
2516
  left: 0,
@@ -2521,31 +2520,31 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2521
2520
  children: C
2522
2521
  })
2523
2522
  }), [d, C]);
2524
- return /* @__PURE__ */ q(P, {
2523
+ return /* @__PURE__ */ q(N, {
2525
2524
  ...J.createAttributes("DashboardWidget", { "widget-name": u }),
2526
2525
  sx: { height: "100%" },
2527
- children: [/* @__PURE__ */ q(P, {
2526
+ children: [/* @__PURE__ */ q(N, {
2528
2527
  sx: {
2529
2528
  display: "flex",
2530
2529
  height: d.spacing(3),
2531
2530
  justifyContent: "space-between"
2532
2531
  },
2533
- children: [w, /* @__PURE__ */ q(P, {
2532
+ children: [w, /* @__PURE__ */ q(N, {
2534
2533
  sx: { display: "flex" },
2535
- children: [/* @__PURE__ */ q(P, {
2534
+ children: [/* @__PURE__ */ q(N, {
2536
2535
  sx: {
2537
2536
  display: "flex",
2538
2537
  height: `calc(${d.spacing(3)} - 1px)`,
2539
2538
  justifySelf: "right",
2540
2539
  marginTop: "1px"
2541
2540
  },
2542
- children: [r && /* @__PURE__ */ K(M, { menu: r }), r && /* @__PURE__ */ K(ir, {
2541
+ children: [r && /* @__PURE__ */ K(j, { menu: r }), r && /* @__PURE__ */ K(rr, {
2543
2542
  "aria-hidden": "true",
2544
2543
  flexItem: !0,
2545
2544
  orientation: "vertical",
2546
2545
  variant: "middle"
2547
2546
  })]
2548
- }), /* @__PURE__ */ q(P, {
2547
+ }), /* @__PURE__ */ q(N, {
2549
2548
  sx: {
2550
2549
  display: "flex",
2551
2550
  height: `calc(${d.spacing(3)} - 1px)`,
@@ -2553,44 +2552,44 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2553
2552
  marginTop: "1px"
2554
2553
  },
2555
2554
  children: [
2556
- a && /* @__PURE__ */ K(M, { menu: a }),
2557
- a && /* @__PURE__ */ K(ir, {
2555
+ a && /* @__PURE__ */ K(j, { menu: a }),
2556
+ a && /* @__PURE__ */ K(rr, {
2558
2557
  "aria-hidden": "true",
2559
2558
  flexItem: !0,
2560
2559
  orientation: "vertical",
2561
2560
  variant: "middle"
2562
2561
  }),
2563
- v > 1 && /* @__PURE__ */ q(j, {
2562
+ v > 1 && /* @__PURE__ */ q(A, {
2564
2563
  disabled: t,
2565
2564
  label: b ? f`Collapse` : f`Expand`,
2566
2565
  onClick: x,
2567
- children: [b && /* @__PURE__ */ K(st, {}), !b && /* @__PURE__ */ K(ct, {})]
2566
+ children: [b && /* @__PURE__ */ K(ot, {}), !b && /* @__PURE__ */ K(st, {})]
2568
2567
  }),
2569
- !b && /* @__PURE__ */ K(j, {
2568
+ !b && /* @__PURE__ */ K(A, {
2570
2569
  label: f`Remove widget`,
2571
2570
  onClick: S,
2572
2571
  sx: { marginRight: d.spacing(-1) },
2573
- children: /* @__PURE__ */ K(it, {})
2572
+ children: /* @__PURE__ */ K(rt, {})
2574
2573
  })
2575
2574
  ]
2576
2575
  })]
2577
2576
  })]
2578
- }), /* @__PURE__ */ q(P, {
2577
+ }), /* @__PURE__ */ q(N, {
2579
2578
  sx: {
2580
2579
  height: `calc(100% - ${d.spacing(3)})`,
2581
2580
  position: "relative"
2582
2581
  },
2583
- children: [l && /* @__PURE__ */ K(P, {
2582
+ children: [l && /* @__PURE__ */ K(N, {
2584
2583
  sx: { height: d.spacing(3) },
2585
- children: /* @__PURE__ */ K(ae, { warningMessage: l })
2586
- }), /* @__PURE__ */ q(P, {
2584
+ children: /* @__PURE__ */ K(re, { warningMessage: l })
2585
+ }), /* @__PURE__ */ q(N, {
2587
2586
  sx: { height: l ? `calc(100% - ${d.spacing(3)})` : "100%" },
2588
- children: [n && /* @__PURE__ */ K(qe, { label: f`Loading` }), !n && e]
2587
+ children: [n && /* @__PURE__ */ K(Ke, { label: f`Loading` }), !n && e]
2589
2588
  })]
2590
2589
  })]
2591
2590
  });
2592
2591
  };
2593
2592
  //#endregion
2594
- export { rr as n, ar as t };
2593
+ export { nr as n, ir as t };
2595
2594
 
2596
2595
  //# sourceMappingURL=Dashboard.js.map