@viswa-test/test-citation 0.0.376 → 0.0.378
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/cjs/features/CognitiveCompare/CitationAnchor.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +1 -1
- package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
- package/dist/cjs/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
- package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
- package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfContainer.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfStyle.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfToolbar.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +2 -0
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +1 -0
- package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/exponential-retry.js +2 -0
- package/dist/cjs/features/RequirementAI/utils/exponential-retry.js.map +1 -0
- package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/service/redlineService.js +1 -1
- package/dist/cjs/utils/tagHelper.js +1 -1
- package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
- package/dist/features/CognitiveCompare/CognitivePopup.js +1 -1
- package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
- package/dist/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
- package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
- package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
- package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
- package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
- package/dist/features/PdfViewer/PdfContainer.js +1 -1
- package/dist/features/PdfViewer/PdfStyle.js +1 -1
- package/dist/features/PdfViewer/PdfToolbar.js +1 -1
- package/dist/features/PdfViewer/PdfViewer.js +1 -1
- package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
- package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +2 -0
- package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +1 -0
- package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/features/RequirementAI/utils/exponential-retry.js +2 -0
- package/dist/features/RequirementAI/utils/exponential-retry.js.map +1 -0
- package/dist/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/redlineService.js +1 -1
- package/dist/types/src/CitationAccordionTest.d.ts +1 -0
- package/dist/types/src/CitationAccordionTest.d.ts.map +1 -0
- package/dist/types/src/MockDeviationSummary.d.ts +1 -0
- package/dist/types/src/MockDeviationSummary.d.ts.map +1 -0
- package/dist/types/src/RedlineEditorTest.d.ts.map +1 -1
- package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +12 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts +11312 -433
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/new-guidelines.mockData.d.ts +33 -0
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/new-guidelines.mockData.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts +14 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +2 -1
- package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +1 -0
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +2 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/types.d.ts +11 -0
- package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +2 -0
- package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfContainer.d.ts +2 -4
- package/dist/types/src/features/PdfViewer/PdfContainer.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfStyle.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +2 -18
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +39 -29
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/reviewBoundaryLexical.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/reviewBoundaryLexical.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts +29 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts +86 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.test.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts +17 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts +23 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts +84 -5439
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +2 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +20 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts +7 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts +15 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts +3 -2
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +3 -2
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +3 -1
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/helpers.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/utils/helpers.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/utils/proccess-stream.utils.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/redlineService.d.ts.map +1 -1
- package/dist/types/src/utils/tagHelper.d.ts +9 -0
- package/dist/types/src/utils/tagHelper.d.ts.map +1 -1
- package/dist/utils/tagHelper.js +1 -1
- package/package.json +1 -1
- package/dist/assests/icons/InfoAlert.js +0 -2
- package/dist/assests/icons/InfoAlert.js.map +0 -1
- package/dist/cjs/assests/icons/InfoAlert.js +0 -2
- package/dist/cjs/assests/icons/InfoAlert.js.map +0 -1
- package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
- package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
- package/dist/cjs/features/ReviewPanel/ReviewPanel.js +0 -2
- package/dist/cjs/features/ReviewPanel/ReviewPanel.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/PageCheck.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/PageCheck.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/RevertCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/helper.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/helper.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js.map +0 -1
- package/dist/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
- package/dist/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
- package/dist/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
- package/dist/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
- package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
- package/dist/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
- package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/infoAlert.js +0 -2
- package/dist/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
- package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
- package/dist/features/ReviewPanel/ReviewPanel.js +0 -2
- package/dist/features/ReviewPanel/ReviewPanel.js.map +0 -1
- package/dist/features/SegmentReviewComponents/BoundaryCard.js +0 -2
- package/dist/features/SegmentReviewComponents/BoundaryCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/CardWrapper.js +0 -2
- package/dist/features/SegmentReviewComponents/CardWrapper.js.map +0 -1
- package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js +0 -2
- package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
- package/dist/features/SegmentReviewComponents/CognitiveIcon.js +0 -2
- package/dist/features/SegmentReviewComponents/CognitiveIcon.js.map +0 -1
- package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js +0 -2
- package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js.map +0 -1
- package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js +0 -2
- package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +0 -1
- package/dist/features/SegmentReviewComponents/LabelCheck.js +0 -2
- package/dist/features/SegmentReviewComponents/LabelCheck.js.map +0 -1
- package/dist/features/SegmentReviewComponents/PageCheck.js +0 -2
- package/dist/features/SegmentReviewComponents/PageCheck.js.map +0 -1
- package/dist/features/SegmentReviewComponents/RevertCard.js +0 -2
- package/dist/features/SegmentReviewComponents/RevertCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
- package/dist/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
- package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
- package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js +0 -2
- package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +0 -1
- package/dist/features/SegmentReviewComponents/ReviewedCard.js +0 -2
- package/dist/features/SegmentReviewComponents/ReviewedCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +0 -2
- package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +0 -1
- package/dist/features/SegmentReviewComponents/helper.js +0 -2
- package/dist/features/SegmentReviewComponents/helper.js.map +0 -1
- package/dist/features/SegmentReviewComponents/reviewStepAdapters.js +0 -2
- package/dist/features/SegmentReviewComponents/reviewStepAdapters.js.map +0 -1
- package/dist/types/src/RedlineApprovalCardTest.d.ts +0 -1
- package/dist/types/src/RedlineApprovalCardTest.d.ts.map +0 -1
- package/dist/types/src/RedlineEditorTest2.d.ts +0 -3
- package/dist/types/src/RedlineEditorTest2.d.ts.map +0 -1
- package/dist/types/src/assests/icons/ChartSplitIcon.d.ts +0 -3
- package/dist/types/src/assests/icons/ChartSplitIcon.d.ts.map +0 -1
- package/dist/types/src/assests/icons/InfoAlert.d.ts +0 -3
- package/dist/types/src/assests/icons/InfoAlert.d.ts.map +0 -1
- package/dist/types/src/commonConstants.d.ts +0 -31103
- package/dist/types/src/commonConstants.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts +0 -2
- package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +0 -128
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +0 -13
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts +0 -59
- package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts +0 -19
- package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts +0 -3
- package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts +0 -77
- package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts +0 -47
- package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts +0 -15
- package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts +0 -3
- package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts +0 -36
- package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts +0 -83
- package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts +0 -26
- package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts +0 -3
- package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts +0 -3
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts +0 -33
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts +0 -7
- package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts +0 -87
- package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +0 -51
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts +0 -37
- package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts +0 -9
- package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +0 -7
- package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts +0 -17
- package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts +0 -33
- package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +0 -123
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts +0 -13
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/helper.d.ts +0 -53
- package/dist/types/src/features/SegmentReviewComponents/helper.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts +0 -2
- package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts +0 -23
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +0 -242
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts +0 -2
- package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__spreadArray as e,__awaiter as n,__generator as t,__assign as i}from"tslib";import{jsxs as r,jsx as a}from"react/jsx-runtime";import{useMemo as o,useState as u,useRef as l,useCallback as d,useEffect as c}from"react";import s from"../PdfViewer.js";import v from"./BoundaryCard.js";import f from"./CardWrapper.js";import g from"./LabelCheck.js";import{extractSegmentReviewData as p}from"./reviewStepAdapters.js";var m=function(e){return{reviewId:e.review.id,segment:e.review.segment,pageNumber:e.pageNumber}};function w(w){var b=this,h=w.pdfUrl,y=w.pdfName,C=w.segments,N=w.pdfViewerProps,P=w.showBadges,x=void 0===P||P,A=w.showResolvedBadges,R=void 0!==A&&A,_=w.autoSelectReviewOnPageChange,F=void 0!==_&&_,S=w.autoAdvanceAfterConfirm,k=void 0===S||S,j=w.badgePreloadPages,E=void 0===j?8:j,M=w.badgeOffsetTop,B=void 0===M?20:M,D=w.badgeOffsetRight,L=void 0===D?8:D,z=w.initialReviewId,I=w.onBoundaryAction,O=w.onLabelAction,q=w.onActiveReviewChange,W=w.onCurrentPageChange,T=w.onActionError,H=w.onAdjustManually,U=w.onCognitiveClick,V=w.className,G=w.style,J=w.viewerStyle,K=w.railStyle,Q=o(function(){return p(C)},[C]),X=Q.boundaryReviews,Y=Q.labelReviews,Z=o(function(){return e(e([],X.map(function(e){var n;return{kind:"boundary",pageNumber:null!==(n=e.metadata.focus_page)&&void 0!==n?n:e.segment.start_page,review:e}}),!0),Y.map(function(e){return{kind:"label",pageNumber:e.segment.start_page,review:e}}),!0).sort(function(e,n){return e.pageNumber-n.pageNumber||e.review.id.localeCompare(n.review.id)})},[X,Y]),$=o(function(){return C.map(function(e){return{title:e.label||e.title,start_page:e.start_page,end_page:e.end_page,page_count:e.end_page-e.start_page+1}})},[C]),ee=u(1),ne=ee[0],te=ee[1],ie=u(null!=z?z:null),re=ie[0],ae=ie[1],oe=u(null),ue=oe[0],le=oe[1],de=u(null),ce=de[0],se=de[1],ve=u(function(){return new Set}),fe=ve[0],ge=ve[1],pe=u(null),me=pe[0],we=pe[1],be=l(0),he=l(new Map),ye=l(null),Ce=l(null),Ne=o(function(){var e;return null!==(e=Z.find(function(e){return e.review.id===re}))&&void 0!==e?e:null},[re,Z]),Pe=d(function(e){be.current+=1,se({pageNumber:e,requestId:be.current})},[]),xe=d(function(e,n){var t;ae(e.review.id),le(null!==(t=null!=n?n:he.current.get(e.review.id))&&void 0!==t?t:null),Pe(e.pageNumber),null==q||q(e.review.id)},[q,Pe]),Ae=d(function(){ae(null),le(null),null==q||q(null)},[q]),Re=d(function(e){var n;if(k){var t=Z.findIndex(function(n){return n.review.id===e}),i=null!==(n=Z.find(function(n,i){return i>t&&n.review.id!==e&&!fe.has(n.review.id)}))&&void 0!==n?n:Z.find(function(n){return n.review.id!==e&&!fe.has(n.review.id)});i?requestAnimationFrame(function(){return xe(i)}):Ae()}else Ae()},[k,Ae,fe,Z,xe]),_e=d(function(e,i,r){return n(b,void 0,void 0,function(){var n,a;return t(this,function(t){switch(t.label){case 0:n=m(e),we(e.review.id),t.label=1;case 1:return t.trys.push([1,6,7,8]),"boundary"!==e.kind?[3,3]:[4,null==I?void 0:I(i,r,n)];case 2:return t.sent(),[3,5];case 3:return[4,null==O?void 0:O(i,r,n)];case 4:t.sent(),t.label=5;case 5:return ge(function(n){var t=new Set(n);return t.add(e.review.id),t}),Re(e.review.id),[3,8];case 6:return a=t.sent(),null==T||T(a,n),[3,8];case 7:return we(null),[7];case 8:return[2]}})})},[T,I,O,Re]);c(function(){re&&!Z.some(function(e){return e.review.id===re})&&Ae()},[re,Ae,Z]),c(function(){if(F){var e=Z.find(function(e){return e.pageNumber===ne&&!fe.has(e.review.id)});e&&e.review.id!==re&&xe(e)}},[re,F,ne,fe,Z,xe]);var Fe=R?Z:Z.filter(function(e){return!fe.has(e.review.id)}),Se=o(function(){return new Map(Z.map(function(e,n){return[e.review.id,n+1]}))},[Z]),ke=o(function(){var e=new Map;Fe.forEach(function(n){var t,i=null!==(t=e.get(n.pageNumber))&&void 0!==t?t:[];i.push(n),e.set(n.pageNumber,i)});var n=new Map;return e.forEach(function(e){e.forEach(function(e,t){return n.set(e.review.id,t)})}),n},[Fe]),je=d(function(e){return{startPage:Math.max(0,e.startPage-E),endPage:Math.min(e.numPages-1,e.endPage+E)}},[E]),Ee=d(function(){var e=ye.current,n=Ce.current;if(e&&n){var t=e.getBoundingClientRect(),i=n.getBoundingClientRect();Fe.forEach(function(e){var r,a=he.current.get(e.review.id);if(a){var o=n.querySelector('[data-testid="core__page-layer-'.concat(e.pageNumber-1,'"]'));if(o){var u=o.getBoundingClientRect(),l=u.bottom>i.top&&u.top<i.bottom,d=null!==(r=ke.get(e.review.id))&&void 0!==r?r:0;a.style.top="".concat(u.top-t.top+B+40*d,"px"),a.style.visibility=l?"visible":"hidden"}else a.style.visibility="hidden"}})}},[B,ke,Fe]);return c(function(){var e=Ce.current;if(e&&x){var n=null,t=function(){null==n&&(n=requestAnimationFrame(function(){n=null,Ee()}))};e.addEventListener("scroll",t,!0),window.addEventListener("resize",t);var i=new MutationObserver(t);i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]});var r="undefined"==typeof ResizeObserver?null:new ResizeObserver(t);return null==r||r.observe(e),t(),function(){null!=n&&cancelAnimationFrame(n),e.removeEventListener("scroll",t,!0),window.removeEventListener("resize",t),i.disconnect(),null==r||r.disconnect()}}},[x,Ee]),r("div",i({ref:ye,className:V,style:i({display:"flex",alignItems:"stretch",gap:12,position:"relative",width:"100%",height:"100%",minWidth:0},G)},{children:[a("div",i({ref:Ce,style:i({flex:1,minWidth:0,height:"100%"},J)},{children:a(s,i({highlightText:[],highlightPages:{},highlightCordinatePages:[],useCoordinates:!1},N,{pdfUrl:h,pdfName:y,segments:$,navigationRequest:ce,setRenderRange:je,onCurrentPageChange:function(e){te(e),Ne&&Ne.pageNumber!==e&&Ae(),null==W||W(e)}}))})),x&&a("aside",i({"aria-label":"Page review badges",style:i({position:"relative",width:112,flex:"0 0 112px",minHeight:0,overflow:"hidden"},K)},{children:Fe.map(function(e){var n,t,o=re===e.review.id,u=fe.has(e.review.id),l=null!==(n=Se.get(e.review.id))&&void 0!==n?n:1,d="".concat(l).concat("boundary"===e.kind?"B":"L");return r("button",i({ref:function(n){n?he.current.set(e.review.id,n):he.current.delete(e.review.id)},type:"button","aria-pressed":o,title:"".concat(e.review.step.type," · Page ").concat(e.pageNumber),onClick:function(n){return xe(e,n.currentTarget)},style:{position:"absolute",top:0,right:L,visibility:"hidden",display:"flex",alignItems:"center",justifyContent:"space-between",gap:4,width:96,minHeight:32,padding:"5px 8px",border:"1px solid ".concat(o?"#5925DC":"#D0D5DD"),borderRadius:16,background:o?"#F4F3FF":"#FFFFFF",color:u?"#98A2B3":o?"#5925DC":"#344054",cursor:"pointer",opacity:u?.65:1,font:"inherit",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)"}},{children:[a("span",i({style:{fontSize:13,fontWeight:600}},{children:d})),a("span",i({style:{fontSize:10}},{children:null!==(t=e.review.step.confidence)&&void 0!==t?t:"—"}))]}),e.review.id)})})),Ne&&ue&&a(f,i({anchorElement:ue,placement:"bottom-end",offset:{top:8}},{children:"boundary"===Ne.kind?a(v,{title:Ne.review.segment.label||Ne.review.segment.title,pageNo:"Page ".concat(Ne.pageNumber),content:Ne.review.step.reason,cognitiveScore:Ne.review.step.confidence,metadata:Ne.review.metadata,confirmDisabled:me===Ne.review.id,onActionConfirm:function(e,n){_e(Ne,e,n)},onAdjustManually:function(){return null==H?void 0:H(m(Ne))},onCognitiveClick:function(){return null==U?void 0:U(m(Ne))},onClose:Ae},Ne.review.id):a(g,{title:Ne.review.metadata.current_label||Ne.review.segment.label||Ne.review.segment.title,pageNo:"Pages ".concat(Ne.review.segment.start_page,"-").concat(Ne.review.segment.end_page),content:Ne.review.step.reason,cognitiveScore:Ne.review.step.confidence,metadata:Ne.review.metadata,confirmDisabled:me===Ne.review.id,onActionConfirm:function(e,n){_e(Ne,e,n)},onAdjustManually:function(){return null==H?void 0:H(m(Ne))},onCognitiveClick:function(){return null==U?void 0:U(m(Ne))},onClose:Ae},Ne.review.id)}))]}))}export{w as default};
|
|
2
|
-
//# sourceMappingURL=SegmentReviewPdfWrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentReviewPdfWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import t from"@mui/material/SvgIcon";function e(e){return o(t,r({},e,{viewBox:"0 0 13 13",sx:r({width:13,height:13},e.sx)},{children:o("path",{d:"M6.33333 3.99996V6.33329M6.33333 8.66663H6.33917M12.1667 6.33329C12.1667 3.11163 9.555 0.499959 6.33333 0.499959C3.11167 0.499959 0.5 3.11163 0.5 6.33329C0.5 9.55495 3.11167 12.1666 6.33333 12.1666C9.555 12.1666 12.1667 9.55495 12.1667 6.33329Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}))}export{e as default};
|
|
2
|
-
//# sourceMappingURL=infoAlert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"infoAlert.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{isBoundaryReviewAction as e}from"./BoundaryCard.js";import{isLabelReviewAction as t}from"./LabelCheck.js";var r=function(e){return"object"==typeof e&&null!==e?e:{}},n=function(e){return"string"==typeof e?e:null},a=function(e){return"number"==typeof e&&Number.isFinite(e)?e:null},u=function(e){return Array.isArray(e)?e.filter(function(e){return"string"==typeof e}):[]},o=function(e){var a=r(e);return{current_label:n(a.current_label),custom_label:n(a.custom_label),group_id:n(a.group_id),user_actions:u(a.user_actions).filter(t)}},i=function(t){var n=[],i=[];return t.forEach(function(t){t.review_steps.forEach(function(c,s){var l;if("Page Boundary Review"===c.type){var f=function(t){var n=r(t);return{focus_page:a(n.focus_page),boundary_margin:a(n.boundary_margin),user_actions:u(n.user_actions).filter(e)}}(c.metadata);n.push({id:"".concat(t.stable_key,":boundary:").concat(null!==(l=f.focus_page)&&void 0!==l?l:s),segment:t,step:c,metadata:f})}"Label Review"===c.type&&i.push({id:"".concat(t.stable_key,":label:").concat(s),segment:t,step:c,metadata:o(c.metadata)})})}),{boundaryReviews:n,labelReviews:i}};export{i as extractSegmentReviewData};
|
|
2
|
-
//# sourceMappingURL=reviewStepAdapters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reviewStepAdapters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useState as r,useRef as n,useEffect as o}from"react";function l(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.filter(Boolean).join(" ")}var d=function(){return t("svg",e({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none"},{children:t("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2"})}))},c=function(){return t("svg",e({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none"},{children:t("path",{d:"M18 15l-6-6-6 6",stroke:"currentColor",strokeWidth:"2"})}))},a=function(){return i("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-maximize2-icon lucide-maximize-2 rp-border"},{children:[t("path",{d:"M15 3h6v6"}),t("path",{d:"m21 3-7 7"}),t("path",{d:"m3 21 7-7"}),t("path",{d:"M9 21H3v-6"})]}))},s=function(){return i("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-minimize2-icon lucide-minimize-2 rp-border"},{children:[t("path",{d:"m14 10 7-7"}),t("path",{d:"M20 10h-6V4"}),t("path",{d:"m3 21 7-7"}),t("path",{d:"M4 14h6v6"})]}))},u=function(){return i("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#87c66b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-circle-check-icon lucide-circle-check"},{children:[t("circle",{cx:"12",cy:"12",r:"10"}),t("path",{d:"m9 12 2 2 4-4"})]}))},h={dark:{"--rp-bg":"#000","--rp-text":"#fff","--rp-active-bg":"#1f2930","--rp-muted":"#8c8c8c","--rp-border":"#434343","--rp-success":"#4ade80"},light:{"--rp-bg":"#fff","--rp-text":"#000","--rp-active-bg":"#e5eef5","--rp-muted":"#8c8c8c","--rp-border":"#434343","--rp-success":"#16a34a"}};function v(r){var n,o,d,c,a,s,h=r.item,v=r.index,m=r.isActive,p=r.status,f=void 0===p?"pending":p,g=r.config,w=r.classes,x=g.textKey,k=void 0===x?"text":x,b=g.showStatusIcon,N=void 0===b||b,C=g.showRightBadge,B=void 0===C||C,M=g.rightBadgeText;return i("div",e({className:l("rp-item",m&&"rp-item--active","reviewed"===f&&"rp-item--reviewed",null===(n=null==w?void 0:w.item)||void 0===n?void 0:n.root,m&&(null===(o=null==w?void 0:w.item)||void 0===o?void 0:o.active),"reviewed"===f&&(null===(d=null==w?void 0:w.item)||void 0===d?void 0:d.reviewed))},{children:[N&&"reviewed"===f&&t("span",e({className:null===(c=null==w?void 0:w.item)||void 0===c?void 0:c.icon},{children:t(u,{})})),t("span",e({className:l("rp-item-text",null===(a=null==w?void 0:w.item)||void 0===a?void 0:a.text)},{children:String(h[k])})),B&&M&&t("span",e({className:l("rp-item-badge",null===(s=null==w?void 0:w.item)||void 0===s?void 0:s.rightBadge)},{children:M(h,v)}))]}))}var m=function(u){var m=u.data,p=u.renderItem,f=u.itemConfig,g=u.classes,w=u.keyExtractor,x=void 0===w?function(e,i){return i.toString()}:w,k=u.activeIndex,b=u.onActiveChange,N=u.expanded,C=u.onExpandedChange,B=u.headerLeftSlot,M=u.footerSlot,I=u.headerRightSlot,S=u.getItemStatus,j=u.theme,y=void 0===j?"dark":j,z=u.className,A=r(0),E=A[0],R=A[1],W=r(!1),V=W[0],H=W[1],K=null!=k?k:E,L=null!=N?N:V,T=n([]),q=function(e){null==b||b(e),void 0===k&&R(e)},D=function(e){null==C||C(e),void 0===N&&H(e)};return o(function(){var e;L&&(null===(e=T.current[K])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"}))},[K,L]),i("div",e({className:l("rp-container",z),style:h[y]},{children:[i("div",e({className:l("rp-header",null==g?void 0:g.header)},{children:[t("div",e({className:"rp-header-left"},{children:B})),I?I({activeIndex:K,total:m.length,setIndex:q,isExpanded:L,setExpanded:D}):i("div",e({className:l("rp-header-right",null==g?void 0:g.headerRight)},{children:[i("span",{children:[K+1," of ",m.length]}),t("button",e({onClick:function(){return q(Math.min(K+1,m.length-1))}},{children:t(d,{})})),t("button",e({onClick:function(){return q(Math.max(K-1,0))}},{children:t(c,{})}))]})),t("button",e({onClick:function(){return D(!L)}},{children:t(L?s:a,{})}))]})),L&&t("div",e({className:l("rp-list",null==g?void 0:g.listWrapper)},{children:m.map(function(i,r){var n=null==S?void 0:S(i,r),o=r===K;return t("div",e({ref:function(e){return T.current[r]=e},onClick:function(){return q(r)}},{children:p?p({item:i,index:r,isActive:o,status:n}):t(v,{item:i,index:r,isActive:o,status:n,config:null!=f?f:{},classes:g})}),x(i,r))})})),M&&t("div",e({className:"rp-footer"},{children:M}))]}))};export{m as ReviewPanel};
|
|
2
|
-
//# sourceMappingURL=ReviewPanel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewPanel.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as i}from"tslib";import{jsx as t,jsxs as o,Fragment as r}from"react/jsx-runtime";import{useMemo as n,useState as l}from"react";import d from"@mui/icons-material/ChevronRight";import a from"@mui/icons-material/Close";import c from"@mui/icons-material/ExpandMore";import s from"@mui/material/Box";import u from"@mui/material/Button";import m from"@mui/material/ButtonBase";import p from"@mui/material/Divider";import h from"@mui/material/IconButton";import g from"@mui/material/Paper";import f from"@mui/material/Radio";import x from"@mui/material/Stack";import b from"@mui/material/TextField";import C from"@mui/material/Typography";import E from"./RevertSummaryNotice.js";import v from"./CognitiveIcon.js";import F from"./CognitiveScoreBadge.js";import S from"../../assests/icons/InfoAlert.js";var y,w=function(e,t){return i([e],Array.isArray(t)?t:null==t?[]:[t],!0)},R="MERGE_ADJACENT";!function(e){e.KEEP="KEEP",e.SPLIT_HERE="SPLIT_HERE",e.MERGE_NEXT="MERGE_NEXT",e.MERGE_PREV="MERGE_PREV",e.MERGE_PREVIOUS="MERGE_PREVIOUS",e.SET_RANGE="SET_RANGE"}(y||(y={}));var A=function(e){return Object.values(y).includes(e)},M=function(e,t,o,r){if(!t||!e)return[];var n=t.additional_decisions,l=Array.isArray(n)?n:n?Object.values(n).flat():[],d=Array.from(new Set(i(i([],t.allowed_decisions,!0),l,!0)));return d.flatMap(function(i){var t=e.focus_page,n=d.find(function(e){return e.toLowerCase().includes("merge")}),l=null!=t&&null!=o&&null!=r&&t===o&&t===r,a=null!=t&&null!=o&&t===o,c=null!=t&&null!=r&&(t===r||t===r+1),s=a||c||!(null!=t&&(!(null!=o&&null!=r)||t>o&&t<r));switch(i){case y.SET_RANGE:return[];case"KEEP":return[{id:i,title:"Keep as is",description:"Keep the current document boundary unchanged."}];case"SPLIT_HERE":return[{id:i,title:"Split to a separate document",description:s?"A valid page inside the document is required to split it.":t?"Start a new document at page ".concat(t,"."):"Create a new document at this boundary.",disabled:s}];case"MERGE_PREV":case"MERGE_NEXT":case"MERGE_PREVIOUS":return i!==n?[]:l?[{id:R,title:"Merge with an adjacent document",description:"Choose to merge with the previous or next document."}]:a?[{id:y.MERGE_PREVIOUS,title:"Merge with previous document",description:"Combine this document with the previous document."}]:c?[{id:y.MERGE_NEXT,title:"Merge with next document",description:"Combine this document with the next document."}]:[{id:R,title:"Merge with an adjacent document",description:"Choose to merge with the previous or next document."}]}return[]})};function I(i){var I=i.headerName,k=void 0===I?"Boundary Check":I,z=i.title,T=i.pageNo,_=i.content,P=i.revertSummary,W=i.cognitiveScore,N=i.config,G=i.metadata,D=i.previousSegmentTitle,B=i.nextSegmentTitle,j=i.selectedIndex,H=i.defaultSelectedIndex,O=void 0===H?null:H,V=i.defaultStartPage,U=i.defaultEndPage,L=i.onSelectionChange,X=i.onConfirm,K=i.onActionConfirm,$=i.onCognitiveClick,q=i.onAdjustManually,J=i.onClose,Y=i.confirmLabel,Q=void 0===Y?"Confirm":Y,Z=i.manualPrompt,ee=void 0===Z?"Didn't find the right option?":Z,ie=i.manualActionLabel,te=void 0===ie?"Adjust Manually":ie,oe=i.cognitiveLabel,re=void 0===oe?"Cognitive Integrity":oe,ne=i.showAdjustManually,le=void 0===ne||ne,de=i.showCognitiveIntegrity,ae=void 0===de||de,ce=i.showCloseButton,se=void 0===ce||ce,ue=i.confirmDisabled,me=void 0!==ue&&ue,pe=i.width,he=void 0===pe?260:pe,ge=i.maxWidth,fe=void 0===ge?260:ge,xe=i.className,be=i.styles,Ce=i.reviewAction,Ee=n(function(){return(null!=N?N:G?M(G,Ce,V,U):[]).filter(function(e){return e.id!==y.SET_RANGE})},[N,U,V,G,Ce]),ve=l(O),Fe=ve[0],Se=ve[1],ye=l(null==V?"":String(V)),we=ye[0],Re=ye[1],Ae=l(null==U?"":String(U)),Me=Ae[0],Ie=Ae[1],ke=l(!1),ze=ke[0],Te=ke[1],_e=l(!1),Pe=_e[0],We=_e[1],Ne=l(null),Ge=Ne[0],De=Ne[1],Be=void 0===j?Fe:j,je=null==Be?void 0:Ee[Be],He=(null==je?void 0:je.id)===R,Oe=null!=D,Ve=null!=B,Ue=function(e){return!0===e.disabled||e.id===y.MERGE_PREV&&!Oe||e.id===y.MERGE_PREVIOUS&&!Oe||e.id===y.MERGE_NEXT&&!Ve||e.id===R&&!Oe&&!Ve},Le=Number(we),Xe=Number(Me),Ke=we.trim().length>0&&Me.trim().length>0&&Number.isInteger(Le)&&Number.isInteger(Xe)&&Le>0&&Xe>0&&Le<=Xe,$e=me||!je||Ue(je)||He&&null==Ge||!X&&!K;return t(g,e({className:xe,elevation:4,sx:w({width:he,maxWidth:fe,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==be?void 0:be.root)},{children:o(x,e({spacing:.75,sx:{p:1}},{children:[o(x,e({direction:"row",alignItems:"center",spacing:.75,sx:null==be?void 0:be.header},{children:[t(S,{color:"error",height:16,width:16}),t(C,e({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:k})),se&&t(h,e({size:"small",onClick:J,disabled:!J,"aria-label":"Close boundary check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:t(a,{sx:{fontSize:17}})}))]})),o(s,{children:[t(C,e({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:z})),null!=T&&t(C,e({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:T})),t(p,{sx:{my:.625}}),null!=P?t(E,{children:P}):null!=_&&t(C,e({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:_}))]}),o(x,e({spacing:.625,role:"radiogroup","aria-label":"Boundary options"},{children:[Ee.map(function(i,r){var n=Be===r,l=Ue(i);return o(g,e({variant:"outlined",sx:w({borderColor:n?"#1976d2":"divider",borderRadius:2,bgcolor:l?"#F8FAFC":"background.paper",overflow:"hidden"},null==be?void 0:be.option)},{children:[o(m,e({role:"radio","aria-checked":n,disabled:me||l,onClick:function(){return function(e,i){me||Ue(i)||(void 0===j&&Se(e),i.id!==R&&De(null),ze&&(Te(!1),We(!1)),null==L||L(e,i))}(r,i)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left"}},{children:[t(f,{checked:n,disabled:me||l,tabIndex:-1,size:"small",sx:{p:.25,mr:.5,"&.Mui-disabled":{color:"#CBD5E1"}}}),o(s,e({sx:{minWidth:0}},{children:[t(C,e({sx:{color:l?"#94A3B8":"text.primary",fontSize:12.5,fontWeight:500}},{children:i.title})),null!=i.description&&t(C,e({sx:{mt:.125,color:l?"#94A3B8":"text.secondary",fontSize:11}},{children:i.description}))]}))]})),n&&i.id===R&&t(x,e({direction:"row",spacing:.75,sx:w({px:.75,pb:.75},null==be?void 0:be.adjacentSelector)},{children:[{direction:"previous",title:null!=D?D:"No Previous document",caption:"← Merge into Previous",available:Oe},{direction:"next",title:null!=B?B:"No Next document",caption:"Merge into Next →",available:Ve}].map(function(i){var r=Ge===i.direction;return o(x,e({sx:{flex:1,minWidth:0}},{children:[t(m,e({disabled:me||!i.available,onClick:function(){return De(i.direction)},"aria-pressed":r,sx:{width:"100%",minWidth:0,minHeight:46,alignItems:"flex-start",justifyContent:"flex-start",p:.625,border:"1px solid",borderColor:r?"#7F56D9":"#D0D5DD",borderRadius:1.5,bgcolor:r?"#E0E7FF":"background.paper",color:r?"#7F56D9":i.available?"text.primary":"#98A2B3",textAlign:"left","&.Mui-disabled":{color:"#98A2B3",bgcolor:"#F8FAFC"}}},{children:t(C,e({sx:{color:"inherit",fontSize:11,fontWeight:500,lineHeight:1.25,overflowWrap:"anywhere"}},{children:i.title}))})),t(C,e({sx:{mt:.5,color:r?"#5925DC":"text.secondary",fontSize:9.5,lineHeight:1.2,whiteSpace:"nowrap",textAlign:"next"===i.direction?"right":"left"}},{children:i.caption}))]}),i.direction)})}))]}),i.id)}),He&&null!=Ge&&o(x,e({direction:"row",alignItems:"flex-start",spacing:.625,sx:w({p:.75,border:"1px solid #FCA5A5",borderRadius:1.5,bgcolor:"#FEF2F2"},null==be?void 0:be.impactWarning)},{children:[t(S,{color:"error",height:14,width:14,sx:{mt:.125}}),o(C,e({sx:{color:"#DC2626",fontSize:10.5,lineHeight:1.4}},{children:["This will impact the ",Ge," document. Its content and page range will change."]}))]})),t(u,e({variant:"contained",fullWidth:!0,disabled:$e,onClick:function(){if(!$e&&null!=Be&&je){var i=He?"previous"===Ge?y.MERGE_PREVIOUS:y.MERGE_NEXT:je.id,t=He?e(e({},je),{id:i}):je,o={selectedIndex:Be,option:t,metadata:G};null==X||X(Be,t,o),K&&A(i)&&K(i,o)}},sx:w({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==be?void 0:be.confirmButton)},{children:Q}))]})),le&&o(x,e({spacing:.625,sx:null==be?void 0:be.manualSection},{children:[o(m,e({disabled:me,onClick:function(){var e=!ze;Te(e),We(!1),e&&(void 0===j&&Se(null),null==q||q())},"aria-expanded":ze,sx:{width:"100%",justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[t(s,{children:t(C,e({sx:{color:"text.primary",fontSize:12,fontWeight:600}},{children:ee}))}),t(c,{sx:{color:"text.secondary",fontSize:16,transform:ze?"rotate(180deg)":"none",transition:"transform 150ms ease"}})]})),ze&&!Pe&&o(s,e({sx:{pt:.5,fontFamily:'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif'}},{children:[o(s,e({sx:{display:"grid",gridTemplateColumns:"1fr 1fr",columnGap:"8px",mb:"4px"}},{children:[t(C,e({sx:{fontSize:"10.5px",fontWeight:400,lineHeight:"14px",color:"#57697E",margin:0}},{children:"Starts"})),t(C,e({sx:{fontSize:"10.5px",fontWeight:400,lineHeight:"14px",color:"#57697E",margin:0}},{children:"Ends"}))]})),o(s,e({sx:{display:"grid",gridTemplateColumns:"1fr 1fr",columnGap:"8px",mb:"4px"}},{children:[t(b,{size:"small",type:"text",value:we,disabled:me,onChange:function(e){var i=e.target.value;/^\d*$/.test(i)&&Re(i)},inputProps:{inputMode:"numeric",pattern:"[0-9]*"},sx:{"& .MuiOutlinedInput-root":{height:"30px",backgroundColor:"#FFFFFF","& fieldset":{borderColor:"#C3CFDC",borderWidth:"1px",borderRadius:"6px"},"&:hover fieldset":{borderColor:"#C3CFDC"},"&.Mui-focused fieldset":{borderColor:"#9488F6",borderWidth:"1px"}},"& .MuiOutlinedInput-input":{fontSize:"12px",fontWeight:400,lineHeight:"1",color:"#34445A",padding:"0 10px",height:"30px"}}}),t(b,{size:"small",type:"text",value:Me,disabled:me,error:we.trim().length>0&&Me.trim().length>0&&Le>Xe,onChange:function(e){var i=e.target.value;/^\d*$/.test(i)&&Ie(i)},inputProps:{inputMode:"numeric",pattern:"[0-9]*"},sx:{"& .MuiOutlinedInput-root":{height:"30px",backgroundColor:"#FFFFFF","& fieldset":{borderColor:"#C3CFDC",borderWidth:"1px",borderRadius:"6px"},"&:hover fieldset":{borderColor:"#C3CFDC"},"&.Mui-focused fieldset":{borderColor:"#9488F6",borderWidth:"1px"}},"& .MuiOutlinedInput-input":{fontSize:"12px",fontWeight:400,lineHeight:"1",color:"#34445A",padding:"0 10px",height:"30px"}}})]})),t(s,{children:t(u,e({onClick:function(){Ke&&We(!0)},disabled:me||!Ke,sx:{height:"30px",padding:"0 12px",display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",backgroundColor:"#FFFFFF",border:"1px solid #8E80F3",borderRadius:"6px",fontFamily:'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif',fontSize:"12px",fontWeight:600,lineHeight:"1",color:"#4A24CF",outline:"none",cursor:"pointer",textTransform:"none",transition:"all 150ms ease-in-out","&:hover":Ke?{backgroundColor:"#FAF9FF",borderColor:"#7F6FF0"}:{},"&:active":Ke?{transform:"translateY(1px)"}:{},"&.Mui-disabled":{backgroundColor:"#FFFFFF",borderColor:"#C3CFDC",color:"#A0ABBE",cursor:"not-allowed"}}},{children:"Apply"}))}),t(s,{sx:{width:"100%",height:"1px",marginTop:"8px",backgroundColor:"#EEF0F2",border:"0"}})]})),ze&&Pe&&o(x,e({spacing:.75,sx:w({p:.75,borderRadius:1.5,bgcolor:"#FFF7ED"},null==be?void 0:be.manualConfirmation)},{children:[o(x,e({direction:"row",alignItems:"center",spacing:.5},{children:[t(S,{color:"warning",height:14,width:14}),t(C,e({sx:{color:"#EA580C",fontSize:11,fontWeight:600}},{children:"Confirm this change?"}))]})),o(C,e({sx:{color:"text.secondary",fontSize:10.5,lineHeight:1.4}},{children:["Pages ",Le,"-",Xe," will become part of ",z,", including pages from other documents in this range."]})),o(x,e({direction:"row",spacing:.75},{children:[t(u,e({variant:"outlined",fullWidth:!0,onClick:function(){return We(!1)},sx:{minHeight:28,borderRadius:1.5,fontSize:11,textTransform:"none"}},{children:"Cancel"})),t(u,e({variant:"contained",fullWidth:!0,disabled:me||!X,onClick:function(){if(Ke&&X){var e={id:y.SET_RANGE,title:te};X(-1,e,{selectedIndex:-1,option:e,startPage:Le,endPage:Xe,metadata:G})}},sx:{minHeight:28,borderRadius:1.5,bgcolor:"#EA580C",fontSize:11,textTransform:"none","&:hover":{bgcolor:"#C2410C"}}},{children:"Confirm"}))]}))]}))]})),t(x,e({spacing:.625,sx:null==be?void 0:be.footer},{children:ae&&o(r,{children:[t(p,{}),o(m,e({onClick:$,disabled:!$,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:$?"pointer":"not-allowed"}},{children:[o(x,e({direction:"row",alignItems:"center",spacing:1},{children:[t(v,{sx:{color:"text.secondary"}}),t(C,e({sx:{color:"text.primary",fontSize:12}},{children:re}))]})),o(x,e({direction:"row",alignItems:"center",spacing:.5},{children:[t(F,{score:W}),t(d,{sx:{color:"text.secondary"}})]}))]}))]})}))]}))}))}export{y as BoundaryReviewActionEnum,M as createBoundaryCardOptions,I as default,A as isBoundaryReviewAction};
|
|
2
|
-
//# sourceMappingURL=BoundaryCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BoundaryCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as n}from"react/jsx-runtime";import{useState as t,useRef as i,useLayoutEffect as o}from"react";import l from"@mui/material/Box";import r from"@mui/material/Popper";function a(a){var d,u,c=a.anchorRef,s=a.anchorElement,m=a.children,f=a.className,v=a.offset,h=void 0===v?{}:v,p=a.placement,x=void 0===p?"bottom-start":p,w=a.width,b=a.maxWidth;a.customStyles;var g=a.fallbackMaxHeightVh,z=void 0===g?85:g,y=a.heightBuffer,E=void 0===y?100:y,R=t(null),W=R[0],A=R[1],H=t(!0),O=H[0],S=H[1],B=t(null),F=B[0],L=B[1],M=t(null),C=M[0],I=M[1],N=i(null);return o(function(){var e,n=null!==(e=null!=s?s:null==c?void 0:c.current)&&void 0!==e?e:null;A(function(e){return e===n?e:n})},[s,c]),o(function(){if(W){var e=null,n=function(){var n,t,i=W.getBoundingClientRect(),o=null!==(t=null===(n=window.visualViewport)||void 0===n?void 0:n.height)&&void 0!==t?t:window.innerHeight;S(W.isConnected&&"hidden"!==W.style.visibility),L(Math.max(0,window.innerWidth-i.left-8)),I(Math.max(0,o-i.top-2*i.height)),null!=e&&cancelAnimationFrame(e),e=requestAnimationFrame(function(){var n;e=null,null===(n=N.current)||void 0===n||n.update()})},t=new MutationObserver(n);t.observe(W,{attributes:!0,attributeFilter:["style","class"]});var i="undefined"==typeof ResizeObserver?null:new ResizeObserver(n);return null==i||i.observe(W),window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),n(),function(){t.disconnect(),null==i||i.disconnect(),window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0),null!=e&&cancelAnimationFrame(e)}}S(!1)},[W]),n(r,e({open:Boolean(W)&&O,anchorEl:W,popperRef:N,placement:x,className:f,popperOptions:{strategy:"fixed"},modifiers:[{name:"offset",options:{offset:[null!==(d=h.left)&&void 0!==d?d:0,null!==(u=h.top)&&void 0!==u?u:0]}},{name:"flip",enabled:!1},{name:"preventOverflow",options:{mainAxis:!1,altAxis:!0,tether:!1}}],sx:{zIndex:function(e){return e.zIndex.tooltip},width:w,maxWidth:null==F?b:"min(".concat("number"==typeof b?"".concat(b,"px"):null!=b?b:"100vw",", ").concat(F,"px)"),minWidth:0,height:"fit-content",maxHeight:null==C?"calc(".concat(z,"vh - 10px)"):"".concat(C-E,"px"),alignSelf:"flex-start",flex:"0 0 auto",overflowX:"hidden",overflowY:"auto",borderRadius:2,boxShadow:function(e){return e.shadows[4]},boxSizing:"border-box"}},{children:n(l,e({sx:{width:"100%",maxWidth:"100%",minWidth:0,height:"fit-content",minHeight:0,maxHeight:null==C?"calc(".concat(z,"vh - 10px)"):"".concat(C-E,"px"),overflowX:"hidden",overflowY:"auto",pointerEvents:"auto",boxSizing:"border-box"}},{children:m}))}))}export{a as default};
|
|
2
|
-
//# sourceMappingURL=CardWrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as r}from"react/jsx-runtime";function o(o){return r("svg",t({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r("path",{d:"M8.9375 1.4375V0.5M11.3996 2.10041L12.0625 1.4375M12.0689 4.5625H13.0064M12.9691 7.375C12.6556 10.5333 9.99084 13 6.75 13C3.29822 13 0.5 10.2018 0.5 6.75C0.5 3.50916 2.96667 0.844437 6.125 0.53086M6.75 4.25H9.25V6.75M9.0123 4.25C7.54083 6.32975 5.11648 7.6875 2.375 7.6875C1.74819 7.6875 1.13795 7.61652 0.551889 7.48216",stroke:"#16A34A","stroke-linecap":"round","stroke-linejoin":"round"})}))}export{o as default};
|
|
2
|
-
//# sourceMappingURL=ChartBreakoutCircle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartBreakoutCircle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as C}from"tslib";import{jsxs as e,jsx as t}from"react/jsx-runtime";import i from"@mui/material/SvgIcon";function r(r){return e(i,C({},r,{viewBox:"0 0 12 17",sx:C({width:12,height:17},r.sx)},{children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.778549 6.35498C0.947509 6.06234 1.14047 5.78701 1.35448 5.53127L1.05841 6.77432C0.87679 7.48466 0.80378 8.17502 1.05378 8.73356C1.09106 8.81682 1.13466 8.8951 1.18403 8.96801C1.17505 9.11859 1.17346 9.27007 1.17938 9.42164C1.21133 10.2394 1.46064 11.0339 1.90165 11.7232C2.34265 12.4126 2.95942 12.9719 3.68845 13.3437C3.78702 13.3948 3.86973 13.4719 3.92758 13.5667C3.98544 13.6614 4.01623 13.7702 4.01664 13.8814V16.3427C4.01664 16.422 4.00103 16.5004 3.97071 16.5736C3.94039 16.6468 3.89595 16.7133 3.83993 16.7693C3.78391 16.8253 3.71741 16.8698 3.64421 16.9001C3.57102 16.9305 3.49257 16.946 3.41335 16.946C3.33412 16.946 3.25567 16.9305 3.18248 16.9001C3.10928 16.8698 3.04278 16.8253 2.98676 16.7693C2.93074 16.7133 2.8863 16.6468 2.85598 16.5736C2.82567 16.5004 2.81006 16.422 2.81006 16.3427V14.2366C1.50675 13.4505 0.563809 12.1847 0.18393 10.7109C-0.195948 9.23705 0.017555 7.67304 0.778549 6.35498ZM2.5956 4.4202C2.58489 4.46583 2.57238 4.51587 2.55818 4.57051L2.10596 6.46709C2.4519 6.00902 2.88178 5.61795 3.37484 5.31587C3.45372 5.26755 3.53389 5.2217 3.61524 5.17836L3.91437 4.02581C3.94069 3.92848 3.96334 3.83471 3.98223 3.74482C3.4887 3.90843 3.02287 4.13636 2.5956 4.4202ZM4.97997 3.50929C4.95187 3.76277 4.89721 4.01844 4.83146 4.26296L4.70096 4.7659C5.02368 4.68809 5.35523 4.64508 5.68997 4.63852C6.50816 4.62249 7.31584 4.82482 8.02986 5.22467C8.74387 5.62452 9.33837 6.20745 9.75227 6.91343C10.1661 7.61942 10.3843 8.42296 10.3845 9.24135V13.029C10.3845 13.1201 10.3483 13.2075 10.2838 13.272C10.2193 13.3365 10.132 13.3726 10.0408 13.3726H8.14698C7.98698 13.3726 7.83353 13.4362 7.72039 13.5493C7.60726 13.6625 7.5437 13.816 7.5437 13.9759V16.3427C7.5437 16.5028 7.60726 16.6562 7.72039 16.7693C7.83353 16.8825 7.98698 16.946 8.14698 16.946C8.30699 16.946 8.46043 16.8825 8.57357 16.7693C8.6867 16.6562 8.75027 16.5028 8.75027 16.3427V14.5792H10.0408C10.2444 14.5792 10.446 14.5391 10.634 14.4612C10.8221 14.3833 10.993 14.2691 11.137 14.1252C11.2809 13.9812 11.3951 13.8103 11.473 13.6223C11.551 13.4342 11.591 13.2326 11.591 13.029V9.24224C11.5909 8.20964 11.3155 7.1957 10.7933 6.30483C10.271 5.41397 9.5209 4.67834 8.61996 4.17369C7.50563 3.55832 6.22659 3.32916 4.97997 3.50929ZM3.31096 7.17824C3.06416 7.47379 2.86777 7.81154 2.73281 8.17818C2.67346 8.33942 2.62681 8.50407 2.59287 8.67068C2.96541 8.66305 3.3259 8.58961 4.09408 7.98043L4.4813 7.65806C4.62698 7.53143 4.68583 7.33671 4.65268 7.14949L4.63322 7.06982C4.53815 6.83998 4.24287 6.77137 4.02738 6.89566C3.80462 7.02416 3.56339 7.12021 3.31096 7.17824ZM5.50956 6.70762C5.39307 6.42581 5.2101 6.22391 4.9955 6.09139C5.4636 5.96152 5.95753 5.9332 6.44355 6.01261C7.21223 6.13821 7.9139 6.52554 8.4298 7.10905C8.7773 7.50191 8.68077 8.0666 8.32362 8.38802C7.27342 9.33691 5.53306 10.5666 3.80331 11.0251C3.36315 11.141 2.88052 10.9286 2.71933 10.4749C2.62076 10.1971 2.55967 9.90972 2.53604 9.62C2.82204 9.61857 3.17908 9.5971 3.63183 9.39587C4.05727 9.20681 4.51985 8.88082 5.10381 8.3732C5.58794 7.95226 5.70675 7.30946 5.5355 6.77894L5.52437 6.74281L5.50956 6.70762Z"}),t("path",{d:"M2.49253 8.67144C1.98274 8.67144 1.60843 8.35663 1.96545 6.97238L2.55084 4.51665C2.65295 4.12345 2.66944 3.96624 2.55084 3.96624C2.1154 4.07601 2.33401 4.00777 1.9654 4.16485L1.71094 3.73988C2.95167 2.68571 2.97363 2.40709 3.58474 2.40709C4.09454 2.40709 4.17978 3.02062 3.92448 3.96464L3.25466 6.54621C3.13565 7.00253 3.18712 7.15973 3.30531 7.15973C3.56398 7.10114 3.81132 7.00404 4.03939 6.87249C4.25773 6.74655 4.55616 6.81591 4.65239 7.04889C4.72106 7.26145 4.66773 7.49745 4.49914 7.64399C3.36616 8.62885 2.9653 8.67144 2.49253 8.67144ZM3.66602 0.00239655C3.7822 -0.00651177 3.89895 0.00947896 4.00846 0.0493006C4.11797 0.0891223 4.21772 0.151858 4.30105 0.233314C4.38438 0.314771 4.44935 0.413073 4.49165 0.521653C4.53394 0.630232 4.55258 0.746588 4.54631 0.862945V0.860752C4.53258 1.15708 4.40525 1.43674 4.19074 1.64164C3.97623 1.84656 3.69104 1.96097 3.39439 1.96112L3.37064 1.96075C3.25288 1.97358 3.13485 1.95962 3.02324 1.91993C2.91164 1.88024 2.81044 1.81584 2.72723 1.73154C2.64402 1.64723 2.58094 1.54522 2.54271 1.43311C2.50477 1.32187 2.49227 1.20356 2.5061 1.08687C2.51738 0.789536 2.64564 0.508673 2.86299 0.305421C3.08056 0.101963 3.36973 -0.00722427 3.66748 0.00166549L3.66602 0.00239655Z"})]}))}export{r as default};
|
|
2
|
-
//# sourceMappingURL=CognitiveIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as i,__spreadArray as e}from"tslib";import{jsx as n,jsxs as t}from"react/jsx-runtime";import o from"@mui/icons-material/ChevronLeft";import r from"@mui/icons-material/Close";import l from"@mui/material/Box";import a from"@mui/material/Divider";import m from"@mui/material/IconButton";import c from"@mui/material/Paper";import s from"@mui/material/Stack";import h from"@mui/material/Typography";import d from"../CitationRenderer/MarkdownRenderer.js";import g from"./CognitiveIcon.js";import u from"./CognitiveScoreBadge.js";var p=function(i,n){return e([i],Array.isArray(n)?n:null==n?[]:[n],!0)};function f(e){var f=e.reasons,x=e.reason,v=e.gap,y=e.score,H=e.headerName,b=void 0===H?"Cognitive Integrity":H,C=e.onBack,S=e.onClose,z=e.showCloseButton,w=void 0===z||z,k=e.width,W=void 0===k?260:k,B=e.maxWidth,A=void 0===B?260:B,I=e.className,R=e.styles,j=(null!=f?f:[]).filter(function(i){return"evidence"===i.type.trim().toLowerCase()}).map(function(i){return i.text.trim()}).filter(Boolean),F=(null!=f?f:[]).filter(function(i){return"gap"===i.type.trim().toLowerCase()}).map(function(i){return i.text.trim()}).filter(Boolean),D=null==x?void 0:x.trim(),E=null==v?void 0:v.trim();if(0===j.length&&D&&j.push(D),0===F.length&&E&&F.push(E),0===j.length&&0===F.length)return null;var L,M=(L=null==R?void 0:R.markdown,i(i({},L),{containerWrapper:i(i({},null==L?void 0:L.containerWrapper),{display:"block",height:"auto",minHeight:0,maxHeight:"fit-content",flex:"0 0 auto"}),mainCard:i(i({},null==L?void 0:L.mainCard),{height:"auto",minHeight:0,maxHeight:"none",flex:"0 0 auto",padding:0,border:"none",borderRadius:0,boxShadow:"none",backgroundColor:"transparent"}),scrollArea:i({height:"auto",minHeight:0,maxHeight:"none",overflowY:"visible",paddingRight:0,color:"#475467",fontSize:11.5,lineHeight:1.3},null==L?void 0:L.scrollArea),list:i({margin:"0",padding:"0 0 0 18px",fontSize:"11.5px",lineHeight:"1.3"},null==L?void 0:L.list)})),N=i(i({},M),{scrollArea:i(i({},M.scrollArea),{fontSize:"inherit",lineHeight:"inherit"}),summary:i(i({},M.summary),{display:"inline-flex",padding:0,fontSize:"inherit",lineHeight:"inherit"})});return n(c,i({className:I,elevation:4,sx:p({width:W,maxWidth:A,height:"fit-content",minHeight:0,alignSelf:"flex-start",flex:"0 0 auto",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==R?void 0:R.root)},{children:t(s,i({spacing:.75,sx:{p:1,height:"auto",minHeight:0}},{children:[t(s,i({direction:"row",alignItems:"center",spacing:.75,sx:null==R?void 0:R.header},{children:[C&&n(m,i({size:"small",onClick:C,"aria-label":"Return to review check",sx:{p:0,color:"#6941C6"}},{children:n(o,{sx:{fontSize:17}})})),n(g,{sx:{color:"#6941C6"}}),n(h,i({sx:{flex:1,fontSize:12,fontWeight:500,alignItems:"center",display:"flex",lineHeight:1.25,textTransform:"capitalise"}},{children:b})),n(u,{score:y}),w&&n(m,i({size:"small",onClick:S,disabled:!S,"aria-label":"Close cognitive integrity",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:n(r,{sx:{fontSize:17}})}))]})),n(a,{sx:{m:0}}),n(l,i({sx:p({bgcolor:"#F9FAFB",px:1.5,py:1.25,height:"auto",minHeight:0,flex:"0 0 auto"},null==R?void 0:R.content)},{children:t(s,i({spacing:1.5},{children:[j.length>0&&t(l,{children:[n(h,i({sx:{mb:1,color:"#344054",fontSize:12,fontWeight:600,lineHeight:1.4}},{children:"Decision Making Factors"})),n(s,i({spacing:.75},{children:j.map(function(e,o){return t(s,i({direction:"row",alignItems:"flex-start",spacing:.75},{children:[t(h,i({component:"span",sx:{flex:"0 0 auto",minWidth:14,color:"#475467",fontSize:11.5,lineHeight:1.65}},{children:[o+1,"."]})),n(l,i({sx:{flex:1,minWidth:0,color:"#667085",fontSize:11.5,lineHeight:1.65,"& p":{m:0,color:"inherit",fontSize:"inherit",lineHeight:"inherit"}}},{children:n(d,{value:"<summary>".concat(e,"</summary>"),styles:N})}))]}),"evidence-".concat(o))})}))]}),j.length>0&&F.length>0&&n(a,{sx:{my:"2px !important",borderColor:"#E4E7EC"}}),F.length>0&&t(l,{children:[n(h,i({sx:{mb:1,color:"#344054",fontSize:12,fontWeight:600,lineHeight:1.4}},{children:"Gaps in Decision"})),n(s,i({spacing:.75},{children:F.map(function(e,o){return t(s,i({direction:"row",alignItems:"flex-start",spacing:.75},{children:[t(h,i({component:"span",sx:{flex:"0 0 auto",minWidth:14,color:"#475467",fontSize:11.5,lineHeight:1.65}},{children:[o+1,"."]})),n(l,i({sx:{flex:1,minWidth:0,color:"#667085",fontSize:11.5,lineHeight:1.65,"& p":{m:0,color:"inherit",fontSize:"inherit",lineHeight:"inherit"}}},{children:n(d,{value:"<summary>".concat(e,"</summary>"),styles:N})}))]}),"gap-".concat(o))})}))]})]}))}))]}))}))}export{f as default};
|
|
2
|
-
//# sourceMappingURL=CognitiveIntegrity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveIntegrity.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import e from"@mui/material/Box";function n(n){var t=n.score;if(null==t||"string"==typeof t&&""===t.trim())return null;var i="number"==typeof t?"".concat(t,"%"):t;return o(e,r({component:"span",sx:{px:.625,py:0,border:"1.5px solid",borderColor:"secondary.main",borderRadius:10,color:"secondary.main",fontSize:11,lineHeight:1.25}},{children:i}))}export{n as default};
|
|
2
|
-
//# sourceMappingURL=CognitiveScoreBadge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveScoreBadge.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as i}from"tslib";import{jsx as o,jsxs as r,Fragment as t}from"react/jsx-runtime";import{useMemo as n,useState as l}from"react";import a from"@mui/icons-material/ChevronRight";import d from"@mui/icons-material/Close";import c from"@mui/material/Box";import u from"@mui/material/Button";import s from"@mui/material/ButtonBase";import m from"@mui/material/Divider";import p from"@mui/material/IconButton";import h from"@mui/material/Paper";import f from"@mui/material/Radio";import b from"@mui/material/Stack";import x from"@mui/material/TextField";import v from"@mui/material/Typography";import g from"./RevertSummaryNotice.js";import C from"./CognitiveIcon.js";import y from"./CognitiveScoreBadge.js";import S from"../../assests/icons/InfoAlert.js";var w,I=function(e,o){return i([e],Array.isArray(o)?o:null==o?[]:[o],!0)};!function(e){e.KEEP_LABEL="KEEP_LABEL",e.SET_CUSTOM_LABEL="SET_CUSTOM_LABEL"}(w||(w={}));var A=function(e){return e.user_actions.map(function(i){switch(i){case"KEEP_LABEL":return{id:i,title:"Keep as is",description:e.current_label?'Label stays "'.concat(e.current_label,'"'):"Keep the current document label"};case"SET_CUSTOM_LABEL":return{id:i,title:"Fix a document title",description:"Correct the page title if it's not right",requiresInput:!0,inputPlaceholder:e.current_label?"e.g. ".concat(e.current_label):"Enter a document label"}}})},L=function(e){return Object.values(w).includes(e)};function E(i){var w,E=i.headerName,k=void 0===E?"Title Check":E,B=i.title,D=i.pageNo,z=i.content,M=void 0===z?"We're not fully confident about this label. Confirm it, choose a different type, or add a new one.":z,_=i.revertSummary,W=i.cognitiveScore,F=i.config,O=i.metadata,T=i.selectedIndex,j=i.defaultSelectedIndex,P=void 0===j?null:j,R=i.onSelectionChange,K=i.customLabel,H=i.defaultCustomLabel,N=i.onCustomLabelChange,q=i.onConfirm,U=i.onActionConfirm,G=i.onCognitiveClick;i.onAdjustManually;var J=i.onClose,Q=i.confirmLabel,V=void 0===Q?"Confirm":Q,X=i.customInputAriaLabel,Y=void 0===X?"Custom document label":X;i.manualPrompt,i.manualActionLabel;var Z=i.cognitiveLabel,$=void 0===Z?"Cognitive Integrity":Z;i.showAdjustManually;var ee=i.showCognitiveIntegrity,ie=void 0===ee||ee,oe=i.showCloseButton,re=void 0===oe||oe,te=i.confirmDisabled,ne=void 0!==te&&te,le=i.confirmationBlocked,ae=void 0!==le&&le,de=i.confirmationWarning,ce=i.disableAllActions,ue=void 0!==ce&&ce,se=i.width,me=void 0===se?260:se,pe=i.maxWidth,he=void 0===pe?260:pe,fe=i.className,be=i.styles,xe=n(function(){return null!=F?F:O?A(O):[]},[F,O]),ve=l(P),ge=ve[0],Ce=ve[1],ye=l(null!==(w=null!=H?H:null==O?void 0:O.custom_label)&&void 0!==w?w:""),Se=ye[0],we=ye[1],Ie=void 0===T?ge:T,Ae=void 0===K?Se:K,Le=null==Ie?void 0:xe[Ie],Ee=Boolean(null==Le?void 0:Le.requiresInput),ke=ae||ue||ne||!q&&!U||!Le||!0===Le.disabled||Ee&&0===Ae.trim().length,Be=function(){if(!ke&&null!=Ie&&Le){var e=Ee?Ae.trim():void 0;null==q||q(Ie,Le,e),U&&L(Le.id)&&U(Le.id,{selectedIndex:Ie,option:Le,customLabel:e,metadata:O})}};return o(h,e({className:fe,elevation:0,sx:I({width:me,maxWidth:he,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",boxSizing:"border-box",boxShadow:"0 8px 16px rgba(16, 24, 40, 0.2)","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==be?void 0:be.root)},{children:o(c,e({sx:{overflow:"hidden"}},{children:r(b,e({spacing:.75,sx:{p:1}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:.75,sx:null==be?void 0:be.header},{children:[o(S,{color:"error",height:16,width:16}),o(v,e({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:k})),re&&o(p,e({size:"small",onClick:J,disabled:!J,"aria-label":"Close label check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:o(d,{sx:{fontSize:17}})}))]})),r(c,{children:[o(v,e({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:B})),null!=D&&o(v,e({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:D})),o(m,{sx:{my:.625}}),null!=_?o(g,{children:_}):null!=M&&o(v,e({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:M}))]}),r(b,e({spacing:.625,role:"radiogroup","aria-label":"Label options"},{children:[null!=de&&r(b,e({direction:"row",alignItems:"flex-start",spacing:.5,role:"alert",sx:I({px:.75,py:.625,borderRadius:1,bgcolor:"#FEFCE8",color:"#CA8A04"},null==be?void 0:be.confirmationWarning)},{children:[o(S,{color:"inherit",height:15,width:15}),o(v,e({sx:{color:"inherit",fontSize:11.5,lineHeight:1.3}},{children:de}))]})),xe.map(function(i,t){var n=Ie===t;return r(h,e({variant:"outlined",sx:I({borderColor:n?"#1976d2":"divider",borderRadius:2,overflow:"hidden"},null==be?void 0:be.option)},{children:[r(s,e({role:"radio","aria-checked":n,disabled:ne||i.disabled||ae,onClick:function(){return function(e,i){ne||i.disabled||(void 0===T&&Ce(e),null==R||R(e,i))}(t,i)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left",cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}},{children:[o(f,{checked:n,disabled:ne||i.disabled||ae,tabIndex:-1,size:"small",sx:{p:.25,mr:.5,cursor:"pointer","&.Mui-disabled":{cursor:"not-allowed"}}}),r(c,e({sx:{minWidth:0}},{children:[o(v,e({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:i.title})),null!=i.description&&o(v,e({sx:{mt:.125,color:"text.secondary",fontSize:11}},{children:i.description}))]}))]})),n&&i.requiresInput&&o(c,e({sx:{px:1.25,pb:1}},{children:o(x,{autoFocus:!0,fullWidth:!0,size:"small",value:Ae,disabled:ne,placeholder:i.inputPlaceholder,inputProps:{"aria-label":Y},onChange:function(e){return i=e.target.value,void 0===K&&we(i),void(null==N||N(i));var i},onKeyDown:function(e){"Enter"===e.key&&Be()},variant:"outlined",InputProps:{sx:{height:36,borderRadius:2,backgroundColor:"background.paper","& .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1px"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#D0D5DD",borderWidth:"1.5px"},"& .MuiOutlinedInput-input":{height:"100%",boxSizing:"border-box",px:1.25,py:0,fontSize:12,lineHeight:1.25},"& .MuiOutlinedInput-input::placeholder":{color:"#98A2B3",opacity:1}}},sx:null==be?void 0:be.customInput})}))]}),i.id)}),o(u,e({variant:"contained",fullWidth:!0,disabled:ke,onClick:Be,sx:I({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==be?void 0:be.confirmButton)},{children:V}))]})),o(b,e({spacing:.625,sx:null==be?void 0:be.footer},{children:ie&&r(t,{children:[o(m,{}),r(s,e({onClick:G,disabled:!G,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:G?"pointer":"not-allowed"}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:1},{children:[o(C,{sx:{color:"text.secondary"}}),o(v,e({sx:{color:"text.primary",fontSize:12}},{children:$}))]})),r(b,e({direction:"row",alignItems:"center",spacing:.75},{children:[o(y,{score:W}),o(a,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]})}))]}))}))}))}export{w as LabelReviewActionEnum,A as createLabelCheckOptions,E as default,L as isLabelReviewAction};
|
|
2
|
-
//# sourceMappingURL=LabelCheck.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabelCheck.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as o,__spreadArray as e}from"tslib";import{jsx as i,jsxs as r,Fragment as t}from"react/jsx-runtime";import{useCallback as n}from"react";import l from"@mui/icons-material/ChevronRight";import a from"@mui/icons-material/Close";import d from"@mui/material/Box";import c from"@mui/material/Button";import s from"@mui/material/Divider";import m from"@mui/material/IconButton";import u from"@mui/material/Paper";import p from"@mui/material/Stack";import h from"@mui/material/Typography";import f from"./CognitiveIcon.js";import g from"./CognitiveScoreBadge.js";import x from"../../assests/icons/InfoAlert.js";var b,v=function(o,i){return e([o],Array.isArray(i)?i:null==i?[]:[i],!0)};!function(o){o.YES="YES",o.NO="NO"}(b||(b={}));var C=function(o){return Object.values(b).includes(o)};function y(e){var C,y=e.headerName,F=void 0===y?"Page Type Check":y,S=e.title,w=e.pageNo,k=e.content,D=e.cognitiveScore,z=e.pageType,A=e.metadata,I=e.onActionConfirm,B=e.onCognitiveClick,N=e.onClose,T=e.showCognitiveIntegrity,W=void 0===T||T,E=e.showCloseButton,j=void 0===E||E,O=e.confirmDisabled,R=void 0!==O&&O,Y=e.disableAllActions,H=void 0!==Y&&Y,M=e.width,P=void 0===M?260:M,_=e.maxWidth,q=void 0===_?260:_,G=e.className,J=e.styles,K=null!==(C=null!=z?z:null==A?void 0:A.page_type)&&void 0!==C?C:"table",L=null!=k?k:"We're not fully confident about the type of this page. Is this page a ".concat(K,"?"),Q=H||R||!I,U=n(function(){Q||null==I||I(b.YES,{action:b.YES,pageType:K,metadata:A})},[Q,I,K,A]),V=n(function(){Q||null==I||I(b.NO,{action:b.NO,pageType:K,metadata:A})},[Q,I,K,A]);return i(u,o({className:G,elevation:0,sx:v({width:P,maxWidth:q,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",boxSizing:"border-box",boxShadow:"0 8px 16px rgba(16, 24, 40, 0.2)","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==J?void 0:J.root)},{children:i(d,o({sx:{overflow:"hidden"}},{children:r(p,o({spacing:.75,sx:{p:1}},{children:[r(p,o({direction:"row",alignItems:"center",spacing:.75,sx:null==J?void 0:J.header},{children:[i(x,{color:"error",height:16,width:16}),i(h,o({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:F})),j&&i(m,o({size:"small",onClick:N,disabled:!N,"aria-label":"Close page check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:i(a,{sx:{fontSize:17}})}))]})),r(d,{children:[i(h,o({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:S})),null!=w&&i(h,o({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:w})),i(s,{sx:{my:.625}}),null!=L&&i(h,o({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:L}))]}),r(p,o({direction:"row",spacing:.75},{children:[i(c,o({variant:"outlined",fullWidth:!0,disabled:Q,onClick:V,sx:v({minHeight:32,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",borderColor:"#D0D5DD",color:"#475569",backgroundColor:"#FFFFFF","&:hover":{backgroundColor:"#F8FAFC",borderColor:"#D0D5DD"},"&.Mui-disabled":{backgroundColor:"#F3F4F6",color:"#9CA3AF",borderColor:"#E5E7EB"}},null==J?void 0:J.noButton)},{children:"No"})),i(c,o({variant:"contained",fullWidth:!0,disabled:Q,onClick:U,sx:v({minHeight:32,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==J?void 0:J.yesButton)},{children:"Yes"}))]})),i(p,o({spacing:.625,sx:null==J?void 0:J.footer},{children:W&&r(t,{children:[i(s,{}),r(d,o({onClick:B,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",borderRadius:1,cursor:B?"pointer":"not-allowed","&:hover":B?{opacity:.8}:{}}},{children:[r(p,o({direction:"row",alignItems:"center",spacing:1},{children:[i(f,{sx:{color:"text.secondary"}}),i(h,o({sx:{color:"text.primary",fontSize:12}},{children:"Cognitive Integrity"}))]})),r(p,o({direction:"row",alignItems:"center",spacing:.75},{children:[i(g,{score:D}),i(l,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]})}))]}))}))}))}export{b as PageCheckActionEnum,y as default,C as isPageCheckAction};
|
|
2
|
-
//# sourceMappingURL=PageCheck.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageCheck.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as r,__generator as t}from"tslib";import{jsxs as i,jsx as n}from"react/jsx-runtime";import{useState as o}from"react";import a from"@mui/material/Box";import l from"@mui/material/Button";import c from"@mui/material/ButtonBase";import d from"@mui/material/Divider";import s from"@mui/material/Stack";import h from"@mui/material/Tooltip";import m from"@mui/material/Typography";import{ChevronLeft as f}from"lucide-react";var u=function(e){var r=e.startPage,t=e.endPage;return"Pages ".concat(r,"-").concat(t)},x=function(r){var t=r.segment;return i(a,e({sx:{px:.75,py:.625,minWidth:0}},{children:[n(m,e({sx:{color:"text.secondary",fontSize:11,lineHeight:1.3,overflowWrap:"anywhere"}},{children:t.title})),n(m,e({sx:{color:"text.primary",fontSize:12,fontWeight:400,lineHeight:1.3}},{children:u(t)}))]}))};function p(u){var p=this,v=u.icon,y=u.title,C=u.pageRange,S=u.description,R=u.onRevert,w=u.onRevertComplete,W=u.onRevertError,F=u.revertData,z=u.confirmDisabled,k=void 0!==z&&z,H=u.showDocumentHeader,A=void 0===H||H,B=o(!1),E=B[0],D=B[1],T=o(!1),P=T[0],I=T[1],L=F.previousSegments.length>0,j=function(){return r(p,void 0,void 0,function(){var e,r;return t(this,function(t){switch(t.label){case 0:if(P||k)return[2];I(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,R()];case 2:return e=t.sent(),null==w||w(e),[3,5];case 3:return r=t.sent(),null==W||W(r),[3,5];case 4:return I(!1),[7];case 5:return[2]}})})};return i(s,e({spacing:.875,sx:{minWidth:0}},{children:[A&&i(a,e({sx:{minWidth:0}},{children:[n(m,e({sx:{color:"text.primary",fontSize:14,fontWeight:500,lineHeight:1.4,overflowWrap:"anywhere"}},{children:y})),n(m,e({sx:{color:"text.secondary",fontSize:12,lineHeight:1.4}},{children:C}))]})),S&&i(s,e({direction:"row",alignItems:"flex-start",spacing:.625,sx:{px:.75,py:.625,border:"1px solid #86EFAC",borderRadius:2,bgcolor:"#FFFFFF",color:"#16A34A"}},{children:[n(a,e({"aria-hidden":"true",sx:{display:"flex",flexShrink:0,mt:"1px",fontSize:14}},{children:v})),n(m,e({sx:{minWidth:0,color:"inherit",fontSize:11,lineHeight:1.5,overflowWrap:"anywhere"}},{children:S}))]})),n(d,{sx:{borderStyle:"dashed",borderColor:"#CBD5E1"}}),E?i(s,e({spacing:.75},{children:[i(c,e({onClick:function(){return D(!1)},"aria-label":"Back from revert confirmation",sx:{width:"fit-content",borderRadius:.5,color:"text.primary",fontSize:13,fontWeight:500,lineHeight:1.3,textAlign:"left"}},{children:[n(a,e({component:"span","aria-hidden":"true",sx:{mr:.625,alignItems:"center",display:"flex"}},{children:n(f,{size:16})})),"Revert"]})),i(a,L?e({sx:{p:.75,borderRadius:1,bgcolor:"#F8FAFC"}},{children:[n(m,e({sx:{mb:.375,color:"text.secondary",fontSize:12}},{children:"Current"})),n(a,e({sx:{mb:.75,border:"1px solid #E2E8F0",borderRadius:1,bgcolor:"background.paper"}},{children:n(x,{segment:F.currentSegment})})),n(m,e({sx:{mb:.375,color:"text.secondary",fontSize:12}},{children:"After Revert"})),n(a,e({sx:{border:"1px solid #E2E8F0",borderRadius:1,bgcolor:"background.paper",overflow:"hidden"}},{children:F.previousSegments.map(function(e,r){return i(a,{children:[r>0&&n(d,{sx:{borderColor:"#E2E8F0"}}),n(x,{segment:e})]},"".concat(e.title,"-").concat(e.startPage,"-").concat(e.endPage,"-").concat(r))})})),i(s,e({direction:"row",spacing:1,sx:{mt:.875}},{children:[n(l,e({variant:"outlined",fullWidth:!0,disabled:P,onClick:function(){return D(!1)},sx:g},{children:"Cancel"})),n(h,e({title:k?"Revert data is not present, cannot revert this":"",disableHoverListener:!k,arrow:!0},{children:n("span",e({style:{flex:1}},{children:n(l,e({variant:"contained",fullWidth:!0,disabled:P||k,onClick:function(){j()},sx:b},{children:P?"Reverting…":"Confirm"}))}))}))]}))]}):e({sx:{p:.875,borderRadius:1,bgcolor:"#F8FAFC"}},{children:[n(m,e({sx:{color:"text.secondary",fontSize:12,fontWeight:500}},{children:"Revert approval?"})),n(m,e({sx:{mt:.75,color:"text.secondary",fontSize:13,lineHeight:1.45}},{children:"This document will be moved back to pending review and will need to be confirmed again."})),i(s,e({direction:"row",spacing:1,sx:{mt:1}},{children:[n(l,e({variant:"outlined",fullWidth:!0,disabled:P,onClick:function(){return D(!1)},sx:g},{children:"Cancel"})),n(h,e({title:k?"Revert data is not present, cannot revert this":"",disableHoverListener:!k,arrow:!0},{children:n("span",e({style:{flex:1}},{children:n(l,e({variant:"contained",fullWidth:!0,disabled:P||k,onClick:function(){j()},sx:b},{children:P?"Reverting…":"Confirm"}))}))}))]}))]}))]})):n(l,e({variant:"outlined",fullWidth:!0,onClick:function(){return D(!0)},sx:{minHeight:36,borderColor:"#9B8AFB",color:"#5925DC",borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none","&:hover":{borderColor:"secondary.dark",bgcolor:"rgba(79, 70, 229, 0.04)"}}},{children:"Revert"}))]}))}var g={minHeight:34,borderColor:"#94A3B8",color:"#64748B",borderRadius:"8px",fontSize:12,fontWeight:500,textTransform:"none"},b={minHeight:34,borderRadius:"8px",bgcolor:"#4F46E5",fontSize:12,fontWeight:500,textTransform:"none",boxShadow:"none","&:hover":{bgcolor:"#4338CA",boxShadow:"none"}};export{p as default};
|
|
2
|
-
//# sourceMappingURL=RevertCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RevertCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import e from"@mui/icons-material/ArrowForward";import t from"@mui/material/Box";import l from"@mui/material/Button";import n from"@mui/material/Paper";import m from"@mui/material/Stack";import a from"@mui/material/Typography";import{CheckCircleIcon as d}from"lucide-react";function c(c){var s=c.title,h=c.description,p=c.onReview,F=c.reviewLabel,f=void 0===F?"Review":F;return i(n,r({elevation:0,role:"status",sx:{width:"100%",px:1.5,py:1.5,border:"1.5px solid #86EFAC",borderRadius:2,bgcolor:"#F0FDF4",boxSizing:"border-box"}},{children:o(m,r({alignItems:"center",spacing:1.5,sx:{textAlign:"center"}},{children:[i(t,r({sx:{display:"grid",placeItems:"center",width:58,height:58,border:"8px solid rgba(255, 255, 255, 0.9)",borderRadius:"50%",bgcolor:"#DCFCE7",color:"#0A9B49"}},{children:i(d,{height:36,width:36})})),o(t,{children:[i(a,r({sx:{color:"#166534",fontSize:15,fontWeight:600,lineHeight:1.4}},{children:s})),i(a,r({sx:{mt:.75,color:"#07883F",fontSize:14,lineHeight:1.55}},{children:h}))]}),i(l,r({variant:"outlined",fullWidth:!0,onClick:p,endIcon:i(e,{}),sx:{minHeight:42,border:"1.5px solid #CBD5E1",borderRadius:2,bgcolor:"#FFFFFF",color:"#475569",fontSize:16,fontWeight:700,textTransform:"none","&:hover":{borderColor:"#94A3B8",bgcolor:"#FFFFFF"}}},{children:f}))]}))}))}export{c as default};
|
|
2
|
-
//# sourceMappingURL=RevertSuccessCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RevertSuccessCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsxs as o,jsx as e}from"react/jsx-runtime";import i from"@mui/material/Box";import t from"@mui/material/Typography";import{GitMerge as l}from"lucide-react";function a(a){var m=a.children;return o(i,r({sx:{display:"flex",alignItems:"flex-start",gap:1,px:1,py:1.125,border:"1px solid #FACC15",borderRadius:1.5,bgcolor:"#FFFBEB",color:"#D18A00"}},{children:[e(l,{size:18,strokeWidth:2.25,style:{flex:"0 0 auto",marginTop:1}}),e(t,r({component:"div",sx:{color:"inherit",fontSize:12,lineHeight:1.5,overflowWrap:"anywhere"}},{children:m}))]}))}export{a as default};
|
|
2
|
-
//# sourceMappingURL=RevertSummaryNotice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RevertSummaryNotice.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useMemo as r,useState as o}from"react";import n from"@mui/icons-material/ExpandMore";import l from"@mui/material/Box";import d from"@mui/material/Button";import a from"@mui/material/ButtonBase";import s from"@mui/material/Divider";import c from"@mui/material/Paper";import u from"@mui/material/Radio";import m from"@mui/material/Stack";import p from"@mui/material/TextField";import f from"@mui/material/Typography";import{BoundaryReviewActionEnum as h}from"./BoundaryCard.js";import x from"../../assests/icons/InfoAlert.js";var g="MERGE_ADJACENT",b=function(e){return(null==e?void 0:e.additional_decisions)?Array.from(new Set(Object.values(e.additional_decisions).flat())).filter(function(e){return Object.values(h).includes(e)}):[]};function E(E){var C=E.metadata,F=E.reviewAction,v=E.startPage,S=E.endPage,A=E.title,R=void 0===A?"this document":A,y=E.previousSegmentTitle,w=E.nextSegmentTitle,M=E.disabled,T=void 0!==M&&M,z=E.onConfirm,I=r(function(){return b(F)},[F]),_=r(function(){return function(e,i,t,r){var o=i.focus_page,n=null!=o&&o===t,l=null!=o&&(o===r||o===r+1),d=[];if(e.some(function(e){return e.includes("MERGE")})&&d.push(t===r||!n&&!l?{id:g,title:"Merge with an adjacent document",description:"Choose to merge with the previous or next document."}:n?{id:h.MERGE_PREVIOUS,title:"Merge with previous document",description:"Combine this document with the previous document."}:{id:h.MERGE_NEXT,title:"Merge with next document",description:"Combine this document with the next document."}),e.includes(h.SPLIT_HERE)){var a=null!=o&&o>t&&o<r;d.push({id:h.SPLIT_HERE,title:"Split to a separate document",description:a?"Start a new document at page ".concat(o,"."):"A valid page inside the document is required to split it.",disabled:!a})}return d}(I,C,v,S)},[I,S,C,v]),G=o(null),W=G[0],D=G[1],N=o(null),P=N[0],k=N[1],B=o(String(v)),j=B[0],H=B[1],O=o(String(S)),U=O[0],V=O[1],X=o(!1),L=X[0],q=X[1],J=o(!1),$=J[0],K=J[1],Q=I.includes(h.SET_RANGE);if(0===_.length&&!Q)return null;var Y=null==W?void 0:_[W],Z=(null==Y?void 0:Y.id)===g,ee=null!=y,ie=null!=w,te=function(e){return!0===e.disabled||e.id===h.MERGE_PREV&&!ee||e.id===h.MERGE_PREVIOUS&&!ee||e.id===h.MERGE_NEXT&&!ie||e.id===g&&!ee&&!ie},re=Number(j),oe=Number(U),ne=""!==j.trim()&&""!==U.trim()&&Number.isInteger(re)&&Number.isInteger(oe)&&re>0&&re<=oe,le=T||!Y||te(Y)||Z&&null==P;return i(m,e({spacing:.75},{children:[t(s,{}),t(f,e({sx:{color:"text.primary",fontSize:12,fontWeight:600}},{children:"Additional actions"})),t(m,e({spacing:.625,role:"radiogroup","aria-label":"Additional boundary actions"},{children:_.map(function(r,o){var n=W===o,d=te(r);return i(c,e({variant:"outlined",sx:{borderColor:n?"#7F56D9":"divider",borderRadius:2,bgcolor:d?"#F8FAFC":"background.paper",overflow:"hidden"}},{children:[i(a,e({role:"radio","aria-checked":n,disabled:T||d,onClick:function(){D(o),r.id!==g&&k(null)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left"}},{children:[t(u,{checked:n,disabled:T||d,tabIndex:-1,size:"small",sx:{p:.25,mr:.5}}),i(l,e({sx:{minWidth:0}},{children:[t(f,e({sx:{color:d?"#94A3B8":"text.primary",fontSize:12.5,fontWeight:500}},{children:r.title})),null!=r.description&&t(f,e({sx:{mt:.125,color:d?"#94A3B8":"text.secondary",fontSize:11}},{children:r.description}))]}))]})),n&&Z&&t(m,e({direction:"row",spacing:.75,sx:{px:.75,pb:.75}},{children:[["previous",null!=y?y:"No previous document",ee],["next",null!=w?w:"No next document",ie]].map(function(i){var r=i[0],o=i[1],n=i[2];return t(a,e({disabled:T||!n,onClick:function(){return k(r)},"aria-pressed":P===r,sx:{flex:1,minWidth:0,minHeight:42,alignItems:"flex-start",justifyContent:"flex-start",p:.625,border:"1px solid",borderColor:P===r?"#7F56D9":"#D0D5DD",borderRadius:1.5,color:n?"text.primary":"#98A2B3",textAlign:"left"}},{children:t(f,e({sx:{color:"inherit",fontSize:11,fontWeight:500,overflowWrap:"anywhere"}},{children:o}))}),r)})}))]}),r.id)})})),t(d,e({variant:"contained",fullWidth:!0,disabled:le,onClick:function(){if(!le&&Y&&null!=W){var i=Z?"previous"===P?h.MERGE_PREVIOUS:h.MERGE_NEXT:Y.id;z(i,{selectedIndex:W,option:e(e({},Y),{id:i}),metadata:C})}},sx:{minHeight:32,borderRadius:2,bgcolor:"#5925DC",fontSize:13,fontWeight:600,textTransform:"none","&:hover":{bgcolor:"#4A1FB8"}}},{children:"Confirm"})),Q&&i(m,e({spacing:.625},{children:[i(a,e({disabled:T,onClick:function(){var e=!L;q(e),K(!1),e&&(D(null),k(null))},"aria-expanded":L,sx:{width:"100%",justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[t(f,e({sx:{color:"text.primary",fontSize:12,fontWeight:600}},{children:"Set a custom boundary"})),t(n,{sx:{color:"text.secondary",fontSize:16,transform:L?"rotate(180deg)":"none",transition:"transform 150ms ease"}})]})),L&&!$&&i(l,e({sx:{pt:.5,fontFamily:'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif'}},{children:[i(l,e({sx:{display:"grid",gridTemplateColumns:"1fr 1fr",columnGap:"8px",mb:"4px"}},{children:[t(f,e({sx:{fontSize:"10.5px",lineHeight:"14px",color:"#57697E"}},{children:"Starts"})),t(f,e({sx:{fontSize:"10.5px",lineHeight:"14px",color:"#57697E"}},{children:"Ends"}))]})),t(l,e({sx:{display:"grid",gridTemplateColumns:"1fr 1fr",columnGap:"8px",mb:"4px"}},{children:[[j,H],[U,V]].map(function(e,i){var r=e[0],o=e[1];return t(p,{size:"small",type:"text",value:r,disabled:T,error:1===i&&""!==j.trim()&&""!==U.trim()&&re>oe,onChange:function(e){return/^\d*$/.test(e.target.value)&&o(e.target.value)},inputProps:{inputMode:"numeric",pattern:"[0-9]*"},sx:{"& .MuiOutlinedInput-root":{height:"30px",bgcolor:"#FFFFFF","& fieldset":{borderColor:"#C3CFDC",borderRadius:"6px"},"&:hover fieldset":{borderColor:"#C3CFDC"},"&.Mui-focused fieldset":{borderColor:"#9488F6",borderWidth:"1px"}},"& .MuiOutlinedInput-input":{height:"30px",p:"0 10px",color:"#34445A",fontSize:"12px"}}},0===i?"starts":"ends")})})),t(d,e({onClick:function(){return K(!0)},disabled:T||!ne,sx:{height:"30px",px:"12px",bgcolor:"#FFFFFF",border:"1px solid #8E80F3",borderRadius:"6px",color:"#4A24CF",fontSize:"12px",fontWeight:600,textTransform:"none","&:hover":{bgcolor:"#FAF9FF",borderColor:"#7F6FF0"},"&.Mui-disabled":{bgcolor:"#FFFFFF",borderColor:"#C3CFDC",color:"#A0ABBE"}}},{children:"Apply"})),t(l,{sx:{width:"100%",height:"1px",mt:"8px",bgcolor:"#EEF0F2"}})]})),L&&$&&i(m,e({spacing:.75,sx:{p:.75,borderRadius:1.5,bgcolor:"#FFF7ED"}},{children:[i(m,e({direction:"row",alignItems:"center",spacing:.5},{children:[t(x,{color:"warning",height:14,width:14}),t(f,e({sx:{color:"#EA580C",fontSize:11,fontWeight:600}},{children:"Confirm this change?"}))]})),i(f,e({sx:{color:"text.secondary",fontSize:10.5,lineHeight:1.4}},{children:["Pages ",re,"-",oe," will become part of ",R,", including pages from other documents in this range."]})),i(m,e({direction:"row",spacing:.75},{children:[t(d,e({variant:"outlined",fullWidth:!0,onClick:function(){return K(!1)},sx:{minHeight:28,borderRadius:1.5,fontSize:11,textTransform:"none"}},{children:"Cancel"})),t(d,e({variant:"contained",fullWidth:!0,disabled:T,onClick:function(){if(!T&&ne){var e={id:h.SET_RANGE,title:"Set a custom boundary"};z(h.SET_RANGE,{selectedIndex:-1,option:e,metadata:C,startPage:re,endPage:oe})}},sx:{minHeight:28,borderRadius:1.5,bgcolor:"#EA580C",fontSize:11,textTransform:"none","&:hover":{bgcolor:"#C2410C"}}},{children:"Confirm"}))]}))]}))]}))]}))}export{E as default,b as getAdditionalBoundaryActions};
|
|
2
|
-
//# sourceMappingURL=ReviewedBoundaryActions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewedBoundaryActions.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as i,__spreadArray as e}from"tslib";import{jsxs as o,jsx as r}from"react/jsx-runtime";import t from"@mui/icons-material/ChevronRight";import n from"@mui/icons-material/Close";import l from"@mui/material/Box";import a from"@mui/material/ButtonBase";import c from"@mui/material/Divider";import d from"@mui/material/IconButton";import s from"@mui/material/Paper";import m from"@mui/material/Stack";import h from"@mui/material/Typography";import p from"../../assests/icons/InfoAlert.js";import x from"./CognitiveIcon.js";import f from"./CognitiveScoreBadge.js";var u=function(i,o){return e([i],Array.isArray(o)?o:null==o?[]:[o],!0)};function g(e){var g=e.headerName,v=void 0===g?"Reviewed":g,w=e.headerIcon,y=e.title,b=e.pageNo,C=e.summary,W=e.additionalActions,S=e.cognitiveScore,I=e.onCognitiveClick,k=e.onClose,z=e.cognitiveLabel,A=void 0===z?"Cognitive Integrity":z,B=e.showCognitiveIntegrity,j=void 0===B||B,N=e.showCloseButton,R=void 0===N||N,D=e.width,F=void 0===D?260:D,T=e.maxWidth,E=void 0===T?260:T,H=e.className,L=e.styles;return o(s,i({className:H,elevation:4,sx:u({width:F,maxWidth:"min(".concat(E,"number"==typeof E?"px, 100%)":", 100%)"),minWidth:0,flexShrink:1,borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box",boxShadow:"0 8px 16px rgba(16, 24, 40, 0.16)","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==L?void 0:L.root)},{children:[o(m,i({direction:"row",alignItems:"center",spacing:.75,sx:u({minWidth:0,px:1.25,py:1,bgcolor:"#ECFDF5",color:"#16A34A"},null==L?void 0:L.header)},{children:[null!=w?w:r(p,{color:"success",height:16,width:16}),r(h,i({sx:{flex:1,minWidth:0,color:"inherit",fontSize:13,fontWeight:500,lineHeight:1.25,textTransform:"uppercase",overflowWrap:"anywhere"}},{children:v})),R&&r(d,i({size:"small",onClick:k,disabled:!k,"aria-label":"Close reviewed card",sx:{p:0,color:"#475569","&.Mui-disabled":{color:"text.secondary"}}},{children:r(n,{sx:{fontSize:17}})}))]})),o(m,i({spacing:.875,sx:{px:1.25,pt:1.25,pb:1}},{children:[o(l,{children:[r(h,i({sx:{color:"text.primary",fontSize:14,fontWeight:500,overflowWrap:"anywhere"}},{children:y})),null!=b&&r(h,i({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:b}))]}),null!=C&&r(m,i({sx:null==L?void 0:L.content},{children:C})),null!=W&&r(m,{children:W}),j&&o(m,i({spacing:.625,sx:null==L?void 0:L.footer},{children:[r(c,{}),o(a,i({onClick:I,disabled:!I,sx:{width:"100%",minWidth:0,justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:I?"pointer":"not-allowed"}},{children:[o(m,i({direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0,flex:1}},{children:[r(x,{sx:{color:"text.secondary"}}),r(h,i({sx:{minWidth:0,color:"text.primary",fontSize:12,overflowWrap:"anywhere"}},{children:A}))]})),o(m,i({direction:"row",alignItems:"center",spacing:.5,sx:{flexShrink:0}},{children:[r(f,{score:S}),r(t,{sx:{color:"text.secondary"}})]}))]}))]}))]}))]}))}export{g as default};
|
|
2
|
-
//# sourceMappingURL=ReviewedCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewedCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as n,__awaiter as t,__generator as i}from"tslib";import{jsxs as r,jsx as o}from"react/jsx-runtime";import{useMemo as a,useState as l,useEffect as d,useRef as u,useCallback as s}from"react";import{SpecialZoomLevel as c}from"@react-pdf-viewer/core";import v from"../PdfViewer/PdfViewer.js";import g,{BoundaryReviewActionEnum as p,isBoundaryReviewAction as m}from"./BoundaryCard.js";import f from"./CardWrapper.js";import h from"./CognitiveIntegrity.js";import w from"./LabelCheck.js";import b from"./PageCheck.js";import{extractSegmentReviewData as y,getSegmentReviewKey as _}from"./reviewStepAdapters.js";import{CircleCheck as x,Check as S,GitMerge as P}from"lucide-react";import{Typography as k,Tooltip as E,Portal as C,Box as R}from"@mui/material";import I from"./ReviewedCard.js";import M from"./ReviewedBoundaryActions.js";import N from"./RevertCard.js";import A from"./RevertSuccessCard.js";import{getPendingMergeImpactedSegmentKeys as F,hasPolledStructuralAction as B,getOptimisticMergeImpactedSegmentKeys as T,shouldHideStructuralBoundaryReview as W,getResolvedScore as L,getConfidenceColors as z,getBoundaryReviewActionBadgeLabel as q,getTitleReviewActionBadgeLabel as j,getReviewScoreBand as G,isReviewStepResolutionCurrent as O,isReviewStepResolved as D,formatScore as V}from"./helper.js";import H from"./ChartBreakoutCircle.js";var U,X,Y=260;!function(e){e.ActualSize="ActualSize",e.PageFit="PageFit",e.PageWidth="PageWidth"}(X||(X={}));var J=((U={})[X.ActualSize]=c.ActualSize,U[X.PageFit]=c.PageFit,U[X.PageWidth]=c.PageWidth,U),Z=function(e){return{reviewId:e.id,segment:e.segment,pageNumber:e.pageNumber}};function K(U){var X,K,Q,$,ee,ne,te,ie,re,oe,ae,le,de,ue,se,ce,ve,ge,pe,me,fe,he,we,be,ye,_e,xe,Se,Pe,ke,Ee,Ce,Re,Ie,Me=this,Ne=U.pdfUrl,Ae=U.pdfName,Fe=U.segments,Be=U.styles,Te=U.pdfViewerProps,We=U.specialZoomLevel,Le=U.showBadges,ze=void 0===Le||Le,qe=U.sortByConfidence,je=void 0===qe?"low":qe,Ge=U.filterByConfidence,Oe=void 0===Ge?"all":Ge,De=U.showBadgeNavigation,Ve=void 0===De||De,He=U.autoSelectReviewOnPageChange,Ue=void 0!==He&&He,Xe=U.autoAdvanceAfterConfirm,Ye=void 0===Xe||Xe,Je=U.autoAdvanceScoreBand,Ze=U.badgePreloadPages,Ke=void 0===Ze?8:Ze,Qe=U.badgeOffsetTop,$e=void 0===Qe?20:Qe,en=U.badgeOffsetRight,nn=void 0===en?68:en,tn=U.badgeOffsetLeft,rn=void 0===tn?0:tn,on=U.initialReviewId,an=U.manualPrompt,ln=U.heightBuffer,dn=U.onBoundaryAction,un=U.onLabelAction,sn=U.onPageAction,cn=U.onPageTypeRevert,vn=U.onRevert,gn=U.onActiveReviewChange,pn=U.onCurrentPageChange,mn=U.onActionError,fn=U.disableAllActions,hn=void 0!==fn&&fn,wn=U.disablePdfAnnotations,bn=void 0!==wn&&wn,yn=U.disablePdfTextLayer,_n=void 0===yn||yn,xn=U.disableTitleCheckUntilBoundaryCheckCompleted,Sn=void 0!==xn&&xn,Pn=U.onAdjustManually,kn=U.onCognitiveClick,En=U.className,Cn=U.style,Rn=U.viewerStyle,In=U.railStyle,Mn=U.redirectionData,Nn=U.onBadgeSelected,An=a(function(){return y(Fe)},[Fe]),Fn=An.boundaryReviews,Bn=An.labelReviews,Tn=An.pageReviews,Wn=l(function(){return new Map}),Ln=Wn[0],zn=Wn[1],qn=l(function(){return new Set}),jn=qn[0],Gn=qn[1],On=a(function(){var e=new Map,n=1;return Fe.forEach(function(t,i){var r=_(t,i);e.has(r)||(e.set(r,n),n+=1)}),e},[Fe]),Dn=a(function(){return new Set(Bn.map(function(e){return _(e.segment)}))},[Bn]),Vn=a(function(){return F(Fe)},[Fe]);d(function(){zn(function(e){var n=!1,t=new Map(e);return e.forEach(function(e,i){var r=Fe.find(function(e){return _(e)===i});r&&!B(r,e)||(t.delete(i),n=!0)}),n?t:e})},[Fe]),d(function(){Gn(function(e){var n=!1,t=new Set(e);return e.forEach(function(e){Ln.has(e)||(t.delete(e),n=!0)}),n?t:e})},[Ln]);var Hn=a(function(){return T(Fe,Ln,jn)},[jn,Ln,Fe]),Un=u(null),Xn=a(function(){return e(e(e([],Fn.filter(function(e){return!Vn.has(_(e.segment))&&!Hn.has(_(e.segment))&&!W(e.review_step,e.segment,Dn.has(_(e.segment)),Ln.get(_(e.segment)))}).map(function(e){var t;return n(n({},e),{kind:"boundary",pageNumber:null!==(t=e.metadata.focus_page)&&void 0!==t?t:e.segment.start_page})}),!0),Bn.filter(function(e){return!Vn.has(_(e.segment))&&!Hn.has(_(e.segment))}).map(function(e){return n(n({},e),{kind:"label",pageNumber:e.segment.start_page})}),!0),Tn.filter(function(e){return!Vn.has(_(e.segment))&&!Hn.has(_(e.segment))}).map(function(e){var t;return n(n({},e),{kind:"page",pageNumber:null!==(t=e.metadata.page_num)&&void 0!==t?t:e.segment.start_page})}),!0).sort(function(e,n){var t,i,r=null!==(t=On.get(_(e.segment)))&&void 0!==t?t:Number.MAX_SAFE_INTEGER,o=null!==(i=On.get(_(n.segment)))&&void 0!==i?i:Number.MAX_SAFE_INTEGER;return e.pageNumber-n.pageNumber||r-o||e.reviewStepIndex-n.reviewStepIndex||e.id.localeCompare(n.id)})},[Fn,Bn,Tn,Hn,Ln,Vn,On,Dn]),Yn=a(function(){return Fe.map(function(e){var t,i;return n(n({},e),{title:(null===(t=e.label)||void 0===t?void 0:t.trim())||e.title,page_count:null!==(i=e.page_count)&&void 0!==i?i:e.end_page-e.start_page+1})})},[Fe]),Jn=l(1),Zn=Jn[0],Kn=Jn[1],Qn=l(null!=on?on:null),$n=Qn[0],et=Qn[1],nt=l(null!=on?on:null),tt=nt[0],it=nt[1],rt=l(!1),ot=rt[0],at=rt[1],lt=l(null),dt=lt[0],ut=lt[1],st=l(null),ct=st[0],vt=st[1],gt=l(function(){return new Set}),pt=gt[0],mt=gt[1],ft=l(null),ht=ft[0],wt=ft[1],bt=l(null),yt=bt[0],_t=bt[1],xt=l(null),St=xt[0],Pt=xt[1],kt=l(!1),Et=kt[0],Ct=kt[1],Rt=u(0),It=u(null),Mt=u(null),Nt=u(new Map),At=u(null),Ft=u(null),Bt=u(null),Tt=l(Y),Wt=Tt[0],Lt=Tt[1],zt=null!==(K=null===(X=null==Be?void 0:Be.aside)||void 0===X?void 0:X.width)&&void 0!==K?K:"40%",qt="min(".concat("number"==typeof zt?"".concat(zt,"px"):zt,", ").concat(Y,"px, 100%)");d(function(){mt(function(e){if(0===e.size)return e;var n=new Set(e),t=!1;return Xn.forEach(function(e){var i;null!=(null===(i=e.review_step.review)||void 0===i?void 0:i.action)&&n.has(e.id)&&(n.delete(e.id),t=!0)}),t?n:e})},[Xn]),d(function(){var e=Un.current;if(e&&ze){var n=function(){var n=e.getBoundingClientRect().width;n>0&&Lt(n)};n();var t="undefined"==typeof ResizeObserver?null:new ResizeObserver(n);return null==t||t.observe(e),function(){return null==t?void 0:t.disconnect()}}},[ze]);var jt=a(function(){var e=new Set;return Xn.forEach(function(n){var t;null!=(null===(t=n.review_step.review)||void 0===t?void 0:t.action)&&e.add(n.id)}),e},[Xn]),Gt=a(function(){var e;return null!==(e=Xn.find(function(e){return e.id===$n}))&&void 0!==e?e:null},[$n,Xn]),Ot=a(function(){return!(!Sn||"label"!==(null==Gt?void 0:Gt.kind))&&Fn.some(function(e){if(_(e.segment)!==_(Gt.segment)||jt.has(e.id))return!1;var n=L(e.review_step.score,e.review_step.confidence);return null==n||n<85})},[Gt,Fn,Sn,jt]),Dt=null==Gt?-1:Fe.findIndex(function(e){return _(e)===_(Gt.segment)}),Vt=Dt>0?Fe[Dt-1]:void 0,Ht=Dt>=0?Fe[Dt+1]:void 0,Ut=(null===(Q=null==Vt?void 0:Vt.label)||void 0===Q?void 0:Q.trim())||(null==Vt?void 0:Vt.title),Xt=(null===($=null==Ht?void 0:Ht.label)||void 0===$?void 0:$.trim())||(null==Ht?void 0:Ht.title),Yt=z(null==Gt?void 0:Gt.review_step.score,null==Gt?void 0:Gt.review_step.confidence,null===(ee=null==Gt?void 0:Gt.segment.confidence)||void 0===ee?void 0:ee.awaiting_llm),Jt=(null===(ne=null==Gt?void 0:Gt.review_step.reasons)||void 0===ne?void 0:ne.length)?Gt.review_step.reasons:null!==(ie=null===(te=null==Gt?void 0:Gt.segment.confidence)||void 0===te?void 0:te.reasons)&&void 0!==ie?ie:[],Zt=Boolean(Jt.some(function(e){return e.text.trim()&&["evidence","gap"].includes(e.type.trim().toLowerCase())})||(null===(re=null==Gt?void 0:Gt.review_step.reason)||void 0===re?void 0:re.trim())||(null===(oe=null==Gt?void 0:Gt.review_step.gap)||void 0===oe?void 0:oe.trim())),Kt=null==Gt?null:"boundary"===Gt.kind?q(Gt.review_step,Gt.segment,Ln.get(null!==(ae=Gt.segment.stable_key)&&void 0!==ae?ae:"")):j(Gt.review_step,Gt.segment,Ln.get(null!==(le=Gt.segment.stable_key)&&void 0!==le?le:"")),Qt="label"===(null==Gt?void 0:Gt.kind)?[Kt,Gt.review_step.human_action_enum,null===(de=Gt.review_step.review)||void 0===de?void 0:de.action,null===(ue=Gt.review_step.human_resolution)||void 0===ue?void 0:ue.action]:[],$t="label"===(null==Gt?void 0:Gt.kind)&&Qt.some(function(e){var n,t=null!==(n=null==e?void 0:e.trim().toUpperCase())&&void 0!==n?n:"";return t.includes("MERGE")||t.includes("SPLIT")}),ei=null!=Gt&&Xn.some(function(e){return"boundary"===e.kind&&_(e.segment)===_(Gt.segment)}),ni=$t&&!ei,ti=("boundary"===(null==Gt?void 0:Gt.kind)||ni)&&null!=Gt?function(){var e,t,i,r,o,a;if("boundary"===Gt.kind)return Gt;var l=Fn.find(function(e){return _(e.segment)===_(Gt.segment)});return l?n(n({},l),{kind:"boundary",pageNumber:null!==(e=l.metadata.focus_page)&&void 0!==e?e:l.segment.start_page}):n(n({},Gt),{kind:"boundary",pageNumber:null!==(i=null===(t=Gt.segment.review_action)||void 0===t?void 0:t.focus_page)&&void 0!==i?i:Gt.segment.start_page,metadata:{focus_page:null!==(o=null===(r=Gt.segment.review_action)||void 0===r?void 0:r.focus_page)&&void 0!==o?o:null,boundary_margin:null!==(a=Gt.segment.boundary_margin)&&void 0!==a?a:null,user_actions:[]}})}():void 0,ii=null==Gt?"":(null===(se=Gt.segment.label)||void 0===se?void 0:se.trim())||Gt.segment.title,ri=null==Gt?void 0:Gt.review_step.revert,oi=null==Gt?void 0:Gt.segment.revert,ai=function(e){return null==e?void 0:e.trim().toLowerCase()},li=null==Gt||null===(ve=e([],null!==(ce=Gt.segment.review_steps)&&void 0!==ce?ce:[],!0).reverse().find(function(e){var n,t,i=null===(n=e.type)||void 0===n?void 0:n.trim().toLowerCase();return("page_boundary"===i||"page boundary review"===i)&&"boundary"===ai(null===(t=e.revert)||void 0===t?void 0:t.type)}))||void 0===ve?void 0:ve.revert,di=null!==(ge=null!=ri?ri:null==Gt?void 0:Gt.segment.revert)&&void 0!==ge?ge:li,ui=null==di?void 0:di.decision.trim().toUpperCase(),si=null!=Kt?Kt:(null==ui?void 0:ui.includes("SPLIT"))?"Split":(null==ui?void 0:ui.includes("MERGE"))?"Merged":null,ci="label"===(null==Gt?void 0:Gt.kind)&&"SET_RANGE"===(null===(pe=null==li?void 0:li.decision)||void 0===pe?void 0:pe.trim().toUpperCase())&&li.current_segment_ids.length!==li.previous_state.length,vi="Merged"===Kt||"Split"===Kt||ci,gi=null==Gt?void 0:vi?"boundary"===ai(null==li?void 0:li.type)?li:"boundary"===ai(null==oi?void 0:oi.type)?oi:"boundary"===ai(null==ri?void 0:ri.type)?ri:void 0:"label"===Gt.kind?"label"===ai(null==ri?void 0:ri.type)?ri:void 0:"boundary"===Gt.kind?"boundary"===ai(null==ri?void 0:ri.type)?ri:"boundary"===ai(null==li?void 0:li.type)?li:"boundary"===ai(null==oi?void 0:oi.type)?oi:void 0:void 0,pi=vi&&(null==gi?void 0:gi.operation_id)?Fe.flatMap(function(e){var n;return null!==(n=e.review_steps)&&void 0!==n?n:[]}).find(function(e){var n,t,i,r,o,a,l,d=null===(n=e.type)||void 0===n?void 0:n.trim().toLowerCase();return("page_boundary"===d||"page boundary review"===d)&&((null!==(o=null!==(i=null===(t=e.human_resolution)||void 0===t?void 0:t.operation_id)&&void 0!==i?i:null===(r=e.revert)||void 0===r?void 0:r.operation_id)&&void 0!==o?o:e.operation_id)===gi.operation_id&&Boolean(null===(l=null===(a=e.human_resolution)||void 0===a?void 0:a.change_summary)||void 0===l?void 0:l.trim()))}):void 0,mi=(null===(me=null==gi?void 0:gi.summary)||void 0===me?void 0:me.trim())||null,fi=vi?(null===(he=null===(fe=null==pi?void 0:pi.human_resolution)||void 0===fe?void 0:fe.change_summary)||void 0===he?void 0:he.trim())||(null===(we=null==gi?void 0:gi.summary)||void 0===we?void 0:we.trim())||"":(null===(_e=null===(ye=null===(be=null==Gt?void 0:Gt.review_step)||void 0===be?void 0:be.human_resolution)||void 0===ye?void 0:ye.change_summary)||void 0===_e?void 0:_e.trim())||(null===(Se=null===(xe=null==Gt?void 0:Gt.review_step)||void 0===xe?void 0:xe.summary)||void 0===Se?void 0:Se.trim())||"",hi=null==Gt?null:gi?{currentSegment:{title:ii,startPage:Gt.segment.start_page,endPage:Gt.segment.end_page},previousSegments:gi.previous_state.map(function(e){var n,t;return{title:(null===(n=e.label)||void 0===n?void 0:n.trim())||(null===(t=e.title)||void 0===t?void 0:t.trim())||"Untitled document",startPage:e.start_page,endPage:e.end_page}})}:"Split"===si?{currentSegment:{title:ii,startPage:Gt.segment.start_page,endPage:Gt.segment.end_page},previousSegments:[{title:"Advice of Award",startPage:1,endPage:25},{title:ii,startPage:Gt.segment.start_page,endPage:Gt.segment.end_page}]}:"Merged"===si?{currentSegment:{title:ii,startPage:Gt.segment.start_page,endPage:Gt.segment.end_page},previousSegments:[{title:"Advice of Award",startPage:1,endPage:25},{title:"Request for proposal (RFP)",startPage:26,endPage:76}]}:{currentSegment:{title:ii,startPage:Gt.segment.start_page,endPage:Gt.segment.end_page},previousSegments:[]},wi="page"===(null==Gt?void 0:Gt.kind)&&null!==(Pe=Gt.metadata.classification_id)&&void 0!==Pe?Pe:null,bi="page"===(null==Gt?void 0:Gt.kind)?Boolean(cn&&wi):Boolean((null==gi?void 0:gi.operation_id)&&(null==gi?void 0:gi.type)&&!1!==(null==gi?void 0:gi.revertable));Boolean(hi&&bi&&("page"!==(null==Gt?void 0:Gt.kind)||wi));var yi=s(function(e,n){Rt.current+=1,It.current={requestId:Rt.current,pageNumber:e,reviewId:n},vt({pageNumber:e,requestId:Rt.current})},[]),_i=s(function(e){var n,t;!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)&&(null==Nn||Nn({reviewId:e.id,segment_id:null!==(t=e.segment.segment_id)&&void 0!==t?t:null,reviewStepIndex:e.reviewStepIndex,kind:e.kind,pageNumber:e.pageNumber,metadata:e.metadata}),_t(null),Pt(null),et(e.id),it(e.id),at(!1),ut(null),yi(e.pageNumber,e.id),null==gn||gn(e.id,e.segment))},[gn,Nn,yi]);d(function(){if(St){var e=requestAnimationFrame(function(){return Ct(!0)}),n=window.setTimeout(function(){Ct(!1)},3500),t=window.setTimeout(function(){Pt(null)},4e3);return function(){cancelAnimationFrame(e),window.clearTimeout(n),window.clearTimeout(t)}}},[St]),d(function(){var e,n,t,i;if(Mn){if("pageGroup"===Mn.type){var r=null!==(e=Mn.pages)&&void 0!==e?e:[],o=null!==(n=Mn.pageIndex)&&void 0!==n?n:0,a=r[o];if(null==a)return;return xi(),_t({pages:r,index:o,label:null!==(t=Mn.groupLabel)&&void 0!==t?t:""}),Rt.current+=1,void vt({pageNumber:a,requestId:Rt.current})}if(_t(null),Mn.reviewId){var l=Xn.find(function(e){return e.id===Mn.reviewId&&(!Mn.type||e.kind===Mn.type)});if(l)return void _i(l)}if(Mn.classificationId){var d=Xn.find(function(e){return!("page"!==e.kind||e.metadata.classification_id!==Mn.classificationId||Mn.segmentId&&e.segment.segment_id!==Mn.segmentId||Mn.type&&e.kind!==Mn.type)});if(d)return void _i(d)}if(Mn.pageNumber&&Mn.type){var u=Number(Mn.pageNumber);if(Number.isInteger(u)&&!(u<1)){var s=null===(i=Mn.pageType)||void 0===i?void 0:i.trim().toLowerCase(),c=Xn.find(function(e){var n="page"===e.kind?e.pageNumber:e.segment.start_page,t="page"!==e.kind||!s||e.metadata.page_type===s;return(!Mn.segmentId||e.segment.segment_id===Mn.segmentId)&&n===u&&e.kind===Mn.type&&t});c?_i(c):"page"===Mn.type&&(xi(),Rt.current+=1,vt({pageNumber:u,requestId:Rt.current}))}}}},[Mn,_i,Xn]);var xi=s(function(){It.current=null,at(!1),et(null),ut(null),null==gn||gn(null,null)},[gn]),Si=s(function(e){var n;Ct(!1),Pt(null);var t=null!==(n=Xn.find(function(n){return!jt.has(n.id)&&"boundary"===n.kind&&n.segment.start_page===e.startPage&&n.segment.end_page===e.endPage}))&&void 0!==n?n:Xn.find(function(n){return!jt.has(n.id)&&n.segment.start_page<=e.startPage&&n.segment.end_page>=e.startPage});t?_i(t):(xi(),Rt.current+=1,vt({pageNumber:e.startPage,requestId:Rt.current}))},[xi,jt,Xn,_i]),Pi=s(function(e,n){var t,i=G(e.review_step.score),r=null==Je||i===Je,o=pt.has(e.id)&&O(e.review_step,e.segment);return e.id!==n&&r&&!0!==(null===(t=e.segment.confidence)||void 0===t?void 0:t.awaiting_llm)&&!D(e.review_step,e.segment)&&!o},[Je,pt]),ki=s(function(e){var n;if(Ye){var t=Xn.findIndex(function(n){return n.id===e}),i=null!==(n=Xn.find(function(n,i){return i>t&&Pi(n,e)}))&&void 0!==n?n:Xn.find(function(n){return Pi(n,e)});i?requestAnimationFrame(function(){return _i(i)}):xi()}else xi()},[Ye,xi,Pi,Xn,_i]),Ei=s(function(e,n,r){return t(Me,void 0,void 0,function(){var t,o,a,l,d,u,s,c,v,g;return i(this,function(i){switch(i.label){case 0:if(hn)return[2];if("boundary"===e.kind&&!dn)return[2];if("label"===e.kind&&!un)return[2];if("page"===e.kind&&!sn)return[2];t=Z(e),a=r,l=(o=n)===p.SET_RANGE?function(){var n=a.startPage,t=a.endPage;if(null==n||null==t)return null;var i=n<e.segment.start_page||t>e.segment.end_page,r=n>e.segment.start_page||t<e.segment.end_page;return i&&!r?n<e.segment.start_page?p.MERGE_PREV:p.MERGE_NEXT:r?p.SPLIT_HERE:null}():o,d="boundary"===e.kind&&null!=dn&&Ye&&(l===p.SPLIT_HERE||l===p.MERGE_NEXT||l===p.MERGE_PREV||l===p.MERGE_PREVIOUS),u=d?Fe.findIndex(function(n){return _(n)===_(e.segment)}):-1,d&&u>=0&&l&&(Mt.current={action:l,originalSegmentIndex:u,segmentSignature:JSON.stringify(Fe.map(function(e,n){var t;return{key:_(e,n),startPage:e.start_page,endPage:e.end_page,version:null!==(t=e.version)&&void 0!==t?t:null}})),ready:!1}),wt(e.id),i.label=1;case 1:return i.trys.push([1,8,9,10]),"boundary"!==e.kind?[3,3]:[4,null==dn?void 0:dn(n,r,t)];case 2:return i.sent(),[3,7];case 3:return"label"!==e.kind?[3,5]:[4,null==un?void 0:un(n,r,t)];case 4:return i.sent(),[3,7];case 5:return"page"!==e.kind?[3,7]:[4,null==sn?void 0:sn(n,r,t)];case 6:i.sent(),i.label=7;case 7:return mt(function(n){var t=new Set(n);return t.add(e.id),t}),s="boundary"===e.kind&&(l===p.MERGE_NEXT||l===p.MERGE_PREV||l===p.MERGE_PREVIOUS),("boundary"===e.kind&&l===p.SPLIT_HERE||s)&&l&&(c=_(e.segment),Gn(function(e){var n=new Set(e);return o===p.SET_RANGE?n.add(c):n.delete(c),n}),zn(function(e){var n=new Map(e);return n.set(c,l),n})),Mt.current?(Mt.current.ready=!0,s&&(v=Xn.find(function(n){return"label"===n.kind&&_(n.segment)===_(e.segment)}))&&requestAnimationFrame(function(){return _i(v)})):ki(e.id),[3,10];case 8:return g=i.sent(),d&&(Mt.current=null),null==mn||mn(g,t),[3,10];case 9:return wt(null),[7];case 10:return[2]}})})},[Ye,hn,mn,dn,un,sn,cn,Xn,Fe,_i,ki]);d(function(){var e=Mt.current;if(null==e?void 0:e.ready){var n=JSON.stringify(Fe.map(function(e,n){var t;return{key:_(e,n),startPage:e.start_page,endPage:e.end_page,version:null!==(t=e.version)&&void 0!==t?t:null}}));if(n!==e.segmentSignature){var t=e.action===p.SPLIT_HERE?e.originalSegmentIndex+1:e.action===p.MERGE_PREV||e.action===p.MERGE_PREVIOUS?Math.max(0,e.originalSegmentIndex-1):e.originalSegmentIndex,i=new Map(Fe.map(function(e,n){return[_(e,n),n]})),r=Xn.find(function(e){var n=i.get(_(e.segment));return null!=n&&n>=t&&Pi(e)});if(!r)return Mt.current=null,void xi();requestAnimationFrame(function(){Mt.current=null,_i(r)})}}},[xi,Pi,Xn,Fe,_i]),d(function(){Mt.current||$n&&!Xn.some(function(e){return e.id===$n})&&xi()},[$n,xi,Xn]),d(function(){if(Ue&&!Mt.current){var e=Xn.find(function(e){return e.pageNumber===Zn});e&&e.id!==$n&&_i(e)}},[$n,Ue,Zn,_i,Xn]),d(function(){Mt.current||$n&&!Xn.some(function(e){var n;return e.id===$n&&!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)})&&xi()},[$n,xi,Xn]);var Ci=a(function(){var n=Xn.filter(function(e){var n;return!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)});if("all"===Oe)return n;var t=["low","medium","high"].filter(function(e){return e!==je}),i=e([je],t,!0),r=new Map(i.map(function(e,n){return[e,n]}));return n.map(function(e,n){return{item:e,index:n}}).sort(function(e,n){var t,o,a,l,d=null===(t=e.item.review_step.confidence)||void 0===t?void 0:t.trim().toLowerCase(),u=null===(o=n.item.review_step.confidence)||void 0===o?void 0:o.trim().toLowerCase();return(null==d?i.length:null!==(a=r.get(d))&&void 0!==a?a:i.length)-(null==u?i.length:null!==(l=r.get(u))&&void 0!==l?l:i.length)||e.index-n.index}).map(function(e){return e.item})},[Oe,je,Xn]),Ri=Ci.findIndex(function(e){return e.id===tt}),Ii=l(null),Mi=Ii[0],Ni=Ii[1],Ai=u(!1),Fi=s(function(e){var n=Ci[e];n&&_i(n)},[Ci,_i]);s(function(e){if(!(!yt||e<0||e>=yt.pages.length)){var t=yt.pages[e];null!=t&&(xi(),_t(function(t){return null==t?t:n(n({},t),{index:e})}),Rt.current+=1,vt({pageNumber:t,requestId:Rt.current}))}},[yt,xi]),d(function(){tt&&!Ci.some(function(e){return e.id===tt})&&it(null)},[Ci,tt]),d(function(){Ai.current=!1,Ni(Ri>=0?String(Ri+1):null)},[Ri,Ci.length]),d(function(){if(Ai.current&&null!=Mi){var e=window.setTimeout(function(){var e=Number(Mi.trim()),n=e-1;Number.isInteger(e)&&n>=0&&n<Ci.length&&(Ai.current=!1,Fi(n))},300);return function(){return window.clearTimeout(e)}}},[Fi,Mi,Ci.length]);var Bi=a(function(){var e=new Map;Xn.forEach(function(n){var t,i=null!==(t=e.get(_(n.segment)))&&void 0!==t?t:[];i.push(n),e.set(_(n.segment),i)});var n=new Map;return e.forEach(function(e,t){var i,r=null!==(i=On.get(t))&&void 0!==i?i:1;e.sort(function(e,n){return e.reviewStepIndex-n.reviewStepIndex}).forEach(function(e,t){n.set(e.id,"".concat(r).concat(function(e){for(var n=e+1,t="";n>0;)n-=1,t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26);return t}(t)))})}),n},[Xn,On]),Ti=a(function(){var e=new Map;Xn.forEach(function(n){var t,i=null!==(t=e.get(n.pageNumber))&&void 0!==t?t:[];i.push(n),e.set(n.pageNumber,i)});var n=new Map;return e.forEach(function(e){e.forEach(function(e,t){return n.set(e.id,t)})}),n},[Xn]),Wi=s(function(e){return{startPage:Math.max(0,e.startPage-Ke),endPage:Math.min(e.numPages-1,e.endPage+Ke)}},[Ke]),Li=s(function(){var e,n=Ft.current,t=Bt.current;if(n&&t){var i=n.getBoundingClientRect(),r=t.querySelector(".rpv-core__inner-pages"),o=null!==(e=null==r?void 0:r.getBoundingClientRect())&&void 0!==e?e:t.getBoundingClientRect();Xn.forEach(function(e){var n,r=Nt.current.get(e.id);if(r){var a=t.querySelector('[data-testid="core__page-layer-'.concat(e.pageNumber-1,'"]'));if(a){var l=a.getBoundingClientRect(),d=null!==(n=Ti.get(e.id))&&void 0!==n?n:0,u=l.top+$e+40*d,s=u+(r.offsetHeight||32),c=u>=o.top&&s<=o.bottom;r.style.top="".concat(u-i.top,"px"),r.style.visibility=c?"visible":"hidden"}else r.style.visibility="hidden"}});var a=At.current;if(a){var l=null==yt?void 0:yt.pages[yt.index],d=null==l?null:t.querySelector('[data-testid="core__page-layer-'.concat(l-1,'"]'));if(yt&&d){var u=d.getBoundingClientRect().top+$e,s=u+(a.offsetHeight||25),c=u>=o.top&&s<=o.bottom;a.style.top="".concat(u-i.top,"px"),a.style.visibility=c?"visible":"hidden"}else a.style.visibility="hidden"}if($n&&null==It.current){var v=Nt.current.get($n);v&&"hidden"!==v.style.visibility&&ut(function(e){return e===v?e:v})}}},[yt,$n,$e,Ti,Xn]),zi=s(function(e){var n=It.current;n&&n.requestId===e.requestId&&n.pageNumber===e.pageNumber&&(It.current=null,Li(),requestAnimationFrame(function(){if(null==It.current){var e=Nt.current.get(n.reviewId);e&&"hidden"!==e.style.visibility&&ut(e)}}))},[Li]);return d(function(){var e=Bt.current;if(e&&ze){var n=null,t=function(){null==n&&(n=requestAnimationFrame(function(){n=null,Li()}))};e.addEventListener("scroll",t,!0),window.addEventListener("resize",t);var i=new MutationObserver(t);i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]});var r="undefined"==typeof ResizeObserver?null:new ResizeObserver(t);return null==r||r.observe(e),t(),function(){null!=n&&cancelAnimationFrame(n),e.removeEventListener("scroll",t,!0),window.removeEventListener("resize",t),i.disconnect(),null==r||r.disconnect()}}},[ze,Li]),r("div",n({ref:Ft,className:En,style:n(n({},Cn),{display:"block",position:"relative",width:"100%",height:"100%",minWidth:0,overflowX:"auto",overflowY:"hidden"})},{children:[r("div",n({className:"segment-review-wrapper__container",style:{display:"flex",alignItems:"stretch",gap:0,width:"100%",minWidth:700,height:"100%"}},{children:[o("div",n({ref:Bt,style:n(n({},Rn),{flex:"1 1 auto",width:ze?"auto":"100%",minWidth:0,height:"100%",boxSizing:"border-box"})},{children:o(v,n({highlightText:[],highlightPages:{},highlightCordinatePages:[],useCoordinates:!1},Te,{defaultScale:void 0===We?null!==(ke=null==Te?void 0:Te.defaultScale)&&void 0!==ke?ke:c.PageFit:J[We],disablePdfAnnotations:bn,disablePdfTextLayer:_n,pdfUrl:Ne,pdfName:Ae,segments:Yn,navigationRequest:ct,onNavigationSettled:zi,setRenderRange:Wi,onCurrentPageChange:function(e){Kn(e),null==It.current&&Gt&&Gt.pageNumber!==e&&xi(),null==pn||pn(e)}}))})),ze&&r("aside",n({"aria-label":"Page review badges",ref:Un,style:n(n({},In),{position:"relative",width:qt,maxWidth:Y,flex:"0 1 ".concat(qt),minHeight:0,overflow:"hidden",boxSizing:"border-box"})},{children:[yt&&o("span",n({ref:At,style:{position:"absolute",top:0,left:10,visibility:"hidden",zIndex:2,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:4,minHeight:25,padding:"2px 8px",border:"1px solid #E2E8F0",borderRadius:16,backgroundColor:"#F8FAFC",boxSizing:"border-box",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)",font:"inherit"}},{children:r(k,n({fontFamily:"Inter",sx:{fontSize:11,fontWeight:500,color:"#475569",whiteSpace:"nowrap"}},{children:[yt.label||"Pages"," Pg: ",yt.index+1]}))})),Ve&&Ci.length>0&&!yt&&r("nav",n({"aria-label":"Review badge navigation",style:{position:"absolute",top:8,right:nn||"auto",left:rn||"auto",zIndex:2,display:"flex",alignItems:"center",gap:7,width:128,minHeight:40,padding:"4px 6px",border:"1px solid #CBD5E1",borderRadius:6,backgroundColor:"#FFFFFF",boxSizing:"border-box",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.06)",font:"inherit"}},{children:[o("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",value:null!=Mi?Mi:"-","aria-label":"Review badge number",onChange:function(e){Ai.current=!0,Ni(e.target.value)},style:{width:30,height:28,padding:0,border:"1px solid #A5B4FC",borderRadius:3,color:"#4F46E5",backgroundColor:"#FFFFFF",textAlign:"center",font:"inherit",fontSize:15,outline:"none"}}),r("span",n({"aria-label":"".concat(Ci.length," reviews"),style:{flex:1,color:"#4F46E5",fontSize:14,whiteSpace:"nowrap",textAlign:"center"}},{children:["of ",Ci.length]})),["previous","next"].map(function(e){var t="previous"===e,i=Ri+(t?-1:1),r=i<0||i>=Ci.length;return o("button",n({type:"button","aria-label":"".concat(t?"Previous":"Next"," review badge"),disabled:r,onClick:function(){return Fi(i)},style:{display:"grid",placeItems:"center",width:17,height:28,padding:0,border:0,background:"transparent",color:r?"#C7D2FE":"#4F46E5",cursor:r?"default":"pointer"}},{children:o("svg",n({width:"12",height:"8",viewBox:"0 0 12 8",fill:"none"},{children:o("path",{d:t?"M1 7L6 2L11 7":"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))}),e)})]})),!yt&&Xn.map(function(e){var t,i,a=$n===e.id,l=null!==(t=Bi.get(e.id))&&void 0!==t?t:"1A",d=e.review_step.score,u=e.review_step.confidence,s=V(d,u),c="boundary"===e.kind?q(e.review_step,e.segment,Ln.get(_(e.segment))):"label"===e.kind?j(e.review_step,e.segment,Ln.get(_(e.segment))):null,v=null!=c?c:"N/A"===s?s:"".concat(s,"%"),g=!0===(null===(i=e.segment.confidence)||void 0===i?void 0:i.awaiting_llm),p=z(d,u,g),m=jt.has(e.id);return o(E,n({title:g?"data is being processed":"",arrow:!0},{children:o("span",n({ref:function(n){n?Nt.current.set(e.id,n):Nt.current.delete(e.id)},style:{position:"absolute",top:0,left:10,visibility:"hidden",display:"inline-flex",cursor:g?"not-allowed":"pointer"}},{children:o("button",n({disabled:g,type:"button","aria-pressed":a,"aria-label":g?"".concat(e.review_step.type," · Page ").concat(e.pageNumber," · Data is being processed"):"".concat(e.review_step.type," · Page ").concat(e.pageNumber),onClick:function(){return _i(e)},style:{cursor:"inherit",display:"flex",alignItems:"center",justifyContent:"space-around",gap:4,width:c?m&&!g?115:90:m&&!g?105:80,minHeight:25,padding:"2px 5px",border:"1px solid ".concat(m&&!g?"#E2E8F0":p.border),borderRadius:16,backgroundColor:m&&!g?"#F8FAFC":p.background,color:m&&!g?"#475569":p.text,font:"inherit",alignContent:"center",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)"}},{children:r(k,n({fontFamily:"Inter",sx:{display:"flex",gap:1,alignItems:"center",flexDirection:"row"}},m&&!g?{children:[o("span",n({style:{fontSize:11,fontWeight:500}},{children:l})),r("span",n({style:{display:"flex",alignItems:"center"}},{children:[o("svg",n({width:"2",height:"14",viewBox:"0 0 1 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:o("path",{d:"M0.399902 0V14",stroke:"#CBD5E1",strokeWidth:"0.8"})})),o("span",n({style:{fontSize:11,fontWeight:500,marginLeft:"7px",display:"flex",alignItems:"center"}},{children:v}))]})),r("span",n({style:{fontSize:11,fontWeight:500,display:"flex",alignItems:"center"}},{children:[o("svg",n({width:"2",height:"14",viewBox:"0 0 1 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:o("path",{d:"M0.399902 0V14",stroke:"#CBD5E1",strokeWidth:"0.8"})})),o("span",n({style:{display:"flex",marginLeft:"7px",alignItems:"center"}},{children:o(x,{height:14,width:14,strokeWidth:2,color:"#16A34A"})}))]}))]}:{children:[o("span",n({style:{fontSize:11,fontWeight:500}},{children:l})),r("span",n({style:{display:"flex",alignItems:"center"}},{children:[o("svg",n({width:"2",height:"14",viewBox:"0 0 1 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:o("path",{d:"M0.399902 0V14",stroke:p.divider,strokeWidth:"0.8"})})),o("span",n({style:{fontSize:11,fontWeight:500,marginLeft:"7px",display:"flex",alignItems:"center"}},{children:v}))]}))]}))}))}))}),e.id)})]}))]})),Gt&&dt&&r(f,n({anchorElement:dt,placement:"bottom-start",offset:{top:8},width:Math.min(Wt,Y),maxWidth:Y,heightBuffer:null!=ln?ln:25},{children:[ot&&o(h,{width:"100%",maxWidth:"100%",score:Gt.review_step.score,reasons:Jt,reason:Gt.review_step.reason,gap:Gt.review_step.gap,onBack:function(){return at(!1)},onClose:xi}),o("div",n({style:{display:ot?"none":"block"}},{children:jt.has(Gt.id)?o(I,{width:"100%",maxWidth:"100%",headerName:"page"===Gt.kind?"Page format approved":"Split"===Kt?"Split approved":"Merged"===Kt?"Merge approved":"User approved",headerIcon:"page"===Gt.kind?o(S,{size:18,strokeWidth:2}):"Merged"===Kt?o(P,{size:18,strokeWidth:2}):"Split"===Kt?o(H,{width:18,height:18}):o(x,{size:18,strokeWidth:2}),title:ii,pageNo:"Page ".concat(Gt.segment.start_page,"-").concat(Gt.segment.end_page),summary:hi?o(N,{icon:o(x,{size:14,strokeWidth:2}),title:ii,pageRange:"Page ".concat(Gt.segment.start_page,"-").concat(Gt.segment.end_page),description:null!=fi?fi:null,revertData:hi,confirmDisabled:"page"===Gt.kind?!bi:null==vn||!bi,showDocumentHeader:!1,onRevert:function(){if("page"===Gt.kind){if(!cn||!wi){var e=new Error("SegmentReviewPdfWrapper requires onPageTypeRevert and a classification id to revert a page-type decision.");return null==mn||mn(e,Z(Gt)),Promise.reject(e)}return cn({classification_id:wi,human_verdict:"No"},Z(Gt))}if(!vn)throw new Error("SegmentReviewPdfWrapper requires onRevert to handle a revert confirmation.");if(!gi)throw new Error("There is no valid revert operation for this review.");var n=vi?"boundary":"label"===Gt.kind?"label":"boundary"===Gt.kind?"boundary":null,t=ai(gi.type);if(n&&t!==n)throw new Error("Cannot use ".concat(null!=t?t:"unknown"," revert metadata for this review. Expected ").concat(n,"."));return vn(gi,Z(Gt))},onRevertError:function(e){null==mn||mn(e,Z(Gt))},onRevertComplete:function(e){var n,t,i,r,o,a;mt(function(){return new Set}),"page"!==Gt.kind&&(Gn(function(){return new Set}),zn(function(){return new Map})),Gt.id;var l=null!==(n=hi.previousSegments[0])&&void 0!==n?n:hi.currentSegment,d=null==dt?void 0:dt.getBoundingClientRect(),u=null===(t=Bt.current)||void 0===t?void 0:t.getBoundingClientRect(),s=Math.min(Y,Math.max(220,Wt)),c=null!==(i=null==d?void 0:d.left)&&void 0!==i?i:(null!==(r=null==u?void 0:u.right)&&void 0!==r?r:window.innerWidth-s-8)+8,v=Math.max(8,Math.min(c,window.innerWidth-s-8)),g=null==(null==d?void 0:d.bottom)?Math.max(8,null!==(o=null==u?void 0:u.top)&&void 0!==o?o:8):d.bottom+8;mt(function(){return new Set}),"page"!==Gt.kind&&(Mt.current=null),Ct(!1),Pt({title:"Split"===Kt?"Split reverted":"Merged"===Kt?"Merge reverted":"Approval reverted",description:(null===(a=null==e?void 0:e.message)||void 0===a?void 0:a.trim())||("Split"===Kt?"Pages ".concat(Gt.segment.start_page,"-").concat(Gt.segment.end_page," are now part of “Advice of Award” again. Review the boundary and title to confirm the document."):"Merged"===Kt?"The documents have been separated again. Review their boundaries and titles to confirm them.":"“".concat(ii,"” is pending review again. Review the boundary and title to confirm the document.")),segment:l,position:{top:g,left:v,width:s}}),xi()}},Gt.id):void 0,additionalActions:ti?o(M,{metadata:ti.metadata,reviewAction:null!==(Ee=Gt.segment.review_action)&&void 0!==Ee?Ee:void 0,startPage:Gt.segment.start_page,endPage:Gt.segment.end_page,title:ii,previousSegmentTitle:Ut,nextSegmentTitle:Xt,disabled:hn||!dn||ht===Gt.id,onConfirm:function(e,n){Ei(ti,e,n)}}):void 0,cognitiveScore:Gt.review_step.score,styles:{root:{borderColor:"#16A34A"},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:"#16A34A"}}},onCognitiveClick:Zt?function(){at(!0),null==kn||kn(Z(Gt))}:void 0,onClose:xi}):"boundary"===Gt.kind?o(g,{width:"100%",maxWidth:"100%",title:Gt.segment.label||Gt.segment.title,pageNo:"Page ".concat(Gt.pageNumber),content:null!==(Ce=Gt.review_step.question)&&void 0!==Ce?Ce:null,revertSummary:mi,cognitiveScore:Gt.review_step.score,metadata:Gt.metadata,reviewAction:null!==(Re=Gt.segment.review_action)&&void 0!==Re?Re:void 0,previousSegmentTitle:Ut,nextSegmentTitle:Xt,manualPrompt:null!=an?an:"Set a custom boundary",defaultStartPage:Gt.segment.start_page,defaultEndPage:Gt.segment.end_page,styles:{root:{borderColor:Yt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Yt.text}}},confirmDisabled:hn||!dn||ht===Gt.id,onConfirm:function(e,n,t){t&&m(n.id)&&Ei(Gt,n.id,t)},onAdjustManually:function(){return null==Pn?void 0:Pn(Z(Gt))},onCognitiveClick:Zt?function(){at(!0),null==kn||kn(Z(Gt))}:void 0,onClose:xi},Gt.id):"label"===Gt.kind?o(w,{width:"100%",maxWidth:"100%",title:Gt.metadata.current_label||Gt.segment.label||Gt.segment.title,pageNo:"Pages ".concat(Gt.segment.start_page,"-").concat(Gt.segment.end_page),content:null!==(Ie=Gt.review_step.question)&&void 0!==Ie?Ie:null,revertSummary:mi,cognitiveScore:Gt.review_step.score,metadata:Gt.metadata,styles:{root:{borderColor:Yt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Yt.text}}},confirmDisabled:hn||!un||ht===Gt.id,confirmationBlocked:Ot,confirmationWarning:Ot?"Please confirm the boundary before confirming the title.":void 0,onActionConfirm:function(e,n){Ei(Gt,e,n)},onAdjustManually:function(){return null==Pn?void 0:Pn(Z(Gt))},onCognitiveClick:Zt?function(){at(!0),null==kn||kn(Z(Gt))}:void 0,onClose:xi},Gt.id):o(b,{width:"100%",maxWidth:"100%",title:Gt.segment.label||Gt.segment.title,pageNo:"Page ".concat(Gt.pageNumber),content:Gt.review_step.reason,cognitiveScore:Gt.review_step.score,pageType:Gt.metadata.page_type,metadata:Gt.metadata,styles:{root:{borderColor:Yt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Yt.text}}},confirmDisabled:hn||!sn||ht===Gt.id,onActionConfirm:function(e,n){Ei(Gt,e,n)},onCognitiveClick:Zt?function(){at(!0),null==kn||kn(Z(Gt))}:void 0,onClose:xi},Gt.id)}))]})),St&&o(C,{children:o(R,n({"aria-live":"polite",sx:{position:"fixed",top:St.position.top,left:St.position.left,zIndex:1600,width:St.position.width,maxWidth:"calc(100vw - 16px)",opacity:Et?1:0,transform:Et?"translateY(0)":"translateY(-6px)",transition:"opacity 500ms ease, transform 500ms ease",filter:"drop-shadow(0 12px 24px rgba(15, 23, 42, 0.18))",pointerEvents:Et?"auto":"none"}},{children:o(A,{title:St.title,description:St.description,onReview:function(){return Si(St.segment)}})}))})]}))}export{X as SegmentPdfSpecialZoomLevel,K as default};
|
|
2
|
-
//# sourceMappingURL=SegmentReviewPdfWrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentReviewPdfWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__spreadArray as n}from"tslib";import{getSegmentReviewKey as e}from"./reviewStepAdapters.js";var r=function(n){if(null==n)return null;if("number"==typeof n)return Number.isFinite(n)?n:null;var e=n.trim();if(!e)return null;var r=Number.parseFloat(e);return Number.isFinite(r)?r:null},t=function(n){switch(null==n?void 0:n.trim().toLowerCase()){case"low":return 40;case"medium":return 70;case"high":return 95;default:return null}},i=function(n,e){var i;return null!==(i=r(n))&&void 0!==i?i:t(e)},u=function(n){var e=r(n);return null==e?null:e<=40?"low":e<=70?"medium":"high"},l=function(n,e){var r=i(n,e);return null==r?"N/A":Number.isInteger(r)?String(r):r.toFixed(2).replace(/\.?0+$/,"")},o=function(n){switch(null==n?void 0:n.trim().toUpperCase()){case"SPLIT":case"SPLIT_HERE":return"Split";case"MERGE":case"MERGE_NEXT":case"MERGE_PREV":case"MERGE_PREVIOUS":return"Merged";default:return null}},a=function(n){var e,r,t,i;if(![n.human_action_enum,null===(e=n.human_resolution)||void 0===e?void 0:e.action,null===(r=n.review)||void 0===r?void 0:r.action].some(function(n){return"SET_RANGE"===(null==n?void 0:n.trim().toUpperCase())}))return null;var u=null===(t=n.human_resolution)||void 0===t?void 0:t.before,l=null===(i=n.human_resolution)||void 0===i?void 0:i.after;if(null==(null==u?void 0:u.start_page)||null==u.end_page||null==(null==l?void 0:l.start_page)||null==l.end_page)return null;var o=l.start_page<u.start_page||l.end_page>u.end_page,a=l.start_page>u.start_page||l.end_page<u.end_page;if(o&&!a)return"Merged";if(a&&!o)return"Split";var d=u.end_page-u.start_page+1,v=l.end_page-l.start_page+1;return v>d?"Merged":v<d?"Split":null},d=function(n){switch(null==n?void 0:n.trim().toUpperCase()){case"SPLIT":case"SPLIT_HERE":return"SPLIT_HERE";case"MERGE_NEXT":return"MERGE_NEXT";case"MERGE_PREV":case"MERGE_PREVIOUS":return"MERGE_PREV";case"SET_RANGE":return"SET_RANGE";default:return null}},v=function(n){var e,r=null===(e=n.type)||void 0===e?void 0:e.trim().toLowerCase();return"page_boundary"===r||"page boundary review"===r},_=function(e){var r,t,i,u=(null!==(r=e.review_steps)&&void 0!==r?r:[]).filter(v);return null!==(i=null!==(t=n([],u,!0).reverse().find(function(n){return null!=o(n.human_action_enum)}))&&void 0!==t?t:n([],u,!0).reverse().find(p))&&void 0!==i?i:u[u.length-1]},s=function(n){var e,r,t,i,u;return null!==(i=null!==(r=null!==(e=a(n))&&void 0!==e?e:o(n.human_action_enum))&&void 0!==r?r:o(null===(t=n.human_resolution)||void 0===t?void 0:t.action))&&void 0!==i?i:o(null===(u=n.review)||void 0===u?void 0:u.action)},c=function(n,e){var r,t=n.type.trim().toLowerCase();if(!("label"===t||"label review"===t))return!0;var i=null===(r=n.human_resolution)||void 0===r?void 0:r.segment_version,u=e.version;return null==i||null==u||i===u},f=function(n,e){var r,t,i;if(!c(n,e))return!1;if(null!=(null===(r=n.review)||void 0===r?void 0:r.action))return!0;var u=null===(i=null===(t=n.human_resolution)||void 0===t?void 0:t.state)||void 0===i?void 0:i.trim().toLowerCase();return"resolved_by_human"===u||"approved"===u||"confirmed"===u},p=function(n){var e,r,t,i;return null!=o(n.human_action_enum)||null!=o(null===(e=n.human_resolution)||void 0===e?void 0:e.action)||null!=o(null===(r=n.review)||void 0===r?void 0:r.action)||!0===(null===(i=null===(t=n.metadata)||void 0===t?void 0:t.performed_actions)||void 0===i?void 0:i.some(function(n){return null!=o(n.action)}))},g=function(e){var r,t,i,u,l,v,s=_(e);if(!s)return null;var c=d(null===(r=s.human_resolution)||void 0===r?void 0:r.action),f=null===(t=s.human_resolution)||void 0===t?void 0:t.after,p=(null==f?void 0:f.start_page)===e.start_page&&(null==f?void 0:f.end_page)===e.end_page,g=a(s);if(g)return p?g:null;if("SPLIT_HERE"===c)return p?null:"Split";if("MERGE_NEXT"===c||"MERGE_PREV"===c)return p?"Merged":null;var E=function(n,e){var r,t,i,u=n.revert,l=e.revert,o="boundary"===(null===(r=null==u?void 0:u.type)||void 0===r?void 0:r.trim().toLowerCase())?u:"boundary"===(null===(t=null==l?void 0:l.type)||void 0===t?void 0:t.trim().toLowerCase())?l:null;if(!o)return null;var a=null===(i=o.decision)||void 0===i?void 0:i.trim().toUpperCase();if(null==a?void 0:a.includes("SPLIT"))return"Split";if(null==a?void 0:a.includes("MERGE"))return"Merged";if("SET_RANGE"===a){if(o.current_segment_ids.length>o.previous_state.length)return"Split";if(o.current_segment_ids.length<o.previous_state.length)return"Merged"}return null}(s,e);if(E)return E;var m=o(s.human_action_enum);if(m)return m;var h=o(null===(i=s.review)||void 0===i?void 0:i.action);if(h)return h;var R=n([],null!==(u=e.human_action_log)&&void 0!==u?u:[],!0).filter(function(n){return null!=o(n.action)}).sort(function(n,e){var r,t;return e.human_revision-n.human_revision||(null===(r=e.performed_at)||void 0===r?void 0:r.localeCompare(null!==(t=n.performed_at)&&void 0!==t?t:""))})[0];if(!R)return null;var S=o(R.action),w=(null===(l=R.after)||void 0===l?void 0:l.start_page)===e.start_page&&(null===(v=R.after)||void 0===v?void 0:v.end_page)===e.end_page;return"Split"===S?w?null:S:w?S:null},E=function(n,e,r){var t=o(r);if(t)return t;var i=s(n);return i||g(e)},m=function(n,e,r){var t,i;return null!==(i=null!==(t=o(r))&&void 0!==t?t:s(n))&&void 0!==i?i:g(e)},h=function(n,e){return null!=o(e)||null!=g(n)},R=function(n,e,r,t){var i=o(t);if("Merged"===i)return r;if("Split"===i)return!0;if(function(n,e){var r,t,i;if("affected"!==(null===(r=e.sensitivity)||void 0===r?void 0:r.trim().toLowerCase()))return!1;var u=null!==(t=n.revert)&&void 0!==t?t:e.revert;if(!u)return!1;var l=null===(i=u.decision)||void 0===i?void 0:i.trim().toUpperCase();return u.current_segment_ids.length>u.previous_state.length&&("SET_RANGE"===l||"SPLIT"===l||"SPLIT_HERE"===l)}(n,e))return!0;var u=s(n);if("Split"===u)return!0;var l=g(e);return"Split"===l||"Merged"===u&&("Merged"!==l||r)},S=function(n,e){var r,t,i,u,l,a,v=d(e),s=_(n),c=null!==(i=null!==(r=d(null==s?void 0:s.human_action_enum))&&void 0!==r?r:d(null===(t=null==s?void 0:s.human_resolution)||void 0===t?void 0:t.action))&&void 0!==i?i:d(null===(u=null==s?void 0:s.review)||void 0===u?void 0:u.action),f=o(e),p=null===(l=null==s?void 0:s.human_resolution)||void 0===l?void 0:l.after,E="SPLIT_HERE"===v&&null!=(null===(a=null==s?void 0:s.human_resolution)||void 0===a?void 0:a.action)&&(null==p?void 0:p.start_page)===n.start_page&&(null==p?void 0:p.end_page)===n.end_page;return null!=v&&c===v&&null!=f&&(E||g(n)===f)},w=function(r,t,i){void 0===i&&(i=new Set);var u=n([],r,!0).sort(function(n,e){return n.start_page-e.start_page||n.end_page-e.end_page}),l=new Set;return t.forEach(function(n,r){if(!i.has(r)){var o=u.findIndex(function(n){return e(n)===r});if(!(o<0)){var a=u[o];if(!S(a,n)){var v=d(n),_=u["MERGE_PREV"===v?o-1:"MERGE_NEXT"===v?o+1:-1];if(_){var s=e(_);h(_,t.get(s))||l.add(s)}}}}}),l},M=function(r){var t=n([],r,!0).sort(function(n,e){return n.start_page-e.start_page||n.end_page-e.end_page}),i=new Set;return t.forEach(function(n,r){var u,l=(null!==(u=n.review_steps)&&void 0!==u?u:[]).find(function(e){var r,t,i;if(!v(e))return!1;var u=d(e.human_action_enum),l=d(null===(r=e.human_resolution)||void 0===r?void 0:r.action),o=null===(t=e.human_resolution)||void 0===t?void 0:t.before,a=null===(i=e.human_resolution)||void 0===i?void 0:i.after,_=null!=(null==o?void 0:o.start_page)&&null!=o.end_page&&null!=(null==a?void 0:a.start_page)&&null!=a.end_page&&(o.start_page!==a.start_page||o.end_page!==a.end_page),s=(null==a?void 0:a.start_page)===n.start_page&&(null==a?void 0:a.end_page)===n.end_page;return("MERGE_NEXT"===u||"MERGE_PREV"===u)&&!(l===u&&_&&s)});if(l){var o=d(l.human_action_enum),a=t["MERGE_PREV"===o?r-1:r+1];a&&!h(a)&&i.add(e(a))}}),i},b=function(n,e,r){var t={border:"#E5E7EB",cardBorder:"#374151",background:"#F9FAFB",text:"#374151",divider:"#D1D5DB"};if(r)return t;switch(u(n)){case"low":return{border:"#FECACA",cardBorder:"#B91C1C",background:"#FEF2F2",text:"#B91C1C",divider:"#FCA5A5"};case"medium":return{border:"#d9cda2",cardBorder:"#997800",background:"#fff1bf",text:"#997800",divider:"#e6b400"};case"high":return{border:"#16A34A",cardBorder:"#4F9E6C",background:"#F0FDF4",text:"#4F9E6C",divider:"#00A43C"}}return t};export{l as formatScore,m as getBoundaryReviewActionBadgeLabel,b as getConfidenceColors,t as getFallbackScore,o as getHumanActionBadgeLabel,r as getNumericScore,w as getOptimisticMergeImpactedSegmentKeys,M as getPendingMergeImpactedSegmentKeys,i as getResolvedScore,u as getReviewScoreBand,s as getReviewStepActionBadgeLabel,g as getStructuralResultBadgeLabel,E as getTitleReviewActionBadgeLabel,S as hasPolledStructuralAction,p as hasStructuralBoundaryAction,c as isReviewStepResolutionCurrent,f as isReviewStepResolved,R as shouldHideStructuralBoundaryReview};
|
|
2
|
-
//# sourceMappingURL=helper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{isBoundaryReviewAction as e}from"./BoundaryCard.js";import{isLabelReviewAction as n}from"./LabelCheck.js";import{isPageCheckAction as a}from"./PageCheck.js";var i=function(e){return"object"==typeof e&&null!==e?e:{}},t=function(e){return"string"==typeof e?e:null},o=function(e){return"number"==typeof e&&Number.isFinite(e)?e:null},r=function(e){return Array.isArray(e)?e.filter(function(e){return"string"==typeof e}):[]},l=function(e){var n="string"==typeof e?e.trim().toLowerCase():"";return"table"===n||"drawing"===n?n:null},u=function(e,n){return void 0===n&&(n=0),e.stable_key||e.segment_id||"".concat(e.start_page,"-").concat(e.end_page,"-").concat(n)},c=function(e){var a=i(e);return{current_label:t(a.current_label),custom_label:t(a.custom_label),group_id:t(a.group_id),user_actions:r(a.user_actions).filter(n)}},d=function(e){var n=i(e);return{page_type:l(n.page_type),page_num:o(n.page_num),classification_id:t(n.classification_id),user_actions:r(n.user_actions).filter(a)}},s=function(n){var t=[],s=[],v=[];return n.forEach(function(n,p){var f,_,m=u(n,p),g=null!==(f=n.review_steps)&&void 0!==f?f:[];g.forEach(function(a,l){var u,p,f=(u=a.type,"page_boundary"===(p=u.trim().toLowerCase())||"page boundary review"===p?"boundary":"label"===p||"label review"===p?"label":"page"===p?"page":null);if("boundary"===f){var _=function(n){var a=i(n);return{focus_page:o(a.focus_page),boundary_margin:o(a.boundary_margin),user_actions:r(a.user_actions).filter(e)}}(a.metadata);t.push({id:"".concat(m,":boundary:").concat(l),reviewStepIndex:l,segment:n,review_step:a,metadata:_})}"label"===f&&s.push({id:"".concat(m,":label:").concat(l),reviewStepIndex:l,segment:n,review_step:a,metadata:c(a.metadata)}),"page"===f&&v.push({id:"".concat(m,":page:").concat(l),reviewStepIndex:l,segment:n,review_step:a,metadata:d(a.metadata)})});var y=0;null===(_=n.page_classifications)||void 0===_||_.forEach(function(e,i){var t,o,r=null!==(t=e.page_num)&&void 0!==t?t:null,u=null!==(o=e.questions)&&void 0!==o?o:[];(u.length>0?u:e.severity?[e]:[]).forEach(function(t,o){var u,c,s,p;if(l(t.page_type)){var f=function(e,n,i,t){var o,r,u,c,d,s,v,p,f,_,m,g,y,b,w,h=l(e.page_type),C=null===(r=null===(o=e.human_action)||void 0===o?void 0:o.verdict)||void 0===r?void 0:r.trim().toUpperCase(),E=C&&a(C)?C:null,S="drawing"===h?"an engineering drawing":h?"a ".concat(h):null;return{type:"page",confirmed:i,title:"Page Type Check",summary:(null==t?void 0:t.trim())||(E&&null!=n&&S?"Page ".concat(n," was confirmed as ").concat("YES"===E?S:"not ".concat(S),"."):void 0),format:"pdf",confidence:null!==(c=null===(u=e.machine_classification)||void 0===u?void 0:u.confidence)&&void 0!==c?c:null,decided_by:null!==(s=null===(d=e.machine_classification)||void 0===d?void 0:d.decisioning_method)&&void 0!==s?s:null,human_action_enum:null,reason:h?"We're not fully confident about the type of this page. Is this page a ".concat(h,"?"):null,reasons:null!==(v=e.reasons)&&void 0!==v?v:[],score:null!==(_=null!==(p=e.score)&&void 0!==p?p:null===(f=e.machine_classification)||void 0===f?void 0:f.score)&&void 0!==_?_:null,review:null==E?null:{action:E,reviewed_by:null!==(g=null===(m=e.human_action)||void 0===m?void 0:m.reviewed_by)&&void 0!==g?g:"",reviewed_at:null!==(b=null===(y=e.human_action)||void 0===y?void 0:y.reviewed_at)&&void 0!==b?b:""},metadata:{page_type:h,page_num:n,classification_id:null!==(w=e.id)&&void 0!==w?w:null,user_actions:["YES","NO"]}}}(t,r,null!==(c=null!==(u=t.confirmed)&&void 0!==u?u:e.confirmed)&&void 0!==c?c:null,null!==(s=e.summary)&&void 0!==s?s:null);v.push({id:"".concat(m,":page-classification:").concat(null!==(p=t.id)&&void 0!==p?p:"".concat(i,"-").concat(o)),reviewStepIndex:g.length+y,segment:n,review_step:f,metadata:d(f.metadata)}),y+=1}})})}),{boundaryReviews:t,labelReviews:s,pageReviews:v}};export{s as extractSegmentReviewData,u as getSegmentReviewKey};
|
|
2
|
-
//# sourceMappingURL=reviewStepAdapters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reviewStepAdapters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=RedlineApprovalCardTest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RedlineApprovalCardTest.d.ts","sourceRoot":"","sources":["../../../src/RedlineApprovalCardTest.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RedlineEditorTest2.d.ts","sourceRoot":"","sources":["../../../src/RedlineEditorTest2.tsx"],"names":[],"mappings":"AA6BA,iBAAS,kBAAkB,4CAi8D1B;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartSplitIcon.d.ts","sourceRoot":"","sources":["../../../../../src/assests/icons/ChartSplitIcon.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,2CAO1E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InfoAlert.d.ts","sourceRoot":"","sources":["../../../../../src/assests/icons/InfoAlert.tsx"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEnE,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,YAAY,2CAgBpD"}
|