@viswa-test/test-citation 0.0.377 → 0.0.379

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