@viswa-test/test-citation 0.0.381 → 0.0.383
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/CitationRenderer.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CitationRendererInner.js +2 -0
- package/dist/cjs/features/CognitiveCompare/CitationRendererInner.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveCompareConstants.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/CompareContext.js +1 -1
- package/dist/cjs/features/CognitiveCompare/GptWebCitationPanel.js +2 -0
- package/dist/cjs/features/CognitiveCompare/GptWebCitationPanel.js.map +1 -0
- 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/useOnDemandCitationCache.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useOnDemandCitationCache.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/cacheKey.js +2 -0
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/cacheKey.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/contextBuilder.js +2 -0
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/contextBuilder.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/href.js +2 -0
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/href.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/payload.js +2 -0
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/payload.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/response.js +2 -0
- package/dist/cjs/features/CognitiveCompare/onDemandCitations/response.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/utils/normalizeInlineMarkdown.js +2 -0
- package/dist/cjs/features/CognitiveCompare/utils/normalizeInlineMarkdown.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/utils/onDemandCitations.js +2 -0
- package/dist/cjs/features/CognitiveCompare/utils/onDemandCitations.js.map +1 -0
- 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/PdfToolbar.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
- package/dist/cjs/features/PdfViewer/usePdfHighlight.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.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/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/hooks/useStreamContentHandler.js +1 -1
- 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/features/SegmentReviewComponents/BoundaryCard.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/helper.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/service/redlineService.js +1 -1
- package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
- package/dist/features/CognitiveCompare/CitationRenderer.js +1 -1
- package/dist/features/CognitiveCompare/CitationRendererInner.js +2 -0
- package/dist/features/CognitiveCompare/CitationRendererInner.js.map +1 -0
- package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveCompareConstants.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
- package/dist/features/CognitiveCompare/CognitivePopup.js +1 -1
- package/dist/features/CognitiveCompare/CompareContext.js +1 -1
- package/dist/features/CognitiveCompare/GptWebCitationPanel.js +2 -0
- package/dist/features/CognitiveCompare/GptWebCitationPanel.js.map +1 -0
- 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/useOnDemandCitationCache.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useOnDemandCitationCache.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
- package/dist/features/CognitiveCompare/onDemandCitations/cacheKey.js +2 -0
- package/dist/features/CognitiveCompare/onDemandCitations/cacheKey.js.map +1 -0
- package/dist/features/CognitiveCompare/onDemandCitations/contextBuilder.js +2 -0
- package/dist/features/CognitiveCompare/onDemandCitations/contextBuilder.js.map +1 -0
- package/dist/features/CognitiveCompare/onDemandCitations/href.js +2 -0
- package/dist/features/CognitiveCompare/onDemandCitations/href.js.map +1 -0
- package/dist/features/CognitiveCompare/onDemandCitations/payload.js +2 -0
- package/dist/features/CognitiveCompare/onDemandCitations/payload.js.map +1 -0
- package/dist/features/CognitiveCompare/onDemandCitations/response.js +2 -0
- package/dist/features/CognitiveCompare/onDemandCitations/response.js.map +1 -0
- package/dist/features/CognitiveCompare/utils/normalizeInlineMarkdown.js +2 -0
- package/dist/features/CognitiveCompare/utils/normalizeInlineMarkdown.js.map +1 -0
- package/dist/features/CognitiveCompare/utils/onDemandCitations.js +2 -0
- package/dist/features/CognitiveCompare/utils/onDemandCitations.js.map +1 -0
- 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/PdfToolbar.js +1 -1
- package/dist/features/PdfViewer/PdfViewer.js +1 -1
- package/dist/features/PdfViewer/usePdfHighlight.js +1 -1
- package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.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/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/hooks/useStreamContentHandler.js +1 -1
- package/dist/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
- package/dist/features/SegmentReviewComponents/BoundaryCard.js +1 -1
- package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
- package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +1 -1
- package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
- package/dist/features/SegmentReviewComponents/helper.js +1 -1
- package/dist/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/redlineService.js +1 -1
- package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
- 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 +2 -0
- package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts +8 -1
- package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CitationRendererInner.d.ts +13 -0
- package/dist/types/src/features/CognitiveCompare/CitationRendererInner.d.ts.map +1 -0
- 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/CognitiveCompareConstants.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +12 -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/CognitivePopup.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts +9 -1
- package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/GptWebCitationPanel.d.ts +6 -0
- package/dist/types/src/features/CognitiveCompare/GptWebCitationPanel.d.ts.map +1 -0
- 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 +3028 -891
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +1 -1
- 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/useOnDemandCitationCache.d.ts +10 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useOnDemandCitationCache.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/cacheKey.d.ts +3 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/cacheKey.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/contextBuilder.d.ts +16 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/contextBuilder.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/href.d.ts +6 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/href.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/index.d.ts +7 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/index.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/payload.d.ts +4 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/payload.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/response.d.ts +3 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/response.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/types.d.ts +134 -0
- package/dist/types/src/features/CognitiveCompare/onDemandCitations/types.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/utils/normalizeInlineMarkdown.d.ts +6 -0
- package/dist/types/src/features/CognitiveCompare/utils/normalizeInlineMarkdown.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/utils/onDemandCitations.d.ts +2 -0
- package/dist/types/src/features/CognitiveCompare/utils/onDemandCitations.d.ts.map +1 -0
- 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/PdfToolbar.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts +0 -1
- package/dist/types/src/features/PdfViewer/usePdfHighlight.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/changeTags.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.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/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 +19 -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/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 +3 -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/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/features/SegmentReviewComponents/BoundaryCard.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +0 -6
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/helper.d.ts +4 -2
- package/dist/types/src/features/SegmentReviewComponents/helper.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts +1 -3
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +1 -2
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +1 -1
- package/dist/types/src/service/redlineService.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.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/SegmentReviewComponents/PageTypeChoiceCheck.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/PageTypeChoiceCheck.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/reviewScore.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/reviewScore.js.map +0 -1
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.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/SegmentReviewComponents/PageTypeChoiceCheck.js +0 -2
- package/dist/features/SegmentReviewComponents/PageTypeChoiceCheck.js.map +0 -1
- package/dist/features/SegmentReviewComponents/reviewScore.js +0 -2
- package/dist/features/SegmentReviewComponents/reviewScore.js.map +0 -1
- package/dist/types/node_modules/react-markdown/lib/complex-types.d.ts +0 -23
- package/dist/types/node_modules/react-markdown/lib/complex-types.d.ts.map +0 -1
- package/dist/types/src/Background.d.ts +0 -7
- package/dist/types/src/Background.d.ts.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/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/PageTypeChoiceCheck.d.ts +0 -28
- package/dist/types/src/features/SegmentReviewComponents/PageTypeChoiceCheck.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/reviewScore.d.ts +0 -4
- package/dist/types/src/features/SegmentReviewComponents/reviewScore.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 +1,2 @@
|
|
|
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 u,useRef as d,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 b from"./LabelCheck.js";import w,{PageCheckActionEnum as y}from"./PageCheck.js";import _ from"./PageTypeChoiceCheck.js";import{extractSegmentReviewData as x,getSegmentReviewKey as S}from"./reviewStepAdapters.js";import{CircleCheck as C,Check as E,GitMerge as k}from"lucide-react";import{Typography as P,Tooltip as I,Portal as R,Box as N}from"@mui/material";import M from"./ReviewedCard.js";import A from"./ReviewedBoundaryActions.js";import F from"./RevertCard.js";import T from"./RevertSuccessCard.js";import{getPendingMergeImpactedSegmentKeys as B,hasPolledStructuralAction as W,getOptimisticMergeImpactedSegmentKeys as L,shouldHideStructuralBoundaryReview as z,getResolvedScore as j,getConfidenceColors as q,getBoundaryReviewActionBadgeLabel as G,getTitleReviewActionBadgeLabel as O,isReviewStepResolutionCurrent as D,isReviewStepResolved as V,formatScore as H}from"./helper.js";import U from"./ChartBreakoutCircle.js";import{getReviewScoreBand as X}from"./reviewScore.js";var Y,J,Z=260;!function(e){e.ActualSize="ActualSize",e.PageFit="PageFit",e.PageWidth="PageWidth"}(J||(J={}));var $=((Y={})[J.ActualSize]=c.ActualSize,Y[J.PageFit]=c.PageFit,Y[J.PageWidth]=c.PageWidth,Y),K=function(e){return{reviewId:e.id,segment:e.segment,pageNumber:e.pageNumber}};function Q(Y){var J,Q,ee,ne,te,ie,re,oe,ae,le,ue,de,se,ce,ve,ge,pe,me,fe,he,be,we,ye,_e,xe,Se,Ce,Ee,ke,Pe,Ie,Re,Ne,Me,Ae,Fe,Te=this,Be=Y.pdfUrl,We=Y.pdfName,Le=Y.segments,ze=Y.totalPages,je=Y.styles,qe=Y.pdfViewerProps,Ge=Y.specialZoomLevel,Oe=Y.showBadges,De=void 0===Oe||Oe,Ve=Y.sortByConfidence,He=void 0===Ve?"low":Ve,Ue=Y.filterByConfidence,Xe=void 0===Ue?"all":Ue,Ye=Y.showBadgeNavigation,Je=void 0===Ye||Ye,Ze=Y.autoSelectReviewOnPageChange,$e=void 0!==Ze&&Ze,Ke=Y.autoAdvanceAfterConfirm,Qe=void 0===Ke||Ke,en=Y.autoAdvanceScoreBand,nn=Y.badgePreloadPages,tn=void 0===nn?8:nn,rn=Y.badgeOffsetTop,on=void 0===rn?20:rn,an=Y.badgeOffsetRight,ln=void 0===an?68:an,un=Y.badgeOffsetLeft,dn=void 0===un?0:un,sn=Y.initialReviewId,cn=Y.manualPrompt,vn=Y.heightBuffer,gn=Y.onBoundaryAction,pn=Y.onLabelAction,mn=Y.onPageAction,fn=Y.onPageTypeRevert,hn=Y.onRevert,bn=Y.onActiveReviewChange,wn=Y.onCurrentPageChange,yn=Y.onActionError,_n=Y.disableAllActions,xn=void 0!==_n&&_n,Sn=Y.disablePdfAnnotations,Cn=void 0!==Sn&&Sn,En=Y.disablePdfTextLayer,kn=void 0===En||En,Pn=Y.disableTitleCheckUntilBoundaryCheckCompleted,In=void 0!==Pn&&Pn,Rn=Y.onAdjustManually,Nn=Y.onCognitiveClick,Mn=Y.className,An=Y.style,Fn=Y.viewerStyle,Tn=Y.railStyle,Bn=Y.redirectionData,Wn=Y.onBadgeSelected;console.log("LOG: TOTAL PAGE IN PARENT",ze);var Ln=a(function(){return x(Le)},[Le]),zn=Ln.boundaryReviews,jn=Ln.labelReviews,qn=Ln.pageReviews,Gn=l(function(){return new Map}),On=Gn[0],Dn=Gn[1],Vn=l(function(){return new Set}),Hn=Vn[0],Un=Vn[1],Xn=a(function(){var e=new Map,n=1;return Le.forEach(function(t,i){var r=S(t,i);e.has(r)||(e.set(r,n),n+=1)}),e},[Le]),Yn=a(function(){return new Set(jn.map(function(e){return S(e.segment)}))},[jn]),Jn=a(function(){return B(Le)},[Le]);u(function(){Dn(function(e){var n=!1,t=new Map(e);return e.forEach(function(e,i){var r=Le.find(function(e){return S(e)===i});r&&!W(r,e)||(t.delete(i),n=!0)}),n?t:e})},[Le]),u(function(){Un(function(e){var n=!1,t=new Set(e);return e.forEach(function(e){On.has(e)||(t.delete(e),n=!0)}),n?t:e})},[On]);var Zn=a(function(){return L(Le,On,Hn)},[Hn,On,Le]),$n=d(null),Kn=a(function(){return e(e(e([],zn.filter(function(e){return!Jn.has(S(e.segment))&&!Zn.has(S(e.segment))&&!z(e.review_step,e.segment,Yn.has(S(e.segment)),On.get(S(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),jn.filter(function(e){return!Jn.has(S(e.segment))&&!Zn.has(S(e.segment))}).map(function(e){return n(n({},e),{kind:"label",pageNumber:e.segment.start_page})}),!0),qn.filter(function(e){return!Jn.has(S(e.segment))&&!Zn.has(S(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=Xn.get(S(e.segment)))&&void 0!==t?t:Number.MAX_SAFE_INTEGER,o=null!==(i=Xn.get(S(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)})},[zn,jn,qn,Zn,On,Jn,Xn,Yn]),Qn=a(function(){return Le.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})})},[Le]),et=l(1),nt=et[0],tt=et[1],it=l(null!=sn?sn:null),rt=it[0],ot=it[1],at=l(null!=sn?sn:null),lt=at[0],ut=at[1],dt=l(!1),st=dt[0],ct=dt[1],vt=l(null),gt=vt[0],pt=vt[1],mt=l(null),ft=mt[0],ht=mt[1],bt=l(function(){return new Set}),wt=bt[0],yt=bt[1],_t=l(null),xt=_t[0],St=_t[1],Ct=l(null),Et=Ct[0],kt=Ct[1],Pt=l(null),It=Pt[0],Rt=Pt[1],Nt=l(!1),Mt=Nt[0],At=Nt[1],Ft=d(0),Tt=d(null),Bt=d(null),Wt=d(new Map),Lt=d(null),zt=d(null),jt=d(null),qt=l(Z),Gt=qt[0],Ot=qt[1],Dt=null!==(Q=null===(J=null==je?void 0:je.aside)||void 0===J?void 0:J.width)&&void 0!==Q?Q:"40%",Vt="min(".concat("number"==typeof Dt?"".concat(Dt,"px"):Dt,", ").concat(Z,"px, 100%)");u(function(){yt(function(e){if(0===e.size)return e;var n=new Set(e),t=!1;return Kn.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})},[Kn]),u(function(){var e=$n.current;if(e&&De){var n=function(){var n=e.getBoundingClientRect().width;n>0&&Ot(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()}}},[De]);var Ht=a(function(){var e=new Set;return Kn.forEach(function(n){var t;null!=(null===(t=n.review_step.review)||void 0===t?void 0:t.action)&&e.add(n.id)}),e},[Kn]),Ut=a(function(){var e;return null!==(e=Kn.find(function(e){return e.id===rt}))&&void 0!==e?e:null},[rt,Kn]),Xt=a(function(){return!(!In||"label"!==(null==Ut?void 0:Ut.kind))&&zn.some(function(e){if(S(e.segment)!==S(Ut.segment)||Ht.has(e.id))return!1;var n=j(e.review_step.score,e.review_step.confidence);return null==n||n<85})},[Ut,zn,In,Ht]),Yt=null==Ut?-1:Le.findIndex(function(e){return S(e)===S(Ut.segment)}),Jt=Yt>0?Le[Yt-1]:void 0,Zt=Yt>=0?Le[Yt+1]:void 0,$t=(null===(ee=null==Jt?void 0:Jt.label)||void 0===ee?void 0:ee.trim())||(null==Jt?void 0:Jt.title),Kt=(null===(ne=null==Zt?void 0:Zt.label)||void 0===ne?void 0:ne.trim())||(null==Zt?void 0:Zt.title),Qt=q(null==Ut?void 0:Ut.review_step.score,null==Ut?void 0:Ut.review_step.confidence,null===(te=null==Ut?void 0:Ut.segment.confidence)||void 0===te?void 0:te.awaiting_llm),ei=(null===(ie=null==Ut?void 0:Ut.review_step.reasons)||void 0===ie?void 0:ie.length)?Ut.review_step.reasons:null!==(oe=null===(re=null==Ut?void 0:Ut.segment.confidence)||void 0===re?void 0:re.reasons)&&void 0!==oe?oe:[],ni=Boolean(ei.some(function(e){return e.text.trim()&&["evidence","gap"].includes(e.type.trim().toLowerCase())})||(null===(ae=null==Ut?void 0:Ut.review_step.reason)||void 0===ae?void 0:ae.trim())||(null===(le=null==Ut?void 0:Ut.review_step.gap)||void 0===le?void 0:le.trim())),ti=null==Ut?null:"boundary"===Ut.kind?G(Ut.review_step,Ut.segment,On.get(null!==(ue=Ut.segment.stable_key)&&void 0!==ue?ue:"")):O(Ut.review_step,Ut.segment,On.get(null!==(de=Ut.segment.stable_key)&&void 0!==de?de:"")),ii="label"===(null==Ut?void 0:Ut.kind)?[ti,Ut.review_step.human_action_enum,null===(se=Ut.review_step.review)||void 0===se?void 0:se.action,null===(ce=Ut.review_step.human_resolution)||void 0===ce?void 0:ce.action]:[],ri="label"===(null==Ut?void 0:Ut.kind)&&ii.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")}),oi=null!=Ut&&Kn.some(function(e){return"boundary"===e.kind&&S(e.segment)===S(Ut.segment)}),ai=ri&&!oi,li=("boundary"===(null==Ut?void 0:Ut.kind)||ai)&&null!=Ut?function(){var e,t,i,r,o,a;if("boundary"===Ut.kind)return Ut;var l=zn.find(function(e){return S(e.segment)===S(Ut.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({},Ut),{kind:"boundary",pageNumber:null!==(i=null===(t=Ut.segment.review_action)||void 0===t?void 0:t.focus_page)&&void 0!==i?i:Ut.segment.start_page,metadata:{focus_page:null!==(o=null===(r=Ut.segment.review_action)||void 0===r?void 0:r.focus_page)&&void 0!==o?o:null,boundary_margin:null!==(a=Ut.segment.boundary_margin)&&void 0!==a?a:null,user_actions:[]}})}():void 0,ui=null==Ut?"":(null===(ve=Ut.segment.label)||void 0===ve?void 0:ve.trim())||Ut.segment.title,di=null==Ut?void 0:Ut.review_step.revert,si=null==Ut?void 0:Ut.segment.revert,ci=function(e){return null==e?void 0:e.trim().toLowerCase()},vi=null==Ut||null===(pe=e([],null!==(ge=Ut.segment.review_steps)&&void 0!==ge?ge:[],!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"===ci(null===(t=e.revert)||void 0===t?void 0:t.type)}))||void 0===pe?void 0:pe.revert,gi=null!==(me=null!=di?di:null==Ut?void 0:Ut.segment.revert)&&void 0!==me?me:vi,pi=null==gi?void 0:gi.decision.trim().toUpperCase();null!=ti||(null==pi?void 0:pi.includes("SPLIT"))||null==pi||pi.includes("MERGE");var mi="label"===(null==Ut?void 0:Ut.kind)&&"SET_RANGE"===(null===(fe=null==vi?void 0:vi.decision)||void 0===fe?void 0:fe.trim().toUpperCase())&&vi.current_segment_ids.length!==vi.previous_state.length,fi="Merged"===ti||"Split"===ti||mi,hi=null==Ut?void 0:fi?"boundary"===ci(null==vi?void 0:vi.type)?vi:"boundary"===ci(null==si?void 0:si.type)?si:"boundary"===ci(null==di?void 0:di.type)?di:void 0:"label"===Ut.kind?"label"===ci(null==di?void 0:di.type)?di:void 0:"boundary"===Ut.kind?"boundary"===ci(null==di?void 0:di.type)?di:"boundary"===ci(null==vi?void 0:vi.type)?vi:"boundary"===ci(null==si?void 0:si.type)?si:void 0:void 0,bi=fi&&(null==hi?void 0:hi.operation_id)?Le.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,u=null===(n=e.type)||void 0===n?void 0:n.trim().toLowerCase();return("page_boundary"===u||"page boundary review"===u)&&((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)===hi.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,wi=(null===(he=null==hi?void 0:hi.summary)||void 0===he?void 0:he.trim())||null,yi=fi?(null===(we=null===(be=null==bi?void 0:bi.human_resolution)||void 0===be?void 0:be.change_summary)||void 0===we?void 0:we.trim())||(null===(ye=null==hi?void 0:hi.summary)||void 0===ye?void 0:ye.trim())||"":(null===(Se=null===(xe=null===(_e=null==Ut?void 0:Ut.review_step)||void 0===_e?void 0:_e.human_resolution)||void 0===xe?void 0:xe.change_summary)||void 0===Se?void 0:Se.trim())||(null===(Ee=null===(Ce=null==Ut?void 0:Ut.review_step)||void 0===Ce?void 0:Ce.summary)||void 0===Ee?void 0:Ee.trim())||"",_i=Ut&&hi?{currentSegment:{title:ui,startPage:Ut.segment.start_page,endPage:Ut.segment.end_page},previousSegments:(null!==(ke=hi.previous_state)&&void 0!==ke?ke:[]).flatMap(function(e){var n,t=null===e.label?"Untitled document":null===(n=e.label)||void 0===n?void 0:n.trim();return t?[{title:t,startPage:e.start_page,endPage:e.end_page}]:[]})}:null,xi="page"===(null==Ut?void 0:Ut.kind)&&null!==(Pe=Ut.metadata.classification_id)&&void 0!==Pe?Pe:null,Si="page"===(null==Ut?void 0:Ut.kind)?Boolean(fn&&xi):Boolean((null==hi?void 0:hi.operation_id)&&(null==hi?void 0:hi.type)&&!1!==(null==hi?void 0:hi.revertable)),Ci=Boolean(_i&&Si&&("page"!==(null==Ut?void 0:Ut.kind)||xi)),Ei=s(function(e,n){Ft.current+=1,Tt.current={requestId:Ft.current,pageNumber:e,reviewId:n},ht({pageNumber:e,requestId:Ft.current})},[]),ki=s(function(e){var n,t;!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)&&(null==Wn||Wn({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}),kt(null),Rt(null),ot(e.id),ut(e.id),ct(!1),pt(null),Ei(e.pageNumber,e.id),null==bn||bn(e.id,e.segment))},[bn,Wn,Ei]);u(function(){if(It){var e=requestAnimationFrame(function(){return At(!0)}),n=window.setTimeout(function(){At(!1)},3500),t=window.setTimeout(function(){Rt(null)},4e3);return function(){cancelAnimationFrame(e),window.clearTimeout(n),window.clearTimeout(t)}}},[It]),u(function(){var e,n,t,i;if(Bn){if("pageGroup"===Bn.type){var r=null!==(e=Bn.pages)&&void 0!==e?e:[],o=null!==(n=Bn.pageIndex)&&void 0!==n?n:0,a=r[o];if(null==a)return;return Pi(),kt({pages:r,index:o,label:null!==(t=Bn.groupLabel)&&void 0!==t?t:""}),Ft.current+=1,void ht({pageNumber:a,requestId:Ft.current})}if(kt(null),Bn.reviewId){var l=Kn.find(function(e){return e.id===Bn.reviewId&&(!Bn.type||e.kind===Bn.type)});if(l)return void ki(l)}if(Bn.classificationId){var u=Kn.find(function(e){var n;return"page"===e.kind&&(e.metadata.classification_id===Bn.classificationId||(null===(n=e.metadata.type_choices)||void 0===n?void 0:n.some(function(e){return e.classification_id===Bn.classificationId})))&&(!Bn.segmentId||e.segment.segment_id===Bn.segmentId)&&(!Bn.type||e.kind===Bn.type)});if(u)return void ki(u)}if(Bn.pageNumber&&Bn.type){var d=Number(Bn.pageNumber);if(Number.isInteger(d)&&!(d<1)){var s=null===(i=Bn.pageType)||void 0===i?void 0:i.trim().toLowerCase(),c=Kn.find(function(e){var n,t="page"===e.kind?e.pageNumber:e.segment.start_page,i="page"!==e.kind||!s||e.metadata.page_type===s||(null===(n=e.metadata.type_choices)||void 0===n?void 0:n.some(function(e){return e.page_type===s}));return(!Bn.segmentId||e.segment.segment_id===Bn.segmentId)&&t===d&&e.kind===Bn.type&&i});c?ki(c):"page"===Bn.type&&(Pi(),Ft.current+=1,ht({pageNumber:d,requestId:Ft.current}))}}}},[Bn,ki,Kn]);var Pi=s(function(){Tt.current=null,ct(!1),ot(null),pt(null),null==bn||bn(null,null)},[bn]),Ii=s(function(e){var n;At(!1),Rt(null);var t=null!==(n=Kn.find(function(n){return!Ht.has(n.id)&&"boundary"===n.kind&&n.segment.start_page===e.startPage&&n.segment.end_page===e.endPage}))&&void 0!==n?n:Kn.find(function(n){return!Ht.has(n.id)&&n.segment.start_page<=e.startPage&&n.segment.end_page>=e.startPage});t?ki(t):(Pi(),Ft.current+=1,ht({pageNumber:e.startPage,requestId:Ft.current}))},[Pi,Ht,Kn,ki]),Ri=s(function(e,n){var t,i=X(e.review_step.score),r=null==en||i===en,o=wt.has(e.id)&&D(e.review_step,e.segment);return e.id!==n&&r&&!0!==(null===(t=e.segment.confidence)||void 0===t?void 0:t.awaiting_llm)&&!V(e.review_step,e.segment)&&!o},[en,wt]),Ni=s(function(e){var n;if(Qe){var t=Kn.findIndex(function(n){return n.id===e}),i=null!==(n=Kn.find(function(n,i){return i>t&&Ri(n,e)}))&&void 0!==n?n:Kn.find(function(n){return Ri(n,e)});i?requestAnimationFrame(function(){return ki(i)}):Pi()}else Pi()},[Qe,Pi,Ri,Kn,ki]),Mi=s(function(n,r){return t(Te,void 0,void 0,function(){var t,o,a,l,u,d,s,c,v,g;return i(this,function(i){switch(i.label){case 0:if(xn||!mn||0===r.length)return[2];if(2!==(t=null!==(g=n.metadata.type_choices)&&void 0!==g?g:[]).length)return[2];o=new Set(r),a=K(n),l=e([],t,!0).sort(function(e,n){var t=o.has(e.page_type);return t===o.has(n.page_type)?0:t?-1:1}),St(n.id),i.label=1;case 1:i.trys.push([1,6,7,8]),u=0,d=l,i.label=2;case 2:return u<d.length?(s=d[u],c=o.has(s.page_type)?y.YES:y.NO,[4,mn(c,{action:c,pageType:s.page_type,metadata:{user_actions:[y.YES,y.NO],page_num:n.metadata.page_num,page_type:s.page_type,classification_id:s.classification_id}},a)]):[3,5];case 3:i.sent(),i.label=4;case 4:return u++,[3,2];case 5:return yt(function(e){var t=new Set(e);return t.add(n.id),t}),Ni(n.id),[3,8];case 6:return v=i.sent(),null==yn||yn(v,a),[3,8];case 7:return St(null),[7];case 8:return[2]}})})},[xn,yn,mn,Ni]),Ai=s(function(e,n,r){return t(Te,void 0,void 0,function(){var t,o,a,l,u,d,s,c,v,g;return i(this,function(i){switch(i.label){case 0:if(xn)return[2];if("boundary"===e.kind&&!gn)return[2];if("label"===e.kind&&!pn)return[2];if("page"===e.kind&&!mn)return[2];t=K(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,u="boundary"===e.kind&&null!=gn&&Qe&&(l===p.SPLIT_HERE||l===p.MERGE_NEXT||l===p.MERGE_PREV||l===p.MERGE_PREVIOUS),d=u?Le.findIndex(function(n){return S(n)===S(e.segment)}):-1,u&&d>=0&&l&&(Bt.current={action:l,originalSegmentIndex:d,segmentSignature:JSON.stringify(Le.map(function(e,n){var t;return{key:S(e,n),startPage:e.start_page,endPage:e.end_page,version:null!==(t=e.version)&&void 0!==t?t:null}})),ready:!1}),St(e.id),i.label=1;case 1:return i.trys.push([1,8,9,10]),"boundary"!==e.kind?[3,3]:[4,null==gn?void 0:gn(n,r,t)];case 2:return i.sent(),[3,7];case 3:return"label"!==e.kind?[3,5]:[4,null==pn?void 0:pn(n,r,t)];case 4:return i.sent(),[3,7];case 5:return"page"!==e.kind?[3,7]:[4,null==mn?void 0:mn(n,r,t)];case 6:i.sent(),i.label=7;case 7:return yt(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=S(e.segment),Un(function(e){var n=new Set(e);return o===p.SET_RANGE?n.add(c):n.delete(c),n}),Dn(function(e){var n=new Map(e);return n.set(c,l),n})),Bt.current?(Bt.current.ready=!0,s&&(v=Kn.find(function(n){return"label"===n.kind&&S(n.segment)===S(e.segment)}))&&requestAnimationFrame(function(){return ki(v)})):Ni(e.id),[3,10];case 8:return g=i.sent(),u&&(Bt.current=null),null==yn||yn(g,t),[3,10];case 9:return St(null),[7];case 10:return[2]}})})},[Qe,xn,yn,gn,pn,mn,fn,Kn,Le,ki,Ni]);u(function(){var e=Bt.current;if(null==e?void 0:e.ready){var n=JSON.stringify(Le.map(function(e,n){var t;return{key:S(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(Le.map(function(e,n){return[S(e,n),n]})),r=Kn.find(function(e){var n=i.get(S(e.segment));return null!=n&&n>=t&&Ri(e)});if(!r)return Bt.current=null,void Pi();requestAnimationFrame(function(){Bt.current=null,ki(r)})}}},[Pi,Ri,Kn,Le,ki]),u(function(){Bt.current||rt&&!Kn.some(function(e){return e.id===rt})&&Pi()},[rt,Pi,Kn]),u(function(){if($e&&!Bt.current){var e=Kn.find(function(e){return e.pageNumber===nt});e&&e.id!==rt&&ki(e)}},[rt,$e,nt,ki,Kn]),u(function(){Bt.current||rt&&!Kn.some(function(e){var n;return e.id===rt&&!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)})&&Pi()},[rt,Pi,Kn]);var Fi=a(function(){var n=Kn.filter(function(e){var n;return!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)});if("all"===Xe)return n;var t=["low","medium","high"].filter(function(e){return e!==He}),i=e([He],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,u=null===(t=e.item.review_step.confidence)||void 0===t?void 0:t.trim().toLowerCase(),d=null===(o=n.item.review_step.confidence)||void 0===o?void 0:o.trim().toLowerCase();return(null==u?i.length:null!==(a=r.get(u))&&void 0!==a?a:i.length)-(null==d?i.length:null!==(l=r.get(d))&&void 0!==l?l:i.length)||e.index-n.index}).map(function(e){return e.item})},[Xe,He,Kn]),Ti=Fi.findIndex(function(e){return e.id===lt}),Bi=l(null),Wi=Bi[0],Li=Bi[1],zi=l(null),ji=zi[0],qi=zi[1],Gi=d(!1),Oi=s(function(e){var n=Fi[e];n&&ki(n)},[Fi,ki]);s(function(e){if(!(!Et||e<0||e>=Et.pages.length)){var t=Et.pages[e];null!=t&&(Pi(),kt(function(t){return null==t?t:n(n({},t),{index:e})}),Ft.current+=1,ht({pageNumber:t,requestId:Ft.current}))}},[Et,Pi]),u(function(){lt&&!Fi.some(function(e){return e.id===lt})&&ut(null)},[Fi,lt]),u(function(){Gi.current=!1,qi(null),Li(Ti>=0?String(Ti+1):null)},[Ti,Fi.length]),u(function(){if(Gi.current&&null!=Wi){var e=window.setTimeout(function(){var e=Number(Wi.trim()),n=e-1;Number.isInteger(e)&&n>=0&&n<Fi.length&&(Gi.current=!1,Oi(n))},300);return function(){return window.clearTimeout(e)}}},[Oi,Wi,Fi.length]);var Di=a(function(){var e=new Map;Kn.forEach(function(n){var t,i=null!==(t=e.get(S(n.segment)))&&void 0!==t?t:[];i.push(n),e.set(S(n.segment),i)});var n=new Map;return e.forEach(function(e,t){var i,r=null!==(i=Xn.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},[Kn,Xn]),Vi=a(function(){var e=new Map;Kn.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},[Kn]),Hi=s(function(e){return{startPage:Math.max(0,e.startPage-tn),endPage:Math.min(e.numPages-1,e.endPage+tn)}},[tn]),Ui=s(function(){var e,n=zt.current,t=jt.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();Kn.forEach(function(e){var n,r=Wt.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(),u=null!==(n=Vi.get(e.id))&&void 0!==n?n:0,d=l.top+on+40*u,s=d+(r.offsetHeight||32),c=d>=o.top&&s<=o.bottom;r.style.top="".concat(d-i.top,"px"),r.style.visibility=c?"visible":"hidden"}else r.style.visibility="hidden"}});var a=Lt.current;if(a){var l=null==Et?void 0:Et.pages[Et.index],u=null==l?null:t.querySelector('[data-testid="core__page-layer-'.concat(l-1,'"]'));if(Et&&u){var d=u.getBoundingClientRect().top+on,s=d+(a.offsetHeight||25),c=d>=o.top&&s<=o.bottom;a.style.top="".concat(d-i.top,"px"),a.style.visibility=c?"visible":"hidden"}else a.style.visibility="hidden"}if(rt&&null==Tt.current){var v=Wt.current.get(rt);v&&"hidden"!==v.style.visibility&&pt(function(e){return e===v?e:v})}}},[Et,rt,on,Vi,Kn]),Xi=s(function(e){var n=Tt.current;n&&n.requestId===e.requestId&&n.pageNumber===e.pageNumber&&(Tt.current=null,Ui(),requestAnimationFrame(function(){if(null==Tt.current){var e=Wt.current.get(n.reviewId);e&&"hidden"!==e.style.visibility&&pt(e)}}))},[Ui]);return u(function(){var e=jt.current;if(e&&De){var n=null,t=function(){null==n&&(n=requestAnimationFrame(function(){n=null,Ui()}))};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()}}},[De,Ui]),r("div",n({ref:zt,className:Mn,style:n(n({},An),{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:jt,style:n(n({},Fn),{flex:"1 1 auto",width:De?"auto":"100%",minWidth:0,height:"100%",boxSizing:"border-box"})},{children:o(v,n({highlightText:[],highlightPages:{},highlightCordinatePages:[],useCoordinates:!1,showRotateButton:!0},qe,{defaultScale:void 0===Ge?null!==(Ie=null==qe?void 0:qe.defaultScale)&&void 0!==Ie?Ie:c.PageFit:$[Ge],disablePdfAnnotations:Cn,disablePdfTextLayer:kn,pdfUrl:Be,pdfName:We,segments:Qn,navigationRequest:ft,onNavigationSettled:Xi,setRenderRange:Hi,onCurrentPageChange:function(e){tt(e),null==Tt.current&&Ut&&Ut.pageNumber!==e&&Pi(),null==wn||wn(e)}}))})),De&&r("aside",n({"aria-label":"Page review badges",ref:$n,style:n(n({},Tn),{position:"relative",width:Vt,maxWidth:Z,flex:"0 1 ".concat(Vt),minHeight:0,overflow:"hidden",boxSizing:"border-box"})},{children:[Et&&o("span",n({ref:Lt,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(P,n({fontFamily:"Inter",sx:{fontSize:11,fontWeight:500,color:"#475569",whiteSpace:"nowrap"}},{children:[Et.label||"Pages"," Pg: ",Et.index+1]}))})),Je&&Fi.length>0&&!Et&&r("nav",n({"aria-label":"Review badge navigation",style:{position:"absolute",top:8,right:ln||"auto",left:dn||"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(I,n({title:"out-of-range"===ji?"Please enter valid number present in the range":"Please enter valid numbers",open:null!=ji,placement:"top",arrow:!0},{children:o("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",value:null!=Wi?Wi:"-",min:0,max:Fi.length,"aria-label":"Review badge number","aria-invalid":null!=ji,onFocus:function(){null==Wi&&Li("")},onBlur:function(){qi(null);var e=Number(Wi);(null==Wi||""===Wi||!Number.isInteger(e)||e<1||e>Fi.length)&&(Gi.current=!1,Li(Ti>=0?String(Ti+1):null))},onChange:function(e){var n=e.target.value;if(/^\d*$/.test(n)){var t=Number(n),i=""!==n&&(t<1||t>Fi.length);qi(i?"out-of-range":null),Gi.current=!0,Li(n)}else qi("invalid-number")},style:{width:30,height:28,padding:0,border:"1px solid ".concat(ji?"#DC2626":"#A5B4FC"),borderRadius:3,color:"#4F46E5",backgroundColor:"#FFFFFF",textAlign:"center",font:"inherit",fontSize:15,outline:"none"}})})),r("span",n({"aria-label":"".concat(Fi.length," reviews"),style:{flex:1,color:"#4F46E5",fontSize:14,whiteSpace:"nowrap",textAlign:"center"}},{children:["of ",Fi.length]})),["previous","next"].map(function(e){var t="previous"===e,i=Ti+(t?-1:1),r=i<0||i>=Fi.length;return o("button",n({type:"button","aria-label":"".concat(t?"Previous":"Next"," review badge"),disabled:r,onClick:function(){return Oi(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)})]})),!Et&&Kn.map(function(e){var t,i,a=rt===e.id,l=null!==(t=Di.get(e.id))&&void 0!==t?t:"1A",u=e.review_step.score,d=e.review_step.confidence,s=H(u,d),c="boundary"===e.kind?G(e.review_step,e.segment,On.get(S(e.segment))):"label"===e.kind?O(e.review_step,e.segment,On.get(S(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=q(u,d,g),m=Ht.has(e.id);return o(I,n({title:g?"data is being processed":"",arrow:!0},{children:o("span",n({ref:function(n){n?Wt.current.set(e.id,n):Wt.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 ki(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(P,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(C,{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)})]}))]})),Ut&>&&r(f,n({anchorElement:gt,placement:"bottom-start",offset:{top:8},width:Math.min(Gt,Z),maxWidth:Z,heightBuffer:null!=vn?vn:25},{children:[st&&o(h,{width:"100%",maxWidth:"100%",score:Ut.review_step.score,reasons:ei,reason:Ut.review_step.reason,gap:Ut.review_step.gap,onBack:function(){return ct(!1)},onClose:Pi}),o("div",n({style:{display:st?"none":"block"}},{children:Ht.has(Ut.id)?o(M,{width:"100%",maxWidth:"100%",headerName:"page"===Ut.kind?"Page format approved":"Split"===ti?"Split approved":"Merged"===ti?"Merge approved":"User approved",headerIcon:"page"===Ut.kind?o(E,{size:18,strokeWidth:2}):"Merged"===ti?o(k,{size:18,strokeWidth:2}):"Split"===ti?o(U,{width:18,height:18}):o(C,{size:18,strokeWidth:2}),title:ui,pageNo:"Page ".concat(Ut.segment.start_page,"-").concat(Ut.segment.end_page),summary:Ci&&_i?o(F,{icon:o(C,{size:14,strokeWidth:2}),title:ui,pageRange:"Page ".concat(Ut.segment.start_page,"-").concat(Ut.segment.end_page),description:null!=yi?yi:null,revertData:_i,confirmDisabled:"page"===Ut.kind?!Si:null==hn||!Si,showDocumentHeader:!1,onRevert:function(){if("page"===Ut.kind){if(!fn||!xi){var e=new Error("SegmentReviewPdfWrapper requires onPageTypeRevert and a classification id to revert a page-type decision.");return null==yn||yn(e,K(Ut)),Promise.reject(e)}return fn({classification_id:xi,human_verdict:"No"},K(Ut))}if(!hn)throw new Error("SegmentReviewPdfWrapper requires onRevert to handle a revert confirmation.");if(!hi)throw new Error("There is no valid revert operation for this review.");var n=fi?"boundary":"label"===Ut.kind?"label":"boundary"===Ut.kind?"boundary":null,t=ci(hi.type);if(n&&t!==n)throw new Error("Cannot use ".concat(null!=t?t:"unknown"," revert metadata for this review. Expected ").concat(n,"."));return hn(hi,K(Ut))},onRevertError:function(e){null==yn||yn(e,K(Ut))},onRevertComplete:function(e){var n,t,i,r,o,a;yt(function(){return new Set}),"page"!==Ut.kind&&(Un(function(){return new Set}),Dn(function(){return new Map})),Ut.id;var l=null!==(n=_i.previousSegments[0])&&void 0!==n?n:_i.currentSegment,u=null==gt?void 0:gt.getBoundingClientRect(),d=null===(t=jt.current)||void 0===t?void 0:t.getBoundingClientRect(),s=Math.min(Z,Math.max(220,Gt)),c=null!==(i=null==u?void 0:u.left)&&void 0!==i?i:(null!==(r=null==d?void 0:d.right)&&void 0!==r?r:window.innerWidth-s-8)+8,v=Math.max(8,Math.min(c,window.innerWidth-s-8)),g=null==(null==u?void 0:u.bottom)?Math.max(8,null!==(o=null==d?void 0:d.top)&&void 0!==o?o:8):u.bottom+8;yt(function(){return new Set}),"page"!==Ut.kind&&(Bt.current=null),At(!1),Rt({title:"Split"===ti?"Split reverted":"Merged"===ti?"Merge reverted":"Approval reverted",description:(null===(a=null==e?void 0:e.message)||void 0===a?void 0:a.trim())||null,segment:l,position:{top:g,left:v,width:s}}),Pi()}},Ut.id):void 0,additionalActions:li?o(A,{metadata:li.metadata,reviewAction:null!==(Re=Ut.segment.review_action)&&void 0!==Re?Re:void 0,startPage:Ut.segment.start_page,endPage:Ut.segment.end_page,title:ui,previousSegmentTitle:$t,nextSegmentTitle:Kt,disabled:xn||!gn||xt===Ut.id,onConfirm:function(e,n){Ai(li,e,n)}}):void 0,cognitiveScore:Ut.review_step.score,styles:{root:{borderColor:"#16A34A"},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:"#16A34A"}}},onCognitiveClick:ni?function(){ct(!0),null==Nn||Nn(K(Ut))}:void 0,onClose:Pi}):"boundary"===Ut.kind?o(g,{width:"100%",maxWidth:"100%",totalPages:ze,title:Ut.segment.label||Ut.segment.title,pageNo:"Page ".concat(Ut.pageNumber),content:null!==(Ne=Ut.review_step.question)&&void 0!==Ne?Ne:null,revertSummary:wi,cognitiveScore:Ut.review_step.score,metadata:Ut.metadata,reviewAction:null!==(Me=Ut.segment.review_action)&&void 0!==Me?Me:void 0,previousSegmentTitle:$t,nextSegmentTitle:Kt,manualPrompt:null!=cn?cn:"Set a custom boundary",defaultStartPage:Ut.segment.start_page,defaultEndPage:Ut.segment.end_page,styles:{root:{borderColor:Qt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Qt.text}}},confirmDisabled:xn||!gn||xt===Ut.id,onConfirm:function(e,n,t){t&&m(n.id)&&Ai(Ut,n.id,t)},onAdjustManually:function(){return null==Rn?void 0:Rn(K(Ut))},onCognitiveClick:ni?function(){ct(!0),null==Nn||Nn(K(Ut))}:void 0,onClose:Pi},Ut.id):"label"===Ut.kind?o(b,{width:"100%",maxWidth:"100%",title:Ut.metadata.current_label||Ut.segment.label||Ut.segment.title,pageNo:"Pages ".concat(Ut.segment.start_page,"-").concat(Ut.segment.end_page),content:null!==(Ae=Ut.review_step.question)&&void 0!==Ae?Ae:null,revertSummary:wi,cognitiveScore:Ut.review_step.score,metadata:Ut.metadata,styles:{root:{borderColor:Qt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Qt.text}}},confirmDisabled:xn||!pn||xt===Ut.id,confirmationBlocked:Xt,confirmationWarning:Xt?"Please confirm the boundary before confirming the title.":void 0,onActionConfirm:function(e,n){Ai(Ut,e,n)},onAdjustManually:function(){return null==Rn?void 0:Rn(K(Ut))},onCognitiveClick:ni?function(){ct(!0),null==Nn||Nn(K(Ut))}:void 0,onClose:Pi},Ut.id):2===(null===(Fe=Ut.metadata.type_choices)||void 0===Fe?void 0:Fe.length)?o(_,{width:"100%",maxWidth:"100%",title:Ut.segment.label||Ut.segment.title,pageNo:"Page ".concat(Ut.pageNumber),content:Ut.review_step.reason,choices:Ut.metadata.type_choices,cognitiveScore:Ut.review_step.score,styles:{root:{borderColor:Qt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Qt.text}}},confirmDisabled:xn||!mn||xt===Ut.id,onConfirm:function(e){Mi(Ut,e)},onCognitiveClick:ni?function(){ct(!0),null==Nn||Nn(K(Ut))}:void 0,onClose:Pi},Ut.id):o(w,{width:"100%",maxWidth:"100%",title:Ut.segment.label||Ut.segment.title,pageNo:"Page ".concat(Ut.pageNumber),content:Ut.review_step.reason,cognitiveScore:Ut.review_step.score,pageType:Ut.metadata.page_type,metadata:Ut.metadata,styles:{root:{borderColor:Qt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Qt.text}}},confirmDisabled:xn||!mn||xt===Ut.id,onActionConfirm:function(e,n){Ai(Ut,e,n)},onCognitiveClick:ni?function(){ct(!0),null==Nn||Nn(K(Ut))}:void 0,onClose:Pi},Ut.id)}))]})),It&&o(R,{children:o(N,n({"aria-live":"polite",sx:{position:"fixed",top:It.position.top,left:It.position.left,zIndex:1600,width:It.position.width,maxWidth:"calc(100vw - 16px)",opacity:Mt?1:0,transform:Mt?"translateY(0)":"translateY(-6px)",transition:"opacity 500ms ease, transform 500ms ease",filter:"drop-shadow(0 12px 24px rgba(15, 23, 42, 0.18))",pointerEvents:Mt?"auto":"none"}},{children:o(T,{title:It.title,description:It.description,onReview:function(){return Ii(It.segment)}})}))})]}))}export{J as SegmentPdfSpecialZoomLevel,Q as default};
|
|
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 g from"../PdfViewer/PdfViewer.js";import v,{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 E,Tooltip as k,Portal as C,Box as R}from"@mui/material";import I from"./ReviewedCard.js";import N from"./ReviewedBoundaryActions.js";import A from"./RevertCard.js";import M from"./RevertSuccessCard.js";import{getPendingMergeImpactedSegmentKeys as F,hasPolledStructuralAction as T,getOptimisticMergeImpactedSegmentKeys as B,shouldHideStructuralBoundaryReview as L,getResolvedScore as W,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,ge,ve,pe,me,fe,he,we,be,ye,_e,xe,Se,Pe,Ee,ke,Ce,Re,Ie,Ne=this,Ae=U.pdfUrl,Me=U.pdfName,Fe=U.segments,Te=U.totalPages,Be=U.styles,Le=U.pdfViewerProps,We=U.specialZoomLevel,ze=U.showBadges,qe=void 0===ze||ze,je=U.sortByConfidence,Ge=void 0===je?"low":je,Oe=U.filterByConfidence,De=void 0===Oe?"all":Oe,Ve=U.showBadgeNavigation,He=void 0===Ve||Ve,Ue=U.autoSelectReviewOnPageChange,Xe=void 0!==Ue&&Ue,Ye=U.autoAdvanceAfterConfirm,Je=void 0===Ye||Ye,Ze=U.autoAdvanceScoreBand,Ke=U.badgePreloadPages,Qe=void 0===Ke?8:Ke,$e=U.badgeOffsetTop,en=void 0===$e?20:$e,nn=U.badgeOffsetRight,tn=void 0===nn?68:nn,rn=U.badgeOffsetLeft,on=void 0===rn?0:rn,an=U.initialReviewId,ln=U.manualPrompt,dn=U.heightBuffer,un=U.onBoundaryAction,sn=U.onLabelAction,cn=U.onPageAction,gn=U.onPageTypeRevert,vn=U.onRevert,pn=U.onActiveReviewChange,mn=U.onCurrentPageChange,fn=U.onActionError,hn=U.disableAllActions,wn=void 0!==hn&&hn,bn=U.disablePdfAnnotations,yn=void 0!==bn&&bn,_n=U.disablePdfTextLayer,xn=void 0===_n||_n,Sn=U.disableTitleCheckUntilBoundaryCheckCompleted,Pn=void 0!==Sn&&Sn,En=U.onAdjustManually,kn=U.onCognitiveClick,Cn=U.className,Rn=U.style,In=U.viewerStyle,Nn=U.railStyle,An=U.redirectionData,Mn=U.onBadgeSelected;console.log("LOG: TOTAL PAGE IN PARENT",Te);var Fn=a(function(){return y(Fe)},[Fe]),Tn=Fn.boundaryReviews,Bn=Fn.labelReviews,Ln=Fn.pageReviews,Wn=l(function(){return new Map}),zn=Wn[0],qn=Wn[1],jn=l(function(){return new Set}),Gn=jn[0],On=jn[1],Dn=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]),Vn=a(function(){return new Set(Bn.map(function(e){return _(e.segment)}))},[Bn]),Hn=a(function(){return F(Fe)},[Fe]);d(function(){qn(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&&!T(r,e)||(t.delete(i),n=!0)}),n?t:e})},[Fe]),d(function(){On(function(e){var n=!1,t=new Set(e);return e.forEach(function(e){zn.has(e)||(t.delete(e),n=!0)}),n?t:e})},[zn]);var Un=a(function(){return B(Fe,zn,Gn)},[Gn,zn,Fe]),Xn=u(null),Yn=a(function(){return e(e(e([],Tn.filter(function(e){return!Hn.has(_(e.segment))&&!Un.has(_(e.segment))&&!L(e.review_step,e.segment,Vn.has(_(e.segment)),zn.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!Hn.has(_(e.segment))&&!Un.has(_(e.segment))}).map(function(e){return n(n({},e),{kind:"label",pageNumber:e.segment.start_page})}),!0),Ln.filter(function(e){return!Hn.has(_(e.segment))&&!Un.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=Dn.get(_(e.segment)))&&void 0!==t?t:Number.MAX_SAFE_INTEGER,o=null!==(i=Dn.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)})},[Tn,Bn,Ln,Un,zn,Hn,Dn,Vn]),Jn=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]),Zn=l(1),Kn=Zn[0],Qn=Zn[1],$n=l(null!=an?an:null),et=$n[0],nt=$n[1],tt=l(null!=an?an:null),it=tt[0],rt=tt[1],ot=l(!1),at=ot[0],lt=ot[1],dt=l(null),ut=dt[0],st=dt[1],ct=l(null),gt=ct[0],vt=ct[1],pt=l(function(){return new Set}),mt=pt[0],ft=pt[1],ht=l(null),wt=ht[0],bt=ht[1],yt=l(null),_t=yt[0],xt=yt[1],St=l(null),Pt=St[0],Et=St[1],kt=l(!1),Ct=kt[0],Rt=kt[1],It=u(0),Nt=u(null),At=u(null),Mt=u(new Map),Ft=u(null),Tt=u(null),Bt=u(null),Lt=l(Y),Wt=Lt[0],zt=Lt[1],qt=null!==(K=null===(X=null==Be?void 0:Be.aside)||void 0===X?void 0:X.width)&&void 0!==K?K:"40%",jt="min(".concat("number"==typeof qt?"".concat(qt,"px"):qt,", ").concat(Y,"px, 100%)");d(function(){ft(function(e){if(0===e.size)return e;var n=new Set(e),t=!1;return Yn.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})},[Yn]),d(function(){var e=Xn.current;if(e&&qe){var n=function(){var n=e.getBoundingClientRect().width;n>0&&zt(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()}}},[qe]);var Gt=a(function(){var e=new Set;return Yn.forEach(function(n){var t;null!=(null===(t=n.review_step.review)||void 0===t?void 0:t.action)&&e.add(n.id)}),e},[Yn]),Ot=a(function(){var e;return null!==(e=Yn.find(function(e){return e.id===et}))&&void 0!==e?e:null},[et,Yn]),Dt=a(function(){return!(!Pn||"label"!==(null==Ot?void 0:Ot.kind))&&Tn.some(function(e){if(_(e.segment)!==_(Ot.segment)||Gt.has(e.id))return!1;var n=W(e.review_step.score,e.review_step.confidence);return null==n||n<85})},[Ot,Tn,Pn,Gt]),Vt=null==Ot?-1:Fe.findIndex(function(e){return _(e)===_(Ot.segment)}),Ht=Vt>0?Fe[Vt-1]:void 0,Ut=Vt>=0?Fe[Vt+1]:void 0,Xt=(null===(Q=null==Ht?void 0:Ht.label)||void 0===Q?void 0:Q.trim())||(null==Ht?void 0:Ht.title),Yt=(null===($=null==Ut?void 0:Ut.label)||void 0===$?void 0:$.trim())||(null==Ut?void 0:Ut.title),Jt=z(null==Ot?void 0:Ot.review_step.score,null==Ot?void 0:Ot.review_step.confidence,null===(ee=null==Ot?void 0:Ot.segment.confidence)||void 0===ee?void 0:ee.awaiting_llm),Zt=(null===(ne=null==Ot?void 0:Ot.review_step.reasons)||void 0===ne?void 0:ne.length)?Ot.review_step.reasons:null!==(ie=null===(te=null==Ot?void 0:Ot.segment.confidence)||void 0===te?void 0:te.reasons)&&void 0!==ie?ie:[],Kt=Boolean(Zt.some(function(e){return e.text.trim()&&["evidence","gap"].includes(e.type.trim().toLowerCase())})||(null===(re=null==Ot?void 0:Ot.review_step.reason)||void 0===re?void 0:re.trim())||(null===(oe=null==Ot?void 0:Ot.review_step.gap)||void 0===oe?void 0:oe.trim())),Qt=null==Ot?null:"boundary"===Ot.kind?q(Ot.review_step,Ot.segment,zn.get(null!==(ae=Ot.segment.stable_key)&&void 0!==ae?ae:"")):j(Ot.review_step,Ot.segment,zn.get(null!==(le=Ot.segment.stable_key)&&void 0!==le?le:"")),$t="label"===(null==Ot?void 0:Ot.kind)?[Qt,Ot.review_step.human_action_enum,null===(de=Ot.review_step.review)||void 0===de?void 0:de.action,null===(ue=Ot.review_step.human_resolution)||void 0===ue?void 0:ue.action]:[],ei="label"===(null==Ot?void 0:Ot.kind)&&$t.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")}),ni=null!=Ot&&Yn.some(function(e){return"boundary"===e.kind&&_(e.segment)===_(Ot.segment)}),ti=ei&&!ni,ii=("boundary"===(null==Ot?void 0:Ot.kind)||ti)&&null!=Ot?function(){var e,t,i,r,o,a;if("boundary"===Ot.kind)return Ot;var l=Tn.find(function(e){return _(e.segment)===_(Ot.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({},Ot),{kind:"boundary",pageNumber:null!==(i=null===(t=Ot.segment.review_action)||void 0===t?void 0:t.focus_page)&&void 0!==i?i:Ot.segment.start_page,metadata:{focus_page:null!==(o=null===(r=Ot.segment.review_action)||void 0===r?void 0:r.focus_page)&&void 0!==o?o:null,boundary_margin:null!==(a=Ot.segment.boundary_margin)&&void 0!==a?a:null,user_actions:[]}})}():void 0,ri=null==Ot?"":(null===(se=Ot.segment.label)||void 0===se?void 0:se.trim())||Ot.segment.title,oi=null==Ot?void 0:Ot.review_step.revert,ai=null==Ot?void 0:Ot.segment.revert,li=function(e){return null==e?void 0:e.trim().toLowerCase()},di=null==Ot||null===(ge=e([],null!==(ce=Ot.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"===li(null===(t=e.revert)||void 0===t?void 0:t.type)}))||void 0===ge?void 0:ge.revert,ui=null!==(ve=null!=oi?oi:null==Ot?void 0:Ot.segment.revert)&&void 0!==ve?ve:di,si=null==ui?void 0:ui.decision.trim().toUpperCase(),ci=null!=Qt?Qt:(null==si?void 0:si.includes("SPLIT"))?"Split":(null==si?void 0:si.includes("MERGE"))?"Merged":null,gi="label"===(null==Ot?void 0:Ot.kind)&&"SET_RANGE"===(null===(pe=null==di?void 0:di.decision)||void 0===pe?void 0:pe.trim().toUpperCase())&&di.current_segment_ids.length!==di.previous_state.length,vi="Merged"===Qt||"Split"===Qt||gi,pi=null==Ot?void 0:vi?"boundary"===li(null==di?void 0:di.type)?di:"boundary"===li(null==ai?void 0:ai.type)?ai:"boundary"===li(null==oi?void 0:oi.type)?oi:void 0:"label"===Ot.kind?"label"===li(null==oi?void 0:oi.type)?oi:void 0:"boundary"===Ot.kind?"boundary"===li(null==oi?void 0:oi.type)?oi:"boundary"===li(null==di?void 0:di.type)?di:"boundary"===li(null==ai?void 0:ai.type)?ai:void 0:void 0,mi=vi&&(null==pi?void 0:pi.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)===pi.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,fi=(null===(me=null==pi?void 0:pi.summary)||void 0===me?void 0:me.trim())||null,hi=vi?(null===(he=null===(fe=null==mi?void 0:mi.human_resolution)||void 0===fe?void 0:fe.change_summary)||void 0===he?void 0:he.trim())||(null===(we=null==pi?void 0:pi.summary)||void 0===we?void 0:we.trim())||"":(null===(_e=null===(ye=null===(be=null==Ot?void 0:Ot.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==Ot?void 0:Ot.review_step)||void 0===xe?void 0:xe.summary)||void 0===Se?void 0:Se.trim())||"",wi=null==Ot?null:pi?{currentSegment:{title:ri,startPage:Ot.segment.start_page,endPage:Ot.segment.end_page},previousSegments:pi.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"===ci?{currentSegment:{title:ri,startPage:Ot.segment.start_page,endPage:Ot.segment.end_page},previousSegments:[{title:"Advice of Award",startPage:1,endPage:25},{title:ri,startPage:Ot.segment.start_page,endPage:Ot.segment.end_page}]}:"Merged"===ci?{currentSegment:{title:ri,startPage:Ot.segment.start_page,endPage:Ot.segment.end_page},previousSegments:[{title:"Advice of Award",startPage:1,endPage:25},{title:"Request for proposal (RFP)",startPage:26,endPage:76}]}:{currentSegment:{title:ri,startPage:Ot.segment.start_page,endPage:Ot.segment.end_page},previousSegments:[]},bi="page"===(null==Ot?void 0:Ot.kind)&&null!==(Pe=Ot.metadata.classification_id)&&void 0!==Pe?Pe:null,yi="page"===(null==Ot?void 0:Ot.kind)?Boolean(gn&&bi):Boolean((null==pi?void 0:pi.operation_id)&&(null==pi?void 0:pi.type)&&!1!==(null==pi?void 0:pi.revertable));Boolean(wi&&yi&&("page"!==(null==Ot?void 0:Ot.kind)||bi));var _i=s(function(e,n){It.current+=1,Nt.current={requestId:It.current,pageNumber:e,reviewId:n},vt({pageNumber:e,requestId:It.current})},[]),xi=s(function(e){var n,t;!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)&&(null==Mn||Mn({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}),xt(null),Et(null),nt(e.id),rt(e.id),lt(!1),st(null),_i(e.pageNumber,e.id),null==pn||pn(e.id,e.segment))},[pn,Mn,_i]);d(function(){if(Pt){var e=requestAnimationFrame(function(){return Rt(!0)}),n=window.setTimeout(function(){Rt(!1)},3500),t=window.setTimeout(function(){Et(null)},4e3);return function(){cancelAnimationFrame(e),window.clearTimeout(n),window.clearTimeout(t)}}},[Pt]),d(function(){var e,n,t,i;if(An){if("pageGroup"===An.type){var r=null!==(e=An.pages)&&void 0!==e?e:[],o=null!==(n=An.pageIndex)&&void 0!==n?n:0,a=r[o];if(null==a)return;return Si(),xt({pages:r,index:o,label:null!==(t=An.groupLabel)&&void 0!==t?t:""}),It.current+=1,void vt({pageNumber:a,requestId:It.current})}if(xt(null),An.reviewId){var l=Yn.find(function(e){return e.id===An.reviewId&&(!An.type||e.kind===An.type)});if(l)return void xi(l)}if(An.classificationId){var d=Yn.find(function(e){return!("page"!==e.kind||e.metadata.classification_id!==An.classificationId||An.segmentId&&e.segment.segment_id!==An.segmentId||An.type&&e.kind!==An.type)});if(d)return void xi(d)}if(An.pageNumber&&An.type){var u=Number(An.pageNumber);if(Number.isInteger(u)&&!(u<1)){var s=null===(i=An.pageType)||void 0===i?void 0:i.trim().toLowerCase(),c=Yn.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(!An.segmentId||e.segment.segment_id===An.segmentId)&&n===u&&e.kind===An.type&&t});c?xi(c):"page"===An.type&&(Si(),It.current+=1,vt({pageNumber:u,requestId:It.current}))}}}},[An,xi,Yn]);var Si=s(function(){Nt.current=null,lt(!1),nt(null),st(null),null==pn||pn(null,null)},[pn]),Pi=s(function(e){var n;Rt(!1),Et(null);var t=null!==(n=Yn.find(function(n){return!Gt.has(n.id)&&"boundary"===n.kind&&n.segment.start_page===e.startPage&&n.segment.end_page===e.endPage}))&&void 0!==n?n:Yn.find(function(n){return!Gt.has(n.id)&&n.segment.start_page<=e.startPage&&n.segment.end_page>=e.startPage});t?xi(t):(Si(),It.current+=1,vt({pageNumber:e.startPage,requestId:It.current}))},[Si,Gt,Yn,xi]),Ei=s(function(e,n){var t,i=G(e.review_step.score),r=null==Ze||i===Ze,o=mt.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},[Ze,mt]),ki=s(function(e){var n;if(Je){var t=Yn.findIndex(function(n){return n.id===e}),i=null!==(n=Yn.find(function(n,i){return i>t&&Ei(n,e)}))&&void 0!==n?n:Yn.find(function(n){return Ei(n,e)});i?requestAnimationFrame(function(){return xi(i)}):Si()}else Si()},[Je,Si,Ei,Yn,xi]),Ci=s(function(e,n,r){return t(Ne,void 0,void 0,function(){var t,o,a,l,d,u,s,c,g,v;return i(this,function(i){switch(i.label){case 0:if(wn)return[2];if("boundary"===e.kind&&!un)return[2];if("label"===e.kind&&!sn)return[2];if("page"===e.kind&&!cn)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!=un&&Je&&(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&&(At.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}),bt(e.id),i.label=1;case 1:return i.trys.push([1,8,9,10]),"boundary"!==e.kind?[3,3]:[4,null==un?void 0:un(n,r,t)];case 2:return i.sent(),[3,7];case 3:return"label"!==e.kind?[3,5]:[4,null==sn?void 0:sn(n,r,t)];case 4:return i.sent(),[3,7];case 5:return"page"!==e.kind?[3,7]:[4,null==cn?void 0:cn(n,r,t)];case 6:i.sent(),i.label=7;case 7:return ft(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),On(function(e){var n=new Set(e);return o===p.SET_RANGE?n.add(c):n.delete(c),n}),qn(function(e){var n=new Map(e);return n.set(c,l),n})),At.current?(At.current.ready=!0,s&&(g=Yn.find(function(n){return"label"===n.kind&&_(n.segment)===_(e.segment)}))&&requestAnimationFrame(function(){return xi(g)})):ki(e.id),[3,10];case 8:return v=i.sent(),d&&(At.current=null),null==fn||fn(v,t),[3,10];case 9:return bt(null),[7];case 10:return[2]}})})},[Je,wn,fn,un,sn,cn,gn,Yn,Fe,xi,ki]);d(function(){var e=At.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=Yn.find(function(e){var n=i.get(_(e.segment));return null!=n&&n>=t&&Ei(e)});if(!r)return At.current=null,void Si();requestAnimationFrame(function(){At.current=null,xi(r)})}}},[Si,Ei,Yn,Fe,xi]),d(function(){At.current||et&&!Yn.some(function(e){return e.id===et})&&Si()},[et,Si,Yn]),d(function(){if(Xe&&!At.current){var e=Yn.find(function(e){return e.pageNumber===Kn});e&&e.id!==et&&xi(e)}},[et,Xe,Kn,xi,Yn]),d(function(){At.current||et&&!Yn.some(function(e){var n;return e.id===et&&!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)})&&Si()},[et,Si,Yn]);var Ri=a(function(){var n=Yn.filter(function(e){var n;return!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)});if("all"===De)return n;var t=["low","medium","high"].filter(function(e){return e!==Ge}),i=e([Ge],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})},[De,Ge,Yn]),Ii=Ri.findIndex(function(e){return e.id===it}),Ni=l(null),Ai=Ni[0],Mi=Ni[1],Fi=u(!1),Ti=s(function(e){var n=Ri[e];n&&xi(n)},[Ri,xi]);s(function(e){if(!(!_t||e<0||e>=_t.pages.length)){var t=_t.pages[e];null!=t&&(Si(),xt(function(t){return null==t?t:n(n({},t),{index:e})}),It.current+=1,vt({pageNumber:t,requestId:It.current}))}},[_t,Si]),d(function(){it&&!Ri.some(function(e){return e.id===it})&&rt(null)},[Ri,it]),d(function(){Fi.current=!1,Mi(Ii>=0?String(Ii+1):null)},[Ii,Ri.length]),d(function(){if(Fi.current&&null!=Ai){var e=window.setTimeout(function(){var e=Number(Ai.trim()),n=e-1;Number.isInteger(e)&&n>=0&&n<Ri.length&&(Fi.current=!1,Ti(n))},300);return function(){return window.clearTimeout(e)}}},[Ti,Ai,Ri.length]);var Bi=a(function(){var e=new Map;Yn.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=Dn.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},[Yn,Dn]),Li=a(function(){var e=new Map;Yn.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},[Yn]),Wi=s(function(e){return{startPage:Math.max(0,e.startPage-Qe),endPage:Math.min(e.numPages-1,e.endPage+Qe)}},[Qe]),zi=s(function(){var e,n=Tt.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();Yn.forEach(function(e){var n,r=Mt.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=Li.get(e.id))&&void 0!==n?n:0,u=l.top+en+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=Ft.current;if(a){var l=null==_t?void 0:_t.pages[_t.index],d=null==l?null:t.querySelector('[data-testid="core__page-layer-'.concat(l-1,'"]'));if(_t&&d){var u=d.getBoundingClientRect().top+en,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(et&&null==Nt.current){var g=Mt.current.get(et);g&&"hidden"!==g.style.visibility&&st(function(e){return e===g?e:g})}}},[_t,et,en,Li,Yn]),qi=s(function(e){var n=Nt.current;n&&n.requestId===e.requestId&&n.pageNumber===e.pageNumber&&(Nt.current=null,zi(),requestAnimationFrame(function(){if(null==Nt.current){var e=Mt.current.get(n.reviewId);e&&"hidden"!==e.style.visibility&&st(e)}}))},[zi]);return d(function(){var e=Bt.current;if(e&&qe){var n=null,t=function(){null==n&&(n=requestAnimationFrame(function(){n=null,zi()}))};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()}}},[qe,zi]),r("div",n({ref:Tt,className:Cn,style:n(n({},Rn),{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({},In),{flex:"1 1 auto",width:qe?"auto":"100%",minWidth:0,height:"100%",boxSizing:"border-box"})},{children:o(g,n({highlightText:[],highlightPages:{},highlightCordinatePages:[],useCoordinates:!1,showRotateButton:!0},Le,{defaultScale:void 0===We?null!==(Ee=null==Le?void 0:Le.defaultScale)&&void 0!==Ee?Ee:c.PageFit:J[We],disablePdfAnnotations:yn,disablePdfTextLayer:xn,pdfUrl:Ae,pdfName:Me,segments:Jn,navigationRequest:gt,onNavigationSettled:qi,setRenderRange:Wi,onCurrentPageChange:function(e){Qn(e),null==Nt.current&&Ot&&Ot.pageNumber!==e&&Si(),null==mn||mn(e)}}))})),qe&&r("aside",n({"aria-label":"Page review badges",ref:Xn,style:n(n({},Nn),{position:"relative",width:jt,maxWidth:Y,flex:"0 1 ".concat(jt),minHeight:0,overflow:"hidden",boxSizing:"border-box"})},{children:[_t&&o("span",n({ref:Ft,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(E,n({fontFamily:"Inter",sx:{fontSize:11,fontWeight:500,color:"#475569",whiteSpace:"nowrap"}},{children:[_t.label||"Pages"," Pg: ",_t.index+1]}))})),He&&Ri.length>0&&!_t&&r("nav",n({"aria-label":"Review badge navigation",style:{position:"absolute",top:8,right:tn||"auto",left:on||"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!=Ai?Ai:"-","aria-label":"Review badge number",onChange:function(e){Fi.current=!0,Mi(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(Ri.length," reviews"),style:{flex:1,color:"#4F46E5",fontSize:14,whiteSpace:"nowrap",textAlign:"center"}},{children:["of ",Ri.length]})),["previous","next"].map(function(e){var t="previous"===e,i=Ii+(t?-1:1),r=i<0||i>=Ri.length;return o("button",n({type:"button","aria-label":"".concat(t?"Previous":"Next"," review badge"),disabled:r,onClick:function(){return Ti(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)})]})),!_t&&Yn.map(function(e){var t,i,a=et===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,zn.get(_(e.segment))):"label"===e.kind?j(e.review_step,e.segment,zn.get(_(e.segment))):null,g=null!=c?c:"N/A"===s?s:"".concat(s,"%"),v=!0===(null===(i=e.segment.confidence)||void 0===i?void 0:i.awaiting_llm),p=z(d,u,v),m=Gt.has(e.id);return o(k,n({title:v?"data is being processed":"",arrow:!0},{children:o("span",n({ref:function(n){n?Mt.current.set(e.id,n):Mt.current.delete(e.id)},style:{position:"absolute",top:0,left:10,visibility:"hidden",display:"inline-flex",cursor:v?"not-allowed":"pointer"}},{children:o("button",n({disabled:v,type:"button","aria-pressed":a,"aria-label":v?"".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 xi(e)},style:{cursor:"inherit",display:"flex",alignItems:"center",justifyContent:"space-around",gap:4,width:c?m&&!v?115:90:m&&!v?105:80,minHeight:25,padding:"2px 5px",border:"1px solid ".concat(m&&!v?"#E2E8F0":p.border),borderRadius:16,backgroundColor:m&&!v?"#F8FAFC":p.background,color:m&&!v?"#475569":p.text,font:"inherit",alignContent:"center",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)"}},{children:r(E,n({fontFamily:"Inter",sx:{display:"flex",gap:1,alignItems:"center",flexDirection:"row"}},m&&!v?{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:g}))]})),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:g}))]}))]}))}))}))}),e.id)})]}))]})),Ot&&ut&&r(f,n({anchorElement:ut,placement:"bottom-start",offset:{top:8},width:Math.min(Wt,Y),maxWidth:Y,heightBuffer:null!=dn?dn:25},{children:[at&&o(h,{width:"100%",maxWidth:"100%",score:Ot.review_step.score,reasons:Zt,reason:Ot.review_step.reason,gap:Ot.review_step.gap,onBack:function(){return lt(!1)},onClose:Si}),o("div",n({style:{display:at?"none":"block"}},{children:Gt.has(Ot.id)?o(I,{width:"100%",maxWidth:"100%",headerName:"page"===Ot.kind?"Page format approved":"Split"===Qt?"Split approved":"Merged"===Qt?"Merge approved":"User approved",headerIcon:"page"===Ot.kind?o(S,{size:18,strokeWidth:2}):"Merged"===Qt?o(P,{size:18,strokeWidth:2}):"Split"===Qt?o(H,{width:18,height:18}):o(x,{size:18,strokeWidth:2}),title:ri,pageNo:"Page ".concat(Ot.segment.start_page,"-").concat(Ot.segment.end_page),summary:wi?o(A,{icon:o(x,{size:14,strokeWidth:2}),title:ri,pageRange:"Page ".concat(Ot.segment.start_page,"-").concat(Ot.segment.end_page),description:null!=hi?hi:null,revertData:wi,confirmDisabled:"page"===Ot.kind?!yi:null==vn||!yi,showDocumentHeader:!1,onRevert:function(){if("page"===Ot.kind){if(!gn||!bi){var e=new Error("SegmentReviewPdfWrapper requires onPageTypeRevert and a classification id to revert a page-type decision.");return null==fn||fn(e,Z(Ot)),Promise.reject(e)}return gn({classification_id:bi,human_verdict:"No"},Z(Ot))}if(!vn)throw new Error("SegmentReviewPdfWrapper requires onRevert to handle a revert confirmation.");if(!pi)throw new Error("There is no valid revert operation for this review.");var n=vi?"boundary":"label"===Ot.kind?"label":"boundary"===Ot.kind?"boundary":null,t=li(pi.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(pi,Z(Ot))},onRevertError:function(e){null==fn||fn(e,Z(Ot))},onRevertComplete:function(e){var n,t,i,r,o,a;ft(function(){return new Set}),"page"!==Ot.kind&&(On(function(){return new Set}),qn(function(){return new Map})),Ot.id;var l=null!==(n=wi.previousSegments[0])&&void 0!==n?n:wi.currentSegment,d=null==ut?void 0:ut.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,g=Math.max(8,Math.min(c,window.innerWidth-s-8)),v=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;ft(function(){return new Set}),"page"!==Ot.kind&&(At.current=null),Rt(!1),Et({title:"Split"===Qt?"Split reverted":"Merged"===Qt?"Merge reverted":"Approval reverted",description:(null===(a=null==e?void 0:e.message)||void 0===a?void 0:a.trim())||("Split"===Qt?"Pages ".concat(Ot.segment.start_page,"-").concat(Ot.segment.end_page," are now part of “Advice of Award” again. Review the boundary and title to confirm the document."):"Merged"===Qt?"The documents have been separated again. Review their boundaries and titles to confirm them.":"“".concat(ri,"” is pending review again. Review the boundary and title to confirm the document.")),segment:l,position:{top:v,left:g,width:s}}),Si()}},Ot.id):void 0,additionalActions:ii?o(N,{metadata:ii.metadata,reviewAction:null!==(ke=Ot.segment.review_action)&&void 0!==ke?ke:void 0,startPage:Ot.segment.start_page,endPage:Ot.segment.end_page,title:ri,previousSegmentTitle:Xt,nextSegmentTitle:Yt,disabled:wn||!un||wt===Ot.id,onConfirm:function(e,n){Ci(ii,e,n)}}):void 0,cognitiveScore:Ot.review_step.score,styles:{root:{borderColor:"#16A34A"},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:"#16A34A"}}},onCognitiveClick:Kt?function(){lt(!0),null==kn||kn(Z(Ot))}:void 0,onClose:Si}):"boundary"===Ot.kind?o(v,{width:"100%",maxWidth:"100%",totalPages:Te,title:Ot.segment.label||Ot.segment.title,pageNo:"Page ".concat(Ot.pageNumber),content:null!==(Ce=Ot.review_step.question)&&void 0!==Ce?Ce:null,revertSummary:fi,cognitiveScore:Ot.review_step.score,metadata:Ot.metadata,reviewAction:null!==(Re=Ot.segment.review_action)&&void 0!==Re?Re:void 0,previousSegmentTitle:Xt,nextSegmentTitle:Yt,manualPrompt:null!=ln?ln:"Set a custom boundary",defaultStartPage:Ot.segment.start_page,defaultEndPage:Ot.segment.end_page,styles:{root:{borderColor:Jt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Jt.text}}},confirmDisabled:wn||!un||wt===Ot.id,onConfirm:function(e,n,t){t&&m(n.id)&&Ci(Ot,n.id,t)},onAdjustManually:function(){return null==En?void 0:En(Z(Ot))},onCognitiveClick:Kt?function(){lt(!0),null==kn||kn(Z(Ot))}:void 0,onClose:Si},Ot.id):"label"===Ot.kind?o(w,{width:"100%",maxWidth:"100%",title:Ot.metadata.current_label||Ot.segment.label||Ot.segment.title,pageNo:"Pages ".concat(Ot.segment.start_page,"-").concat(Ot.segment.end_page),content:null!==(Ie=Ot.review_step.question)&&void 0!==Ie?Ie:null,revertSummary:fi,cognitiveScore:Ot.review_step.score,metadata:Ot.metadata,styles:{root:{borderColor:Jt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Jt.text}}},confirmDisabled:wn||!sn||wt===Ot.id,confirmationBlocked:Dt,confirmationWarning:Dt?"Please confirm the boundary before confirming the title.":void 0,onActionConfirm:function(e,n){Ci(Ot,e,n)},onAdjustManually:function(){return null==En?void 0:En(Z(Ot))},onCognitiveClick:Kt?function(){lt(!0),null==kn||kn(Z(Ot))}:void 0,onClose:Si},Ot.id):o(b,{width:"100%",maxWidth:"100%",title:Ot.segment.label||Ot.segment.title,pageNo:"Page ".concat(Ot.pageNumber),content:Ot.review_step.reason,cognitiveScore:Ot.review_step.score,pageType:Ot.metadata.page_type,metadata:Ot.metadata,styles:{root:{borderColor:Jt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Jt.text}}},confirmDisabled:wn||!cn||wt===Ot.id,onActionConfirm:function(e,n){Ci(Ot,e,n)},onCognitiveClick:Kt?function(){lt(!0),null==kn||kn(Z(Ot))}:void 0,onClose:Si},Ot.id)}))]})),Pt&&o(C,{children:o(R,n({"aria-live":"polite",sx:{position:"fixed",top:Pt.position.top,left:Pt.position.left,zIndex:1600,width:Pt.position.width,maxWidth:"calc(100vw - 16px)",opacity:Ct?1:0,transform:Ct?"translateY(0)":"translateY(-6px)",transition:"opacity 500ms ease, transform 500ms ease",filter:"drop-shadow(0 12px 24px rgba(15, 23, 42, 0.18))",pointerEvents:Ct?"auto":"none"}},{children:o(M,{title:Pt.title,description:Pt.description,onReview:function(){return Pi(Pt.segment)}})}))})]}))}export{X as SegmentPdfSpecialZoomLevel,K as default};
|
|
2
2
|
//# sourceMappingURL=SegmentReviewPdfWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as n}from"tslib";import{getSegmentReviewKey as e}from"./reviewStepAdapters.js";
|
|
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
2
|
//# sourceMappingURL=helper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
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
2
|
//# sourceMappingURL=reviewStepAdapters.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{createBoundaryCardOptions,isBoundaryReviewAction}from"./features/SegmentReviewComponents/BoundaryCard.js";import"tslib";import"react/jsx-runtime";import"react";import"@mui/material/Box";import"@mui/material/Popper";import"@mui/material/SvgIcon";export{default as CognitiveIntegrity}from"./features/SegmentReviewComponents/CognitiveIntegrity.js";export{createLabelCheckOptions,isLabelReviewAction}from"./features/SegmentReviewComponents/LabelCheck.js";export{default as PageCheck,isPageCheckAction}from"./features/SegmentReviewComponents/PageCheck.js";
|
|
1
|
+
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{createBoundaryCardOptions,isBoundaryReviewAction}from"./features/SegmentReviewComponents/BoundaryCard.js";import"tslib";import"react/jsx-runtime";import"react";import"@mui/material/Box";import"@mui/material/Popper";import"@mui/material/SvgIcon";export{default as CognitiveIntegrity}from"./features/SegmentReviewComponents/CognitiveIntegrity.js";export{createLabelCheckOptions,isLabelReviewAction}from"./features/SegmentReviewComponents/LabelCheck.js";export{default as PageCheck,isPageCheckAction}from"./features/SegmentReviewComponents/PageCheck.js";export{extractSegmentReviewData}from"./features/SegmentReviewComponents/reviewStepAdapters.js";export{default as RevertCard}from"./features/SegmentReviewComponents/RevertCard.js";export{default as RevertSuccessCard}from"./features/SegmentReviewComponents/RevertSuccessCard.js";export{SegmentPdfSpecialZoomLevel,default as SegmentReviewPdfWrapper}from"./features/SegmentReviewComponents/SegmentReviewPdfWrapper.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{ReviewPanel}from"./features/ReviewPanel/ReviewPanel.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{SourcesBQCitation,findSourceCitation,parseSourcesBQHref}from"./features/DualCitation/SourceBQDataCompnent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as PromptemonBlockViewer}from"./features/PromptemonBlockViewer/PromptemonBlockViewer.js";export{default as PromptemonViewer}from"./features/PromptemonViewer/PromptemonViewer.js";export{default as SPBAnalysisPanel}from"./features/SPBAnalysisPanel/Spbanalysispanel.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{useOnDemandCitationFetch}from"./hooks/useOnDemandCitationFetch.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as BPACitationRenderer}from"./features/BPACitationRenderer/BPACitationRenderer.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";export{default as PromptCitation}from"./features/PromptCitation/PromptCitation.js";export{default as CitationDependencyGraph}from"./features/PromptCitation/CitationDependencyGraph.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"axios";const n=async n=>{try{console.log("[getRedlineDocumentId] Request:",n);const{data:o}=await e.get(`${n.baseApiUrl}/book-finder-mode/get_comparison/${n.comparisonId}`);return console.log("[getRedlineDocumentId] Response:",o),o}catch(e){console.log("[getRedlineDocumentId] Error:",e)}return null},o=async(n,o)=>{try{console.log("[createRedlineDocument] Request:",n);const{data:t}=await e.post(`${n.baseApiUrl}/redlining/create`,{user_name:n.userName,user_email:n.userEmail,redline_config_id:n.redlineConfigId,changelog_config_id:n.changelogConfigId,artifact_id:n.artifactId,input_data:n.inputData,document_metadata:{comparison_id:n.comparisonId}},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[createRedlineDocument] Response:",t),t}catch(e){console.log("[createRedlineDocument] Error:",e)}return null},t=async(n,o)=>{try{console.log("[updateRedlineDocument] Request:",n);const{data:t}=await e.put(`${n.baseApiUrl}/redlining/update-manual`,{document_id:n.documentId,segment_id:n.sectionId,user_name:n.userName,user_email:n.userEmail,new_plain_content:n.updatedContent,redline_config_id:n.redlineConfigId},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[updateRedlineDocument] Response:",t),t}catch(e){console.log("[updateRedlineDocument] Error:",e)}return null},i=async(n,o)=>{try{console.log("[resolveRedline] Request:",n);const{data:t}=await e.post(`${n.baseApiUrl}/redlining/resolve`,{document_id:n.documentId,user_name:n.userName,user_email:n.userEmail,redline_id:n.redlineId,action:n.action,redline_config_id:n.redlineConfigId},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[resolveRedline] Response:",t),t}catch(e){console.log("[resolveRedline] Error:",e)}return null},r=async(n,o)=>{try{console.log("[fetchRedlineDocumentSection] Request:",n);const{data:t}=await e.get(`${n.baseApiUrl}/redlining/segment/${n.documentId}/${n.sectionId}?redline_config_id=${n.redlineConfigId}`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[fetchRedlineDocumentSection] Response:",t),t}catch(e){console.log("[fetchRedlineDocumentSection] Error:",e)}return null};export{o as createRedlineDocument,r as fetchRedlineDocumentSection,n as getRedlineDocumentId,i as resolveRedline,t as updateRedlineDocument};
|
|
1
|
+
import e from"axios";const n=async n=>{try{console.log("[getRedlineDocumentId] Request:",n);const{data:o}=await e.get(`${n.baseApiUrl}/book-finder-mode/get_comparison/${n.comparisonId}`);return console.log("[getRedlineDocumentId] Response:",o),o}catch(e){console.log("[getRedlineDocumentId] Error:",e)}return null},o=async(n,o)=>{try{console.log("[createRedlineDocument] Request:",n);const{data:t}=await e.post(`${n.baseApiUrl}/redlining/create`,{user_name:n.userName,user_email:n.userEmail,redline_config_id:n.redlineConfigId,changelog_config_id:n.changelogConfigId,artifact_id:n.artifactId,input_data:n.inputData,document_metadata:{comparison_id:n.comparisonId}},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[createRedlineDocument] Response:",t),t}catch(e){console.log("[createRedlineDocument] Error:",e)}return null},t=async(n,o)=>{try{console.log("[updateRedlineDocument] Request:",n);const{data:t}=await e.put(`${n.baseApiUrl}/redlining/update-manual`,{document_id:n.documentId,segment_id:n.sectionId,user_name:n.userName,user_email:n.userEmail,new_plain_content:n.updatedContent,redline_config_id:n.redlineConfigId},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[updateRedlineDocument] Response:",t),t}catch(e){console.log("[updateRedlineDocument] Error:",e)}return null},i=async(n,o)=>{try{console.log("[resolveRedline] Request:",n);const{data:t}=await e.post(`${n.baseApiUrl}/redlining/resolve`,{document_id:n.documentId,user_name:n.userName,user_email:n.userEmail,redline_id:n.redlineId,action:n.action,redline_config_id:n.redlineConfigId},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[resolveRedline] Response:",t),t}catch(e){console.log("[resolveRedline] Error:",e)}return null},r=async(n,o)=>{if(!(n.documentId&&"string"==typeof n.documentId&&n.documentId.trim()&&n.sectionId&&"string"==typeof n.sectionId&&n.sectionId.trim()&&n.baseApiUrl&&"string"==typeof n.baseApiUrl&&n.baseApiUrl.trim()&&n.redlineConfigId&&"string"==typeof n.redlineConfigId&&n.redlineConfigId.trim()))return console.error("[fetchRedlineDocumentSection] Invalid or missing payload parameters"),null;try{console.log("[fetchRedlineDocumentSection] Request:",n);const{data:t}=await e.get(`${n.baseApiUrl}/redlining/segment/${n.documentId}/${n.sectionId}?redline_config_id=${n.redlineConfigId}`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[fetchRedlineDocumentSection] Response:",t),t}catch(e){console.log("[fetchRedlineDocumentSection] Error:",e)}return null};export{o as createRedlineDocument,r as fetchRedlineDocumentSection,n as getRedlineDocumentId,i as resolveRedline,t as updateRedlineDocument};
|
|
2
2
|
//# sourceMappingURL=redlineService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveCompareTest.d.ts","sourceRoot":"","sources":["../../../src/CognitiveCompareTest.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"CognitiveCompareTest.d.ts","sourceRoot":"","sources":["../../../src/CognitiveCompareTest.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,oBAAoB,+CAkOzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedlineEditorTest.d.ts","sourceRoot":"","sources":["../../../src/RedlineEditorTest.tsx"],"names":[],"mappings":"AA6BA,iBAAS,iBAAiB,
|
|
1
|
+
{"version":3,"file":"RedlineEditorTest.d.ts","sourceRoot":"","sources":["../../../src/RedlineEditorTest.tsx"],"names":[],"mappings":"AA6BA,iBAAS,iBAAiB,4CAinBzB;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAUvJ,QAAA,MAAM,iBAAiB,+
|
|
1
|
+
{"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAUvJ,QAAA,MAAM,iBAAiB,+CAwtFtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties } from "react";
|
|
2
|
+
import type { OnDemandCitationContext } from "./CognitiveCompareTypes";
|
|
2
3
|
interface CitationAnchorProps {
|
|
3
4
|
href: string;
|
|
4
5
|
children: any;
|
|
@@ -24,6 +25,7 @@ interface CitationAnchorProps {
|
|
|
24
25
|
defaultState?: boolean;
|
|
25
26
|
metaData?: any;
|
|
26
27
|
onFullscreenChange?: (isFullscreen: boolean) => void;
|
|
28
|
+
onDemandCitationContext?: OnDemandCitationContext;
|
|
27
29
|
}
|
|
28
30
|
declare const CitationAnchor: React.FC<CitationAnchorProps>;
|
|
29
31
|
export default CitationAnchor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CitationAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationAnchor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CitationAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationAnchor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EACV,aAAa,EAKhB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAIvE,UAAU,mBAAmB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,WAAW,CAAC,EAAE;QACV,qBAAqB,CAAC,EAAE,aAAa,CAAC;QACtC,KAAK,CAAC,EAAE,aAAa,CAAC;QACtB,cAAc,CAAC,EAAE,aAAa,CAAC;QAC/B,iBAAiB,CAAC,EAAE,aAAa,CAAC;QAClC,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,mBAAmB,CAAC,EAAE,aAAa,CAAC;QACpC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,oBAAoB,CAAC,EAAE,aAAa,CAAC;QACrC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACrD;AAeD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyUjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -7,7 +7,14 @@ type Props = {
|
|
|
7
7
|
deviationData?: Record<string, any> | null;
|
|
8
8
|
open: boolean;
|
|
9
9
|
onCitationFullscreenChange?: (isFullscreen: boolean) => void;
|
|
10
|
+
tabKey?: "deviation" | "association";
|
|
11
|
+
sectionTitle?: string;
|
|
12
|
+
referenceSectionTitle?: string;
|
|
13
|
+
sourceNodeId?: string;
|
|
14
|
+
deviationKey?: string;
|
|
15
|
+
baseContentId?: string;
|
|
16
|
+
compareContentIds?: string[];
|
|
10
17
|
};
|
|
11
|
-
declare function CitationRenderer({ content, title, citations, styles, docData, deviationData, open, onCitationFullscreenChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function CitationRenderer({ content, title, citations, styles, docData, deviationData, open, onCitationFullscreenChange, tabKey, sectionTitle, referenceSectionTitle, sourceNodeId, deviationKey, baseContentId, compareContentIds, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
19
|
export default CitationRenderer;
|
|
13
20
|
//# sourceMappingURL=CitationRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationRenderer.tsx"],"names":[],"mappings":"AAYA,KAAK,KAAK,GAAG;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,0BAA0B,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7D,MAAM,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC,CAAA;AAkCD,iBAAS,gBAAgB,CAAC,EACtB,OAAY,EACZ,KAAU,EACV,SAAc,EACd,MAAW,EACX,OAAmC,EACnC,aAAoB,EACpB,IAAI,EACJ,0BAA0B,EAC1B,MAAM,EACN,YAAY,EACZ,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,iBAAiB,GACpB,EAAE,KAAK,2CAmKP;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface CitationRendererInnerProps {
|
|
3
|
+
href: string;
|
|
4
|
+
children: any;
|
|
5
|
+
metaData: any;
|
|
6
|
+
citationTitle: string;
|
|
7
|
+
citationType?: string;
|
|
8
|
+
citationReason?: string;
|
|
9
|
+
isFullscreen: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const CitationRendererInner: React.FC<CitationRendererInnerProps>;
|
|
12
|
+
export default CitationRendererInner;
|
|
13
|
+
//# sourceMappingURL=CitationRendererInner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CitationRendererInner.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationRendererInner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAUvC,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,OAAO,CAAA;CACxB;AA8ED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqK/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CognitiveCompareProps } from "./CognitiveCompareTypes";
|
|
2
2
|
import { SHARED_MARKDOWN_STYLES } from "./CognitiveCompareConfig";
|
|
3
|
-
declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, badgeStyleOverride, guidelinesData, gptWebCitationConfig }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, badgeStyleOverride, guidelinesData, isGuidelineMode: isGuidelineModeFromParent, gptWebCitationConfig, onDemandCitationConfig, }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { SHARED_MARKDOWN_STYLES };
|
|
5
5
|
export default CognitiveCompare;
|
|
6
6
|
//# sourceMappingURL=CognitiveCompare.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAiClC,QAAA,MAAM,gBAAgB,0aA+BnB,qBAAqB,4CA2gGvB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RuleData, SectionPopupState, SummaryPopupState } from "./CognitiveCompareTypes";
|
|
2
2
|
export declare const DEFAULT_DEVIAION_COLOR = "#3730A3";
|
|
3
3
|
export declare const POPUP_GAP = 12;
|
|
4
|
-
export declare const POPUP_WIDTH =
|
|
4
|
+
export declare const POPUP_WIDTH = 1050;
|
|
5
5
|
export declare const VIEWPORT_MARGIN = 12;
|
|
6
6
|
export declare const ARROW_SIZE = 10;
|
|
7
7
|
export declare const DEFAULT_RULE_FALLBACK: RuleData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveCompareConstants.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAEhD,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"CognitiveCompareConstants.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAEhD,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,WAAW,OAAO,CAAC;AAChC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,UAAU,KAAK,CAAC;AAG7B,eAAO,MAAM,qBAAqB,EAAE,QAAgC,CAAC;AACrE,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;AACnE,eAAO,MAAM,yBAAyB,EAAE,iBAavC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAC,iBAMtC,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { CognitiveCompareOnDemandCitationConfig } from "./onDemandCitations";
|
|
3
|
+
export type { BuildOnDemandCitationContextsParams, CognitiveCompareCitationPayload, CognitiveCompareOnDemandCitationConfig, ExtractedOnDemandCitationLink, NormalizedOnDemandCitationMap, OnDemandCitationCacheEntry, OnDemandCitationCacheStatus, OnDemandCitationContext, OnDemandCitationIdentityConfig, OnDemandCitationRequestConfig, OnDemandCitationSource, OnDemandCitationSources, OnDemandCitationStrategy, OnDemandCitationTabKey, ParsedOnDemandCitationHref, } from "./onDemandCitations";
|
|
2
4
|
export interface ComparisonFieldAnalysis {
|
|
3
5
|
relation: string;
|
|
4
6
|
score: number;
|
|
@@ -102,8 +104,9 @@ export interface GptWebCitationConfig {
|
|
|
102
104
|
headers?: Record<string, string>;
|
|
103
105
|
}
|
|
104
106
|
export interface CognitiveCompareProps {
|
|
105
|
-
guidelinesData?: Record<string, any> | null;
|
|
107
|
+
guidelinesData?: string | Record<string, any> | null;
|
|
106
108
|
gptWebCitationConfig?: GptWebCitationConfig;
|
|
109
|
+
onDemandCitationConfig?: CognitiveCompareOnDemandCitationConfig;
|
|
107
110
|
isGuidelineMode?: boolean;
|
|
108
111
|
componentHeaderText?: string;
|
|
109
112
|
treeData?: Record<string, any> | null;
|
|
@@ -184,6 +187,10 @@ export interface CognitivePopupProps {
|
|
|
184
187
|
docData?: Record<string, any> | null;
|
|
185
188
|
deviationData?: DeviationDataEntry | null;
|
|
186
189
|
isLoading?: boolean;
|
|
190
|
+
sourceNodeId?: string;
|
|
191
|
+
deviationKey?: string;
|
|
192
|
+
baseContentId?: string;
|
|
193
|
+
compareContentIds?: string[];
|
|
187
194
|
}
|
|
188
195
|
export type SectionBlock = {
|
|
189
196
|
id?: string;
|
|
@@ -225,6 +232,10 @@ export type SectionPopupState = {
|
|
|
225
232
|
deviationData?: DeviationDataEntry | null;
|
|
226
233
|
isLoading?: boolean;
|
|
227
234
|
hasGuidelineMatches?: boolean;
|
|
235
|
+
sourceNodeId?: string;
|
|
236
|
+
deviationKey?: string;
|
|
237
|
+
baseContentId?: string;
|
|
238
|
+
compareContentIds?: string[];
|
|
228
239
|
};
|
|
229
240
|
export type Row = {
|
|
230
241
|
left?: SectionBlock;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveCompareTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareTypes.ts"],"names":[],"mappings":";AAEA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAA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KAAK,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEJ,MAAM,MAAM,SAAS,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,CAC3E,GAAG,EACH,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAChC,CAAC"}
|
|
1
|
+
{"version":3,"file":"CognitiveCompareTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareTypes.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,qBAAqB,CAAC;AAElF,YAAY,EACV,mCAAmC,EACnC,+BAA+B,EAC/B,sCAAsC,EACtC,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,2BAA2B,EAC3B,uBAAuB,EACvB,8BAA8B,EAC9B,6BAA6B,EAC7B,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B,EAAE;QAC1B,OAAO,EAAE;YACP,aAAa,EAAE,MAAM,CAAC;YACtB,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,MAAM,EAAE;YACN,CAAC,GAAG,EAAE,MAAM,GACV,uBAAuB,GACvB;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;aAAE,CAAC;SAC1D,CAAC;KACH,CAAC;CACH;AAED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,CAAC;CACxB,CAAC;AAEJ,MAAM,MAAM,SAAS,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,CAC3E,GAAG,EACH,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAChC,CAAC"}
|
|
@@ -63,6 +63,18 @@ export declare const DEVIATION_BADGE_SEPARATOR = "::";
|
|
|
63
63
|
export declare const isMissingStr: (str: string | undefined | null) => boolean;
|
|
64
64
|
export declare const hasMeaningfulRedlineTags: (content: unknown) => boolean;
|
|
65
65
|
export declare const stripRedlineTags: (content: unknown) => string;
|
|
66
|
+
export type TextMatchRange = {
|
|
67
|
+
start: number;
|
|
68
|
+
end: number;
|
|
69
|
+
};
|
|
70
|
+
export declare const findTextMatchRange: (content: string, highlight: string, ignorePunctuation?: boolean) => TextMatchRange | null;
|
|
71
|
+
/**
|
|
72
|
+
* Redline highlights can span prose plus one or more Markdown tables. A small
|
|
73
|
+
* structural difference in any later row should not prevent the deviation
|
|
74
|
+
* badge from receiving an inline anchor. Prefer the complete range, then fall
|
|
75
|
+
* back to the first meaningful line that is actually present in the content.
|
|
76
|
+
*/
|
|
77
|
+
export declare const findRedlineTextAnchorRange: (content: string, highlight: string) => TextMatchRange | null;
|
|
66
78
|
export declare const getLhsDeviationDisplayIndexes: (sections: SectionBlock[], leftDocId: string | undefined, deviationNumberRegistry: Record<string, number>) => Map<string, number>;
|
|
67
79
|
export declare const extractDeviationScore: (evaluationResult: any, fallbackLabel?: any) => any;
|
|
68
80
|
export declare const getBentArrowPath: (x1: number, y1: number, x2: number, y2: number, radius?: number) => string;
|