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