@gen-epix/ui-client-casedb 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/mui.d.ts +1 -1
- package/dist/@types/{ui-casedb.d.ts → ui-client-casedb.d.ts} +1 -1
- package/dist/_chunks/AddCasesToEventDialog.js +74 -74
- package/dist/_chunks/AddCasesToEventDialog.js.map +1 -1
- package/dist/_chunks/CaseContentForm.js +2 -2
- package/dist/_chunks/CaseContentForm.js.map +1 -1
- package/dist/_chunks/CaseDbDownloadUtil.js +40 -35
- package/dist/_chunks/CaseDbDownloadUtil.js.map +1 -1
- package/dist/_chunks/CaseInfoDialog.js +195 -195
- package/dist/_chunks/CaseInfoDialog.js.map +1 -1
- package/dist/_chunks/CaseSetInfoDialog.js +131 -131
- package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
- package/dist/_chunks/CaseTypeInfoDialog.js +63 -61
- package/dist/_chunks/CaseTypeInfoDialog.js.map +1 -1
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js +6 -6
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js.map +1 -1
- package/dist/_chunks/CompletCaseTypeLoader.js +3 -3
- package/dist/_chunks/CompletCaseTypeLoader.js.map +1 -1
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js +1 -1
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js.map +1 -1
- package/dist/_chunks/CustomTabPanel.js.map +1 -1
- package/dist/_chunks/Dashboard.js +399 -386
- package/dist/_chunks/Dashboard.js.map +1 -1
- package/dist/_chunks/DashboardStoreLoader.js +5 -5
- package/dist/_chunks/DashboardStoreLoader.js.map +1 -1
- package/dist/_chunks/DataCollectionAccessInfo.js +21 -21
- package/dist/_chunks/DataCollectionAccessInfo.js.map +1 -1
- package/dist/_chunks/EpiCurveUtil.js +4 -4
- package/dist/_chunks/EpiCurveUtil.js.map +1 -1
- package/dist/_chunks/EpiCurveWidget.js +189 -183
- package/dist/_chunks/EpiCurveWidget.js.map +1 -1
- package/dist/_chunks/FilterUtil.js +103 -101
- package/dist/_chunks/FilterUtil.js.map +1 -1
- package/dist/_chunks/FindSimilarCasesDialog.js +16 -16
- package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
- package/dist/_chunks/FindSimilarCasesUtil.js +9 -9
- package/dist/_chunks/FindSimilarCasesUtil.js.map +1 -1
- package/dist/_chunks/HomePageTrends.js +8 -8
- package/dist/_chunks/HomePageTrends.js.map +1 -1
- package/dist/_chunks/LegendaItem.js +3 -3
- package/dist/_chunks/LegendaItem.js.map +1 -1
- package/dist/_chunks/LineListWidget.js +23 -21
- package/dist/_chunks/LineListWidget.js.map +1 -1
- package/dist/_chunks/PanelSeparator.js +374 -384
- package/dist/_chunks/PanelSeparator.js.map +1 -1
- package/dist/_chunks/Upload.js +222 -207
- package/dist/_chunks/Upload.js.map +1 -1
- package/dist/_chunks/UploadUtil.js +1970 -841
- package/dist/_chunks/UploadUtil.js.map +1 -1
- package/dist/_chunks/UserRightsDialog.js +12 -12
- package/dist/_chunks/UserRightsDialog.js.map +1 -1
- package/dist/_chunks/_MapCache.js +2 -2
- package/dist/_chunks/_baseGet.js +1 -1
- package/dist/_chunks/_baseGet.js.map +1 -1
- package/dist/_chunks/_baseIteratee.js +1 -1
- package/dist/_chunks/_baseIteratee.js.map +1 -1
- package/dist/_chunks/_setToString.js.map +1 -1
- package/dist/_chunks/{chunk-KS7C4IRE.js → chunk-BV7QT456.js} +330 -495
- package/dist/_chunks/chunk-BV7QT456.js.map +1 -0
- package/dist/_chunks/cloneDeep.js +11 -9
- package/dist/_chunks/cloneDeep.js.map +1 -1
- package/dist/_chunks/dashboardStore.js +259 -261
- package/dist/_chunks/dashboardStore.js.map +1 -1
- package/dist/_chunks/esm.js +2900 -2868
- package/dist/_chunks/esm.js.map +1 -1
- package/dist/_chunks/format.js +8 -8
- package/dist/_chunks/format.js.map +1 -1
- package/dist/_chunks/index.esm.js +919 -796
- package/dist/_chunks/index.esm.js.map +1 -1
- package/dist/_chunks/index.module.js +1 -1
- package/dist/_chunks/index.module.js.map +1 -1
- package/dist/_chunks/protectedTokens.js +79 -81
- package/dist/_chunks/protectedTokens.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/round.js +1 -1
- package/dist/_chunks/round.js.map +1 -1
- package/dist/_chunks/shallow.js +2 -2
- package/dist/_chunks/shallow.js.map +1 -1
- package/dist/_chunks/sync.js +198 -161
- package/dist/_chunks/sync.js.map +1 -1
- package/dist/_chunks/toDate.js +1 -1
- package/dist/_chunks/toDate.js.map +1 -1
- package/dist/_chunks/toString.js +1 -1
- package/dist/_chunks/toString.js.map +1 -1
- package/dist/_chunks/useUnit.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +5 -5
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/filters/SelectionFilter.d.ts +2 -2
- package/dist/classes/filters/TreeFilter.d.ts +2 -2
- package/dist/classes/services/DataService/index.js +3 -3
- package/dist/classes/services/DataService/index.js.map +1 -1
- package/dist/classes/services/EventBusService/EventBusService.d.ts +1 -1
- package/dist/classes/services/EventBusService/index.js.map +1 -1
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js +1 -1
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js.map +1 -1
- package/dist/components/app/CaseDbApp/index.js +8 -5
- package/dist/components/app/CaseDbApp/index.js.map +1 -1
- package/dist/components/form/fields/ArrangementEditor/index.js +83 -83
- package/dist/components/form/fields/ArrangementEditor/index.js.map +1 -1
- package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialog.d.ts +2 -2
- package/dist/components/ui/CaseContentFormDialog/CaseContentFormDialog.d.ts +2 -2
- package/dist/components/ui/CaseContentFormDialog/index.js +1 -1
- package/dist/components/ui/CaseContentFormDialog/index.js.map +1 -1
- package/dist/components/ui/CaseInfoDialog/CaseInfoDialog.d.ts +2 -2
- package/dist/components/ui/CaseSetInfoDialog/CaseSetInfoDialog.d.ts +2 -2
- package/dist/components/ui/CaseSummary/index.js +1 -1
- package/dist/components/ui/CaseSummary/index.js.map +1 -1
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialog.d.ts +2 -2
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogContent.d.ts +1 -1
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogWithLoader.d.ts +2 -2
- package/dist/components/ui/ContextMenu/index.js.map +1 -1
- package/dist/components/ui/CreateEventDialog/CreateEventDialog.d.ts +2 -2
- package/dist/components/ui/CreateEventDialog/index.js +9 -9
- package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
- package/dist/components/ui/Dashboard/DashboardDownloadSidebarItem.d.ts +1 -1
- package/dist/components/ui/Dashboard/DashboardSettingsSidebarItem.d.ts +1 -1
- package/dist/components/ui/Dashboard/DashboardWidget.d.ts +1 -1
- package/dist/components/ui/DashboardEditCases/index.js +1 -1
- package/dist/components/ui/DashboardEditCases/index.js.map +1 -1
- package/dist/components/ui/FileSelector/index.js +46 -46
- package/dist/components/ui/FileSelector/index.js.map +1 -1
- package/dist/components/ui/FindSimilarCasesDialog/FindSimilarCasesDialog.d.ts +2 -2
- package/dist/components/ui/Grouping/index.js +50 -50
- package/dist/components/ui/Grouping/index.js.map +1 -1
- package/dist/components/ui/HistogramWidget/index.js +1 -1
- package/dist/components/ui/HistogramWidget/index.js.map +1 -1
- package/dist/components/ui/MapWidget/index.js +7 -3
- package/dist/components/ui/MapWidget/index.js.map +1 -1
- package/dist/components/ui/RemoveCasesFromEventDialog/RemoveCasesFromEventDialog.d.ts +2 -2
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js +6 -6
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js.map +1 -1
- package/dist/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.d.ts +2 -2
- package/dist/components/ui/SequenceDownloadDialog/SequenceDownloadDialog.d.ts +2 -2
- package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
- package/dist/components/ui/SequenceDownloadDialog/index.js.map +1 -1
- package/dist/components/ui/TreeDescription/index.js.map +1 -1
- package/dist/components/ui/TreeWidget/index.js +11 -11
- package/dist/components/ui/TreeWidget/index.js.map +1 -1
- package/dist/components/ui/Upload/UploadCaseResultTable.d.ts +2 -2
- package/dist/components/ui/Upload/UploadEditColumnValuesDialog.d.ts +2 -2
- package/dist/components/ui/UserRightsDialog/UserRightsDialog.d.ts +2 -2
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/UsersEffectiveRightsDetailsDialog.d.ts +2 -2
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js +25 -11
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js.map +1 -1
- package/dist/components/ui/Warning/index.js.map +1 -1
- package/dist/components/ui/WidgetHeaderIconButton/index.js.map +1 -1
- package/dist/components/ui/WidgetMenu/WidgetMenu.d.ts +1 -1
- package/dist/components/ui/WidgetMenu/index.js +2 -2
- package/dist/components/ui/WidgetMenu/index.js.map +1 -1
- package/dist/components/ui/WidgetUnavailable/index.js.map +1 -1
- package/dist/constants/query.d.ts +1 -1
- package/dist/constants/query.js +1 -1
- package/dist/constants/query.js.map +1 -1
- package/dist/context/caseAbac/CaseAbacContext.d.ts +1 -1
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js +3 -3
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js.map +1 -1
- package/dist/dataHooks/useAssemblyProtocolsQuery/useAssemblyProtocolsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseRightsQuery/index.js +2 -2
- package/dist/dataHooks/useCaseRightsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetCategoriesQuery/useCaseSetCategoriesQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseSetRightsQuery/index.js +2 -2
- package/dist/dataHooks/useCaseSetRightsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetStatsQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetStatsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetStatsQuery/useCaseSetStatsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetStatusesQuery/useCaseSetStatusesQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseSetsQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetsQuery/useCaseSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/useCaseTypeSetCategoriesQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/useCaseTypeSetCategoryPurposeQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js +2 -2
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js +3 -3
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetsQuery/useCaseTypeSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js +2 -2
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseTypesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypesQuery/useCaseTypesQuery.d.ts +1 -1
- package/dist/dataHooks/useColSetMembersQuery/index.js +2 -2
- package/dist/dataHooks/useColSetMembersQuery/index.js.map +1 -1
- package/dist/dataHooks/useColSetsQuery/index.js +3 -3
- package/dist/dataHooks/useColSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useColSetsQuery/useColSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useColTypesQuery/index.js.map +1 -1
- package/dist/dataHooks/useColTypesQuery/useColTypesQuery.d.ts +1 -1
- package/dist/dataHooks/useColsQuery/index.js +3 -3
- package/dist/dataHooks/useColsQuery/index.js.map +1 -1
- package/dist/dataHooks/useColsQuery/useColsQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptQuery/index.js +3 -3
- package/dist/dataHooks/useConceptQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptQuery/useConceptQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptRelationTypeQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptRelationTypeQuery/useConceptRelationTypeQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptSetTypeQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptSetTypeQuery/useConceptSetTypeQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptSetsQuery/index.js +3 -3
- package/dist/dataHooks/useConceptSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptSetsQuery/useConceptSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js +2 -2
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js.map +1 -1
- package/dist/dataHooks/useDataCollectionsQuery/index.js +3 -3
- package/dist/dataHooks/useDataCollectionsQuery/index.js.map +1 -1
- package/dist/dataHooks/useDataCollectionsQuery/useDataCollectionsQuery.d.ts +1 -1
- package/dist/dataHooks/useDimTypesQuery/index.js.map +1 -1
- package/dist/dataHooks/useDimTypesQuery/useDimTypesQuery.d.ts +1 -1
- package/dist/dataHooks/useDimsQuery/index.js +3 -3
- package/dist/dataHooks/useDimsQuery/index.js.map +1 -1
- package/dist/dataHooks/useDimsQuery/useDimsQuery.d.ts +1 -1
- package/dist/dataHooks/useDiseasesQuery/index.js +3 -3
- package/dist/dataHooks/useDiseasesQuery/index.js.map +1 -1
- package/dist/dataHooks/useDiseasesQuery/useDiseasesQuery.d.ts +1 -1
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js +3 -3
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js.map +1 -1
- package/dist/dataHooks/useEtiologicalAgentsQuery/useEtiologicalAgentsQuery.d.ts +1 -1
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js +3 -3
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js.map +1 -1
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/useGeneticDistanceProtocolsQuery.d.ts +1 -1
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefColsQuery/index.js +3 -3
- package/dist/dataHooks/useRefColsQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefColsQuery/useRefColsQuery.d.ts +1 -1
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js +2 -2
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefDimsQuery/index.js +3 -3
- package/dist/dataHooks/useRefDimsQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefDimsQuery/useRefDimsQuery.d.ts +1 -1
- package/dist/dataHooks/useRegionQuery/index.js +3 -3
- package/dist/dataHooks/useRegionQuery/index.js.map +1 -1
- package/dist/dataHooks/useRegionQuery/useRegionQuery.d.ts +1 -1
- package/dist/dataHooks/useRegionRelationTypeQuery/index.js.map +1 -1
- package/dist/dataHooks/useRegionRelationTypeQuery/useRegionRelationTypeQuery.d.ts +1 -1
- package/dist/dataHooks/useRegionSetsQuery/index.js +3 -3
- package/dist/dataHooks/useRegionSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useRegionSetsQuery/useRegionSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js +3 -3
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js.map +1 -1
- package/dist/dataHooks/useSequencingProtocolsQuery/useSequencingProtocolsQuery.d.ts +1 -1
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.js.map +1 -1
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/useTreeAlgorithmCodesQuery.d.ts +1 -1
- package/dist/dataHooks/useUnitQuery/useUnit.d.ts +1 -1
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js +3 -3
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js.map +1 -1
- package/dist/dataHooks/useUserEffectiveRightsQuery/useUserEffectiveRightsQuery.d.ts +1 -1
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js.map +1 -1
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js +2 -2
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js.map +1 -1
- package/dist/hooks/useOrganizationCasePolicyNameFactory/useOrganizationCasePolicyNameFactory.d.ts +1 -1
- package/dist/hooks/useUserCasePolicyNameFactory/index.js +3 -3
- package/dist/hooks/useUserCasePolicyNameFactory/index.js.map +1 -1
- package/dist/hooks/useUserCasePolicyNameFactory/useUserCasePolicyNameFactory.d.ts +1 -1
- package/dist/locale/nl.json +1 -1
- package/dist/models/config.d.ts +1 -1
- package/dist/models/dashboard.d.ts +1 -1
- package/dist/models/dashboard.js.map +1 -1
- package/dist/models/theme.d.ts +2 -2
- package/dist/pages/CaseDbUsersAdminPage/index.js +5 -5
- package/dist/pages/CaseDbUsersAdminPage/index.js.map +1 -1
- package/dist/pages/CaseSetCategoryAdminPage/index.js +4 -4
- package/dist/pages/CaseSetCategoryAdminPage/index.js.map +1 -1
- package/dist/pages/CaseSetStatusAdminPage/index.js +4 -4
- package/dist/pages/CaseSetStatusAdminPage/index.js.map +1 -1
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js +4 -4
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js.map +1 -1
- package/dist/pages/CaseTypeSetsAdminPage/index.js +6 -6
- package/dist/pages/CaseTypeSetsAdminPage/index.js.map +1 -1
- package/dist/pages/CaseTypesAdminPage/index.js +5 -5
- package/dist/pages/CaseTypesAdminPage/index.js.map +1 -1
- package/dist/pages/CasesDetailPage/index.js +5 -5
- package/dist/pages/CasesDetailPage/index.js.map +1 -1
- package/dist/pages/CasesPage/index.js +10 -10
- package/dist/pages/CasesPage/index.js.map +1 -1
- package/dist/pages/ColSetsAdminPage/index.js +6 -6
- package/dist/pages/ColSetsAdminPage/index.js.map +1 -1
- package/dist/pages/ColsAdminPage/index.js +5 -5
- package/dist/pages/ColsAdminPage/index.js.map +1 -1
- package/dist/pages/ConceptRelationsAdminPage/index.js +19 -19
- package/dist/pages/ConceptRelationsAdminPage/index.js.map +1 -1
- package/dist/pages/ConceptSetsAdminPage/index.js +5 -5
- package/dist/pages/ConceptSetsAdminPage/index.js.map +1 -1
- package/dist/pages/ConceptsAdminPage/index.js +5 -5
- package/dist/pages/ConceptsAdminPage/index.js.map +1 -1
- package/dist/pages/DataCollectionSetsAdminPage/index.js +12 -12
- package/dist/pages/DataCollectionSetsAdminPage/index.js.map +1 -1
- package/dist/pages/DataCollectionVisualizationPage/index.js +4 -4
- package/dist/pages/DataCollectionVisualizationPage/index.js.map +1 -1
- package/dist/pages/DataCollectionsAdminPage/index.js +4 -4
- package/dist/pages/DataCollectionsAdminPage/index.js.map +1 -1
- package/dist/pages/DimsAdminPage/index.js +6 -6
- package/dist/pages/DimsAdminPage/index.js.map +1 -1
- package/dist/pages/DiseasesAdminPage/index.js +4 -4
- package/dist/pages/DiseasesAdminPage/index.js.map +1 -1
- package/dist/pages/EtiologicalAgentsAdminPage/index.js +4 -4
- package/dist/pages/EtiologicalAgentsAdminPage/index.js.map +1 -1
- package/dist/pages/EtiologiesAdminPage/index.js +3 -3
- package/dist/pages/EtiologiesAdminPage/index.js.map +1 -1
- package/dist/pages/EventsDetailPage/index.js +5 -5
- package/dist/pages/EventsDetailPage/index.js.map +1 -1
- package/dist/pages/EventsPage/index.js +11 -11
- package/dist/pages/EventsPage/index.js.map +1 -1
- package/dist/pages/HomePage/index.js +2 -2
- package/dist/pages/HomePage/index.js.map +1 -1
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/RefColsAdminPage/index.js +7 -7
- package/dist/pages/RefColsAdminPage/index.js.map +1 -1
- package/dist/pages/RefDimsAdminPage/index.js +5 -5
- package/dist/pages/RefDimsAdminPage/index.js.map +1 -1
- package/dist/pages/RegionRelationsAdminPage/index.js +3 -3
- package/dist/pages/RegionRelationsAdminPage/index.js.map +1 -1
- package/dist/pages/RegionSetShapesAdminPage/index.js +4 -4
- package/dist/pages/RegionSetShapesAdminPage/index.js.map +1 -1
- package/dist/pages/RegionSetsAdminPage/index.js +5 -5
- package/dist/pages/RegionSetsAdminPage/index.js.map +1 -1
- package/dist/pages/RegionsAdminPage/index.js +5 -5
- package/dist/pages/RegionsAdminPage/index.js.map +1 -1
- package/dist/pages/TrendsPage/index.js +1 -1
- package/dist/pages/TrendsPage/index.js.map +1 -1
- package/dist/pages/UploadPage/index.js +1 -1
- package/dist/pages/UploadPage/index.js.map +1 -1
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/UserEffectiveRightsAdminPage/index.js +12 -12
- package/dist/pages/UserEffectiveRightsAdminPage/index.js.map +1 -1
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +8 -8
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/routes/adminRoutes.d.ts +1 -1
- package/dist/routes/index.js +11 -8
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/routes.d.ts +1 -1
- package/dist/setup/setup.js +5 -5
- package/dist/setup/setup.js.map +1 -1
- package/dist/stores/dashboardStore/dashboardStore.d.ts +1 -1
- package/dist/stores/uploadStore/index.js +2 -2
- package/dist/stores/uploadStore/index.js.map +1 -1
- package/dist/stores/uploadStore/uploadStore.d.ts +1 -1
- package/dist/stores/userProfileStore/index.js +2 -2
- package/dist/stores/userProfileStore/index.js.map +1 -1
- package/dist/theme/demoTheme/index.js +2 -2
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/dist/utils/CaseDbDataUtil/CaseDbDataUtil.d.ts +1 -1
- package/dist/utils/CaseDbDataUtil/index.js +1 -1
- package/dist/utils/CaseDbDataUtil/index.js.map +1 -1
- package/dist/utils/CaseDbStandardConfigUtil/index.js +2488 -1408
- package/dist/utils/CaseDbStandardConfigUtil/index.js.map +1 -1
- package/dist/utils/CaseDbTableUtil/CaseDbTableUtil.d.ts +1 -1
- package/dist/utils/CaseDbTableUtil/index.js +1 -1
- package/dist/utils/CaseDbTableUtil/index.js.map +1 -1
- package/dist/utils/CaseSelectionUtil/index.js.map +1 -1
- package/dist/utils/CaseTypeFormUtil/CaseTypeFormUtil.d.ts +1 -1
- package/dist/utils/CaseTypeFormUtil/index.js +7 -10
- package/dist/utils/CaseTypeFormUtil/index.js.map +1 -1
- package/dist/utils/CaseTypeUtil/index.js +1 -1
- package/dist/utils/CaseTypeUtil/index.js.map +1 -1
- package/dist/utils/CaseUtil/index.js +3 -3
- package/dist/utils/CaseUtil/index.js.map +1 -1
- package/dist/utils/DashboardUtil/index.js +1 -1
- package/dist/utils/DashboardUtil/index.js.map +1 -1
- package/dist/utils/DataSetUtil/index.js.map +1 -1
- package/dist/utils/FileUtil/index.js +1 -1
- package/dist/utils/FileUtil/index.js.map +1 -1
- package/dist/utils/FilterUtil/FilterUtil.d.ts +2 -2
- package/dist/utils/HistogramUtil/index.js +1 -1
- package/dist/utils/HistogramUtil/index.js.map +1 -1
- package/dist/utils/MapUtil/index.js +1 -1
- package/dist/utils/MapUtil/index.js.map +1 -1
- package/dist/utils/StratificationUtil/index.js +3 -2
- package/dist/utils/StratificationUtil/index.js.map +1 -1
- package/dist/utils/UploadUtil/UploadUtil.d.ts +1 -1
- package/package.json +11 -11
- package/dist/_chunks/chunk-KS7C4IRE.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-router@7.18.
|
|
2
|
+
//#region ../../node_modules/.pnpm/react-router@7.18.3_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/development/chunk-BV7QT456.mjs
|
|
3
3
|
var t = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, n = /^[\\/]{2}/;
|
|
4
4
|
function r(e, t) {
|
|
5
5
|
return t + e.replace(/\\/g, "/");
|
|
@@ -34,26 +34,15 @@ function c(e, t, n = "/") {
|
|
|
34
34
|
function l(e, t, n, r, i) {
|
|
35
35
|
let a = D((typeof t == "string" ? s(t) : t).pathname || "/", n);
|
|
36
36
|
if (a == null) return null;
|
|
37
|
-
let o = i ??
|
|
38
|
-
for (let e = 0; c == null && e < o.length; ++e) c =
|
|
37
|
+
let o = i ?? u(e), c = null, l = ee(a);
|
|
38
|
+
for (let e = 0; c == null && e < o.length; ++e) c = C(o[e], l, r);
|
|
39
39
|
return c;
|
|
40
40
|
}
|
|
41
|
-
function u(e
|
|
42
|
-
let
|
|
43
|
-
return
|
|
44
|
-
id: n.id,
|
|
45
|
-
pathname: r,
|
|
46
|
-
params: i,
|
|
47
|
-
data: t[n.id],
|
|
48
|
-
loaderData: t[n.id],
|
|
49
|
-
handle: n.handle
|
|
50
|
-
};
|
|
41
|
+
function u(e) {
|
|
42
|
+
let t = d(e);
|
|
43
|
+
return p(t), t;
|
|
51
44
|
}
|
|
52
|
-
function d(e) {
|
|
53
|
-
let t = f(e);
|
|
54
|
-
return m(t), t;
|
|
55
|
-
}
|
|
56
|
-
function f(e, t = [], n = [], r = "", a = !1) {
|
|
45
|
+
function d(e, t = [], n = [], r = "", a = !1) {
|
|
57
46
|
let o = (e, o, s = a, c) => {
|
|
58
47
|
let l = {
|
|
59
48
|
relativePath: c === void 0 ? e.path || "" : c,
|
|
@@ -65,12 +54,12 @@ function f(e, t = [], n = [], r = "", a = !1) {
|
|
|
65
54
|
if (!l.relativePath.startsWith(r) && s) return;
|
|
66
55
|
i(l.relativePath.startsWith(r), `Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), l.relativePath = l.relativePath.slice(r.length);
|
|
67
56
|
}
|
|
68
|
-
let u = A([r, l.relativePath]),
|
|
69
|
-
e.children && e.children.length > 0 && (i(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${u}".`),
|
|
57
|
+
let u = A([r, l.relativePath]), f = n.concat(l);
|
|
58
|
+
e.children && e.children.length > 0 && (i(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${u}".`), d(e.children, t, f, u, s)), !(e.path == null && !e.index) && t.push({
|
|
70
59
|
path: u,
|
|
71
|
-
score:
|
|
72
|
-
routesMeta:
|
|
73
|
-
let [n, r] =
|
|
60
|
+
score: x(u, e.index),
|
|
61
|
+
routesMeta: f.map((e, t) => {
|
|
62
|
+
let [n, r] = E(e.relativePath, e.caseSensitive, t === f.length - 1);
|
|
74
63
|
return {
|
|
75
64
|
...e,
|
|
76
65
|
matcher: n,
|
|
@@ -81,37 +70,37 @@ function f(e, t = [], n = [], r = "", a = !1) {
|
|
|
81
70
|
};
|
|
82
71
|
return e.forEach((e, t) => {
|
|
83
72
|
if (e.path === "" || !e.path?.includes("?")) o(e, t);
|
|
84
|
-
else for (let n of
|
|
73
|
+
else for (let n of f(e.path)) o(e, t, !0, n);
|
|
85
74
|
}), t;
|
|
86
75
|
}
|
|
87
|
-
function
|
|
76
|
+
function f(e) {
|
|
88
77
|
let t = e.split("/");
|
|
89
78
|
if (t.length === 0) return [];
|
|
90
79
|
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
91
80
|
if (r.length === 0) return i ? [a, ""] : [a];
|
|
92
|
-
let o =
|
|
81
|
+
let o = f(r.join("/")), s = [];
|
|
93
82
|
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
|
|
94
83
|
}
|
|
95
|
-
function
|
|
96
|
-
e.sort((e, t) => e.score === t.score ?
|
|
84
|
+
function p(e) {
|
|
85
|
+
e.sort((e, t) => e.score === t.score ? S(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
|
|
97
86
|
}
|
|
98
|
-
var
|
|
99
|
-
function
|
|
87
|
+
var m = /^:[\w-]+$/, h = 3, g = 2, _ = 1, v = 10, y = -2, b = (e) => e === "*";
|
|
88
|
+
function x(e, t) {
|
|
100
89
|
let n = e.split("/"), r = n.length;
|
|
101
|
-
return n.some(
|
|
90
|
+
return n.some(b) && (r += y), t && (r += g), n.filter((e) => !b(e)).reduce((e, t) => e + (m.test(t) ? h : t === "" ? _ : v), r);
|
|
102
91
|
}
|
|
103
|
-
function
|
|
92
|
+
function S(e, t) {
|
|
104
93
|
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
|
|
105
94
|
}
|
|
106
|
-
function
|
|
95
|
+
function C(e, t, n = !1) {
|
|
107
96
|
let { routesMeta: r } = e, i = {}, a = "/", o = [];
|
|
108
97
|
for (let e = 0; e < r.length; ++e) {
|
|
109
98
|
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
|
|
110
99
|
path: s.relativePath,
|
|
111
100
|
caseSensitive: s.caseSensitive,
|
|
112
101
|
end: c
|
|
113
|
-
}, d = s.matcher && s.compiledParams ?
|
|
114
|
-
if (!d && c && n && !r[r.length - 1].route.index && (d =
|
|
102
|
+
}, d = s.matcher && s.compiledParams ? T(u, l, s.matcher, s.compiledParams) : w(u, l), f = s.route;
|
|
103
|
+
if (!d && c && n && !r[r.length - 1].route.index && (d = w({
|
|
115
104
|
path: s.relativePath,
|
|
116
105
|
caseSensitive: s.caseSensitive,
|
|
117
106
|
end: !1
|
|
@@ -119,40 +108,40 @@ function w(e, t, n = !1) {
|
|
|
119
108
|
Object.assign(i, d.params), o.push({
|
|
120
109
|
params: i,
|
|
121
110
|
pathname: A([a, d.pathname]),
|
|
122
|
-
pathnameBase:
|
|
111
|
+
pathnameBase: oe(A([a, d.pathnameBase])),
|
|
123
112
|
route: f
|
|
124
113
|
}), d.pathnameBase !== "/" && (a = A([a, d.pathnameBase]));
|
|
125
114
|
}
|
|
126
115
|
return o;
|
|
127
116
|
}
|
|
128
|
-
function
|
|
117
|
+
function w(e, t) {
|
|
129
118
|
typeof e == "string" && (e = {
|
|
130
119
|
path: e,
|
|
131
120
|
caseSensitive: !1,
|
|
132
121
|
end: !0
|
|
133
122
|
});
|
|
134
|
-
let [n, r] =
|
|
135
|
-
return
|
|
123
|
+
let [n, r] = E(e.path, e.caseSensitive, e.end);
|
|
124
|
+
return T(e, t, n, r);
|
|
136
125
|
}
|
|
137
|
-
function
|
|
126
|
+
function T(e, t, n, r) {
|
|
138
127
|
let i = t.match(n);
|
|
139
128
|
if (!i) return null;
|
|
140
|
-
let a = i[0], o = a
|
|
129
|
+
let a = i[0], o = j(a, 1), s = i.slice(1);
|
|
141
130
|
return {
|
|
142
131
|
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
|
|
143
132
|
if (t === "*") {
|
|
144
133
|
let e = s[r] || "";
|
|
145
|
-
o = a.slice(0, a.length - e.length)
|
|
134
|
+
o = j(a.slice(0, a.length - e.length), 1);
|
|
146
135
|
}
|
|
147
136
|
let i = s[r];
|
|
148
|
-
return n && !i ?
|
|
137
|
+
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
|
|
149
138
|
}, {}),
|
|
150
139
|
pathname: a,
|
|
151
140
|
pathnameBase: o,
|
|
152
141
|
pattern: e
|
|
153
142
|
};
|
|
154
143
|
}
|
|
155
|
-
function
|
|
144
|
+
function E(e, t = !1, n = !0) {
|
|
156
145
|
a(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
|
|
157
146
|
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
|
|
158
147
|
if (r.push({
|
|
@@ -166,7 +155,7 @@ function ee(e, t = !1, n = !0) {
|
|
|
166
155
|
}).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
167
156
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
|
|
168
157
|
}
|
|
169
|
-
function
|
|
158
|
+
function ee(e) {
|
|
170
159
|
try {
|
|
171
160
|
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
|
|
172
161
|
} catch (t) {
|
|
@@ -179,12 +168,12 @@ function D(e, t) {
|
|
|
179
168
|
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
180
169
|
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
181
170
|
}
|
|
182
|
-
function
|
|
171
|
+
function te(e, t = "/") {
|
|
183
172
|
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? s(e) : e, a;
|
|
184
|
-
return n ? (n =
|
|
173
|
+
return n ? (n = ae(n), a = n.startsWith("/") || n.startsWith("\\") ? O(n.substring(1), "/") : O(n, t)) : a = t, {
|
|
185
174
|
pathname: a,
|
|
186
|
-
search:
|
|
187
|
-
hash:
|
|
175
|
+
search: se(r),
|
|
176
|
+
hash: ce(i)
|
|
188
177
|
};
|
|
189
178
|
}
|
|
190
179
|
function O(e, t) {
|
|
@@ -193,19 +182,19 @@ function O(e, t) {
|
|
|
193
182
|
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
|
|
194
183
|
}), n.length > 1 ? n.join("/") : "/";
|
|
195
184
|
}
|
|
196
|
-
function
|
|
185
|
+
function k(e, t, n, r) {
|
|
197
186
|
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
198
187
|
}
|
|
199
|
-
function
|
|
188
|
+
function ne(e) {
|
|
200
189
|
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
|
|
201
190
|
}
|
|
202
|
-
function
|
|
203
|
-
let t =
|
|
191
|
+
function re(e) {
|
|
192
|
+
let t = ne(e);
|
|
204
193
|
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
|
|
205
194
|
}
|
|
206
|
-
function
|
|
195
|
+
function ie(e, t, n, r = !1) {
|
|
207
196
|
let a;
|
|
208
|
-
typeof e == "string" ? a = s(e) : (a = { ...e }, i(!a.pathname || !a.pathname.includes("?"),
|
|
197
|
+
typeof e == "string" ? a = s(e) : (a = { ...e }, i(!a.pathname || !a.pathname.includes("?"), k("?", "pathname", "search", a)), i(!a.pathname || !a.pathname.includes("#"), k("#", "pathname", "hash", a)), i(!a.search || !a.search.includes("#"), k("#", "search", "hash", a)));
|
|
209
198
|
let o = e === "" || a.pathname === "", c = o ? "/" : a.pathname, l;
|
|
210
199
|
if (c == null) l = n;
|
|
211
200
|
else {
|
|
@@ -217,22 +206,28 @@ function k(e, t, n, r = !1) {
|
|
|
217
206
|
}
|
|
218
207
|
l = e >= 0 ? t[e] : "/";
|
|
219
208
|
}
|
|
220
|
-
let u =
|
|
209
|
+
let u = te(a, l), d = c && c !== "/" && c.endsWith("/"), f = (o || c === ".") && n.endsWith("/");
|
|
221
210
|
return !u.pathname.endsWith("/") && (d || f) && (u.pathname += "/"), u;
|
|
222
211
|
}
|
|
223
|
-
var
|
|
212
|
+
var ae = (e) => e.replace(/[\\/]{2,}/g, "/"), A = (e) => ae(e.join("/"));
|
|
213
|
+
function j(e, t = 0) {
|
|
214
|
+
let n = e.length;
|
|
215
|
+
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
|
|
216
|
+
return n === e.length ? e : e.slice(0, n);
|
|
217
|
+
}
|
|
218
|
+
var oe = (e) => j(e).replace(/^\/*/, "/"), se = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ce = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, le = class {
|
|
224
219
|
constructor(e, t, n, r = !1) {
|
|
225
220
|
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
|
|
226
221
|
}
|
|
227
222
|
};
|
|
228
|
-
function
|
|
223
|
+
function ue(e) {
|
|
229
224
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
230
225
|
}
|
|
231
|
-
function
|
|
226
|
+
function de(e) {
|
|
232
227
|
return A(e.map((e) => e.route.path).filter(Boolean)) || "/";
|
|
233
228
|
}
|
|
234
|
-
var
|
|
235
|
-
function
|
|
229
|
+
var fe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
230
|
+
function pe(e, i) {
|
|
236
231
|
let o = e;
|
|
237
232
|
if (typeof o != "string" || !t.test(o)) return {
|
|
238
233
|
absoluteURL: void 0,
|
|
@@ -240,7 +235,7 @@ function me(e, i) {
|
|
|
240
235
|
to: o
|
|
241
236
|
};
|
|
242
237
|
let s = o, c = !1;
|
|
243
|
-
if (
|
|
238
|
+
if (fe) try {
|
|
244
239
|
let e = new URL(window.location.href), t = n.test(o) ? new URL(r(o, e.protocol)) : new URL(o), a = D(t.pathname, i);
|
|
245
240
|
t.origin === e.origin && a != null ? o = a + t.search + t.hash : c = !0;
|
|
246
241
|
} catch {
|
|
@@ -253,16 +248,43 @@ function me(e, i) {
|
|
|
253
248
|
};
|
|
254
249
|
}
|
|
255
250
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
256
|
-
var
|
|
251
|
+
var me = new URL("http://localhost");
|
|
252
|
+
function he(e) {
|
|
253
|
+
if (e.createURL) return e.createURL("/");
|
|
254
|
+
try {
|
|
255
|
+
return new URL(e.createHref("/"), me);
|
|
256
|
+
} catch {
|
|
257
|
+
return me;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
function M(e, t) {
|
|
261
|
+
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
|
|
262
|
+
}
|
|
263
|
+
function ge(e, t) {
|
|
264
|
+
if (e.startsWith("//")) return !0;
|
|
265
|
+
let n = t.protocol.toLowerCase();
|
|
266
|
+
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
|
|
267
|
+
}
|
|
268
|
+
function _e(e, t, n, r) {
|
|
269
|
+
let i = null;
|
|
270
|
+
try {
|
|
271
|
+
i = e == null ? null : new URL(e, n);
|
|
272
|
+
} catch {}
|
|
273
|
+
let a = new URL(t, n), o = i != null && !M(i, n), s = !M(a, n);
|
|
274
|
+
if (r === "reject") {
|
|
275
|
+
if (o || s) throw Error("External navigation is not allowed");
|
|
276
|
+
} else if (s && (i == null || !ge(e, i) || !M(i, a))) throw Error("External navigation is not allowed");
|
|
277
|
+
}
|
|
278
|
+
var ve = [
|
|
257
279
|
"POST",
|
|
258
280
|
"PUT",
|
|
259
281
|
"PATCH",
|
|
260
282
|
"DELETE"
|
|
261
283
|
];
|
|
262
|
-
new Set(
|
|
263
|
-
var
|
|
264
|
-
new Set(
|
|
265
|
-
var
|
|
284
|
+
new Set(ve);
|
|
285
|
+
var ye = ["GET", ...ve];
|
|
286
|
+
new Set(ye);
|
|
287
|
+
var be = [
|
|
266
288
|
"about:",
|
|
267
289
|
"blob:",
|
|
268
290
|
"chrome:",
|
|
@@ -274,120 +296,120 @@ var _e = [
|
|
|
274
296
|
"filesystem:",
|
|
275
297
|
"javascript:"
|
|
276
298
|
];
|
|
277
|
-
function
|
|
299
|
+
function xe(e) {
|
|
278
300
|
try {
|
|
279
|
-
return
|
|
301
|
+
return be.includes(new URL(e).protocol);
|
|
280
302
|
} catch {
|
|
281
303
|
return !1;
|
|
282
304
|
}
|
|
283
305
|
}
|
|
284
|
-
var M = e.createContext(null);
|
|
285
|
-
M.displayName = "DataRouter";
|
|
286
306
|
var N = e.createContext(null);
|
|
287
|
-
N.displayName = "
|
|
288
|
-
var ye = e.createContext(!1);
|
|
289
|
-
function be() {
|
|
290
|
-
return e.useContext(ye);
|
|
291
|
-
}
|
|
292
|
-
var xe = e.createContext({ isTransitioning: !1 });
|
|
293
|
-
xe.displayName = "ViewTransition";
|
|
294
|
-
var Se = e.createContext(/* @__PURE__ */ new Map());
|
|
295
|
-
Se.displayName = "Fetchers";
|
|
296
|
-
var Ce = e.createContext(null);
|
|
297
|
-
Ce.displayName = "Await";
|
|
307
|
+
N.displayName = "DataRouter";
|
|
298
308
|
var P = e.createContext(null);
|
|
299
|
-
P.displayName = "
|
|
309
|
+
P.displayName = "DataRouterState";
|
|
310
|
+
var Se = e.createContext(!1);
|
|
311
|
+
function Ce() {
|
|
312
|
+
return e.useContext(Se);
|
|
313
|
+
}
|
|
314
|
+
var we = e.createContext({ isTransitioning: !1 });
|
|
315
|
+
we.displayName = "ViewTransition";
|
|
316
|
+
var Te = e.createContext(/* @__PURE__ */ new Map());
|
|
317
|
+
Te.displayName = "Fetchers";
|
|
318
|
+
var Ee = e.createContext(null);
|
|
319
|
+
Ee.displayName = "Await";
|
|
300
320
|
var F = e.createContext(null);
|
|
301
|
-
F.displayName = "
|
|
302
|
-
var I = e.createContext(
|
|
321
|
+
F.displayName = "Navigation";
|
|
322
|
+
var I = e.createContext(null);
|
|
323
|
+
I.displayName = "Location";
|
|
324
|
+
var L = e.createContext({
|
|
303
325
|
outlet: null,
|
|
304
326
|
matches: [],
|
|
305
327
|
isDataRoute: !1
|
|
306
328
|
});
|
|
307
|
-
|
|
308
|
-
var
|
|
309
|
-
|
|
310
|
-
var
|
|
311
|
-
function
|
|
312
|
-
if (e.startsWith(`${
|
|
329
|
+
L.displayName = "Route";
|
|
330
|
+
var R = e.createContext(null);
|
|
331
|
+
R.displayName = "RouteError";
|
|
332
|
+
var De = "REACT_ROUTER_ERROR", Oe = "REDIRECT", ke = "ROUTE_ERROR_RESPONSE";
|
|
333
|
+
function Ae(e) {
|
|
334
|
+
if (e.startsWith(`${De}:${Oe}:{`)) try {
|
|
313
335
|
let t = JSON.parse(e.slice(28));
|
|
314
336
|
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
|
|
315
337
|
} catch {}
|
|
316
338
|
}
|
|
317
|
-
function
|
|
318
|
-
if (e.startsWith(`${
|
|
339
|
+
function je(e) {
|
|
340
|
+
if (e.startsWith(`${De}:${ke}:{`)) try {
|
|
319
341
|
let t = JSON.parse(e.slice(40));
|
|
320
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new
|
|
342
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new le(t.status, t.statusText, t.data);
|
|
321
343
|
} catch {}
|
|
322
344
|
}
|
|
323
|
-
function
|
|
324
|
-
i(
|
|
325
|
-
let { basename: r, navigator: a } = e.useContext(
|
|
345
|
+
function Me(t, { relative: n } = {}) {
|
|
346
|
+
i(z(), "useHref() may be used only in the context of a <Router> component.");
|
|
347
|
+
let { basename: r, navigator: a } = e.useContext(F), { hash: o, pathname: s, search: c } = V(t, { relative: n }), l = s;
|
|
326
348
|
return r !== "/" && (l = s === "/" ? r : A([r, s])), a.createHref({
|
|
327
349
|
pathname: l,
|
|
328
350
|
search: c,
|
|
329
351
|
hash: o
|
|
330
352
|
});
|
|
331
353
|
}
|
|
332
|
-
function
|
|
333
|
-
return e.useContext(
|
|
334
|
-
}
|
|
335
|
-
function R() {
|
|
336
|
-
return i(L(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(F).location;
|
|
354
|
+
function z() {
|
|
355
|
+
return e.useContext(I) != null;
|
|
337
356
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
e.useContext(P).static || e.useLayoutEffect(t);
|
|
357
|
+
function B() {
|
|
358
|
+
return i(z(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(I).location;
|
|
341
359
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
360
|
+
var Ne = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
361
|
+
function Pe(t) {
|
|
362
|
+
e.useContext(F).static || e.useLayoutEffect(t);
|
|
345
363
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
364
|
+
function Fe() {
|
|
365
|
+
let { isDataRoute: t } = e.useContext(L);
|
|
366
|
+
return t ? Xe() : Ie();
|
|
367
|
+
}
|
|
368
|
+
function Ie() {
|
|
369
|
+
i(z(), "useNavigate() may be used only in the context of a <Router> component.");
|
|
370
|
+
let t = e.useContext(N), { basename: n, navigator: r } = e.useContext(F), { matches: s } = e.useContext(L), { pathname: c } = B(), l = JSON.stringify(re(s)), u = e.useRef(!1);
|
|
371
|
+
return Pe(() => {
|
|
372
|
+
u.current = !0;
|
|
351
373
|
}), e.useCallback((e, i = {}) => {
|
|
352
|
-
if (a(
|
|
374
|
+
if (a(u.current, Ne), !u.current) return;
|
|
353
375
|
if (typeof e == "number") {
|
|
354
376
|
r.go(e);
|
|
355
377
|
return;
|
|
356
378
|
}
|
|
357
|
-
let
|
|
358
|
-
t == null && n !== "/" && (
|
|
379
|
+
let s = ie(e, JSON.parse(l), c, i.relative === "path");
|
|
380
|
+
t == null && n !== "/" && (s.pathname = s.pathname === "/" ? n : A([n, s.pathname])), _e(typeof e == "string" ? e : o(e), r.createHref(s), he(r), "reject"), (i.replace ? r.replace : r.push)(s, i.state, i);
|
|
359
381
|
}, [
|
|
360
382
|
n,
|
|
361
383
|
r,
|
|
384
|
+
l,
|
|
362
385
|
c,
|
|
363
|
-
s,
|
|
364
386
|
t
|
|
365
387
|
]);
|
|
366
388
|
}
|
|
367
389
|
e.createContext(null);
|
|
368
|
-
function
|
|
369
|
-
let { matches: t } = e.useContext(
|
|
390
|
+
function Le() {
|
|
391
|
+
let { matches: t } = e.useContext(L);
|
|
370
392
|
return t[t.length - 1]?.params ?? {};
|
|
371
393
|
}
|
|
372
|
-
function
|
|
373
|
-
let { matches: r } = e.useContext(
|
|
374
|
-
return e.useMemo(() =>
|
|
394
|
+
function V(t, { relative: n } = {}) {
|
|
395
|
+
let { matches: r } = e.useContext(L), { pathname: i } = B(), a = JSON.stringify(re(r));
|
|
396
|
+
return e.useMemo(() => ie(t, JSON.parse(a), i, n === "path"), [
|
|
375
397
|
t,
|
|
376
398
|
a,
|
|
377
399
|
i,
|
|
378
400
|
n
|
|
379
401
|
]);
|
|
380
402
|
}
|
|
381
|
-
function
|
|
382
|
-
i(
|
|
383
|
-
let { navigator: o } = e.useContext(
|
|
403
|
+
function Re(t, n, r) {
|
|
404
|
+
i(z(), "useRoutes() may be used only in the context of a <Router> component.");
|
|
405
|
+
let { navigator: o } = e.useContext(F), { matches: l } = e.useContext(L), u = l[l.length - 1], d = u ? u.params : {}, f = u ? u.pathname : "/", p = u ? u.pathnameBase : "/", m = u && u.route;
|
|
384
406
|
{
|
|
385
407
|
let e = m && m.path || "";
|
|
386
|
-
|
|
408
|
+
Qe(f, !m || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
387
409
|
|
|
388
410
|
Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
|
|
389
411
|
}
|
|
390
|
-
let h =
|
|
412
|
+
let h = B(), g;
|
|
391
413
|
if (n) {
|
|
392
414
|
let e = typeof n == "string" ? s(n) : n;
|
|
393
415
|
i(p === "/" || e.pathname?.startsWith(p), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`), g = e;
|
|
@@ -399,12 +421,12 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
|
|
|
399
421
|
}
|
|
400
422
|
let y = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : c(t, { pathname: v });
|
|
401
423
|
a(m || y != null, `No routes matched location "${g.pathname}${g.search}${g.hash}" `), a(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, `Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
|
|
402
|
-
let b =
|
|
424
|
+
let b = We(y && y.map((e) => Object.assign({}, e, {
|
|
403
425
|
params: Object.assign({}, d, e.params),
|
|
404
426
|
pathname: A([p, o.encodeLocation ? o.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
|
|
405
427
|
pathnameBase: e.pathnameBase === "/" ? p : A([p, o.encodeLocation ? o.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
|
|
406
428
|
})), l, r);
|
|
407
|
-
return n && b ? /* @__PURE__ */ e.createElement(
|
|
429
|
+
return n && b ? /* @__PURE__ */ e.createElement(I.Provider, { value: {
|
|
408
430
|
location: {
|
|
409
431
|
pathname: "/",
|
|
410
432
|
search: "",
|
|
@@ -417,8 +439,8 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
|
|
|
417
439
|
navigationType: "POP"
|
|
418
440
|
} }, b) : b;
|
|
419
441
|
}
|
|
420
|
-
function
|
|
421
|
-
let t =
|
|
442
|
+
function ze() {
|
|
443
|
+
let t = Ye(), n = ue(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
|
|
422
444
|
padding: "0.5rem",
|
|
423
445
|
backgroundColor: i
|
|
424
446
|
}, o = {
|
|
@@ -427,7 +449,7 @@ function Le() {
|
|
|
427
449
|
}, s = null;
|
|
428
450
|
return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
|
|
429
451
|
}
|
|
430
|
-
var
|
|
452
|
+
var Be = /* @__PURE__ */ e.createElement(ze, null), Ve = class extends e.Component {
|
|
431
453
|
constructor(e) {
|
|
432
454
|
super(e), this.state = {
|
|
433
455
|
location: e.location,
|
|
@@ -455,45 +477,47 @@ var Re = /* @__PURE__ */ e.createElement(Le, null), ze = class extends e.Compone
|
|
|
455
477
|
render() {
|
|
456
478
|
let t = this.state.error;
|
|
457
479
|
if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
458
|
-
let e =
|
|
480
|
+
let e = je(t.digest);
|
|
459
481
|
e && (t = e);
|
|
460
482
|
}
|
|
461
|
-
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(
|
|
483
|
+
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(L.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(R.Provider, {
|
|
462
484
|
value: t,
|
|
463
485
|
children: this.props.component
|
|
464
486
|
}));
|
|
465
|
-
return this.context ? /* @__PURE__ */ e.createElement(
|
|
487
|
+
return this.context ? /* @__PURE__ */ e.createElement(He, { error: t }, n) : n;
|
|
466
488
|
}
|
|
467
489
|
};
|
|
468
|
-
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
-
let { basename: r } = e.useContext(
|
|
490
|
+
Ve.contextType = Se;
|
|
491
|
+
var H = /* @__PURE__ */ new WeakMap();
|
|
492
|
+
function He({ children: t, error: n }) {
|
|
493
|
+
let { basename: r, navigator: i } = e.useContext(F);
|
|
472
494
|
if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
|
|
473
|
-
let t =
|
|
495
|
+
let t = Ae(n.digest);
|
|
474
496
|
if (t) {
|
|
475
|
-
let
|
|
476
|
-
if (
|
|
477
|
-
let
|
|
478
|
-
if (
|
|
479
|
-
if (
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
497
|
+
let a = H.get(n);
|
|
498
|
+
if (a) throw a;
|
|
499
|
+
let o = pe(t.location, r), s = o.absoluteURL || o.to;
|
|
500
|
+
if (_e(t.location, s, he(i), "allow-explicit"), xe(s)) throw Error("Invalid redirect location");
|
|
501
|
+
if (fe && !H.get(n)) {
|
|
502
|
+
if (o.isExternal || t.reloadDocument) window.location.href = s;
|
|
503
|
+
else {
|
|
504
|
+
let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(o.to, { replace: t.replace }));
|
|
505
|
+
throw H.set(n, e), e;
|
|
506
|
+
}
|
|
483
507
|
}
|
|
484
508
|
return /* @__PURE__ */ e.createElement("meta", {
|
|
485
509
|
httpEquiv: "refresh",
|
|
486
|
-
content: `0;url=${
|
|
510
|
+
content: `0;url=${s}`
|
|
487
511
|
});
|
|
488
512
|
}
|
|
489
513
|
}
|
|
490
514
|
return t;
|
|
491
515
|
}
|
|
492
|
-
function
|
|
493
|
-
let i = e.useContext(
|
|
494
|
-
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(
|
|
516
|
+
function Ue({ routeContext: t, match: n, children: r }) {
|
|
517
|
+
let i = e.useContext(N);
|
|
518
|
+
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(L.Provider, { value: t }, r);
|
|
495
519
|
}
|
|
496
|
-
function
|
|
520
|
+
function We(t, n = [], r) {
|
|
497
521
|
let a = r?.state;
|
|
498
522
|
if (t == null) {
|
|
499
523
|
if (!a) return null;
|
|
@@ -524,16 +548,16 @@ function He(t, n = [], r) {
|
|
|
524
548
|
u(e, {
|
|
525
549
|
location: a.location,
|
|
526
550
|
params: a.matches?.[0]?.params ?? {},
|
|
527
|
-
pattern:
|
|
551
|
+
pattern: de(a.matches),
|
|
528
552
|
errorInfo: t
|
|
529
553
|
});
|
|
530
554
|
} : void 0;
|
|
531
555
|
return o.reduceRight((t, r, i) => {
|
|
532
556
|
let u, f = !1, p = null, m = null;
|
|
533
|
-
a && (u = s && r.route.id ? s[r.route.id] : void 0, p = r.route.errorElement ||
|
|
557
|
+
a && (u = s && r.route.id ? s[r.route.id] : void 0, p = r.route.errorElement || Be, c && (l < 0 && i === 0 ? (Qe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : l === i && (f = !0, m = r.route.hydrateFallbackElement || null)));
|
|
534
558
|
let h = n.concat(o.slice(0, i + 1)), g = () => {
|
|
535
559
|
let n;
|
|
536
|
-
return n = u ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(
|
|
560
|
+
return n = u ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(Ue, {
|
|
537
561
|
match: r,
|
|
538
562
|
routeContext: {
|
|
539
563
|
outlet: t,
|
|
@@ -543,7 +567,7 @@ function He(t, n = [], r) {
|
|
|
543
567
|
children: n
|
|
544
568
|
});
|
|
545
569
|
};
|
|
546
|
-
return a && (r.route.ErrorBoundary || r.route.errorElement || i === 0) ? /* @__PURE__ */ e.createElement(
|
|
570
|
+
return a && (r.route.ErrorBoundary || r.route.errorElement || i === 0) ? /* @__PURE__ */ e.createElement(Ve, {
|
|
547
571
|
location: a.location,
|
|
548
572
|
revalidation: a.revalidation,
|
|
549
573
|
component: p,
|
|
@@ -558,61 +582,50 @@ function He(t, n = [], r) {
|
|
|
558
582
|
}) : g();
|
|
559
583
|
}, null);
|
|
560
584
|
}
|
|
561
|
-
function
|
|
585
|
+
function U(e) {
|
|
562
586
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
563
587
|
}
|
|
564
|
-
function
|
|
565
|
-
let n = e.useContext(M);
|
|
566
|
-
return i(n, V(t)), n;
|
|
567
|
-
}
|
|
568
|
-
function H(t) {
|
|
588
|
+
function Ge(t) {
|
|
569
589
|
let n = e.useContext(N);
|
|
570
|
-
return i(n,
|
|
571
|
-
}
|
|
572
|
-
function We(t) {
|
|
573
|
-
let n = e.useContext(I);
|
|
574
|
-
return i(n, V(t)), n;
|
|
575
|
-
}
|
|
576
|
-
function U(e) {
|
|
577
|
-
let t = We(e), n = t.matches[t.matches.length - 1];
|
|
578
|
-
return i(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
|
|
590
|
+
return i(n, U(t)), n;
|
|
579
591
|
}
|
|
580
|
-
function
|
|
581
|
-
|
|
592
|
+
function Ke(t) {
|
|
593
|
+
let n = e.useContext(P);
|
|
594
|
+
return i(n, U(t)), n;
|
|
582
595
|
}
|
|
583
|
-
function
|
|
584
|
-
let
|
|
585
|
-
return
|
|
586
|
-
let { matches: e, historyAction: n, ...r } = t.navigation;
|
|
587
|
-
return r;
|
|
588
|
-
}, [t.navigation]);
|
|
596
|
+
function qe(t) {
|
|
597
|
+
let n = e.useContext(L);
|
|
598
|
+
return i(n, U(t)), n;
|
|
589
599
|
}
|
|
590
|
-
function
|
|
591
|
-
let
|
|
592
|
-
return
|
|
600
|
+
function W(e) {
|
|
601
|
+
let t = qe(e), n = t.matches[t.matches.length - 1];
|
|
602
|
+
return i(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
|
|
593
603
|
}
|
|
594
604
|
function Je() {
|
|
595
|
-
|
|
596
|
-
return t === void 0 ? n.errors?.[r] : t;
|
|
605
|
+
return W("useRouteId");
|
|
597
606
|
}
|
|
598
607
|
function Ye() {
|
|
599
|
-
let
|
|
600
|
-
return
|
|
608
|
+
let t = e.useContext(R), n = Ke("useRouteError"), r = W("useRouteError");
|
|
609
|
+
return t === void 0 ? n.errors?.[r] : t;
|
|
610
|
+
}
|
|
611
|
+
function Xe() {
|
|
612
|
+
let { router: t } = Ge("useNavigate"), n = W("useNavigate"), r = e.useRef(!1);
|
|
613
|
+
return Pe(() => {
|
|
601
614
|
r.current = !0;
|
|
602
615
|
}), e.useCallback(async (e, i = {}) => {
|
|
603
|
-
a(r.current,
|
|
616
|
+
a(r.current, Ne), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
|
|
604
617
|
fromRouteId: n,
|
|
605
618
|
...i
|
|
606
619
|
}));
|
|
607
620
|
}, [t, n]);
|
|
608
621
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
!t && !
|
|
622
|
+
var Ze = {};
|
|
623
|
+
function Qe(e, t, n) {
|
|
624
|
+
!t && !Ze[e] && (Ze[e] = !0, a(!1, n));
|
|
612
625
|
}
|
|
613
|
-
e.memo(
|
|
614
|
-
function
|
|
615
|
-
return
|
|
626
|
+
e.memo($e);
|
|
627
|
+
function $e({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
|
|
628
|
+
return Re(e, void 0, {
|
|
616
629
|
manifest: t,
|
|
617
630
|
state: r,
|
|
618
631
|
isStatic: i,
|
|
@@ -620,62 +633,19 @@ function Qe({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError:
|
|
|
620
633
|
future: n
|
|
621
634
|
});
|
|
622
635
|
}
|
|
623
|
-
function $e({ basename: t = "/", children: n = null, location: r, navigationType: o = "POP", navigator: c, static: l = !1, useTransitions: u }) {
|
|
624
|
-
i(!L(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
625
|
-
let d = t.replace(/^\/*/, "/"), f = e.useMemo(() => ({
|
|
626
|
-
basename: d,
|
|
627
|
-
navigator: c,
|
|
628
|
-
static: l,
|
|
629
|
-
useTransitions: u,
|
|
630
|
-
future: {}
|
|
631
|
-
}), [
|
|
632
|
-
d,
|
|
633
|
-
c,
|
|
634
|
-
l,
|
|
635
|
-
u
|
|
636
|
-
]);
|
|
637
|
-
typeof r == "string" && (r = s(r));
|
|
638
|
-
let { pathname: p = "/", search: m = "", hash: h = "", state: g = null, key: _ = "default", mask: v } = r, y = e.useMemo(() => {
|
|
639
|
-
let e = D(p, d);
|
|
640
|
-
return e == null ? null : {
|
|
641
|
-
location: {
|
|
642
|
-
pathname: e,
|
|
643
|
-
search: m,
|
|
644
|
-
hash: h,
|
|
645
|
-
state: g,
|
|
646
|
-
key: _,
|
|
647
|
-
mask: v
|
|
648
|
-
},
|
|
649
|
-
navigationType: o
|
|
650
|
-
};
|
|
651
|
-
}, [
|
|
652
|
-
d,
|
|
653
|
-
p,
|
|
654
|
-
m,
|
|
655
|
-
h,
|
|
656
|
-
g,
|
|
657
|
-
_,
|
|
658
|
-
o,
|
|
659
|
-
v
|
|
660
|
-
]);
|
|
661
|
-
return a(y != null, `<Router basename="${d}"> is not able to match the URL "${p}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`), y == null ? null : /* @__PURE__ */ e.createElement(P.Provider, { value: f }, /* @__PURE__ */ e.createElement(F.Provider, {
|
|
662
|
-
children: n,
|
|
663
|
-
value: y
|
|
664
|
-
}));
|
|
665
|
-
}
|
|
666
636
|
e.Component;
|
|
667
|
-
var
|
|
668
|
-
function
|
|
637
|
+
var G = "get", K = "application/x-www-form-urlencoded";
|
|
638
|
+
function q(e) {
|
|
669
639
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
670
640
|
}
|
|
671
641
|
function et(e) {
|
|
672
|
-
return
|
|
642
|
+
return q(e) && e.tagName.toLowerCase() === "button";
|
|
673
643
|
}
|
|
674
644
|
function tt(e) {
|
|
675
|
-
return
|
|
645
|
+
return q(e) && e.tagName.toLowerCase() === "form";
|
|
676
646
|
}
|
|
677
647
|
function nt(e) {
|
|
678
|
-
return
|
|
648
|
+
return q(e) && e.tagName.toLowerCase() === "input";
|
|
679
649
|
}
|
|
680
650
|
function rt(e) {
|
|
681
651
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
@@ -683,41 +653,41 @@ function rt(e) {
|
|
|
683
653
|
function it(e, t) {
|
|
684
654
|
return e.button === 0 && (!t || t === "_self") && !rt(e);
|
|
685
655
|
}
|
|
686
|
-
var
|
|
656
|
+
var J = null;
|
|
687
657
|
function at() {
|
|
688
|
-
if (
|
|
689
|
-
new FormData(document.createElement("form"), 0),
|
|
658
|
+
if (J === null) try {
|
|
659
|
+
new FormData(document.createElement("form"), 0), J = !1;
|
|
690
660
|
} catch {
|
|
691
|
-
|
|
661
|
+
J = !0;
|
|
692
662
|
}
|
|
693
|
-
return
|
|
663
|
+
return J;
|
|
694
664
|
}
|
|
695
665
|
var ot = /* @__PURE__ */ new Set([
|
|
696
666
|
"application/x-www-form-urlencoded",
|
|
697
667
|
"multipart/form-data",
|
|
698
668
|
"text/plain"
|
|
699
669
|
]);
|
|
700
|
-
function
|
|
701
|
-
return e != null && !ot.has(e) ? (a(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${
|
|
670
|
+
function Y(e) {
|
|
671
|
+
return e != null && !ot.has(e) ? (a(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${K}"`), null) : e;
|
|
702
672
|
}
|
|
703
|
-
function
|
|
673
|
+
function st(e, t) {
|
|
704
674
|
let n, r, i, a, o;
|
|
705
675
|
if (tt(e)) {
|
|
706
676
|
let o = e.getAttribute("action");
|
|
707
|
-
r = o ? D(o, t) : null, n = e.getAttribute("method") ||
|
|
677
|
+
r = o ? D(o, t) : null, n = e.getAttribute("method") || G, i = Y(e.getAttribute("enctype")) || K, a = new FormData(e);
|
|
708
678
|
} else if (et(e) || nt(e) && (e.type === "submit" || e.type === "image")) {
|
|
709
679
|
let o = e.form;
|
|
710
680
|
if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
|
|
711
681
|
let s = e.getAttribute("formaction") || o.getAttribute("action");
|
|
712
|
-
if (r = s ? D(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") ||
|
|
682
|
+
if (r = s ? D(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || G, i = Y(e.getAttribute("formenctype")) || Y(o.getAttribute("enctype")) || K, a = new FormData(o, e), !at()) {
|
|
713
683
|
let { name: t, type: n, value: r } = e;
|
|
714
684
|
if (n === "image") {
|
|
715
685
|
let e = t ? `${t}.` : "";
|
|
716
686
|
a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
|
|
717
687
|
} else t && a.append(t, r);
|
|
718
688
|
}
|
|
719
|
-
} else if (
|
|
720
|
-
else n =
|
|
689
|
+
} else if (q(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
|
|
690
|
+
else n = G, r = null, i = K, o = e;
|
|
721
691
|
return a && i === "text/plain" && (o = a, a = void 0), {
|
|
722
692
|
action: r,
|
|
723
693
|
method: n.toLowerCase(),
|
|
@@ -727,24 +697,14 @@ function ct(e, t) {
|
|
|
727
697
|
};
|
|
728
698
|
}
|
|
729
699
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
730
|
-
|
|
731
|
-
"&": "\\u0026",
|
|
732
|
-
">": "\\u003e",
|
|
733
|
-
"<": "\\u003c",
|
|
734
|
-
"\u2028": "\\u2028",
|
|
735
|
-
"\u2029": "\\u2029"
|
|
736
|
-
}, ut = /[&><\u2028\u2029]/g;
|
|
737
|
-
function dt(e) {
|
|
738
|
-
return e.replace(ut, (e) => lt[e]);
|
|
739
|
-
}
|
|
740
|
-
function ft(e, t) {
|
|
700
|
+
function X(e, t) {
|
|
741
701
|
if (e === !1 || e == null) throw Error(t);
|
|
742
702
|
}
|
|
743
|
-
function
|
|
703
|
+
function ct(e, t, n, r) {
|
|
744
704
|
let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
|
|
745
|
-
return n ? i.pathname.endsWith("/") ?
|
|
705
|
+
return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && D(i.pathname, t) === "/" ? `${j(t)}/_root.${r}` : `${j(i.pathname)}.${r}`, i;
|
|
746
706
|
}
|
|
747
|
-
async function
|
|
707
|
+
async function lt(e, t) {
|
|
748
708
|
if (e.id in t) return t[e.id];
|
|
749
709
|
try {
|
|
750
710
|
let n = await import(
|
|
@@ -757,21 +717,21 @@ async function mt(e, t) {
|
|
|
757
717
|
return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
|
|
758
718
|
}
|
|
759
719
|
}
|
|
760
|
-
function
|
|
720
|
+
function ut(e) {
|
|
761
721
|
return e != null && typeof e.page == "string";
|
|
762
722
|
}
|
|
763
|
-
function
|
|
723
|
+
function dt(e) {
|
|
764
724
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
765
725
|
}
|
|
766
|
-
async function
|
|
767
|
-
return
|
|
726
|
+
async function ft(e, t, n) {
|
|
727
|
+
return _t((await Promise.all(e.map(async (e) => {
|
|
768
728
|
let r = t.routes[e.route.id];
|
|
769
729
|
if (r) {
|
|
770
|
-
let e = await
|
|
730
|
+
let e = await lt(r, n);
|
|
771
731
|
return e.links ? e.links() : [];
|
|
772
732
|
}
|
|
773
733
|
return [];
|
|
774
|
-
}))).flat(1).filter(
|
|
734
|
+
}))).flat(1).filter(dt).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
|
|
775
735
|
...e,
|
|
776
736
|
rel: "prefetch",
|
|
777
737
|
as: "style"
|
|
@@ -780,8 +740,8 @@ async function _t(e, t, n) {
|
|
|
780
740
|
rel: "prefetch"
|
|
781
741
|
}));
|
|
782
742
|
}
|
|
783
|
-
function
|
|
784
|
-
let o = (e, t) => n[t]
|
|
743
|
+
function pt(e, t, n, r, i, a) {
|
|
744
|
+
let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
|
|
785
745
|
return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
|
|
786
746
|
let c = r.routes[t.route.id];
|
|
787
747
|
if (!c || !c.hasLoader) return !1;
|
|
@@ -799,49 +759,49 @@ function vt(e, t, n, r, i, a) {
|
|
|
799
759
|
return !0;
|
|
800
760
|
}) : [];
|
|
801
761
|
}
|
|
802
|
-
function
|
|
803
|
-
return
|
|
762
|
+
function mt(e, t, { includeHydrateFallback: n } = {}) {
|
|
763
|
+
return ht(e.map((e) => {
|
|
804
764
|
let r = t.routes[e.route.id];
|
|
805
765
|
if (!r) return [];
|
|
806
766
|
let i = [r.module];
|
|
807
767
|
return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
|
|
808
768
|
}).flat(1));
|
|
809
769
|
}
|
|
810
|
-
function
|
|
770
|
+
function ht(e) {
|
|
811
771
|
return [...new Set(e)];
|
|
812
772
|
}
|
|
813
|
-
function
|
|
773
|
+
function gt(e) {
|
|
814
774
|
let t = {}, n = Object.keys(e).sort();
|
|
815
775
|
for (let r of n) t[r] = e[r];
|
|
816
776
|
return t;
|
|
817
777
|
}
|
|
818
|
-
function
|
|
778
|
+
function _t(e, t) {
|
|
819
779
|
let n = /* @__PURE__ */ new Set(), r = new Set(t);
|
|
820
780
|
return e.reduce((e, i) => {
|
|
821
|
-
if (t && !
|
|
822
|
-
let a = JSON.stringify(
|
|
781
|
+
if (t && !ut(i) && i.as === "script" && i.href && r.has(i.href)) return e;
|
|
782
|
+
let a = JSON.stringify(gt(i));
|
|
823
783
|
return n.has(a) || (n.add(a), e.push({
|
|
824
784
|
key: a,
|
|
825
785
|
link: i
|
|
826
786
|
})), e;
|
|
827
787
|
}, []);
|
|
828
788
|
}
|
|
829
|
-
function
|
|
830
|
-
let t = e.useContext(M);
|
|
831
|
-
return ft(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
832
|
-
}
|
|
833
|
-
function Ct() {
|
|
789
|
+
function Z() {
|
|
834
790
|
let t = e.useContext(N);
|
|
835
|
-
return
|
|
791
|
+
return X(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
792
|
+
}
|
|
793
|
+
function vt() {
|
|
794
|
+
let t = e.useContext(P);
|
|
795
|
+
return X(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
|
|
836
796
|
}
|
|
837
|
-
var
|
|
838
|
-
|
|
839
|
-
function
|
|
840
|
-
let t = e.useContext(
|
|
841
|
-
return
|
|
797
|
+
var yt = e.createContext(void 0);
|
|
798
|
+
yt.displayName = "FrameworkContext";
|
|
799
|
+
function Q() {
|
|
800
|
+
let t = e.useContext(yt);
|
|
801
|
+
return X(t, "You must render this element inside a <HydratedRouter> element"), t;
|
|
842
802
|
}
|
|
843
|
-
function
|
|
844
|
-
let r = e.useContext(
|
|
803
|
+
function bt(t, n) {
|
|
804
|
+
let r = e.useContext(yt), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
|
|
845
805
|
e.useEffect(() => {
|
|
846
806
|
if (t === "render" && s(!0), t === "viewport") {
|
|
847
807
|
let e = new IntersectionObserver((e) => {
|
|
@@ -872,11 +832,11 @@ function wt(t, n) {
|
|
|
872
832
|
o,
|
|
873
833
|
p,
|
|
874
834
|
{
|
|
875
|
-
onFocus:
|
|
876
|
-
onBlur:
|
|
877
|
-
onMouseEnter:
|
|
878
|
-
onMouseLeave:
|
|
879
|
-
onTouchStart:
|
|
835
|
+
onFocus: $(c, m),
|
|
836
|
+
onBlur: $(l, h),
|
|
837
|
+
onMouseEnter: $(u, m),
|
|
838
|
+
onMouseLeave: $(d, h),
|
|
839
|
+
onTouchStart: $(f, m)
|
|
880
840
|
}
|
|
881
841
|
] : [
|
|
882
842
|
o,
|
|
@@ -888,13 +848,13 @@ function wt(t, n) {
|
|
|
888
848
|
{}
|
|
889
849
|
];
|
|
890
850
|
}
|
|
891
|
-
function
|
|
851
|
+
function $(e, t) {
|
|
892
852
|
return (n) => {
|
|
893
853
|
e && e(n), n.defaultPrevented || t(n);
|
|
894
854
|
};
|
|
895
855
|
}
|
|
896
|
-
function
|
|
897
|
-
let r =
|
|
856
|
+
function xt({ page: t, ...n }) {
|
|
857
|
+
let r = Ce(), { nonce: i } = Q(), { router: a } = Z(), o = e.useMemo(() => c(a.routes, t, a.basename), [
|
|
898
858
|
a.routes,
|
|
899
859
|
t,
|
|
900
860
|
a.basename
|
|
@@ -902,21 +862,21 @@ function Tt({ page: t, ...n }) {
|
|
|
902
862
|
return o ? (n.nonce == null && i && (n = {
|
|
903
863
|
...n,
|
|
904
864
|
nonce: i
|
|
905
|
-
}), r ? /* @__PURE__ */ e.createElement(
|
|
865
|
+
}), r ? /* @__PURE__ */ e.createElement(Ct, {
|
|
906
866
|
page: t,
|
|
907
867
|
matches: o,
|
|
908
868
|
...n
|
|
909
|
-
}) : /* @__PURE__ */ e.createElement(
|
|
869
|
+
}) : /* @__PURE__ */ e.createElement(wt, {
|
|
910
870
|
page: t,
|
|
911
871
|
matches: o,
|
|
912
872
|
...n
|
|
913
873
|
})) : null;
|
|
914
874
|
}
|
|
915
|
-
function
|
|
916
|
-
let { manifest: n, routeModules: r } =
|
|
875
|
+
function St(t) {
|
|
876
|
+
let { manifest: n, routeModules: r } = Q(), [i, a] = e.useState([]);
|
|
917
877
|
return e.useEffect(() => {
|
|
918
878
|
let e = !1;
|
|
919
|
-
return
|
|
879
|
+
return ft(t, n, r).then((t) => {
|
|
920
880
|
e || a(t);
|
|
921
881
|
}), () => {
|
|
922
882
|
e = !0;
|
|
@@ -927,10 +887,10 @@ function Et(t) {
|
|
|
927
887
|
r
|
|
928
888
|
]), i;
|
|
929
889
|
}
|
|
930
|
-
function
|
|
931
|
-
let i =
|
|
890
|
+
function Ct({ page: t, matches: n, ...r }) {
|
|
891
|
+
let i = B(), { future: a } = Q(), { basename: o } = Z(), s = e.useMemo(() => {
|
|
932
892
|
if (t === i.pathname + i.search + i.hash) return [];
|
|
933
|
-
let e =
|
|
893
|
+
let e = ct(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
|
|
934
894
|
for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
|
|
935
895
|
return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
|
|
936
896
|
}, [
|
|
@@ -948,14 +908,14 @@ function Dt({ page: t, matches: n, ...r }) {
|
|
|
948
908
|
...r
|
|
949
909
|
})));
|
|
950
910
|
}
|
|
951
|
-
function
|
|
952
|
-
let i =
|
|
911
|
+
function wt({ page: t, matches: n, ...r }) {
|
|
912
|
+
let i = B(), { future: a, manifest: o, routeModules: s } = Q(), { basename: c } = Z(), { loaderData: l, matches: u } = vt(), d = e.useMemo(() => pt(t, n, u, o, i, "data"), [
|
|
953
913
|
t,
|
|
954
914
|
n,
|
|
955
915
|
u,
|
|
956
916
|
o,
|
|
957
917
|
i
|
|
958
|
-
]), f = e.useMemo(() =>
|
|
918
|
+
]), f = e.useMemo(() => pt(t, n, u, o, i, "assets"), [
|
|
959
919
|
t,
|
|
960
920
|
n,
|
|
961
921
|
u,
|
|
@@ -968,7 +928,7 @@ function Ot({ page: t, matches: n, ...r }) {
|
|
|
968
928
|
let n = o.routes[t.route.id];
|
|
969
929
|
!n || !n.hasLoader || (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
|
|
970
930
|
}), e.size === 0) return [];
|
|
971
|
-
let u =
|
|
931
|
+
let u = ct(t, c, a.v8_trailingSlashAwareDataRequests, "data");
|
|
972
932
|
return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
|
|
973
933
|
}, [
|
|
974
934
|
c,
|
|
@@ -980,7 +940,7 @@ function Ot({ page: t, matches: n, ...r }) {
|
|
|
980
940
|
n,
|
|
981
941
|
t,
|
|
982
942
|
s
|
|
983
|
-
]), m = e.useMemo(() =>
|
|
943
|
+
]), m = e.useMemo(() => mt(f, o), [f, o]), h = St(f);
|
|
984
944
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
985
945
|
key: t,
|
|
986
946
|
rel: "prefetch",
|
|
@@ -999,7 +959,7 @@ function Ot({ page: t, matches: n, ...r }) {
|
|
|
999
959
|
crossOrigin: n.crossOrigin ?? r.crossOrigin
|
|
1000
960
|
})));
|
|
1001
961
|
}
|
|
1002
|
-
function
|
|
962
|
+
function Tt(...e) {
|
|
1003
963
|
return (t) => {
|
|
1004
964
|
e.forEach((e) => {
|
|
1005
965
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
@@ -1007,36 +967,19 @@ function kt(...e) {
|
|
|
1007
967
|
};
|
|
1008
968
|
}
|
|
1009
969
|
e.Component;
|
|
1010
|
-
var
|
|
970
|
+
var Et = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
1011
971
|
try {
|
|
1012
|
-
|
|
972
|
+
Et && (window.__reactRouterVersion = "7.18.3");
|
|
1013
973
|
} catch {}
|
|
1014
|
-
|
|
1015
|
-
let
|
|
1016
|
-
action: r.action,
|
|
1017
|
-
location: r.location
|
|
1018
|
-
}), s = e.useCallback((t) => {
|
|
1019
|
-
i === !1 ? o(t) : e.startTransition(() => o(t));
|
|
1020
|
-
}, [i]);
|
|
1021
|
-
return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement($e, {
|
|
1022
|
-
basename: t,
|
|
1023
|
-
children: n,
|
|
1024
|
-
location: a.location,
|
|
1025
|
-
navigationType: a.action,
|
|
1026
|
-
navigator: r,
|
|
1027
|
-
useTransitions: i
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
jt.displayName = "unstable_HistoryRouter";
|
|
1031
|
-
var Mt = e.forwardRef(function({ onClick: n, discover: r = "render", prefetch: i = "none", relative: a, reloadDocument: o, replace: s, mask: c, state: l, target: u, to: d, preventScrollReset: f, viewTransition: p, defaultShouldRevalidate: m, ...h }, g) {
|
|
1032
|
-
let { basename: _, navigator: v, useTransitions: y } = e.useContext(P), b = typeof d == "string" && t.test(d), x = me(d, _);
|
|
974
|
+
var Dt = e.forwardRef(function({ onClick: n, discover: r = "render", prefetch: i = "none", relative: a, reloadDocument: o, replace: s, mask: c, state: l, target: u, to: d, preventScrollReset: f, viewTransition: p, defaultShouldRevalidate: m, ...h }, g) {
|
|
975
|
+
let { basename: _, navigator: v, useTransitions: y } = e.useContext(F), b = typeof d == "string" && t.test(d), x = pe(d, _);
|
|
1033
976
|
d = x.to;
|
|
1034
|
-
let S =
|
|
977
|
+
let S = Me(d, { relative: a }), C = B(), w = null;
|
|
1035
978
|
if (c) {
|
|
1036
|
-
let e =
|
|
979
|
+
let e = ie(c, [], C.mask ? C.mask.pathname : "/", !0);
|
|
1037
980
|
_ !== "/" && (e.pathname = e.pathname === "/" ? _ : A([_, e.pathname])), w = v.createHref(e);
|
|
1038
981
|
}
|
|
1039
|
-
let [T, E, ee] =
|
|
982
|
+
let [T, E, ee] = bt(i, h), D = Mt(d, {
|
|
1040
983
|
replace: s,
|
|
1041
984
|
mask: c,
|
|
1042
985
|
state: l,
|
|
@@ -1047,23 +990,23 @@ var Mt = e.forwardRef(function({ onClick: n, discover: r = "render", prefetch: i
|
|
|
1047
990
|
defaultShouldRevalidate: m,
|
|
1048
991
|
useTransitions: y
|
|
1049
992
|
});
|
|
1050
|
-
function
|
|
1051
|
-
n && n(e), e.defaultPrevented ||
|
|
993
|
+
function te(e) {
|
|
994
|
+
n && n(e), e.defaultPrevented || D(e);
|
|
1052
995
|
}
|
|
1053
|
-
let
|
|
996
|
+
let O = !(x.isExternal || o), k = /* @__PURE__ */ e.createElement("a", {
|
|
1054
997
|
...h,
|
|
1055
998
|
...ee,
|
|
1056
|
-
href: (
|
|
1057
|
-
onClick:
|
|
1058
|
-
ref:
|
|
999
|
+
href: (O ? w : void 0) || x.absoluteURL || S,
|
|
1000
|
+
onClick: O ? te : n,
|
|
1001
|
+
ref: Tt(g, E),
|
|
1059
1002
|
target: u,
|
|
1060
1003
|
"data-discover": !b && r === "render" ? "true" : void 0
|
|
1061
1004
|
});
|
|
1062
|
-
return T && !b ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
1005
|
+
return T && !b ? /* @__PURE__ */ e.createElement(e.Fragment, null, k, /* @__PURE__ */ e.createElement(xt, { page: S })) : k;
|
|
1063
1006
|
});
|
|
1064
|
-
|
|
1065
|
-
var
|
|
1066
|
-
let d =
|
|
1007
|
+
Dt.displayName = "Link";
|
|
1008
|
+
var Ot = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
|
|
1009
|
+
let d = V(o, { relative: l.relative }), f = B(), p = e.useContext(P), { navigator: m, basename: h } = e.useContext(F), g = p != null && Lt(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
|
|
1067
1010
|
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = D(y, h) || y);
|
|
1068
1011
|
let b = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, x = v === _ || !i && v.startsWith(_) && v.charAt(b) === "/", S = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), C = {
|
|
1069
1012
|
isActive: x,
|
|
@@ -1077,7 +1020,7 @@ var Nt = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
|
|
|
1077
1020
|
g ? "transitioning" : null
|
|
1078
1021
|
].filter(Boolean).join(" ");
|
|
1079
1022
|
let E = typeof a == "function" ? a(C) : a;
|
|
1080
|
-
return /* @__PURE__ */ e.createElement(
|
|
1023
|
+
return /* @__PURE__ */ e.createElement(Dt, {
|
|
1081
1024
|
...l,
|
|
1082
1025
|
"aria-current": w,
|
|
1083
1026
|
className: T,
|
|
@@ -1087,9 +1030,9 @@ var Nt = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
|
|
|
1087
1030
|
viewTransition: s
|
|
1088
1031
|
}, typeof c == "function" ? c(C) : c);
|
|
1089
1032
|
});
|
|
1090
|
-
|
|
1091
|
-
var
|
|
1092
|
-
let { useTransitions: _ } = e.useContext(
|
|
1033
|
+
Ot.displayName = "NavLink";
|
|
1034
|
+
var kt = e.forwardRef(({ discover: n = "render", fetcherKey: r, navigate: i, reloadDocument: a, replace: o, state: s, method: c = G, action: l, onSubmit: u, relative: d, preventScrollReset: f, viewTransition: p, defaultShouldRevalidate: m, ...h }, g) => {
|
|
1035
|
+
let { useTransitions: _ } = e.useContext(F), v = Ft(), y = It(l, { relative: d }), b = c.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && t.test(l);
|
|
1093
1036
|
return /* @__PURE__ */ e.createElement("form", {
|
|
1094
1037
|
ref: g,
|
|
1095
1038
|
method: b,
|
|
@@ -1114,51 +1057,16 @@ var Pt = e.forwardRef(({ discover: n = "render", fetcherKey: r, navigate: i, rel
|
|
|
1114
1057
|
"data-discover": !x && n === "render" ? "true" : void 0
|
|
1115
1058
|
});
|
|
1116
1059
|
});
|
|
1117
|
-
|
|
1118
|
-
function
|
|
1119
|
-
let i = e.useContext(Y), { basename: a } = e.useContext(P), o = R(), s = qe();
|
|
1120
|
-
Gt({
|
|
1121
|
-
getKey: t,
|
|
1122
|
-
storageKey: n
|
|
1123
|
-
});
|
|
1124
|
-
let c = e.useMemo(() => {
|
|
1125
|
-
if (!i || !t) return null;
|
|
1126
|
-
let e = $(o, s, a, t);
|
|
1127
|
-
return e === o.key ? null : e;
|
|
1128
|
-
}, []);
|
|
1129
|
-
if (!i || i.isSpaMode) return null;
|
|
1130
|
-
let l = ((e, t) => {
|
|
1131
|
-
if (!window.history.state || !window.history.state.key) {
|
|
1132
|
-
let e = Math.random().toString(32).slice(2);
|
|
1133
|
-
window.history.replaceState({ key: e }, "");
|
|
1134
|
-
}
|
|
1135
|
-
try {
|
|
1136
|
-
let n = JSON.parse(sessionStorage.getItem(e) || "{}")[t || window.history.state.key];
|
|
1137
|
-
typeof n == "number" && window.scrollTo(0, n);
|
|
1138
|
-
} catch (t) {
|
|
1139
|
-
console.error(t), sessionStorage.removeItem(e);
|
|
1140
|
-
}
|
|
1141
|
-
}).toString();
|
|
1142
|
-
return r.nonce == null && i?.nonce && (r.nonce = i.nonce), /* @__PURE__ */ e.createElement("script", {
|
|
1143
|
-
...r,
|
|
1144
|
-
suppressHydrationWarning: !0,
|
|
1145
|
-
dangerouslySetInnerHTML: { __html: `(${l})(${dt(JSON.stringify(n || Wt))}, ${dt(JSON.stringify(c))})` }
|
|
1146
|
-
});
|
|
1147
|
-
}
|
|
1148
|
-
Ft.displayName = "ScrollRestoration";
|
|
1149
|
-
function It(e) {
|
|
1060
|
+
kt.displayName = "Form";
|
|
1061
|
+
function At(e) {
|
|
1150
1062
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1151
1063
|
}
|
|
1152
|
-
function
|
|
1153
|
-
let n = e.useContext(M);
|
|
1154
|
-
return i(n, It(t)), n;
|
|
1155
|
-
}
|
|
1156
|
-
function Rt(t) {
|
|
1064
|
+
function jt(t) {
|
|
1157
1065
|
let n = e.useContext(N);
|
|
1158
|
-
return i(n,
|
|
1066
|
+
return i(n, At(t)), n;
|
|
1159
1067
|
}
|
|
1160
|
-
function
|
|
1161
|
-
let f =
|
|
1068
|
+
function Mt(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: s, relative: c, viewTransition: l, defaultShouldRevalidate: u, useTransitions: d } = {}) {
|
|
1069
|
+
let f = Fe(), p = B(), m = V(t, { relative: c });
|
|
1162
1070
|
return e.useCallback((h) => {
|
|
1163
1071
|
if (it(h, n)) {
|
|
1164
1072
|
h.preventDefault();
|
|
@@ -1189,20 +1097,23 @@ function zt(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: s
|
|
|
1189
1097
|
d
|
|
1190
1098
|
]);
|
|
1191
1099
|
}
|
|
1192
|
-
var
|
|
1193
|
-
function
|
|
1194
|
-
let { router: t } =
|
|
1100
|
+
var Nt = 0, Pt = () => `__${String(++Nt)}__`;
|
|
1101
|
+
function Ft() {
|
|
1102
|
+
let { router: t } = jt("useSubmit"), { basename: n } = e.useContext(F), r = Je(), i = t.fetch, a = t.navigate;
|
|
1195
1103
|
return e.useCallback(async (e, t = {}) => {
|
|
1196
|
-
let { action: o, method: s, encType: c, formData: l, body: u } =
|
|
1197
|
-
t.navigate === !1
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1104
|
+
let { action: o, method: s, encType: c, formData: l, body: u } = st(e, n);
|
|
1105
|
+
if (t.navigate === !1) {
|
|
1106
|
+
let e = t.fetcherKey || Pt();
|
|
1107
|
+
await i(e, r, t.action || o, {
|
|
1108
|
+
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
1109
|
+
preventScrollReset: t.preventScrollReset,
|
|
1110
|
+
formData: l,
|
|
1111
|
+
body: u,
|
|
1112
|
+
formMethod: t.method || s,
|
|
1113
|
+
formEncType: t.encType || c,
|
|
1114
|
+
flushSync: t.flushSync
|
|
1115
|
+
});
|
|
1116
|
+
} else await a(t.action || o, {
|
|
1206
1117
|
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
1207
1118
|
preventScrollReset: t.preventScrollReset,
|
|
1208
1119
|
formData: l,
|
|
@@ -1222,10 +1133,10 @@ function Ht() {
|
|
|
1222
1133
|
r
|
|
1223
1134
|
]);
|
|
1224
1135
|
}
|
|
1225
|
-
function
|
|
1226
|
-
let { basename: r } = e.useContext(
|
|
1136
|
+
function It(t, { relative: n } = {}) {
|
|
1137
|
+
let { basename: r } = e.useContext(F), a = e.useContext(L);
|
|
1227
1138
|
i(a, "useFormAction must be used inside a RouteContext");
|
|
1228
|
-
let [s] = a.matches.slice(-1), c = { ...
|
|
1139
|
+
let [s] = a.matches.slice(-1), c = { ...V(t || ".", { relative: n }) }, l = B();
|
|
1229
1140
|
if (t == null) {
|
|
1230
1141
|
c.search = l.search;
|
|
1231
1142
|
let e = new URLSearchParams(c.search), t = e.getAll("index");
|
|
@@ -1237,91 +1148,15 @@ function Ut(t, { relative: n } = {}) {
|
|
|
1237
1148
|
}
|
|
1238
1149
|
return (!t || t === ".") && s.route.index && (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (c.pathname = c.pathname === "/" ? r : A([r, c.pathname])), o(c);
|
|
1239
1150
|
}
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
let i = null;
|
|
1243
|
-
return r && (i = r(n === "/" ? e : {
|
|
1244
|
-
...e,
|
|
1245
|
-
pathname: D(e.pathname, n) || e.pathname
|
|
1246
|
-
}, t)), i ??= e.key, i;
|
|
1247
|
-
}
|
|
1248
|
-
function Gt({ getKey: t, storageKey: n } = {}) {
|
|
1249
|
-
let { router: r } = Lt("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: o } = Rt("useScrollRestoration"), { basename: s } = e.useContext(P), c = R(), l = qe(), u = Ke();
|
|
1250
|
-
e.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
1251
|
-
window.history.scrollRestoration = "auto";
|
|
1252
|
-
}), []), Kt(e.useCallback(() => {
|
|
1253
|
-
if (u.state === "idle") {
|
|
1254
|
-
let e = $(c, l, s, t);
|
|
1255
|
-
Q[e] = window.scrollY;
|
|
1256
|
-
}
|
|
1257
|
-
try {
|
|
1258
|
-
sessionStorage.setItem(n || Wt, JSON.stringify(Q));
|
|
1259
|
-
} catch (e) {
|
|
1260
|
-
a(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
|
|
1261
|
-
}
|
|
1262
|
-
window.history.scrollRestoration = "auto";
|
|
1263
|
-
}, [
|
|
1264
|
-
u.state,
|
|
1265
|
-
t,
|
|
1266
|
-
s,
|
|
1267
|
-
c,
|
|
1268
|
-
l,
|
|
1269
|
-
n
|
|
1270
|
-
])), typeof document < "u" && (e.useLayoutEffect(() => {
|
|
1271
|
-
try {
|
|
1272
|
-
let e = sessionStorage.getItem(n || Wt);
|
|
1273
|
-
e && (Q = JSON.parse(e));
|
|
1274
|
-
} catch {}
|
|
1275
|
-
}, [n]), e.useLayoutEffect(() => {
|
|
1276
|
-
let e = r?.enableScrollRestoration(Q, () => window.scrollY, t ? (e, n) => $(e, n, s, t) : void 0);
|
|
1277
|
-
return () => e && e();
|
|
1278
|
-
}, [
|
|
1279
|
-
r,
|
|
1280
|
-
s,
|
|
1281
|
-
t
|
|
1282
|
-
]), e.useLayoutEffect(() => {
|
|
1283
|
-
if (i !== !1) {
|
|
1284
|
-
if (typeof i == "number") {
|
|
1285
|
-
window.scrollTo(0, i);
|
|
1286
|
-
return;
|
|
1287
|
-
}
|
|
1288
|
-
try {
|
|
1289
|
-
if (c.hash) {
|
|
1290
|
-
let e = document.getElementById(decodeURIComponent(c.hash.slice(1)));
|
|
1291
|
-
if (e) {
|
|
1292
|
-
e.scrollIntoView();
|
|
1293
|
-
return;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
} catch {
|
|
1297
|
-
a(!1, `"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
|
|
1298
|
-
}
|
|
1299
|
-
o !== !0 && window.scrollTo(0, 0);
|
|
1300
|
-
}
|
|
1301
|
-
}, [
|
|
1302
|
-
c,
|
|
1303
|
-
i,
|
|
1304
|
-
o
|
|
1305
|
-
]));
|
|
1306
|
-
}
|
|
1307
|
-
function Kt(t, n) {
|
|
1308
|
-
let { capture: r } = n || {};
|
|
1309
|
-
e.useEffect(() => {
|
|
1310
|
-
let e = r == null ? void 0 : { capture: r };
|
|
1311
|
-
return window.addEventListener("pagehide", t, e), () => {
|
|
1312
|
-
window.removeEventListener("pagehide", t, e);
|
|
1313
|
-
};
|
|
1314
|
-
}, [t, r]);
|
|
1315
|
-
}
|
|
1316
|
-
function qt(t, { relative: n } = {}) {
|
|
1317
|
-
let r = e.useContext(xe);
|
|
1151
|
+
function Lt(t, { relative: n } = {}) {
|
|
1152
|
+
let r = e.useContext(we);
|
|
1318
1153
|
i(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
1319
|
-
let { basename: a } =
|
|
1154
|
+
let { basename: a } = jt("useViewTransitionState"), o = V(t, { relative: n });
|
|
1320
1155
|
if (!r.isTransitioning) return !1;
|
|
1321
1156
|
let s = D(r.currentLocation.pathname, a) || r.currentLocation.pathname, c = D(r.nextLocation.pathname, a) || r.nextLocation.pathname;
|
|
1322
|
-
return
|
|
1157
|
+
return w(o.pathname, c) != null || w(o.pathname, s) != null;
|
|
1323
1158
|
}
|
|
1324
1159
|
//#endregion
|
|
1325
|
-
export {
|
|
1160
|
+
export { Le as t };
|
|
1326
1161
|
|
|
1327
|
-
//# sourceMappingURL=chunk-
|
|
1162
|
+
//# sourceMappingURL=chunk-BV7QT456.js.map
|