@viswa-test/test-citation 0.0.333 → 0.0.335

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js +2 -0
  4. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js.map +1 -0
  5. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
  6. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
  8. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
  9. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
  10. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
  11. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
  12. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
  13. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
  14. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
  15. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
  16. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
  17. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
  18. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
  19. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
  20. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
  21. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  24. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
  25. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  28. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  29. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
  31. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  41. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  44. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  45. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  47. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  48. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  49. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  50. package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js +1 -1
  51. package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js +1 -1
  52. package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js +1 -1
  53. package/dist/cjs/features/SegmentReviewComponents/PageCheck.js +2 -0
  54. package/dist/cjs/features/SegmentReviewComponents/PageCheck.js.map +1 -0
  55. package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  56. package/dist/cjs/features/SegmentReviewComponents/helper.js +1 -1
  57. package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
  58. package/dist/cjs/index.js +1 -1
  59. package/dist/cjs/service/redlineService.js +1 -1
  60. package/dist/features/PdfViewer/PdfViewer.js +1 -1
  61. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  62. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js +2 -0
  63. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.js.map +1 -0
  64. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
  65. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  66. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
  67. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
  68. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
  69. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
  70. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
  71. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
  72. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
  73. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
  74. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
  75. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
  76. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
  77. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
  78. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
  79. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
  80. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  81. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  82. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  83. package/dist/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
  84. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
  85. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  86. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  87. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  88. package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
  89. package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
  90. package/dist/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
  91. package/dist/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
  92. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  93. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  94. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  95. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
  96. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  97. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  98. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  99. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  100. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  101. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  102. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  103. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  104. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  105. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  106. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  107. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  108. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  109. package/dist/features/SegmentReviewComponents/BoundaryCard.js +1 -1
  110. package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js +1 -1
  111. package/dist/features/SegmentReviewComponents/LabelCheck.js +1 -1
  112. package/dist/features/SegmentReviewComponents/PageCheck.js +2 -0
  113. package/dist/features/SegmentReviewComponents/PageCheck.js.map +1 -0
  114. package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  115. package/dist/features/SegmentReviewComponents/helper.js +1 -1
  116. package/dist/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
  117. package/dist/index.js +1 -1
  118. package/dist/service/redlineService.js +1 -1
  119. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -1
  120. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  121. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +1 -0
  122. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
  123. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +1 -1
  124. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +39 -29
  125. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  126. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.d.ts +2 -0
  127. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/changeTags.d.ts.map +1 -0
  128. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts +2 -0
  129. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts.map +1 -0
  130. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  131. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.d.ts +10 -0
  132. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.d.ts.map +1 -0
  133. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts +17 -0
  134. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts.map +1 -0
  135. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts +23 -0
  136. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts.map +1 -0
  137. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts +3 -0
  138. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts.map +1 -0
  139. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -1
  140. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +1 -1
  141. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  142. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts +84 -5439
  143. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts.map +1 -1
  144. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +1 -1
  145. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  146. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +1 -1
  147. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -1
  148. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +2 -2
  149. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  150. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +19 -2
  151. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  152. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts +7 -2
  153. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts.map +1 -1
  154. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.d.ts.map +1 -1
  155. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts +15 -1
  156. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts.map +1 -1
  157. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts +2 -1
  158. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts.map +1 -1
  159. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts +3 -2
  160. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  161. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts.map +1 -1
  162. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts +1 -0
  163. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts.map +1 -1
  164. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts +1 -0
  165. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts.map +1 -1
  166. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
  167. package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts +12 -0
  168. package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts.map +1 -0
  169. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +3 -2
  170. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
  171. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +1 -1
  172. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
  173. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +3 -1
  174. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
  175. package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts +2 -1
  176. package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -1
  177. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts +1 -0
  178. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts.map +1 -1
  179. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +2 -0
  180. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  181. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +2 -1
  182. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  183. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +2 -1
  184. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  185. package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts +1 -1
  186. package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts.map +1 -1
  187. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +2 -0
  188. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  189. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +3 -0
  190. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  191. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +2 -1
  192. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -1
  193. package/dist/types/src/features/RequirementAI/utils/helpers.d.ts +2 -0
  194. package/dist/types/src/features/RequirementAI/utils/helpers.d.ts.map +1 -1
  195. package/dist/types/src/features/RequirementAI/utils/proccess-stream.utils.d.ts.map +1 -1
  196. package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts +1 -3
  197. package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +1 -1
  198. package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts +1 -3
  199. package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts.map +1 -1
  200. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +51 -0
  201. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +1 -0
  202. package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts +1 -2
  203. package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts.map +1 -1
  204. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +5 -17
  205. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +1 -1
  206. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts.map +1 -1
  207. package/dist/types/src/features/SegmentReviewComponents/helper.d.ts.map +1 -1
  208. package/dist/types/src/features/SegmentReviewComponents/index.d.ts +5 -6
  209. package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +1 -1
  210. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +37 -35
  211. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +1 -1
  212. package/dist/types/src/index.d.ts +2 -2
  213. package/dist/types/src/index.d.ts.map +1 -1
  214. package/dist/types/src/service/redlineService.d.ts.map +1 -1
  215. package/package.json +9 -4
  216. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/guidelineTargets.js +0 -2
  217. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/guidelineTargets.js.map +0 -1
  218. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.js +0 -2
  219. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.js.map +0 -1
  220. package/dist/cjs/features/CognitiveCompare/components/GuidelineSkeletonLoader.js +0 -2
  221. package/dist/cjs/features/CognitiveCompare/components/GuidelineSkeletonLoader.js.map +0 -1
  222. package/dist/cjs/features/CognitiveCompare/utils/normalizeRedlineMarkdown.js +0 -2
  223. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  224. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
  225. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
  226. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
  227. package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
  228. package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
  229. package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
  230. package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
  231. package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
  232. package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
  233. package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
  234. package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
  235. package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
  236. package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
  237. package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js +0 -2
  238. package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
  239. package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
  240. package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
  241. package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js +0 -2
  242. package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
  243. package/dist/cjs/features/SegmentReviewComponents/RevertCard.js +0 -2
  244. package/dist/cjs/features/SegmentReviewComponents/RevertCard.js.map +0 -1
  245. package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
  246. package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
  247. package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
  248. package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
  249. package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js +0 -2
  250. package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js.map +0 -1
  251. package/dist/features/CognitiveCompare/Guidelines/utils/guidelineTargets.js +0 -2
  252. package/dist/features/CognitiveCompare/Guidelines/utils/guidelineTargets.js.map +0 -1
  253. package/dist/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.js +0 -2
  254. package/dist/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.js.map +0 -1
  255. package/dist/features/CognitiveCompare/components/GuidelineSkeletonLoader.js +0 -2
  256. package/dist/features/CognitiveCompare/components/GuidelineSkeletonLoader.js.map +0 -1
  257. package/dist/features/CognitiveCompare/utils/normalizeRedlineMarkdown.js +0 -2
  258. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  259. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
  260. package/dist/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
  261. package/dist/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
  262. package/dist/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
  263. package/dist/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
  264. package/dist/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
  265. package/dist/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
  266. package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
  267. package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
  268. package/dist/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
  269. package/dist/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
  270. package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
  271. package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
  272. package/dist/features/PdfViewer/nyc-components/infoAlert.js +0 -2
  273. package/dist/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
  274. package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
  275. package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
  276. package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js +0 -2
  277. package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
  278. package/dist/features/SegmentReviewComponents/RevertCard.js +0 -2
  279. package/dist/features/SegmentReviewComponents/RevertCard.js.map +0 -1
  280. package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
  281. package/dist/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
  282. package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
  283. package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
  284. package/dist/features/SegmentReviewComponents/ReviewedCard.js +0 -2
  285. package/dist/features/SegmentReviewComponents/ReviewedCard.js.map +0 -1
  286. package/dist/types/node_modules/react-markdown/lib/complex-types.d.ts +0 -23
  287. package/dist/types/node_modules/react-markdown/lib/complex-types.d.ts.map +0 -1
  288. package/dist/types/src/Background.d.ts +0 -7
  289. package/dist/types/src/Background.d.ts.map +0 -1
  290. package/dist/types/src/RedlineApprovalCardTest.d.ts +0 -1
  291. package/dist/types/src/RedlineApprovalCardTest.d.ts.map +0 -1
  292. package/dist/types/src/RedlineEditorTest2.d.ts +0 -3
  293. package/dist/types/src/RedlineEditorTest2.d.ts.map +0 -1
  294. package/dist/types/src/assests/icons/ChartSplitIcon.d.ts +0 -3
  295. package/dist/types/src/assests/icons/ChartSplitIcon.d.ts.map +0 -1
  296. package/dist/types/src/commonConstants.d.ts +0 -31103
  297. package/dist/types/src/commonConstants.d.ts.map +0 -1
  298. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/guidelineTargets.d.ts +0 -3
  299. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/guidelineTargets.d.ts.map +0 -1
  300. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.d.ts +0 -19
  301. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/resolveGuidelineSelection.d.ts.map +0 -1
  302. package/dist/types/src/features/CognitiveCompare/components/GuidelineSkeletonLoader.d.ts +0 -8
  303. package/dist/types/src/features/CognitiveCompare/components/GuidelineSkeletonLoader.d.ts.map +0 -1
  304. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts +0 -2
  305. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts.map +0 -1
  306. package/dist/types/src/features/CognitiveCompare/utils/normalizeRedlineMarkdown.d.ts +0 -6
  307. package/dist/types/src/features/CognitiveCompare/utils/normalizeRedlineMarkdown.d.ts.map +0 -1
  308. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +0 -128
  309. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +0 -1
  310. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +0 -13
  311. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +0 -1
  312. package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts +0 -59
  313. package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts.map +0 -1
  314. package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts +0 -19
  315. package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts.map +0 -1
  316. package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts +0 -3
  317. package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts.map +0 -1
  318. package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts +0 -77
  319. package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts.map +0 -1
  320. package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts +0 -47
  321. package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts.map +0 -1
  322. package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts +0 -15
  323. package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts.map +0 -1
  324. package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts +0 -3
  325. package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts.map +0 -1
  326. package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts +0 -36
  327. package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts.map +0 -1
  328. package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts +0 -3
  329. package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +0 -1
  330. package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts +0 -37
  331. package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts.map +0 -1
  332. package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts +0 -9
  333. package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +0 -1
  334. package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +0 -7
  335. package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +0 -1
  336. package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts +0 -2
  337. package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts.map +0 -1
  338. package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts +0 -2
  339. package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts.map +0 -1
  340. /package/dist/cjs/features/{CognitiveCompare → RequirementAI/components/RichTextEditor/Editor}/utils/normalizeRedlineMarkdown.js.map +0 -0
  341. /package/dist/features/{CognitiveCompare → RequirementAI/components/RichTextEditor/Editor}/utils/normalizeRedlineMarkdown.js.map +0 -0
@@ -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 t}from"tslib";import{jsx as r}from"react/jsx-runtime";function o(o){return r("svg",t({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r("path",{d:"M8.9375 1.4375V0.5M11.3996 2.10041L12.0625 1.4375M12.0689 4.5625H13.0064M12.9691 7.375C12.6556 10.5333 9.99084 13 6.75 13C3.29822 13 0.5 10.2018 0.5 6.75C0.5 3.50916 2.96667 0.844437 6.125 0.53086M6.75 4.25H9.25V6.75M9.0123 4.25C7.54083 6.32975 5.11648 7.6875 2.375 7.6875C1.74819 7.6875 1.13795 7.61652 0.551889 7.48216",stroke:"#16A34A","stroke-linecap":"round","stroke-linejoin":"round"})}))}export{o as default};
2
- //# sourceMappingURL=ChartBreakoutCircle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartBreakoutCircle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e,__awaiter as r,__generator as t}from"tslib";import{jsxs as i,jsx as n}from"react/jsx-runtime";import{useState as o}from"react";import a from"@mui/material/Box";import l from"@mui/material/Button";import c from"@mui/material/ButtonBase";import d from"@mui/material/Divider";import s from"@mui/material/Stack";import h from"@mui/material/Tooltip";import m from"@mui/material/Typography";import{ChevronLeft as f}from"lucide-react";var u=function(e){var r=e.startPage,t=e.endPage;return"Pages ".concat(r,"-").concat(t)},x=function(r){var t=r.segment;return i(a,e({sx:{px:.75,py:.625,minWidth:0}},{children:[n(m,e({sx:{color:"text.secondary",fontSize:11,lineHeight:1.3,overflowWrap:"anywhere"}},{children:t.title})),n(m,e({sx:{color:"text.primary",fontSize:12,fontWeight:400,lineHeight:1.3}},{children:u(t)}))]}))};function p(u){var p=this,v=u.icon,y=u.title,C=u.pageRange,S=u.description,R=u.onRevert,w=u.onRevertComplete,W=u.onRevertError,F=u.revertData,z=u.confirmDisabled,k=void 0!==z&&z,H=u.showDocumentHeader,A=void 0===H||H,B=o(!1),E=B[0],D=B[1],T=o(!1),P=T[0],I=T[1],L=F.previousSegments.length>0,j=function(){return r(p,void 0,void 0,function(){var e,r;return t(this,function(t){switch(t.label){case 0:if(P||k)return[2];I(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,R()];case 2:return e=t.sent(),null==w||w(e),[3,5];case 3:return r=t.sent(),null==W||W(r),[3,5];case 4:return I(!1),[7];case 5:return[2]}})})};return i(s,e({spacing:.875,sx:{minWidth:0}},{children:[A&&i(a,e({sx:{minWidth:0}},{children:[n(m,e({sx:{color:"text.primary",fontSize:14,fontWeight:500,lineHeight:1.4,overflowWrap:"anywhere"}},{children:y})),n(m,e({sx:{color:"text.secondary",fontSize:12,lineHeight:1.4}},{children:C}))]})),i(s,e({direction:"row",alignItems:"flex-start",spacing:.625,sx:{px:.75,py:.625,border:"1px solid #86EFAC",borderRadius:2,bgcolor:"#FFFFFF",color:"#16A34A"}},{children:[n(a,e({"aria-hidden":"true",sx:{display:"flex",flexShrink:0,mt:"1px",fontSize:14}},{children:v})),n(m,e({sx:{minWidth:0,color:"inherit",fontSize:11,lineHeight:1.5,overflowWrap:"anywhere"}},{children:S}))]})),n(d,{sx:{borderStyle:"dashed",borderColor:"#CBD5E1"}}),E?i(s,e({spacing:.75},{children:[i(c,e({onClick:function(){return D(!1)},"aria-label":"Back from revert confirmation",sx:{width:"fit-content",borderRadius:.5,color:"text.primary",fontSize:13,fontWeight:500,lineHeight:1.3,textAlign:"left"}},{children:[n(a,e({component:"span","aria-hidden":"true",sx:{mr:.625,alignItems:"center",display:"flex"}},{children:n(f,{size:16})})),"Revert"]})),i(a,L?e({sx:{p:.75,borderRadius:1,bgcolor:"#F8FAFC"}},{children:[n(m,e({sx:{mb:.375,color:"text.secondary",fontSize:12}},{children:"Current"})),n(a,e({sx:{mb:.75,border:"1px solid #E2E8F0",borderRadius:1,bgcolor:"background.paper"}},{children:n(x,{segment:F.currentSegment})})),n(m,e({sx:{mb:.375,color:"text.secondary",fontSize:12}},{children:"After Revert"})),n(a,e({sx:{border:"1px solid #E2E8F0",borderRadius:1,bgcolor:"background.paper",overflow:"hidden"}},{children:F.previousSegments.map(function(e,r){return i(a,{children:[r>0&&n(d,{sx:{borderColor:"#E2E8F0"}}),n(x,{segment:e})]},"".concat(e.title,"-").concat(e.startPage,"-").concat(e.endPage,"-").concat(r))})})),i(s,e({direction:"row",spacing:1,sx:{mt:.875}},{children:[n(l,e({variant:"outlined",fullWidth:!0,disabled:P,onClick:function(){return D(!1)},sx:g},{children:"Cancel"})),n(h,e({title:k?"Revert data is not present, cannot revert this":"",disableHoverListener:!k,arrow:!0},{children:n("span",e({style:{flex:1}},{children:n(l,e({variant:"contained",fullWidth:!0,disabled:P||k,onClick:function(){j()},sx:b},{children:P?"Reverting…":"Confirm"}))}))}))]}))]}):e({sx:{p:.875,borderRadius:1,bgcolor:"#F8FAFC"}},{children:[n(m,e({sx:{color:"text.secondary",fontSize:12,fontWeight:500}},{children:"Revert approval?"})),n(m,e({sx:{mt:.75,color:"text.secondary",fontSize:13,lineHeight:1.45}},{children:"This document will be moved back to pending review and will need to be confirmed again."})),i(s,e({direction:"row",spacing:1,sx:{mt:1}},{children:[n(l,e({variant:"outlined",fullWidth:!0,disabled:P,onClick:function(){return D(!1)},sx:g},{children:"Cancel"})),n(h,e({title:k?"Revert data is not present, cannot revert this":"",disableHoverListener:!k,arrow:!0},{children:n("span",e({style:{flex:1}},{children:n(l,e({variant:"contained",fullWidth:!0,disabled:P||k,onClick:function(){j()},sx:b},{children:P?"Reverting…":"Confirm"}))}))}))]}))]}))]})):n(l,e({variant:"outlined",fullWidth:!0,onClick:function(){return D(!0)},sx:{minHeight:36,borderColor:"#9B8AFB",color:"#5925DC",borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none","&:hover":{borderColor:"secondary.dark",bgcolor:"rgba(79, 70, 229, 0.04)"}}},{children:"Revert"}))]}))}var g={minHeight:34,borderColor:"#94A3B8",color:"#64748B",borderRadius:"8px",fontSize:12,fontWeight:500,textTransform:"none"},b={minHeight:34,borderRadius:"8px",bgcolor:"#4F46E5",fontSize:12,fontWeight:500,textTransform:"none",boxShadow:"none","&:hover":{bgcolor:"#4338CA",boxShadow:"none"}};export{p as default};
2
- //# sourceMappingURL=RevertCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RevertCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as r}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import e from"@mui/icons-material/ArrowForward";import t from"@mui/material/Box";import l from"@mui/material/Button";import n from"@mui/material/Paper";import m from"@mui/material/Stack";import a from"@mui/material/Typography";import{CheckCircleIcon as d}from"lucide-react";function c(c){var s=c.title,h=c.description,p=c.onReview,F=c.reviewLabel,f=void 0===F?"Review":F;return i(n,r({elevation:0,role:"status",sx:{width:"100%",px:1.5,py:1.5,border:"1.5px solid #86EFAC",borderRadius:2,bgcolor:"#F0FDF4",boxSizing:"border-box"}},{children:o(m,r({alignItems:"center",spacing:1.5,sx:{textAlign:"center"}},{children:[i(t,r({sx:{display:"grid",placeItems:"center",width:58,height:58,border:"8px solid rgba(255, 255, 255, 0.9)",borderRadius:"50%",bgcolor:"#DCFCE7",color:"#0A9B49"}},{children:i(d,{height:36,width:36})})),o(t,{children:[i(a,r({sx:{color:"#166534",fontSize:15,fontWeight:600,lineHeight:1.4}},{children:s})),i(a,r({sx:{mt:.75,color:"#07883F",fontSize:14,lineHeight:1.55}},{children:h}))]}),i(l,r({variant:"outlined",fullWidth:!0,onClick:p,endIcon:i(e,{}),sx:{minHeight:42,border:"1.5px solid #CBD5E1",borderRadius:2,bgcolor:"#FFFFFF",color:"#475569",fontSize:16,fontWeight:700,textTransform:"none","&:hover":{borderColor:"#94A3B8",bgcolor:"#FFFFFF"}}},{children:f}))]}))}))}export{c as default};
2
- //# sourceMappingURL=RevertSuccessCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RevertSuccessCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as r}from"tslib";import{jsxs as o,jsx as e}from"react/jsx-runtime";import i from"@mui/material/Box";import t from"@mui/material/Typography";import{GitMerge as l}from"lucide-react";function a(a){var m=a.children;return o(i,r({sx:{display:"flex",alignItems:"flex-start",gap:1,px:1,py:1.125,border:"1px solid #FACC15",borderRadius:1.5,bgcolor:"#FFFBEB",color:"#D18A00"}},{children:[e(l,{size:18,strokeWidth:2.25,style:{flex:"0 0 auto",marginTop:1}}),e(t,r({component:"div",sx:{color:"inherit",fontSize:12,lineHeight:1.5,overflowWrap:"anywhere"}},{children:m}))]}))}export{a as default};
2
- //# sourceMappingURL=RevertSummaryNotice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RevertSummaryNotice.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as i,__spreadArray as e}from"tslib";import{jsxs as o,jsx as r}from"react/jsx-runtime";import t from"@mui/icons-material/ChevronRight";import n from"@mui/icons-material/Close";import l from"@mui/material/Box";import a from"@mui/material/ButtonBase";import c from"@mui/material/Divider";import m from"@mui/material/IconButton";import s from"@mui/material/Paper";import d from"@mui/material/Stack";import h from"@mui/material/Typography";import p from"../../assests/icons/InfoAlert.js";import x from"./CognitiveIcon.js";import f from"./CognitiveScoreBadge.js";var u=function(i,o){return e([i],Array.isArray(o)?o:null==o?[]:[o],!0)};function g(e){var g=e.headerName,v=void 0===g?"Reviewed":g,w=e.headerIcon,y=e.title,b=e.pageNo,C=e.summary,W=e.cognitiveScore,S=e.onCognitiveClick,I=e.onClose,k=e.cognitiveLabel,z=void 0===k?"Cognitive Integrity":k,A=e.showCognitiveIntegrity,B=void 0===A||A,j=e.showCloseButton,N=void 0===j||j,R=e.width,D=void 0===R?260:R,F=e.maxWidth,T=void 0===F?260:F,E=e.className,H=e.styles;return o(s,i({className:E,elevation:4,sx:u({width:D,maxWidth:"min(".concat(T,"number"==typeof T?"px, 100%)":", 100%)"),minWidth:0,flexShrink:1,borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box",boxShadow:"0 8px 16px rgba(16, 24, 40, 0.16)","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==H?void 0:H.root)},{children:[o(d,i({direction:"row",alignItems:"center",spacing:.75,sx:u({minWidth:0,px:1.25,py:1,bgcolor:"#ECFDF5",color:"#16A34A"},null==H?void 0:H.header)},{children:[null!=w?w:r(p,{color:"success",height:16,width:16}),r(h,i({sx:{flex:1,minWidth:0,color:"inherit",fontSize:13,fontWeight:500,lineHeight:1.25,textTransform:"uppercase",overflowWrap:"anywhere"}},{children:v})),N&&r(m,i({size:"small",onClick:I,disabled:!I,"aria-label":"Close reviewed card",sx:{p:0,color:"#475569","&.Mui-disabled":{color:"text.secondary"}}},{children:r(n,{sx:{fontSize:17}})}))]})),o(d,i({spacing:.875,sx:{px:1.25,pt:1.25,pb:1}},{children:[o(l,{children:[r(h,i({sx:{color:"text.primary",fontSize:14,fontWeight:500,overflowWrap:"anywhere"}},{children:y})),null!=b&&r(h,i({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:b}))]}),null!=C&&r(d,i({sx:null==H?void 0:H.content},{children:C})),B&&o(d,i({spacing:.625,sx:null==H?void 0:H.footer},{children:[r(c,{}),o(a,i({onClick:S,disabled:!S,sx:{width:"100%",minWidth:0,justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:S?"pointer":"not-allowed"}},{children:[o(d,i({direction:"row",alignItems:"center",spacing:1,sx:{minWidth:0,flex:1}},{children:[r(x,{sx:{color:"text.secondary"}}),r(h,i({sx:{minWidth:0,color:"text.primary",fontSize:12,overflowWrap:"anywhere"}},{children:z}))]})),o(d,i({direction:"row",alignItems:"center",spacing:.5,sx:{flexShrink:0}},{children:[r(f,{score:W}),r(t,{sx:{color:"text.secondary"}})]}))]}))]}))]}))]}))}export{g as default};
2
- //# sourceMappingURL=ReviewedCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReviewedCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,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"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export default function ChartSplitIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=ChartSplitIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChartSplitIcon.d.ts","sourceRoot":"","sources":["../../../../../src/assests/icons/ChartSplitIcon.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,2CAO1E"}