@viswa-test/test-citation 0.0.382 → 0.0.383

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +1 -1
  2. package/dist/cjs/features/CognitiveCompare/CitationRenderer.js +1 -1
  3. package/dist/cjs/features/CognitiveCompare/CitationRendererInner.js +2 -0
  4. package/dist/cjs/features/CognitiveCompare/CitationRendererInner.js.map +1 -0
  5. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  6. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConstants.js +1 -1
  7. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  8. package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +1 -1
  9. package/dist/cjs/features/CognitiveCompare/CompareContext.js +1 -1
  10. package/dist/cjs/features/CognitiveCompare/GptWebCitationPanel.js +2 -0
  11. package/dist/cjs/features/CognitiveCompare/GptWebCitationPanel.js.map +1 -0
  12. package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  13. package/dist/cjs/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  14. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  15. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  16. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  17. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  18. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  19. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  20. package/dist/cjs/features/CognitiveCompare/hooks/useOnDemandCitationCache.js +2 -0
  21. package/dist/cjs/features/CognitiveCompare/hooks/useOnDemandCitationCache.js.map +1 -0
  22. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  23. package/dist/cjs/features/CognitiveCompare/onDemandCitations/cacheKey.js +2 -0
  24. package/dist/cjs/features/CognitiveCompare/onDemandCitations/cacheKey.js.map +1 -0
  25. package/dist/cjs/features/CognitiveCompare/onDemandCitations/contextBuilder.js +2 -0
  26. package/dist/cjs/features/CognitiveCompare/onDemandCitations/contextBuilder.js.map +1 -0
  27. package/dist/cjs/features/CognitiveCompare/onDemandCitations/href.js +2 -0
  28. package/dist/cjs/features/CognitiveCompare/onDemandCitations/href.js.map +1 -0
  29. package/dist/cjs/features/CognitiveCompare/onDemandCitations/payload.js +2 -0
  30. package/dist/cjs/features/CognitiveCompare/onDemandCitations/payload.js.map +1 -0
  31. package/dist/cjs/features/CognitiveCompare/onDemandCitations/response.js +2 -0
  32. package/dist/cjs/features/CognitiveCompare/onDemandCitations/response.js.map +1 -0
  33. package/dist/cjs/features/CognitiveCompare/utils/normalizeInlineMarkdown.js +2 -0
  34. package/dist/cjs/features/CognitiveCompare/utils/normalizeInlineMarkdown.js.map +1 -0
  35. package/dist/cjs/features/CognitiveCompare/utils/onDemandCitations.js +2 -0
  36. package/dist/cjs/features/CognitiveCompare/utils/onDemandCitations.js.map +1 -0
  37. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  38. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
  39. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  40. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  41. package/dist/cjs/features/PdfViewer/PdfToolbar.js +1 -1
  42. package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
  43. package/dist/cjs/features/PdfViewer/usePdfHighlight.js +1 -1
  44. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  45. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js +2 -0
  46. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js.map +1 -0
  47. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
  48. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
  49. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
  51. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
  52. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
  53. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
  54. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
  55. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
  56. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
  57. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
  58. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
  59. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
  60. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
  61. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
  62. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
  63. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
  64. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  90. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  91. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  92. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  93. package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js +1 -1
  94. package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
  95. package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +1 -1
  96. package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  97. package/dist/cjs/features/SegmentReviewComponents/helper.js +1 -1
  98. package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
  99. package/dist/cjs/index.js +1 -1
  100. package/dist/cjs/service/redlineService.js +1 -1
  101. package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
  102. package/dist/features/CognitiveCompare/CitationRenderer.js +1 -1
  103. package/dist/features/CognitiveCompare/CitationRendererInner.js +2 -0
  104. package/dist/features/CognitiveCompare/CitationRendererInner.js.map +1 -0
  105. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  106. package/dist/features/CognitiveCompare/CognitiveCompareConstants.js +1 -1
  107. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  108. package/dist/features/CognitiveCompare/CognitivePopup.js +1 -1
  109. package/dist/features/CognitiveCompare/CompareContext.js +1 -1
  110. package/dist/features/CognitiveCompare/GptWebCitationPanel.js +2 -0
  111. package/dist/features/CognitiveCompare/GptWebCitationPanel.js.map +1 -0
  112. package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  113. package/dist/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  114. package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  115. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  116. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  117. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  118. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  119. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  120. package/dist/features/CognitiveCompare/hooks/useOnDemandCitationCache.js +2 -0
  121. package/dist/features/CognitiveCompare/hooks/useOnDemandCitationCache.js.map +1 -0
  122. package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  123. package/dist/features/CognitiveCompare/onDemandCitations/cacheKey.js +2 -0
  124. package/dist/features/CognitiveCompare/onDemandCitations/cacheKey.js.map +1 -0
  125. package/dist/features/CognitiveCompare/onDemandCitations/contextBuilder.js +2 -0
  126. package/dist/features/CognitiveCompare/onDemandCitations/contextBuilder.js.map +1 -0
  127. package/dist/features/CognitiveCompare/onDemandCitations/href.js +2 -0
  128. package/dist/features/CognitiveCompare/onDemandCitations/href.js.map +1 -0
  129. package/dist/features/CognitiveCompare/onDemandCitations/payload.js +2 -0
  130. package/dist/features/CognitiveCompare/onDemandCitations/payload.js.map +1 -0
  131. package/dist/features/CognitiveCompare/onDemandCitations/response.js +2 -0
  132. package/dist/features/CognitiveCompare/onDemandCitations/response.js.map +1 -0
  133. package/dist/features/CognitiveCompare/utils/normalizeInlineMarkdown.js +2 -0
  134. package/dist/features/CognitiveCompare/utils/normalizeInlineMarkdown.js.map +1 -0
  135. package/dist/features/CognitiveCompare/utils/onDemandCitations.js +2 -0
  136. package/dist/features/CognitiveCompare/utils/onDemandCitations.js.map +1 -0
  137. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  138. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  139. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  140. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  141. package/dist/features/PdfViewer/PdfToolbar.js +1 -1
  142. package/dist/features/PdfViewer/PdfViewer.js +1 -1
  143. package/dist/features/PdfViewer/usePdfHighlight.js +1 -1
  144. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  145. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js +2 -0
  146. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js.map +1 -0
  147. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
  148. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
  149. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  150. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
  151. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
  152. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
  153. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
  154. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
  155. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
  156. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
  157. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
  158. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
  159. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
  160. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
  161. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
  162. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
  163. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
  164. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  165. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  166. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  167. package/dist/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
  168. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
  169. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  170. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  171. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  172. package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
  173. package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
  174. package/dist/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
  175. package/dist/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
  176. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  177. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  178. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  179. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
  180. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  181. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  182. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  183. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  184. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  185. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  186. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  187. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  188. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  189. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  190. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  191. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  192. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  193. package/dist/features/SegmentReviewComponents/BoundaryCard.js +1 -1
  194. package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
  195. package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +1 -1
  196. package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  197. package/dist/features/SegmentReviewComponents/helper.js +1 -1
  198. package/dist/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
  199. package/dist/index.js +1 -1
  200. package/dist/service/redlineService.js +1 -1
  201. package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
  202. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -1
  203. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  204. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts +2 -0
  205. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -1
  206. package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts +8 -1
  207. package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts.map +1 -1
  208. package/dist/types/src/features/CognitiveCompare/CitationRendererInner.d.ts +13 -0
  209. package/dist/types/src/features/CognitiveCompare/CitationRendererInner.d.ts.map +1 -0
  210. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +1 -1
  211. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  212. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts +1 -1
  213. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts.map +1 -1
  214. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +12 -1
  215. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  216. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +12 -0
  217. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
  218. package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts.map +1 -1
  219. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts +9 -1
  220. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts.map +1 -1
  221. package/dist/types/src/features/CognitiveCompare/GptWebCitationPanel.d.ts +6 -0
  222. package/dist/types/src/features/CognitiveCompare/GptWebCitationPanel.d.ts.map +1 -0
  223. package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +1 -1
  224. package/dist/types/src/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts.map +1 -1
  225. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts +3028 -891
  226. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +1 -1
  227. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts +14 -1
  228. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +1 -1
  229. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
  230. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
  231. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +2 -1
  232. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -1
  233. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +1 -1
  234. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
  235. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
  236. package/dist/types/src/features/CognitiveCompare/hooks/useOnDemandCitationCache.d.ts +10 -0
  237. package/dist/types/src/features/CognitiveCompare/hooks/useOnDemandCitationCache.d.ts.map +1 -0
  238. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -1
  239. package/dist/types/src/features/CognitiveCompare/onDemandCitations/cacheKey.d.ts +3 -0
  240. package/dist/types/src/features/CognitiveCompare/onDemandCitations/cacheKey.d.ts.map +1 -0
  241. package/dist/types/src/features/CognitiveCompare/onDemandCitations/contextBuilder.d.ts +16 -0
  242. package/dist/types/src/features/CognitiveCompare/onDemandCitations/contextBuilder.d.ts.map +1 -0
  243. package/dist/types/src/features/CognitiveCompare/onDemandCitations/href.d.ts +6 -0
  244. package/dist/types/src/features/CognitiveCompare/onDemandCitations/href.d.ts.map +1 -0
  245. package/dist/types/src/features/CognitiveCompare/onDemandCitations/index.d.ts +7 -0
  246. package/dist/types/src/features/CognitiveCompare/onDemandCitations/index.d.ts.map +1 -0
  247. package/dist/types/src/features/CognitiveCompare/onDemandCitations/payload.d.ts +4 -0
  248. package/dist/types/src/features/CognitiveCompare/onDemandCitations/payload.d.ts.map +1 -0
  249. package/dist/types/src/features/CognitiveCompare/onDemandCitations/response.d.ts +3 -0
  250. package/dist/types/src/features/CognitiveCompare/onDemandCitations/response.d.ts.map +1 -0
  251. package/dist/types/src/features/CognitiveCompare/onDemandCitations/types.d.ts +134 -0
  252. package/dist/types/src/features/CognitiveCompare/onDemandCitations/types.d.ts.map +1 -0
  253. package/dist/types/src/features/CognitiveCompare/utils/normalizeInlineMarkdown.d.ts +6 -0
  254. package/dist/types/src/features/CognitiveCompare/utils/normalizeInlineMarkdown.d.ts.map +1 -0
  255. package/dist/types/src/features/CognitiveCompare/utils/onDemandCitations.d.ts +2 -0
  256. package/dist/types/src/features/CognitiveCompare/utils/onDemandCitations.d.ts.map +1 -0
  257. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +1 -0
  258. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -1
  259. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
  260. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +2 -1
  261. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
  262. package/dist/types/src/features/GptWebCitation/types.d.ts +11 -0
  263. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
  264. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +2 -0
  265. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -1
  266. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +1 -1
  267. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +1 -1
  268. package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts +0 -1
  269. package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts.map +1 -1
  270. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +39 -29
  271. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  272. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.d.ts +2 -0
  273. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.d.ts.map +1 -0
  274. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts +2 -0
  275. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts.map +1 -0
  276. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  277. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.d.ts +10 -0
  278. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.d.ts.map +1 -0
  279. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts +17 -0
  280. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts.map +1 -0
  281. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts +23 -0
  282. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts.map +1 -0
  283. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts +3 -0
  284. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts.map +1 -0
  285. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -1
  286. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +1 -1
  287. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  288. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts +84 -5439
  289. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts.map +1 -1
  290. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +1 -1
  291. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  292. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +1 -1
  293. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -1
  294. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +2 -2
  295. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  296. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +19 -2
  297. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  298. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts +7 -2
  299. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts.map +1 -1
  300. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.d.ts.map +1 -1
  301. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts +15 -1
  302. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts.map +1 -1
  303. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts +2 -1
  304. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts.map +1 -1
  305. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts +3 -2
  306. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  307. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts.map +1 -1
  308. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts +1 -0
  309. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts.map +1 -1
  310. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts +1 -0
  311. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts.map +1 -1
  312. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
  313. package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts +12 -0
  314. package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts.map +1 -0
  315. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +3 -2
  316. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
  317. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +1 -1
  318. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
  319. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +3 -1
  320. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
  321. package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts +2 -1
  322. package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -1
  323. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts +1 -0
  324. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts.map +1 -1
  325. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +2 -0
  326. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  327. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +2 -1
  328. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  329. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +2 -1
  330. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  331. package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts +1 -1
  332. package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts.map +1 -1
  333. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +2 -0
  334. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  335. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +3 -0
  336. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  337. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +2 -1
  338. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -1
  339. package/dist/types/src/features/RequirementAI/utils/helpers.d.ts +2 -0
  340. package/dist/types/src/features/RequirementAI/utils/helpers.d.ts.map +1 -1
  341. package/dist/types/src/features/RequirementAI/utils/proccess-stream.utils.d.ts.map +1 -1
  342. package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +1 -1
  343. package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +1 -1
  344. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +0 -6
  345. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +1 -1
  346. package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +1 -1
  347. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +1 -1
  348. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts.map +1 -1
  349. package/dist/types/src/features/SegmentReviewComponents/helper.d.ts +4 -2
  350. package/dist/types/src/features/SegmentReviewComponents/helper.d.ts.map +1 -1
  351. package/dist/types/src/features/SegmentReviewComponents/index.d.ts +1 -3
  352. package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +1 -1
  353. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +1 -2
  354. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +1 -1
  355. package/dist/types/src/service/redlineService.d.ts.map +1 -1
  356. package/package.json +4 -4
  357. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  358. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
  359. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
  360. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
  361. package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
  362. package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
  363. package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
  364. package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
  365. package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
  366. package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
  367. package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
  368. package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
  369. package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
  370. package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
  371. package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js +0 -2
  372. package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
  373. package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
  374. package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
  375. package/dist/cjs/features/SegmentReviewComponents/PageTypeChoiceCheck.js +0 -2
  376. package/dist/cjs/features/SegmentReviewComponents/PageTypeChoiceCheck.js.map +0 -1
  377. package/dist/cjs/features/SegmentReviewComponents/reviewScore.js +0 -2
  378. package/dist/cjs/features/SegmentReviewComponents/reviewScore.js.map +0 -1
  379. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  380. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
  381. package/dist/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
  382. package/dist/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
  383. package/dist/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
  384. package/dist/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
  385. package/dist/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
  386. package/dist/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
  387. package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
  388. package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
  389. package/dist/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
  390. package/dist/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
  391. package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
  392. package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
  393. package/dist/features/PdfViewer/nyc-components/infoAlert.js +0 -2
  394. package/dist/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
  395. package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
  396. package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
  397. package/dist/features/SegmentReviewComponents/PageTypeChoiceCheck.js +0 -2
  398. package/dist/features/SegmentReviewComponents/PageTypeChoiceCheck.js.map +0 -1
  399. package/dist/features/SegmentReviewComponents/reviewScore.js +0 -2
  400. package/dist/features/SegmentReviewComponents/reviewScore.js.map +0 -1
  401. package/dist/types/node_modules/react-markdown/lib/complex-types.d.ts +0 -23
  402. package/dist/types/node_modules/react-markdown/lib/complex-types.d.ts.map +0 -1
  403. package/dist/types/src/Background.d.ts +0 -7
  404. package/dist/types/src/Background.d.ts.map +0 -1
  405. package/dist/types/src/RedlineApprovalCardTest.d.ts +0 -1
  406. package/dist/types/src/RedlineApprovalCardTest.d.ts.map +0 -1
  407. package/dist/types/src/RedlineEditorTest2.d.ts +0 -3
  408. package/dist/types/src/RedlineEditorTest2.d.ts.map +0 -1
  409. package/dist/types/src/commonConstants.d.ts +0 -31103
  410. package/dist/types/src/commonConstants.d.ts.map +0 -1
  411. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts +0 -2
  412. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts.map +0 -1
  413. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +0 -128
  414. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +0 -1
  415. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +0 -13
  416. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +0 -1
  417. package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts +0 -59
  418. package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts.map +0 -1
  419. package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts +0 -19
  420. package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts.map +0 -1
  421. package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts +0 -3
  422. package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts.map +0 -1
  423. package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts +0 -77
  424. package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts.map +0 -1
  425. package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts +0 -47
  426. package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts.map +0 -1
  427. package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts +0 -15
  428. package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts.map +0 -1
  429. package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts +0 -3
  430. package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts.map +0 -1
  431. package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts +0 -36
  432. package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts.map +0 -1
  433. package/dist/types/src/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts +0 -28
  434. package/dist/types/src/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts.map +0 -1
  435. package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts +0 -2
  436. package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts.map +0 -1
  437. package/dist/types/src/features/SegmentReviewComponents/reviewScore.d.ts +0 -4
  438. package/dist/types/src/features/SegmentReviewComponents/reviewScore.d.ts.map +0 -1
  439. package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts +0 -2
  440. package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts.map +0 -1
@@ -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"),i=require("react/jsx-runtime"),t=require("react"),r=require("@mui/icons-material/ChevronRight"),n=require("@mui/icons-material/Close"),a=require("@mui/material/Box"),o=require("@mui/material/Button"),s=require("@mui/material/ButtonBase"),l=require("@mui/material/Checkbox"),d=require("@mui/material/Divider"),u=require("@mui/material/IconButton"),c=require("@mui/material/Paper"),x=require("@mui/material/Stack"),f=require("@mui/material/Typography"),g=require("../../assests/icons/InfoAlert.js"),h=require("./CognitiveIcon.js"),p=require("./CognitiveScoreBadge.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=m(r),b=m(n),j=m(a),v=m(o),y=m(s),C=m(l),w=m(d),F=m(u),S=m(c),q=m(x),z=m(f),k=function(i,t){return e.__spreadArray([i],Array.isArray(t)?t:null==t?[]:[t],!0)};exports.default=function(r){var n=r.title,a=r.pageNo,o=r.content,s=void 0===o?"Please check the type of this page.":o,l=r.choices,d=r.cognitiveScore,u=r.onConfirm,c=r.onCognitiveClick,x=r.onClose,f=r.showCognitiveIntegrity,m=void 0===f||f,B=r.showCloseButton,I=void 0===B||B,A=r.confirmDisabled,T=void 0!==A&&A,W=r.width,D=void 0===W?260:W,R=r.maxWidth,H=void 0===R?260:R,P=r.styles,E=t.useState(function(){return new Set}),M=E[0],N=E[1],O=T||!u||0===M.size;return i.jsx(S.default,e.__assign({elevation:4,sx:k({width:D,maxWidth:H,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==P?void 0:P.root)},{children:i.jsxs(q.default,e.__assign({spacing:.75,sx:{p:1}},{children:[i.jsxs(q.default,e.__assign({direction:"row",alignItems:"center",spacing:.75,sx:null==P?void 0:P.header},{children:[i.jsx(g.default,{color:"error",height:16,width:16}),i.jsx(z.default,e.__assign({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:"Page Type Check"})),I&&i.jsx(F.default,e.__assign({size:"small",onClick:x,disabled:!x,"aria-label":"Close page type check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:i.jsx(b.default,{sx:{fontSize:17}})}))]})),i.jsxs(j.default,{children:[i.jsx(z.default,e.__assign({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:n})),null!=a&&i.jsx(z.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:a})),i.jsx(w.default,{sx:{my:.625}}),null!=s&&i.jsx(z.default,e.__assign({sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:s}))]}),i.jsx(q.default,e.__assign({spacing:.625,role:"group","aria-label":"Select page types"},{children:l.map(function(t){var r,n=M.has(t.page_type);return i.jsx(S.default,e.__assign({variant:"outlined",sx:k({borderColor:n?"#A5B4FC":"#E2E8F0",borderRadius:2,bgcolor:n?"#F5F3FF":"#FFFFFF",overflow:"hidden"},null==P?void 0:P.option)},{children:i.jsxs(y.default,e.__assign({disabled:T,onClick:function(){return e=t.page_type,void(T||N(function(i){var t=new Set(i);return t.has(e)?t.delete(e):t.add(e),t}));var e},sx:{width:"100%",minHeight:58,px:.75,py:.625,alignItems:"flex-start",justifyContent:"flex-start",textAlign:"left"}},{children:[i.jsx(C.default,{checked:n,tabIndex:-1,disableRipple:!0,inputProps:{"aria-label":t.page_type},sx:{p:.25,mr:.625,pointerEvents:"none"}}),i.jsxs(j.default,e.__assign({sx:{minWidth:0,pt:.125}},{children:[i.jsx(z.default,e.__assign({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:"table"===t.page_type?"Table":"Drawing"})),i.jsx(z.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:11,lineHeight:1.35}},{children:(r=t.page_type,"table"===r?"This page contains tabular data.":"This page contains an engineering drawing.")}))]}))]}))}),t.classification_id)})})),i.jsx(v.default,e.__assign({variant:"contained",fullWidth:!0,disabled:O,onClick:function(){return null==u?void 0:u(Array.from(M))},sx:k({minHeight:36,borderRadius:2,bgcolor:"#5925DC",fontSize:13,fontWeight:600,textTransform:"none",boxShadow:"none","&:hover":{bgcolor:"#4A1FB8",boxShadow:"none"},"&.Mui-disabled":{bgcolor:"#D9D6FE",color:"#FFFFFF"}},null==P?void 0:P.confirmButton)},{children:"Confirm"})),m&&i.jsxs(q.default,e.__assign({spacing:.625,sx:null==P?void 0:P.footer},{children:[i.jsx(w.default,{}),i.jsxs(y.default,e.__assign({onClick:c,disabled:!c,sx:{width:"100%",justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[i.jsxs(q.default,e.__assign({direction:"row",alignItems:"center",spacing:1},{children:[i.jsx(h.default,{sx:{color:"text.secondary"}}),i.jsx(z.default,e.__assign({sx:{color:"text.primary",fontSize:12}},{children:"Cognitive Integrity"}))]})),i.jsxs(q.default,e.__assign({direction:"row",alignItems:"center",spacing:.5},{children:[i.jsx(p.default,{score:d}),i.jsx(_.default,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]}))]}))}))};
2
- //# sourceMappingURL=PageTypeChoiceCheck.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PageTypeChoiceCheck.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e){if(null==e)return null;if("number"==typeof e)return Number.isFinite(e)?e:null;if("string"!=typeof e)return null;var r=e.trim();if(!r)return null;var u=Number.parseFloat(r);return Number.isFinite(u)?u:null};exports.getNumericScore=e,exports.getReviewScoreBand=function(r){var u=e(r);if(null==u)return null;return u<60?"low":u<=85?"medium":"high"};
2
- //# sourceMappingURL=reviewScore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reviewScore.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__rest as r,__assign as n}from"tslib";import{jsx as t,Fragment as e}from"react/jsx-runtime";import{useRef as i,useMemo as c,useEffect as l}from"react";import o from"react-markdown";import a from"rehype-raw";import{sanitizeExternalUrl as h}from"./utils/citationData.utils.js";import u from"./GptWebCitation.module.css.js";var d=function(d){var f=d.content,s=d.activeHighlightIndex,v=d.onHighlightCountChange,m=i(null),g=c(function(){var r,n=f.match(/id=["']highlighted-\d+["']/g);if(null==n?void 0:n.length)return n.length;var t=f.match(/<a\b[^>]*>/gi);return null!==(r=null==t?void 0:t.length)&&void 0!==r?r:0},[f]),p=c(function(){return/id=["']highlighted-\d+["']/.test(f)},[f]);l(function(){null==v||v(g)},[g,v]),l(function(){var r;if(m.current){var n=m.current.querySelector("#highlighted-".concat(s));if(n)n.scrollIntoView({behavior:"smooth",block:"center"});else null===(r=m.current.querySelectorAll("a[href]")[s])||void 0===r||r.scrollIntoView({behavior:"smooth",block:"center"})}},[s,f]);var b=c(function(){var i=-1;return{span:function(e){e.node;var i=r(e,["node"]),c=i.id;if(null==c?void 0:c.startsWith("highlighted-")){var l=Number(c.replace("highlighted-",""))===s;return t("span",n({},i,{id:c,className:"".concat(u.highlight).concat(l?" ".concat(u.highlightActive):"")}))}return t("span",n({},i))},a:function(r){var c,l=r.children,o=r.href,a=r.title,d=r.className;if(!o)return t(e,{children:l});i+=1;var f=!p&&i===s,v=null!==(c=h(o))&&void 0!==c?c:"#";return t("a",n({href:v,title:a,target:"_blank",rel:"noreferrer",className:"".concat(u.citationLink).concat(f?" ".concat(u.citationLinkActive):"").concat(d?" ".concat(d):"")},{children:l}))},code:function(e){var i=e.children,c=r(e,["children"]);return t("code",n({},c,{children:i}))},ol:function(e){var i=e.children,c=r(e,["children"]);return t("ol",n({},c,{children:i}))},ul:function(e){var i=e.children,c=r(e,["children"]);return t("ul",n({},c,{children:i}))},li:function(e){var i=e.children,c=r(e,["children"]);return t("li",n({},c,{children:i}))},p:function(e){var i=e.children,c=r(e,["children"]);return t("p",n({},c,{children:i}))}}},[s,p,f]);return t("div",n({ref:m,className:u.markdownBody},{children:t(o,n({rehypePlugins:[a],components:b},{children:f}))}))};export{d as default};
2
- //# sourceMappingURL=GptWebCitationMarkdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GptWebCitationMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as t}from"tslib";import{jsxs as o,jsx as i}from"react/jsx-runtime";import{ChevronDown as a,ChevronUp as n,Maximize2 as e,X as l,ExternalLink as r}from"lucide-react";import u from"dayjs";import c from"../ScannedDocCitation/ScannedDocCitation.js";import s from"../InstantLearningCitation/InstantLearningCitationComponent.js";import d from"../InstantLearningCitation/SlashLoader.js";import v from"../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";import m from"../RequirementAiCitations/ImageCitation/ImageCitationContent.js";import g from"../RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";import h from"../ChatCitation/ChatCitationRenderer.js";var _=function(t,o,i){if(!t)throw new Error("[CitationOrchestratorComponent] ".concat(o,': missing required field "').concat(i,'" in customMetaData'))},C=function(t,o){if(!Object.values(t).some(Boolean))throw new Error("[CitationOrchestratorComponent] ".concat(o,': missing one of "').concat(Object.keys(t).join('", "'),'" in customMetaData'))},p=function(p){var D,f,M,b,I,w,S,R,j,k,x,T,y,P,L,U,O,A,F,W,q,z,B,E,G,H,N,$,J,K,Q,V,X,Y,Z,tt,ot,it,at,nt,et,lt,rt=p.href,ut=p.citations,ct=p.children,st=p.isStreaming,dt=p.onCitationToggle,vt=p.chatCitationConfig;if(st)return o("span",t({style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontWeight:500,color:"#6D28D9"}},{children:[i("span",{children:ct}),i(d,{})]}));try{var mt=new URL(rt,"http://example.com"),gt=mt.searchParams.get("citationNumber"),ht=mt.searchParams.get("decisionStrength");if(!gt)return null;var _t=(null==ut?void 0:ut.find(function(t){var o;return String(null===(o=null==t?void 0:t.customMetaData)||void 0===o?void 0:o.citation_number)===gt}))||null;if(!_t)return null;var Ct=(null===(D=null==_t?void 0:_t.customMetaData)||void 0===D?void 0:D.citation_type)||((null===(f=_t.customMetaData)||void 0===f?void 0:f.type)||"").replace(/s$/,"");if("scanned_doc_citation"===Ct){var pt=null==_t?void 0:_t.customMetaData.value;if(null==pt?void 0:pt.length)return i(c,{pages:pt,subHeadingText:_t.customMetaData.artifact_title});_(null===(M=null==_t?void 0:_t.customMetaData)||void 0===M?void 0:M.gs_url,"scanned_doc_citation","gs_url");var Dt=[null===(b=null==_t?void 0:_t.customMetaData)||void 0===b?void 0:b.gs_url],ft=(null!==(I=_t.customMetaData.highlighted_coordinates)&&void 0!==I?I:[]).map(function(t,o){return{pageIndex:o,bboxes:[t]}});return i(c,{images:Dt,highlights:ft})}if("IL"===Ct){_(_t.customMetaData.il_learning,"IL","il_learning");var Mt=ct||(null===(w=_t.customMetaData)||void 0===w?void 0:w.link_text)||(null===(S=_t.customMetaData)||void 0===S?void 0:S.citation_source)||String(null!==(R=_t.customMetaData.citation_number)&&void 0!==R?R:1);return i(s,{citation:_t,linkTitle:Mt,onCitationToggle:null!=dt?dt:function(){},decisionStrengthFromUrl:ht||(null===(j=_t.customMetaData)||void 0===j?void 0:j.decision_strength)||""})}if("chat_citation"===Ct){var bt=null!=vt?vt:{},It=null===(T=null!==(x=null===(k=null==_t?void 0:_t.customMetaData)||void 0===k?void 0:k.chat_data)&&void 0!==x?x:[])||void 0===T?void 0:T.map(function(o){return t(t({},o),{timeStamp:u(o.timeStamp)})}),wt=!!(null===(y=null==_t?void 0:_t.customMetaData)||void 0===y?void 0:y.rule_book_content);return i(h,{showRootContainer:null===(P=bt.showRootContainer)||void 0===P||P,reversePanels:bt.reversePanels,isRenderedCustomComponent:bt.isRenderedCustomComponent,modalContainerStyle:bt.modalContainerStyle,additionalData:bt.additionalData,closePreview:bt.closePreview,selectedIdFromReason:null!==(L=bt.selectedIdFromReason)&&void 0!==L?L:void 0,rootContainer:t(t({},bt.rootContainer),{relevanceScore:_t.customMetaData.relevance_score}),chatContainer:t(t({},bt.chatContainer),{chatData:It,summarizedTab:null!==(O=null===(U=bt.chatContainer)||void 0===U?void 0:U.summarizedTab)&&void 0!==O?O:{chip:{isActive:!0,show:!0}},detailedTab:null!==(F=null===(A=bt.chatContainer)||void 0===A?void 0:A.detailedTab)&&void 0!==F?F:{chip:{isActive:!1}}}),ruleBookContainer:wt?t(t({},bt.ruleBookContainer),{data:{content:_t.customMetaData.rule_book_content,highlighted_texts:null!==(W=_t.customMetaData.rule_book_highlights)&&void 0!==W?W:[]}}):void 0})}if("gpt_citation"===Ct){var St=null===(q=_t.customMetaData)||void 0===q?void 0:q.value,Rt=null!==(z=null==St?void 0:St.text)&&void 0!==z?z:null===(E=null===(B=_t.customMetaData)||void 0===B?void 0:B.data_sources)||void 0===E?void 0:E[0],jt=null!==(G=null==St?void 0:St.label)&&void 0!==G?G:null===(N=null===(H=_t.customMetaData)||void 0===H?void 0:H.training_data_title)||void 0===N?void 0:N[0],kt=null!==($=null==St?void 0:St.paraphrase)&&void 0!==$?$:null===(K=null===(J=_t.customMetaData)||void 0===J?void 0:J.paraphrase)||void 0===K?void 0:K[0];return C({data_sources:Rt,training_data_title:jt},"gpt_citation"),i(v,{item:{text:"",dataSource:Rt,trainingDataTitle:jt,paraphrase:kt},headerTitle:"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:a,ChevronUpIcon:n,MaximizeIcon:e,CloseIcon:l}})}if("web_citation"===Ct){!function(t,o,i){_(t,o,i);try{new URL(t)}catch(a){throw new Error("[CitationOrchestratorComponent] ".concat(o,': "').concat(i,'" is not a valid URL: "').concat(t,'"'))}}(null===(Q=_t.customMetaData)||void 0===Q?void 0:Q.link,"web_citation","link");var xt=_t.customMetaData.link,Tt=ct||(null===(V=_t.customMetaData)||void 0===V?void 0:V.citation_source)||xt;return(null===(X=_t.customMetaData)||void 0===X?void 0:X.screenshot_url)?i(g,{url:xt,label:Tt,gsUtilPath:null===(Y=_t.customMetaData)||void 0===Y?void 0:Y.gs_util_path,signedUrl:null===(Z=_t.customMetaData)||void 0===Z?void 0:Z.screenshot_url,relevanceScore:null===(tt=_t.customMetaData)||void 0===tt?void 0:tt.relevance_score,visitIcon:r,PreviewDialogCloseIcon:l}):i("a",t({href:xt,target:"_blank",rel:"noreferrer"},{children:Tt}))}if("image_citation"===Ct)return C({gs_util_path:null===(ot=_t.customMetaData)||void 0===ot?void 0:ot.gs_util_path,signed_url:null===(it=_t.customMetaData)||void 0===it?void 0:it.signed_url},"image_citation"),i(m,{citationTitle:ct||(null===(at=_t.customMetaData)||void 0===at?void 0:at.citation_source),gsUtilPath:null===(nt=_t.customMetaData)||void 0===nt?void 0:nt.gs_util_path,signedUrl:null===(et=_t.customMetaData)||void 0===et?void 0:et.signed_url,relevanceScore:null===(lt=_t.customMetaData)||void 0===lt?void 0:lt.relevance_score})}catch(t){return console.error(t),null}return null};export{p as default};
2
- //# sourceMappingURL=ParentCitationComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParentCitationComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e,__spreadArray as i}from"tslib";import{jsx as o,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useMemo as n,useState as a}from"react";import d from"@mui/icons-material/ChevronRight";import l from"@mui/icons-material/Close";import c from"@mui/icons-material/ExpandMore";import s from"@mui/material/Box";import m from"@mui/material/Button";import u from"@mui/material/ButtonBase";import p from"@mui/material/Divider";import h from"@mui/material/IconButton";import f from"@mui/material/Paper";import x from"@mui/material/Radio";import g from"@mui/material/Stack";import b from"@mui/material/Typography";import v from"./CognitiveIcon.js";import y from"./infoAlert.js";var C=function(e,o){return i([e],Array.isArray(o)?o:null==o?[]:[o],!0)},E=function(e){return"KEEP"===e||"SPLIT_HERE"===e||"MERGE_NEXT"===e||"MERGE_PREVIOUS"===e||"SET_RANGE"===e},S=function(e){return e.user_actions.map(function(i){var o=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:o?"Start a new document at page ".concat(o,"."):"Create a new document at this boundary."};case"MERGE_NEXT":return{id:i,title:"Merge into next document",description:o?"Move page ".concat(o," 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."}}})};function w(i){var w=i.headerName,R=void 0===w?"Boundary Check":w,k=i.title,z=i.pageNo,A=i.content,I=i.cognitiveScore,M=i.config,j=i.metadata,B=i.selectedIndex,T=i.defaultSelectedIndex,_=void 0===T?null:T,F=i.onSelectionChange,N=i.onConfirm,P=i.onActionConfirm,W=i.onCognitiveClick,D=i.onAdjustManually,G=i.onClose,H=i.confirmLabel,L=void 0===H?"Confirm":H,K=i.manualPrompt,O=void 0===K?"Didn't find the right option?":K,U=i.manualActionLabel,V=void 0===U?"Adjust Manually":U,X=i.cognitiveLabel,q=void 0===X?"Cognitive Integrity":X,J=i.showAdjustManually,Q=void 0===J||J,Y=i.showCognitiveIntegrity,Z=void 0===Y||Y,$=i.showCloseButton,ee=void 0===$||$,ie=i.confirmDisabled,oe=void 0!==ie&&ie,te=i.width,re=void 0===te?340:te,ne=i.maxWidth,ae=void 0===ne?340:ne,de=i.className,le=i.styles,ce=n(function(){return null!=M?M:j?S(j):[]},[M,j]),se=a(_),me=se[0],ue=se[1],pe=void 0===B?me:B,he=null==pe?void 0:ce[pe],fe=oe||!he||!0===he.disabled||!N&&!P;return o(f,e({className:de,elevation:4,sx:C({width:re,maxWidth:ae,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==le?void 0:le.root)},{children:t(g,e({spacing:1.5,sx:{p:2}},{children:[t(g,e({direction:"row",alignItems:"center",spacing:1,sx:null==le?void 0:le.header},{children:[o(y,{color:"error"}),o(b,e({sx:{flex:1,color:"error.main",fontSize:16,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:R})),ee&&o(h,e({size:"small",onClick:G,disabled:!G,"aria-label":"Close boundary check",sx:{p:.25,"&.Mui-disabled":{color:"text.secondary"}}},{children:o(l,{sx:{fontSize:20}})}))]})),t(s,{children:[o(b,e({sx:{color:"text.primary",fontSize:18,fontWeight:500}},{children:k})),null!=z&&o(b,e({sx:{mt:.25,color:"text.secondary",fontSize:16}},{children:z})),o(p,{sx:{my:1.25}}),null!=A&&o(b,e({component:"div",sx:{color:"text.secondary",fontSize:15,lineHeight:1.45}},{children:A}))]}),t(g,e({spacing:1,role:"radiogroup","aria-label":"Boundary options"},{children:[ce.map(function(i,r){var n=pe===r;return o(f,e({variant:"outlined",sx:C({borderColor:n?"secondary.main":"divider",borderRadius:2,overflow:"hidden"},null==le?void 0:le.option)},{children:t(u,e({role:"radio","aria-checked":n,disabled:i.disabled,onClick:function(){return function(e,i){i.disabled||(void 0===B&&ue(e),null==F||F(e,i))}(r,i)},sx:{width:"100%",justifyContent:"flex-start",px:1.25,py:1.125,textAlign:"left"}},{children:[o(x,{checked:n,disabled:i.disabled,tabIndex:-1,size:"small",sx:{p:.5,mr:1}}),t(s,e({sx:{minWidth:0}},{children:[o(b,e({sx:{color:"text.primary",fontSize:15,fontWeight:500}},{children:i.title})),null!=i.description&&o(b,e({sx:{mt:.25,color:"text.secondary",fontSize:13}},{children:i.description}))]}))]}))}),i.id)}),o(m,e({variant:"contained",fullWidth:!0,disabled:fe,onClick:function(){!fe&&null!=pe&&he&&(null==N||N(pe,he),P&&E(he.id)&&P(he.id,{selectedIndex:pe,option:he,metadata:j}))},sx:C({minHeight:48,mt:.25,borderRadius:2,fontSize:17,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==le?void 0:le.confirmButton)},{children:L}))]})),t(g,e({spacing:1.25,sx:null==le?void 0:le.footer},{children:[Q&&t(u,e({onClick:D,disabled:!D,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[t(s,{children:[o(b,e({sx:{color:"text.primary",fontSize:14}},{children:O})),o(b,e({sx:{mt:.25,color:"text.primary",fontSize:14}},{children:V}))]}),o(c,{sx:{color:"text.secondary"}})]})),Z&&t(r,{children:[o(p,{}),t(u,e({onClick:W,disabled:!0,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:"not-allowed"}},{children:[t(g,e({direction:"row",alignItems:"center",spacing:1},{children:[o(v,{sx:{color:"text.secondary"}}),o(b,e({sx:{color:"text.primary",fontSize:15}},{children:q}))]})),t(g,e({direction:"row",alignItems:"center",spacing:.5},{children:[null!=I&&o(s,e({sx:{px:1,py:.125,border:"1.5px solid",borderColor:"secondary.main",borderRadius:10,color:"secondary.main",fontSize:14,lineHeight:1.25}},{children:I})),o(d,{sx:{color:"text.secondary"}})]}))]}))]})]}))]}))}))}export{S as createBoundaryCardOptions,w as default,E as isBoundaryReviewAction};
2
- //# sourceMappingURL=BoundaryCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BoundaryCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as o}from"tslib";import{jsx as t}from"react/jsx-runtime";import{useState as e,useLayoutEffect as r}from"react";import n from"@mui/material/Box";import i from"@mui/material/Popper";function l(l){var a,m,f=l.anchorRef,u=l.anchorElement,p=l.children,c=l.className,s=l.offset,d=void 0===s?{}:s,v=l.placement,x=void 0===v?"bottom-start":v,h=e(null),E=h[0],b=h[1];return r(function(){var o,t=null!==(o=null!=u?u:null==f?void 0:f.current)&&void 0!==o?o:null;b(function(o){return o===t?o:t})}),t(i,o({open:Boolean(E),anchorEl:E,placement:x,className:c,popperOptions:{strategy:"fixed"},modifiers:[{name:"offset",options:{offset:[null!==(a=d.left)&&void 0!==a?a:0,null!==(m=d.top)&&void 0!==m?m:0]}}],sx:{zIndex:function(o){return o.zIndex.tooltip}}},{children:t(n,o({sx:{maxHeight:"calc(85vh - 10px)",overflowY:"auto",pointerEvents:"auto"}},{children:p}))}))}export{l as default};
2
- //# sourceMappingURL=CardWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as C}from"tslib";import{jsxs as e,jsx as t}from"react/jsx-runtime";import i from"@mui/material/SvgIcon";function r(r){return e(i,C({},r,{viewBox:"0 0 12 17",sx:C({width:12,height:17},r.sx)},{children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.778549 6.35498C0.947509 6.06234 1.14047 5.78701 1.35448 5.53127L1.05841 6.77432C0.87679 7.48466 0.80378 8.17502 1.05378 8.73356C1.09106 8.81682 1.13466 8.8951 1.18403 8.96801C1.17505 9.11859 1.17346 9.27007 1.17938 9.42164C1.21133 10.2394 1.46064 11.0339 1.90165 11.7232C2.34265 12.4126 2.95942 12.9719 3.68845 13.3437C3.78702 13.3948 3.86973 13.4719 3.92758 13.5667C3.98544 13.6614 4.01623 13.7702 4.01664 13.8814V16.3427C4.01664 16.422 4.00103 16.5004 3.97071 16.5736C3.94039 16.6468 3.89595 16.7133 3.83993 16.7693C3.78391 16.8253 3.71741 16.8698 3.64421 16.9001C3.57102 16.9305 3.49257 16.946 3.41335 16.946C3.33412 16.946 3.25567 16.9305 3.18248 16.9001C3.10928 16.8698 3.04278 16.8253 2.98676 16.7693C2.93074 16.7133 2.8863 16.6468 2.85598 16.5736C2.82567 16.5004 2.81006 16.422 2.81006 16.3427V14.2366C1.50675 13.4505 0.563809 12.1847 0.18393 10.7109C-0.195948 9.23705 0.017555 7.67304 0.778549 6.35498ZM2.5956 4.4202C2.58489 4.46583 2.57238 4.51587 2.55818 4.57051L2.10596 6.46709C2.4519 6.00902 2.88178 5.61795 3.37484 5.31587C3.45372 5.26755 3.53389 5.2217 3.61524 5.17836L3.91437 4.02581C3.94069 3.92848 3.96334 3.83471 3.98223 3.74482C3.4887 3.90843 3.02287 4.13636 2.5956 4.4202ZM4.97997 3.50929C4.95187 3.76277 4.89721 4.01844 4.83146 4.26296L4.70096 4.7659C5.02368 4.68809 5.35523 4.64508 5.68997 4.63852C6.50816 4.62249 7.31584 4.82482 8.02986 5.22467C8.74387 5.62452 9.33837 6.20745 9.75227 6.91343C10.1661 7.61942 10.3843 8.42296 10.3845 9.24135V13.029C10.3845 13.1201 10.3483 13.2075 10.2838 13.272C10.2193 13.3365 10.132 13.3726 10.0408 13.3726H8.14698C7.98698 13.3726 7.83353 13.4362 7.72039 13.5493C7.60726 13.6625 7.5437 13.816 7.5437 13.9759V16.3427C7.5437 16.5028 7.60726 16.6562 7.72039 16.7693C7.83353 16.8825 7.98698 16.946 8.14698 16.946C8.30699 16.946 8.46043 16.8825 8.57357 16.7693C8.6867 16.6562 8.75027 16.5028 8.75027 16.3427V14.5792H10.0408C10.2444 14.5792 10.446 14.5391 10.634 14.4612C10.8221 14.3833 10.993 14.2691 11.137 14.1252C11.2809 13.9812 11.3951 13.8103 11.473 13.6223C11.551 13.4342 11.591 13.2326 11.591 13.029V9.24224C11.5909 8.20964 11.3155 7.1957 10.7933 6.30483C10.271 5.41397 9.5209 4.67834 8.61996 4.17369C7.50563 3.55832 6.22659 3.32916 4.97997 3.50929ZM3.31096 7.17824C3.06416 7.47379 2.86777 7.81154 2.73281 8.17818C2.67346 8.33942 2.62681 8.50407 2.59287 8.67068C2.96541 8.66305 3.3259 8.58961 4.09408 7.98043L4.4813 7.65806C4.62698 7.53143 4.68583 7.33671 4.65268 7.14949L4.63322 7.06982C4.53815 6.83998 4.24287 6.77137 4.02738 6.89566C3.80462 7.02416 3.56339 7.12021 3.31096 7.17824ZM5.50956 6.70762C5.39307 6.42581 5.2101 6.22391 4.9955 6.09139C5.4636 5.96152 5.95753 5.9332 6.44355 6.01261C7.21223 6.13821 7.9139 6.52554 8.4298 7.10905C8.7773 7.50191 8.68077 8.0666 8.32362 8.38802C7.27342 9.33691 5.53306 10.5666 3.80331 11.0251C3.36315 11.141 2.88052 10.9286 2.71933 10.4749C2.62076 10.1971 2.55967 9.90972 2.53604 9.62C2.82204 9.61857 3.17908 9.5971 3.63183 9.39587C4.05727 9.20681 4.51985 8.88082 5.10381 8.3732C5.58794 7.95226 5.70675 7.30946 5.5355 6.77894L5.52437 6.74281L5.50956 6.70762Z"}),t("path",{d:"M2.49253 8.67144C1.98274 8.67144 1.60843 8.35663 1.96545 6.97238L2.55084 4.51665C2.65295 4.12345 2.66944 3.96624 2.55084 3.96624C2.1154 4.07601 2.33401 4.00777 1.9654 4.16485L1.71094 3.73988C2.95167 2.68571 2.97363 2.40709 3.58474 2.40709C4.09454 2.40709 4.17978 3.02062 3.92448 3.96464L3.25466 6.54621C3.13565 7.00253 3.18712 7.15973 3.30531 7.15973C3.56398 7.10114 3.81132 7.00404 4.03939 6.87249C4.25773 6.74655 4.55616 6.81591 4.65239 7.04889C4.72106 7.26145 4.66773 7.49745 4.49914 7.64399C3.36616 8.62885 2.9653 8.67144 2.49253 8.67144ZM3.66602 0.00239655C3.7822 -0.00651177 3.89895 0.00947896 4.00846 0.0493006C4.11797 0.0891223 4.21772 0.151858 4.30105 0.233314C4.38438 0.314771 4.44935 0.413073 4.49165 0.521653C4.53394 0.630232 4.55258 0.746588 4.54631 0.862945V0.860752C4.53258 1.15708 4.40525 1.43674 4.19074 1.64164C3.97623 1.84656 3.69104 1.96097 3.39439 1.96112L3.37064 1.96075C3.25288 1.97358 3.13485 1.95962 3.02324 1.91993C2.91164 1.88024 2.81044 1.81584 2.72723 1.73154C2.64402 1.64723 2.58094 1.54522 2.54271 1.43311C2.50477 1.32187 2.49227 1.20356 2.5061 1.08687C2.51738 0.789536 2.64564 0.508673 2.86299 0.305421C3.08056 0.101963 3.36973 -0.00722427 3.66748 0.00166549L3.66602 0.00239655Z"})]}))}export{r as default};
2
- //# sourceMappingURL=CognitiveIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CognitiveIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e,__spreadArray as o}from"tslib";import{jsx as i,jsxs as r,Fragment as t}from"react/jsx-runtime";import{useMemo as n,useState as l}from"react";import a from"@mui/icons-material/ChevronRight";import d from"@mui/icons-material/Close";import c from"@mui/icons-material/ExpandMore";import s from"@mui/material/Box";import u from"@mui/material/Button";import m from"@mui/material/ButtonBase";import p from"@mui/material/Divider";import f from"@mui/material/IconButton";import h from"@mui/material/Paper";import x from"@mui/material/Radio";import b from"@mui/material/Stack";import v from"@mui/material/TextField";import g from"@mui/material/Typography";import C from"./CognitiveIcon.js";import y from"./infoAlert.js";var S=function(e,i){return o([e],Array.isArray(i)?i:null==i?[]:[i],!0)},w=function(e){return e.user_actions.map(function(o){switch(o){case"KEEP_LABEL":return{id:o,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:o,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"}}})},L=function(e){return"KEEP_LABEL"===e||"SET_CUSTOM_LABEL"===e};function A(o){var A,k=o.headerName,z=void 0===k?"Label Check":k,I=o.title,E=o.pageNo,B=o.content,_=void 0===B?"We're not fully confident about this label. Confirm it, choose a different type, or add a new one.":B,F=o.cognitiveScore,W=o.config,j=o.metadata,T=o.selectedIndex,M=o.defaultSelectedIndex,R=void 0===M?null:M,D=o.onSelectionChange,P=o.customLabel,K=o.defaultCustomLabel,H=o.onCustomLabelChange,N=o.onConfirm,q=o.onActionConfirm,O=o.onCognitiveClick,U=o.onAdjustManually,G=o.onClose,J=o.confirmLabel,Q=void 0===J?"Confirm":J,V=o.customInputAriaLabel,X=void 0===V?"Custom document label":V,Y=o.manualPrompt,Z=void 0===Y?"Didn't find the right option?":Y,$=o.manualActionLabel,ee=void 0===$?"Adjust Manually":$,oe=o.cognitiveLabel,ie=void 0===oe?"Cognitive Integrity":oe,re=o.showAdjustManually,te=void 0===re||re,ne=o.showCognitiveIntegrity,le=void 0===ne||ne,ae=o.showCloseButton,de=void 0===ae||ae,ce=o.confirmDisabled,se=void 0!==ce&&ce,ue=o.width,me=void 0===ue?340:ue,pe=o.maxWidth,fe=void 0===pe?340:pe,he=o.className,xe=o.styles,be=n(function(){return null!=W?W:j?w(j):[]},[W,j]),ve=l(R),ge=ve[0],Ce=ve[1],ye=l(null!==(A=null!=K?K:null==j?void 0:j.custom_label)&&void 0!==A?A:""),Se=ye[0],we=ye[1],Le=void 0===T?ge:T,Ae=void 0===P?Se:P,ke=null==Le?void 0:be[Le],ze=Boolean(null==ke?void 0:ke.requiresInput),Ie=se||!N&&!q||!ke||!0===ke.disabled||ze&&0===Ae.trim().length,Ee=function(){if(!Ie&&null!=Le&&ke){var e=ze?Ae.trim():void 0;null==N||N(Le,ke,e),q&&L(ke.id)&&q(ke.id,{selectedIndex:Le,option:ke,customLabel:e,metadata:j})}};return i(h,e({className:he,elevation:4,sx:S({width:me,maxWidth:fe,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==xe?void 0:xe.root)},{children:r(b,e({spacing:1.5,sx:{p:2}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:1,sx:null==xe?void 0:xe.header},{children:[i(y,{color:"error"}),i(g,e({sx:{flex:1,color:"error.main",fontSize:16,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:z})),de&&i(f,e({size:"small",onClick:G,disabled:!G,"aria-label":"Close label check",sx:{p:.25,"&.Mui-disabled":{color:"text.secondary"}}},{children:i(d,{sx:{fontSize:20}})}))]})),r(s,{children:[i(g,e({sx:{color:"text.primary",fontSize:18,fontWeight:500}},{children:I})),null!=E&&i(g,e({sx:{mt:.25,color:"text.secondary",fontSize:16}},{children:E})),i(p,{sx:{my:1.25}}),null!=_&&i(g,e({component:"div",sx:{color:"text.secondary",fontSize:15,lineHeight:1.45}},{children:_}))]}),r(b,e({spacing:1,role:"radiogroup","aria-label":"Label options"},{children:[be.map(function(o,t){var n=Le===t;return r(h,e({variant:"outlined",sx:S({borderColor:n?"secondary.main":"divider",borderRadius:2,overflow:"hidden"},null==xe?void 0:xe.option)},{children:[r(m,e({role:"radio","aria-checked":n,disabled:o.disabled,onClick:function(){return function(e,o){o.disabled||(void 0===T&&Ce(e),null==D||D(e,o))}(t,o)},sx:{width:"100%",justifyContent:"flex-start",px:1.25,py:1.125,textAlign:"left"}},{children:[i(x,{checked:n,disabled:o.disabled,tabIndex:-1,size:"small",sx:{p:.5,mr:1}}),r(s,e({sx:{minWidth:0}},{children:[i(g,e({sx:{color:"text.primary",fontSize:15,fontWeight:500}},{children:o.title})),null!=o.description&&i(g,e({sx:{mt:.25,color:"text.secondary",fontSize:13}},{children:o.description}))]}))]})),n&&o.requiresInput&&i(s,e({sx:{px:1.75,pb:1.5,pl:5.75}},{children:i(v,{autoFocus:!0,fullWidth:!0,size:"small",value:Ae,placeholder:o.inputPlaceholder,inputProps:{"aria-label":X},onChange:function(e){return o=e.target.value,void 0===P&&we(o),void(null==H||H(o));var o},onKeyDown:function(e){"Enter"===e.key&&Ee()},sx:null==xe?void 0:xe.customInput})}))]}),o.id)}),i(u,e({variant:"contained",fullWidth:!0,disabled:Ie,onClick:Ee,sx:S({minHeight:48,mt:.25,borderRadius:2,fontSize:17,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==xe?void 0:xe.confirmButton)},{children:Q}))]})),r(b,e({spacing:1.25,sx:null==xe?void 0:xe.footer},{children:[te&&r(m,e({onClick:U,disabled:!U,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[r(s,{children:[i(g,e({sx:{color:"text.primary",fontSize:14}},{children:Z})),i(g,e({sx:{mt:.25,color:"text.primary",fontSize:14}},{children:ee}))]}),i(c,{sx:{color:"text.secondary"}})]})),le&&r(t,{children:[i(p,{}),r(m,e({onClick:O,disabled:!O,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:1},{children:[i(C,{sx:{color:"text.secondary"}}),i(g,e({sx:{color:"text.primary",fontSize:15}},{children:ie}))]})),r(b,e({direction:"row",alignItems:"center",spacing:.75},{children:[null!=F&&i(s,e({sx:{px:1,py:.125,border:"1.5px solid",borderColor:"secondary.main",borderRadius:10,color:"secondary.main",fontSize:14,lineHeight:1.25}},{children:F})),i(a,{sx:{color:"text.secondary"}})]}))]}))]})]}))]}))}))}export{w as createLabelCheckOptions,A as default,L as isLabelReviewAction};
2
- //# sourceMappingURL=LabelCheck.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LabelCheck.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__spreadArray as e,__awaiter as n,__generator as t,__assign as i}from"tslib";import{jsxs as r,jsx as a}from"react/jsx-runtime";import{useMemo as o,useState as u,useRef as l,useCallback as d,useEffect as c}from"react";import s from"../PdfViewer.js";import v from"./BoundaryCard.js";import f from"./CardWrapper.js";import g from"./LabelCheck.js";import{extractSegmentReviewData as p}from"./reviewStepAdapters.js";var m=function(e){return{reviewId:e.review.id,segment:e.review.segment,pageNumber:e.pageNumber}};function w(w){var b=this,h=w.pdfUrl,y=w.pdfName,C=w.segments,N=w.pdfViewerProps,P=w.showBadges,x=void 0===P||P,A=w.showResolvedBadges,R=void 0!==A&&A,_=w.autoSelectReviewOnPageChange,F=void 0!==_&&_,S=w.autoAdvanceAfterConfirm,k=void 0===S||S,j=w.badgePreloadPages,E=void 0===j?8:j,M=w.badgeOffsetTop,B=void 0===M?20:M,D=w.badgeOffsetRight,L=void 0===D?8:D,z=w.initialReviewId,I=w.onBoundaryAction,O=w.onLabelAction,q=w.onActiveReviewChange,W=w.onCurrentPageChange,T=w.onActionError,H=w.onAdjustManually,U=w.onCognitiveClick,V=w.className,G=w.style,J=w.viewerStyle,K=w.railStyle,Q=o(function(){return p(C)},[C]),X=Q.boundaryReviews,Y=Q.labelReviews,Z=o(function(){return e(e([],X.map(function(e){var n;return{kind:"boundary",pageNumber:null!==(n=e.metadata.focus_page)&&void 0!==n?n:e.segment.start_page,review:e}}),!0),Y.map(function(e){return{kind:"label",pageNumber:e.segment.start_page,review:e}}),!0).sort(function(e,n){return e.pageNumber-n.pageNumber||e.review.id.localeCompare(n.review.id)})},[X,Y]),$=o(function(){return C.map(function(e){return{title:e.label||e.title,start_page:e.start_page,end_page:e.end_page,page_count:e.end_page-e.start_page+1}})},[C]),ee=u(1),ne=ee[0],te=ee[1],ie=u(null!=z?z:null),re=ie[0],ae=ie[1],oe=u(null),ue=oe[0],le=oe[1],de=u(null),ce=de[0],se=de[1],ve=u(function(){return new Set}),fe=ve[0],ge=ve[1],pe=u(null),me=pe[0],we=pe[1],be=l(0),he=l(new Map),ye=l(null),Ce=l(null),Ne=o(function(){var e;return null!==(e=Z.find(function(e){return e.review.id===re}))&&void 0!==e?e:null},[re,Z]),Pe=d(function(e){be.current+=1,se({pageNumber:e,requestId:be.current})},[]),xe=d(function(e,n){var t;ae(e.review.id),le(null!==(t=null!=n?n:he.current.get(e.review.id))&&void 0!==t?t:null),Pe(e.pageNumber),null==q||q(e.review.id)},[q,Pe]),Ae=d(function(){ae(null),le(null),null==q||q(null)},[q]),Re=d(function(e){var n;if(k){var t=Z.findIndex(function(n){return n.review.id===e}),i=null!==(n=Z.find(function(n,i){return i>t&&n.review.id!==e&&!fe.has(n.review.id)}))&&void 0!==n?n:Z.find(function(n){return n.review.id!==e&&!fe.has(n.review.id)});i?requestAnimationFrame(function(){return xe(i)}):Ae()}else Ae()},[k,Ae,fe,Z,xe]),_e=d(function(e,i,r){return n(b,void 0,void 0,function(){var n,a;return t(this,function(t){switch(t.label){case 0:n=m(e),we(e.review.id),t.label=1;case 1:return t.trys.push([1,6,7,8]),"boundary"!==e.kind?[3,3]:[4,null==I?void 0:I(i,r,n)];case 2:return t.sent(),[3,5];case 3:return[4,null==O?void 0:O(i,r,n)];case 4:t.sent(),t.label=5;case 5:return ge(function(n){var t=new Set(n);return t.add(e.review.id),t}),Re(e.review.id),[3,8];case 6:return a=t.sent(),null==T||T(a,n),[3,8];case 7:return we(null),[7];case 8:return[2]}})})},[T,I,O,Re]);c(function(){re&&!Z.some(function(e){return e.review.id===re})&&Ae()},[re,Ae,Z]),c(function(){if(F){var e=Z.find(function(e){return e.pageNumber===ne&&!fe.has(e.review.id)});e&&e.review.id!==re&&xe(e)}},[re,F,ne,fe,Z,xe]);var Fe=R?Z:Z.filter(function(e){return!fe.has(e.review.id)}),Se=o(function(){return new Map(Z.map(function(e,n){return[e.review.id,n+1]}))},[Z]),ke=o(function(){var e=new Map;Fe.forEach(function(n){var t,i=null!==(t=e.get(n.pageNumber))&&void 0!==t?t:[];i.push(n),e.set(n.pageNumber,i)});var n=new Map;return e.forEach(function(e){e.forEach(function(e,t){return n.set(e.review.id,t)})}),n},[Fe]),je=d(function(e){return{startPage:Math.max(0,e.startPage-E),endPage:Math.min(e.numPages-1,e.endPage+E)}},[E]),Ee=d(function(){var e=ye.current,n=Ce.current;if(e&&n){var t=e.getBoundingClientRect(),i=n.getBoundingClientRect();Fe.forEach(function(e){var r,a=he.current.get(e.review.id);if(a){var o=n.querySelector('[data-testid="core__page-layer-'.concat(e.pageNumber-1,'"]'));if(o){var u=o.getBoundingClientRect(),l=u.bottom>i.top&&u.top<i.bottom,d=null!==(r=ke.get(e.review.id))&&void 0!==r?r:0;a.style.top="".concat(u.top-t.top+B+40*d,"px"),a.style.visibility=l?"visible":"hidden"}else a.style.visibility="hidden"}})}},[B,ke,Fe]);return c(function(){var e=Ce.current;if(e&&x){var n=null,t=function(){null==n&&(n=requestAnimationFrame(function(){n=null,Ee()}))};e.addEventListener("scroll",t,!0),window.addEventListener("resize",t);var i=new MutationObserver(t);i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]});var r="undefined"==typeof ResizeObserver?null:new ResizeObserver(t);return null==r||r.observe(e),t(),function(){null!=n&&cancelAnimationFrame(n),e.removeEventListener("scroll",t,!0),window.removeEventListener("resize",t),i.disconnect(),null==r||r.disconnect()}}},[x,Ee]),r("div",i({ref:ye,className:V,style:i({display:"flex",alignItems:"stretch",gap:12,position:"relative",width:"100%",height:"100%",minWidth:0},G)},{children:[a("div",i({ref:Ce,style:i({flex:1,minWidth:0,height:"100%"},J)},{children:a(s,i({highlightText:[],highlightPages:{},highlightCordinatePages:[],useCoordinates:!1},N,{pdfUrl:h,pdfName:y,segments:$,navigationRequest:ce,setRenderRange:je,onCurrentPageChange:function(e){te(e),Ne&&Ne.pageNumber!==e&&Ae(),null==W||W(e)}}))})),x&&a("aside",i({"aria-label":"Page review badges",style:i({position:"relative",width:112,flex:"0 0 112px",minHeight:0,overflow:"hidden"},K)},{children:Fe.map(function(e){var n,t,o=re===e.review.id,u=fe.has(e.review.id),l=null!==(n=Se.get(e.review.id))&&void 0!==n?n:1,d="".concat(l).concat("boundary"===e.kind?"B":"L");return r("button",i({ref:function(n){n?he.current.set(e.review.id,n):he.current.delete(e.review.id)},type:"button","aria-pressed":o,title:"".concat(e.review.step.type," · Page ").concat(e.pageNumber),onClick:function(n){return xe(e,n.currentTarget)},style:{position:"absolute",top:0,right:L,visibility:"hidden",display:"flex",alignItems:"center",justifyContent:"space-between",gap:4,width:96,minHeight:32,padding:"5px 8px",border:"1px solid ".concat(o?"#5925DC":"#D0D5DD"),borderRadius:16,background:o?"#F4F3FF":"#FFFFFF",color:u?"#98A2B3":o?"#5925DC":"#344054",cursor:"pointer",opacity:u?.65:1,font:"inherit",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)"}},{children:[a("span",i({style:{fontSize:13,fontWeight:600}},{children:d})),a("span",i({style:{fontSize:10}},{children:null!==(t=e.review.step.confidence)&&void 0!==t?t:"—"}))]}),e.review.id)})})),Ne&&ue&&a(f,i({anchorElement:ue,placement:"bottom-end",offset:{top:8}},{children:"boundary"===Ne.kind?a(v,{title:Ne.review.segment.label||Ne.review.segment.title,pageNo:"Page ".concat(Ne.pageNumber),content:Ne.review.step.reason,cognitiveScore:Ne.review.step.confidence,metadata:Ne.review.metadata,confirmDisabled:me===Ne.review.id,onActionConfirm:function(e,n){_e(Ne,e,n)},onAdjustManually:function(){return null==H?void 0:H(m(Ne))},onCognitiveClick:function(){return null==U?void 0:U(m(Ne))},onClose:Ae},Ne.review.id):a(g,{title:Ne.review.metadata.current_label||Ne.review.segment.label||Ne.review.segment.title,pageNo:"Pages ".concat(Ne.review.segment.start_page,"-").concat(Ne.review.segment.end_page),content:Ne.review.step.reason,cognitiveScore:Ne.review.step.confidence,metadata:Ne.review.metadata,confirmDisabled:me===Ne.review.id,onActionConfirm:function(e,n){_e(Ne,e,n)},onAdjustManually:function(){return null==H?void 0:H(m(Ne))},onCognitiveClick:function(){return null==U?void 0:U(m(Ne))},onClose:Ae},Ne.review.id)}))]}))}export{w as default};
2
- //# sourceMappingURL=SegmentReviewPdfWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SegmentReviewPdfWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import t from"@mui/material/SvgIcon";function e(e){return o(t,r({},e,{viewBox:"0 0 13 13",sx:r({width:13,height:13},e.sx)},{children:o("path",{d:"M6.33333 3.99996V6.33329M6.33333 8.66663H6.33917M12.1667 6.33329C12.1667 3.11163 9.555 0.499959 6.33333 0.499959C3.11167 0.499959 0.5 3.11163 0.5 6.33329C0.5 9.55495 3.11167 12.1666 6.33333 12.1666C9.555 12.1666 12.1667 9.55495 12.1667 6.33329Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}))}export{e as default};
2
- //# sourceMappingURL=infoAlert.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"infoAlert.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{isBoundaryReviewAction as e}from"./BoundaryCard.js";import{isLabelReviewAction as t}from"./LabelCheck.js";var r=function(e){return"object"==typeof e&&null!==e?e:{}},n=function(e){return"string"==typeof e?e:null},a=function(e){return"number"==typeof e&&Number.isFinite(e)?e:null},u=function(e){return Array.isArray(e)?e.filter(function(e){return"string"==typeof e}):[]},o=function(e){var a=r(e);return{current_label:n(a.current_label),custom_label:n(a.custom_label),group_id:n(a.group_id),user_actions:u(a.user_actions).filter(t)}},i=function(t){var n=[],i=[];return t.forEach(function(t){t.review_steps.forEach(function(c,s){var l;if("Page Boundary Review"===c.type){var f=function(t){var n=r(t);return{focus_page:a(n.focus_page),boundary_margin:a(n.boundary_margin),user_actions:u(n.user_actions).filter(e)}}(c.metadata);n.push({id:"".concat(t.stable_key,":boundary:").concat(null!==(l=f.focus_page)&&void 0!==l?l:s),segment:t,step:c,metadata:f})}"Label Review"===c.type&&i.push({id:"".concat(t.stable_key,":label:").concat(s),segment:t,step:c,metadata:o(c.metadata)})})}),{boundaryReviews:n,labelReviews:i}};export{i as extractSegmentReviewData};
2
- //# sourceMappingURL=reviewStepAdapters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reviewStepAdapters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e,__spreadArray as i}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as t}from"react";import n from"@mui/icons-material/ChevronRight";import a from"@mui/icons-material/Close";import l from"@mui/material/Box";import c from"@mui/material/Button";import d from"@mui/material/ButtonBase";import s from"@mui/material/Checkbox";import m from"@mui/material/Divider";import p from"@mui/material/IconButton";import h from"@mui/material/Paper";import f from"@mui/material/Stack";import g from"@mui/material/Typography";import u from"../../assests/icons/InfoAlert.js";import x from"./CognitiveIcon.js";import b from"./CognitiveScoreBadge.js";var v=function(e,o){return i([e],Array.isArray(o)?o:null==o?[]:[o],!0)};function y(i){var y=i.title,C=i.pageNo,w=i.content,F=void 0===w?"Please check the type of this page.":w,S=i.choices,z=i.cognitiveScore,k=i.onConfirm,B=i.onCognitiveClick,I=i.onClose,A=i.showCognitiveIntegrity,T=void 0===A||A,W=i.showCloseButton,j=void 0===W||W,D=i.confirmDisabled,R=void 0!==D&&D,_=i.width,H=void 0===_?260:_,E=i.maxWidth,P=void 0===E?260:E,M=i.styles,N=t(function(){return new Set}),q=N[0],G=N[1],J=R||!k||0===q.size;return o(h,e({elevation:4,sx:v({width:H,maxWidth:P,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==M?void 0:M.root)},{children:r(f,e({spacing:.75,sx:{p:1}},{children:[r(f,e({direction:"row",alignItems:"center",spacing:.75,sx:null==M?void 0:M.header},{children:[o(u,{color:"error",height:16,width:16}),o(g,e({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:"Page Type Check"})),j&&o(p,e({size:"small",onClick:I,disabled:!I,"aria-label":"Close page type check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:o(a,{sx:{fontSize:17}})}))]})),r(l,{children:[o(g,e({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:y})),null!=C&&o(g,e({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:C})),o(m,{sx:{my:.625}}),null!=F&&o(g,e({sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:F}))]}),o(f,e({spacing:.625,role:"group","aria-label":"Select page types"},{children:S.map(function(i){var t,n=q.has(i.page_type);return o(h,e({variant:"outlined",sx:v({borderColor:n?"#A5B4FC":"#E2E8F0",borderRadius:2,bgcolor:n?"#F5F3FF":"#FFFFFF",overflow:"hidden"},null==M?void 0:M.option)},{children:r(d,e({disabled:R,onClick:function(){return e=i.page_type,void(R||G(function(i){var o=new Set(i);return o.has(e)?o.delete(e):o.add(e),o}));var e},sx:{width:"100%",minHeight:58,px:.75,py:.625,alignItems:"flex-start",justifyContent:"flex-start",textAlign:"left"}},{children:[o(s,{checked:n,tabIndex:-1,disableRipple:!0,inputProps:{"aria-label":i.page_type},sx:{p:.25,mr:.625,pointerEvents:"none"}}),r(l,e({sx:{minWidth:0,pt:.125}},{children:[o(g,e({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:"table"===i.page_type?"Table":"Drawing"})),o(g,e({sx:{mt:.125,color:"text.secondary",fontSize:11,lineHeight:1.35}},{children:(t=i.page_type,"table"===t?"This page contains tabular data.":"This page contains an engineering drawing.")}))]}))]}))}),i.classification_id)})})),o(c,e({variant:"contained",fullWidth:!0,disabled:J,onClick:function(){return null==k?void 0:k(Array.from(q))},sx:v({minHeight:36,borderRadius:2,bgcolor:"#5925DC",fontSize:13,fontWeight:600,textTransform:"none",boxShadow:"none","&:hover":{bgcolor:"#4A1FB8",boxShadow:"none"},"&.Mui-disabled":{bgcolor:"#D9D6FE",color:"#FFFFFF"}},null==M?void 0:M.confirmButton)},{children:"Confirm"})),T&&r(f,e({spacing:.625,sx:null==M?void 0:M.footer},{children:[o(m,{}),r(d,e({onClick:B,disabled:!B,sx:{width:"100%",justifyContent:"space-between",borderRadius:1,textAlign:"left"}},{children:[r(f,e({direction:"row",alignItems:"center",spacing:1},{children:[o(x,{sx:{color:"text.secondary"}}),o(g,e({sx:{color:"text.primary",fontSize:12}},{children:"Cognitive Integrity"}))]})),r(f,e({direction:"row",alignItems:"center",spacing:.5},{children:[o(b,{score:z}),o(n,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]}))]}))}))}export{y as default};
2
- //# sourceMappingURL=PageTypeChoiceCheck.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PageTypeChoiceCheck.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var r=function(r){if(null==r)return null;if("number"==typeof r)return Number.isFinite(r)?r:null;if("string"!=typeof r)return null;var n=r.trim();if(!n)return null;var u=Number.parseFloat(n);return Number.isFinite(u)?u:null},n=function(n){var u=r(n);if(null==u)return null;return u<60?"low":u<=85?"medium":"high"};export{r as getNumericScore,n as getReviewScoreBand};
2
- //# sourceMappingURL=reviewScore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reviewScore.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- import type { ReactNode, ComponentType, ComponentPropsWithoutRef } from 'react';
2
- import type { Position } from 'unist';
3
- import type { Element } from 'hast';
4
- export type ReactMarkdownProps = {
5
- node: Element;
6
- children: ReactNode[];
7
- /**
8
- * Passed when `options.rawSourcePos` is given
9
- */
10
- sourcePosition?: Position;
11
- /**
12
- * Passed when `options.includeElementIndex` is given
13
- */
14
- index?: number;
15
- /**
16
- * Passed when `options.includeElementIndex` is given
17
- */
18
- siblingCount?: number;
19
- };
20
- export type NormalComponents = {
21
- [TagName in keyof JSX.IntrinsicElements]: keyof JSX.IntrinsicElements | ComponentType<ComponentPropsWithoutRef<TagName> & ReactMarkdownProps>;
22
- };
23
- //# sourceMappingURL=complex-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"complex-types.d.ts","sourceRoot":"","sources":["../../../../../node_modules/react-markdown/lib/complex-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,aAAa,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAA;AAC7E,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAA;AACnC,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,MAAM,CAAA;AAIjC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,SAAS,EAAE,CAAA;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAA;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;KAC5B,OAAO,IAAI,MAAM,GAAG,CAAC,iBAAiB,GACnC,MAAM,GAAG,CAAC,iBAAiB,GAC3B,aAAa,CAAC,wBAAwB,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC;CAC1E,CAAA"}
@@ -1,7 +0,0 @@
1
- type Props = {
2
- isOpen: boolean;
3
- onClose: () => void;
4
- };
5
- export default function EditingBlockedModal({ isOpen, onClose, }: Props): import("react/jsx-runtime").JSX.Element | null;
6
- export {};
7
- //# sourceMappingURL=Background.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../src/Background.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACT,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EACxC,MAAM,EACN,OAAO,GACV,EAAE,KAAK,kDAuCP"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=RedlineApprovalCardTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RedlineApprovalCardTest.d.ts","sourceRoot":"","sources":["../../../src/RedlineApprovalCardTest.tsx"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- declare function RedlineEditorTest2(): import("react/jsx-runtime").JSX.Element;
2
- export default RedlineEditorTest2;
3
- //# sourceMappingURL=RedlineEditorTest2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RedlineEditorTest2.d.ts","sourceRoot":"","sources":["../../../src/RedlineEditorTest2.tsx"],"names":[],"mappings":"AA6BA,iBAAS,kBAAkB,4CAi8D1B;AAED,eAAe,kBAAkB,CAAA"}