@viswa-test/test-citation 0.0.333 → 0.0.335
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/PdfViewer/PdfViewer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/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/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/CognitiveIntegrity.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/PageCheck.js +2 -0
- package/dist/cjs/features/SegmentReviewComponents/PageCheck.js.map +1 -0
- 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/PdfViewer/PdfViewer.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/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/CognitiveIntegrity.js +1 -1
- package/dist/features/SegmentReviewComponents/LabelCheck.js +1 -1
- package/dist/features/SegmentReviewComponents/PageCheck.js +2 -0
- package/dist/features/SegmentReviewComponents/PageCheck.js.map +1 -0
- 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/RedlineEditorTest.d.ts.map +1 -1
- package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +39 -29
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/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 +1 -3
- package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts +1 -3
- package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +51 -0
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +1 -0
- package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts +1 -2
- package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +5 -17
- 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.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts +5 -6
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +1 -1
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +37 -35
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/redlineService.d.ts.map +1 -1
- package/package.json +9 -4
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/guidelineTargets.js +0 -2
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/guidelineTargets.js.map +0 -1
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.js +0 -2
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.js.map +0 -1
- package/dist/cjs/features/CognitiveCompare/components/GuidelineSkeletonLoader.js +0 -2
- package/dist/cjs/features/CognitiveCompare/components/GuidelineSkeletonLoader.js.map +0 -1
- package/dist/cjs/features/CognitiveCompare/utils/normalizeRedlineMarkdown.js +0 -2
- 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/ChartBreakoutCircle.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/RevertCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js.map +0 -1
- package/dist/features/CognitiveCompare/Guidelines/utils/guidelineTargets.js +0 -2
- package/dist/features/CognitiveCompare/Guidelines/utils/guidelineTargets.js.map +0 -1
- package/dist/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.js +0 -2
- package/dist/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.js.map +0 -1
- package/dist/features/CognitiveCompare/components/GuidelineSkeletonLoader.js +0 -2
- package/dist/features/CognitiveCompare/components/GuidelineSkeletonLoader.js.map +0 -1
- package/dist/features/CognitiveCompare/utils/normalizeRedlineMarkdown.js +0 -2
- 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/ChartBreakoutCircle.js +0 -2
- package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
- package/dist/features/SegmentReviewComponents/RevertCard.js +0 -2
- package/dist/features/SegmentReviewComponents/RevertCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
- package/dist/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
- package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
- package/dist/features/SegmentReviewComponents/ReviewedCard.js +0 -2
- package/dist/features/SegmentReviewComponents/ReviewedCard.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/assests/icons/ChartSplitIcon.d.ts +0 -3
- package/dist/types/src/assests/icons/ChartSplitIcon.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/Guidelines/utils/guidelineTargets.d.ts +0 -3
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/guidelineTargets.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.d.ts +0 -19
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveCompare/components/GuidelineSkeletonLoader.d.ts +0 -8
- package/dist/types/src/features/CognitiveCompare/components/GuidelineSkeletonLoader.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/CognitiveCompare/utils/normalizeRedlineMarkdown.d.ts +0 -6
- package/dist/types/src/features/CognitiveCompare/utils/normalizeRedlineMarkdown.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/ChartBreakoutCircle.d.ts +0 -3
- package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts +0 -37
- package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts +0 -9
- package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +0 -7
- package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/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/segmentReviewEdgeCases.test.d.ts +0 -2
- package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts.map +0 -1
- /package/dist/cjs/features/{CognitiveCompare → RequirementAI/components/RichTextEditor/Editor}/utils/normalizeRedlineMarkdown.js.map +0 -0
- /package/dist/features/{CognitiveCompare → RequirementAI/components/RichTextEditor/Editor}/utils/normalizeRedlineMarkdown.js.map +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { BoundaryReviewAction, BoundaryReviewMetadata } from './BoundaryCard';
|
|
2
2
|
import type { LabelReviewAction, LabelReviewMetadata } from './LabelCheck';
|
|
3
|
+
import type { PageCheckAction, PageCheckMetadata, PageCheckPageType } from './PageCheck';
|
|
3
4
|
export interface ReviewStepReview {
|
|
4
|
-
action: BoundaryReviewAction | LabelReviewAction;
|
|
5
|
+
action: BoundaryReviewAction | LabelReviewAction | PageCheckAction;
|
|
5
6
|
reviewed_by: string;
|
|
6
7
|
reviewed_at: string;
|
|
7
8
|
}
|
|
@@ -39,13 +40,15 @@ export interface ReviewStepMetadata {
|
|
|
39
40
|
current_label?: string | null;
|
|
40
41
|
custom_label?: string | null;
|
|
41
42
|
group_id?: string | null;
|
|
43
|
+
page_type?: PageCheckPageType | null;
|
|
44
|
+
page_num?: number | null;
|
|
45
|
+
classification_id?: string | null;
|
|
42
46
|
user_actions?: readonly string[];
|
|
43
47
|
performed_actions?: readonly ReviewStepPerformedAction[];
|
|
44
48
|
}
|
|
45
49
|
export interface ReviewStepSource {
|
|
46
50
|
type: string;
|
|
47
51
|
title?: string | null;
|
|
48
|
-
question?: string | null;
|
|
49
52
|
format?: string | null;
|
|
50
53
|
confidence?: string | null;
|
|
51
54
|
decided_by?: string | null;
|
|
@@ -94,39 +97,30 @@ export interface SegmentHumanActionLogEntry extends ReviewStepPerformedAction {
|
|
|
94
97
|
before: ReviewStepValueSnapshot | null;
|
|
95
98
|
after: ReviewStepValueSnapshot | null;
|
|
96
99
|
}
|
|
97
|
-
export interface
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
performed_by: string;
|
|
116
|
-
performed_at: string;
|
|
117
|
-
revertable: boolean;
|
|
118
|
-
blocked_reason?: string | null;
|
|
119
|
-
summary?: string | null;
|
|
120
|
-
state_hash?: string | null;
|
|
121
|
-
current_segment_ids: readonly string[];
|
|
122
|
-
previous_state: readonly SegmentRevertSnapshot[];
|
|
100
|
+
export interface PageClassificationSource {
|
|
101
|
+
id?: string | null;
|
|
102
|
+
page_num?: number | null;
|
|
103
|
+
page_type?: string | null;
|
|
104
|
+
severity?: string | null;
|
|
105
|
+
score?: string | number | null;
|
|
106
|
+
machine_classification?: {
|
|
107
|
+
verdict?: string | null;
|
|
108
|
+
confidence?: string | null;
|
|
109
|
+
score?: string | number | null;
|
|
110
|
+
decisioning_method?: string | null;
|
|
111
|
+
} | null;
|
|
112
|
+
human_action?: {
|
|
113
|
+
verdict?: string | null;
|
|
114
|
+
reviewed_by?: string | null;
|
|
115
|
+
reviewed_at?: string | null;
|
|
116
|
+
} | null;
|
|
117
|
+
reasons?: readonly SegmentConfidenceReason[] | null;
|
|
123
118
|
}
|
|
124
119
|
export interface SegmentReviewSource {
|
|
125
120
|
bundle_id?: string;
|
|
126
121
|
run_id?: string;
|
|
127
122
|
segmentation_index?: number;
|
|
128
|
-
stable_key
|
|
129
|
-
question?: string;
|
|
123
|
+
stable_key?: string;
|
|
130
124
|
segment_id?: string;
|
|
131
125
|
version?: number;
|
|
132
126
|
title: string;
|
|
@@ -135,7 +129,7 @@ export interface SegmentReviewSource {
|
|
|
135
129
|
type_id?: string | null;
|
|
136
130
|
start_page: number;
|
|
137
131
|
end_page: number;
|
|
138
|
-
page_count
|
|
132
|
+
page_count?: number;
|
|
139
133
|
status?: string;
|
|
140
134
|
reviewed_by?: string | null;
|
|
141
135
|
reviewed_at?: string | null;
|
|
@@ -163,13 +157,12 @@ export interface SegmentReviewSource {
|
|
|
163
157
|
segment_pdf_gs_url?: string | null;
|
|
164
158
|
page_image_urls?: readonly string[];
|
|
165
159
|
operation_id?: string | null;
|
|
166
|
-
api_status?: string | null;
|
|
167
|
-
revert?: SegmentRevertInfo | null;
|
|
168
160
|
update_stage?: string | null;
|
|
169
161
|
processing_updated_at?: string | null;
|
|
170
162
|
provisional?: boolean;
|
|
163
|
+
page_classifications?: readonly PageClassificationSource[];
|
|
171
164
|
human_action_log?: readonly SegmentHumanActionLogEntry[];
|
|
172
|
-
review_steps
|
|
165
|
+
review_steps?: readonly ReviewStepSource[];
|
|
173
166
|
segment_score?: string | number | null;
|
|
174
167
|
}
|
|
175
168
|
export interface ExtractedBoundaryReview<TSegment extends SegmentReviewSource> {
|
|
@@ -186,9 +179,18 @@ export interface ExtractedLabelReview<TSegment extends SegmentReviewSource> {
|
|
|
186
179
|
review_step: ReviewStepSource;
|
|
187
180
|
metadata: LabelReviewMetadata;
|
|
188
181
|
}
|
|
189
|
-
|
|
182
|
+
export interface ExtractedPageReview<TSegment extends SegmentReviewSource> {
|
|
183
|
+
id: string;
|
|
184
|
+
reviewStepIndex: number;
|
|
185
|
+
segment: TSegment;
|
|
186
|
+
review_step: ReviewStepSource;
|
|
187
|
+
metadata: PageCheckMetadata;
|
|
188
|
+
}
|
|
189
|
+
export declare const getSegmentReviewKey: (segment: SegmentReviewSource, index?: number) => string;
|
|
190
|
+
/** Converts backend-shaped segments into card-ready boundary, label, and page reviews. */
|
|
190
191
|
export declare const extractSegmentReviewData: <TSegment extends SegmentReviewSource>(segments: readonly TSegment[]) => {
|
|
191
192
|
boundaryReviews: ExtractedBoundaryReview<TSegment>[];
|
|
192
193
|
labelReviews: ExtractedLabelReview<TSegment>[];
|
|
194
|
+
pageReviews: ExtractedPageReview<TSegment>[];
|
|
193
195
|
};
|
|
194
196
|
//# sourceMappingURL=reviewStepAdapters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewStepAdapters.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/reviewStepAdapters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"reviewStepAdapters.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/reviewStepAdapters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM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ation } from "./features/ChatCitation/ChatCitationRenderer";
|
|
12
12
|
export { default as CognitiveDecisioningCard } from "./features/CognitiveDecisioning/CognitiveDecisioningWrapper";
|
|
13
13
|
export { default as PdfViewer } from "./features/PdfViewer/PdfViewer";
|
|
14
|
-
export { CognitiveIntegrity,
|
|
15
|
-
export type { BoundaryCardOption, BoundaryCardProps, BoundaryCardStyles, BoundaryReviewAction, BoundaryReviewConfirmDetails, BoundaryReviewMetadata, CardWrapperProps, CognitiveIntegrityProps, CognitiveIntegrityStyles, ExtractedBoundaryReview, ExtractedLabelReview, LabelCheckOption, LabelCheckProps, LabelCheckStyles, LabelReviewAction, LabelReviewConfirmDetails, LabelReviewMetadata,
|
|
14
|
+
export { CognitiveIntegrity, PageCheck, SegmentReviewPdfWrapper, createBoundaryCardOptions, createLabelCheckOptions, extractSegmentReviewData, isBoundaryReviewAction, isLabelReviewAction, isPageCheckAction } from "./features/SegmentReviewComponents";
|
|
15
|
+
export type { BoundaryCardOption, BoundaryCardProps, BoundaryCardStyles, BoundaryReviewAction, BoundaryReviewConfirmDetails, BoundaryReviewMetadata, CardWrapperProps, CognitiveIntegrityProps, CognitiveIntegrityStyles, ExtractedBoundaryReview, ExtractedLabelReview, ExtractedPageReview, LabelCheckOption, LabelCheckProps, LabelCheckStyles, LabelReviewAction, LabelReviewConfirmDetails, LabelReviewMetadata, PageCheckAction, PageCheckConfirmDetails, PageCheckMetadata, PageCheckPageType, PageCheckProps, PageCheckStyles, PageClassificationSource, ReviewStepSource, ReviewConfidence, ReviewConfidenceFilter, ReviewRedirectionType, SegmentReviewSource, SegmentReviewActionContext, SegmentReviewPdfWrapperProps } from "./features/SegmentReviewComponents";
|
|
16
16
|
export { default as FaqCitation } from "./features/CognitiveDecisioning/FaqCitation/FaqCitation";
|
|
17
17
|
export { default as ImageCitationContent } from "./features/RequirementAiCitations/ImageCitation/ImageCitationContent";
|
|
18
18
|
export { default as VideoCitationContent } from "./features/RequirementAiCitations/VideoCitation/VideoCitationContent";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAC,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC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jG,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,oDAAoD,CAAC;AAC5D,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,sDAAsD,CAAC;AAC9D,YAAY,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,+EAA+E,CAAC;AACvF,YAAY,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,qDAAqD,CAAC;AAC7D,YAAY,EACV,aAAa,IAAI,sBAAsB,EACvC,kBAAkB,IAAI,2BAA2B,EACjD,cAAc,IAAI,uBAAuB,EACzC,iBAAiB,IAAI,0BAA0B,EAC/C,cAAc,IAAI,uBAAuB,GAC1C,MAAM,oCAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redlineService.d.ts","sourceRoot":"","sources":["../../../../src/service/redlineService.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,YAAmB;IAChD,YAAY,EAAE,GAAG,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACtB,iBAeA,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAmB;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS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ACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,GAAG,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACtB,SAAS,MAAM,iBAiCf,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAmB;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B,SAAS,MAAM,iBA8Bf,CAAC;AAEF,eAAO,MAAM,cAAc,YAAmB;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B,SAAS,MAAM,iBA8Bf,CAAC;AAEF,eAAO,MAAM,2BAA2B,YAAmB;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B,SAAS,MAAM,iBA+Bf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viswa-test/test-citation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.335",
|
|
4
4
|
"author": "Viswa Koduru",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
+
"types": "./dist/types/src/index.d.ts",
|
|
16
17
|
"import": "./dist/index.js",
|
|
17
|
-
"require": "./dist/cjs/index.js"
|
|
18
|
-
"types": "./dist/types/index.d.ts"
|
|
18
|
+
"require": "./dist/cjs/index.js"
|
|
19
19
|
},
|
|
20
20
|
"./FaqCitation": {
|
|
21
21
|
"import": "./dist/features/CognitiveDecisioning/FaqCitation/FaqCitation.js",
|
|
@@ -72,6 +72,11 @@
|
|
|
72
72
|
"require": "./dist/cjs/features/PdfViewer/PdfViewer.js",
|
|
73
73
|
"types": "./dist/types/src/features/PdfViewer/PdfViewer.d.ts"
|
|
74
74
|
},
|
|
75
|
+
"./SegmentReview": {
|
|
76
|
+
"import": "./dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js",
|
|
77
|
+
"require": "./dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js",
|
|
78
|
+
"types": "./dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts"
|
|
79
|
+
},
|
|
75
80
|
"./CognitiveInternalgptReasoning": {
|
|
76
81
|
"import": "./dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js",
|
|
77
82
|
"require": "./dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js",
|
|
@@ -204,7 +209,7 @@
|
|
|
204
209
|
"dist"
|
|
205
210
|
],
|
|
206
211
|
"scripts": {
|
|
207
|
-
"start": "craco start",
|
|
212
|
+
"start": "PORT=3005 craco start",
|
|
208
213
|
"build": "rollup -c",
|
|
209
214
|
"tsupBuild": "tsup src/index.ts",
|
|
210
215
|
"test": "craco test",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='[id^="guideline-target-"], [data-web-gpt-active="true"]';exports.GUIDELINE_TARGET_SELECTOR=e,exports.getVisibleGuidelineTargets=function(t){return t?Array.from(t.querySelectorAll(e)).filter(function(e){var t=e.getBoundingClientRect();return t.width>0&&t.height>0}):[]};
|
|
2
|
-
//# sourceMappingURL=guidelineTargets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"guidelineTargets.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../CognitiveComparehelpers.js");exports.resolveGuidelineSelection=function(i){var o,l=i.activeIdentifier,t=i.deviationData,r=i.proposedSections,n="",a=null;if("number"==typeof l){var u=r[l],v=(null==u?void 0:u.nodeId)||(null==u?void 0:u.id);n="string"==typeof v?v:""}else if("string"==typeof l){var d=l.split(e.DEVIATION_BADGE_SEPARATOR);n=d[0]||"",a=d.length>1&&""!==d[1]?d[1]:null}var s=null===(o=null==t?void 0:t[n])||void 0===o?void 0:o.evaluation_result;if(!s||"object"!=typeof s)return{baseNodeId:n,evaluationKey:a,evaluationNodes:[],targetHighlights:[],labelColor:""};var g=null==a?void 0:function(e,i){if(Array.isArray(e)){var o=Number(i);return Number.isInteger(o)?e[o]:void 0}return null==e?void 0:e[i]}(s,a),f=null==a?Object.values(s):g?[g]:[],c=new Set,p=[],h="";return f.forEach(function(e){var i,o,l,t=null===(i=null==e?void 0:e.deviation_highlights)||void 0===i?void 0:i.rulebook_guidelines;if(Array.isArray(t)&&(t.forEach(function(e){if("string"==typeof e&&e.trim()){var i=e.trim().replace(/\s+/g," ").toLocaleLowerCase();c.has(i)||(c.add(i),p.push(e))}}),console.log("LOG: Printing highlights",t,p,c)),!h){var r=null===(l=null===(o=null==e?void 0:e.evaluation_outputs)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.label_color;"string"==typeof r&&(h=r)}}),{baseNodeId:n,evaluationKey:a,evaluationNodes:f,targetHighlights:p,labelColor:h}};
|
|
2
|
-
//# sourceMappingURL=resolveGuidelineSelection.js.map
|
package/dist/cjs/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveGuidelineSelection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(t),a=["96%","88%","92%","72%","60%"],o=function(t){var i=t.index,s=t.lineCount;return r.jsxs(n.Box,{children:[r.jsx(n.Stack,e.__assign({direction:"row",alignItems:"center",spacing:1,sx:{mb:1.25}},{children:r.jsx(n.Skeleton,{variant:"text",width:"".concat(50+13*i%30,"%"),height:22,sx:{borderRadius:1}})})),r.jsx(n.Stack,e.__assign({spacing:.75},{children:Array.from({length:s}).map(function(e,t){return r.jsx(n.Skeleton,{variant:"text",width:a[(i+t)%a.length],height:16,sx:{borderRadius:.5}},t)})}))]})};exports.GuidelineSkeleton=function(t){var i=t.sectionCount,a=void 0===i?3:i;return r.jsx(n.Box,e.__assign({sx:{p:2,display:"flex",flexDirection:"column",gap:2}},{children:Array.from({length:a}).map(function(e,t){return r.jsxs(s.default.Fragment,{children:[r.jsx(o,{index:t,lineCount:3+t%3}),t<a-1&&r.jsx(n.Divider,{sx:{my:.5,borderColor:"#EEF0F4"}})]},t)})}))};
|
|
2
|
-
//# sourceMappingURL=GuidelineSkeletonLoader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GuidelineSkeletonLoader.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n,t,r,d,a,l=require("tslib"),i=String.raw(e||(e=l.__makeTemplateObject(["(?:[^>\"']|\"[^\"]*\"|'[^']*')*"],["(?:[^>\"']|\"[^\"]*\"|'[^']*')*"]))),c=new RegExp(String.raw(n||(n=l.__makeTemplateObject(["</?(?:manual|updated)\b",">"],["<\\/?(?:manual|updated)\\b",">"])),i),"gi"),s=new RegExp(String.raw(t||(t=l.__makeTemplateObject(["<(deleted|changed)\b",">([sS]*?)</1s*>"],["<(deleted|changed)\\b",">([\\s\\S]*?)<\\/\\1\\s*>"])),i),"gi"),u=new RegExp(String.raw(r||(r=l.__makeTemplateObject(["<deleted\b",">([sS]*?)\n\n|</deleted>s*<changed\b",">([^|<]*)|</changed>s*|"],["<deleted\\b",">([\\s\\S]*?)\\n\\n\\|<\\/deleted>\\s*<changed\\b",">([^|<]*)\\|<\\/changed>\\s*\\|"])),i,i),"gi"),g=function(e){var n=e.trim();if(!n.includes("|"))return null;for(var t=[],r="",d=0;d<n.length;d+=1){var a=n[d],l=d>0&&"\\"===n[d-1];"|"!==a||l?r+=a:(t.push(r.trim()),r="")}return t.push(r.trim()),n.startsWith("|")&&t.shift(),n.endsWith("|")&&t.pop(),t},o=function(e){return!!(null==e?void 0:e.length)&&e.every(function(e){return/^:?-{3,}:?$/.test(e)})},h=function(e){return"| ".concat(e.join(" | ")," |")};exports.normalizeRedlineMarkdown=function(e){if(!e)return"";var n=e.replace(c,"");return function(e){for(var n=e.split("\n"),t=function(e){var t=g(n[e]);if(!o(t))return"continue";var r=g(n[e-1]);if(!(null==r?void 0:r.length))return"continue";for(;r.length>t.length&&-1!==(s=r.findIndex(function(e){return""===e}));)r.splice(s,1);for(var d=Math.max(r.length,t.length),a=e+1,l=0,i=[];a<n.length&&""!==n[a].trim();){var c=g(n[a]);if(!c)break;for(;c.length>d;){var s;if(-1===(s=c.findIndex(function(e){return""===e})))break;c.splice(s,1)}i.push({lineIndex:a,cells:c}),l=Math.max(l,c.length),a+=1}for(var u=Math.max(r.length,t.length,l);r.length<u;)r.push("");for(;t.length<u;)t.push("---");i.forEach(function(e){for(var t=e.lineIndex,r=e.cells;r.length<u;)r.push("");n[t]=h(r)}),n[e-1]=h(r),n[e]=h(t)},r=1;r<n.length;r+=1)t(r);return n.join("\n")}(n=(n=function(e){var n=new RegExp(String.raw(d||(d=l.__makeTemplateObject(["(<deleted\b",">(?:(?!</deleteds*>)[sS])*?|(?:(?!</deleteds*>)[sS])*?</deleteds*>)[ \t]*(<changed\b",">[^|]*?</changeds*>)[ \t]*|"],["(<deleted\\b",">(?:(?!<\\/deleted\\s*>)[\\s\\S])*?\\|(?:(?!<\\/deleted\\s*>)[\\s\\S])*?<\\/deleted\\s*>)[ \\t]*(<changed\\b",">[^|]*?<\\/changed\\s*>)[ \\t]*\\|"])),i,i),"gi"),t=e.replace(n,"$1 |\n$2"),r=new RegExp(String.raw(a||(a=l.__makeTemplateObject(["(<deleted\b",">(?:(?!</deleteds*>)[sS])*?|(?:(?!</deleteds*>)[sS])*?</deleteds*>)s*(?=<changed\b",">)"],["(<deleted\\b",">(?:(?!<\\/deleted\\s*>)[\\s\\S])*?\\|(?:(?!<\\/deleted\\s*>)[\\s\\S])*?<\\/deleted\\s*>)\\s*(?=<changed\\b",">)"])),i,i),"gi"),c=t.replace(r,"$1\n");return c.replace(s,function(e,n,t,r){if(!t.includes("|"))return e;var d=c.slice(0,r),a=/(?:^|\n)[ \t]*$/.test(d);return t.split("\n").map(function(e,t){if(!e)return e;var r=e;r.includes("|")&&!/^\s*\|/.test(r)&&(t>0||a)&&(r="| ".concat(r));var d=g(r);return o(d)?r:r.split(/(\|)/).map(function(e){return"|"!==e&&e.trim()?"<".concat(n,">").concat(e,"</").concat(n,">"):e}).join("")}).join("\n")})}(n=n.replace(u,function(e,n,t){return"<deleted>".concat(n,"</deleted>\n\n")+"| <changed>".concat(t.trim(),"</changed> |")}))).replace(/([([])\s+(?=<(?:deleted|changed)>)/gi,"$1"))};
|
|
2
|
-
//# sourceMappingURL=normalizeRedlineMarkdown.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),n=require("react"),t=require("react-markdown"),i=require("rehype-raw"),l=require("./utils/citationData.utils.js"),c=require("./GptWebCitation.module.css.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(t),u=a(i);exports.default=function(t){var i=t.content,a=t.activeHighlightIndex,o=t.onHighlightCountChange,h=n.useRef(null),d=n.useMemo(function(){var e,r=i.match(/id=["']highlighted-\d+["']/g);if(null==r?void 0:r.length)return r.length;var n=i.match(/<a\b[^>]*>/gi);return null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0},[i]),f=n.useMemo(function(){return/id=["']highlighted-\d+["']/.test(i)},[i]);n.useEffect(function(){null==o||o(d)},[d,o]),n.useEffect(function(){var e;if(h.current){var r=h.current.querySelector("#highlighted-".concat(a));if(r)r.scrollIntoView({behavior:"smooth",block:"center"});else null===(e=h.current.querySelectorAll("a[href]")[a])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})}},[a,i]);var g=n.useMemo(function(){var n=-1;return{span:function(n){n.node;var t=e.__rest(n,["node"]),i=t.id;if(null==i?void 0:i.startsWith("highlighted-")){var l=Number(i.replace("highlighted-",""))===a;return r.jsx("span",e.__assign({},t,{id:i,className:"".concat(c.default.highlight).concat(l?" ".concat(c.default.highlightActive):"")}))}return r.jsx("span",e.__assign({},t))},a:function(t){var i,s=t.children,u=t.href,o=t.title,h=t.className;if(!u)return r.jsx(r.Fragment,{children:s});n+=1;var d=!f&&n===a,g=null!==(i=l.sanitizeExternalUrl(u))&&void 0!==i?i:"#";return r.jsx("a",e.__assign({href:g,title:o,target:"_blank",rel:"noreferrer",className:"".concat(c.default.citationLink).concat(d?" ".concat(c.default.citationLinkActive):"").concat(h?" ".concat(h):"")},{children:s}))},code:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("code",e.__assign({},i,{children:t}))},ol:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("ol",e.__assign({},i,{children:t}))},ul:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("ul",e.__assign({},i,{children:t}))},li:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("li",e.__assign({},i,{children:t}))},p:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("p",e.__assign({},i,{children:t}))}}},[a,f,i]);return r.jsx("div",e.__assign({ref:h,className:c.default.markdownBody},{children:r.jsx(s.default,e.__assign({rehypePlugins:[u.default],components:g},{children:i}))}))};
|
|
2
|
-
//# sourceMappingURL=GptWebCitationMarkdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),a=require("lucide-react"),e=require("dayjs"),n=require("../ScannedDocCitation/ScannedDocCitation.js"),o=require("../InstantLearningCitation/InstantLearningCitationComponent.js"),l=require("../InstantLearningCitation/SlashLoader.js"),r=require("../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),u=require("../RequirementAiCitations/ImageCitation/ImageCitationContent.js"),s=require("../RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),c=require("../ChatCitation/ChatCitationRenderer.js");function d(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var v=d(e),m=function(t,i,a){if(!t)throw new Error("[CitationOrchestratorComponent] ".concat(i,': missing required field "').concat(a,'" in customMetaData'))},g=function(t,i){if(!Object.values(t).some(Boolean))throw new Error("[CitationOrchestratorComponent] ".concat(i,': missing one of "').concat(Object.keys(t).join('", "'),'" in customMetaData'))};exports.default=function(e){var d,_,h,C,D,f,p,M,x,b,j,I,w,S,q,R,k,y,T,P,L,U,O,z,A,E,F,W,B,G,X,H,N,$,J,K,Q,V,Y,Z,tt,it,at=e.href,et=e.citations,nt=e.children,ot=e.isStreaming,lt=e.onCitationToggle,rt=e.chatCitationConfig;if(ot)return i.jsxs("span",t.__assign({style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontWeight:500,color:"#6D28D9"}},{children:[i.jsx("span",{children:nt}),i.jsx(l.default,{})]}));try{var ut=new URL(at,"http://example.com"),st=ut.searchParams.get("citationNumber"),ct=ut.searchParams.get("decisionStrength");if(!st)return null;var dt=(null==et?void 0:et.find(function(t){var i;return String(null===(i=null==t?void 0:t.customMetaData)||void 0===i?void 0:i.citation_number)===st}))||null;if(!dt)return null;var vt=(null===(d=null==dt?void 0:dt.customMetaData)||void 0===d?void 0:d.citation_type)||((null===(_=dt.customMetaData)||void 0===_?void 0:_.type)||"").replace(/s$/,"");if("scanned_doc_citation"===vt){var mt=null==dt?void 0:dt.customMetaData.value;if(null==mt?void 0:mt.length)return i.jsx(n.default,{pages:mt,subHeadingText:dt.customMetaData.artifact_title});m(null===(h=null==dt?void 0:dt.customMetaData)||void 0===h?void 0:h.gs_url,"scanned_doc_citation","gs_url");var gt=[null===(C=null==dt?void 0:dt.customMetaData)||void 0===C?void 0:C.gs_url],_t=(null!==(D=dt.customMetaData.highlighted_coordinates)&&void 0!==D?D:[]).map(function(t,i){return{pageIndex:i,bboxes:[t]}});return i.jsx(n.default,{images:gt,highlights:_t})}if("IL"===vt){m(dt.customMetaData.il_learning,"IL","il_learning");var ht=nt||(null===(f=dt.customMetaData)||void 0===f?void 0:f.link_text)||(null===(p=dt.customMetaData)||void 0===p?void 0:p.citation_source)||String(null!==(M=dt.customMetaData.citation_number)&&void 0!==M?M:1);return i.jsx(o.default,{citation:dt,linkTitle:ht,onCitationToggle:null!=lt?lt:function(){},decisionStrengthFromUrl:ct||(null===(x=dt.customMetaData)||void 0===x?void 0:x.decision_strength)||""})}if("chat_citation"===vt){var Ct=null!=rt?rt:{},Dt=null===(I=null!==(j=null===(b=null==dt?void 0:dt.customMetaData)||void 0===b?void 0:b.chat_data)&&void 0!==j?j:[])||void 0===I?void 0:I.map(function(i){return t.__assign(t.__assign({},i),{timeStamp:v.default(i.timeStamp)})}),ft=!!(null===(w=null==dt?void 0:dt.customMetaData)||void 0===w?void 0:w.rule_book_content);return i.jsx(c.default,{showRootContainer:null===(S=Ct.showRootContainer)||void 0===S||S,reversePanels:Ct.reversePanels,isRenderedCustomComponent:Ct.isRenderedCustomComponent,modalContainerStyle:Ct.modalContainerStyle,additionalData:Ct.additionalData,closePreview:Ct.closePreview,selectedIdFromReason:null!==(q=Ct.selectedIdFromReason)&&void 0!==q?q:void 0,rootContainer:t.__assign(t.__assign({},Ct.rootContainer),{relevanceScore:dt.customMetaData.relevance_score}),chatContainer:t.__assign(t.__assign({},Ct.chatContainer),{chatData:Dt,summarizedTab:null!==(k=null===(R=Ct.chatContainer)||void 0===R?void 0:R.summarizedTab)&&void 0!==k?k:{chip:{isActive:!0,show:!0}},detailedTab:null!==(T=null===(y=Ct.chatContainer)||void 0===y?void 0:y.detailedTab)&&void 0!==T?T:{chip:{isActive:!1}}}),ruleBookContainer:ft?t.__assign(t.__assign({},Ct.ruleBookContainer),{data:{content:dt.customMetaData.rule_book_content,highlighted_texts:null!==(P=dt.customMetaData.rule_book_highlights)&&void 0!==P?P:[]}}):void 0})}if("gpt_citation"===vt){var pt=null===(L=dt.customMetaData)||void 0===L?void 0:L.value,Mt=null!==(U=null==pt?void 0:pt.text)&&void 0!==U?U:null===(z=null===(O=dt.customMetaData)||void 0===O?void 0:O.data_sources)||void 0===z?void 0:z[0],xt=null!==(A=null==pt?void 0:pt.label)&&void 0!==A?A:null===(F=null===(E=dt.customMetaData)||void 0===E?void 0:E.training_data_title)||void 0===F?void 0:F[0],bt=null!==(W=null==pt?void 0:pt.paraphrase)&&void 0!==W?W:null===(G=null===(B=dt.customMetaData)||void 0===B?void 0:B.paraphrase)||void 0===G?void 0:G[0];return g({data_sources:Mt,training_data_title:xt},"gpt_citation"),i.jsx(r.default,{item:{text:"",dataSource:Mt,trainingDataTitle:xt,paraphrase:bt},headerTitle:"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:a.ChevronDown,ChevronUpIcon:a.ChevronUp,MaximizeIcon:a.Maximize2,CloseIcon:a.X}})}if("web_citation"===vt){!function(t,i,a){m(t,i,a);try{new URL(t)}catch(e){throw new Error("[CitationOrchestratorComponent] ".concat(i,': "').concat(a,'" is not a valid URL: "').concat(t,'"'))}}(null===(X=dt.customMetaData)||void 0===X?void 0:X.link,"web_citation","link");var jt=dt.customMetaData.link,It=nt||(null===(H=dt.customMetaData)||void 0===H?void 0:H.citation_source)||jt;return(null===(N=dt.customMetaData)||void 0===N?void 0:N.screenshot_url)?i.jsx(s.default,{url:jt,label:It,gsUtilPath:null===($=dt.customMetaData)||void 0===$?void 0:$.gs_util_path,signedUrl:null===(J=dt.customMetaData)||void 0===J?void 0:J.screenshot_url,relevanceScore:null===(K=dt.customMetaData)||void 0===K?void 0:K.relevance_score,visitIcon:a.ExternalLink,PreviewDialogCloseIcon:a.X}):i.jsx("a",t.__assign({href:jt,target:"_blank",rel:"noreferrer"},{children:It}))}if("image_citation"===vt)return g({gs_util_path:null===(Q=dt.customMetaData)||void 0===Q?void 0:Q.gs_util_path,signed_url:null===(V=dt.customMetaData)||void 0===V?void 0:V.signed_url},"image_citation"),i.jsx(u.default,{citationTitle:nt||(null===(Y=dt.customMetaData)||void 0===Y?void 0:Y.citation_source),gsUtilPath:null===(Z=dt.customMetaData)||void 0===Z?void 0:Z.gs_util_path,signedUrl:null===(tt=dt.customMetaData)||void 0===tt?void 0:tt.signed_url,relevanceScore:null===(it=dt.customMetaData)||void 0===it?void 0:it.relevance_score})}catch(t){return console.error(t),null}return null};
|
|
2
|
-
//# sourceMappingURL=ParentCitationComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParentCitationComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("@mui/icons-material/ChevronRight"),r=require("@mui/icons-material/Close"),o=require("@mui/icons-material/ExpandMore"),a=require("@mui/material/Box"),s=require("@mui/material/Button"),d=require("@mui/material/ButtonBase"),l=require("@mui/material/Divider"),u=require("@mui/material/IconButton"),c=require("@mui/material/Paper"),x=require("@mui/material/Radio"),f=require("@mui/material/Stack"),m=require("@mui/material/Typography"),g=require("./CognitiveIcon.js"),h=require("./infoAlert.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=p(n),j=p(r),v=p(o),b=p(a),y=p(s),C=p(d),E=p(l),S=p(u),w=p(c),R=p(x),q=p(f),A=p(m),M=function(i,t){return e.__spreadArray([i],Array.isArray(t)?t:null==t?[]:[t],!0)},k=function(e){return"KEEP"===e||"SPLIT_HERE"===e||"MERGE_NEXT"===e||"MERGE_PREVIOUS"===e||"SET_RANGE"===e},z=function(e){return e.user_actions.map(function(i){var t=e.focus_page;switch(i){case"KEEP":return{id:i,title:"Keep as is",description:"Keep the current document boundary unchanged."};case"SPLIT_HERE":return{id:i,title:"Create a separate document",description:t?"Start a new document at page ".concat(t,"."):"Create a new document at this boundary."};case"MERGE_NEXT":return{id:i,title:"Merge into next document",description:t?"Move page ".concat(t," onward into the next document."):"Merge this segment into the next document."};case"MERGE_PREVIOUS":return{id:i,title:"Merge into previous document",description:"Merge this segment into the previous document."};case"SET_RANGE":return{id:i,title:"Adjust page range",description:"Set the start and end pages manually."}}})};exports.createBoundaryCardOptions=z,exports.default=function(n){var r=n.headerName,o=void 0===r?"Boundary Check":r,a=n.title,s=n.pageNo,d=n.content,l=n.cognitiveScore,u=n.config,c=n.metadata,x=n.selectedIndex,f=n.defaultSelectedIndex,m=void 0===f?null:f,p=n.onSelectionChange,I=n.onConfirm,B=n.onActionConfirm,T=n.onCognitiveClick,F=n.onAdjustManually,P=n.onClose,N=n.confirmLabel,W=void 0===N?"Confirm":N,D=n.manualPrompt,G=void 0===D?"Didn't find the right option?":D,H=n.manualActionLabel,L=void 0===H?"Adjust Manually":H,K=n.cognitiveLabel,O=void 0===K?"Cognitive Integrity":K,U=n.showAdjustManually,V=void 0===U||U,X=n.showCognitiveIntegrity,J=void 0===X||X,Q=n.showCloseButton,Y=void 0===Q||Q,Z=n.confirmDisabled,$=void 0!==Z&&Z,ee=n.width,ie=void 0===ee?340:ee,te=n.maxWidth,ne=void 0===te?340:te,re=n.className,oe=n.styles,ae=t.useMemo(function(){return null!=u?u:c?z(c):[]},[u,c]),se=t.useState(m),de=se[0],le=se[1],ue=void 0===x?de:x,ce=null==ue?void 0:ae[ue],xe=$||!ce||!0===ce.disabled||!I&&!B;return i.jsx(w.default,e.__assign({className:re,elevation:4,sx:M({width:ie,maxWidth:ne,borderTop:"4px solid",borderColor:"error.light",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==oe?void 0:oe.root)},{children:i.jsxs(q.default,e.__assign({spacing:1.5,sx:{p:2}},{children:[i.jsxs(q.default,e.__assign({direction:"row",alignItems:"center",spacing:1,sx:null==oe?void 0:oe.header},{children:[i.jsx(h.default,{color:"error"}),i.jsx(A.default,e.__assign({sx:{flex:1,color:"error.main",fontSize:16,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:o})),Y&&i.jsx(S.default,e.__assign({size:"small",onClick:P,disabled:!P,"aria-label":"Close boundary check",sx:{p:.25,"&.Mui-disabled":{color:"text.secondary"}}},{children:i.jsx(j.default,{sx:{fontSize:20}})}))]})),i.jsxs(b.default,{children:[i.jsx(A.default,e.__assign({sx:{color:"text.primary",fontSize:18,fontWeight:500}},{children:a})),null!=s&&i.jsx(A.default,e.__assign({sx:{mt:.25,color:"text.secondary",fontSize:16}},{children:s})),i.jsx(E.default,{sx:{my:1.25}}),null!=d&&i.jsx(A.default,e.__assign({component:"div",sx:{color:"text.secondary",fontSize:15,lineHeight:1.45}},{children:d}))]}),i.jsxs(q.default,e.__assign({spacing:1,role:"radiogroup","aria-label":"Boundary options"},{children:[ae.map(function(t,n){var r=ue===n;return i.jsx(w.default,e.__assign({variant:"outlined",sx:M({borderColor:r?"secondary.main":"divider",borderRadius:2,overflow:"hidden"},null==oe?void 0:oe.option)},{children:i.jsxs(C.default,e.__assign({role:"radio","aria-checked":r,disabled:t.disabled,onClick:function(){return function(e,i){i.disabled||(void 0===x&&le(e),null==p||p(e,i))}(n,t)},sx:{width:"100%",justifyContent:"flex-start",px:1.25,py:1.125,textAlign:"left"}},{children:[i.jsx(R.default,{checked:r,disabled:t.disabled,tabIndex:-1,size:"small",sx:{p:.5,mr:1}}),i.jsxs(b.default,e.__assign({sx:{minWidth:0}},{children:[i.jsx(A.default,e.__assign({sx:{color:"text.primary",fontSize:15,fontWeight:500}},{children:t.title})),null!=t.description&&i.jsx(A.default,e.__assign({sx:{mt:.25,color:"text.secondary",fontSize:13}},{children:t.description}))]}))]}))}),t.id)}),i.jsx(y.default,e.__assign({variant:"contained",fullWidth:!0,disabled:xe,onClick:function(){!xe&&null!=ue&&ce&&(null==I||I(ue,ce),B&&k(ce.id)&&B(ce.id,{selectedIndex:ue,option:ce,metadata:c}))},sx:M({minHeight:48,mt:.25,borderRadius:2,fontSize:17,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==oe?void 0:oe.confirmButton)},{children:W}))]})),i.jsxs(q.default,e.__assign({spacing:1.25,sx:null==oe?void 0:oe.footer},{children:[V&&i.jsxs(C.default,e.__assign({onClick:F,disabled:!F,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[i.jsxs(b.default,{children:[i.jsx(A.default,e.__assign({sx:{color:"text.primary",fontSize:14}},{children:G})),i.jsx(A.default,e.__assign({sx:{mt:.25,color:"text.primary",fontSize:14}},{children:L}))]}),i.jsx(v.default,{sx:{color:"text.secondary"}})]})),J&&i.jsxs(i.Fragment,{children:[i.jsx(E.default,{}),i.jsxs(C.default,e.__assign({onClick:T,disabled:!0,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:"not-allowed"}},{children:[i.jsxs(q.default,e.__assign({direction:"row",alignItems:"center",spacing:1},{children:[i.jsx(g.default,{sx:{color:"text.secondary"}}),i.jsx(A.default,e.__assign({sx:{color:"text.primary",fontSize:15}},{children:O}))]})),i.jsxs(q.default,e.__assign({direction:"row",alignItems:"center",spacing:.5},{children:[null!=l&&i.jsx(b.default,e.__assign({sx:{px:1,py:.125,border:"1.5px solid",borderColor:"secondary.main",borderRadius:10,color:"secondary.main",fontSize:14,lineHeight:1.25}},{children:l})),i.jsx(_.default,{sx:{color:"text.secondary"}})]}))]}))]})]}))]}))}))},exports.isBoundaryReviewAction=k;
|
|
2
|
-
//# sourceMappingURL=BoundaryCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BoundaryCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("@mui/material/Box"),o=require("@mui/material/Popper");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=i(n),u=i(o);exports.default=function(n){var o,i,a=n.anchorRef,s=n.anchorElement,f=n.children,c=n.className,d=n.offset,p=void 0===d?{}:d,m=n.placement,v=void 0===m?"bottom-start":m,x=r.useState(null),h=x[0],_=x[1];return r.useLayoutEffect(function(){var e,t=null!==(e=null!=s?s:null==a?void 0:a.current)&&void 0!==e?e:null;_(function(e){return e===t?e:t})}),t.jsx(u.default,e.__assign({open:Boolean(h),anchorEl:h,placement:v,className:c,popperOptions:{strategy:"fixed"},modifiers:[{name:"offset",options:{offset:[null!==(o=p.left)&&void 0!==o?o:0,null!==(i=p.top)&&void 0!==i?i:0]}}],sx:{zIndex:function(e){return e.zIndex.tooltip}}},{children:t.jsx(l.default,e.__assign({sx:{maxHeight:"calc(85vh - 10px)",overflowY:"auto",pointerEvents:"auto"}},{children:f}))}))};
|
|
2
|
-
//# sourceMappingURL=CardWrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),e=require("react/jsx-runtime");function t(C){return C&&"object"==typeof C&&"default"in C?C:{default:C}}var r=t(require("@mui/material/SvgIcon"));exports.default=function(t){return e.jsxs(r.default,C.__assign({},t,{viewBox:"0 0 12 17",sx:C.__assign({width:12,height:17},t.sx)},{children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.778549 6.35498C0.947509 6.06234 1.14047 5.78701 1.35448 5.53127L1.05841 6.77432C0.87679 7.48466 0.80378 8.17502 1.05378 8.73356C1.09106 8.81682 1.13466 8.8951 1.18403 8.96801C1.17505 9.11859 1.17346 9.27007 1.17938 9.42164C1.21133 10.2394 1.46064 11.0339 1.90165 11.7232C2.34265 12.4126 2.95942 12.9719 3.68845 13.3437C3.78702 13.3948 3.86973 13.4719 3.92758 13.5667C3.98544 13.6614 4.01623 13.7702 4.01664 13.8814V16.3427C4.01664 16.422 4.00103 16.5004 3.97071 16.5736C3.94039 16.6468 3.89595 16.7133 3.83993 16.7693C3.78391 16.8253 3.71741 16.8698 3.64421 16.9001C3.57102 16.9305 3.49257 16.946 3.41335 16.946C3.33412 16.946 3.25567 16.9305 3.18248 16.9001C3.10928 16.8698 3.04278 16.8253 2.98676 16.7693C2.93074 16.7133 2.8863 16.6468 2.85598 16.5736C2.82567 16.5004 2.81006 16.422 2.81006 16.3427V14.2366C1.50675 13.4505 0.563809 12.1847 0.18393 10.7109C-0.195948 9.23705 0.017555 7.67304 0.778549 6.35498ZM2.5956 4.4202C2.58489 4.46583 2.57238 4.51587 2.55818 4.57051L2.10596 6.46709C2.4519 6.00902 2.88178 5.61795 3.37484 5.31587C3.45372 5.26755 3.53389 5.2217 3.61524 5.17836L3.91437 4.02581C3.94069 3.92848 3.96334 3.83471 3.98223 3.74482C3.4887 3.90843 3.02287 4.13636 2.5956 4.4202ZM4.97997 3.50929C4.95187 3.76277 4.89721 4.01844 4.83146 4.26296L4.70096 4.7659C5.02368 4.68809 5.35523 4.64508 5.68997 4.63852C6.50816 4.62249 7.31584 4.82482 8.02986 5.22467C8.74387 5.62452 9.33837 6.20745 9.75227 6.91343C10.1661 7.61942 10.3843 8.42296 10.3845 9.24135V13.029C10.3845 13.1201 10.3483 13.2075 10.2838 13.272C10.2193 13.3365 10.132 13.3726 10.0408 13.3726H8.14698C7.98698 13.3726 7.83353 13.4362 7.72039 13.5493C7.60726 13.6625 7.5437 13.816 7.5437 13.9759V16.3427C7.5437 16.5028 7.60726 16.6562 7.72039 16.7693C7.83353 16.8825 7.98698 16.946 8.14698 16.946C8.30699 16.946 8.46043 16.8825 8.57357 16.7693C8.6867 16.6562 8.75027 16.5028 8.75027 16.3427V14.5792H10.0408C10.2444 14.5792 10.446 14.5391 10.634 14.4612C10.8221 14.3833 10.993 14.2691 11.137 14.1252C11.2809 13.9812 11.3951 13.8103 11.473 13.6223C11.551 13.4342 11.591 13.2326 11.591 13.029V9.24224C11.5909 8.20964 11.3155 7.1957 10.7933 6.30483C10.271 5.41397 9.5209 4.67834 8.61996 4.17369C7.50563 3.55832 6.22659 3.32916 4.97997 3.50929ZM3.31096 7.17824C3.06416 7.47379 2.86777 7.81154 2.73281 8.17818C2.67346 8.33942 2.62681 8.50407 2.59287 8.67068C2.96541 8.66305 3.3259 8.58961 4.09408 7.98043L4.4813 7.65806C4.62698 7.53143 4.68583 7.33671 4.65268 7.14949L4.63322 7.06982C4.53815 6.83998 4.24287 6.77137 4.02738 6.89566C3.80462 7.02416 3.56339 7.12021 3.31096 7.17824ZM5.50956 6.70762C5.39307 6.42581 5.2101 6.22391 4.9955 6.09139C5.4636 5.96152 5.95753 5.9332 6.44355 6.01261C7.21223 6.13821 7.9139 6.52554 8.4298 7.10905C8.7773 7.50191 8.68077 8.0666 8.32362 8.38802C7.27342 9.33691 5.53306 10.5666 3.80331 11.0251C3.36315 11.141 2.88052 10.9286 2.71933 10.4749C2.62076 10.1971 2.55967 9.90972 2.53604 9.62C2.82204 9.61857 3.17908 9.5971 3.63183 9.39587C4.05727 9.20681 4.51985 8.88082 5.10381 8.3732C5.58794 7.95226 5.70675 7.30946 5.5355 6.77894L5.52437 6.74281L5.50956 6.70762Z"}),e.jsx("path",{d:"M2.49253 8.67144C1.98274 8.67144 1.60843 8.35663 1.96545 6.97238L2.55084 4.51665C2.65295 4.12345 2.66944 3.96624 2.55084 3.96624C2.1154 4.07601 2.33401 4.00777 1.9654 4.16485L1.71094 3.73988C2.95167 2.68571 2.97363 2.40709 3.58474 2.40709C4.09454 2.40709 4.17978 3.02062 3.92448 3.96464L3.25466 6.54621C3.13565 7.00253 3.18712 7.15973 3.30531 7.15973C3.56398 7.10114 3.81132 7.00404 4.03939 6.87249C4.25773 6.74655 4.55616 6.81591 4.65239 7.04889C4.72106 7.26145 4.66773 7.49745 4.49914 7.64399C3.36616 8.62885 2.9653 8.67144 2.49253 8.67144ZM3.66602 0.00239655C3.7822 -0.00651177 3.89895 0.00947896 4.00846 0.0493006C4.11797 0.0891223 4.21772 0.151858 4.30105 0.233314C4.38438 0.314771 4.44935 0.413073 4.49165 0.521653C4.53394 0.630232 4.55258 0.746588 4.54631 0.862945V0.860752C4.53258 1.15708 4.40525 1.43674 4.19074 1.64164C3.97623 1.84656 3.69104 1.96097 3.39439 1.96112L3.37064 1.96075C3.25288 1.97358 3.13485 1.95962 3.02324 1.91993C2.91164 1.88024 2.81044 1.81584 2.72723 1.73154C2.64402 1.64723 2.58094 1.54522 2.54271 1.43311C2.50477 1.32187 2.49227 1.20356 2.5061 1.08687C2.51738 0.789536 2.64564 0.508673 2.86299 0.305421C3.08056 0.101963 3.36973 -0.00722427 3.66748 0.00166549L3.66602 0.00239655Z"})]}))};
|
|
2
|
-
//# sourceMappingURL=CognitiveIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("@mui/icons-material/ChevronRight"),r=require("@mui/icons-material/Close"),l=require("@mui/icons-material/ExpandMore"),o=require("@mui/material/Box"),a=require("@mui/material/Button"),s=require("@mui/material/ButtonBase"),d=require("@mui/material/Divider"),u=require("@mui/material/IconButton"),c=require("@mui/material/Paper"),x=require("@mui/material/Radio"),f=require("@mui/material/Stack"),m=require("@mui/material/TextField"),h=require("@mui/material/Typography"),g=require("./CognitiveIcon.js"),p=require("./infoAlert.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=b(n),v=b(r),j=b(l),y=b(o),C=b(a),S=b(s),q=b(d),w=b(u),L=b(c),A=b(x),k=b(f),z=b(m),I=b(h),E=function(i,t){return e.__spreadArray([i],Array.isArray(t)?t:null==t?[]:[t],!0)},B=function(e){return e.user_actions.map(function(i){switch(i){case"KEEP_LABEL":return{id:i,title:"Keep as is",description:e.current_label?'Label stays "'.concat(e.current_label,'"'):"Keep the current document label"};case"SET_CUSTOM_LABEL":return{id:i,title:"Enter a custom label",description:"Create your own document label",requiresInput:!0,inputPlaceholder:e.current_label?"e.g. ".concat(e.current_label):"Enter a document label"}}})},F=function(e){return"KEEP_LABEL"===e||"SET_CUSTOM_LABEL"===e};exports.createLabelCheckOptions=B,exports.default=function(n){var r,l=n.headerName,o=void 0===l?"Label Check":l,a=n.title,s=n.pageNo,d=n.content,u=void 0===d?"We're not fully confident about this label. Confirm it, choose a different type, or add a new one.":d,c=n.cognitiveScore,x=n.config,f=n.metadata,m=n.selectedIndex,h=n.defaultSelectedIndex,b=void 0===h?null:h,M=n.onSelectionChange,W=n.customLabel,R=n.defaultCustomLabel,T=n.onCustomLabelChange,P=n.onConfirm,D=n.onActionConfirm,K=n.onCognitiveClick,H=n.onAdjustManually,N=n.onClose,O=n.confirmLabel,U=void 0===O?"Confirm":O,G=n.customInputAriaLabel,J=void 0===G?"Custom document label":G,Q=n.manualPrompt,V=void 0===Q?"Didn't find the right option?":Q,X=n.manualActionLabel,Y=void 0===X?"Adjust Manually":X,Z=n.cognitiveLabel,$=void 0===Z?"Cognitive Integrity":Z,ee=n.showAdjustManually,ie=void 0===ee||ee,te=n.showCognitiveIntegrity,ne=void 0===te||te,re=n.showCloseButton,le=void 0===re||re,oe=n.confirmDisabled,ae=void 0!==oe&&oe,se=n.width,de=void 0===se?340:se,ue=n.maxWidth,ce=void 0===ue?340:ue,xe=n.className,fe=n.styles,me=t.useMemo(function(){return null!=x?x:f?B(f):[]},[x,f]),he=t.useState(b),ge=he[0],pe=he[1],be=t.useState(null!==(r=null!=R?R:null==f?void 0:f.custom_label)&&void 0!==r?r:""),_e=be[0],ve=be[1],je=void 0===m?ge:m,ye=void 0===W?_e:W,Ce=null==je?void 0:me[je],Se=Boolean(null==Ce?void 0:Ce.requiresInput),qe=ae||!P&&!D||!Ce||!0===Ce.disabled||Se&&0===ye.trim().length,we=function(){if(!qe&&null!=je&&Ce){var e=Se?ye.trim():void 0;null==P||P(je,Ce,e),D&&F(Ce.id)&&D(Ce.id,{selectedIndex:je,option:Ce,customLabel:e,metadata:f})}};return i.jsx(L.default,e.__assign({className:xe,elevation:4,sx:E({width:de,maxWidth:ce,borderTop:"4px solid",borderColor:"error.light",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==fe?void 0:fe.root)},{children:i.jsxs(k.default,e.__assign({spacing:1.5,sx:{p:2}},{children:[i.jsxs(k.default,e.__assign({direction:"row",alignItems:"center",spacing:1,sx:null==fe?void 0:fe.header},{children:[i.jsx(p.default,{color:"error"}),i.jsx(I.default,e.__assign({sx:{flex:1,color:"error.main",fontSize:16,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:o})),le&&i.jsx(w.default,e.__assign({size:"small",onClick:N,disabled:!N,"aria-label":"Close label check",sx:{p:.25,"&.Mui-disabled":{color:"text.secondary"}}},{children:i.jsx(v.default,{sx:{fontSize:20}})}))]})),i.jsxs(y.default,{children:[i.jsx(I.default,e.__assign({sx:{color:"text.primary",fontSize:18,fontWeight:500}},{children:a})),null!=s&&i.jsx(I.default,e.__assign({sx:{mt:.25,color:"text.secondary",fontSize:16}},{children:s})),i.jsx(q.default,{sx:{my:1.25}}),null!=u&&i.jsx(I.default,e.__assign({component:"div",sx:{color:"text.secondary",fontSize:15,lineHeight:1.45}},{children:u}))]}),i.jsxs(k.default,e.__assign({spacing:1,role:"radiogroup","aria-label":"Label options"},{children:[me.map(function(t,n){var r=je===n;return i.jsxs(L.default,e.__assign({variant:"outlined",sx:E({borderColor:r?"secondary.main":"divider",borderRadius:2,overflow:"hidden"},null==fe?void 0:fe.option)},{children:[i.jsxs(S.default,e.__assign({role:"radio","aria-checked":r,disabled:t.disabled,onClick:function(){return function(e,i){i.disabled||(void 0===m&&pe(e),null==M||M(e,i))}(n,t)},sx:{width:"100%",justifyContent:"flex-start",px:1.25,py:1.125,textAlign:"left"}},{children:[i.jsx(A.default,{checked:r,disabled:t.disabled,tabIndex:-1,size:"small",sx:{p:.5,mr:1}}),i.jsxs(y.default,e.__assign({sx:{minWidth:0}},{children:[i.jsx(I.default,e.__assign({sx:{color:"text.primary",fontSize:15,fontWeight:500}},{children:t.title})),null!=t.description&&i.jsx(I.default,e.__assign({sx:{mt:.25,color:"text.secondary",fontSize:13}},{children:t.description}))]}))]})),r&&t.requiresInput&&i.jsx(y.default,e.__assign({sx:{px:1.75,pb:1.5,pl:5.75}},{children:i.jsx(z.default,{autoFocus:!0,fullWidth:!0,size:"small",value:ye,placeholder:t.inputPlaceholder,inputProps:{"aria-label":J},onChange:function(e){return i=e.target.value,void 0===W&&ve(i),void(null==T||T(i));var i},onKeyDown:function(e){"Enter"===e.key&&we()},sx:null==fe?void 0:fe.customInput})}))]}),t.id)}),i.jsx(C.default,e.__assign({variant:"contained",fullWidth:!0,disabled:qe,onClick:we,sx:E({minHeight:48,mt:.25,borderRadius:2,fontSize:17,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==fe?void 0:fe.confirmButton)},{children:U}))]})),i.jsxs(k.default,e.__assign({spacing:1.25,sx:null==fe?void 0:fe.footer},{children:[ie&&i.jsxs(S.default,e.__assign({onClick:H,disabled:!H,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[i.jsxs(y.default,{children:[i.jsx(I.default,e.__assign({sx:{color:"text.primary",fontSize:14}},{children:V})),i.jsx(I.default,e.__assign({sx:{mt:.25,color:"text.primary",fontSize:14}},{children:Y}))]}),i.jsx(j.default,{sx:{color:"text.secondary"}})]})),ne&&i.jsxs(i.Fragment,{children:[i.jsx(q.default,{}),i.jsxs(S.default,e.__assign({onClick:K,disabled:!K,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[i.jsxs(k.default,e.__assign({direction:"row",alignItems:"center",spacing:1},{children:[i.jsx(g.default,{sx:{color:"text.secondary"}}),i.jsx(I.default,e.__assign({sx:{color:"text.primary",fontSize:15}},{children:$}))]})),i.jsxs(k.default,e.__assign({direction:"row",alignItems:"center",spacing:.75},{children:[null!=c&&i.jsx(y.default,e.__assign({sx:{px:1,py:.125,border:"1.5px solid",borderColor:"secondary.main",borderRadius:10,color:"secondary.main",fontSize:14,lineHeight:1.25}},{children:c})),i.jsx(_.default,{sx:{color:"text.secondary"}})]}))]}))]})]}))]}))}))},exports.isLabelReviewAction=F;
|
|
2
|
-
//# sourceMappingURL=LabelCheck.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabelCheck.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("../PdfViewer.js"),r=require("./BoundaryCard.js"),a=require("./CardWrapper.js"),u=require("./LabelCheck.js"),o=require("./reviewStepAdapters.js"),s=function(e){return{reviewId:e.review.id,segment:e.review.segment,pageNumber:e.pageNumber}};exports.default=function(l){var d=this,c=l.pdfUrl,v=l.pdfName,f=l.segments,g=l.pdfViewerProps,p=l.showBadges,w=void 0===p||p,m=l.showResolvedBadges,b=void 0!==m&&m,h=l.autoSelectReviewOnPageChange,_=void 0!==h&&h,y=l.autoAdvanceAfterConfirm,C=void 0===y||y,x=l.badgePreloadPages,j=void 0===x?8:x,N=l.badgeOffsetTop,R=void 0===N?20:N,P=l.badgeOffsetRight,S=void 0===P?8:P,k=l.initialReviewId,A=l.onBoundaryAction,M=l.onLabelAction,F=l.onActiveReviewChange,q=l.onCurrentPageChange,E=l.onActionError,B=l.onAdjustManually,D=l.onCognitiveClick,L=l.className,O=l.style,z=l.viewerStyle,I=l.railStyle,W=t.useMemo(function(){return o.extractSegmentReviewData(f)},[f]),T=W.boundaryReviews,H=W.labelReviews,U=t.useMemo(function(){return e.__spreadArray(e.__spreadArray([],T.map(function(e){var n;return{kind:"boundary",pageNumber:null!==(n=e.metadata.focus_page)&&void 0!==n?n:e.segment.start_page,review:e}}),!0),H.map(function(e){return{kind:"label",pageNumber:e.segment.start_page,review:e}}),!0).sort(function(e,n){return e.pageNumber-n.pageNumber||e.review.id.localeCompare(n.review.id)})},[T,H]),V=t.useMemo(function(){return f.map(function(e){return{title:e.label||e.title,start_page:e.start_page,end_page:e.end_page,page_count:e.end_page-e.start_page+1}})},[f]),G=t.useState(1),J=G[0],K=G[1],Q=t.useState(null!=k?k:null),X=Q[0],Y=Q[1],Z=t.useState(null),$=Z[0],ee=Z[1],ne=t.useState(null),te=ne[0],ie=ne[1],re=t.useState(function(){return new Set}),ae=re[0],ue=re[1],oe=t.useState(null),se=oe[0],le=oe[1],de=t.useRef(0),ce=t.useRef(new Map),ve=t.useRef(null),fe=t.useRef(null),ge=t.useMemo(function(){var e;return null!==(e=U.find(function(e){return e.review.id===X}))&&void 0!==e?e:null},[X,U]),pe=t.useCallback(function(e){de.current+=1,ie({pageNumber:e,requestId:de.current})},[]),we=t.useCallback(function(e,n){var t;Y(e.review.id),ee(null!==(t=null!=n?n:ce.current.get(e.review.id))&&void 0!==t?t:null),pe(e.pageNumber),null==F||F(e.review.id)},[F,pe]),me=t.useCallback(function(){Y(null),ee(null),null==F||F(null)},[F]),be=t.useCallback(function(e){var n;if(C){var t=U.findIndex(function(n){return n.review.id===e}),i=null!==(n=U.find(function(n,i){return i>t&&n.review.id!==e&&!ae.has(n.review.id)}))&&void 0!==n?n:U.find(function(n){return n.review.id!==e&&!ae.has(n.review.id)});i?requestAnimationFrame(function(){return we(i)}):me()}else me()},[C,me,ae,U,we]),he=t.useCallback(function(n,t,i){return e.__awaiter(d,void 0,void 0,function(){var r,a;return e.__generator(this,function(e){switch(e.label){case 0:r=s(n),le(n.review.id),e.label=1;case 1:return e.trys.push([1,6,7,8]),"boundary"!==n.kind?[3,3]:[4,null==A?void 0:A(t,i,r)];case 2:return e.sent(),[3,5];case 3:return[4,null==M?void 0:M(t,i,r)];case 4:e.sent(),e.label=5;case 5:return ue(function(e){var t=new Set(e);return t.add(n.review.id),t}),be(n.review.id),[3,8];case 6:return a=e.sent(),null==E||E(a,r),[3,8];case 7:return le(null),[7];case 8:return[2]}})})},[E,A,M,be]);t.useEffect(function(){X&&!U.some(function(e){return e.review.id===X})&&me()},[X,me,U]),t.useEffect(function(){if(_){var e=U.find(function(e){return e.pageNumber===J&&!ae.has(e.review.id)});e&&e.review.id!==X&&we(e)}},[X,_,J,ae,U,we]);var _e=b?U:U.filter(function(e){return!ae.has(e.review.id)}),ye=t.useMemo(function(){return new Map(U.map(function(e,n){return[e.review.id,n+1]}))},[U]),Ce=t.useMemo(function(){var e=new Map;_e.forEach(function(n){var t,i=null!==(t=e.get(n.pageNumber))&&void 0!==t?t:[];i.push(n),e.set(n.pageNumber,i)});var n=new Map;return e.forEach(function(e){e.forEach(function(e,t){return n.set(e.review.id,t)})}),n},[_e]),xe=t.useCallback(function(e){return{startPage:Math.max(0,e.startPage-j),endPage:Math.min(e.numPages-1,e.endPage+j)}},[j]),je=t.useCallback(function(){var e=ve.current,n=fe.current;if(e&&n){var t=e.getBoundingClientRect(),i=n.getBoundingClientRect();_e.forEach(function(e){var r,a=ce.current.get(e.review.id);if(a){var u=n.querySelector('[data-testid="core__page-layer-'.concat(e.pageNumber-1,'"]'));if(u){var o=u.getBoundingClientRect(),s=o.bottom>i.top&&o.top<i.bottom,l=null!==(r=Ce.get(e.review.id))&&void 0!==r?r:0;a.style.top="".concat(o.top-t.top+R+40*l,"px"),a.style.visibility=s?"visible":"hidden"}else a.style.visibility="hidden"}})}},[R,Ce,_e]);return t.useEffect(function(){var e=fe.current;if(e&&w){var n=null,t=function(){null==n&&(n=requestAnimationFrame(function(){n=null,je()}))};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()}}},[w,je]),n.jsxs("div",e.__assign({ref:ve,className:L,style:e.__assign({display:"flex",alignItems:"stretch",gap:12,position:"relative",width:"100%",height:"100%",minWidth:0},O)},{children:[n.jsx("div",e.__assign({ref:fe,style:e.__assign({flex:1,minWidth:0,height:"100%"},z)},{children:n.jsx(i.default,e.__assign({highlightText:[],highlightPages:{},highlightCordinatePages:[],useCoordinates:!1},g,{pdfUrl:c,pdfName:v,segments:V,navigationRequest:te,setRenderRange:xe,onCurrentPageChange:function(e){K(e),ge&&ge.pageNumber!==e&&me(),null==q||q(e)}}))})),w&&n.jsx("aside",e.__assign({"aria-label":"Page review badges",style:e.__assign({position:"relative",width:112,flex:"0 0 112px",minHeight:0,overflow:"hidden"},I)},{children:_e.map(function(t){var i,r,a=X===t.review.id,u=ae.has(t.review.id),o=null!==(i=ye.get(t.review.id))&&void 0!==i?i:1,s="".concat(o).concat("boundary"===t.kind?"B":"L");return n.jsxs("button",e.__assign({ref:function(e){e?ce.current.set(t.review.id,e):ce.current.delete(t.review.id)},type:"button","aria-pressed":a,title:"".concat(t.review.step.type," · Page ").concat(t.pageNumber),onClick:function(e){return we(t,e.currentTarget)},style:{position:"absolute",top:0,right:S,visibility:"hidden",display:"flex",alignItems:"center",justifyContent:"space-between",gap:4,width:96,minHeight:32,padding:"5px 8px",border:"1px solid ".concat(a?"#5925DC":"#D0D5DD"),borderRadius:16,background:a?"#F4F3FF":"#FFFFFF",color:u?"#98A2B3":a?"#5925DC":"#344054",cursor:"pointer",opacity:u?.65:1,font:"inherit",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)"}},{children:[n.jsx("span",e.__assign({style:{fontSize:13,fontWeight:600}},{children:s})),n.jsx("span",e.__assign({style:{fontSize:10}},{children:null!==(r=t.review.step.confidence)&&void 0!==r?r:"—"}))]}),t.review.id)})})),ge&&$&&n.jsx(a.default,e.__assign({anchorElement:$,placement:"bottom-end",offset:{top:8}},{children:"boundary"===ge.kind?n.jsx(r.default,{title:ge.review.segment.label||ge.review.segment.title,pageNo:"Page ".concat(ge.pageNumber),content:ge.review.step.reason,cognitiveScore:ge.review.step.confidence,metadata:ge.review.metadata,confirmDisabled:se===ge.review.id,onActionConfirm:function(e,n){he(ge,e,n)},onAdjustManually:function(){return null==B?void 0:B(s(ge))},onCognitiveClick:function(){return null==D?void 0:D(s(ge))},onClose:me},ge.review.id):n.jsx(u.default,{title:ge.review.metadata.current_label||ge.review.segment.label||ge.review.segment.title,pageNo:"Pages ".concat(ge.review.segment.start_page,"-").concat(ge.review.segment.end_page),content:ge.review.step.reason,cognitiveScore:ge.review.step.confidence,metadata:ge.review.metadata,confirmDisabled:se===ge.review.id,onActionConfirm:function(e,n){he(ge,e,n)},onAdjustManually:function(){return null==B?void 0:B(s(ge))},onCognitiveClick:function(){return null==D?void 0:D(s(ge))},onClose:me},ge.review.id)}))]}))};
|
|
2
|
-
//# sourceMappingURL=SegmentReviewPdfWrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentReviewPdfWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(require("@mui/material/SvgIcon"));exports.default=function(t){return r.jsx(i.default,e.__assign({},t,{viewBox:"0 0 13 13",sx:e.__assign({width:13,height:13},t.sx)},{children:r.jsx("path",{d:"M6.33333 3.99996V6.33329M6.33333 8.66663H6.33917M12.1667 6.33329C12.1667 3.11163 9.555 0.499959 6.33333 0.499959C3.11167 0.499959 0.5 3.11163 0.5 6.33329C0.5 9.55495 3.11167 12.1666 6.33333 12.1666C9.555 12.1666 12.1667 9.55495 12.1667 6.33329Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}))};
|
|
2
|
-
//# sourceMappingURL=infoAlert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"infoAlert.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./BoundaryCard.js"),t=require("./LabelCheck.js"),r=function(e){return"object"==typeof e&&null!==e?e:{}},n=function(e){return"string"==typeof e?e:null},a=function(e){return"number"==typeof e&&Number.isFinite(e)?e:null},u=function(e){return Array.isArray(e)?e.filter(function(e){return"string"==typeof e}):[]},i=function(e){var a=r(e);return{current_label:n(a.current_label),custom_label:n(a.custom_label),group_id:n(a.group_id),user_actions:u(a.user_actions).filter(t.isLabelReviewAction)}};exports.extractSegmentReviewData=function(t){var n=[],o=[];return t.forEach(function(t){t.review_steps.forEach(function(c,s){var l;if("Page Boundary Review"===c.type){var f=function(t){var n=r(t);return{focus_page:a(n.focus_page),boundary_margin:a(n.boundary_margin),user_actions:u(n.user_actions).filter(e.isBoundaryReviewAction)}}(c.metadata);n.push({id:"".concat(t.stable_key,":boundary:").concat(null!==(l=f.focus_page)&&void 0!==l?l:s),segment:t,step:c,metadata:f})}"Label Review"===c.type&&o.push({id:"".concat(t.stable_key,":label:").concat(s),segment:t,step:c,metadata:i(c.metadata)})})}),{boundaryReviews:n,labelReviews:o}};
|
|
2
|
-
//# sourceMappingURL=reviewStepAdapters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reviewStepAdapters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){return r.jsx("svg",e.__assign({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r.jsx("path",{d:"M8.9375 1.4375V0.5M11.3996 2.10041L12.0625 1.4375M12.0689 4.5625H13.0064M12.9691 7.375C12.6556 10.5333 9.99084 13 6.75 13C3.29822 13 0.5 10.2018 0.5 6.75C0.5 3.50916 2.96667 0.844437 6.125 0.53086M6.75 4.25H9.25V6.75M9.0123 4.25C7.54083 6.32975 5.11648 7.6875 2.375 7.6875C1.74819 7.6875 1.13795 7.61652 0.551889 7.48216",stroke:"#16A34A","stroke-linecap":"round","stroke-linejoin":"round"})}))};
|
|
2
|
-
//# sourceMappingURL=ChartBreakoutCircle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartBreakoutCircle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),n=require("@mui/material/Box"),i=require("@mui/material/Button"),s=require("@mui/material/ButtonBase"),a=require("@mui/material/Divider"),o=require("@mui/material/Stack"),l=require("@mui/material/Tooltip"),d=require("@mui/material/Typography"),c=require("lucide-react");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=u(n),x=u(i),g=u(s),h=u(a),_=u(o),m=u(l),p=u(d),b=function(e){var r=e.startPage,t=e.endPage;return"Pages ".concat(r,"-").concat(t)},v=function(t){var n=t.segment;return r.jsxs(f.default,e.__assign({sx:{px:.75,py:.625,minWidth:0}},{children:[r.jsx(p.default,e.__assign({sx:{color:"text.secondary",fontSize:11,lineHeight:1.3,overflowWrap:"anywhere"}},{children:n.title})),r.jsx(p.default,e.__assign({sx:{color:"text.primary",fontSize:12,fontWeight:400,lineHeight:1.3}},{children:b(n)}))]}))};var j={minHeight:34,borderColor:"#94A3B8",color:"#64748B",borderRadius:"8px",fontSize:12,fontWeight:500,textTransform:"none"},y={minHeight:34,borderRadius:"8px",bgcolor:"#4F46E5",fontSize:12,fontWeight:500,textTransform:"none",boxShadow:"none","&:hover":{bgcolor:"#4338CA",boxShadow:"none"}};exports.default=function(n){var i=this,s=n.icon,a=n.title,o=n.pageRange,l=n.description,d=n.onRevert,u=n.onRevertComplete,b=n.onRevertError,C=n.revertData,S=n.confirmDisabled,w=void 0!==S&&S,R=n.showDocumentHeader,W=void 0===R||R,F=t.useState(!1),z=F[0],k=F[1],H=t.useState(!1),q=H[0],A=H[1],B=C.previousSegments.length>0,E=function(){return e.__awaiter(i,void 0,void 0,function(){var r,t;return e.__generator(this,function(e){switch(e.label){case 0:if(q||w)return[2];A(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,d()];case 2:return r=e.sent(),null==u||u(r),[3,5];case 3:return t=e.sent(),null==b||b(t),[3,5];case 4:return A(!1),[7];case 5:return[2]}})})};return r.jsxs(_.default,e.__assign({spacing:.875,sx:{minWidth:0}},{children:[W&&r.jsxs(f.default,e.__assign({sx:{minWidth:0}},{children:[r.jsx(p.default,e.__assign({sx:{color:"text.primary",fontSize:14,fontWeight:500,lineHeight:1.4,overflowWrap:"anywhere"}},{children:a})),r.jsx(p.default,e.__assign({sx:{color:"text.secondary",fontSize:12,lineHeight:1.4}},{children:o}))]})),r.jsxs(_.default,e.__assign({direction:"row",alignItems:"flex-start",spacing:.625,sx:{px:.75,py:.625,border:"1px solid #86EFAC",borderRadius:2,bgcolor:"#FFFFFF",color:"#16A34A"}},{children:[r.jsx(f.default,e.__assign({"aria-hidden":"true",sx:{display:"flex",flexShrink:0,mt:"1px",fontSize:14}},{children:s})),r.jsx(p.default,e.__assign({sx:{minWidth:0,color:"inherit",fontSize:11,lineHeight:1.5,overflowWrap:"anywhere"}},{children:l}))]})),r.jsx(h.default,{sx:{borderStyle:"dashed",borderColor:"#CBD5E1"}}),z?r.jsxs(_.default,e.__assign({spacing:.75},{children:[r.jsxs(g.default,e.__assign({onClick:function(){return k(!1)},"aria-label":"Back from revert confirmation",sx:{width:"fit-content",borderRadius:.5,color:"text.primary",fontSize:13,fontWeight:500,lineHeight:1.3,textAlign:"left"}},{children:[r.jsx(f.default,e.__assign({component:"span","aria-hidden":"true",sx:{mr:.625,alignItems:"center",display:"flex"}},{children:r.jsx(c.ChevronLeft,{size:16})})),"Revert"]})),B?r.jsxs(f.default,e.__assign({sx:{p:.75,borderRadius:1,bgcolor:"#F8FAFC"}},{children:[r.jsx(p.default,e.__assign({sx:{mb:.375,color:"text.secondary",fontSize:12}},{children:"Current"})),r.jsx(f.default,e.__assign({sx:{mb:.75,border:"1px solid #E2E8F0",borderRadius:1,bgcolor:"background.paper"}},{children:r.jsx(v,{segment:C.currentSegment})})),r.jsx(p.default,e.__assign({sx:{mb:.375,color:"text.secondary",fontSize:12}},{children:"After Revert"})),r.jsx(f.default,e.__assign({sx:{border:"1px solid #E2E8F0",borderRadius:1,bgcolor:"background.paper",overflow:"hidden"}},{children:C.previousSegments.map(function(e,t){return r.jsxs(f.default,{children:[t>0&&r.jsx(h.default,{sx:{borderColor:"#E2E8F0"}}),r.jsx(v,{segment:e})]},"".concat(e.title,"-").concat(e.startPage,"-").concat(e.endPage,"-").concat(t))})})),r.jsxs(_.default,e.__assign({direction:"row",spacing:1,sx:{mt:.875}},{children:[r.jsx(x.default,e.__assign({variant:"outlined",fullWidth:!0,disabled:q,onClick:function(){return k(!1)},sx:j},{children:"Cancel"})),r.jsx(m.default,e.__assign({title:w?"Revert data is not present, cannot revert this":"",disableHoverListener:!w,arrow:!0},{children:r.jsx("span",e.__assign({style:{flex:1}},{children:r.jsx(x.default,e.__assign({variant:"contained",fullWidth:!0,disabled:q||w,onClick:function(){E()},sx:y},{children:q?"Reverting…":"Confirm"}))}))}))]}))]})):r.jsxs(f.default,e.__assign({sx:{p:.875,borderRadius:1,bgcolor:"#F8FAFC"}},{children:[r.jsx(p.default,e.__assign({sx:{color:"text.secondary",fontSize:12,fontWeight:500}},{children:"Revert approval?"})),r.jsx(p.default,e.__assign({sx:{mt:.75,color:"text.secondary",fontSize:13,lineHeight:1.45}},{children:"This document will be moved back to pending review and will need to be confirmed again."})),r.jsxs(_.default,e.__assign({direction:"row",spacing:1,sx:{mt:1}},{children:[r.jsx(x.default,e.__assign({variant:"outlined",fullWidth:!0,disabled:q,onClick:function(){return k(!1)},sx:j},{children:"Cancel"})),r.jsx(m.default,e.__assign({title:w?"Revert data is not present, cannot revert this":"",disableHoverListener:!w,arrow:!0},{children:r.jsx("span",e.__assign({style:{flex:1}},{children:r.jsx(x.default,e.__assign({variant:"contained",fullWidth:!0,disabled:q||w,onClick:function(){E()},sx:y},{children:q?"Reverting…":"Confirm"}))}))}))]}))]}))]})):r.jsx(x.default,e.__assign({variant:"outlined",fullWidth:!0,onClick:function(){return k(!0)},sx:{minHeight:36,borderColor:"#9B8AFB",color:"#5925DC",borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none","&:hover":{borderColor:"secondary.dark",bgcolor:"rgba(79, 70, 229, 0.04)"}}},{children:"Revert"}))]}))};
|
|
2
|
-
//# sourceMappingURL=RevertCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RevertCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("@mui/icons-material/ArrowForward"),t=require("@mui/material/Box"),o=require("@mui/material/Button"),l=require("@mui/material/Paper"),a=require("@mui/material/Stack"),n=require("@mui/material/Typography"),s=require("lucide-react");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(i),c=d(t),x=d(o),g=d(l),h=d(a),f=d(n);exports.default=function(i){var t=i.title,o=i.description,l=i.onReview,a=i.reviewLabel,n=void 0===a?"Review":a;return r.jsx(g.default,e.__assign({elevation:0,role:"status",sx:{width:"100%",px:1.5,py:1.5,border:"1.5px solid #86EFAC",borderRadius:2,bgcolor:"#F0FDF4",boxSizing:"border-box"}},{children:r.jsxs(h.default,e.__assign({alignItems:"center",spacing:1.5,sx:{textAlign:"center"}},{children:[r.jsx(c.default,e.__assign({sx:{display:"grid",placeItems:"center",width:58,height:58,border:"8px solid rgba(255, 255, 255, 0.9)",borderRadius:"50%",bgcolor:"#DCFCE7",color:"#0A9B49"}},{children:r.jsx(s.CheckCircleIcon,{height:36,width:36})})),r.jsxs(c.default,{children:[r.jsx(f.default,e.__assign({sx:{color:"#166534",fontSize:15,fontWeight:600,lineHeight:1.4}},{children:t})),r.jsx(f.default,e.__assign({sx:{mt:.75,color:"#07883F",fontSize:14,lineHeight:1.55}},{children:o}))]}),r.jsx(x.default,e.__assign({variant:"outlined",fullWidth:!0,onClick:l,endIcon:r.jsx(u.default,{}),sx:{minHeight:42,border:"1.5px solid #CBD5E1",borderRadius:2,bgcolor:"#FFFFFF",color:"#475569",fontSize:16,fontWeight:700,textTransform:"none","&:hover":{borderColor:"#94A3B8",bgcolor:"#FFFFFF"}}},{children:n}))]}))}))};
|
|
2
|
-
//# sourceMappingURL=RevertSuccessCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RevertSuccessCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("@mui/material/Box"),t=require("@mui/material/Typography"),a=require("lucide-react");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(i),s=o(t);exports.default=function(i){var t=i.children;return r.jsxs(l.default,e.__assign({sx:{display:"flex",alignItems:"flex-start",gap:1,px:1,py:1.125,border:"1px solid #FACC15",borderRadius:1.5,bgcolor:"#FFFBEB",color:"#D18A00"}},{children:[r.jsx(a.GitMerge,{size:18,strokeWidth:2.25,style:{flex:"0 0 auto",marginTop:1}}),r.jsx(s.default,e.__assign({component:"div",sx:{color:"inherit",fontSize:12,lineHeight:1.5,overflowWrap:"anywhere"}},{children:t}))]}))};
|
|
2
|
-
//# sourceMappingURL=RevertSummaryNotice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RevertSummaryNotice.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),r=require("@mui/icons-material/ChevronRight"),t=require("@mui/icons-material/Close"),s=require("@mui/material/Box"),a=require("@mui/material/ButtonBase"),n=require("@mui/material/Divider"),o=require("@mui/material/IconButton"),l=require("@mui/material/Paper"),d=require("@mui/material/Stack"),c=require("@mui/material/Typography"),u=require("../../assests/icons/InfoAlert.js"),x=require("./CognitiveIcon.js"),f=require("./CognitiveScoreBadge.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=h(r),m=h(t),p=h(s),v=h(a),_=h(n),j=h(o),w=h(l),y=h(d),b=h(c),C=function(i,r){return e.__spreadArray([i],Array.isArray(r)?r:null==r?[]:[r],!0)};exports.default=function(r){var t=r.headerName,s=void 0===t?"Reviewed":t,a=r.headerIcon,n=r.title,o=r.pageNo,l=r.summary,d=r.cognitiveScore,c=r.onCognitiveClick,h=r.onClose,q=r.cognitiveLabel,W=void 0===q?"Cognitive Integrity":q,S=r.showCognitiveIntegrity,I=void 0===S||S,k=r.showCloseButton,z=void 0===k||k,A=r.width,B=void 0===A?260:A,N=r.maxWidth,R=void 0===N?260:N,D=r.className,F=r.styles;return i.jsxs(w.default,e.__assign({className:D,elevation:4,sx:C({width:B,maxWidth:"min(".concat(R,"number"==typeof R?"px, 100%)":", 100%)"),minWidth:0,flexShrink:1,borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box",boxShadow:"0 8px 16px rgba(16, 24, 40, 0.16)","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==F?void 0:F.root)},{children:[i.jsxs(y.default,e.__assign({direction:"row",alignItems:"center",spacing:.75,sx:C({minWidth:0,px:1.25,py:1,bgcolor:"#ECFDF5",color:"#16A34A"},null==F?void 0:F.header)},{children:[null!=a?a:i.jsx(u.default,{color:"success",height:16,width:16}),i.jsx(b.default,e.__assign({sx:{flex:1,minWidth:0,color:"inherit",fontSize:13,fontWeight:500,lineHeight:1.25,textTransform:"uppercase",overflowWrap:"anywhere"}},{children:s})),z&&i.jsx(j.default,e.__assign({size:"small",onClick:h,disabled:!h,"aria-label":"Close reviewed card",sx:{p:0,color:"#475569","&.Mui-disabled":{color:"text.secondary"}}},{children:i.jsx(m.default,{sx:{fontSize:17}})}))]})),i.jsxs(y.default,e.__assign({spacing:.875,sx:{px:1.25,pt:1.25,pb:1}},{children:[i.jsxs(p.default,{children:[i.jsx(b.default,e.__assign({sx:{color:"text.primary",fontSize:14,fontWeight:500,overflowWrap:"anywhere"}},{children:n})),null!=o&&i.jsx(b.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:o}))]}),null!=l&&i.jsx(y.default,e.__assign({sx:null==F?void 0:F.content},{children:l})),I&&i.jsxs(y.default,e.__assign({spacing:.625,sx:null==F?void 0:F.footer},{children:[i.jsx(_.default,{}),i.jsxs(v.default,e.__assign({onClick:c,disabled:!c,sx:{width:"100%",minWidth:0,justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:c?"pointer":"not-allowed"}},{children:[i.jsxs(y.default,e.__assign({direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0,flex:1}},{children:[i.jsx(x.default,{sx:{color:"text.secondary"}}),i.jsx(b.default,e.__assign({sx:{minWidth:0,color:"text.primary",fontSize:12,overflowWrap:"anywhere"}},{children:W}))]})),i.jsxs(y.default,e.__assign({direction:"row",alignItems:"center",spacing:.5,sx:{flexShrink:0}},{children:[i.jsx(f.default,{score:d}),i.jsx(g.default,{sx:{color:"text.secondary"}})]}))]}))]}))]}))]}))};
|
|
2
|
-
//# sourceMappingURL=ReviewedCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewedCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t='[id^="guideline-target-"], [data-web-gpt-active="true"]',e=function(e){return e?Array.from(e.querySelectorAll(t)).filter(function(t){var e=t.getBoundingClientRect();return e.width>0&&e.height>0}):[]};export{t as GUIDELINE_TARGET_SELECTOR,e as getVisibleGuidelineTargets};
|
|
2
|
-
//# sourceMappingURL=guidelineTargets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"guidelineTargets.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{DEVIATION_BADGE_SEPARATOR as e}from"../../CognitiveComparehelpers.js";var i=function(i){var o,l=i.activeIdentifier,t=i.deviationData,r=i.proposedSections,a="",n=null;if("number"==typeof l){var u=r[l],v=(null==u?void 0:u.nodeId)||(null==u?void 0:u.id);a="string"==typeof v?v:""}else if("string"==typeof l){var d=l.split(e);a=d[0]||"",n=d.length>1&&""!==d[1]?d[1]:null}var s=null===(o=null==t?void 0:t[a])||void 0===o?void 0:o.evaluation_result;if(!s||"object"!=typeof s)return{baseNodeId:a,evaluationKey:n,evaluationNodes:[],targetHighlights:[],labelColor:""};var g=null==n?void 0:function(e,i){if(Array.isArray(e)){var o=Number(i);return Number.isInteger(o)?e[o]:void 0}return null==e?void 0:e[i]}(s,n),f=null==n?Object.values(s):g?[g]:[],h=new Set,p=[],c="";return f.forEach(function(e){var i,o,l,t=null===(i=null==e?void 0:e.deviation_highlights)||void 0===i?void 0:i.rulebook_guidelines;if(Array.isArray(t)&&(t.forEach(function(e){if("string"==typeof e&&e.trim()){var i=e.trim().replace(/\s+/g," ").toLocaleLowerCase();h.has(i)||(h.add(i),p.push(e))}}),console.log("LOG: Printing highlights",t,p,h)),!c){var r=null===(l=null===(o=null==e?void 0:e.evaluation_outputs)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.label_color;"string"==typeof r&&(c=r)}}),{baseNodeId:a,evaluationKey:n,evaluationNodes:f,targetHighlights:p,labelColor:c}};export{i as resolveGuidelineSelection};
|
|
2
|
-
//# sourceMappingURL=resolveGuidelineSelection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveGuidelineSelection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsx as t,jsxs as n}from"react/jsx-runtime";import i from"react";import{Box as e,Divider as o,Stack as a,Skeleton as c}from"@mui/material";var m=["96%","88%","92%","72%","60%"],l=function(i){var o=i.index,l=i.lineCount;return n(e,{children:[t(a,r({direction:"row",alignItems:"center",spacing:1,sx:{mb:1.25}},{children:t(c,{variant:"text",width:"".concat(50+13*o%30,"%"),height:22,sx:{borderRadius:1}})})),t(a,r({spacing:.75},{children:Array.from({length:l}).map(function(r,n){return t(c,{variant:"text",width:m[(o+n)%m.length],height:16,sx:{borderRadius:.5}},n)})}))]})},d=function(a){var c=a.sectionCount,m=void 0===c?3:c;return t(e,r({sx:{p:2,display:"flex",flexDirection:"column",gap:2}},{children:Array.from({length:m}).map(function(r,e){return n(i.Fragment,{children:[t(l,{index:e,lineCount:3+e%3}),e<m-1&&t(o,{sx:{my:.5,borderColor:"#EEF0F4"}})]},e)})}))};export{d as GuidelineSkeleton};
|
|
2
|
-
//# sourceMappingURL=GuidelineSkeletonLoader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GuidelineSkeletonLoader.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__makeTemplateObject as e}from"tslib";var n,t,r,d,l,a,i=String.raw(n||(n=e(["(?:[^>\"']|\"[^\"]*\"|'[^']*')*"],["(?:[^>\"']|\"[^\"]*\"|'[^']*')*"]))),c=new RegExp(String.raw(t||(t=e(["</?(?:manual|updated)\b",">"],["<\\/?(?:manual|updated)\\b",">"])),i),"gi"),s=new RegExp(String.raw(r||(r=e(["<(deleted|changed)\b",">([sS]*?)</1s*>"],["<(deleted|changed)\\b",">([\\s\\S]*?)<\\/\\1\\s*>"])),i),"gi"),u=new RegExp(String.raw(d||(d=e(["<deleted\b",">([sS]*?)\n\n|</deleted>s*<changed\b",">([^|<]*)|</changed>s*|"],["<deleted\\b",">([\\s\\S]*?)\\n\\n\\|<\\/deleted>\\s*<changed\\b",">([^|<]*)\\|<\\/changed>\\s*\\|"])),i,i),"gi"),g=function(e){var n=e.trim();if(!n.includes("|"))return null;for(var t=[],r="",d=0;d<n.length;d+=1){var l=n[d],a=d>0&&"\\"===n[d-1];"|"!==l||a?r+=l:(t.push(r.trim()),r="")}return t.push(r.trim()),n.startsWith("|")&&t.shift(),n.endsWith("|")&&t.pop(),t},h=function(e){return!!(null==e?void 0:e.length)&&e.every(function(e){return/^:?-{3,}:?$/.test(e)})},o=function(e){return"| ".concat(e.join(" | ")," |")},f=function(n){if(!n)return"";var t=n.replace(c,"");return function(e){for(var n=e.split("\n"),t=function(e){var t=g(n[e]);if(!h(t))return"continue";var r=g(n[e-1]);if(!(null==r?void 0:r.length))return"continue";for(;r.length>t.length&&-1!==(s=r.findIndex(function(e){return""===e}));)r.splice(s,1);for(var d=Math.max(r.length,t.length),l=e+1,a=0,i=[];l<n.length&&""!==n[l].trim();){var c=g(n[l]);if(!c)break;for(;c.length>d;){var s;if(-1===(s=c.findIndex(function(e){return""===e})))break;c.splice(s,1)}i.push({lineIndex:l,cells:c}),a=Math.max(a,c.length),l+=1}for(var u=Math.max(r.length,t.length,a);r.length<u;)r.push("");for(;t.length<u;)t.push("---");i.forEach(function(e){for(var t=e.lineIndex,r=e.cells;r.length<u;)r.push("");n[t]=o(r)}),n[e-1]=o(r),n[e]=o(t)},r=1;r<n.length;r+=1)t(r);return n.join("\n")}(t=(t=function(n){var t=new RegExp(String.raw(l||(l=e(["(<deleted\b",">(?:(?!</deleteds*>)[sS])*?|(?:(?!</deleteds*>)[sS])*?</deleteds*>)[ \t]*(<changed\b",">[^|]*?</changeds*>)[ \t]*|"],["(<deleted\\b",">(?:(?!<\\/deleted\\s*>)[\\s\\S])*?\\|(?:(?!<\\/deleted\\s*>)[\\s\\S])*?<\\/deleted\\s*>)[ \\t]*(<changed\\b",">[^|]*?<\\/changed\\s*>)[ \\t]*\\|"])),i,i),"gi"),r=n.replace(t,"$1 |\n$2"),d=new RegExp(String.raw(a||(a=e(["(<deleted\b",">(?:(?!</deleteds*>)[sS])*?|(?:(?!</deleteds*>)[sS])*?</deleteds*>)s*(?=<changed\b",">)"],["(<deleted\\b",">(?:(?!<\\/deleted\\s*>)[\\s\\S])*?\\|(?:(?!<\\/deleted\\s*>)[\\s\\S])*?<\\/deleted\\s*>)\\s*(?=<changed\\b",">)"])),i,i),"gi"),c=r.replace(d,"$1\n");return c.replace(s,function(e,n,t,r){if(!t.includes("|"))return e;var d=c.slice(0,r),l=/(?:^|\n)[ \t]*$/.test(d);return t.split("\n").map(function(e,t){if(!e)return e;var r=e;r.includes("|")&&!/^\s*\|/.test(r)&&(t>0||l)&&(r="| ".concat(r));var d=g(r);return h(d)?r:r.split(/(\|)/).map(function(e){return"|"!==e&&e.trim()?"<".concat(n,">").concat(e,"</").concat(n,">"):e}).join("")}).join("\n")})}(t=t.replace(u,function(e,n,t){return"<deleted>".concat(n,"</deleted>\n\n")+"| <changed>".concat(t.trim(),"</changed> |")}))).replace(/([([])\s+(?=<(?:deleted|changed)>)/gi,"$1"))};export{f as normalizeRedlineMarkdown};
|
|
2
|
-
//# sourceMappingURL=normalizeRedlineMarkdown.js.map
|