@gen-epix/ui-client-casedb 4.3.0 → 4.3.2

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 (170) hide show
  1. package/dist/_chunks/Dashboard.js +613 -666
  2. package/dist/_chunks/Dashboard.js.map +1 -1
  3. package/dist/_chunks/LegendaItem.js.map +1 -1
  4. package/dist/_chunks/UploadUtil.js +4 -6
  5. package/dist/_chunks/UploadUtil.js.map +1 -1
  6. package/dist/_chunks/_baseClone.js +1 -1
  7. package/dist/_chunks/_baseClone.js.map +1 -1
  8. package/dist/_chunks/cloneDeep.js +1 -1
  9. package/dist/_chunks/cloneDeep.js.map +1 -1
  10. package/dist/_chunks/esm.js +93 -101
  11. package/dist/_chunks/esm.js.map +1 -1
  12. package/dist/_chunks/react.js +1 -1
  13. package/dist/_chunks/react.js.map +1 -1
  14. package/dist/_chunks/shallow.js +2 -2
  15. package/dist/_chunks/shallow.js.map +1 -1
  16. package/dist/_chunks/sync.js +4 -4
  17. package/dist/_chunks/sync.js.map +1 -1
  18. package/dist/_chunks/vanilla.js +1 -1
  19. package/dist/_chunks/vanilla.js.map +1 -1
  20. package/dist/_chunks/yup.js +2 -2
  21. package/dist/_chunks/yup.js.map +1 -1
  22. package/dist/components/app/CaseDbApp/CaseDbApp.d.ts +1 -1
  23. package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialogSuccessNotificationMessage.d.ts +1 -1
  24. package/dist/components/ui/CaseContentForm/CaseContentForm.d.ts +1 -1
  25. package/dist/components/ui/CaseInfoDialog/CaseCaseSetInfo.d.ts +1 -1
  26. package/dist/components/ui/CaseInfoDialog/CaseContent.d.ts +1 -1
  27. package/dist/components/ui/CaseInfoDialog/CaseInfoForm.d.ts +1 -1
  28. package/dist/components/ui/CaseInfoDialog/CaseSharingForm.d.ts +1 -1
  29. package/dist/components/ui/CaseInfoDialog/CaseSharingInfo.d.ts +1 -1
  30. package/dist/components/ui/CaseInfoDialog/ReadOnlyCaseContent.d.ts +1 -1
  31. package/dist/components/ui/CaseSetInfoDialog/CaseSetContent.d.ts +1 -1
  32. package/dist/components/ui/CaseSetInfoDialog/CaseSetDescription.d.ts +1 -1
  33. package/dist/components/ui/CaseSetInfoDialog/CaseSetForm.d.ts +1 -1
  34. package/dist/components/ui/CaseSetInfoDialog/CaseSetSharingForm.d.ts +1 -1
  35. package/dist/components/ui/CaseSetInfoDialog/CaseSetSharingInfo.d.ts +1 -1
  36. package/dist/components/ui/CaseSummary/CaseSummary.d.ts +1 -1
  37. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoAccessRights.d.ts +1 -1
  38. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoColAccessRights.d.ts +1 -1
  39. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoData.d.ts +1 -1
  40. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogContent.d.ts +1 -1
  41. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoRegions.d.ts +1 -1
  42. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoTrees.d.ts +1 -1
  43. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoValues.d.ts +1 -1
  44. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoVariableDetails.d.ts +1 -1
  45. package/dist/components/ui/CasesAlreadyInCaseSetWarning/CasesAlreadyInCaseSetWarning.d.ts +1 -1
  46. package/dist/components/ui/CasesAlreadyInCaseSetWarning/CasesAlreadyInCaseSetWarningCaseSetLink.d.ts +1 -1
  47. package/dist/components/ui/CompletCaseTypeLoader/CompletCaseTypeLoader.d.ts +1 -1
  48. package/dist/components/ui/ContextMenu/ContextMenu.d.ts +1 -1
  49. package/dist/components/ui/ContextMenu/index.js +1 -1
  50. package/dist/components/ui/ContextMenu/index.js.map +1 -1
  51. package/dist/components/ui/CreateEventDialog/CreateEventDialogSuccessNotificationMessage.d.ts +1 -1
  52. package/dist/components/ui/CreateEventDialog/index.js +1 -1
  53. package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
  54. package/dist/components/ui/CustomTabPanel/CustomTabPanel.d.ts +1 -1
  55. package/dist/components/ui/Dashboard/DashboardContent.d.ts +1 -1
  56. package/dist/components/ui/Dashboard/DashboardDownloadSidebarItem.d.ts +1 -1
  57. package/dist/components/ui/Dashboard/DashboardGeneralSettingsForm.d.ts +1 -1
  58. package/dist/components/ui/Dashboard/DashboardLayoutRenderer.d.ts +1 -1
  59. package/dist/components/ui/Dashboard/DashboardLayoutSettingsForm.d.ts +1 -1
  60. package/dist/components/ui/Dashboard/DashboardSearch.d.ts +1 -1
  61. package/dist/components/ui/Dashboard/DashboardSearchSettings.d.ts +1 -1
  62. package/dist/components/ui/Dashboard/DashboardSettingsSidebarItem.d.ts +1 -1
  63. package/dist/components/ui/Dashboard/DashboardWidget.d.ts +1 -1
  64. package/dist/components/ui/Dashboard/DashboardWidgetPlaceHolder.d.ts +1 -1
  65. package/dist/components/ui/Dashboard/DashboardWidgetSettingsForm.d.ts +1 -1
  66. package/dist/components/ui/Dashboard/context/DashboardContextProvider.d.ts +1 -1
  67. package/dist/components/ui/DashboardEditCases/DashboardEditCases.d.ts +1 -1
  68. package/dist/components/ui/DashboardStoreLoader/DashboardStoreLoader.d.ts +1 -1
  69. package/dist/components/ui/DashboardStoreLoader/DashboardStoreLoaderContent.d.ts +1 -1
  70. package/dist/components/ui/DataCollectionAccessInfo/DataCollectionAccessInfo.d.ts +1 -1
  71. package/dist/components/ui/EpiCurveWidget/EpiCurveBarChart.d.ts +1 -1
  72. package/dist/components/ui/EpiCurveWidget/EpiCurveStackedAreaChart.d.ts +1 -1
  73. package/dist/components/ui/EpiCurveWidget/EpiCurveWidget.d.ts +1 -1
  74. package/dist/components/ui/Grouping/Grouping.d.ts +1 -1
  75. package/dist/components/ui/HistogramWidget/HistogramWidget.d.ts +1 -1
  76. package/dist/components/ui/HistogramWidget/index.js +1 -1
  77. package/dist/components/ui/HistogramWidget/index.js.map +1 -1
  78. package/dist/components/ui/HomePageTrends/HomePageTrendCard.d.ts +1 -1
  79. package/dist/components/ui/HomePageTrends/HomePageTrends.d.ts +1 -1
  80. package/dist/components/ui/LegendaItem/LegendaItem.d.ts +1 -1
  81. package/dist/components/ui/LineListWidget/LineListWidget.d.ts +1 -1
  82. package/dist/components/ui/LineListWidget/LineListWidgetIsInEventCell.d.ts +1 -1
  83. package/dist/components/ui/LineListWidget/LineListWidgetIsOwnCaseCell.d.ts +1 -1
  84. package/dist/components/ui/LineListWidget/LineListWidgetPrimaryMenu.d.ts +1 -1
  85. package/dist/components/ui/LineListWidget/LineListWidgetSecondaryMenu.d.ts +1 -1
  86. package/dist/components/ui/LineListWidget/LineListWidgetTitle.d.ts +1 -1
  87. package/dist/components/ui/MapWidget/MapWidget.d.ts +1 -1
  88. package/dist/components/ui/PanelSeparator/PanelSeparatorHorizontal.d.ts +1 -1
  89. package/dist/components/ui/PanelSeparator/PanelSeparatorVertical.d.ts +1 -1
  90. package/dist/components/ui/PanelSeparator/index.js +50 -2
  91. package/dist/components/ui/PanelSeparator/index.js.map +1 -0
  92. package/dist/components/ui/TreeDescription/TreeDescription.d.ts +1 -1
  93. package/dist/components/ui/TreeWidget/TreeWidget.d.ts +1 -1
  94. package/dist/components/ui/Upload/Upload.d.ts +1 -1
  95. package/dist/components/ui/Upload/UploadCaseResultTable.d.ts +1 -1
  96. package/dist/components/ui/Upload/UploadCreateCases.d.ts +1 -1
  97. package/dist/components/ui/Upload/UploadMapColumns.d.ts +1 -1
  98. package/dist/components/ui/Upload/UploadMapSequences.d.ts +1 -1
  99. package/dist/components/ui/Upload/UploadNavigation.d.ts +1 -1
  100. package/dist/components/ui/Upload/UploadPreviewNavigation.d.ts +1 -1
  101. package/dist/components/ui/Upload/UploadSelectFile.d.ts +1 -1
  102. package/dist/components/ui/Upload/UploadSelectSequenceFiles.d.ts +1 -1
  103. package/dist/components/ui/UserRightsDialog/UserRightsDialogCaseAccessPolicy.d.ts +1 -1
  104. package/dist/components/ui/Warning/Warning.d.ts +1 -1
  105. package/dist/components/ui/WidgetHeaderIconButton/WidgetHeaderIconButton.d.ts +1 -1
  106. package/dist/components/ui/WidgetMenu/WidgetMenu.d.ts +1 -1
  107. package/dist/components/ui/WidgetUnavailable/WidgetUnavailable.d.ts +1 -1
  108. package/dist/context/caseAbac/CaseAbacContextProvider.d.ts +1 -1
  109. package/dist/context/caseTypeAbac/CaseTypeAbacContextProvider.d.ts +1 -1
  110. package/dist/pages/CaseDbUsersAdminPage/CaseDbUsersAdminPage.d.ts +1 -1
  111. package/dist/pages/CaseSetCategoryAdminPage/CaseSetCategoryAdminPage.d.ts +1 -1
  112. package/dist/pages/CaseSetStatusAdminPage/CaseSetStatusAdminPage.d.ts +1 -1
  113. package/dist/pages/CaseTypeSetCategoriesAdminPage/CaseTypeSetCategoriesAdminPage.d.ts +1 -1
  114. package/dist/pages/CaseTypeSetsAdminPage/CaseTypeSetsAdminPage.d.ts +1 -1
  115. package/dist/pages/CaseTypesAdminPage/CaseTypesAdminPage.d.ts +1 -1
  116. package/dist/pages/CasesDetailPage/CasesDetailPage.d.ts +1 -1
  117. package/dist/pages/CasesDetailPage/index.js +16 -16
  118. package/dist/pages/CasesPage/CasesPage.d.ts +1 -1
  119. package/dist/pages/ColSetsAdminPage/ColSetsAdminPage.d.ts +1 -1
  120. package/dist/pages/ColsAdminPage/ColsAdminPage.d.ts +1 -1
  121. package/dist/pages/ColsAdminPage/index.js +77 -77
  122. package/dist/pages/ColsAdminPage/index.js.map +1 -1
  123. package/dist/pages/ConceptRelationsAdminPage/ConceptRelationsAdminPage.d.ts +1 -1
  124. package/dist/pages/ConceptSetsAdminPage/ConceptSetsAdminPage.d.ts +1 -1
  125. package/dist/pages/ConceptsAdminPage/ConceptsAdminPage.d.ts +1 -1
  126. package/dist/pages/ConceptsAdminPage/index.js +31 -31
  127. package/dist/pages/DataCollectionSetsAdminPage/DataCollectionSetsAdminPage.d.ts +1 -1
  128. package/dist/pages/DataCollectionVisualizationPage/DataCollectionVisualizationPage.d.ts +1 -1
  129. package/dist/pages/DataCollectionVisualizationPage/index.js +1 -1
  130. package/dist/pages/DataCollectionVisualizationPage/index.js.map +1 -1
  131. package/dist/pages/DataCollectionsAdminPage/DataCollectionsAdminPage.d.ts +1 -1
  132. package/dist/pages/DimsAdminPage/DimsAdminPage.d.ts +1 -1
  133. package/dist/pages/DimsAdminPage/index.js +46 -46
  134. package/dist/pages/DiseasesAdminPage/DiseasesAdminPage.d.ts +1 -1
  135. package/dist/pages/EtiologicalAgentsAdminPage/EtiologicalAgentsAdminPage.d.ts +1 -1
  136. package/dist/pages/EtiologiesAdminPage/EtiologiesAdminPage.d.ts +1 -1
  137. package/dist/pages/EventsDetailPage/EventsDetailPage.d.ts +1 -1
  138. package/dist/pages/EventsDetailPage/index.js +18 -18
  139. package/dist/pages/EventsPage/EventsPage.d.ts +1 -1
  140. package/dist/pages/HomePage/HomePage.d.ts +1 -1
  141. package/dist/pages/OrganizationAccessCasePoliciesAdminPage/OrganizationAccessCasePoliciesAdminPage.d.ts +1 -1
  142. package/dist/pages/OrganizationShareCasePoliciesAdminPage/OrganizationShareCasePoliciesAdminPage.d.ts +1 -1
  143. package/dist/pages/RefColsAdminPage/RefColsAdminPage.d.ts +1 -1
  144. package/dist/pages/RefColsAdminPage/index.js +94 -94
  145. package/dist/pages/RefDimsAdminPage/RefDimsAdminPage.d.ts +1 -1
  146. package/dist/pages/RegionRelationsAdminPage/RegionRelationsAdminPage.d.ts +1 -1
  147. package/dist/pages/RegionSetShapesAdminPage/RegionSetShapesAdminPage.d.ts +1 -1
  148. package/dist/pages/RegionSetShapesAdminPage/index.js +26 -26
  149. package/dist/pages/RegionSetsAdminPage/RegionSetsAdminPage.d.ts +1 -1
  150. package/dist/pages/RegionsAdminPage/RegionsAdminPage.d.ts +1 -1
  151. package/dist/pages/RegionsAdminPage/index.js +33 -33
  152. package/dist/pages/TrendsPage/TrendsPage.d.ts +1 -1
  153. package/dist/pages/UploadPage/UploadPage.d.ts +1 -1
  154. package/dist/pages/UserAccessCasePoliciesAdminPage/UserAccessCasePoliciesAdminPage.d.ts +1 -1
  155. package/dist/pages/UserEffectiveRightsAdminPage/UserEffectiveRightsAdminPage.d.ts +1 -1
  156. package/dist/pages/UserEffectiveRightsAdminPage/index.js +56 -56
  157. package/dist/pages/UserEffectiveRightsAdminPage/index.js.map +1 -1
  158. package/dist/pages/UserEffectiveRightsTesterAdminPage/UserEffectiveRightsTesterAdminPage.d.ts +1 -1
  159. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +45 -45
  160. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
  161. package/dist/pages/UserShareCasePoliciesAdminPage/UserShareCasePoliciesAdminPage.d.ts +1 -1
  162. package/dist/utils/CaseDbStandardConfigUtil/index.js +1 -5
  163. package/dist/utils/CaseDbStandardConfigUtil/index.js.map +1 -1
  164. package/dist/utils/MapUtil/index.js +1 -1
  165. package/dist/utils/MapUtil/index.js.map +1 -1
  166. package/package.json +33 -28
  167. package/dist/_chunks/PanelSeparator.js +0 -1666
  168. package/dist/_chunks/PanelSeparator.js.map +0 -1
  169. package/dist/_chunks/chunk-OB3PAWPO.js +0 -1162
  170. package/dist/_chunks/chunk-OB3PAWPO.js.map +0 -1
@@ -24,78 +24,80 @@ import { Grouping as C } from "../components/ui/Grouping/index.js";
24
24
  import { t as w } from "./FindSimilarCasesDialog.js";
25
25
  import { t as T } from "./userProfileStoreContext.js";
26
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";
35
- import { useTranslation as G } from "react-i18next";
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";
43
- import { TestIdUtil as J } from "@gen-epix/ui-core/utils/TestIdUtil";
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";
27
+ import { PanelSeparatorHorizontal as ee, PanelSeparatorVertical as te } from "../components/ui/PanelSeparator/index.js";
28
+ import { WidgetHeaderIconButton as D } from "../components/ui/WidgetHeaderIconButton/index.js";
29
+ import { WidgetMenu as O } from "../components/ui/WidgetMenu/index.js";
30
+ import { Warning as k } from "../components/ui/Warning/index.js";
31
+ import { StringUtil as ne } from "@gen-epix/ui-core/utils/StringUtil";
32
+ import { ConfigService as A } from "@gen-epix/ui-client-common/classes/services/ConfigService";
33
+ import { Alert as re, AlertTitle as ie, Box as j, Button as M, ClickAwayListener as N, Divider as ae, FormGroup as P, IconButton as F, InputAdornment as oe, Link as se, ListItemIcon as ce, ListItemText as le, Menu as I, MenuItem as ue, MenuList as de, OutlinedInput as fe, Paper as pe, Popper as me, Tooltip as he, Typography as L, styled as ge, useTheme as _e } from "@mui/material";
34
+ import { Fragment as ve, createContext as ye, createElement as be, isValidElement as xe, use as R, useCallback as z, useEffect as B, useId as Se, useImperativeHandle as Ce, useMemo as V, useRef as H, useState as U } from "react";
35
+ import { useTranslation as W } from "react-i18next";
36
+ import { Fragment as we, jsx as G, jsxs as K } from "react/jsx-runtime";
37
+ import { ResponseHandler as Te } from "@gen-epix/ui-client-common/components/ui/ResponseHandler";
38
+ import { STEPPER_DIRECTION as Ee, Stepper as De } from "@gen-epix/ui-core-components/components/Stepper";
39
+ import { FormProvider as Oe, useForm as ke, useWatch as Ae } from "react-hook-form";
40
+ import { GenericForm as je } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
41
+ import { TableFiltersSidebarItem as Me, TableFiltersSidebarItemIcon as Ne } from "@gen-epix/ui-client-common/components/ui/Table";
42
+ import { withDialog as Pe } from "@gen-epix/ui-core-components/hoc/withDialog";
43
+ import { TestIdUtil as q } from "@gen-epix/ui-core/utils/TestIdUtil";
44
+ import { FormUtil as Fe } from "@gen-epix/ui-core-form/utils/FormUtil";
45
+ import Ie from "@mui/icons-material/Info";
46
+ import { EpiContactDetailsDialog as Le } from "@gen-epix/ui-client-common/components/epi/EpiContactDetailsDialog";
47
+ import { SidebarItem as Re, SidebarMenu as ze, SidebarMenuItem as Be } from "@gen-epix/ui-client-common/components/ui/Sidebar";
48
+ import { KeyboardShortcutService as Ve } from "@gen-epix/ui-core/classes/services/KeyboardShortcutService";
49
+ import { Spinner as He } from "@gen-epix/ui-core-components/components/Spinner";
50
+ import Ue from "@mui/icons-material/Download";
51
+ import { NestedDropdown as We } from "@gen-epix/ui-core-components/components/NestedMenu";
52
+ import Ge from "@mui/icons-material/Settings";
53
+ import Ke from "@mui/icons-material/RestartAlt";
54
+ import { Switch as qe } from "@gen-epix/ui-core-form/components/fields/Switch";
55
+ import { ErrorBoundary as Je } from "react-error-boundary";
56
+ import { Group as Ye, Panel as Xe, useDefaultLayout as J, useGroupRef as Y } from "react-resizable-panels";
57
+ import Ze from "@mui/icons-material/Widgets";
58
+ import Qe from "@mui/icons-material/Search";
59
+ import $e from "@mui/icons-material/KeyboardArrowUp";
60
+ import et from "@mui/icons-material/KeyboardArrowDown";
61
+ import tt from "@mui/icons-material/Tune";
62
+ import nt from "@mui/icons-material/Close";
63
+ import rt from "@mui/icons-material/Check";
64
+ import { Subject as it } from "@gen-epix/ui-core/classes/Subject";
65
+ import at from "@mui/icons-material/ZoomInMap";
66
+ import ot from "@mui/icons-material/ZoomOutMap";
67
+ import { MenuDataUtil as st } from "@gen-epix/ui-client-common/utils/MenuDataUtil";
66
68
  //#region src/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.tsx
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);
69
- V(() => {
69
+ var ct = Pe(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i }) => {
70
+ let { t: a } = W(), l = Se(), u = R(c), d = o(u, (e) => e.setFindSimilarCasesResults), f = V(() => r.getTreeConfigurations(i.completeCaseType), [i.completeCaseType]), p = o(u, (e) => e.findSimilarCasesResults), [m, h] = U(p);
71
+ B(() => {
70
72
  n(a`Remove similar cases from results`);
71
73
  }, [a, n]);
72
- let g = B(() => {
74
+ let g = z(() => {
73
75
  d(m), t();
74
76
  }, [
75
77
  d,
76
78
  m,
77
79
  t
78
- ]), _ = B(() => {
80
+ ]), _ = z(() => {
79
81
  h(p);
80
- }, [p]), v = B(() => {
82
+ }, [p]), v = z(() => {
81
83
  d([]), t();
82
84
  }, [d, t]);
83
- V(() => {
85
+ B(() => {
84
86
  let n = [];
85
87
  n.push({
86
- ...J.createAttributes("RemoveFindSimilarCasesResultDialog-closeButton"),
88
+ ...q.createAttributes("RemoveFindSimilarCasesResultDialog-closeButton"),
87
89
  color: "primary",
88
90
  label: a`Close`,
89
91
  onClick: t,
90
92
  variant: "outlined"
91
93
  }), p.length !== m.length && n.push({
92
- ...J.createAttributes("RemoveFindSimilarCasesResultDialog-undoButton"),
94
+ ...q.createAttributes("RemoveFindSimilarCasesResultDialog-undoButton"),
93
95
  color: "secondary",
94
96
  label: a`Undo`,
95
97
  onClick: _,
96
98
  variant: "outlined"
97
99
  }), p.length !== m.length && n.push({
98
- ...J.createAttributes("RemoveFindSimilarCasesResultDialog-applyButton"),
100
+ ...q.createAttributes("RemoveFindSimilarCasesResultDialog-applyButton"),
99
101
  color: "secondary",
100
102
  label: a`Apply and close`,
101
103
  onClick: g,
@@ -111,15 +113,15 @@ var lt = Re(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
111
113
  g,
112
114
  _
113
115
  ]);
114
- let y = B((e) => {
116
+ let y = z((e) => {
115
117
  h(s(m, (t) => (t.splice(e, 1), t)));
116
- }, [m]), b = H(() => [{
117
- content: /* @__PURE__ */ K(N, {
118
+ }, [m]), b = V(() => [{
119
+ content: /* @__PURE__ */ G(j, {
118
120
  sx: {
119
121
  marginBottom: 2,
120
122
  marginTop: 1
121
123
  },
122
- children: /* @__PURE__ */ K(P, {
124
+ children: /* @__PURE__ */ G(M, {
123
125
  color: "primary",
124
126
  onClick: v,
125
127
  variant: "outlined",
@@ -130,32 +132,32 @@ var lt = Re(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
130
132
  key: "start",
131
133
  label: a("Result without similar cases ({{numberOfCases}} cases)", { numberOfCases: p?.[0]?.originalCaseIds.length || 0 })
132
134
  }, ...m.map((e, t) => ({
133
- content: /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ q(N, {
135
+ content: /* @__PURE__ */ K(j, { children: [/* @__PURE__ */ K(j, {
134
136
  component: "ul",
135
137
  children: [
136
- /* @__PURE__ */ K(N, {
138
+ /* @__PURE__ */ G(j, {
137
139
  component: "li",
138
140
  children: a("Tree: {{treeLabel}}", { treeLabel: f.find((t) => t.col.id === e.colId)?.col?.label || e.colId })
139
141
  }),
140
- /* @__PURE__ */ K(N, {
142
+ /* @__PURE__ */ G(j, {
141
143
  component: "li",
142
144
  children: a("Distance: {{distance}}", { distance: e.distance })
143
145
  }),
144
- /* @__PURE__ */ K(N, {
146
+ /* @__PURE__ */ G(j, {
145
147
  component: "li",
146
148
  children: a("Found similar cases: {{foundCases}}", { foundCases: e.similarCaseIds.length })
147
149
  }),
148
- /* @__PURE__ */ K(N, {
150
+ /* @__PURE__ */ G(j, {
149
151
  component: "li",
150
152
  children: a("New number of cases: {{numberOfCases}}", { numberOfCases: e.similarCaseIds.length + e.originalCaseIds.length })
151
153
  })
152
154
  ]
153
- }), /* @__PURE__ */ K(N, {
155
+ }), /* @__PURE__ */ G(j, {
154
156
  sx: {
155
157
  marginBottom: 2,
156
158
  marginTop: 1
157
159
  },
158
- children: /* @__PURE__ */ K(P, {
160
+ children: /* @__PURE__ */ G(M, {
159
161
  color: "primary",
160
162
  disabled: t !== m.length - 1,
161
163
  onClick: () => y(t),
@@ -174,11 +176,11 @@ var lt = Re(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
174
176
  a,
175
177
  f
176
178
  ]);
177
- return /* @__PURE__ */ q(N, {
179
+ return /* @__PURE__ */ K(j, {
178
180
  sx: { position: "relative" },
179
- children: [b.length === 0 && /* @__PURE__ */ K(R, { children: a("No similar cases results to remove.") }), b.length > 0 && /* @__PURE__ */ K(je, {
181
+ children: [b.length === 0 && /* @__PURE__ */ G(L, { children: a("No similar cases results to remove.") }), b.length > 0 && /* @__PURE__ */ G(De, {
180
182
  activeStep: b[b.length - 1].key,
181
- direction: Ae.VERTICAL,
183
+ direction: Ee.VERTICAL,
182
184
  hideCompletedIndicator: !0,
183
185
  steps: b
184
186
  })]
@@ -188,171 +190,171 @@ var lt = Re(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
188
190
  fullWidth: !0,
189
191
  maxWidth: "lg",
190
192
  testId: "RemoveFindSimilarCasesResultDialog"
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({
193
+ }), lt = () => {
194
+ let { t: e } = W(), t = R(T), n = o(t, d((e) => e.resetDashboardGeneralSettings)), r = o(t, d((e) => e.dashboardGeneralSettings)), i = o(t, d((e) => e.setDashboardGeneralSettings)), a = ke({
193
195
  defaultValues: r,
194
196
  values: r
195
- }), { control: s } = a, c = Pe({ control: s }), l = B(() => {
197
+ }), { control: s } = a, c = Ae({ control: s }), l = z(() => {
196
198
  n();
197
199
  }, [n]);
198
- V(() => {
200
+ B(() => {
199
201
  i(c);
200
202
  }, [c, i]);
201
- let u = B(() => {}, []);
202
- return /* @__PURE__ */ q(Me, {
203
+ let u = z(() => {}, []);
204
+ return /* @__PURE__ */ K(Oe, {
203
205
  ...a,
204
- children: [/* @__PURE__ */ K("form", {
206
+ children: [/* @__PURE__ */ G("form", {
205
207
  autoComplete: "off",
206
208
  onSubmit: u,
207
- children: /* @__PURE__ */ K(N, {
209
+ children: /* @__PURE__ */ G(j, {
208
210
  sx: { marginY: 1 },
209
- children: /* @__PURE__ */ K(I, { children: /* @__PURE__ */ K(Ze, {
211
+ children: /* @__PURE__ */ G(P, { children: /* @__PURE__ */ G(qe, {
210
212
  label: e`Enable highlighting across widgets`,
211
213
  name: "isHighlightingEnabled"
212
214
  }) })
213
215
  })
214
- }), /* @__PURE__ */ K(N, {
216
+ }), /* @__PURE__ */ G(j, {
215
217
  sx: {
216
218
  display: "flex",
217
219
  justifyContent: "flex-end"
218
220
  },
219
- children: /* @__PURE__ */ K(N, {
221
+ children: /* @__PURE__ */ G(j, {
220
222
  sx: { marginX: 1 },
221
- children: /* @__PURE__ */ K(P, {
223
+ children: /* @__PURE__ */ G(M, {
222
224
  color: "primary",
223
225
  onClick: l,
224
- startIcon: /* @__PURE__ */ K(Xe, {}),
226
+ startIcon: /* @__PURE__ */ G(Ke, {}),
225
227
  variant: "outlined",
226
228
  children: e`Reset general settings`
227
229
  })
228
230
  })
229
231
  })]
230
232
  });
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(() => {
233
+ }, ut = /* @__PURE__ */ e(t(), 1), dt = ({ onReset: e }) => {
234
+ let { t } = W(), n = R(T), r = o(n, d((e) => e.resetDashboardLayout)), a = o(n, d((e) => e.dashboardArrangementConfig)), s = o(n, d((e) => e.setDashboardArrangementConfig)), c = ke({ values: { arrangementKey: a.arrangementKey } }), { control: l } = c, u = Ae({ control: l }), f = z(() => {
233
235
  r(), e && e();
234
236
  }, [e, r]);
235
- V(() => {
237
+ B(() => {
236
238
  let { arrangementKey: e } = u;
237
239
  if (!e) return;
238
- let t = M.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[e];
240
+ let t = A.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[e];
239
241
  t && s({
240
242
  arrangementKey: e,
241
- arrangementWidgetAssignments: i.getArrangementWidgetAssignments(t, M.getInstance().config.dashboard.DEFAULT_WIDGET_ASSIGNMENTS[e])
243
+ arrangementWidgetAssignments: i.getArrangementWidgetAssignments(t, A.getInstance().config.dashboard.DEFAULT_WIDGET_ASSIGNMENTS[e])
242
244
  });
243
245
  }, [u, s]);
244
- let p = dt.default;
245
- return /* @__PURE__ */ q(Me, {
246
+ let p = ut.default;
247
+ return /* @__PURE__ */ K(Oe, {
246
248
  ...c,
247
- children: [/* @__PURE__ */ K("form", {
249
+ children: [/* @__PURE__ */ G("form", {
248
250
  autoComplete: "off",
249
251
  onSubmit: p,
250
- children: /* @__PURE__ */ K(N, {
252
+ children: /* @__PURE__ */ G(j, {
251
253
  sx: { marginY: 1 },
252
- children: /* @__PURE__ */ K(I, { children: /* @__PURE__ */ K(E, {
254
+ children: /* @__PURE__ */ G(P, { children: /* @__PURE__ */ G(E, {
253
255
  label: t`Arrangement`,
254
256
  name: "arrangementKey",
255
- options: M.getInstance().config.dashboard.ARRANGEMENT_OPTIONS
257
+ options: A.getInstance().config.dashboard.ARRANGEMENT_OPTIONS
256
258
  }) })
257
259
  })
258
- }), /* @__PURE__ */ K(N, {
260
+ }), /* @__PURE__ */ G(j, {
259
261
  sx: {
260
262
  display: "flex",
261
263
  justifyContent: "flex-end"
262
264
  },
263
- children: /* @__PURE__ */ K(N, {
265
+ children: /* @__PURE__ */ G(j, {
264
266
  sx: { marginX: 1 },
265
- children: /* @__PURE__ */ K(P, {
267
+ children: /* @__PURE__ */ G(M, {
266
268
  color: "primary",
267
269
  onClick: f,
268
- startIcon: /* @__PURE__ */ K(Xe, {}),
270
+ startIcon: /* @__PURE__ */ G(Ke, {}),
269
271
  variant: "outlined",
270
272
  children: t`Reset dashboard layout`
271
273
  })
272
274
  })
273
275
  })]
274
276
  });
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({
277
+ }, ft = ({ widgetName: e }) => {
278
+ let { t } = W(), n = R(T), r = Se(), i = o(n, d((e) => e.resetWidgetSettings)), a = o(n, d((e) => e.setWidgetSettings)), s = A.getInstance().config.dashboard.WIDGETS[e].configFormFieldsDefinitions, c = A.getInstance().config.dashboard.WIDGETS[e].configDefaultValues, l = V(() => {
279
+ if (s) return Fe.createYupSchemaFromFormFieldDefinitions(s);
280
+ }, [s]), u = ke({
279
281
  defaultValues: c,
280
282
  values: c
281
- }), { control: f } = u, p = Pe({ control: f }), m = B(() => {
283
+ }), { control: f } = u, p = Ae({ control: f }), m = z(() => {
282
284
  i(e);
283
285
  }, [i, e]);
284
- V(() => {
286
+ B(() => {
285
287
  a(e, p);
286
288
  }, [
287
289
  p,
288
290
  a,
289
291
  e
290
292
  ]);
291
- let h = B(() => {}, []);
292
- return /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ K(N, {
293
+ let h = z(() => {}, []);
294
+ return /* @__PURE__ */ K(j, { children: [/* @__PURE__ */ G(j, {
293
295
  sx: { marginY: 1 },
294
- children: /* @__PURE__ */ K(Fe, {
296
+ children: /* @__PURE__ */ G(je, {
295
297
  formFieldDefinitions: s,
296
298
  formId: r,
297
299
  formMethods: u,
298
300
  onSubmit: h,
299
301
  schema: l
300
302
  })
301
- }), /* @__PURE__ */ K(N, {
303
+ }), /* @__PURE__ */ G(j, {
302
304
  sx: {
303
305
  display: "flex",
304
306
  justifyContent: "flex-end"
305
307
  },
306
- children: /* @__PURE__ */ K(N, {
308
+ children: /* @__PURE__ */ G(j, {
307
309
  sx: { marginX: 1 },
308
- children: /* @__PURE__ */ K(P, {
310
+ children: /* @__PURE__ */ G(M, {
309
311
  color: "primary",
310
312
  onClick: m,
311
- startIcon: /* @__PURE__ */ K(Xe, {}),
313
+ startIcon: /* @__PURE__ */ G(Ke, {}),
312
314
  variant: "outlined",
313
315
  children: t("Reset {widgetName} settings", { widgetName: e })
314
316
  })
315
317
  })
316
318
  })] });
317
- }, mt = Ye, ht = ({ onReset: e }) => {
318
- let t = be(), { t: n } = G(), r = H(() => {
319
+ }, pt = Ge, mt = ({ onReset: e }) => {
320
+ let t = _e(), { t: n } = W(), r = V(() => {
319
321
  let t = [{
320
- component: /* @__PURE__ */ K(ft, { onReset: e }),
322
+ component: /* @__PURE__ */ G(dt, { onReset: e }),
321
323
  label: n`Dashboard layout`
322
324
  }, {
323
- component: /* @__PURE__ */ K(ut, {}),
325
+ component: /* @__PURE__ */ G(lt, {}),
324
326
  label: n`General`
325
327
  }];
326
- return Object.entries(M.getInstance().config.dashboard.WIDGETS).forEach(([e, n]) => {
328
+ return Object.entries(A.getInstance().config.dashboard.WIDGETS).forEach(([e, n]) => {
327
329
  n.configFormFieldsDefinitions && t.push({
328
- component: /* @__PURE__ */ K(pt, { widgetName: e }),
330
+ component: /* @__PURE__ */ G(ft, { widgetName: e }),
329
331
  label: n.widgetLabel
330
332
  });
331
333
  }), t;
332
334
  }, [e, n]);
333
- return /* @__PURE__ */ K(N, {
335
+ return /* @__PURE__ */ G(j, {
334
336
  sx: { width: t.spacing(59) },
335
- children: r.map(({ component: e, label: t }, n) => /* @__PURE__ */ q(N, {
337
+ children: r.map(({ component: e, label: t }, n) => /* @__PURE__ */ K(j, {
336
338
  sx: {
337
339
  marginTop: n === 0 ? 0 : 2,
338
340
  paddingTop: n === r.length - 1 ? 0 : 1
339
341
  },
340
342
  children: [
341
- /* @__PURE__ */ K(N, {
343
+ /* @__PURE__ */ G(j, {
342
344
  sx: { marginBottom: 2 },
343
- children: /* @__PURE__ */ K(R, {
345
+ children: /* @__PURE__ */ G(L, {
344
346
  variant: "h5",
345
347
  children: t
346
348
  })
347
349
  }),
348
- /* @__PURE__ */ K(N, {
350
+ /* @__PURE__ */ G(j, {
349
351
  sx: {
350
352
  marginBottom: 2,
351
353
  marginRight: 1
352
354
  },
353
355
  children: e
354
356
  }),
355
- /* @__PURE__ */ K(F, {
357
+ /* @__PURE__ */ G(ae, {
356
358
  flexItem: !0,
357
359
  orientation: "horizontal",
358
360
  sx: {
@@ -364,79 +366,24 @@ var lt = Re(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
364
366
  ]
365
367
  }, t))
366
368
  });
367
- }, gt = ({ onClose: e, onReset: t, open: n }) => {
368
- let { t: r } = G();
369
- return /* @__PURE__ */ K(He, {
370
- closeIcon: /* @__PURE__ */ K(mt, {}),
369
+ }, ht = ({ onClose: e, onReset: t, open: n }) => {
370
+ let { t: r } = W();
371
+ return /* @__PURE__ */ G(Re, {
372
+ closeIcon: /* @__PURE__ */ G(pt, {}),
371
373
  closeIconTooltipText: r`Close settings`,
372
374
  onClose: e,
373
375
  open: n,
374
376
  testIdAttributes: { name: "DashboardSettingsSidebarItem" },
375
377
  title: r`Settings`,
376
378
  width: 60,
377
- children: n && /* @__PURE__ */ K(ht, { onReset: t })
379
+ children: n && /* @__PURE__ */ G(mt, { onReset: t })
378
380
  });
379
- }, _t = Ce(null), vt = {
380
- didCatch: !1,
381
- error: null
382
- }, yt = class extends xe {
383
- constructor(e) {
384
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = vt;
385
- }
386
- static getDerivedStateFromError(e) {
387
- return {
388
- didCatch: !0,
389
- error: e
390
- };
391
- }
392
- resetErrorBoundary(...e) {
393
- let { didCatch: t } = this.state;
394
- t && (this.props.onReset?.({
395
- args: e,
396
- reason: "imperative-api"
397
- }), this.setState(vt));
398
- }
399
- componentDidCatch(e, t) {
400
- this.props.onError?.(e, t);
401
- }
402
- componentDidUpdate(e, t) {
403
- let { didCatch: n } = this.state, { resetKeys: r } = this.props;
404
- n && t.didCatch && bt(e.resetKeys, r) && (this.props.onReset?.({
405
- next: r,
406
- prev: e.resetKeys,
407
- reason: "keys"
408
- }), this.setState(vt));
409
- }
410
- render() {
411
- let { children: e, fallbackRender: t, FallbackComponent: n, fallback: r } = this.props, { didCatch: i, error: a } = this.state, o = e;
412
- if (i) {
413
- let e = {
414
- error: a,
415
- resetErrorBoundary: this.resetErrorBoundary
416
- };
417
- if (typeof t == "function") o = t(e);
418
- else if (n) o = we(n, e);
419
- else if (r !== void 0) o = r;
420
- else throw a;
421
- }
422
- return we(_t.Provider, { value: {
423
- didCatch: i,
424
- error: a,
425
- resetErrorBoundary: this.resetErrorBoundary
426
- } }, o);
427
- }
428
- };
429
- function bt(e = [], t = []) {
430
- return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
431
- }
432
- //#endregion
433
- //#region src/components/ui/Dashboard/DashboardZoneContext.ts
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) => {
381
+ }, gt = ye(null), _t = () => {
382
+ let { t: e } = W(), [t, n] = U(null), r = R(T), a = R(gt), s = o(r, (e) => e.dashboardArrangementConfig), c = o(r, (e) => e.setDashboardArrangementConfig), l = A.getInstance().config.dashboard.WIDGETS, u = a ? i.getAvailableWidgets(s, a, l) : [], d = z((e) => {
436
383
  n(e.currentTarget);
437
- }, []), f = B(() => {
384
+ }, []), f = z(() => {
438
385
  n(null);
439
- }, []), p = B((e) => {
386
+ }, []), p = z((e) => {
440
387
  if (!a) return;
441
388
  let { dashboardArrangementConfig: t } = r.getState();
442
389
  c({
@@ -450,11 +397,11 @@ var xt = Ce(null), St = () => {
450
397
  c,
451
398
  r,
452
399
  a
453
- ]), m = B((e) => {
400
+ ]), m = z((e) => {
454
401
  let t = e.currentTarget.dataset.widgetName;
455
402
  t && p(t);
456
403
  }, [p]);
457
- return /* @__PURE__ */ q(N, {
404
+ return /* @__PURE__ */ K(j, {
458
405
  sx: {
459
406
  alignItems: "center",
460
407
  display: "flex",
@@ -462,80 +409,80 @@ var xt = Ce(null), St = () => {
462
409
  justifyContent: "center",
463
410
  width: "100%"
464
411
  },
465
- children: [/* @__PURE__ */ K(P, {
412
+ children: [/* @__PURE__ */ G(M, {
466
413
  onClick: d,
467
- startIcon: /* @__PURE__ */ K(Qe, {}),
414
+ startIcon: /* @__PURE__ */ G(Ze, {}),
468
415
  variant: "outlined",
469
416
  children: e("Add a widget")
470
- }), /* @__PURE__ */ q(fe, {
417
+ }), /* @__PURE__ */ K(I, {
471
418
  anchorEl: t,
472
419
  onClose: f,
473
420
  open: !!t,
474
- children: [u.length === 0 && /* @__PURE__ */ K(pe, {
421
+ children: [u.length === 0 && /* @__PURE__ */ G(ue, {
475
422
  disabled: !0,
476
423
  children: e("No widgets available")
477
- }), u.map((e) => /* @__PURE__ */ K(pe, {
424
+ }), u.map((e) => /* @__PURE__ */ G(ue, {
478
425
  "data-widget-name": e,
479
426
  onClick: m,
480
427
  children: l[e].widgetLabel
481
428
  }, e))]
482
429
  })]
483
430
  });
484
- }, Ct = (e, t) => ({
431
+ }, vt = (e, t) => ({
485
432
  getItem: (n) => e.getState().dashboardPanels[`${t}-${n}`],
486
433
  setItem: (n, r) => {
487
434
  e.getState().setDashboardPanelConfiguration(`${t}-${n}`, r);
488
435
  }
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({
436
+ }), yt = ({ disabled: e, ref: t }) => {
437
+ let n = R(T), r = R(c), a = o(n, (e) => e.dashboardArrangementConfig), s = o(r, (e) => e.expandedZone), { MIN_PANEL_HEIGHT: u, MIN_PANEL_WIDTH: d } = A.getInstance().config.dashboard, { arrangementKey: f, arrangementWidgetAssignments: p } = a, m = A.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[f], h = f, g = V(() => m?.cells ? i.getArrangementGroupInfos(m, h) : [], [m, h]), _ = V(() => vt(n, "epi-dashboard"), [n]), v = J({
491
438
  groupId: g[0]?.groupId ?? `${h}-ph-0`,
492
439
  storage: _
493
- }), y = D({
440
+ }), y = J({
494
441
  groupId: g[1]?.groupId ?? `${h}-ph-1`,
495
442
  storage: _
496
- }), b = D({
443
+ }), b = J({
497
444
  groupId: g[2]?.groupId ?? `${h}-ph-2`,
498
445
  storage: _
499
- }), x = D({
446
+ }), x = J({
500
447
  groupId: g[3]?.groupId ?? `${h}-ph-3`,
501
448
  storage: _
502
- }), S = D({
449
+ }), S = J({
503
450
  groupId: g[4]?.groupId ?? `${h}-ph-4`,
504
451
  storage: _
505
- }), C = D({
452
+ }), C = J({
506
453
  groupId: g[5]?.groupId ?? `${h}-ph-5`,
507
454
  storage: _
508
- }), w = D({
455
+ }), w = J({
509
456
  groupId: g[6]?.groupId ?? `${h}-ph-6`,
510
457
  storage: _
511
- }), E = D({
458
+ }), E = J({
512
459
  groupId: g[7]?.groupId ?? `${h}-ph-7`,
513
460
  storage: _
514
- }), A = D({
461
+ }), D = J({
515
462
  groupId: g[8]?.groupId ?? `${h}-ph-8`,
516
463
  storage: _
517
- }), j = D({
464
+ }), O = J({
518
465
  groupId: g[9]?.groupId ?? `${h}-ph-9`,
519
466
  storage: _
520
- }), re = D({
467
+ }), k = J({
521
468
  groupId: g[10]?.groupId ?? `${h}-ph-10`,
522
469
  storage: _
523
- }), ae = D({
470
+ }), re = J({
524
471
  groupId: g[11]?.groupId ?? `${h}-ph-11`,
525
472
  storage: _
526
- }), oe = D({
473
+ }), ie = J({
527
474
  groupId: g[12]?.groupId ?? `${h}-ph-12`,
528
475
  storage: _
529
- }), N = D({
476
+ }), j = J({
530
477
  groupId: g[13]?.groupId ?? `${h}-ph-13`,
531
478
  storage: _
532
- }), P = D({
479
+ }), M = J({
533
480
  groupId: g[14]?.groupId ?? `${h}-ph-14`,
534
481
  storage: _
535
- }), se = D({
482
+ }), N = J({
536
483
  groupId: g[15]?.groupId ?? `${h}-ph-15`,
537
484
  storage: _
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 = [
485
+ }), ae = Y(), P = Y(), F = Y(), oe = Y(), se = Y(), ce = Y(), le = Y(), I = Y(), ue = Y(), de = Y(), fe = Y(), pe = Y(), me = Y(), he = Y(), L = Y(), ge = Y(), _e = [
539
486
  v,
540
487
  y,
541
488
  b,
@@ -544,52 +491,52 @@ var xt = Ce(null), St = () => {
544
491
  C,
545
492
  w,
546
493
  E,
547
- A,
548
- j,
494
+ D,
495
+ O,
496
+ k,
549
497
  re,
498
+ ie,
499
+ j,
500
+ M,
501
+ N
502
+ ], ye = V(() => [
550
503
  ae,
551
- oe,
552
- N,
553
504
  P,
554
- se
555
- ], xe = H(() => [
556
505
  F,
557
- I,
558
- L,
506
+ oe,
507
+ se,
559
508
  ce,
560
509
  le,
510
+ I,
561
511
  ue,
562
512
  de,
563
513
  fe,
564
514
  pe,
565
515
  me,
566
516
  he,
567
- ge,
568
- _e,
569
- ve,
570
- R,
571
- ye
517
+ L,
518
+ ge
572
519
  ], [
520
+ ae,
521
+ P,
573
522
  F,
574
- I,
575
- L,
523
+ oe,
524
+ se,
576
525
  ce,
577
526
  le,
527
+ I,
578
528
  ue,
579
529
  de,
580
530
  fe,
581
531
  pe,
582
532
  me,
583
533
  he,
584
- ge,
585
- _e,
586
- ve,
587
- R,
588
- ye
534
+ L,
535
+ ge
589
536
  ]);
590
- De(t, () => ({ reset: () => {
537
+ Ce(t, () => ({ reset: () => {
591
538
  try {
592
- xe.forEach((e) => {
539
+ ye.forEach((e) => {
593
540
  if (e.current) {
594
541
  let t = e.current.getLayout(), n = Object.keys(t);
595
542
  if (n.length > 0) {
@@ -599,25 +546,25 @@ var xt = Ce(null), St = () => {
599
546
  }
600
547
  });
601
548
  } catch {}
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, {
606
- fallback: /* @__PURE__ */ K(l, { widgetLabel: n }),
607
- children: we(t)
549
+ } }), [ye]);
550
+ let xe = V(() => {
551
+ let e = A.getInstance().config.dashboard.WIDGETS;
552
+ return Object.fromEntries(Object.entries(e).map(([e, { component: t, widgetLabel: n }]) => [e, /* @__PURE__ */ G(Je, {
553
+ fallback: /* @__PURE__ */ G(l, { widgetLabel: n }),
554
+ children: be(t)
608
555
  }, e)]));
609
556
  }, []);
610
557
  if (s) {
611
558
  let e = p[s];
612
- return /* @__PURE__ */ K(xt, {
559
+ return /* @__PURE__ */ G(gt, {
613
560
  value: s,
614
- children: Ce[e] ?? null
561
+ children: xe[e] ?? null
615
562
  });
616
563
  }
617
564
  if (!m?.cells) return null;
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, {
565
+ let z = { value: 0 }, B = (t) => {
566
+ let n = z.value++, r = g[n]?.groupId ?? `${h}-group-${n}`, i = t.orientation, { defaultLayout: a, onLayoutChanged: o } = _e[n] ?? {}, s = ye[n];
567
+ return /* @__PURE__ */ G(Ye, {
621
568
  defaultLayout: a,
622
569
  groupRef: s,
623
570
  id: r,
@@ -629,124 +576,124 @@ var xt = Ce(null), St = () => {
629
576
  },
630
577
  children: t.cells.map((n, a) => {
631
578
  let o = a === t.cells.length - 1, s = `${r}-panel-${a}`;
632
- return /* @__PURE__ */ q(Se, { children: [
633
- /* @__PURE__ */ K(k, {
579
+ return /* @__PURE__ */ K(ve, { children: [
580
+ /* @__PURE__ */ G(Xe, {
634
581
  defaultSize: n.size,
635
582
  id: s,
636
583
  minSize: i === "vertical" ? u : d,
637
584
  style: { overflow: "hidden" },
638
- children: "name" in n ? /* @__PURE__ */ K(xt, {
585
+ children: "name" in n ? /* @__PURE__ */ G(gt, {
639
586
  value: n.name,
640
- children: Ce[p[n.name]] ?? /* @__PURE__ */ K(St, {})
587
+ children: xe[p[n.name]] ?? /* @__PURE__ */ G(_t, {})
641
588
  }) : B(n)
642
589
  }),
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)));
590
+ !o && i === "horizontal" && /* @__PURE__ */ G(te, { disabled: e }),
591
+ !o && i === "vertical" && /* @__PURE__ */ G(ee, { disabled: e })
592
+ ] }, "name" in n ? n.name : ne.createHash(JSON.stringify(n)));
646
593
  })
647
594
  });
648
595
  };
649
596
  return B(m);
650
- }, Tt = qe, Et = () => {
651
- let e = be(), { t } = G(), [n, r] = W([]);
652
- V(() => {
597
+ }, bt = Ue, xt = () => {
598
+ let e = _e(), { t } = W(), [n, r] = U([]);
599
+ B(() => {
653
600
  let e = (e) => {
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)));
601
+ 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) => A.getInstance().config.dashboard.DOWNLOAD_SECTION_ORDER.indexOf(e.zone) - A.getInstance().config.dashboard.DOWNLOAD_SECTION_ORDER.indexOf(t.zone)));
655
602
  }, t = u.getInstance();
656
603
  return t.addEventListener("onDownloadOptionsChanged", e), t.emit("onDownloadOptionsRequested"), () => {
657
604
  t.removeEventListener("onDownloadOptionsChanged", e);
658
605
  };
659
606
  }, []);
660
- let i = B((e, t) => /* @__PURE__ */ K(N, {
607
+ let i = z((e, t) => /* @__PURE__ */ G(j, {
661
608
  sx: { marginLeft: 1 },
662
- children: t || e.disabled || !e.callback ? /* @__PURE__ */ K(R, { children: e.label }) : /* @__PURE__ */ K(le, {
609
+ children: t || e.disabled || !e.callback ? /* @__PURE__ */ G(L, { children: e.label }) : /* @__PURE__ */ G(se, {
663
610
  component: "button",
664
611
  onClick: () => e.callback(),
665
612
  tabIndex: 0,
666
613
  children: e.label
667
614
  })
668
- }, e.label), []), a = B((e) => /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ K(R, {
615
+ }, e.label), []), a = z((e) => /* @__PURE__ */ K(j, { children: [/* @__PURE__ */ G(L, {
669
616
  variant: "h6",
670
617
  children: e.label
671
618
  }), e.items.map((t) => i(t, e.disabled))] }, e.label), [i]);
672
- return /* @__PURE__ */ K(N, {
619
+ return /* @__PURE__ */ G(j, {
673
620
  sx: { width: e.spacing(59) },
674
- children: n.map((n) => /* @__PURE__ */ q(N, {
621
+ children: n.map((n) => /* @__PURE__ */ K(j, {
675
622
  sx: {
676
623
  borderBottom: `1px solid ${e.palette.divider}`,
677
624
  padding: e.spacing(1)
678
625
  },
679
626
  children: [
680
- /* @__PURE__ */ K(N, { children: /* @__PURE__ */ K(R, {
627
+ /* @__PURE__ */ G(j, { children: /* @__PURE__ */ G(L, {
681
628
  color: n.disabled ? e.palette.text.disabled : void 0,
682
629
  variant: "h5",
683
630
  children: n.zoneLabel
684
631
  }) }),
685
- n.disabled && /* @__PURE__ */ K(N, {
632
+ n.disabled && /* @__PURE__ */ G(j, {
686
633
  sx: { padding: e.spacing(1) },
687
- children: /* @__PURE__ */ K(R, { children: t`No data available for download.` })
634
+ children: /* @__PURE__ */ G(L, { children: t`No data available for download.` })
688
635
  }),
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))
636
+ !n.disabled && n.items.map((e) => "items" in e && e.disabled ? null : /* @__PURE__ */ G(ve, { children: "items" in e ? a(e) : i(e) }, e.label))
690
637
  ]
691
638
  }, n.zone))
692
639
  });
693
- }, Dt = ({ onClose: e, open: t }) => {
694
- let { t: n } = G();
695
- return /* @__PURE__ */ K(He, {
696
- closeIcon: /* @__PURE__ */ K(Tt, {}),
640
+ }, St = ({ onClose: e, open: t }) => {
641
+ let { t: n } = W();
642
+ return /* @__PURE__ */ G(Re, {
643
+ closeIcon: /* @__PURE__ */ G(bt, {}),
697
644
  closeIconTooltipText: n`Close download`,
698
645
  onClose: e,
699
646
  open: t,
700
647
  testIdAttributes: { name: "DashboardDownloadSidebarItem" },
701
648
  title: n`Download`,
702
649
  width: 60,
703
- children: t && /* @__PURE__ */ K(Et, {})
650
+ children: t && /* @__PURE__ */ G(xt, {})
704
651
  });
705
652
  };
706
653
  //#endregion
707
654
  //#region ../../node_modules/.pnpm/fuse.js@7.5.0/node_modules/fuse.js/dist/fuse.mjs
708
- function Y(e) {
709
- return Array.isArray ? Array.isArray(e) : Ft(e) === "[object Array]";
655
+ function X(e) {
656
+ return Array.isArray ? Array.isArray(e) : At(e) === "[object Array]";
710
657
  }
711
- function Ot(e) {
658
+ function Ct(e) {
712
659
  if (typeof e == "string") return e;
713
660
  if (typeof e == "bigint") return e.toString();
714
661
  let t = e + "";
715
662
  return t == "0" && 1 / e == -Infinity ? "-0" : t;
716
663
  }
717
- function kt(e) {
718
- return e == null ? "" : Ot(e);
664
+ function wt(e) {
665
+ return e == null ? "" : Ct(e);
719
666
  }
720
- function X(e) {
667
+ function Z(e) {
721
668
  return typeof e == "string";
722
669
  }
723
- function At(e) {
670
+ function Tt(e) {
724
671
  return typeof e == "number";
725
672
  }
726
- function jt(e) {
727
- return e === !0 || e === !1 || Nt(e) && Ft(e) == "[object Boolean]";
673
+ function Et(e) {
674
+ return e === !0 || e === !1 || Ot(e) && At(e) == "[object Boolean]";
728
675
  }
729
- function Mt(e) {
676
+ function Dt(e) {
730
677
  return typeof e == "object";
731
678
  }
732
- function Nt(e) {
733
- return Mt(e) && e !== null;
679
+ function Ot(e) {
680
+ return Dt(e) && e !== null;
734
681
  }
735
- function Z(e) {
682
+ function Q(e) {
736
683
  return e != null;
737
684
  }
738
- function Pt(e) {
685
+ function kt(e) {
739
686
  return !e.trim().length;
740
687
  }
741
- function Ft(e) {
688
+ function At(e) {
742
689
  return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
743
690
  }
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 {
691
+ var jt = "Incorrect 'index' type", Mt = "Invalid doc index: must be a non-negative integer within the bounds of the docs array", Nt = (e) => `Invalid value for key ${e}`, Pt = (e) => `Pattern length exceeds max of ${e}.`, Ft = (e) => `Missing ${e} property in key`, It = (e) => `Property 'weight' in key '${e}' must be a positive integer`, Lt = "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.", Rt = Object.prototype.hasOwnProperty, zt = class {
745
692
  constructor(e) {
746
693
  this._keys = [], this._keyMap = {};
747
694
  let t = 0;
748
695
  e.forEach((e) => {
749
- let n = Gt(e);
696
+ let n = Bt(e);
750
697
  this._keys.push(n), this._keyMap[n.id] = n, t += n.weight;
751
698
  }), this._keys.forEach((e) => {
752
699
  e.weight /= t;
@@ -762,14 +709,14 @@ var It = "Incorrect 'index' type", Lt = "Invalid doc index: must be a non-negati
762
709
  return JSON.stringify(this._keys);
763
710
  }
764
711
  };
765
- function Gt(e) {
712
+ function Bt(e) {
766
713
  let t = null, n = null, r = null, i = 1, a = null;
767
- if (X(e) || Y(e)) r = e, t = Kt(e), n = qt(e);
714
+ if (Z(e) || X(e)) r = e, t = Vt(e), n = Ht(e);
768
715
  else {
769
- if (!Ut.call(e, "name")) throw Error(Bt("name"));
716
+ if (!Rt.call(e, "name")) throw Error(Ft("name"));
770
717
  let o = e.name;
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;
718
+ if (r = o, Rt.call(e, "weight") && e.weight !== void 0 && (i = e.weight, i <= 0)) throw Error(It(Ht(o)));
719
+ t = Vt(o), n = Ht(o), a = e.getFn ?? null;
773
720
  }
774
721
  return {
775
722
  path: t,
@@ -779,74 +726,74 @@ function Gt(e) {
779
726
  getFn: a
780
727
  };
781
728
  }
782
- function Kt(e) {
783
- return Y(e) ? e : e.split(".");
729
+ function Vt(e) {
730
+ return X(e) ? e : e.split(".");
784
731
  }
785
- function qt(e) {
786
- return Y(e) ? e.join(".") : e;
732
+ function Ht(e) {
733
+ return X(e) ? e.join(".") : e;
787
734
  }
788
- function Jt(e, t) {
735
+ function Ut(e, t) {
789
736
  let n = [], r = !1, i = (e, t, a, o) => {
790
- if (Z(e)) {
737
+ if (Q(e)) {
791
738
  if (!t[a]) n.push(o === void 0 ? e : {
792
739
  v: e,
793
740
  i: o
794
741
  });
795
742
  else {
796
743
  let s = e[t[a]];
797
- if (!Z(s)) return;
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),
744
+ if (!Q(s)) return;
745
+ if (a === t.length - 1 && (Z(s) || Tt(s) || Et(s) || typeof s == "bigint")) n.push(o === void 0 ? wt(s) : {
746
+ v: wt(s),
800
747
  i: o
801
748
  });
802
- else if (Y(s)) {
749
+ else if (X(s)) {
803
750
  r = !0;
804
751
  for (let e = 0, n = s.length; e < n; e += 1) i(s[e], t, a + 1, e);
805
752
  } else t.length && i(s, t, a + 1, o);
806
753
  }
807
754
  }
808
755
  };
809
- return i(e, X(t) ? t.split(".") : t, 0), r ? n : n[0];
756
+ return i(e, Z(t) ? t.split(".") : t, 0), r ? n : n[0];
810
757
  }
811
- var Yt = {
758
+ var Wt = {
812
759
  includeMatches: !1,
813
760
  findAllMatches: !1,
814
761
  minMatchCharLength: 1
815
- }, Xt = {
762
+ }, Gt = {
816
763
  isCaseSensitive: !1,
817
764
  ignoreDiacritics: !1,
818
765
  includeScore: !1,
819
766
  keys: [],
820
767
  shouldSort: !0,
821
768
  sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
822
- }, Zt = {
769
+ }, Kt = {
823
770
  location: 0,
824
771
  threshold: .6,
825
772
  distance: 100
826
- }, Qt = {
773
+ }, qt = {
827
774
  useExtendedSearch: !1,
828
775
  useTokenSearch: !1,
829
776
  tokenize: void 0,
830
777
  tokenMatch: "any",
831
- getFn: Jt,
778
+ getFn: Ut,
832
779
  ignoreLocation: !1,
833
780
  ignoreFieldNorm: !1,
834
781
  fieldNormWeight: 1
835
- }, Q = Object.freeze({
836
- ...Xt,
837
- ...Yt,
838
- ...Zt,
839
- ...Qt
782
+ }, $ = Object.freeze({
783
+ ...Gt,
784
+ ...Wt,
785
+ ...Kt,
786
+ ...qt
840
787
  });
841
- function $t(e) {
788
+ function Jt(e) {
842
789
  return e >= 9 && e <= 13 || e === 32 || e === 160;
843
790
  }
844
- function en(e = 1, t = 3) {
791
+ function Yt(e = 1, t = 3) {
845
792
  let n = /* @__PURE__ */ new Map(), r = 10 ** t;
846
793
  return {
847
794
  get(t) {
848
795
  let i = 0, a = !1;
849
- for (let e = 0; e < t.length; e++) $t(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
796
+ for (let e = 0; e < t.length; e++) Jt(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
850
797
  if (i === 0 && (i = 1), n.has(i)) return n.get(i);
851
798
  let o = Math.round(r / i ** (.5 * e)) / r;
852
799
  return n.set(i, o), o;
@@ -856,9 +803,9 @@ function en(e = 1, t = 3) {
856
803
  }
857
804
  };
858
805
  }
859
- var tn = class {
860
- constructor({ getFn: e = Q.getFn, fieldNormWeight: t = Q.fieldNormWeight } = {}) {
861
- this.norm = en(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
806
+ var Xt = class {
807
+ constructor({ getFn: e = $.getFn, fieldNormWeight: t = $.fieldNormWeight } = {}) {
808
+ this.norm = Yt(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
862
809
  }
863
810
  setSources(e = []) {
864
811
  this.docs = e;
@@ -877,7 +824,7 @@ var tn = class {
877
824
  let e = this.docs.length;
878
825
  this.records = Array(e);
879
826
  let t = 0;
880
- if (X(this.docs[0])) for (let n = 0; n < e; n++) {
827
+ if (Z(this.docs[0])) for (let n = 0; n < e; n++) {
881
828
  let e = this._createStringRecord(this.docs[n], n);
882
829
  e && (this.records[t++] = e);
883
830
  }
@@ -885,8 +832,8 @@ var tn = class {
885
832
  this.records.length = t, this.norm.clear();
886
833
  }
887
834
  add(e, t) {
888
- if (!Number.isInteger(t) || t < 0) throw Error(Lt);
889
- if (X(e)) {
835
+ if (!Number.isInteger(t) || t < 0) throw Error(Mt);
836
+ if (Z(e)) {
890
837
  let n = this._createStringRecord(e, t);
891
838
  return n && this.records.push(n), n;
892
839
  }
@@ -894,7 +841,7 @@ var tn = class {
894
841
  return this.records.push(n), n;
895
842
  }
896
843
  removeAt(e) {
897
- if (!Number.isInteger(e) || e < 0) throw Error(Lt);
844
+ if (!Number.isInteger(e) || e < 0) throw Error(Mt);
898
845
  for (let t = 0, n = this.records.length; t < n; t += 1) if (this.records[t].i === e) {
899
846
  this.records.splice(t, 1);
900
847
  break;
@@ -923,7 +870,7 @@ var tn = class {
923
870
  return this.records.length;
924
871
  }
925
872
  _createStringRecord(e, t) {
926
- return !Z(e) || Pt(e) ? null : {
873
+ return !Q(e) || kt(e) ? null : {
927
874
  v: e,
928
875
  i: t,
929
876
  n: this.norm.get(e)
@@ -936,14 +883,14 @@ var tn = class {
936
883
  };
937
884
  for (let t = 0, r = this.keys.length; t < r; t++) {
938
885
  let r = this.keys[t], i = r.getFn ? r.getFn(e) : this.getFn(e, r.path);
939
- if (Z(i)) {
940
- if (Y(i)) {
886
+ if (Q(i)) {
887
+ if (X(i)) {
941
888
  let e = [];
942
889
  for (let t = 0, n = i.length; t < n; t += 1) {
943
890
  let n = i[t];
944
- if (Z(n)) {
945
- if (X(n)) {
946
- if (!Pt(n)) {
891
+ if (Q(n)) {
892
+ if (Z(n)) {
893
+ if (!kt(n)) {
947
894
  let r = {
948
895
  v: n,
949
896
  i: t,
@@ -951,9 +898,9 @@ var tn = class {
951
898
  };
952
899
  e.push(r);
953
900
  }
954
- } else if (Z(n.v)) {
955
- let t = X(n.v) ? n.v : kt(n.v);
956
- if (!Pt(t)) {
901
+ } else if (Q(n.v)) {
902
+ let t = Z(n.v) ? n.v : wt(n.v);
903
+ if (!kt(t)) {
957
904
  let r = {
958
905
  v: t,
959
906
  i: n.i,
@@ -965,7 +912,7 @@ var tn = class {
965
912
  }
966
913
  }
967
914
  n.$[t] = e;
968
- } else if (X(i) && !Pt(i)) {
915
+ } else if (Z(i) && !kt(i)) {
969
916
  let e = {
970
917
  v: i,
971
918
  n: this.norm.get(i)
@@ -983,21 +930,21 @@ var tn = class {
983
930
  };
984
931
  }
985
932
  };
986
- function nn(e, t, { getFn: n = Q.getFn, fieldNormWeight: r = Q.fieldNormWeight } = {}) {
987
- let i = new tn({
933
+ function Zt(e, t, { getFn: n = $.getFn, fieldNormWeight: r = $.fieldNormWeight } = {}) {
934
+ let i = new Xt({
988
935
  getFn: n,
989
936
  fieldNormWeight: r
990
937
  });
991
- return i.setKeys(e.map(Gt)), i.setSources(t), i.create(), i;
938
+ return i.setKeys(e.map(Bt)), i.setSources(t), i.create(), i;
992
939
  }
993
- function rn(e, { getFn: t = Q.getFn, fieldNormWeight: n = Q.fieldNormWeight } = {}) {
994
- let { keys: r, records: i } = e, a = new tn({
940
+ function Qt(e, { getFn: t = $.getFn, fieldNormWeight: n = $.fieldNormWeight } = {}) {
941
+ let { keys: r, records: i } = e, a = new Xt({
995
942
  getFn: t,
996
943
  fieldNormWeight: n
997
944
  });
998
945
  return a.setKeys(r), a.setIndexRecords(i), a;
999
946
  }
1000
- function an(e = [], t = Q.minMatchCharLength) {
947
+ function $t(e = [], t = $.minMatchCharLength) {
1001
948
  let n = [], r = -1, i = -1, a = 0;
1002
949
  for (let o = e.length; a < o; a += 1) {
1003
950
  let o = e[a];
@@ -1005,8 +952,8 @@ function an(e = [], t = Q.minMatchCharLength) {
1005
952
  }
1006
953
  return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
1007
954
  }
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));
955
+ function en(e, t, n, { location: r = $.location, distance: i = $.distance, threshold: a = $.threshold, findAllMatches: o = $.findAllMatches, minMatchCharLength: s = $.minMatchCharLength, includeMatches: c = $.includeMatches, ignoreLocation: l = $.ignoreLocation } = {}) {
956
+ if (t.length > 32) throw Error(Pt(32));
1010
957
  let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, h = (e, t) => {
1011
958
  let n = e / u;
1012
959
  if (l) return n;
@@ -1047,12 +994,12 @@ function on(e, t, n, { location: r = Q.location, distance: i = Q.distance, thres
1047
994
  score: Math.max(.001, b)
1048
995
  };
1049
996
  if (g) {
1050
- let e = an(_, s);
997
+ let e = $t(_, s);
1051
998
  e.length ? c && (w.indices = e) : w.isMatch = !1;
1052
999
  }
1053
1000
  return w;
1054
1001
  }
1055
- function sn(e) {
1002
+ function tn(e) {
1056
1003
  let t = {};
1057
1004
  for (let n = 0, r = e.length; n < r; n += 1) {
1058
1005
  let i = e.charAt(n);
@@ -1060,7 +1007,7 @@ function sn(e) {
1060
1007
  }
1061
1008
  return t;
1062
1009
  }
1063
- function cn(e) {
1010
+ function nn(e) {
1064
1011
  if (e.length <= 1) return e;
1065
1012
  e.sort((e, t) => e[0] - t[0] || e[1] - t[1]);
1066
1013
  let t = [e[0]];
@@ -1070,7 +1017,7 @@ function cn(e) {
1070
1017
  }
1071
1018
  return t;
1072
1019
  }
1073
- var ln = {
1020
+ var rn = {
1074
1021
  ł: "l",
1075
1022
  Ł: "L",
1076
1023
  đ: "d",
@@ -1083,8 +1030,8 @@ var ln = {
1083
1030
  Ŧ: "T",
1084
1031
  ı: "i",
1085
1032
  ß: "ss"
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 {
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 } = {}) {
1033
+ }, an = RegExp("[" + Object.keys(rn).join("") + "]", "g"), on = 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(an, (e) => rn[e]) : (e) => e, sn = class {
1034
+ constructor(e, { location: t = $.location, threshold: n = $.threshold, distance: r = $.distance, includeMatches: i = $.includeMatches, findAllMatches: a = $.findAllMatches, minMatchCharLength: o = $.minMatchCharLength, isCaseSensitive: s = $.isCaseSensitive, ignoreDiacritics: c = $.ignoreDiacritics, ignoreLocation: l = $.ignoreLocation } = {}) {
1088
1035
  if (this.options = {
1089
1036
  location: t,
1090
1037
  threshold: n,
@@ -1095,11 +1042,11 @@ var ln = {
1095
1042
  isCaseSensitive: s,
1096
1043
  ignoreDiacritics: c,
1097
1044
  ignoreLocation: l
1098
- }, e = s ? e : e.toLowerCase(), e = c ? dn(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
1045
+ }, e = s ? e : e.toLowerCase(), e = c ? on(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
1099
1046
  let u = (e, t) => {
1100
1047
  this.chunks.push({
1101
1048
  pattern: e,
1102
- alphabet: sn(e),
1049
+ alphabet: tn(e),
1103
1050
  startIndex: t
1104
1051
  });
1105
1052
  }, d = this.pattern.length;
@@ -1114,7 +1061,7 @@ var ln = {
1114
1061
  }
1115
1062
  searchIn(e) {
1116
1063
  let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
1117
- if (e = t ? e : e.toLowerCase(), e = n ? dn(e) : e, this.pattern === e) {
1064
+ if (e = t ? e : e.toLowerCase(), e = n ? on(e) : e, this.pattern === e) {
1118
1065
  if (e.length < this.options.minMatchCharLength) return {
1119
1066
  isMatch: !1,
1120
1067
  score: 1
@@ -1127,7 +1074,7 @@ var ln = {
1127
1074
  }
1128
1075
  let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
1129
1076
  this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
1130
- let { isMatch: m, score: h, indices: g } = on(e, t, n, {
1077
+ let { isMatch: m, score: h, indices: g } = en(e, t, n, {
1131
1078
  location: i + p,
1132
1079
  distance: a,
1133
1080
  threshold: o,
@@ -1142,13 +1089,13 @@ var ln = {
1142
1089
  isMatch: f,
1143
1090
  score: f ? d / this.chunks.length : 1
1144
1091
  };
1145
- return f && r && (p.indices = cn(u)), p;
1092
+ return f && r && (p.indices = nn(u)), p;
1146
1093
  }
1147
- }, pn = /* @__PURE__ */ new Set(["fuzzy", "include"]);
1148
- function mn(e) {
1094
+ }, cn = /* @__PURE__ */ new Set(["fuzzy", "include"]);
1095
+ function ln(e) {
1149
1096
  return e.startsWith("inverse");
1150
1097
  }
1151
- var hn = [
1098
+ var un = [
1152
1099
  {
1153
1100
  type: "exact",
1154
1101
  multiRegex: /^="(.*)"$/,
@@ -1268,16 +1215,16 @@ var hn = [
1268
1215
  multiRegex: /^"(.*)"$/,
1269
1216
  singleRegex: /^(.*)$/,
1270
1217
  create: (e, t = {}) => {
1271
- let n = new fn(e, {
1272
- location: t.location ?? Q.location,
1273
- threshold: t.threshold ?? Q.threshold,
1274
- distance: t.distance ?? Q.distance,
1275
- includeMatches: t.includeMatches ?? Q.includeMatches,
1276
- findAllMatches: t.findAllMatches ?? Q.findAllMatches,
1277
- minMatchCharLength: t.minMatchCharLength ?? Q.minMatchCharLength,
1278
- isCaseSensitive: t.isCaseSensitive ?? Q.isCaseSensitive,
1279
- ignoreDiacritics: t.ignoreDiacritics ?? Q.ignoreDiacritics,
1280
- ignoreLocation: t.ignoreLocation ?? Q.ignoreLocation
1218
+ let n = new sn(e, {
1219
+ location: t.location ?? $.location,
1220
+ threshold: t.threshold ?? $.threshold,
1221
+ distance: t.distance ?? $.distance,
1222
+ includeMatches: t.includeMatches ?? $.includeMatches,
1223
+ findAllMatches: t.findAllMatches ?? $.findAllMatches,
1224
+ minMatchCharLength: t.minMatchCharLength ?? $.minMatchCharLength,
1225
+ isCaseSensitive: t.isCaseSensitive ?? $.isCaseSensitive,
1226
+ ignoreDiacritics: t.ignoreDiacritics ?? $.ignoreDiacritics,
1227
+ ignoreLocation: t.ignoreLocation ?? $.ignoreLocation
1281
1228
  });
1282
1229
  return {
1283
1230
  type: "fuzzy",
@@ -1287,8 +1234,8 @@ var hn = [
1287
1234
  };
1288
1235
  }
1289
1236
  }
1290
- ], gn = hn.length, _n = "\0", vn = "|";
1291
- function yn(e) {
1237
+ ], dn = un.length, fn = "\0", pn = "|";
1238
+ function mn(e) {
1292
1239
  let t = [], n = e.length, r = 0;
1293
1240
  for (; r < n;) {
1294
1241
  for (; r < n && e[r] === " ";) r++;
@@ -1318,21 +1265,21 @@ function yn(e) {
1318
1265
  }
1319
1266
  return t;
1320
1267
  }
1321
- function bn(e, t) {
1268
+ function hn(e, t) {
1322
1269
  let n = e.match(t);
1323
1270
  return n ? n[1] : null;
1324
1271
  }
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 = [];
1272
+ function gn(e, t = {}) {
1273
+ return e.replace(/\\\|/g, fn).split(pn).map((e) => {
1274
+ let n = mn(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
1328
1275
  for (let e = 0, i = n.length; e < i; e += 1) {
1329
1276
  let i = n[e], a = !1, o = -1;
1330
- for (; !a && ++o < gn;) {
1331
- let e = hn[o], n = bn(i, e.multiRegex);
1277
+ for (; !a && ++o < dn;) {
1278
+ let e = un[o], n = hn(i, e.multiRegex);
1332
1279
  n && (r.push(e.create(n, t)), a = !0);
1333
1280
  }
1334
- if (!a) for (o = -1; ++o < gn;) {
1335
- let e = hn[o], n = bn(i, e.singleRegex);
1281
+ if (!a) for (o = -1; ++o < dn;) {
1282
+ let e = un[o], n = hn(i, e.singleRegex);
1336
1283
  if (n) {
1337
1284
  r.push(e.create(n, t));
1338
1285
  break;
@@ -1342,8 +1289,8 @@ function xn(e, t = {}) {
1342
1289
  return r;
1343
1290
  });
1344
1291
  }
1345
- var Sn = class {
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 } = {}) {
1292
+ var _n = class {
1293
+ constructor(e, { isCaseSensitive: t = $.isCaseSensitive, ignoreDiacritics: n = $.ignoreDiacritics, includeMatches: r = $.includeMatches, minMatchCharLength: i = $.minMatchCharLength, ignoreLocation: a = $.ignoreLocation, findAllMatches: o = $.findAllMatches, location: s = $.location, threshold: c = $.threshold, distance: l = $.distance } = {}) {
1347
1294
  this.query = null, this.options = {
1348
1295
  isCaseSensitive: t,
1349
1296
  ignoreDiacritics: n,
@@ -1354,7 +1301,7 @@ var Sn = class {
1354
1301
  location: s,
1355
1302
  threshold: c,
1356
1303
  distance: l
1357
- }, e = t ? e : e.toLowerCase(), e = n ? dn(e) : e, this.pattern = e, this.query = xn(this.pattern, this.options);
1304
+ }, e = t ? e : e.toLowerCase(), e = n ? on(e) : e, this.pattern = e, this.query = gn(this.pattern, this.options);
1358
1305
  }
1359
1306
  static condition(e, t) {
1360
1307
  return t.useExtendedSearch;
@@ -1366,14 +1313,14 @@ var Sn = class {
1366
1313
  score: 1
1367
1314
  };
1368
1315
  let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
1369
- e = r ? e : e.toLowerCase(), e = i ? dn(e) : e;
1316
+ e = r ? e : e.toLowerCase(), e = i ? on(e) : e;
1370
1317
  let a = 0, o = [], s = 0, c = !1;
1371
1318
  for (let r = 0, i = t.length; r < i; r += 1) {
1372
1319
  let i = t[r];
1373
1320
  o.length = 0, a = 0, c = !1;
1374
1321
  for (let t = 0, r = i.length; t < r; t += 1) {
1375
1322
  let r = i[t], { isMatch: l, indices: u, score: d } = r.search(e);
1376
- if (l) a += 1, s += d, mn(r.type) && (c = !0), n && (pn.has(r.type) ? o.push(...u) : o.push(u));
1323
+ if (l) a += 1, s += d, ln(r.type) && (c = !0), n && (cn.has(r.type) ? o.push(...u) : o.push(u));
1377
1324
  else {
1378
1325
  s = 0, a = 0, o.length = 0, c = !1;
1379
1326
  break;
@@ -1384,7 +1331,7 @@ var Sn = class {
1384
1331
  isMatch: !0,
1385
1332
  score: s / a
1386
1333
  };
1387
- return c && (e.hasInverse = !0), n && (e.indices = cn(o)), e;
1334
+ return c && (e.hasInverse = !0), n && (e.indices = nn(o)), e;
1388
1335
  }
1389
1336
  }
1390
1337
  return {
@@ -1392,43 +1339,43 @@ var Sn = class {
1392
1339
  score: 1
1393
1340
  };
1394
1341
  }
1395
- }, Cn = [];
1396
- function wn(...e) {
1397
- Cn.push(...e);
1342
+ }, vn = [];
1343
+ function yn(...e) {
1344
+ vn.push(...e);
1398
1345
  }
1399
- function Tn(e, t) {
1400
- for (let n = 0, r = Cn.length; n < r; n += 1) {
1401
- let r = Cn[n];
1346
+ function bn(e, t) {
1347
+ for (let n = 0, r = vn.length; n < r; n += 1) {
1348
+ let r = vn[n];
1402
1349
  if (r.condition(e, t)) return new r(e, t);
1403
1350
  }
1404
- return new fn(e, t);
1351
+ return new sn(e, t);
1405
1352
  }
1406
- var En = {
1353
+ var xn = {
1407
1354
  AND: "$and",
1408
1355
  OR: "$or"
1409
- }, Dn = {
1356
+ }, Sn = {
1410
1357
  PATH: "$path",
1411
1358
  PATTERN: "$val"
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 } = {}) {
1359
+ }, Cn = (e) => !!(e[xn.AND] || e[xn.OR]), wn = (e) => !!e[Sn.PATH], Tn = (e) => !X(e) && Dt(e) && !Cn(e), En = (e) => ({ [xn.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
1360
+ function Dn(e, t, { auto: n = !0 } = {}) {
1414
1361
  let r = (e) => {
1415
- if (X(e)) {
1362
+ if (Z(e)) {
1416
1363
  let r = {
1417
1364
  keyId: null,
1418
1365
  pattern: e
1419
1366
  };
1420
- return n && (r.searcher = Tn(e, t)), r;
1367
+ return n && (r.searcher = bn(e, t)), r;
1421
1368
  }
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));
1369
+ let i = Object.keys(e), a = wn(e);
1370
+ if (!a && i.length > 1 && !Cn(e)) return r(En(e));
1371
+ if (Tn(e)) {
1372
+ let r = a ? e[Sn.PATH] : i[0], o = a ? e[Sn.PATTERN] : e[r];
1373
+ if (!Z(o)) throw Error(Nt(r));
1427
1374
  let s = {
1428
- keyId: qt(r),
1375
+ keyId: Ht(r),
1429
1376
  pattern: o
1430
1377
  };
1431
- return n && (s.searcher = Tn(o, t)), s;
1378
+ return n && (s.searcher = bn(o, t)), s;
1432
1379
  }
1433
1380
  let o = {
1434
1381
  children: [],
@@ -1436,26 +1383,26 @@ function Mn(e, t, { auto: n = !0 } = {}) {
1436
1383
  };
1437
1384
  return i.forEach((t) => {
1438
1385
  let n = e[t];
1439
- Y(n) && n.forEach((e) => {
1386
+ X(n) && n.forEach((e) => {
1440
1387
  o.children.push(r(e));
1441
1388
  });
1442
1389
  }), o;
1443
1390
  };
1444
- return On(e) || (e = jn(e)), r(e);
1391
+ return Cn(e) || (e = En(e)), r(e);
1445
1392
  }
1446
- function Nn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
1393
+ function On(e, { ignoreFieldNorm: t = $.ignoreFieldNorm }) {
1447
1394
  let n = 1;
1448
1395
  return e.forEach(({ key: e, norm: r, score: i }) => {
1449
1396
  let a = e ? e.weight : null;
1450
1397
  n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
1451
1398
  }), n;
1452
1399
  }
1453
- function Pn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
1400
+ function kn(e, { ignoreFieldNorm: t = $.ignoreFieldNorm }) {
1454
1401
  e.forEach((e) => {
1455
- e.score = Nn(e.matches, { ignoreFieldNorm: t });
1402
+ e.score = On(e.matches, { ignoreFieldNorm: t });
1456
1403
  });
1457
1404
  }
1458
- var Fn = class {
1405
+ var An = class {
1459
1406
  constructor(e, t) {
1460
1407
  this.limit = e, this.heap = [], this.comparator = t;
1461
1408
  }
@@ -1489,10 +1436,10 @@ var Fn = class {
1489
1436
  } while (r !== e);
1490
1437
  }
1491
1438
  };
1492
- function In(e) {
1439
+ function jn(e) {
1493
1440
  let t = [];
1494
1441
  return e.matches.forEach((e) => {
1495
- if (!Z(e.indices) || !e.indices.length) return;
1442
+ if (!Q(e.indices) || !e.indices.length) return;
1496
1443
  let n = {
1497
1444
  indices: e.indices,
1498
1445
  value: e.value
@@ -1500,20 +1447,20 @@ function In(e) {
1500
1447
  e.key && (n.key = e.key.id), e.idx > -1 && (n.refIndex = e.idx), t.push(n);
1501
1448
  }), t;
1502
1449
  }
1503
- function Ln(e, t, { includeMatches: n = Q.includeMatches, includeScore: r = Q.includeScore } = {}) {
1450
+ function Mn(e, t, { includeMatches: n = $.includeMatches, includeScore: r = $.includeScore } = {}) {
1504
1451
  return e.map((e) => {
1505
1452
  let { idx: i } = e, a = {
1506
1453
  item: t[i],
1507
1454
  refIndex: i
1508
1455
  };
1509
- return n && (a.matches = In(e)), r && (a.score = e.score), a;
1456
+ return n && (a.matches = jn(e)), r && (a.score = e.score), a;
1510
1457
  });
1511
1458
  }
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.`));
1459
+ var Nn = /[\p{L}\p{M}\p{N}_]+/gu, Pn = /* @__PURE__ */ new WeakSet();
1460
+ function Fn(e) {
1461
+ Pn.has(e) || (Pn.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.`));
1515
1462
  }
1516
- function Vn(e) {
1463
+ function In(e) {
1517
1464
  if (typeof e == "function") {
1518
1465
  let t = !1;
1519
1466
  return (n) => {
@@ -1522,20 +1469,20 @@ function Vn(e) {
1522
1469
  return r;
1523
1470
  };
1524
1471
  }
1525
- return e instanceof RegExp ? (e.global || Bn(e), (t) => t.match(e) || []) : (e) => e.match(Rn) || [];
1472
+ return e instanceof RegExp ? (e.global || Fn(e), (t) => t.match(e) || []) : (e) => e.match(Nn) || [];
1526
1473
  }
1527
- function Hn({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
1528
- let r = Vn(n);
1474
+ function Ln({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
1475
+ let r = In(n);
1529
1476
  return { tokenize(n) {
1530
- return e || (n = n.toLowerCase()), t && (n = dn(n)), r(n);
1477
+ return e || (n = n.toLowerCase()), t && (n = on(n)), r(n);
1531
1478
  } };
1532
1479
  }
1533
- var Un = class {
1480
+ var Rn = class {
1534
1481
  static condition(e, t) {
1535
1482
  return t.useTokenSearch;
1536
1483
  }
1537
1484
  constructor(e, t) {
1538
- this.options = t, this.analyzer = Hn({
1485
+ this.options = t, this.analyzer = Ln({
1539
1486
  isCaseSensitive: t.isCaseSensitive,
1540
1487
  ignoreDiacritics: t.ignoreDiacritics,
1541
1488
  tokenize: t.tokenize
@@ -1543,7 +1490,7 @@ var Un = class {
1543
1490
  let n = this.analyzer.tokenize(e), { df: r, fieldCount: i } = t._invertedIndex;
1544
1491
  this.termSearchers = [], this.idfWeights = [];
1545
1492
  for (let e of n) {
1546
- this.termSearchers.push(new fn(e, {
1493
+ this.termSearchers.push(new sn(e, {
1547
1494
  location: t.location,
1548
1495
  threshold: t.threshold,
1549
1496
  distance: t.distance,
@@ -1577,10 +1524,10 @@ var Un = class {
1577
1524
  isMatch: !0,
1578
1525
  score: Math.max(.001, s)
1579
1526
  };
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;
1527
+ return this.options.includeMatches && t.length && (c.indices = nn(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
1581
1528
  }
1582
1529
  };
1583
- function Wn(e, t, n, r) {
1530
+ function zn(e, t, n, r) {
1584
1531
  let i = r.tokenize(t);
1585
1532
  if (!i.length) return;
1586
1533
  e.fieldCount++, e.docFieldCount.set(n, (e.docFieldCount.get(n) || 0) + 1);
@@ -1588,34 +1535,34 @@ function Wn(e, t, n, r) {
1588
1535
  o || (o = /* @__PURE__ */ new Map(), e.docTermFieldHits.set(n, o));
1589
1536
  for (let t of a) o.set(t, (o.get(t) || 0) + 1), e.df.set(t, (e.df.get(t) || 0) + 1);
1590
1537
  }
1591
- function Gn(e, t, n, r) {
1538
+ function Bn(e, t, n, r) {
1592
1539
  let { i, v: a, $: o } = t;
1593
1540
  if (a !== void 0) {
1594
- Wn(e, a, i, r);
1541
+ zn(e, a, i, r);
1595
1542
  return;
1596
1543
  }
1597
1544
  if (o) for (let t = 0; t < n; t++) {
1598
1545
  let n = o[t];
1599
1546
  if (n) {
1600
- if (Array.isArray(n)) for (let t of n) Wn(e, t.v, i, r);
1601
- else Wn(e, n.v, i, r);
1547
+ if (Array.isArray(n)) for (let t of n) zn(e, t.v, i, r);
1548
+ else zn(e, n.v, i, r);
1602
1549
  }
1603
1550
  }
1604
1551
  }
1605
- function Kn(e, t, n) {
1552
+ function Vn(e, t, n) {
1606
1553
  let r = {
1607
1554
  fieldCount: 0,
1608
1555
  df: /* @__PURE__ */ new Map(),
1609
1556
  docFieldCount: /* @__PURE__ */ new Map(),
1610
1557
  docTermFieldHits: /* @__PURE__ */ new Map()
1611
1558
  };
1612
- for (let i of e) Gn(r, i, t, n);
1559
+ for (let i of e) Bn(r, i, t, n);
1613
1560
  return r;
1614
1561
  }
1615
- function qn(e, t, n, r) {
1616
- Gn(e, t, n, r);
1562
+ function Hn(e, t, n, r) {
1563
+ Bn(e, t, n, r);
1617
1564
  }
1618
- function Jn(e, t) {
1565
+ function Un(e, t) {
1619
1566
  let n = e.docFieldCount.get(t);
1620
1567
  if (n === void 0) return;
1621
1568
  e.fieldCount -= n, e.docFieldCount.delete(t);
@@ -1628,10 +1575,10 @@ function Jn(e, t) {
1628
1575
  e.docTermFieldHits.delete(t);
1629
1576
  }
1630
1577
  }
1631
- function Yn(e, t) {
1578
+ function Wn(e, t) {
1632
1579
  if (t.length === 0) return;
1633
1580
  let n = Array.from(new Set(t)).sort((e, t) => e - t);
1634
- for (let t of n) Jn(e, t);
1581
+ for (let t of n) Un(e, t);
1635
1582
  let r = (e) => {
1636
1583
  let t = 0, r = n.length;
1637
1584
  for (; t < r;) {
@@ -1646,47 +1593,47 @@ function Yn(e, t) {
1646
1593
  for (let [t, n] of e.docTermFieldHits) o.set(t > i ? r(t) : t, n);
1647
1594
  e.docTermFieldHits = o;
1648
1595
  }
1649
- var $ = class {
1596
+ var Gn = class {
1650
1597
  constructor(e, t, n) {
1651
1598
  this.options = {
1652
- ...Q,
1599
+ ...$,
1653
1600
  ...t
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;
1601
+ }, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new zt(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
1655
1602
  }
1656
1603
  _getSearcher(e) {
1657
1604
  if (this._lastQuery === e) return this._lastSearcher;
1658
- let t = Tn(e, this._invertedIndex ? {
1605
+ let t = bn(e, this._invertedIndex ? {
1659
1606
  ...this.options,
1660
1607
  _invertedIndex: this._invertedIndex
1661
1608
  } : this.options);
1662
1609
  return this._lastQuery = e, this._lastSearcher = t, t;
1663
1610
  }
1664
1611
  setCollection(e, t) {
1665
- if (this._docs = e, t && !(t instanceof tn)) throw Error(It);
1666
- if (this._myIndex = t || nn(this.options.keys, this._docs, {
1612
+ if (this._docs = e, t && !(t instanceof Xt)) throw Error(jt);
1613
+ if (this._myIndex = t || Zt(this.options.keys, this._docs, {
1667
1614
  getFn: this.options.getFn,
1668
1615
  fieldNormWeight: this.options.fieldNormWeight
1669
1616
  }), this.options.useTokenSearch) {
1670
- let e = Hn({
1617
+ let e = Ln({
1671
1618
  isCaseSensitive: this.options.isCaseSensitive,
1672
1619
  ignoreDiacritics: this.options.ignoreDiacritics,
1673
1620
  tokenize: this.options.tokenize
1674
1621
  });
1675
- this._invertedIndex = Kn(this._myIndex.records, this._myIndex.keys.length, e);
1622
+ this._invertedIndex = Vn(this._myIndex.records, this._myIndex.keys.length, e);
1676
1623
  }
1677
1624
  this._invalidateSearcherCache();
1678
1625
  }
1679
1626
  add(e) {
1680
- if (!Z(e)) return;
1627
+ if (!Q(e)) return;
1681
1628
  this._docs.push(e);
1682
1629
  let t = this._myIndex.add(e, this._docs.length - 1);
1683
1630
  if (this._invertedIndex && t) {
1684
- let e = Hn({
1631
+ let e = Ln({
1685
1632
  isCaseSensitive: this.options.isCaseSensitive,
1686
1633
  ignoreDiacritics: this.options.ignoreDiacritics,
1687
1634
  tokenize: this.options.tokenize
1688
1635
  });
1689
- qn(this._invertedIndex, t, this._myIndex.keys.length, e);
1636
+ Hn(this._invertedIndex, t, this._myIndex.keys.length, e);
1690
1637
  }
1691
1638
  this._invalidateSearcherCache();
1692
1639
  }
@@ -1694,15 +1641,15 @@ var $ = class {
1694
1641
  let t = [], n = [];
1695
1642
  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));
1696
1643
  if (n.length) {
1697
- this._invertedIndex && Yn(this._invertedIndex, n);
1644
+ this._invertedIndex && Wn(this._invertedIndex, n);
1698
1645
  let e = new Set(n);
1699
1646
  this._docs = this._docs.filter((t, n) => !e.has(n)), this._myIndex.removeAll(n), this._invalidateSearcherCache();
1700
1647
  }
1701
1648
  return t;
1702
1649
  }
1703
1650
  removeAt(e) {
1704
- if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Lt);
1705
- this._invertedIndex && Yn(this._invertedIndex, [e]);
1651
+ if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Mt);
1652
+ this._invertedIndex && Wn(this._invertedIndex, [e]);
1706
1653
  let t = this._docs.splice(e, 1)[0];
1707
1654
  return this._myIndex.removeAt(e), this._invalidateSearcherCache(), t;
1708
1655
  }
@@ -1717,25 +1664,25 @@ var $ = class {
1717
1664
  }
1718
1665
  search(e, t) {
1719
1666
  let { limit: n = -1 } = t || {}, { includeMatches: r, includeScore: i, shouldSort: a, sortFn: o, ignoreFieldNorm: s } = this.options;
1720
- if (X(e) && !e.trim()) {
1667
+ if (Z(e) && !e.trim()) {
1721
1668
  let e = this._docs.map((e, t) => ({
1722
1669
  item: e,
1723
1670
  refIndex: t
1724
1671
  }));
1725
- return At(n) && n > -1 && (e = e.slice(0, n)), e;
1672
+ return Tt(n) && n > -1 && (e = e.slice(0, n)), e;
1726
1673
  }
1727
- let c = a && At(n) && n > 0 && X(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
1674
+ let c = a && Tt(n) && n > 0 && Z(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
1728
1675
  if (c) {
1729
- let t = new Fn(n, u);
1730
- X(this._docs[0]) ? this._searchStringList(e, {
1676
+ let t = new An(n, u);
1677
+ Z(this._docs[0]) ? this._searchStringList(e, {
1731
1678
  heap: t,
1732
1679
  ignoreFieldNorm: s
1733
1680
  }) : this._searchObjectList(e, {
1734
1681
  heap: t,
1735
1682
  ignoreFieldNorm: s
1736
1683
  }), d = t.extractSorted();
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, {
1684
+ } else d = Z(e) ? Z(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), kn(d, { ignoreFieldNorm: s }), a && d.sort(Z(e) ? u : l), Tt(n) && n > -1 && (d = d.slice(0, n));
1685
+ return Mn(d, this._docs, {
1739
1686
  includeMatches: r,
1740
1687
  includeScore: i
1741
1688
  });
@@ -1743,7 +1690,7 @@ var $ = class {
1743
1690
  _searchStringList(e, { heap: t, ignoreFieldNorm: n } = {}) {
1744
1691
  let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", { records: a } = this._myIndex, o = t ? null : [];
1745
1692
  return a.forEach(({ v: e, i: a, n: s }) => {
1746
- if (!Z(e)) return;
1693
+ if (!Q(e)) return;
1747
1694
  let c = r.searchIn(e);
1748
1695
  if (c.isMatch) {
1749
1696
  let r = {
@@ -1760,13 +1707,13 @@ var $ = class {
1760
1707
  idx: a,
1761
1708
  matches: l
1762
1709
  };
1763
- t ? (r.score = Nn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
1710
+ t ? (r.score = On(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
1764
1711
  }
1765
1712
  }
1766
1713
  }), o;
1767
1714
  }
1768
1715
  _searchLogical(e) {
1769
- let t = Mn(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
1716
+ let t = Dn(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
1770
1717
  if (!("children" in e)) {
1771
1718
  let { keyId: r, searcher: a } = e, o;
1772
1719
  return r === null ? (o = [], n.forEach((e, n) => {
@@ -1789,12 +1736,12 @@ var $ = class {
1789
1736
  for (let e = 0, n = a.length; e < n; e += 1) {
1790
1737
  let n = a[e], c = r(n, t, i);
1791
1738
  if (c.length) s.push(...c);
1792
- else if (o === En.AND) return [];
1739
+ else if (o === xn.AND) return [];
1793
1740
  }
1794
1741
  return s;
1795
1742
  }, i = this._myIndex.records, a = /* @__PURE__ */ new Map(), o = [];
1796
1743
  return i.forEach(({ $: e, i: n }) => {
1797
- if (Z(e)) {
1744
+ if (Q(e)) {
1798
1745
  let i = r(t, e, n);
1799
1746
  i.length && (a.has(n) || (a.set(n, {
1800
1747
  idx: n,
@@ -1809,7 +1756,7 @@ var $ = class {
1809
1756
  _searchObjectList(e, { heap: t, ignoreFieldNorm: n } = {}) {
1810
1757
  let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", { records: a } = this._myIndex, o = this._normalizedKeys(), s = t ? null : [];
1811
1758
  return a.forEach(({ $: e, i: a }) => {
1812
- if (!Z(e)) return;
1759
+ if (!Q(e)) return;
1813
1760
  let c = [], l = !1, u = !1;
1814
1761
  if (o.forEach((t, n) => {
1815
1762
  let i = this._findMatches({
@@ -1824,15 +1771,15 @@ var $ = class {
1824
1771
  item: e,
1825
1772
  matches: c
1826
1773
  };
1827
- t ? (r.score = Nn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
1774
+ t ? (r.score = On(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
1828
1775
  }
1829
1776
  }), s;
1830
1777
  }
1831
1778
  _findMatches({ key: e, value: t, searcher: n }) {
1832
- if (!Z(t)) return [];
1779
+ if (!Q(t)) return [];
1833
1780
  let r = [];
1834
- if (Y(t)) t.forEach(({ v: t, i, n: a }) => {
1835
- if (!Z(t)) return;
1781
+ if (X(t)) t.forEach(({ v: t, i, n: a }) => {
1782
+ if (!Q(t)) return;
1836
1783
  let o = n.searchIn(t);
1837
1784
  if (o.isMatch) {
1838
1785
  let n = {
@@ -1879,17 +1826,17 @@ var $ = class {
1879
1826
  return n.size === t;
1880
1827
  }
1881
1828
  };
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, {
1885
- ...Q,
1829
+ Gn.version = "7.5.0", Gn.createIndex = Zt, Gn.parseIndex = Qt, Gn.config = $, Gn.match = function(e, t, n) {
1830
+ if (n && n.useTokenSearch) throw Error(Lt);
1831
+ return bn(e, {
1832
+ ...$,
1886
1833
  ...n
1887
1834
  }).searchIn(t);
1888
- }, $.parseQuery = Mn, wn(Sn), wn(Un), $.use = function(...e) {
1889
- e.forEach((e) => wn(e));
1835
+ }, Gn.parseQuery = Dn, yn(_n), yn(Rn), Gn.use = function(...e) {
1836
+ e.forEach((e) => yn(e));
1890
1837
  };
1891
- var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, open: i, searchMode: a }) => {
1892
- let { t: o } = G(), s = [
1838
+ var Kn = Gn, qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, open: i, searchMode: a }) => {
1839
+ let { t: o } = W(), s = [
1893
1840
  {
1894
1841
  label: o`Include match`,
1895
1842
  searchMode: "include-match"
@@ -1910,51 +1857,51 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1910
1857
  label: o`Ends with`,
1911
1858
  searchMode: "suffix-exact-match"
1912
1859
  }
1913
- ], c = B((e) => {
1860
+ ], c = z((e) => {
1914
1861
  let r = e.currentTarget.dataset.searchMode;
1915
1862
  r && (t(r), n());
1916
- }, [t, n]), l = B((e) => {
1863
+ }, [t, n]), l = z((e) => {
1917
1864
  e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), r());
1918
1865
  }, [r]);
1919
- return /* @__PURE__ */ K(_e, {
1866
+ return /* @__PURE__ */ G(me, {
1920
1867
  anchorEl: e,
1921
1868
  open: i,
1922
1869
  placement: "bottom-end",
1923
1870
  sx: { zIndex: (e) => e.zIndex.modal + 1 },
1924
- children: /* @__PURE__ */ K(se, {
1871
+ children: /* @__PURE__ */ G(N, {
1925
1872
  onClickAway: n,
1926
- children: /* @__PURE__ */ q(ge, {
1873
+ children: /* @__PURE__ */ K(pe, {
1927
1874
  elevation: 8,
1928
1875
  sx: { width: 280 },
1929
- ...J.createAttributes("DashboardSearchSettings"),
1876
+ ...q.createAttributes("DashboardSearchSettings"),
1930
1877
  children: [
1931
- /* @__PURE__ */ K(me, {
1878
+ /* @__PURE__ */ G(de, {
1932
1879
  autoFocusItem: i,
1933
1880
  onKeyDown: l,
1934
- children: s.map((e) => /* @__PURE__ */ q(pe, {
1881
+ children: s.map((e) => /* @__PURE__ */ K(ue, {
1935
1882
  "data-search-mode": e.searchMode,
1936
1883
  onClick: c,
1937
1884
  selected: e.searchMode === a,
1938
- children: [/* @__PURE__ */ K(ue, { children: e.searchMode === a && /* @__PURE__ */ K(it, { fontSize: "small" }) }), /* @__PURE__ */ K(de, { children: e.label })]
1885
+ children: [/* @__PURE__ */ G(ce, { children: e.searchMode === a && /* @__PURE__ */ G(rt, { fontSize: "small" }) }), /* @__PURE__ */ G(le, { children: e.label })]
1939
1886
  }, e.searchMode))
1940
1887
  }),
1941
- /* @__PURE__ */ K(F, {}),
1942
- /* @__PURE__ */ q(N, {
1888
+ /* @__PURE__ */ G(ae, {}),
1889
+ /* @__PURE__ */ K(j, {
1943
1890
  sx: { p: 1.5 },
1944
1891
  children: [
1945
- /* @__PURE__ */ K(R, {
1892
+ /* @__PURE__ */ G(L, {
1946
1893
  variant: "subtitle2",
1947
1894
  children: o`Operators`
1948
1895
  }),
1949
- /* @__PURE__ */ K(R, {
1896
+ /* @__PURE__ */ G(L, {
1950
1897
  variant: "body2",
1951
1898
  children: o`Spaces combine terms with AND.`
1952
1899
  }),
1953
- /* @__PURE__ */ K(R, {
1900
+ /* @__PURE__ */ G(L, {
1954
1901
  variant: "body2",
1955
1902
  children: o`Use | between groups for OR.`
1956
1903
  }),
1957
- /* @__PURE__ */ K(R, {
1904
+ /* @__PURE__ */ G(L, {
1958
1905
  variant: "body2",
1959
1906
  children: o`Use double quotes for phrases with spaces.`
1960
1907
  })
@@ -1964,7 +1911,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1964
1911
  })
1965
1912
  })
1966
1913
  });
1967
- }, Qn = (e, t) => {
1914
+ }, Jn = (e, t) => {
1968
1915
  switch (t) {
1969
1916
  case "exact-match": return `=${e}`;
1970
1917
  case "fuzzy-match": return e;
@@ -1973,13 +1920,13 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1973
1920
  case "suffix-exact-match": return `${e}$`;
1974
1921
  default: return `'${e}`;
1975
1922
  }
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;
1923
+ }, Yn = () => {
1924
+ let e = H(null), t = H(null), r = H(null), i = H(!1), s = H(null), l = H(null), u = H(null), d = R(c), f = o(d, (e) => e.sortedData), p = o(d, (e) => e.completeCaseType), m = _e(), { t: h } = W(), [g, _] = U(""), [v, y] = U(null), [b, x] = U([]), [C, w] = U(!1), [T, E] = U(-1), [ee, te] = U("include-match"), [D, O] = U(null), k = R(S), ne = null;
1978
1925
  g && (ne = b.length ? T < 0 ? h("{{numResults}} results", { numResults: b.length }) : h("{{current}}/{{numResults}} results", {
1979
1926
  current: T + 1,
1980
1927
  numResults: b.length
1981
1928
  }) : h`No results`);
1982
- let A = B(() => {
1929
+ let A = z(() => {
1983
1930
  let e = [];
1984
1931
  return f.forEach((t) => {
1985
1932
  let r = { id: t.id };
@@ -1991,7 +1938,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
1991
1938
  let o = n.getRowValue({ [e]: t }, i, p);
1992
1939
  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));
1993
1940
  }), e.push(r);
1994
- }), new Xn(e, {
1941
+ }), new Kn(e, {
1995
1942
  ignoreDiacritics: !0,
1996
1943
  ignoreLocation: !1,
1997
1944
  includeMatches: !0,
@@ -2006,17 +1953,17 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2006
1953
  threshold: .3,
2007
1954
  useExtendedSearch: !0
2008
1955
  });
2009
- }, [p, f]), j = B(() => {
1956
+ }, [p, f]), re = z(() => {
2010
1957
  if (v) return v;
2011
1958
  let e = A();
2012
1959
  return y(e), e;
2013
- }, [A, v]), re = B((e) => {
1960
+ }, [A, v]), ie = z((e) => {
2014
1961
  let t = e.target.value;
2015
- _(t), t && j();
2016
- }, [j]);
2017
- V(() => {
1962
+ _(t), t && re();
1963
+ }, [re]);
1964
+ B(() => {
2018
1965
  _(""), w(!1), y(null), x([]), E(-1);
2019
- }, [p, f]), V(() => {
1966
+ }, [p, f]), B(() => {
2020
1967
  if (!g) {
2021
1968
  x([]), E(-1), k.highlight({
2022
1969
  caseIds: [],
@@ -2025,7 +1972,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2025
1972
  return;
2026
1973
  }
2027
1974
  if (!v) return;
2028
- let e = Qn(g, ee), t = v.search(e).sort((e, t) => e.refIndex - t.refIndex);
1975
+ let e = Jn(g, ee), t = v.search(e).sort((e, t) => e.refIndex - t.refIndex);
2029
1976
  x(t), E(-1);
2030
1977
  }, [
2031
1978
  k,
@@ -2033,32 +1980,32 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2033
1980
  ee,
2034
1981
  g
2035
1982
  ]);
2036
- let ie = B(() => {
1983
+ let M = z(() => {
2037
1984
  w(!0);
2038
1985
  }, []);
2039
- V(() => {
1986
+ B(() => {
2040
1987
  C ? e.current?.focus() : i.current && (i.current = !1, t.current?.focus());
2041
1988
  }, [C]);
2042
- let M = B(() => {
1989
+ let N = z(() => {
2043
1990
  i.current = !0, w(!1), _(""), x([]), E(-1), k.highlight({
2044
1991
  caseIds: [],
2045
1992
  origin: a.SEARCH_BOX
2046
1993
  });
2047
- }, [k]), ae = B(() => {
2048
- M();
2049
- }, [M]), oe = B((e) => {
2050
- e.key === "Escape" && (e.preventDefault(), M());
2051
- }, [M]), P = B((e) => {
1994
+ }, [k]), ae = z(() => {
1995
+ N();
1996
+ }, [N]), P = z((e) => {
1997
+ e.key === "Escape" && (e.preventDefault(), N());
1998
+ }, [N]), se = z((e) => {
2052
1999
  if (e.key === "Enter") {
2053
2000
  if (!b?.length) return;
2054
2001
  e.preventDefault(), E(0), l.current?.focus();
2055
2002
  }
2056
- }, [b]), se = B(() => {
2003
+ }, [b]), ce = z(() => {
2057
2004
  b?.length && E((e) => e <= 0 ? b.length - 1 : e - 1);
2058
- }, [b]), F = B(() => {
2005
+ }, [b]), le = z(() => {
2059
2006
  b?.length && E((e) => e >= b.length - 1 ? 0 : e + 1);
2060
2007
  }, [b]);
2061
- V(() => {
2008
+ B(() => {
2062
2009
  if (!b?.length || T < 0 || T >= b.length) {
2063
2010
  k.highlight({
2064
2011
  caseIds: [],
@@ -2076,7 +2023,7 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2076
2023
  b,
2077
2024
  T
2078
2025
  ]);
2079
- let I = B((t) => {
2026
+ let I = z((t) => {
2080
2027
  if (t.key === "ArrowRight") {
2081
2028
  t.preventDefault();
2082
2029
  let e = t.currentTarget.nextElementSibling;
@@ -2090,90 +2037,90 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2090
2037
  let n = t.currentTarget.previousElementSibling;
2091
2038
  n && n.focus();
2092
2039
  }
2093
- }, []), le = B(() => {
2040
+ }, []), ue = z(() => {
2094
2041
  O(r.current);
2095
- }, []), ue = B(() => {
2042
+ }, []), de = z(() => {
2096
2043
  O(null);
2097
- }, []), de = B(() => {
2044
+ }, []), pe = z(() => {
2098
2045
  O(null), r.current?.focus();
2099
- }, []), fe = B((t) => {
2100
- D(t), e.current?.focus();
2046
+ }, []), me = z((t) => {
2047
+ te(t), e.current?.focus();
2101
2048
  }, []);
2102
- return /* @__PURE__ */ K(N, {
2049
+ return /* @__PURE__ */ G(j, {
2103
2050
  sx: {
2104
2051
  height: m.spacing(4),
2105
2052
  maxWidth: m.spacing(60),
2106
2053
  overflow: "hidden",
2107
2054
  width: "calc(100% / 2)"
2108
2055
  },
2109
- ...J.createAttributes("DashboardSearch"),
2110
- children: C ? /* @__PURE__ */ K(N, {
2111
- onKeyDown: oe,
2112
- children: /* @__PURE__ */ K(he, {
2113
- endAdornment: /* @__PURE__ */ q(ce, {
2056
+ ...q.createAttributes("DashboardSearch"),
2057
+ children: C ? /* @__PURE__ */ G(j, {
2058
+ onKeyDown: P,
2059
+ children: /* @__PURE__ */ G(fe, {
2060
+ endAdornment: /* @__PURE__ */ K(oe, {
2114
2061
  position: "end",
2115
2062
  children: [
2116
- ne && /* @__PURE__ */ K(N, {
2063
+ ne && /* @__PURE__ */ G(j, {
2117
2064
  "aria-atomic": "true",
2118
2065
  "aria-live": "polite",
2119
2066
  role: "status",
2120
2067
  children: ne
2121
2068
  }),
2122
- /* @__PURE__ */ K(L, {
2123
- ...J.createAttributes("DashboardSearch-PreviousButton"),
2069
+ /* @__PURE__ */ G(F, {
2070
+ ...q.createAttributes("DashboardSearch-PreviousButton"),
2124
2071
  "aria-label": h`Goto previous search result`,
2125
2072
  disabled: !b?.length,
2126
2073
  edge: "end",
2127
- onClick: se,
2074
+ onClick: ce,
2128
2075
  onKeyDown: I,
2129
2076
  ref: s,
2130
2077
  sx: { color: m.palette.primary.main },
2131
- children: /* @__PURE__ */ K(et, {})
2078
+ children: /* @__PURE__ */ G($e, {})
2132
2079
  }),
2133
- /* @__PURE__ */ K(L, {
2134
- ...J.createAttributes("DashboardSearch-NextButton"),
2080
+ /* @__PURE__ */ G(F, {
2081
+ ...q.createAttributes("DashboardSearch-NextButton"),
2135
2082
  "aria-label": h`Goto next search result`,
2136
2083
  disabled: !b?.length,
2137
2084
  edge: "end",
2138
- onClick: F,
2085
+ onClick: le,
2139
2086
  onKeyDown: I,
2140
2087
  ref: l,
2141
2088
  sx: { color: m.palette.primary.main },
2142
- children: /* @__PURE__ */ K(tt, {})
2089
+ children: /* @__PURE__ */ G(et, {})
2143
2090
  }),
2144
- /* @__PURE__ */ K(L, {
2145
- ...J.createAttributes("DashboardSearch-SettingsButton"),
2091
+ /* @__PURE__ */ G(F, {
2092
+ ...q.createAttributes("DashboardSearch-SettingsButton"),
2146
2093
  "aria-label": h`Open settings`,
2147
2094
  edge: "end",
2148
- onClick: le,
2095
+ onClick: ue,
2149
2096
  onKeyDown: I,
2150
2097
  ref: r,
2151
- children: /* @__PURE__ */ K(nt, {})
2098
+ children: /* @__PURE__ */ G(tt, {})
2152
2099
  }),
2153
- /* @__PURE__ */ K(Zn, {
2154
- anchorEl: te,
2155
- onChange: fe,
2156
- onClose: ue,
2157
- onEscapeKeyDown: de,
2158
- open: !!te,
2100
+ /* @__PURE__ */ G(qn, {
2101
+ anchorEl: D,
2102
+ onChange: me,
2103
+ onClose: de,
2104
+ onEscapeKeyDown: pe,
2105
+ open: !!D,
2159
2106
  searchMode: ee
2160
2107
  }),
2161
- /* @__PURE__ */ K(L, {
2162
- ...J.createAttributes("DashboardSearch-CloseButton"),
2108
+ /* @__PURE__ */ G(F, {
2109
+ ...q.createAttributes("DashboardSearch-CloseButton"),
2163
2110
  "aria-label": h`Close search`,
2164
2111
  edge: "end",
2165
2112
  onClick: ae,
2166
2113
  onKeyDown: I,
2167
2114
  ref: u,
2168
- children: /* @__PURE__ */ K(rt, {})
2115
+ children: /* @__PURE__ */ G(nt, {})
2169
2116
  })
2170
2117
  ]
2171
2118
  }),
2172
2119
  fullWidth: !0,
2173
2120
  inputRef: e,
2174
2121
  name: h`Search listed cases`,
2175
- onChange: re,
2176
- onKeyDown: P,
2122
+ onChange: ie,
2123
+ onKeyDown: se,
2177
2124
  placeholder: h`Search listed cases`,
2178
2125
  size: "small",
2179
2126
  slotProps: { input: {
@@ -2193,34 +2140,34 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2193
2140
  type: "search",
2194
2141
  value: g
2195
2142
  })
2196
- }) : /* @__PURE__ */ K(N, {
2143
+ }) : /* @__PURE__ */ G(j, {
2197
2144
  sx: {
2198
2145
  justifySelf: "flex-end",
2199
2146
  marginRight: m.spacing(.6),
2200
2147
  marginTop: m.spacing(.5)
2201
2148
  },
2202
- children: /* @__PURE__ */ K(L, {
2149
+ children: /* @__PURE__ */ G(F, {
2203
2150
  "aria-label": h`Search`,
2204
2151
  edge: "end",
2205
- onClick: ie,
2152
+ onClick: M,
2206
2153
  ref: t,
2207
2154
  sx: {
2208
2155
  color: m.palette.primary.main,
2209
2156
  margin: 0,
2210
2157
  padding: 0
2211
2158
  },
2212
- children: /* @__PURE__ */ K($e, {})
2159
+ children: /* @__PURE__ */ G(Qe, {})
2213
2160
  })
2214
2161
  })
2215
2162
  });
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]);
2220
- V(() => {
2163
+ }, Xn = ({ caseSet: e }) => {
2164
+ let { t } = W(), n = _e(), r = H(null), i = H(null), a = H(null), s = H(null), l = H(null), f = H(null), p = H(null), S = H(null), T = H(null), E = H(null), ee = H(null), [te, D] = U(!1), [O, k] = U(!1), [ne, M] = U(!1), N = R(c), ae = o(N, d((e) => e.fetchData)), P = o(N, (e) => e.completeCaseType), F = o(N, (e) => e.filters.filter((e) => !e.isInitialFilterValue()).length), oe = o(N, (e) => e.isMaxResultsExceeded), se = o(N, (e) => e.isMaxResultsExceededDismissed), ce = z(() => {
2165
+ N.setState({ isMaxResultsExceededDismissed: !0 });
2166
+ }, [N]);
2167
+ B(() => {
2221
2168
  let e = u.getInstance(), t = [
2222
2169
  e.addEventListener("onEventCreated", () => {
2223
- re();
2170
+ ae();
2224
2171
  }),
2225
2172
  e.addEventListener("openAddCasesToEventDialog", (...e) => E.current?.open(...e)),
2226
2173
  e.addEventListener("openCaseInfoDialog", (...e) => f.current?.open(...e)),
@@ -2230,28 +2177,28 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2230
2177
  e.addEventListener("openRemoveFindSimilarCasesResultDialog", (...e) => ee.current?.open(...e)),
2231
2178
  e.addEventListener("openRemoveCasesFromEventDialog", (...e) => T.current?.open(...e)),
2232
2179
  e.addEventListener("openSequenceDownloadDialog", (...e) => l.current?.open(...e)),
2233
- e.addEventListener("openFiltersMenu", () => te(!0))
2180
+ e.addEventListener("openFiltersMenu", () => D(!0))
2234
2181
  ];
2235
2182
  return () => {
2236
2183
  t.forEach((e) => e());
2237
2184
  };
2238
- }, [re]), V(() => {
2185
+ }, [ae]), B(() => {
2239
2186
  let e = [
2240
- Ge.getInstance().registerShortcut({
2187
+ Ve.getInstance().registerShortcut({
2241
2188
  callback: () => {
2242
- te((e) => !e);
2189
+ D((e) => !e);
2243
2190
  },
2244
2191
  key: "f",
2245
2192
  modifier: null
2246
2193
  }),
2247
- Ge.getInstance().registerShortcut({
2194
+ Ve.getInstance().registerShortcut({
2248
2195
  callback: () => {
2249
2196
  k((e) => !e);
2250
2197
  },
2251
2198
  key: "s",
2252
2199
  modifier: null
2253
2200
  }),
2254
- Ge.getInstance().registerShortcut({
2201
+ Ve.getInstance().registerShortcut({
2255
2202
  callback: () => {
2256
2203
  a.current.open();
2257
2204
  },
@@ -2263,129 +2210,129 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2263
2210
  e.forEach((e) => e());
2264
2211
  };
2265
2212
  }, []);
2266
- let L = B(() => {
2267
- te(!1);
2268
- }, []), ce = B(() => {
2269
- te(!0);
2270
- }, []), le = B(() => {
2213
+ let le = z(() => {
2214
+ D(!1);
2215
+ }, []), I = z(() => {
2216
+ D(!0);
2217
+ }, []), ue = z(() => {
2271
2218
  k(!1);
2272
- }, []), ue = B(() => {
2273
- A(!1);
2274
- }, []), de = B(() => {
2219
+ }, []), de = z(() => {
2220
+ M(!1);
2221
+ }, []), fe = z(() => {
2275
2222
  k(!0);
2276
- }, []), fe = B(() => {
2277
- A(!0);
2278
- }, []), pe = B(() => {
2223
+ }, []), pe = z(() => {
2224
+ M(!0);
2225
+ }, []), me = z(() => {
2279
2226
  a.current.open();
2280
- }, []), me = B(() => {
2227
+ }, []), he = z(() => {
2281
2228
  i.current.open({
2282
2229
  caseSetId: e?.id,
2283
- caseTypeId: ie?.id
2230
+ caseTypeId: P?.id
2284
2231
  });
2285
- }, [e?.id, ie?.id]), he = B(() => {
2232
+ }, [e?.id, P?.id]), L = z(() => {
2286
2233
  r.current?.reset();
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, {
2234
+ }, []), ge = V(() => !!oe && !se, [se, oe]), ve = A.getInstance().config.dashboard.DASHBOARD_INJECTED_COMPONENT;
2235
+ return /* @__PURE__ */ K(we, { children: [
2236
+ /* @__PURE__ */ K(ze, { children: [
2237
+ /* @__PURE__ */ G(Be, {
2291
2238
  badgeColor: "secondary",
2292
- badgeContent: P,
2239
+ badgeContent: F,
2293
2240
  first: !0,
2294
- icon: /* @__PURE__ */ K(Le, {}),
2295
- onClick: ce,
2241
+ icon: /* @__PURE__ */ G(Ne, {}),
2242
+ onClick: I,
2296
2243
  testIdAttributes: { name: "filters" },
2297
2244
  title: t`Open filters`
2298
2245
  }),
2299
- /* @__PURE__ */ K(We, {
2246
+ /* @__PURE__ */ G(Be, {
2300
2247
  badgeColor: "secondary",
2301
- icon: /* @__PURE__ */ K(mt, {}),
2302
- onClick: de,
2248
+ icon: /* @__PURE__ */ G(pt, {}),
2249
+ onClick: fe,
2303
2250
  testIdAttributes: { name: "dashboard" },
2304
2251
  title: t`Change dashboard layout`
2305
2252
  }),
2306
- /* @__PURE__ */ K(We, {
2307
- icon: /* @__PURE__ */ K(Be, {}),
2308
- onClick: pe,
2253
+ /* @__PURE__ */ G(Be, {
2254
+ icon: /* @__PURE__ */ G(Ie, {}),
2255
+ onClick: me,
2309
2256
  testIdAttributes: { name: "case" },
2310
2257
  title: t`Show case type information`
2311
2258
  }),
2312
- e && /* @__PURE__ */ K(We, {
2313
- icon: /* @__PURE__ */ K(m, {}),
2314
- onClick: me,
2259
+ e && /* @__PURE__ */ G(Be, {
2260
+ icon: /* @__PURE__ */ G(m, {}),
2261
+ onClick: he,
2315
2262
  testIdAttributes: { name: "event" },
2316
2263
  title: t`Show event information`
2317
2264
  }),
2318
- /* @__PURE__ */ K(We, {
2319
- icon: /* @__PURE__ */ K(Tt, {}),
2320
- onClick: fe,
2265
+ /* @__PURE__ */ G(Be, {
2266
+ icon: /* @__PURE__ */ G(bt, {}),
2267
+ onClick: pe,
2321
2268
  testIdAttributes: { name: "download" },
2322
2269
  title: t`Download`
2323
2270
  }),
2324
- /* @__PURE__ */ K(Ie, {
2325
- onClose: L,
2326
- open: D
2327
- }),
2328
- /* @__PURE__ */ K(gt, {
2271
+ /* @__PURE__ */ G(Me, {
2329
2272
  onClose: le,
2330
- onReset: he,
2331
- open: O
2273
+ open: te
2332
2274
  }),
2333
- /* @__PURE__ */ K(g, { ref: a }),
2334
- e && /* @__PURE__ */ K(h, { ref: i }),
2335
- /* @__PURE__ */ K(Dt, {
2275
+ /* @__PURE__ */ G(ht, {
2336
2276
  onClose: ue,
2277
+ onReset: L,
2278
+ open: O
2279
+ }),
2280
+ /* @__PURE__ */ G(g, { ref: a }),
2281
+ e && /* @__PURE__ */ G(h, { ref: i }),
2282
+ /* @__PURE__ */ G(St, {
2283
+ onClose: de,
2337
2284
  open: ne
2338
2285
  })
2339
2286
  ] }),
2340
- /* @__PURE__ */ q(N, {
2287
+ /* @__PURE__ */ K(j, {
2341
2288
  sx: {
2342
2289
  display: "grid",
2343
2290
  gridTemplateRows: `${ge ? "max-content " : ""}max-content auto`,
2344
2291
  height: "100%",
2345
- paddingLeft: n.spacing(M.getInstance().config.layout.SIDEBAR_MENU_WIDTH + 1),
2292
+ paddingLeft: n.spacing(A.getInstance().config.layout.SIDEBAR_MENU_WIDTH + 1),
2346
2293
  width: "100%"
2347
2294
  },
2348
2295
  children: [
2349
- ge && /* @__PURE__ */ K(N, {
2296
+ ge && /* @__PURE__ */ G(j, {
2350
2297
  sx: { marginY: n.spacing(1) },
2351
- children: /* @__PURE__ */ q(ae, {
2352
- onClose: I,
2298
+ children: /* @__PURE__ */ K(re, {
2299
+ onClose: ce,
2353
2300
  severity: "warning",
2354
2301
  sx: { width: "100%" },
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
2302
+ children: [/* @__PURE__ */ G(ie, { 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.", {
2303
+ caseTypeName: P.name,
2304
+ maxResultsForCaseType: P.props.read_max_n_cases
2358
2305
  })]
2359
2306
  })
2360
2307
  }),
2361
- /* @__PURE__ */ q(N, {
2308
+ /* @__PURE__ */ K(j, {
2362
2309
  sx: {
2363
2310
  display: "flex",
2364
2311
  justifyContent: "space-between"
2365
2312
  },
2366
- children: [/* @__PURE__ */ K(C, {}), /* @__PURE__ */ K($n, {})]
2313
+ children: [/* @__PURE__ */ G(C, {}), /* @__PURE__ */ G(Yn, {})]
2367
2314
  }),
2368
- /* @__PURE__ */ K(N, { children: /* @__PURE__ */ K(wt, {
2369
- disabled: D || O,
2315
+ /* @__PURE__ */ G(j, { children: /* @__PURE__ */ G(yt, {
2316
+ disabled: te || O,
2370
2317
  ref: r
2371
2318
  }) })
2372
2319
  ]
2373
2320
  }),
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 }),
2382
- _e && /* @__PURE__ */ K(_e, {})
2321
+ /* @__PURE__ */ G(Le, { ref: s }),
2322
+ /* @__PURE__ */ G(w, { ref: p }),
2323
+ /* @__PURE__ */ G(ct, { ref: ee }),
2324
+ /* @__PURE__ */ G(x, { ref: l }),
2325
+ /* @__PURE__ */ G(v, { ref: f }),
2326
+ /* @__PURE__ */ G(y, { ref: S }),
2327
+ /* @__PURE__ */ G(b, { ref: T }),
2328
+ /* @__PURE__ */ G(_, { ref: E }),
2329
+ ve && /* @__PURE__ */ G(ve, {})
2383
2330
  ] });
2384
- }, tr = ({ caseSet: e, children: t }) => {
2385
- let n = z(T), r = H(() => new at({
2331
+ }, Zn = ({ caseSet: e, children: t }) => {
2332
+ let n = R(T), r = V(() => new it({
2386
2333
  caseIds: [],
2387
2334
  origin: null
2388
- }), []), i = H(() => new at(), []), a = H(() => new at(), []), o = B(() => {
2335
+ }), []), i = V(() => new it(), []), a = V(() => new it(), []), o = z(() => {
2389
2336
  r.next({
2390
2337
  caseIds: [],
2391
2338
  origin: null
@@ -2394,9 +2341,9 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2394
2341
  r,
2395
2342
  i,
2396
2343
  a
2397
- ]), s = B((e) => {
2344
+ ]), s = z((e) => {
2398
2345
  n.getState().dashboardGeneralSettings.isHighlightingEnabled && r.next(e);
2399
- }, [r, n]), c = H(() => ({
2346
+ }, [r, n]), c = V(() => ({
2400
2347
  caseSet: e,
2401
2348
  highlight: s,
2402
2349
  highlightSubject: r,
@@ -2411,50 +2358,50 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2411
2358
  a,
2412
2359
  o
2413
2360
  ]);
2414
- return /* @__PURE__ */ K(S, {
2361
+ return /* @__PURE__ */ G(S, {
2415
2362
  value: c,
2416
2363
  children: t
2417
2364
  });
2418
- }, nr = f(({ caseSet: e }) => {
2419
- let t = z(c), n = o(t, (e) => e.dataError), [r, i] = W(null), a = B(() => {
2365
+ }, Qn = f(({ caseSet: e }) => {
2366
+ let t = R(c), n = o(t, (e) => e.dataError), [r, i] = U(null), a = z(() => {
2420
2367
  i(null);
2421
2368
  }, []);
2422
- return V(() => {
2369
+ return B(() => {
2423
2370
  let e = [u.getInstance().addEventListener("openEditCases", (e) => {
2424
2371
  i(e);
2425
2372
  })];
2426
2373
  return () => {
2427
2374
  e.forEach((e) => e());
2428
2375
  };
2429
- }, []), /* @__PURE__ */ K(tr, {
2376
+ }, []), /* @__PURE__ */ G(Zn, {
2430
2377
  caseSet: e,
2431
- children: /* @__PURE__ */ K(N, {
2378
+ children: /* @__PURE__ */ G(j, {
2432
2379
  sx: {
2433
2380
  height: "100%",
2434
2381
  position: "relative",
2435
2382
  width: "100%"
2436
2383
  },
2437
- children: /* @__PURE__ */ K(ke, {
2384
+ children: /* @__PURE__ */ G(Te, {
2438
2385
  error: n,
2439
2386
  isLoading: !1,
2440
- children: r ? /* @__PURE__ */ K(p, {
2387
+ children: r ? /* @__PURE__ */ G(p, {
2441
2388
  cases: r,
2442
2389
  onClose: a
2443
- }) : /* @__PURE__ */ K(er, { caseSet: e })
2390
+ }) : /* @__PURE__ */ G(Xn, { caseSet: e })
2444
2391
  })
2445
2392
  })
2446
2393
  });
2447
- }), rr = ye(F)(({ theme: e }) => ({
2394
+ }), $n = ge(ae)(({ theme: e }) => ({
2448
2395
  marginBottom: e.spacing(.5),
2449
2396
  marginTop: e.spacing(.5)
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(() => {
2397
+ })), er = ({ children: e, expandDisabled: t, isLoading: n, primaryMenu: r, secondaryMenu: a, title: s, warningMessage: l, widgetName: u }) => {
2398
+ let d = _e(), { t: f } = W(), p = R(T), m = R(c), h = R(gt), 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 = z(() => {
2452
2399
  g(_ === h ? null : h);
2453
2400
  }, [
2454
2401
  g,
2455
2402
  _,
2456
2403
  h
2457
- ]), S = B(() => {
2404
+ ]), S = z(() => {
2458
2405
  let { dashboardArrangementConfig: e } = p.getState();
2459
2406
  y({
2460
2407
  ...e,
@@ -2467,12 +2414,12 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2467
2414
  y,
2468
2415
  p,
2469
2416
  h
2470
- ]), C = H(() => {
2471
- if (typeof s == "string") return /* @__PURE__ */ K(ve, {
2417
+ ]), C = V(() => {
2418
+ if (typeof s == "string") return /* @__PURE__ */ G(he, {
2472
2419
  arrow: !0,
2473
2420
  placement: "right",
2474
2421
  title: s,
2475
- children: /* @__PURE__ */ K(R, {
2422
+ children: /* @__PURE__ */ G(L, {
2476
2423
  component: "h2",
2477
2424
  sx: {
2478
2425
  display: "inline-block",
@@ -2487,8 +2434,8 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2487
2434
  children: s
2488
2435
  })
2489
2436
  });
2490
- if (Te(s)) return s;
2491
- if (ct.isMenuItemData(s)) return /* @__PURE__ */ K(Je, {
2437
+ if (xe(s)) return s;
2438
+ if (st.isMenuItemData(s)) return /* @__PURE__ */ G(We, {
2492
2439
  ButtonProps: {
2493
2440
  color: "inherit",
2494
2441
  size: "small",
@@ -2504,13 +2451,13 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2504
2451
  menuItemsData: s,
2505
2452
  showTopLevelTooltip: !0
2506
2453
  });
2507
- }, [d, s]), w = H(() => /* @__PURE__ */ K(N, {
2454
+ }, [d, s]), w = V(() => /* @__PURE__ */ G(j, {
2508
2455
  sx: {
2509
2456
  height: d.spacing(3),
2510
2457
  position: "relative",
2511
2458
  width: "100%"
2512
2459
  },
2513
- children: /* @__PURE__ */ K(N, {
2460
+ children: /* @__PURE__ */ G(j, {
2514
2461
  sx: {
2515
2462
  height: d.spacing(3),
2516
2463
  left: 0,
@@ -2520,31 +2467,31 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2520
2467
  children: C
2521
2468
  })
2522
2469
  }), [d, C]);
2523
- return /* @__PURE__ */ q(N, {
2524
- ...J.createAttributes("DashboardWidget", { "widget-name": u }),
2470
+ return /* @__PURE__ */ K(j, {
2471
+ ...q.createAttributes("DashboardWidget", { "widget-name": u }),
2525
2472
  sx: { height: "100%" },
2526
- children: [/* @__PURE__ */ q(N, {
2473
+ children: [/* @__PURE__ */ K(j, {
2527
2474
  sx: {
2528
2475
  display: "flex",
2529
2476
  height: d.spacing(3),
2530
2477
  justifyContent: "space-between"
2531
2478
  },
2532
- children: [w, /* @__PURE__ */ q(N, {
2479
+ children: [w, /* @__PURE__ */ K(j, {
2533
2480
  sx: { display: "flex" },
2534
- children: [/* @__PURE__ */ q(N, {
2481
+ children: [/* @__PURE__ */ K(j, {
2535
2482
  sx: {
2536
2483
  display: "flex",
2537
2484
  height: `calc(${d.spacing(3)} - 1px)`,
2538
2485
  justifySelf: "right",
2539
2486
  marginTop: "1px"
2540
2487
  },
2541
- children: [r && /* @__PURE__ */ K(j, { menu: r }), r && /* @__PURE__ */ K(rr, {
2488
+ children: [r && /* @__PURE__ */ G(O, { menu: r }), r && /* @__PURE__ */ G($n, {
2542
2489
  "aria-hidden": "true",
2543
2490
  flexItem: !0,
2544
2491
  orientation: "vertical",
2545
2492
  variant: "middle"
2546
2493
  })]
2547
- }), /* @__PURE__ */ q(N, {
2494
+ }), /* @__PURE__ */ K(j, {
2548
2495
  sx: {
2549
2496
  display: "flex",
2550
2497
  height: `calc(${d.spacing(3)} - 1px)`,
@@ -2552,44 +2499,44 @@ var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
2552
2499
  marginTop: "1px"
2553
2500
  },
2554
2501
  children: [
2555
- a && /* @__PURE__ */ K(j, { menu: a }),
2556
- a && /* @__PURE__ */ K(rr, {
2502
+ a && /* @__PURE__ */ G(O, { menu: a }),
2503
+ a && /* @__PURE__ */ G($n, {
2557
2504
  "aria-hidden": "true",
2558
2505
  flexItem: !0,
2559
2506
  orientation: "vertical",
2560
2507
  variant: "middle"
2561
2508
  }),
2562
- v > 1 && /* @__PURE__ */ q(A, {
2509
+ v > 1 && /* @__PURE__ */ K(D, {
2563
2510
  disabled: t,
2564
2511
  label: b ? f`Collapse` : f`Expand`,
2565
2512
  onClick: x,
2566
- children: [b && /* @__PURE__ */ K(ot, {}), !b && /* @__PURE__ */ K(st, {})]
2513
+ children: [b && /* @__PURE__ */ G(at, {}), !b && /* @__PURE__ */ G(ot, {})]
2567
2514
  }),
2568
- !b && /* @__PURE__ */ K(A, {
2515
+ !b && /* @__PURE__ */ G(D, {
2569
2516
  label: f`Remove widget`,
2570
2517
  onClick: S,
2571
2518
  sx: { marginRight: d.spacing(-1) },
2572
- children: /* @__PURE__ */ K(rt, {})
2519
+ children: /* @__PURE__ */ G(nt, {})
2573
2520
  })
2574
2521
  ]
2575
2522
  })]
2576
2523
  })]
2577
- }), /* @__PURE__ */ q(N, {
2524
+ }), /* @__PURE__ */ K(j, {
2578
2525
  sx: {
2579
2526
  height: `calc(100% - ${d.spacing(3)})`,
2580
2527
  position: "relative"
2581
2528
  },
2582
- children: [l && /* @__PURE__ */ K(N, {
2529
+ children: [l && /* @__PURE__ */ G(j, {
2583
2530
  sx: { height: d.spacing(3) },
2584
- children: /* @__PURE__ */ K(re, { warningMessage: l })
2585
- }), /* @__PURE__ */ q(N, {
2531
+ children: /* @__PURE__ */ G(k, { warningMessage: l })
2532
+ }), /* @__PURE__ */ K(j, {
2586
2533
  sx: { height: l ? `calc(100% - ${d.spacing(3)})` : "100%" },
2587
- children: [n && /* @__PURE__ */ K(Ke, { label: f`Loading` }), !n && e]
2534
+ children: [n && /* @__PURE__ */ G(He, { label: f`Loading` }), !n && e]
2588
2535
  })]
2589
2536
  })]
2590
2537
  });
2591
2538
  };
2592
2539
  //#endregion
2593
- export { nr as n, ir as t };
2540
+ export { Qn as n, er as t };
2594
2541
 
2595
2542
  //# sourceMappingURL=Dashboard.js.map