@e-llm-studio/citation 0.0.249 → 0.0.251-beta.1

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 (2362) hide show
  1. package/README.md +36 -183
  2. package/dist/BPACitationRenderer.js +2 -0
  3. package/dist/BPACitationRenderer.js.map +1 -0
  4. package/dist/BookCitation.js +2 -0
  5. package/dist/BookCitation.js.map +1 -0
  6. package/dist/Bookemon.js +2 -0
  7. package/dist/Bookemon.js.map +1 -0
  8. package/dist/ChatCitation.js +2 -0
  9. package/dist/ChatCitation.js.map +1 -0
  10. package/dist/ChatDrawer.js +2 -0
  11. package/dist/ChatDrawer.js.map +1 -0
  12. package/dist/CitationRenderer.js +2 -0
  13. package/dist/CitationRenderer.js.map +1 -0
  14. package/dist/CodeCitation.js +2 -0
  15. package/dist/CodeCitation.js.map +1 -0
  16. package/dist/CognitiveInternalgptCoreComponent.js +2 -0
  17. package/dist/CognitiveInternalgptCoreComponent.js.map +1 -0
  18. package/dist/CognitiveInternalgptReasoning.js +2 -0
  19. package/dist/CognitiveInternalgptReasoning.js.map +1 -0
  20. package/dist/GptWebCitation.js +2 -0
  21. package/dist/GptWebCitation.js.map +1 -0
  22. package/dist/IngestionStatusComponent.js +2 -0
  23. package/dist/IngestionStatusComponent.js.map +1 -0
  24. package/dist/PdfViewer.js +2 -0
  25. package/dist/PdfViewer.js.map +1 -0
  26. package/dist/ProjectAccordion.js +2 -0
  27. package/dist/ProjectAccordion.js.map +1 -0
  28. package/dist/SplitterCitationsComponent.js +2 -0
  29. package/dist/SplitterCitationsComponent.js.map +1 -0
  30. package/dist/TextualGuideLinesComponent.js +2 -0
  31. package/dist/TextualGuideLinesComponent.js.map +1 -0
  32. package/dist/assests/icons/CitationsIcon.js +1 -1
  33. package/dist/assests/icons/CitationsIcon.js.map +1 -1
  34. package/dist/assests/icons/CitationsSparkleIcon.js +1 -1
  35. package/dist/assests/icons/CitationsSparkleIcon.js.map +1 -1
  36. package/dist/assests/icons/InfoAlert.js +1 -1
  37. package/dist/assests/icons/InfoAlert.js.map +1 -1
  38. package/dist/assests/svg/ButtonCognitiveIcon.js +1 -1
  39. package/dist/assests/svg/ButtonCognitiveIcon.js.map +1 -1
  40. package/dist/assests/svg/NeuralNetworkIcon.js +1 -1
  41. package/dist/assests/svg/NeuralNetworkIcon.js.map +1 -1
  42. package/dist/assests/svg/PdfViewerIcons.js +1 -1
  43. package/dist/assests/svg/PdfViewerIcons.js.map +1 -1
  44. package/dist/assests/svg/SparkleIcon.js +1 -1
  45. package/dist/assests/svg/SparkleIcon.js.map +1 -1
  46. package/dist/assests/svg/chevronDownArrow.svg.js.map +1 -1
  47. package/dist/assests/svg/chevronUp.svg.js.map +1 -1
  48. package/dist/cjs/BPACitationRenderer.js +2 -0
  49. package/dist/cjs/BPACitationRenderer.js.map +1 -0
  50. package/dist/cjs/BookCitation.js +2 -0
  51. package/dist/cjs/BookCitation.js.map +1 -0
  52. package/dist/cjs/Bookemon.js +2 -0
  53. package/dist/cjs/Bookemon.js.map +1 -0
  54. package/dist/cjs/ChatCitation.js +2 -0
  55. package/dist/cjs/ChatCitation.js.map +1 -0
  56. package/dist/cjs/ChatDrawer.js +2 -0
  57. package/dist/cjs/ChatDrawer.js.map +1 -0
  58. package/dist/cjs/CitationRenderer.js +2 -0
  59. package/dist/cjs/CitationRenderer.js.map +1 -0
  60. package/dist/cjs/CodeCitation.js +2 -0
  61. package/dist/cjs/CodeCitation.js.map +1 -0
  62. package/dist/cjs/CognitiveInternalgptCoreComponent.js +2 -0
  63. package/dist/cjs/CognitiveInternalgptCoreComponent.js.map +1 -0
  64. package/dist/cjs/CognitiveInternalgptReasoning.js +2 -0
  65. package/dist/cjs/CognitiveInternalgptReasoning.js.map +1 -0
  66. package/dist/cjs/GptWebCitation.js +2 -0
  67. package/dist/cjs/GptWebCitation.js.map +1 -0
  68. package/dist/cjs/IngestionStatusComponent.js +2 -0
  69. package/dist/cjs/IngestionStatusComponent.js.map +1 -0
  70. package/dist/cjs/PdfViewer.js +2 -0
  71. package/dist/cjs/PdfViewer.js.map +1 -0
  72. package/dist/cjs/ProjectAccordion.js +2 -0
  73. package/dist/cjs/ProjectAccordion.js.map +1 -0
  74. package/dist/cjs/SplitterCitationsComponent.js +2 -0
  75. package/dist/cjs/SplitterCitationsComponent.js.map +1 -0
  76. package/dist/cjs/TextualGuideLinesComponent.js +2 -0
  77. package/dist/cjs/TextualGuideLinesComponent.js.map +1 -0
  78. package/dist/cjs/assests/icons/CitationsIcon.js +1 -1
  79. package/dist/cjs/assests/icons/CitationsIcon.js.map +1 -1
  80. package/dist/cjs/assests/icons/CitationsSparkleIcon.js +1 -1
  81. package/dist/cjs/assests/icons/CitationsSparkleIcon.js.map +1 -1
  82. package/dist/cjs/assests/icons/InfoAlert.js +1 -1
  83. package/dist/cjs/assests/icons/InfoAlert.js.map +1 -1
  84. package/dist/cjs/assests/svg/ButtonCognitiveIcon.js +1 -1
  85. package/dist/cjs/assests/svg/ButtonCognitiveIcon.js.map +1 -1
  86. package/dist/cjs/assests/svg/NeuralNetworkIcon.js +1 -1
  87. package/dist/cjs/assests/svg/NeuralNetworkIcon.js.map +1 -1
  88. package/dist/cjs/assests/svg/PdfViewerIcons.js +1 -1
  89. package/dist/cjs/assests/svg/PdfViewerIcons.js.map +1 -1
  90. package/dist/cjs/assests/svg/SparkleIcon.js +1 -1
  91. package/dist/cjs/assests/svg/SparkleIcon.js.map +1 -1
  92. package/dist/cjs/assests/svg/chevronDownArrow.svg.js.map +1 -1
  93. package/dist/cjs/assests/svg/chevronUp.svg.js.map +1 -1
  94. package/dist/cjs/constants/diagnosticStylesBySeverity.js +1 -1
  95. package/dist/cjs/constants/diagnosticStylesBySeverity.js.map +1 -1
  96. package/dist/cjs/features/BPACitationRenderer/BPACitationRenderer.js +1 -1
  97. package/dist/cjs/features/BPACitationRenderer/BPACitationRenderer.js.map +1 -1
  98. package/dist/cjs/features/BPACitationRenderer/citationTypes.js.map +1 -1
  99. package/dist/cjs/features/BookCitation/BookCitation.js +1 -1
  100. package/dist/cjs/features/BookCitation/BookCitation.js.map +1 -1
  101. package/dist/cjs/features/BookCitation/BookCitation.module.css.js +1 -1
  102. package/dist/cjs/features/BookCitation/text-cleaner.js +1 -1
  103. package/dist/cjs/features/BookCitation/text-cleaner.js.map +1 -1
  104. package/dist/cjs/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.js +1 -1
  105. package/dist/cjs/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.js.map +1 -1
  106. package/dist/cjs/features/Bookemon/BookDetailsCard/BookDetailsCard.css.js +2 -0
  107. package/dist/cjs/features/Bookemon/BookDetailsCard/BookDetailsCard.css.js.map +1 -0
  108. package/dist/cjs/features/Bookemon/BookDetailsCard/BookDetailsCard.js +1 -1
  109. package/dist/cjs/features/Bookemon/BookDetailsCard/BookDetailsCard.js.map +1 -1
  110. package/dist/cjs/features/Bookemon/BookElementsCard/BookElementsCard.css.js +2 -0
  111. package/dist/cjs/features/Bookemon/BookElementsCard/BookElementsCard.css.js.map +1 -0
  112. package/dist/cjs/features/Bookemon/BookElementsCard/BookElementsCard.js +1 -1
  113. package/dist/cjs/features/Bookemon/BookElementsCard/BookElementsCard.js.map +1 -1
  114. package/dist/cjs/features/Bookemon/BookOverviewCard/BookOverviewCard.css.js +2 -0
  115. package/dist/cjs/features/Bookemon/BookOverviewCard/BookOverviewCard.css.js.map +1 -0
  116. package/dist/cjs/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
  117. package/dist/cjs/features/Bookemon/BookOverviewCard/BookOverviewCard.js.map +1 -1
  118. package/dist/cjs/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.css.js +2 -0
  119. package/dist/cjs/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.css.js.map +1 -0
  120. package/dist/cjs/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js +1 -1
  121. package/dist/cjs/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js.map +1 -1
  122. package/dist/cjs/features/Bookemon/BookPreview/BookPreview.css.js +2 -0
  123. package/dist/cjs/features/Bookemon/BookPreview/BookPreview.css.js.map +1 -0
  124. package/dist/cjs/features/Bookemon/BookPreview/BookPreview.js +1 -1
  125. package/dist/cjs/features/Bookemon/BookPreview/BookPreview.js.map +1 -1
  126. package/dist/cjs/features/Bookemon/Bookemon.js +1 -1
  127. package/dist/cjs/features/Bookemon/Bookemon.js.map +1 -1
  128. package/dist/cjs/features/Bookemon/BookemonCitationLayer.js +1 -1
  129. package/dist/cjs/features/Bookemon/BookemonCitationLayer.js.map +1 -1
  130. package/dist/cjs/features/Bookemon/BookemonContent.js +1 -1
  131. package/dist/cjs/features/Bookemon/BookemonContent.js.map +1 -1
  132. package/dist/cjs/features/Bookemon/utils/highlight.js +1 -1
  133. package/dist/cjs/features/Bookemon/utils/highlight.js.map +1 -1
  134. package/dist/cjs/features/ChatCitation/BigQueryTable.js +1 -1
  135. package/dist/cjs/features/ChatCitation/BigQueryTable.js.map +1 -1
  136. package/dist/cjs/features/ChatCitation/ChatCitationRenderer.js +1 -1
  137. package/dist/cjs/features/ChatCitation/ChatCitationRenderer.js.map +1 -1
  138. package/dist/cjs/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
  139. package/dist/cjs/features/ChatCitation/InternalChatCitationRenderer.js.map +1 -1
  140. package/dist/cjs/features/ChatCitation/assets/cw_chat.svg.js.map +1 -1
  141. package/dist/cjs/features/ChatCitation/assets/message-chat-square.svg.js.map +1 -1
  142. package/dist/cjs/features/ChatCitation/components/AssistantChatItem.js +1 -1
  143. package/dist/cjs/features/ChatCitation/components/AssistantChatItem.js.map +1 -1
  144. package/dist/cjs/features/ChatCitation/components/ChatCitation.js +1 -1
  145. package/dist/cjs/features/ChatCitation/components/ChatCitation.js.map +1 -1
  146. package/dist/cjs/features/ChatCitation/components/Chip.js +1 -1
  147. package/dist/cjs/features/ChatCitation/components/Chip.js.map +1 -1
  148. package/dist/cjs/features/ChatCitation/components/DetailedView.js +1 -1
  149. package/dist/cjs/features/ChatCitation/components/DetailedView.js.map +1 -1
  150. package/dist/cjs/features/ChatCitation/components/IconContainer.js +1 -1
  151. package/dist/cjs/features/ChatCitation/components/IconContainer.js.map +1 -1
  152. package/dist/cjs/features/ChatCitation/components/InViewNavigation.js +1 -1
  153. package/dist/cjs/features/ChatCitation/components/InViewNavigation.js.map +1 -1
  154. package/dist/cjs/features/ChatCitation/components/MarkdownRenderer.js +1 -1
  155. package/dist/cjs/features/ChatCitation/components/MarkdownRenderer.js.map +1 -1
  156. package/dist/cjs/features/ChatCitation/components/RuleBook.js +1 -1
  157. package/dist/cjs/features/ChatCitation/components/RuleBook.js.map +1 -1
  158. package/dist/cjs/features/ChatCitation/components/SummarizedView.js +1 -1
  159. package/dist/cjs/features/ChatCitation/components/SummarizedView.js.map +1 -1
  160. package/dist/cjs/features/ChatCitation/components/UserChatItem.js +1 -1
  161. package/dist/cjs/features/ChatCitation/components/UserChatItem.js.map +1 -1
  162. package/dist/cjs/features/ChatCitation/components/UserInitialsAsAvatar.js +1 -1
  163. package/dist/cjs/features/ChatCitation/components/UserInitialsAsAvatar.js.map +1 -1
  164. package/dist/cjs/features/ChatCitation/components/wrappers/Modal.js +1 -1
  165. package/dist/cjs/features/ChatCitation/components/wrappers/Modal.js.map +1 -1
  166. package/dist/cjs/features/ChatCitation/constants/renderer.js +1 -1
  167. package/dist/cjs/features/ChatCitation/constants/renderer.js.map +1 -1
  168. package/dist/cjs/features/ChatCitation/styles/common.css.js +2 -0
  169. package/dist/cjs/features/ChatCitation/styles/common.css.js.map +1 -0
  170. package/dist/cjs/features/ChatCitation/utils/helpers.js +1 -1
  171. package/dist/cjs/features/ChatCitation/utils/helpers.js.map +1 -1
  172. package/dist/cjs/features/ChatDrawer/ChatDrawer.js +1 -1
  173. package/dist/cjs/features/ChatDrawer/ChatDrawer.js.map +1 -1
  174. package/dist/cjs/features/ChatDrawer/constants/ChatDrawer.js.map +1 -1
  175. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  176. package/dist/cjs/features/CitationRenderer/CitationRenderer.js.map +1 -1
  177. package/dist/cjs/features/CitationRenderer/CitationRenderer.module.css.js +1 -1
  178. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js +1 -1
  179. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
  180. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
  181. package/dist/cjs/features/CitationViewer/CitationsViewer.js +1 -1
  182. package/dist/cjs/features/CitationViewer/CitationsViewer.js.map +1 -1
  183. package/dist/cjs/features/CitationViewer/components/AudioWaveform.js +1 -1
  184. package/dist/cjs/features/CitationViewer/components/AudioWaveform.js.map +1 -1
  185. package/dist/cjs/features/CitationViewer/components/Header.js +1 -1
  186. package/dist/cjs/features/CitationViewer/components/Header.js.map +1 -1
  187. package/dist/cjs/features/CitationViewer/components/KeyTakeaways.js +1 -1
  188. package/dist/cjs/features/CitationViewer/components/KeyTakeaways.js.map +1 -1
  189. package/dist/cjs/features/CitationViewer/components/StormeeChatCitation.module.css.js +1 -1
  190. package/dist/cjs/features/CitationViewer/components/Transcript.js +1 -1
  191. package/dist/cjs/features/CitationViewer/components/Transcript.js.map +1 -1
  192. package/dist/cjs/features/CitationViewer/config/apiConfig.js +1 -1
  193. package/dist/cjs/features/CitationViewer/config/apiConfig.js.map +1 -1
  194. package/dist/cjs/features/CitationViewer/hooks/getSignedUrl.js +1 -1
  195. package/dist/cjs/features/CitationViewer/hooks/getSignedUrl.js.map +1 -1
  196. package/dist/cjs/features/CitationViewer/hooks/useResolvedAudioUrl.js +1 -1
  197. package/dist/cjs/features/CitationViewer/hooks/useResolvedAudioUrl.js.map +1 -1
  198. package/dist/cjs/features/CodeCitation/CodeCitation.js +1 -1
  199. package/dist/cjs/features/CodeCitation/CodeCitation.js.map +1 -1
  200. package/dist/cjs/features/CodeCitation/CodeCitation.module.css.js +1 -1
  201. package/dist/cjs/features/CodeCitation/_components/Accordian.js +1 -1
  202. package/dist/cjs/features/CodeCitation/_components/Accordian.js.map +1 -1
  203. package/dist/cjs/features/CodeCitation/_components/CodeCitationPopup.js +1 -1
  204. package/dist/cjs/features/CodeCitation/_components/CodeCitationPopup.js.map +1 -1
  205. package/dist/cjs/features/CodeCitation/_components/CodeCitationsStats.js +1 -1
  206. package/dist/cjs/features/CodeCitation/_components/CodeCitationsStats.js.map +1 -1
  207. package/dist/cjs/features/CodeCitation/_components/CodeEditor.js +1 -1
  208. package/dist/cjs/features/CodeCitation/_components/CodeEditor.js.map +1 -1
  209. package/dist/cjs/features/CodeCitation/_components/DescriptionWithToggle.js +1 -1
  210. package/dist/cjs/features/CodeCitation/_components/DescriptionWithToggle.js.map +1 -1
  211. package/dist/cjs/features/CodeCitation/_components/HighlightedCodeDetails.js +1 -1
  212. package/dist/cjs/features/CodeCitation/_components/HighlightedCodeDetails.js.map +1 -1
  213. package/dist/cjs/features/CodeCitation/_components/RepoAndBranchTag.js +1 -1
  214. package/dist/cjs/features/CodeCitation/_components/RepoAndBranchTag.js.map +1 -1
  215. package/dist/cjs/features/CodeCitation/_components/Spinner.js +1 -1
  216. package/dist/cjs/features/CodeCitation/_components/Spinner.js.map +1 -1
  217. package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js +1 -1
  218. package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map +1 -1
  219. package/dist/cjs/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js +1 -1
  220. package/dist/cjs/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js.map +1 -1
  221. package/dist/cjs/features/CodeCitation/_components/StatsComponents/StatsComponent.js +1 -1
  222. package/dist/cjs/features/CodeCitation/_components/StatsComponents/StatsComponent.js.map +1 -1
  223. package/dist/cjs/features/CodeCitation/_components/ThemeToggle.js +1 -1
  224. package/dist/cjs/features/CodeCitation/_components/ThemeToggle.js.map +1 -1
  225. package/dist/cjs/features/CodeCitation/_components/TooltipComponent.js +1 -1
  226. package/dist/cjs/features/CodeCitation/_components/TooltipComponent.js.map +1 -1
  227. package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +1 -1
  228. package/dist/cjs/features/CognitiveCompare/CitationAnchor.js.map +1 -1
  229. package/dist/cjs/features/CognitiveCompare/CitationRenderer.js +1 -1
  230. package/dist/cjs/features/CognitiveCompare/CitationRenderer.js.map +1 -1
  231. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  232. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js.map +1 -1
  233. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConfig.js +1 -1
  234. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConfig.js.map +1 -1
  235. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConstants.js.map +1 -1
  236. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  237. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js.map +1 -1
  238. package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +1 -1
  239. package/dist/cjs/features/CognitiveCompare/CognitivePopup.js.map +1 -1
  240. package/dist/cjs/features/CognitiveCompare/CompareContext.js +1 -1
  241. package/dist/cjs/features/CognitiveCompare/CompareContext.js.map +1 -1
  242. package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  243. package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js.map +1 -1
  244. package/dist/cjs/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  245. package/dist/cjs/features/CognitiveCompare/Guidelines/components/WebGptPanel.js.map +1 -1
  246. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/helper.js +1 -1
  247. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/helper.js.map +1 -1
  248. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  249. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js.map +1 -1
  250. package/dist/cjs/features/CognitiveCompare/LoaderComponent.js +1 -1
  251. package/dist/cjs/features/CognitiveCompare/LoaderComponent.js.map +1 -1
  252. package/dist/cjs/features/CognitiveCompare/MoreFunctionsPopup.js +1 -1
  253. package/dist/cjs/features/CognitiveCompare/MoreFunctionsPopup.js.map +1 -1
  254. package/dist/cjs/features/CognitiveCompare/OverlayComponent.js +1 -1
  255. package/dist/cjs/features/CognitiveCompare/OverlayComponent.js.map +1 -1
  256. package/dist/cjs/features/CognitiveCompare/ResizableSplitPane.js +1 -1
  257. package/dist/cjs/features/CognitiveCompare/ResizableSplitPane.js.map +1 -1
  258. package/dist/cjs/features/CognitiveCompare/components/CognitiveSummaryPopup.js +1 -1
  259. package/dist/cjs/features/CognitiveCompare/components/CognitiveSummaryPopup.js.map +1 -1
  260. package/dist/cjs/features/CognitiveCompare/components/CompareHeader.js +1 -1
  261. package/dist/cjs/features/CognitiveCompare/components/CompareHeader.js.map +1 -1
  262. package/dist/cjs/features/CognitiveCompare/components/LHSSectionRow.js +1 -1
  263. package/dist/cjs/features/CognitiveCompare/components/LHSSectionRow.js.map +1 -1
  264. package/dist/cjs/features/CognitiveCompare/components/RHSSectionRow.js +1 -1
  265. package/dist/cjs/features/CognitiveCompare/components/RHSSectionRow.js.map +1 -1
  266. package/dist/cjs/features/CognitiveCompare/components/ScrollLockToggle.js +1 -1
  267. package/dist/cjs/features/CognitiveCompare/components/ScrollLockToggle.js.map +1 -1
  268. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  269. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js.map +1 -1
  270. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  271. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js.map +1 -1
  272. package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js +1 -1
  273. package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js.map +1 -1
  274. package/dist/cjs/features/CognitiveCompare/components/ThreeDotsLoader.js +1 -1
  275. package/dist/cjs/features/CognitiveCompare/components/ThreeDotsLoader.js.map +1 -1
  276. package/dist/cjs/features/CognitiveCompare/components/connectedLines.js +1 -1
  277. package/dist/cjs/features/CognitiveCompare/components/connectedLines.js.map +1 -1
  278. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  279. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js.map +1 -1
  280. package/dist/cjs/features/CognitiveCompare/hooks/useAccordionState.js +1 -1
  281. package/dist/cjs/features/CognitiveCompare/hooks/useAccordionState.js.map +1 -1
  282. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  283. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js.map +1 -1
  284. package/dist/cjs/features/CognitiveCompare/hooks/useComparePopups.js +1 -1
  285. package/dist/cjs/features/CognitiveCompare/hooks/useComparePopups.js.map +1 -1
  286. package/dist/cjs/features/CognitiveCompare/hooks/useDeviationNavigation.js +1 -1
  287. package/dist/cjs/features/CognitiveCompare/hooks/useDeviationNavigation.js.map +1 -1
  288. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  289. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js.map +1 -1
  290. package/dist/cjs/features/CognitiveCompare/hooks/useResizeHandler.js +1 -1
  291. package/dist/cjs/features/CognitiveCompare/hooks/useResizeHandler.js.map +1 -1
  292. package/dist/cjs/features/CognitiveCompare/hooks/useSectionRefs.js +1 -1
  293. package/dist/cjs/features/CognitiveCompare/hooks/useSectionRefs.js.map +1 -1
  294. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  295. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js.map +1 -1
  296. package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js +1 -1
  297. package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js.map +1 -1
  298. package/dist/cjs/features/CognitiveCompare/utils/buildComparisonRows.js +1 -1
  299. package/dist/cjs/features/CognitiveCompare/utils/buildComparisonRows.js.map +1 -1
  300. package/dist/cjs/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js +1 -1
  301. package/dist/cjs/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js.map +1 -1
  302. package/dist/cjs/features/CognitiveDecisioning/CognitiveDecisioningWrapper.module.css.js +1 -1
  303. package/dist/cjs/features/CognitiveDecisioning/FaqCitation/FaqCitation.js +1 -1
  304. package/dist/cjs/features/CognitiveDecisioning/FaqCitation/FaqCitation.js.map +1 -1
  305. package/dist/cjs/features/CognitiveDecisioning/FaqCitation/FaqCitation.module.css.js +1 -1
  306. package/dist/cjs/features/CognitiveDecisioning/shared/Audacy/GapIcon.js +1 -1
  307. package/dist/cjs/features/CognitiveDecisioning/shared/Audacy/GapIcon.js.map +1 -1
  308. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  309. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js.map +1 -1
  310. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
  311. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js.map +1 -1
  312. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
  313. package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js +1 -1
  314. package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -1
  315. package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js +1 -1
  316. package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js.map +1 -1
  317. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js +1 -1
  318. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js.map +1 -1
  319. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.module.css.js +1 -1
  320. package/dist/cjs/features/ExcelCitation/ExcelCitations.js +1 -1
  321. package/dist/cjs/features/ExcelCitation/ExcelCitations.js.map +1 -1
  322. package/dist/cjs/features/ExcelCitation/css/excel-citation.css.js +2 -0
  323. package/dist/cjs/features/ExcelCitation/css/excel-citation.css.js.map +1 -0
  324. package/dist/cjs/features/ExcelCitation/utils/helper.js +1 -1
  325. package/dist/cjs/features/ExcelCitation/utils/helper.js.map +1 -1
  326. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
  327. package/dist/cjs/features/GptWebCitation/GptWebCitation.js.map +1 -1
  328. package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  329. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  330. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -1
  331. package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  332. package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -1
  333. package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  334. package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -1
  335. package/dist/cjs/features/GptWebCitation/types.js +1 -1
  336. package/dist/cjs/features/GptWebCitation/types.js.map +1 -1
  337. package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +1 -1
  338. package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js.map +1 -1
  339. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  340. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -1
  341. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js +1 -1
  342. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -1
  343. package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  344. package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js.map +1 -1
  345. package/dist/cjs/features/IngestionStatus/ingestion.module.css.js +1 -1
  346. package/dist/cjs/features/IngestionStatus/useIngestionStatus.js +1 -1
  347. package/dist/cjs/features/IngestionStatus/useIngestionStatus.js.map +1 -1
  348. package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +1 -1
  349. package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -1
  350. package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js +1 -1
  351. package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js.map +1 -1
  352. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js +1 -1
  353. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -1
  354. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
  355. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -1
  356. package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js +1 -1
  357. package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js.map +1 -1
  358. package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js +1 -1
  359. package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -1
  360. package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js +1 -1
  361. package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js.map +1 -1
  362. package/dist/cjs/features/InstantLearningCitation/SlashLoader.js +1 -1
  363. package/dist/cjs/features/InstantLearningCitation/SlashLoader.js.map +1 -1
  364. package/dist/cjs/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +1 -1
  365. package/dist/cjs/features/InstantLearningCitation/css/Override.module.css.js +1 -1
  366. package/dist/cjs/features/InstantLearningCitation/css/RuleAccordian.module.css.js +1 -1
  367. package/dist/cjs/features/InstantLearningCitation/css/common.module.css.js +1 -1
  368. package/dist/cjs/features/InstantLearningCitation/types/Types.js +1 -1
  369. package/dist/cjs/features/InstantLearningCitation/types/Types.js.map +1 -1
  370. package/dist/cjs/features/ManageRemainders/AssigneeCalendarView.js +1 -1
  371. package/dist/cjs/features/ManageRemainders/AssigneeCalendarView.js.map +1 -1
  372. package/dist/cjs/features/ManageRemainders/ManageRemainder.module.css.js +1 -1
  373. package/dist/cjs/features/ManageRemainders/ManageReminders.js +1 -1
  374. package/dist/cjs/features/ManageRemainders/ManageReminders.js.map +1 -1
  375. package/dist/cjs/features/ManageRemainders/ReminderFrequencyAutocomplete.js +1 -1
  376. package/dist/cjs/features/ManageRemainders/ReminderFrequencyAutocomplete.js.map +1 -1
  377. package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js +1 -1
  378. package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js.map +1 -1
  379. package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.module.css.js +1 -1
  380. package/dist/cjs/features/PaginatedTable/PaginatedTable.js +1 -1
  381. package/dist/cjs/features/PaginatedTable/PaginatedTable.js.map +1 -1
  382. package/dist/cjs/features/PaginatedTable/paginatedTable.module.css.js +1 -1
  383. package/dist/cjs/features/PdfEditorCitation/PdfEditorCitation.js +1 -1
  384. package/dist/cjs/features/PdfEditorCitation/PdfEditorCitation.js.map +1 -1
  385. package/dist/cjs/features/PdfEditorCitation/PdfEditorCitation.module.css.js +1 -1
  386. package/dist/cjs/features/PdfViewer/PdfContainer.js +1 -1
  387. package/dist/cjs/features/PdfViewer/PdfContainer.js.map +1 -1
  388. package/dist/cjs/features/PdfViewer/PdfStyle.js.map +1 -1
  389. package/dist/cjs/features/PdfViewer/PdfToolbar.js +1 -1
  390. package/dist/cjs/features/PdfViewer/PdfToolbar.js.map +1 -1
  391. package/dist/cjs/features/PdfViewer/PdfViewer.css.js +2 -0
  392. package/dist/cjs/features/PdfViewer/PdfViewer.css.js.map +1 -0
  393. package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
  394. package/dist/cjs/features/PdfViewer/PdfViewer.js.map +1 -1
  395. package/dist/cjs/features/PdfViewer/rotationManager.js +1 -1
  396. package/dist/cjs/features/PdfViewer/rotationManager.js.map +1 -1
  397. package/dist/cjs/features/PdfViewer/usePdfHighlight.js +1 -1
  398. package/dist/cjs/features/PdfViewer/usePdfHighlight.js.map +1 -1
  399. package/dist/cjs/features/PdfViewer/zoomStateManager.js +2 -0
  400. package/dist/cjs/features/PdfViewer/zoomStateManager.js.map +1 -0
  401. package/dist/cjs/features/ProjectAccordion/ProjectAccordion.js +1 -1
  402. package/dist/cjs/features/ProjectAccordion/ProjectAccordion.js.map +1 -1
  403. package/dist/cjs/features/ProjectAccordion/ProjectAccordion.module.css.js +1 -1
  404. package/dist/cjs/features/ProjectAccordion/_components/Markdown.js +1 -1
  405. package/dist/cjs/features/ProjectAccordion/_components/Markdown.js.map +1 -1
  406. package/dist/cjs/features/PromptCitation/CitationDependencyGraph.js +1 -1
  407. package/dist/cjs/features/PromptCitation/CitationDependencyGraph.js.map +1 -1
  408. package/dist/cjs/features/PromptCitation/PromptCitation.js +1 -1
  409. package/dist/cjs/features/PromptCitation/PromptCitation.js.map +1 -1
  410. package/dist/cjs/features/PromptCitation/_components/CodeEditor.js +1 -1
  411. package/dist/cjs/features/PromptCitation/_components/CodeEditor.js.map +1 -1
  412. package/dist/cjs/features/PromptCitation/_components/Markdownrenderer.js +1 -1
  413. package/dist/cjs/features/PromptCitation/_components/Markdownrenderer.js.map +1 -1
  414. package/dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js +1 -1
  415. package/dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js.map +1 -1
  416. package/dist/cjs/features/PromptemonViewer/PromptemonViewer.js +1 -1
  417. package/dist/cjs/features/PromptemonViewer/PromptemonViewer.js.map +1 -1
  418. package/dist/cjs/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js +1 -1
  419. package/dist/cjs/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js.map +1 -1
  420. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  421. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js.map +1 -1
  422. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.module.css.js +1 -1
  423. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.js +1 -1
  424. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.js.map +1 -1
  425. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.module.css.js +1 -1
  426. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js +1 -1
  427. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js.map +1 -1
  428. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.module.css.js +1 -1
  429. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.js +1 -1
  430. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.js.map +1 -1
  431. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.module.css.js +1 -1
  432. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js +1 -1
  433. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js.map +1 -1
  434. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.module.css.js +1 -1
  435. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.js +1 -1
  436. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.js.map +1 -1
  437. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.js +1 -1
  438. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.js.map +1 -1
  439. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.js +1 -1
  440. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.js.map +1 -1
  441. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.js +1 -1
  442. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.js.map +1 -1
  443. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.js +1 -1
  444. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.js.map +1 -1
  445. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.js +1 -1
  446. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.js.map +1 -1
  447. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  448. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js.map +1 -1
  449. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.js +1 -1
  450. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.js.map +1 -1
  451. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.js +1 -1
  452. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.js.map +1 -1
  453. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.js +1 -1
  454. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.js.map +1 -1
  455. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  456. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js.map +1 -1
  457. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.js +1 -1
  458. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.js.map +1 -1
  459. package/dist/cjs/features/RequirementAiCitations/FileCitation/FileCitationContent.js +1 -1
  460. package/dist/cjs/features/RequirementAiCitations/FileCitation/FileCitationContent.js.map +1 -1
  461. package/dist/cjs/features/RequirementAiCitations/FileCitation/FileCitationContent.module.css.js +1 -1
  462. package/dist/cjs/features/RequirementAiCitations/ImageCitation/ImageCitationContent.js +1 -1
  463. package/dist/cjs/features/RequirementAiCitations/ImageCitation/ImageCitationContent.js.map +1 -1
  464. package/dist/cjs/features/RequirementAiCitations/ImageCitation/ImageCitationContent.module.css.js +1 -1
  465. package/dist/cjs/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js +1 -1
  466. package/dist/cjs/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js.map +1 -1
  467. package/dist/cjs/features/RequirementAiCitations/VideoCitation/VideoCitationContent.module.css.js +1 -1
  468. package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
  469. package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js.map +1 -1
  470. package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
  471. package/dist/cjs/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.js +1 -1
  472. package/dist/cjs/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.js.map +1 -1
  473. package/dist/cjs/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.module.css.js +1 -1
  474. package/dist/cjs/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.js +1 -1
  475. package/dist/cjs/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.js.map +1 -1
  476. package/dist/cjs/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.module.css.js +1 -1
  477. package/dist/cjs/features/ReviewPanel/ReviewPanel.css.js +2 -0
  478. package/dist/cjs/features/ReviewPanel/ReviewPanel.css.js.map +1 -0
  479. package/dist/cjs/features/ReviewPanel/ReviewPanel.js +1 -1
  480. package/dist/cjs/features/ReviewPanel/ReviewPanel.js.map +1 -1
  481. package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  482. package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js.map +1 -1
  483. package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  484. package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js.map +1 -1
  485. package/dist/cjs/features/SPBAnalysisPanel/Cognitivereasoningpanel.js +1 -1
  486. package/dist/cjs/features/SPBAnalysisPanel/Cognitivereasoningpanel.js.map +1 -1
  487. package/dist/cjs/features/SPBAnalysisPanel/DependencyGraph.js +1 -1
  488. package/dist/cjs/features/SPBAnalysisPanel/DependencyGraph.js.map +1 -1
  489. package/dist/cjs/features/SPBAnalysisPanel/Internaleditor.js +1 -1
  490. package/dist/cjs/features/SPBAnalysisPanel/Internaleditor.js.map +1 -1
  491. package/dist/cjs/features/SPBAnalysisPanel/Markdownrenderer.js +1 -1
  492. package/dist/cjs/features/SPBAnalysisPanel/Markdownrenderer.js.map +1 -1
  493. package/dist/cjs/features/SPBAnalysisPanel/Spbanalysispanel.js +1 -1
  494. package/dist/cjs/features/SPBAnalysisPanel/Spbanalysispanel.js.map +1 -1
  495. package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js +1 -1
  496. package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js.map +1 -1
  497. package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js +1 -1
  498. package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js.map +1 -1
  499. package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js +1 -1
  500. package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js.map +1 -1
  501. package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js +1 -1
  502. package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +1 -1
  503. package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js +1 -1
  504. package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js.map +1 -1
  505. package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js +1 -1
  506. package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js.map +1 -1
  507. package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
  508. package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +1 -1
  509. package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js +1 -1
  510. package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js.map +1 -1
  511. package/dist/cjs/features/SegmentReviewComponents/PageCheck.js +1 -1
  512. package/dist/cjs/features/SegmentReviewComponents/PageCheck.js.map +1 -1
  513. package/dist/cjs/features/SegmentReviewComponents/PageTypeChoiceCheck.js +1 -1
  514. package/dist/cjs/features/SegmentReviewComponents/PageTypeChoiceCheck.js.map +1 -1
  515. package/dist/cjs/features/SegmentReviewComponents/RevertCard.js +1 -1
  516. package/dist/cjs/features/SegmentReviewComponents/RevertCard.js.map +1 -1
  517. package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +1 -1
  518. package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js.map +1 -1
  519. package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js +1 -1
  520. package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js.map +1 -1
  521. package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js +1 -1
  522. package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +1 -1
  523. package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js +1 -1
  524. package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js.map +1 -1
  525. package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  526. package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +1 -1
  527. package/dist/cjs/features/SegmentReviewComponents/helper.js +1 -1
  528. package/dist/cjs/features/SegmentReviewComponents/helper.js.map +1 -1
  529. package/dist/cjs/features/SegmentReviewComponents/reviewScore.js +1 -1
  530. package/dist/cjs/features/SegmentReviewComponents/reviewScore.js.map +1 -1
  531. package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
  532. package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js.map +1 -1
  533. package/dist/cjs/features/SplitterCitations/Splitter.module.css.js +1 -1
  534. package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
  535. package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js.map +1 -1
  536. package/dist/cjs/features/SplitterCitations/icons/icons.js +1 -1
  537. package/dist/cjs/features/SplitterCitations/icons/icons.js.map +1 -1
  538. package/dist/cjs/features/TableCitation/TableCitationContent.js +1 -1
  539. package/dist/cjs/features/TableCitation/TableCitationContent.js.map +1 -1
  540. package/dist/cjs/features/TableCitation/TableCitationContent.module.css.js +1 -1
  541. package/dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
  542. package/dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js.map +1 -1
  543. package/dist/cjs/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
  544. package/dist/cjs/hooks/useOnDemandCitationFetch.js +1 -1
  545. package/dist/cjs/hooks/useOnDemandCitationFetch.js.map +1 -1
  546. package/dist/cjs/index.js +1 -1
  547. package/dist/cjs/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +2 -0
  548. package/dist/cjs/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
  549. package/dist/cjs/service/apicache.service.js +1 -1
  550. package/dist/cjs/service/apicache.service.js.map +1 -1
  551. package/dist/cjs/service/onDemandApi.js +1 -1
  552. package/dist/cjs/service/onDemandApi.js.map +1 -1
  553. package/dist/cjs/types/onDemandApi.types.js +1 -1
  554. package/dist/cjs/types/onDemandApi.types.js.map +1 -1
  555. package/dist/cjs/utils/codeCitations.utils.js +1 -1
  556. package/dist/cjs/utils/codeCitations.utils.js.map +1 -1
  557. package/dist/cjs/utils/helper.js +2 -0
  558. package/dist/cjs/utils/helper.js.map +1 -0
  559. package/dist/cjs/utils/sanitizeHtml.js +1 -1
  560. package/dist/cjs/utils/sanitizeHtml.js.map +1 -1
  561. package/dist/cjs/utils/themeManager.js +1 -1
  562. package/dist/cjs/utils/themeManager.js.map +1 -1
  563. package/dist/constants/diagnosticStylesBySeverity.js +1 -1
  564. package/dist/constants/diagnosticStylesBySeverity.js.map +1 -1
  565. package/dist/features/BPACitationRenderer/BPACitationRenderer.js +1 -1
  566. package/dist/features/BPACitationRenderer/BPACitationRenderer.js.map +1 -1
  567. package/dist/features/BPACitationRenderer/citationTypes.js +1 -1
  568. package/dist/features/BPACitationRenderer/citationTypes.js.map +1 -1
  569. package/dist/features/BookCitation/BookCitation.js +1 -1
  570. package/dist/features/BookCitation/BookCitation.js.map +1 -1
  571. package/dist/features/BookCitation/BookCitation.module.css.js +1 -1
  572. package/dist/features/BookCitation/text-cleaner.js +1 -1
  573. package/dist/features/BookCitation/text-cleaner.js.map +1 -1
  574. package/dist/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.js +1 -1
  575. package/dist/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.js.map +1 -1
  576. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.css.js +2 -0
  577. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.css.js.map +1 -0
  578. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.js +1 -1
  579. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.js.map +1 -1
  580. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.css.js +2 -0
  581. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.css.js.map +1 -0
  582. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.js +1 -1
  583. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.js.map +1 -1
  584. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.css.js +2 -0
  585. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.css.js.map +1 -0
  586. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
  587. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.js.map +1 -1
  588. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.css.js +2 -0
  589. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.css.js.map +1 -0
  590. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js +1 -1
  591. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js.map +1 -1
  592. package/dist/features/Bookemon/BookPreview/BookPreview.css.js +2 -0
  593. package/dist/features/Bookemon/BookPreview/BookPreview.css.js.map +1 -0
  594. package/dist/features/Bookemon/BookPreview/BookPreview.js +1 -1
  595. package/dist/features/Bookemon/BookPreview/BookPreview.js.map +1 -1
  596. package/dist/features/Bookemon/Bookemon.js +1 -1
  597. package/dist/features/Bookemon/Bookemon.js.map +1 -1
  598. package/dist/features/Bookemon/BookemonCitationLayer.js +1 -1
  599. package/dist/features/Bookemon/BookemonCitationLayer.js.map +1 -1
  600. package/dist/features/Bookemon/BookemonContent.js +1 -1
  601. package/dist/features/Bookemon/BookemonContent.js.map +1 -1
  602. package/dist/features/Bookemon/utils/highlight.js +1 -1
  603. package/dist/features/Bookemon/utils/highlight.js.map +1 -1
  604. package/dist/features/ChatCitation/BigQueryTable.js +1 -1
  605. package/dist/features/ChatCitation/BigQueryTable.js.map +1 -1
  606. package/dist/features/ChatCitation/ChatCitationRenderer.js +1 -1
  607. package/dist/features/ChatCitation/ChatCitationRenderer.js.map +1 -1
  608. package/dist/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
  609. package/dist/features/ChatCitation/InternalChatCitationRenderer.js.map +1 -1
  610. package/dist/features/ChatCitation/assets/cw_chat.svg.js.map +1 -1
  611. package/dist/features/ChatCitation/assets/message-chat-square.svg.js.map +1 -1
  612. package/dist/features/ChatCitation/components/AssistantChatItem.js +1 -1
  613. package/dist/features/ChatCitation/components/AssistantChatItem.js.map +1 -1
  614. package/dist/features/ChatCitation/components/ChatCitation.js +1 -1
  615. package/dist/features/ChatCitation/components/ChatCitation.js.map +1 -1
  616. package/dist/features/ChatCitation/components/Chip.js +1 -1
  617. package/dist/features/ChatCitation/components/Chip.js.map +1 -1
  618. package/dist/features/ChatCitation/components/DetailedView.js +1 -1
  619. package/dist/features/ChatCitation/components/DetailedView.js.map +1 -1
  620. package/dist/features/ChatCitation/components/IconContainer.js +1 -1
  621. package/dist/features/ChatCitation/components/IconContainer.js.map +1 -1
  622. package/dist/features/ChatCitation/components/InViewNavigation.js +1 -1
  623. package/dist/features/ChatCitation/components/InViewNavigation.js.map +1 -1
  624. package/dist/features/ChatCitation/components/MarkdownRenderer.js +1 -1
  625. package/dist/features/ChatCitation/components/MarkdownRenderer.js.map +1 -1
  626. package/dist/features/ChatCitation/components/RuleBook.js +1 -1
  627. package/dist/features/ChatCitation/components/RuleBook.js.map +1 -1
  628. package/dist/features/ChatCitation/components/SummarizedView.js +1 -1
  629. package/dist/features/ChatCitation/components/SummarizedView.js.map +1 -1
  630. package/dist/features/ChatCitation/components/UserChatItem.js +1 -1
  631. package/dist/features/ChatCitation/components/UserChatItem.js.map +1 -1
  632. package/dist/features/ChatCitation/components/UserInitialsAsAvatar.js +1 -1
  633. package/dist/features/ChatCitation/components/UserInitialsAsAvatar.js.map +1 -1
  634. package/dist/features/ChatCitation/components/wrappers/Modal.js +1 -1
  635. package/dist/features/ChatCitation/components/wrappers/Modal.js.map +1 -1
  636. package/dist/features/ChatCitation/constants/renderer.js +1 -1
  637. package/dist/features/ChatCitation/constants/renderer.js.map +1 -1
  638. package/dist/features/ChatCitation/styles/common.css.js +2 -0
  639. package/dist/features/ChatCitation/styles/common.css.js.map +1 -0
  640. package/dist/features/ChatCitation/utils/helpers.js +1 -1
  641. package/dist/features/ChatCitation/utils/helpers.js.map +1 -1
  642. package/dist/features/ChatDrawer/ChatDrawer.js +1 -1
  643. package/dist/features/ChatDrawer/ChatDrawer.js.map +1 -1
  644. package/dist/features/ChatDrawer/constants/ChatDrawer.js +1 -1
  645. package/dist/features/ChatDrawer/constants/ChatDrawer.js.map +1 -1
  646. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  647. package/dist/features/CitationRenderer/CitationRenderer.js.map +1 -1
  648. package/dist/features/CitationRenderer/CitationRenderer.module.css.js +1 -1
  649. package/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
  650. package/dist/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
  651. package/dist/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
  652. package/dist/features/CitationViewer/CitationsViewer.js +1 -1
  653. package/dist/features/CitationViewer/CitationsViewer.js.map +1 -1
  654. package/dist/features/CitationViewer/components/AudioWaveform.js +1 -1
  655. package/dist/features/CitationViewer/components/AudioWaveform.js.map +1 -1
  656. package/dist/features/CitationViewer/components/Header.js +1 -1
  657. package/dist/features/CitationViewer/components/Header.js.map +1 -1
  658. package/dist/features/CitationViewer/components/KeyTakeaways.js +1 -1
  659. package/dist/features/CitationViewer/components/KeyTakeaways.js.map +1 -1
  660. package/dist/features/CitationViewer/components/StormeeChatCitation.module.css.js +1 -1
  661. package/dist/features/CitationViewer/components/Transcript.js +1 -1
  662. package/dist/features/CitationViewer/components/Transcript.js.map +1 -1
  663. package/dist/features/CitationViewer/config/apiConfig.js +1 -1
  664. package/dist/features/CitationViewer/config/apiConfig.js.map +1 -1
  665. package/dist/features/CitationViewer/hooks/getSignedUrl.js +1 -1
  666. package/dist/features/CitationViewer/hooks/getSignedUrl.js.map +1 -1
  667. package/dist/features/CitationViewer/hooks/useResolvedAudioUrl.js +1 -1
  668. package/dist/features/CitationViewer/hooks/useResolvedAudioUrl.js.map +1 -1
  669. package/dist/features/CodeCitation/CodeCitation.js +1 -1
  670. package/dist/features/CodeCitation/CodeCitation.js.map +1 -1
  671. package/dist/features/CodeCitation/CodeCitation.module.css.js +1 -1
  672. package/dist/features/CodeCitation/_components/Accordian.js +1 -1
  673. package/dist/features/CodeCitation/_components/Accordian.js.map +1 -1
  674. package/dist/features/CodeCitation/_components/CodeCitationPopup.js +1 -1
  675. package/dist/features/CodeCitation/_components/CodeCitationPopup.js.map +1 -1
  676. package/dist/features/CodeCitation/_components/CodeCitationsStats.js +1 -1
  677. package/dist/features/CodeCitation/_components/CodeCitationsStats.js.map +1 -1
  678. package/dist/features/CodeCitation/_components/CodeEditor.js +1 -1
  679. package/dist/features/CodeCitation/_components/CodeEditor.js.map +1 -1
  680. package/dist/features/CodeCitation/_components/DescriptionWithToggle.js +1 -1
  681. package/dist/features/CodeCitation/_components/DescriptionWithToggle.js.map +1 -1
  682. package/dist/features/CodeCitation/_components/HighlightedCodeDetails.js +1 -1
  683. package/dist/features/CodeCitation/_components/HighlightedCodeDetails.js.map +1 -1
  684. package/dist/features/CodeCitation/_components/RepoAndBranchTag.js +1 -1
  685. package/dist/features/CodeCitation/_components/RepoAndBranchTag.js.map +1 -1
  686. package/dist/features/CodeCitation/_components/Spinner.js +1 -1
  687. package/dist/features/CodeCitation/_components/Spinner.js.map +1 -1
  688. package/dist/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js +1 -1
  689. package/dist/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map +1 -1
  690. package/dist/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js +1 -1
  691. package/dist/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js.map +1 -1
  692. package/dist/features/CodeCitation/_components/StatsComponents/StatsComponent.js +1 -1
  693. package/dist/features/CodeCitation/_components/StatsComponents/StatsComponent.js.map +1 -1
  694. package/dist/features/CodeCitation/_components/ThemeToggle.js +1 -1
  695. package/dist/features/CodeCitation/_components/ThemeToggle.js.map +1 -1
  696. package/dist/features/CodeCitation/_components/TooltipComponent.js +1 -1
  697. package/dist/features/CodeCitation/_components/TooltipComponent.js.map +1 -1
  698. package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
  699. package/dist/features/CognitiveCompare/CitationAnchor.js.map +1 -1
  700. package/dist/features/CognitiveCompare/CitationRenderer.js +1 -1
  701. package/dist/features/CognitiveCompare/CitationRenderer.js.map +1 -1
  702. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  703. package/dist/features/CognitiveCompare/CognitiveCompare.js.map +1 -1
  704. package/dist/features/CognitiveCompare/CognitiveCompareConfig.js +1 -1
  705. package/dist/features/CognitiveCompare/CognitiveCompareConfig.js.map +1 -1
  706. package/dist/features/CognitiveCompare/CognitiveCompareConstants.js +1 -1
  707. package/dist/features/CognitiveCompare/CognitiveCompareConstants.js.map +1 -1
  708. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  709. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js.map +1 -1
  710. package/dist/features/CognitiveCompare/CognitivePopup.js +1 -1
  711. package/dist/features/CognitiveCompare/CognitivePopup.js.map +1 -1
  712. package/dist/features/CognitiveCompare/CompareContext.js +1 -1
  713. package/dist/features/CognitiveCompare/CompareContext.js.map +1 -1
  714. package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  715. package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js.map +1 -1
  716. package/dist/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  717. package/dist/features/CognitiveCompare/Guidelines/components/WebGptPanel.js.map +1 -1
  718. package/dist/features/CognitiveCompare/Guidelines/utils/helper.js +1 -1
  719. package/dist/features/CognitiveCompare/Guidelines/utils/helper.js.map +1 -1
  720. package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  721. package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js.map +1 -1
  722. package/dist/features/CognitiveCompare/LoaderComponent.js +1 -1
  723. package/dist/features/CognitiveCompare/LoaderComponent.js.map +1 -1
  724. package/dist/features/CognitiveCompare/MoreFunctionsPopup.js +1 -1
  725. package/dist/features/CognitiveCompare/MoreFunctionsPopup.js.map +1 -1
  726. package/dist/features/CognitiveCompare/OverlayComponent.js +1 -1
  727. package/dist/features/CognitiveCompare/OverlayComponent.js.map +1 -1
  728. package/dist/features/CognitiveCompare/ResizableSplitPane.js +1 -1
  729. package/dist/features/CognitiveCompare/ResizableSplitPane.js.map +1 -1
  730. package/dist/features/CognitiveCompare/components/CognitiveSummaryPopup.js +1 -1
  731. package/dist/features/CognitiveCompare/components/CognitiveSummaryPopup.js.map +1 -1
  732. package/dist/features/CognitiveCompare/components/CompareHeader.js +1 -1
  733. package/dist/features/CognitiveCompare/components/CompareHeader.js.map +1 -1
  734. package/dist/features/CognitiveCompare/components/LHSSectionRow.js +1 -1
  735. package/dist/features/CognitiveCompare/components/LHSSectionRow.js.map +1 -1
  736. package/dist/features/CognitiveCompare/components/RHSSectionRow.js +1 -1
  737. package/dist/features/CognitiveCompare/components/RHSSectionRow.js.map +1 -1
  738. package/dist/features/CognitiveCompare/components/ScrollLockToggle.js +1 -1
  739. package/dist/features/CognitiveCompare/components/ScrollLockToggle.js.map +1 -1
  740. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  741. package/dist/features/CognitiveCompare/components/SectionAccordion.js.map +1 -1
  742. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  743. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js.map +1 -1
  744. package/dist/features/CognitiveCompare/components/SvgConnectors.js +1 -1
  745. package/dist/features/CognitiveCompare/components/SvgConnectors.js.map +1 -1
  746. package/dist/features/CognitiveCompare/components/ThreeDotsLoader.js +1 -1
  747. package/dist/features/CognitiveCompare/components/ThreeDotsLoader.js.map +1 -1
  748. package/dist/features/CognitiveCompare/components/connectedLines.js +1 -1
  749. package/dist/features/CognitiveCompare/components/connectedLines.js.map +1 -1
  750. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  751. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js.map +1 -1
  752. package/dist/features/CognitiveCompare/hooks/useAccordionState.js +1 -1
  753. package/dist/features/CognitiveCompare/hooks/useAccordionState.js.map +1 -1
  754. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  755. package/dist/features/CognitiveCompare/hooks/useCompareData.js.map +1 -1
  756. package/dist/features/CognitiveCompare/hooks/useComparePopups.js +1 -1
  757. package/dist/features/CognitiveCompare/hooks/useComparePopups.js.map +1 -1
  758. package/dist/features/CognitiveCompare/hooks/useDeviationNavigation.js +1 -1
  759. package/dist/features/CognitiveCompare/hooks/useDeviationNavigation.js.map +1 -1
  760. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  761. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js.map +1 -1
  762. package/dist/features/CognitiveCompare/hooks/useResizeHandler.js +1 -1
  763. package/dist/features/CognitiveCompare/hooks/useResizeHandler.js.map +1 -1
  764. package/dist/features/CognitiveCompare/hooks/useSectionRefs.js +1 -1
  765. package/dist/features/CognitiveCompare/hooks/useSectionRefs.js.map +1 -1
  766. package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  767. package/dist/features/CognitiveCompare/hooks/useSideBySide.js.map +1 -1
  768. package/dist/features/CognitiveCompare/hooks/useStyles.js +1 -1
  769. package/dist/features/CognitiveCompare/hooks/useStyles.js.map +1 -1
  770. package/dist/features/CognitiveCompare/utils/buildComparisonRows.js +1 -1
  771. package/dist/features/CognitiveCompare/utils/buildComparisonRows.js.map +1 -1
  772. package/dist/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js +1 -1
  773. package/dist/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js.map +1 -1
  774. package/dist/features/CognitiveDecisioning/CognitiveDecisioningWrapper.module.css.js +1 -1
  775. package/dist/features/CognitiveDecisioning/FaqCitation/FaqCitation.js +1 -1
  776. package/dist/features/CognitiveDecisioning/FaqCitation/FaqCitation.js.map +1 -1
  777. package/dist/features/CognitiveDecisioning/FaqCitation/FaqCitation.module.css.js +1 -1
  778. package/dist/features/CognitiveDecisioning/shared/Audacy/GapIcon.js +1 -1
  779. package/dist/features/CognitiveDecisioning/shared/Audacy/GapIcon.js.map +1 -1
  780. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  781. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js.map +1 -1
  782. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
  783. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js.map +1 -1
  784. package/dist/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
  785. package/dist/features/DualCitation/RuleBookCitationApiComponent.js +1 -1
  786. package/dist/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -1
  787. package/dist/features/DualCitation/RuleBookCitationComponent.js +1 -1
  788. package/dist/features/DualCitation/RuleBookCitationComponent.js.map +1 -1
  789. package/dist/features/DualCitation/SourceBQDataCompnent.js +1 -1
  790. package/dist/features/DualCitation/SourceBQDataCompnent.js.map +1 -1
  791. package/dist/features/DualCitation/SourceBQDataCompnent.module.css.js +1 -1
  792. package/dist/features/ExcelCitation/ExcelCitations.js +1 -1
  793. package/dist/features/ExcelCitation/ExcelCitations.js.map +1 -1
  794. package/dist/features/ExcelCitation/css/excel-citation.css.js +2 -0
  795. package/dist/features/ExcelCitation/css/excel-citation.css.js.map +1 -0
  796. package/dist/features/ExcelCitation/utils/helper.js +1 -1
  797. package/dist/features/ExcelCitation/utils/helper.js.map +1 -1
  798. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  799. package/dist/features/GptWebCitation/GptWebCitation.js.map +1 -1
  800. package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  801. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  802. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -1
  803. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  804. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -1
  805. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  806. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -1
  807. package/dist/features/GptWebCitation/types.js +1 -1
  808. package/dist/features/GptWebCitation/types.js.map +1 -1
  809. package/dist/features/GptWebCitation/utils/citationData.utils.js +1 -1
  810. package/dist/features/GptWebCitation/utils/citationData.utils.js.map +1 -1
  811. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  812. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -1
  813. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js +1 -1
  814. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -1
  815. package/dist/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  816. package/dist/features/IngestionStatus/IngestionStatusComponent.js.map +1 -1
  817. package/dist/features/IngestionStatus/ingestion.module.css.js +1 -1
  818. package/dist/features/IngestionStatus/useIngestionStatus.js +1 -1
  819. package/dist/features/IngestionStatus/useIngestionStatus.js.map +1 -1
  820. package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +1 -1
  821. package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -1
  822. package/dist/features/InstantLearningCitation/HistorySkeleton.js +1 -1
  823. package/dist/features/InstantLearningCitation/HistorySkeleton.js.map +1 -1
  824. package/dist/features/InstantLearningCitation/InstantLearningCitation.js +1 -1
  825. package/dist/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -1
  826. package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
  827. package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -1
  828. package/dist/features/InstantLearningCitation/OverrideTimeline.js +1 -1
  829. package/dist/features/InstantLearningCitation/OverrideTimeline.js.map +1 -1
  830. package/dist/features/InstantLearningCitation/RuleConditionBlock.js +1 -1
  831. package/dist/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -1
  832. package/dist/features/InstantLearningCitation/RuleContentComponent.js +1 -1
  833. package/dist/features/InstantLearningCitation/RuleContentComponent.js.map +1 -1
  834. package/dist/features/InstantLearningCitation/SlashLoader.js +1 -1
  835. package/dist/features/InstantLearningCitation/SlashLoader.js.map +1 -1
  836. package/dist/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +1 -1
  837. package/dist/features/InstantLearningCitation/css/Override.module.css.js +1 -1
  838. package/dist/features/InstantLearningCitation/css/RuleAccordian.module.css.js +1 -1
  839. package/dist/features/InstantLearningCitation/css/common.module.css.js +1 -1
  840. package/dist/features/InstantLearningCitation/types/Types.js +1 -1
  841. package/dist/features/InstantLearningCitation/types/Types.js.map +1 -1
  842. package/dist/features/ManageRemainders/AssigneeCalendarView.js +1 -1
  843. package/dist/features/ManageRemainders/AssigneeCalendarView.js.map +1 -1
  844. package/dist/features/ManageRemainders/ManageRemainder.module.css.js +1 -1
  845. package/dist/features/ManageRemainders/ManageReminders.js +1 -1
  846. package/dist/features/ManageRemainders/ManageReminders.js.map +1 -1
  847. package/dist/features/ManageRemainders/ReminderFrequencyAutocomplete.js +1 -1
  848. package/dist/features/ManageRemainders/ReminderFrequencyAutocomplete.js.map +1 -1
  849. package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js +1 -1
  850. package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js.map +1 -1
  851. package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.module.css.js +1 -1
  852. package/dist/features/PaginatedTable/PaginatedTable.js +1 -1
  853. package/dist/features/PaginatedTable/PaginatedTable.js.map +1 -1
  854. package/dist/features/PaginatedTable/paginatedTable.module.css.js +1 -1
  855. package/dist/features/PdfEditorCitation/PdfEditorCitation.js +1 -1
  856. package/dist/features/PdfEditorCitation/PdfEditorCitation.js.map +1 -1
  857. package/dist/features/PdfEditorCitation/PdfEditorCitation.module.css.js +1 -1
  858. package/dist/features/PdfViewer/PdfContainer.js +1 -1
  859. package/dist/features/PdfViewer/PdfContainer.js.map +1 -1
  860. package/dist/features/PdfViewer/PdfStyle.js +1 -1
  861. package/dist/features/PdfViewer/PdfStyle.js.map +1 -1
  862. package/dist/features/PdfViewer/PdfToolbar.js +1 -1
  863. package/dist/features/PdfViewer/PdfToolbar.js.map +1 -1
  864. package/dist/features/PdfViewer/PdfViewer.css.js +2 -0
  865. package/dist/features/PdfViewer/PdfViewer.css.js.map +1 -0
  866. package/dist/features/PdfViewer/PdfViewer.js +1 -1
  867. package/dist/features/PdfViewer/PdfViewer.js.map +1 -1
  868. package/dist/features/PdfViewer/rotationManager.js +1 -1
  869. package/dist/features/PdfViewer/rotationManager.js.map +1 -1
  870. package/dist/features/PdfViewer/usePdfHighlight.js +1 -1
  871. package/dist/features/PdfViewer/usePdfHighlight.js.map +1 -1
  872. package/dist/features/PdfViewer/zoomStateManager.js +2 -0
  873. package/dist/features/PdfViewer/zoomStateManager.js.map +1 -0
  874. package/dist/features/ProjectAccordion/ProjectAccordion.js +1 -1
  875. package/dist/features/ProjectAccordion/ProjectAccordion.js.map +1 -1
  876. package/dist/features/ProjectAccordion/ProjectAccordion.module.css.js +1 -1
  877. package/dist/features/ProjectAccordion/_components/Markdown.js +1 -1
  878. package/dist/features/ProjectAccordion/_components/Markdown.js.map +1 -1
  879. package/dist/features/PromptCitation/CitationDependencyGraph.js +1 -1
  880. package/dist/features/PromptCitation/CitationDependencyGraph.js.map +1 -1
  881. package/dist/features/PromptCitation/PromptCitation.js +1 -1
  882. package/dist/features/PromptCitation/PromptCitation.js.map +1 -1
  883. package/dist/features/PromptCitation/_components/CodeEditor.js +1 -1
  884. package/dist/features/PromptCitation/_components/CodeEditor.js.map +1 -1
  885. package/dist/features/PromptCitation/_components/Markdownrenderer.js +1 -1
  886. package/dist/features/PromptCitation/_components/Markdownrenderer.js.map +1 -1
  887. package/dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js +1 -1
  888. package/dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js.map +1 -1
  889. package/dist/features/PromptemonViewer/PromptemonViewer.js +1 -1
  890. package/dist/features/PromptemonViewer/PromptemonViewer.js.map +1 -1
  891. package/dist/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js +1 -1
  892. package/dist/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js.map +1 -1
  893. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  894. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js.map +1 -1
  895. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.module.css.js +1 -1
  896. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.js +1 -1
  897. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.js.map +1 -1
  898. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.module.css.js +1 -1
  899. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js +1 -1
  900. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js.map +1 -1
  901. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.module.css.js +1 -1
  902. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.js +1 -1
  903. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.js.map +1 -1
  904. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.module.css.js +1 -1
  905. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js +1 -1
  906. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js.map +1 -1
  907. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.module.css.js +1 -1
  908. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.js +1 -1
  909. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.js.map +1 -1
  910. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.js +1 -1
  911. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.js.map +1 -1
  912. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.js +1 -1
  913. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.js.map +1 -1
  914. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.js +1 -1
  915. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.js.map +1 -1
  916. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.js +1 -1
  917. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.js.map +1 -1
  918. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.js +1 -1
  919. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.js.map +1 -1
  920. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  921. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js.map +1 -1
  922. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.js +1 -1
  923. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.js.map +1 -1
  924. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.js +1 -1
  925. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.js.map +1 -1
  926. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.js +1 -1
  927. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.js.map +1 -1
  928. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  929. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js.map +1 -1
  930. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.js +1 -1
  931. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.js.map +1 -1
  932. package/dist/features/RequirementAiCitations/FileCitation/FileCitationContent.js +1 -1
  933. package/dist/features/RequirementAiCitations/FileCitation/FileCitationContent.js.map +1 -1
  934. package/dist/features/RequirementAiCitations/FileCitation/FileCitationContent.module.css.js +1 -1
  935. package/dist/features/RequirementAiCitations/ImageCitation/ImageCitationContent.js +1 -1
  936. package/dist/features/RequirementAiCitations/ImageCitation/ImageCitationContent.js.map +1 -1
  937. package/dist/features/RequirementAiCitations/ImageCitation/ImageCitationContent.module.css.js +1 -1
  938. package/dist/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js +1 -1
  939. package/dist/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js.map +1 -1
  940. package/dist/features/RequirementAiCitations/VideoCitation/VideoCitationContent.module.css.js +1 -1
  941. package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
  942. package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js.map +1 -1
  943. package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
  944. package/dist/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.js +1 -1
  945. package/dist/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.js.map +1 -1
  946. package/dist/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.module.css.js +1 -1
  947. package/dist/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.js +1 -1
  948. package/dist/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.js.map +1 -1
  949. package/dist/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.module.css.js +1 -1
  950. package/dist/features/ReviewPanel/ReviewPanel.css.js +2 -0
  951. package/dist/features/ReviewPanel/ReviewPanel.css.js.map +1 -0
  952. package/dist/features/ReviewPanel/ReviewPanel.js +1 -1
  953. package/dist/features/ReviewPanel/ReviewPanel.js.map +1 -1
  954. package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  955. package/dist/features/RulebookCitations/RuleBookCitationApi.js.map +1 -1
  956. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  957. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js.map +1 -1
  958. package/dist/features/SPBAnalysisPanel/Cognitivereasoningpanel.js +1 -1
  959. package/dist/features/SPBAnalysisPanel/Cognitivereasoningpanel.js.map +1 -1
  960. package/dist/features/SPBAnalysisPanel/DependencyGraph.js +1 -1
  961. package/dist/features/SPBAnalysisPanel/DependencyGraph.js.map +1 -1
  962. package/dist/features/SPBAnalysisPanel/Internaleditor.js +1 -1
  963. package/dist/features/SPBAnalysisPanel/Internaleditor.js.map +1 -1
  964. package/dist/features/SPBAnalysisPanel/Markdownrenderer.js +1 -1
  965. package/dist/features/SPBAnalysisPanel/Markdownrenderer.js.map +1 -1
  966. package/dist/features/SPBAnalysisPanel/Spbanalysispanel.js +1 -1
  967. package/dist/features/SPBAnalysisPanel/Spbanalysispanel.js.map +1 -1
  968. package/dist/features/ScannedDocCitation/ScannedDocCitation.js +1 -1
  969. package/dist/features/ScannedDocCitation/ScannedDocCitation.js.map +1 -1
  970. package/dist/features/SegmentReviewComponents/BoundaryCard.js +1 -1
  971. package/dist/features/SegmentReviewComponents/BoundaryCard.js.map +1 -1
  972. package/dist/features/SegmentReviewComponents/CardWrapper.js +1 -1
  973. package/dist/features/SegmentReviewComponents/CardWrapper.js.map +1 -1
  974. package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js +1 -1
  975. package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +1 -1
  976. package/dist/features/SegmentReviewComponents/CognitiveIcon.js +1 -1
  977. package/dist/features/SegmentReviewComponents/CognitiveIcon.js.map +1 -1
  978. package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js +1 -1
  979. package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js.map +1 -1
  980. package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
  981. package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +1 -1
  982. package/dist/features/SegmentReviewComponents/LabelCheck.js +1 -1
  983. package/dist/features/SegmentReviewComponents/LabelCheck.js.map +1 -1
  984. package/dist/features/SegmentReviewComponents/PageCheck.js +1 -1
  985. package/dist/features/SegmentReviewComponents/PageCheck.js.map +1 -1
  986. package/dist/features/SegmentReviewComponents/PageTypeChoiceCheck.js +1 -1
  987. package/dist/features/SegmentReviewComponents/PageTypeChoiceCheck.js.map +1 -1
  988. package/dist/features/SegmentReviewComponents/RevertCard.js +1 -1
  989. package/dist/features/SegmentReviewComponents/RevertCard.js.map +1 -1
  990. package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +1 -1
  991. package/dist/features/SegmentReviewComponents/RevertSuccessCard.js.map +1 -1
  992. package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js +1 -1
  993. package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js.map +1 -1
  994. package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js +1 -1
  995. package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +1 -1
  996. package/dist/features/SegmentReviewComponents/ReviewedCard.js +1 -1
  997. package/dist/features/SegmentReviewComponents/ReviewedCard.js.map +1 -1
  998. package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  999. package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +1 -1
  1000. package/dist/features/SegmentReviewComponents/helper.js +1 -1
  1001. package/dist/features/SegmentReviewComponents/helper.js.map +1 -1
  1002. package/dist/features/SegmentReviewComponents/reviewScore.js +1 -1
  1003. package/dist/features/SegmentReviewComponents/reviewScore.js.map +1 -1
  1004. package/dist/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
  1005. package/dist/features/SegmentReviewComponents/reviewStepAdapters.js.map +1 -1
  1006. package/dist/features/SplitterCitations/Splitter.module.css.js +1 -1
  1007. package/dist/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
  1008. package/dist/features/SplitterCitations/SplitterCitationsComponent.js.map +1 -1
  1009. package/dist/features/SplitterCitations/icons/icons.js +1 -1
  1010. package/dist/features/SplitterCitations/icons/icons.js.map +1 -1
  1011. package/dist/features/TableCitation/TableCitationContent.js +1 -1
  1012. package/dist/features/TableCitation/TableCitationContent.js.map +1 -1
  1013. package/dist/features/TableCitation/TableCitationContent.module.css.js +1 -1
  1014. package/dist/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
  1015. package/dist/features/TextualGuidelines/TextualGuideLinesComponent.js.map +1 -1
  1016. package/dist/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
  1017. package/dist/hooks/useOnDemandCitationFetch.js +1 -1
  1018. package/dist/hooks/useOnDemandCitationFetch.js.map +1 -1
  1019. package/dist/index.js +1 -1
  1020. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +2 -0
  1021. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
  1022. package/dist/service/apicache.service.js +1 -1
  1023. package/dist/service/apicache.service.js.map +1 -1
  1024. package/dist/service/onDemandApi.js +1 -1
  1025. package/dist/service/onDemandApi.js.map +1 -1
  1026. package/dist/types/AutopilotStyle.d.ts +2 -0
  1027. package/dist/types/AutopilotStyle.d.ts.map +1 -0
  1028. package/dist/types/BPACitationRenderer.d.ts +3 -0
  1029. package/dist/types/BPACitationRenderer.d.ts.map +1 -0
  1030. package/dist/types/BookCitation.d.ts +3 -0
  1031. package/dist/types/BookCitation.d.ts.map +1 -0
  1032. package/dist/types/Bookemon.d.ts +3 -0
  1033. package/dist/types/Bookemon.d.ts.map +1 -0
  1034. package/dist/types/ChatCitation.d.ts +3 -0
  1035. package/dist/types/ChatCitation.d.ts.map +1 -0
  1036. package/dist/types/ChatDrawer.d.ts +3 -0
  1037. package/dist/types/ChatDrawer.d.ts.map +1 -0
  1038. package/dist/types/CitationRenderer.d.ts +3 -0
  1039. package/dist/types/CitationRenderer.d.ts.map +1 -0
  1040. package/dist/types/CodeCitation.d.ts +3 -0
  1041. package/dist/types/CodeCitation.d.ts.map +1 -0
  1042. package/dist/types/CognitiveInternalgptCoreComponent.d.ts +3 -0
  1043. package/dist/types/CognitiveInternalgptCoreComponent.d.ts.map +1 -0
  1044. package/dist/types/CognitiveInternalgptReasoning.d.ts +3 -0
  1045. package/dist/types/CognitiveInternalgptReasoning.d.ts.map +1 -0
  1046. package/dist/types/CommonConstants/CommonConstants.d.ts +5 -0
  1047. package/dist/types/CommonConstants/CommonConstants.d.ts.map +1 -0
  1048. package/dist/types/GptWebCitation.d.ts +3 -0
  1049. package/dist/types/GptWebCitation.d.ts.map +1 -0
  1050. package/dist/types/IngestionStatusComponent.d.ts +2 -0
  1051. package/dist/types/IngestionStatusComponent.d.ts.map +1 -0
  1052. package/dist/types/PdfViewer.d.ts +3 -0
  1053. package/dist/types/PdfViewer.d.ts.map +1 -0
  1054. package/dist/types/ProjectAccordion.d.ts +3 -0
  1055. package/dist/types/ProjectAccordion.d.ts.map +1 -0
  1056. package/dist/types/SplitterCitationsComponent.d.ts +3 -0
  1057. package/dist/types/SplitterCitationsComponent.d.ts.map +1 -0
  1058. package/dist/types/TextualGuideLinesComponent.d.ts +3 -0
  1059. package/dist/types/TextualGuideLinesComponent.d.ts.map +1 -0
  1060. package/dist/types/assests/icons/CitationsIcon.d.ts +2 -0
  1061. package/dist/types/assests/icons/CitationsIcon.d.ts.map +1 -0
  1062. package/dist/types/assests/icons/CitationsSparkleIcon.d.ts +9 -0
  1063. package/dist/types/assests/icons/CitationsSparkleIcon.d.ts.map +1 -0
  1064. package/dist/types/assests/icons/InfoAlert.d.ts +3 -0
  1065. package/dist/types/assests/icons/InfoAlert.d.ts.map +1 -0
  1066. package/dist/types/assests/svg/ButtonCognitiveIcon.d.ts +2 -0
  1067. package/dist/types/assests/svg/ButtonCognitiveIcon.d.ts.map +1 -0
  1068. package/dist/types/assests/svg/NeuralNetworkIcon.d.ts +10 -0
  1069. package/dist/types/assests/svg/NeuralNetworkIcon.d.ts.map +1 -0
  1070. package/dist/types/assests/svg/PdfViewerIcons.d.ts +6 -0
  1071. package/dist/types/assests/svg/PdfViewerIcons.d.ts.map +1 -0
  1072. package/dist/types/assests/svg/SparkleIcon.d.ts +3 -0
  1073. package/dist/types/assests/svg/SparkleIcon.d.ts.map +1 -0
  1074. package/dist/types/constants/diagnosticStylesBySeverity.d.ts +3 -0
  1075. package/dist/types/constants/diagnosticStylesBySeverity.d.ts.map +1 -0
  1076. package/dist/types/context/DataSelectedContext.d.ts +73 -0
  1077. package/dist/types/context/DataSelectedContext.d.ts.map +1 -0
  1078. package/dist/types/features/BPACitationRenderer/BPACitationRenderer.d.ts +5 -0
  1079. package/dist/types/features/BPACitationRenderer/BPACitationRenderer.d.ts.map +1 -0
  1080. package/dist/types/features/BPACitationRenderer/BPACitationRenderer.types.d.ts +230 -0
  1081. package/dist/types/features/BPACitationRenderer/BPACitationRenderer.types.d.ts.map +1 -0
  1082. package/dist/types/features/BPACitationRenderer/citationTypes.d.ts +15 -0
  1083. package/dist/types/features/BPACitationRenderer/citationTypes.d.ts.map +1 -0
  1084. package/dist/types/features/BookCitation/BookCitation.d.ts +42 -0
  1085. package/dist/types/features/BookCitation/BookCitation.d.ts.map +1 -0
  1086. package/dist/types/features/BookCitation/text-cleaner.d.ts +2 -0
  1087. package/dist/types/features/BookCitation/text-cleaner.d.ts.map +1 -0
  1088. package/dist/types/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts +22 -0
  1089. package/dist/types/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts.map +1 -0
  1090. package/dist/types/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts +14 -0
  1091. package/dist/types/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts.map +1 -0
  1092. package/dist/types/features/Bookemon/BookElementsCard/BookElementsCard.d.ts +53 -0
  1093. package/dist/types/features/Bookemon/BookElementsCard/BookElementsCard.d.ts.map +1 -0
  1094. package/dist/types/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts +21 -0
  1095. package/dist/types/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts.map +1 -0
  1096. package/dist/types/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts +36 -0
  1097. package/dist/types/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts.map +1 -0
  1098. package/dist/types/features/Bookemon/BookPreview/BookPreview.d.ts +51 -0
  1099. package/dist/types/features/Bookemon/BookPreview/BookPreview.d.ts.map +1 -0
  1100. package/dist/types/features/Bookemon/Bookemon.d.ts +9 -0
  1101. package/dist/types/features/Bookemon/Bookemon.d.ts.map +1 -0
  1102. package/dist/types/features/Bookemon/BookemonCitationLayer.d.ts +8 -0
  1103. package/dist/types/features/Bookemon/BookemonCitationLayer.d.ts.map +1 -0
  1104. package/dist/types/features/Bookemon/BookemonContent.d.ts +3 -0
  1105. package/dist/types/features/Bookemon/BookemonContent.d.ts.map +1 -0
  1106. package/dist/types/features/Bookemon/types/citation.types.d.ts +65 -0
  1107. package/dist/types/features/Bookemon/types/citation.types.d.ts.map +1 -0
  1108. package/dist/types/features/Bookemon/utils/highlight.d.ts +7 -0
  1109. package/dist/types/features/Bookemon/utils/highlight.d.ts.map +1 -0
  1110. package/dist/types/features/ChatCitation/BigQueryTable.d.ts +8 -0
  1111. package/dist/types/features/ChatCitation/BigQueryTable.d.ts.map +1 -0
  1112. package/dist/types/features/ChatCitation/ChatCitationRenderer.d.ts +25 -0
  1113. package/dist/types/features/ChatCitation/ChatCitationRenderer.d.ts.map +1 -0
  1114. package/dist/types/features/ChatCitation/InternalChatCitationRenderer.d.ts +13 -0
  1115. package/dist/types/features/ChatCitation/InternalChatCitationRenderer.d.ts.map +1 -0
  1116. package/dist/types/features/ChatCitation/assets/collapse.d.ts +4 -0
  1117. package/dist/types/features/ChatCitation/assets/collapse.d.ts.map +1 -0
  1118. package/dist/types/features/ChatCitation/components/AssistantChatItem.d.ts +7 -0
  1119. package/dist/types/features/ChatCitation/components/AssistantChatItem.d.ts.map +1 -0
  1120. package/dist/types/features/ChatCitation/components/ChatCitation.d.ts +16 -0
  1121. package/dist/types/features/ChatCitation/components/ChatCitation.d.ts.map +1 -0
  1122. package/dist/types/features/ChatCitation/components/Chip.d.ts +8 -0
  1123. package/dist/types/features/ChatCitation/components/Chip.d.ts.map +1 -0
  1124. package/dist/types/features/ChatCitation/components/DetailedView.d.ts +11 -0
  1125. package/dist/types/features/ChatCitation/components/DetailedView.d.ts.map +1 -0
  1126. package/dist/types/features/ChatCitation/components/IconContainer.d.ts +8 -0
  1127. package/dist/types/features/ChatCitation/components/IconContainer.d.ts.map +1 -0
  1128. package/dist/types/features/ChatCitation/components/InViewNavigation.d.ts +12 -0
  1129. package/dist/types/features/ChatCitation/components/InViewNavigation.d.ts.map +1 -0
  1130. package/dist/types/features/ChatCitation/components/MarkdownRenderer.d.ts +9 -0
  1131. package/dist/types/features/ChatCitation/components/MarkdownRenderer.d.ts.map +1 -0
  1132. package/dist/types/features/ChatCitation/components/RuleBook.d.ts +10 -0
  1133. package/dist/types/features/ChatCitation/components/RuleBook.d.ts.map +1 -0
  1134. package/dist/types/features/ChatCitation/components/SummarizedView.d.ts +19 -0
  1135. package/dist/types/features/ChatCitation/components/SummarizedView.d.ts.map +1 -0
  1136. package/dist/types/features/ChatCitation/components/UserChatItem.d.ts +7 -0
  1137. package/dist/types/features/ChatCitation/components/UserChatItem.d.ts.map +1 -0
  1138. package/dist/types/features/ChatCitation/components/UserInitialsAsAvatar.d.ts +11 -0
  1139. package/dist/types/features/ChatCitation/components/UserInitialsAsAvatar.d.ts.map +1 -0
  1140. package/dist/types/features/ChatCitation/components/wrappers/Modal.d.ts +10 -0
  1141. package/dist/types/features/ChatCitation/components/wrappers/Modal.d.ts.map +1 -0
  1142. package/dist/types/features/ChatCitation/constants/icons.d.ts +9 -0
  1143. package/dist/types/features/ChatCitation/constants/icons.d.ts.map +1 -0
  1144. package/dist/types/features/ChatCitation/constants/renderer.d.ts +7 -0
  1145. package/dist/types/features/ChatCitation/constants/renderer.d.ts.map +1 -0
  1146. package/dist/types/features/ChatCitation/types/citations.types.d.ts +113 -0
  1147. package/dist/types/features/ChatCitation/types/citations.types.d.ts.map +1 -0
  1148. package/dist/types/features/ChatCitation/utils/helpers.d.ts +16 -0
  1149. package/dist/types/features/ChatCitation/utils/helpers.d.ts.map +1 -0
  1150. package/dist/types/features/ChatDrawer/ChatDrawer.d.ts +5 -0
  1151. package/dist/types/features/ChatDrawer/ChatDrawer.d.ts.map +1 -0
  1152. package/dist/types/features/ChatDrawer/constants/ChatDrawer.d.ts +17 -0
  1153. package/dist/types/features/ChatDrawer/constants/ChatDrawer.d.ts.map +1 -0
  1154. package/dist/types/features/ChatDrawer/types/ChatDrawer.types.d.ts +51 -0
  1155. package/dist/types/features/ChatDrawer/types/ChatDrawer.types.d.ts.map +1 -0
  1156. package/dist/types/features/CitationRenderer/CitationRenderer.d.ts +21 -0
  1157. package/dist/types/features/CitationRenderer/CitationRenderer.d.ts.map +1 -0
  1158. package/dist/types/features/CitationRenderer/MarkdownRenderer.d.ts +25 -0
  1159. package/dist/types/features/CitationRenderer/MarkdownRenderer.d.ts.map +1 -0
  1160. package/dist/types/features/CitationViewer/CitationsViewer.d.ts +4 -0
  1161. package/dist/types/features/CitationViewer/CitationsViewer.d.ts.map +1 -0
  1162. package/dist/types/features/CitationViewer/components/AudioWaveform.d.ts +17 -0
  1163. package/dist/types/features/CitationViewer/components/AudioWaveform.d.ts.map +1 -0
  1164. package/dist/types/features/CitationViewer/components/Header.d.ts +12 -0
  1165. package/dist/types/features/CitationViewer/components/Header.d.ts.map +1 -0
  1166. package/dist/types/features/CitationViewer/components/KeyTakeaways.d.ts +8 -0
  1167. package/dist/types/features/CitationViewer/components/KeyTakeaways.d.ts.map +1 -0
  1168. package/dist/types/features/CitationViewer/components/Transcript.d.ts +10 -0
  1169. package/dist/types/features/CitationViewer/components/Transcript.d.ts.map +1 -0
  1170. package/dist/types/features/CitationViewer/config/apiConfig.d.ts +3 -0
  1171. package/dist/types/features/CitationViewer/config/apiConfig.d.ts.map +1 -0
  1172. package/dist/types/features/CitationViewer/hooks/getSignedUrl.d.ts +2 -0
  1173. package/dist/types/features/CitationViewer/hooks/getSignedUrl.d.ts.map +1 -0
  1174. package/dist/types/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts +2 -0
  1175. package/dist/types/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts.map +1 -0
  1176. package/dist/types/features/CitationViewer/types/artifact.d.ts +58 -0
  1177. package/dist/types/features/CitationViewer/types/artifact.d.ts.map +1 -0
  1178. package/dist/types/features/CodeCitation/CodeCitation.d.ts +51 -0
  1179. package/dist/types/features/CodeCitation/CodeCitation.d.ts.map +1 -0
  1180. package/dist/types/features/CodeCitation/_components/Accordian.d.ts +10 -0
  1181. package/dist/types/features/CodeCitation/_components/Accordian.d.ts.map +1 -0
  1182. package/dist/types/features/CodeCitation/_components/CodeCitationPopup.d.ts +34 -0
  1183. package/dist/types/features/CodeCitation/_components/CodeCitationPopup.d.ts.map +1 -0
  1184. package/dist/types/features/CodeCitation/_components/CodeCitationsStats.d.ts +13 -0
  1185. package/dist/types/features/CodeCitation/_components/CodeCitationsStats.d.ts.map +1 -0
  1186. package/dist/types/features/CodeCitation/_components/CodeEditor.d.ts +30 -0
  1187. package/dist/types/features/CodeCitation/_components/CodeEditor.d.ts.map +1 -0
  1188. package/dist/types/features/CodeCitation/_components/DescriptionWithToggle.d.ts +7 -0
  1189. package/dist/types/features/CodeCitation/_components/DescriptionWithToggle.d.ts.map +1 -0
  1190. package/dist/types/features/CodeCitation/_components/HighlightedCodeDetails.d.ts +16 -0
  1191. package/dist/types/features/CodeCitation/_components/HighlightedCodeDetails.d.ts.map +1 -0
  1192. package/dist/types/features/CodeCitation/_components/RepoAndBranchTag.d.ts +9 -0
  1193. package/dist/types/features/CodeCitation/_components/RepoAndBranchTag.d.ts.map +1 -0
  1194. package/dist/types/features/CodeCitation/_components/Spinner.d.ts +4 -0
  1195. package/dist/types/features/CodeCitation/_components/Spinner.d.ts.map +1 -0
  1196. package/dist/types/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts +12 -0
  1197. package/dist/types/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts.map +1 -0
  1198. package/dist/types/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts +10 -0
  1199. package/dist/types/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts.map +1 -0
  1200. package/dist/types/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts +13 -0
  1201. package/dist/types/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts.map +1 -0
  1202. package/dist/types/features/CodeCitation/_components/ThemeToggle.d.ts +12 -0
  1203. package/dist/types/features/CodeCitation/_components/ThemeToggle.d.ts.map +1 -0
  1204. package/dist/types/features/CodeCitation/_components/TooltipComponent.d.ts +8 -0
  1205. package/dist/types/features/CodeCitation/_components/TooltipComponent.d.ts.map +1 -0
  1206. package/dist/types/features/CognitiveCompare/CitationAnchor.d.ts +30 -0
  1207. package/dist/types/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -0
  1208. package/dist/types/features/CognitiveCompare/CitationRenderer.d.ts +14 -0
  1209. package/dist/types/features/CognitiveCompare/CitationRenderer.d.ts.map +1 -0
  1210. package/dist/types/features/CognitiveCompare/CognitiveCompare.d.ts +7 -0
  1211. package/dist/types/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -0
  1212. package/dist/types/features/CognitiveCompare/CognitiveCompareConfig.d.ts +64 -0
  1213. package/dist/types/features/CognitiveCompare/CognitiveCompareConfig.d.ts.map +1 -0
  1214. package/dist/types/features/CognitiveCompare/CognitiveCompareConstants.d.ts +11 -0
  1215. package/dist/types/features/CognitiveCompare/CognitiveCompareConstants.d.ts.map +1 -0
  1216. package/dist/types/features/CognitiveCompare/CognitiveCompareTypes.d.ts +321 -0
  1217. package/dist/types/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -0
  1218. package/dist/types/features/CognitiveCompare/CognitiveComparehelpers.d.ts +83 -0
  1219. package/dist/types/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -0
  1220. package/dist/types/features/CognitiveCompare/CognitivePopup.d.ts +7 -0
  1221. package/dist/types/features/CognitiveCompare/CognitivePopup.d.ts.map +1 -0
  1222. package/dist/types/features/CognitiveCompare/CompareContext.d.ts +72 -0
  1223. package/dist/types/features/CognitiveCompare/CompareContext.d.ts.map +1 -0
  1224. package/dist/types/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts +4 -0
  1225. package/dist/types/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +1 -0
  1226. package/dist/types/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts +9 -0
  1227. package/dist/types/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts.map +1 -0
  1228. package/dist/types/features/CognitiveCompare/Guidelines/utils/helper.d.ts +11 -0
  1229. package/dist/types/features/CognitiveCompare/Guidelines/utils/helper.d.ts.map +1 -0
  1230. package/dist/types/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts +6 -0
  1231. package/dist/types/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +1 -0
  1232. package/dist/types/features/CognitiveCompare/LoaderComponent.d.ts +4 -0
  1233. package/dist/types/features/CognitiveCompare/LoaderComponent.d.ts.map +1 -0
  1234. package/dist/types/features/CognitiveCompare/MoreFunctionsPopup.d.ts +19 -0
  1235. package/dist/types/features/CognitiveCompare/MoreFunctionsPopup.d.ts.map +1 -0
  1236. package/dist/types/features/CognitiveCompare/OverlayComponent.d.ts +5 -0
  1237. package/dist/types/features/CognitiveCompare/OverlayComponent.d.ts.map +1 -0
  1238. package/dist/types/features/CognitiveCompare/ResizableSplitPane.d.ts +9 -0
  1239. package/dist/types/features/CognitiveCompare/ResizableSplitPane.d.ts.map +1 -0
  1240. package/dist/types/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts +3 -0
  1241. package/dist/types/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts.map +1 -0
  1242. package/dist/types/features/CognitiveCompare/components/CompareHeader.d.ts +13 -0
  1243. package/dist/types/features/CognitiveCompare/components/CompareHeader.d.ts.map +1 -0
  1244. package/dist/types/features/CognitiveCompare/components/LHSSectionRow.d.ts +9 -0
  1245. package/dist/types/features/CognitiveCompare/components/LHSSectionRow.d.ts.map +1 -0
  1246. package/dist/types/features/CognitiveCompare/components/RHSSectionRow.d.ts +9 -0
  1247. package/dist/types/features/CognitiveCompare/components/RHSSectionRow.d.ts.map +1 -0
  1248. package/dist/types/features/CognitiveCompare/components/ScrollLockToggle.d.ts +11 -0
  1249. package/dist/types/features/CognitiveCompare/components/ScrollLockToggle.d.ts.map +1 -0
  1250. package/dist/types/features/CognitiveCompare/components/SectionAccordion.d.ts +17 -0
  1251. package/dist/types/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -0
  1252. package/dist/types/features/CognitiveCompare/components/SubSectionAccordion.d.ts +14 -0
  1253. package/dist/types/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -0
  1254. package/dist/types/features/CognitiveCompare/components/SvgConnectors.d.ts +36 -0
  1255. package/dist/types/features/CognitiveCompare/components/SvgConnectors.d.ts.map +1 -0
  1256. package/dist/types/features/CognitiveCompare/components/ThreeDotsLoader.d.ts +8 -0
  1257. package/dist/types/features/CognitiveCompare/components/ThreeDotsLoader.d.ts.map +1 -0
  1258. package/dist/types/features/CognitiveCompare/components/connectedLines.d.ts +9 -0
  1259. package/dist/types/features/CognitiveCompare/components/connectedLines.d.ts.map +1 -0
  1260. package/dist/types/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +13 -0
  1261. package/dist/types/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -0
  1262. package/dist/types/features/CognitiveCompare/hooks/useAccordionState.d.ts +32 -0
  1263. package/dist/types/features/CognitiveCompare/hooks/useAccordionState.d.ts.map +1 -0
  1264. package/dist/types/features/CognitiveCompare/hooks/useCompareData.d.ts +20 -0
  1265. package/dist/types/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -0
  1266. package/dist/types/features/CognitiveCompare/hooks/useComparePopups.d.ts +22 -0
  1267. package/dist/types/features/CognitiveCompare/hooks/useComparePopups.d.ts.map +1 -0
  1268. package/dist/types/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts +32 -0
  1269. package/dist/types/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts.map +1 -0
  1270. package/dist/types/features/CognitiveCompare/hooks/useLinesCalculator.d.ts +26 -0
  1271. package/dist/types/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -0
  1272. package/dist/types/features/CognitiveCompare/hooks/useResizeHandler.d.ts +5 -0
  1273. package/dist/types/features/CognitiveCompare/hooks/useResizeHandler.d.ts.map +1 -0
  1274. package/dist/types/features/CognitiveCompare/hooks/useSectionRefs.d.ts +19 -0
  1275. package/dist/types/features/CognitiveCompare/hooks/useSectionRefs.d.ts.map +1 -0
  1276. package/dist/types/features/CognitiveCompare/hooks/useSideBySide.d.ts +34 -0
  1277. package/dist/types/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -0
  1278. package/dist/types/features/CognitiveCompare/hooks/useStyles.d.ts +16 -0
  1279. package/dist/types/features/CognitiveCompare/hooks/useStyles.d.ts.map +1 -0
  1280. package/dist/types/features/CognitiveCompare/utils/buildComparisonRows.d.ts +11 -0
  1281. package/dist/types/features/CognitiveCompare/utils/buildComparisonRows.d.ts.map +1 -0
  1282. package/dist/types/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts +47 -0
  1283. package/dist/types/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts.map +1 -0
  1284. package/dist/types/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts +8 -0
  1285. package/dist/types/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts.map +1 -0
  1286. package/dist/types/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts +7 -0
  1287. package/dist/types/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts.map +1 -0
  1288. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +19 -0
  1289. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -0
  1290. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts +26 -0
  1291. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +1 -0
  1292. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts +162 -0
  1293. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts.map +1 -0
  1294. package/dist/types/features/DataSelector/DataSelector.d.ts +18 -0
  1295. package/dist/types/features/DataSelector/DataSelector.d.ts.map +1 -0
  1296. package/dist/types/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +3 -0
  1297. package/dist/types/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +1 -0
  1298. package/dist/types/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +3 -0
  1299. package/dist/types/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +1 -0
  1300. package/dist/types/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +3 -0
  1301. package/dist/types/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +1 -0
  1302. package/dist/types/features/DataSelector/components/RlefDataTabsComponent.d.ts +4 -0
  1303. package/dist/types/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +1 -0
  1304. package/dist/types/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +4 -0
  1305. package/dist/types/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +1 -0
  1306. package/dist/types/features/DataSelector/components/SavedDataSetListScreen.d.ts +13 -0
  1307. package/dist/types/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +1 -0
  1308. package/dist/types/features/DataSelector/components/SelectedDataList.d.ts +3 -0
  1309. package/dist/types/features/DataSelector/components/SelectedDataList.d.ts.map +1 -0
  1310. package/dist/types/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +10 -0
  1311. package/dist/types/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +1 -0
  1312. package/dist/types/features/DualCitation/RuleBookCitationApiComponent.d.ts +20 -0
  1313. package/dist/types/features/DualCitation/RuleBookCitationApiComponent.d.ts.map +1 -0
  1314. package/dist/types/features/DualCitation/RuleBookCitationComponent.d.ts +31 -0
  1315. package/dist/types/features/DualCitation/RuleBookCitationComponent.d.ts.map +1 -0
  1316. package/dist/types/features/DualCitation/SourceBQDataCompnent.d.ts +36 -0
  1317. package/dist/types/features/DualCitation/SourceBQDataCompnent.d.ts.map +1 -0
  1318. package/dist/types/features/ExcelCitation/ExcelCitations.d.ts +15 -0
  1319. package/dist/types/features/ExcelCitation/ExcelCitations.d.ts.map +1 -0
  1320. package/dist/types/features/ExcelCitation/utils/helper.d.ts +2 -0
  1321. package/dist/types/features/ExcelCitation/utils/helper.d.ts.map +1 -0
  1322. package/dist/types/features/GptWebCitation/GptWebCitation.d.ts +15 -0
  1323. package/dist/types/features/GptWebCitation/GptWebCitation.d.ts.map +1 -0
  1324. package/dist/types/features/GptWebCitation/GptWebCitationImageCitation.d.ts +16 -0
  1325. package/dist/types/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -0
  1326. package/dist/types/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +10 -0
  1327. package/dist/types/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -0
  1328. package/dist/types/features/GptWebCitation/GptWebCitationSkeleton.d.ts +14 -0
  1329. package/dist/types/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -0
  1330. package/dist/types/features/GptWebCitation/types.d.ts +405 -0
  1331. package/dist/types/features/GptWebCitation/types.d.ts.map +1 -0
  1332. package/dist/types/features/GptWebCitation/utils/citationData.utils.d.ts +10 -0
  1333. package/dist/types/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -0
  1334. package/dist/types/features/GptWebCitation/utils/fixedHeight.utils.d.ts +10 -0
  1335. package/dist/types/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -0
  1336. package/dist/types/features/GptWebCitation/utils/styleOverrides.utils.d.ts +6 -0
  1337. package/dist/types/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +1 -0
  1338. package/dist/types/features/IngestionStatus/IngestionStatusComponent.d.ts +28 -0
  1339. package/dist/types/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -0
  1340. package/dist/types/features/IngestionStatus/useIngestionStatus.d.ts +40 -0
  1341. package/dist/types/features/IngestionStatus/useIngestionStatus.d.ts.map +1 -0
  1342. package/dist/types/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts +5 -0
  1343. package/dist/types/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts.map +1 -0
  1344. package/dist/types/features/InstantLearningCitation/HistorySkeleton.d.ts +10 -0
  1345. package/dist/types/features/InstantLearningCitation/HistorySkeleton.d.ts.map +1 -0
  1346. package/dist/types/features/InstantLearningCitation/InstantLearningCitation.d.ts +2 -0
  1347. package/dist/types/features/InstantLearningCitation/InstantLearningCitation.d.ts.map +1 -0
  1348. package/dist/types/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +23 -0
  1349. package/dist/types/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +1 -0
  1350. package/dist/types/features/InstantLearningCitation/OverrideTimeline.d.ts +13 -0
  1351. package/dist/types/features/InstantLearningCitation/OverrideTimeline.d.ts.map +1 -0
  1352. package/dist/types/features/InstantLearningCitation/RuleConditionBlock.d.ts +13 -0
  1353. package/dist/types/features/InstantLearningCitation/RuleConditionBlock.d.ts.map +1 -0
  1354. package/dist/types/features/InstantLearningCitation/RuleContentComponent.d.ts +5 -0
  1355. package/dist/types/features/InstantLearningCitation/RuleContentComponent.d.ts.map +1 -0
  1356. package/dist/types/features/InstantLearningCitation/SlashLoader.d.ts +12 -0
  1357. package/dist/types/features/InstantLearningCitation/SlashLoader.d.ts.map +1 -0
  1358. package/dist/types/features/InstantLearningCitation/types/Types.d.ts +356 -0
  1359. package/dist/types/features/InstantLearningCitation/types/Types.d.ts.map +1 -0
  1360. package/dist/types/features/ManageRemainders/AssigneeCalendarView.d.ts +19 -0
  1361. package/dist/types/features/ManageRemainders/AssigneeCalendarView.d.ts.map +1 -0
  1362. package/dist/types/features/ManageRemainders/ManageReminders.d.ts +48 -0
  1363. package/dist/types/features/ManageRemainders/ManageReminders.d.ts.map +1 -0
  1364. package/dist/types/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts +17 -0
  1365. package/dist/types/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts.map +1 -0
  1366. package/dist/types/features/ManageRemainders/types/type.d.ts +78 -0
  1367. package/dist/types/features/ManageRemainders/types/type.d.ts.map +1 -0
  1368. package/dist/types/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts +37 -0
  1369. package/dist/types/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts.map +1 -0
  1370. package/dist/types/features/PaginatedTable/PaginatedTable.d.ts +27 -0
  1371. package/dist/types/features/PaginatedTable/PaginatedTable.d.ts.map +1 -0
  1372. package/dist/types/features/PdfEditorCitation/PdfEditorCitation.d.ts +19 -0
  1373. package/dist/types/features/PdfEditorCitation/PdfEditorCitation.d.ts.map +1 -0
  1374. package/dist/types/features/PdfViewer/PdfContainer.d.ts +16 -0
  1375. package/dist/types/features/PdfViewer/PdfContainer.d.ts.map +1 -0
  1376. package/dist/types/features/PdfViewer/PdfStyle.d.ts +33 -0
  1377. package/dist/types/features/PdfViewer/PdfStyle.d.ts.map +1 -0
  1378. package/dist/types/features/PdfViewer/PdfToolbar.d.ts +34 -0
  1379. package/dist/types/features/PdfViewer/PdfToolbar.d.ts.map +1 -0
  1380. package/dist/types/features/PdfViewer/PdfViewer.d.ts +94 -0
  1381. package/dist/types/features/PdfViewer/PdfViewer.d.ts.map +1 -0
  1382. package/dist/types/features/PdfViewer/rotationManager.d.ts +23 -0
  1383. package/dist/types/features/PdfViewer/rotationManager.d.ts.map +1 -0
  1384. package/dist/types/features/PdfViewer/usePdfHighlight.d.ts +25 -0
  1385. package/dist/types/features/PdfViewer/usePdfHighlight.d.ts.map +1 -0
  1386. package/dist/types/features/PdfViewer/zoomStateManager.d.ts +21 -0
  1387. package/dist/types/features/PdfViewer/zoomStateManager.d.ts.map +1 -0
  1388. package/dist/types/features/ProjectAccordion/ProjectAccordion.d.ts +24 -0
  1389. package/dist/types/features/ProjectAccordion/ProjectAccordion.d.ts.map +1 -0
  1390. package/dist/types/features/ProjectAccordion/_components/Markdown.d.ts +5 -0
  1391. package/dist/types/features/ProjectAccordion/_components/Markdown.d.ts.map +1 -0
  1392. package/dist/types/features/PromptCitation/CitationDependencyGraph.d.ts +56 -0
  1393. package/dist/types/features/PromptCitation/CitationDependencyGraph.d.ts.map +1 -0
  1394. package/dist/types/features/PromptCitation/PromptCitation.d.ts +326 -0
  1395. package/dist/types/features/PromptCitation/PromptCitation.d.ts.map +1 -0
  1396. package/dist/types/features/PromptCitation/_components/CodeEditor.d.ts +30 -0
  1397. package/dist/types/features/PromptCitation/_components/CodeEditor.d.ts.map +1 -0
  1398. package/dist/types/features/PromptCitation/_components/Markdownrenderer.d.ts +23 -0
  1399. package/dist/types/features/PromptCitation/_components/Markdownrenderer.d.ts.map +1 -0
  1400. package/dist/types/features/PromptCitation/_components/ThemeToggle.d.ts +12 -0
  1401. package/dist/types/features/PromptCitation/_components/ThemeToggle.d.ts.map +1 -0
  1402. package/dist/types/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts +23 -0
  1403. package/dist/types/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts.map +1 -0
  1404. package/dist/types/features/PromptemonViewer/PromptemonViewer.d.ts +43 -0
  1405. package/dist/types/features/PromptemonViewer/PromptemonViewer.d.ts.map +1 -0
  1406. package/dist/types/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts +125 -0
  1407. package/dist/types/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts.map +1 -0
  1408. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts +6 -0
  1409. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts.map +1 -0
  1410. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts +26 -0
  1411. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts.map +1 -0
  1412. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts +26 -0
  1413. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts.map +1 -0
  1414. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts +123 -0
  1415. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts.map +1 -0
  1416. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts +92 -0
  1417. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts.map +1 -0
  1418. package/dist/types/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts +7 -0
  1419. package/dist/types/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts.map +1 -0
  1420. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts +12 -0
  1421. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts.map +1 -0
  1422. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts +12 -0
  1423. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts.map +1 -0
  1424. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts +12 -0
  1425. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts.map +1 -0
  1426. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts +7 -0
  1427. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts.map +1 -0
  1428. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts +7 -0
  1429. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts.map +1 -0
  1430. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts +7 -0
  1431. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts.map +1 -0
  1432. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts +4 -0
  1433. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts.map +1 -0
  1434. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts +7 -0
  1435. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts.map +1 -0
  1436. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts +4 -0
  1437. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts.map +1 -0
  1438. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts +7 -0
  1439. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts.map +1 -0
  1440. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts +6 -0
  1441. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts.map +1 -0
  1442. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts +3 -0
  1443. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts.map +1 -0
  1444. package/dist/types/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +207 -0
  1445. package/dist/types/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +1 -0
  1446. package/dist/types/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts +31 -0
  1447. package/dist/types/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts.map +1 -0
  1448. package/dist/types/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts +33 -0
  1449. package/dist/types/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts.map +1 -0
  1450. package/dist/types/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts +45 -0
  1451. package/dist/types/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts.map +1 -0
  1452. package/dist/types/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts +47 -0
  1453. package/dist/types/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts.map +1 -0
  1454. package/dist/types/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts +16 -0
  1455. package/dist/types/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts.map +1 -0
  1456. package/dist/types/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts +4 -0
  1457. package/dist/types/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts.map +1 -0
  1458. package/dist/types/features/ReviewPanel/ReviewPanel.d.ts +52 -0
  1459. package/dist/types/features/ReviewPanel/ReviewPanel.d.ts.map +1 -0
  1460. package/dist/types/features/RulebookCitations/RuleBookCitation.types.d.ts +40 -0
  1461. package/dist/types/features/RulebookCitations/RuleBookCitation.types.d.ts.map +1 -0
  1462. package/dist/types/features/RulebookCitations/RuleBookCitationApi.d.ts +18 -0
  1463. package/dist/types/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -0
  1464. package/dist/types/features/RulebookCitations/RuleBookCitationWrapper.d.ts +26 -0
  1465. package/dist/types/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -0
  1466. package/dist/types/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts +52 -0
  1467. package/dist/types/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts.map +1 -0
  1468. package/dist/types/features/SPBAnalysisPanel/DependencyGraph.d.ts +71 -0
  1469. package/dist/types/features/SPBAnalysisPanel/DependencyGraph.d.ts.map +1 -0
  1470. package/dist/types/features/SPBAnalysisPanel/Internaleditor.d.ts +12 -0
  1471. package/dist/types/features/SPBAnalysisPanel/Internaleditor.d.ts.map +1 -0
  1472. package/dist/types/features/SPBAnalysisPanel/Markdownrenderer.d.ts +16 -0
  1473. package/dist/types/features/SPBAnalysisPanel/Markdownrenderer.d.ts.map +1 -0
  1474. package/dist/types/features/SPBAnalysisPanel/Spbanalysispanel.d.ts +134 -0
  1475. package/dist/types/features/SPBAnalysisPanel/Spbanalysispanel.d.ts.map +1 -0
  1476. package/dist/types/features/SPBAnalysisPanel/index.d.ts +10 -0
  1477. package/dist/types/features/SPBAnalysisPanel/index.d.ts.map +1 -0
  1478. package/dist/types/features/ScannedDocCitation/ScannedDocCitation.d.ts +56 -0
  1479. package/dist/types/features/ScannedDocCitation/ScannedDocCitation.d.ts.map +1 -0
  1480. package/dist/types/features/SegmentReviewComponents/BoundaryCard.d.ts +85 -0
  1481. package/dist/types/features/SegmentReviewComponents/BoundaryCard.d.ts.map +1 -0
  1482. package/dist/types/features/SegmentReviewComponents/CardWrapper.d.ts +26 -0
  1483. package/dist/types/features/SegmentReviewComponents/CardWrapper.d.ts.map +1 -0
  1484. package/dist/types/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts +2 -0
  1485. package/dist/types/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +1 -0
  1486. package/dist/types/features/SegmentReviewComponents/CognitiveIcon.d.ts +3 -0
  1487. package/dist/types/features/SegmentReviewComponents/CognitiveIcon.d.ts.map +1 -0
  1488. package/dist/types/features/SegmentReviewComponents/CognitiveIntegrity.d.ts +33 -0
  1489. package/dist/types/features/SegmentReviewComponents/CognitiveIntegrity.d.ts.map +1 -0
  1490. package/dist/types/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts +7 -0
  1491. package/dist/types/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +1 -0
  1492. package/dist/types/features/SegmentReviewComponents/LabelCheck.d.ts +87 -0
  1493. package/dist/types/features/SegmentReviewComponents/LabelCheck.d.ts.map +1 -0
  1494. package/dist/types/features/SegmentReviewComponents/PageCheck.d.ts +57 -0
  1495. package/dist/types/features/SegmentReviewComponents/PageCheck.d.ts.map +1 -0
  1496. package/dist/types/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts +28 -0
  1497. package/dist/types/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts.map +1 -0
  1498. package/dist/types/features/SegmentReviewComponents/RevertCard.d.ts +37 -0
  1499. package/dist/types/features/SegmentReviewComponents/RevertCard.d.ts.map +1 -0
  1500. package/dist/types/features/SegmentReviewComponents/RevertSuccessCard.d.ts +9 -0
  1501. package/dist/types/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +1 -0
  1502. package/dist/types/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +7 -0
  1503. package/dist/types/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +1 -0
  1504. package/dist/types/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts +17 -0
  1505. package/dist/types/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts.map +1 -0
  1506. package/dist/types/features/SegmentReviewComponents/ReviewedCard.d.ts +33 -0
  1507. package/dist/types/features/SegmentReviewComponents/ReviewedCard.d.ts.map +1 -0
  1508. package/dist/types/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +124 -0
  1509. package/dist/types/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +1 -0
  1510. package/dist/types/features/SegmentReviewComponents/helper.d.ts +51 -0
  1511. package/dist/types/features/SegmentReviewComponents/helper.d.ts.map +1 -0
  1512. package/dist/types/features/SegmentReviewComponents/index.d.ts +23 -0
  1513. package/dist/types/features/SegmentReviewComponents/index.d.ts.map +1 -0
  1514. package/dist/types/features/SegmentReviewComponents/reviewScore.d.ts +4 -0
  1515. package/dist/types/features/SegmentReviewComponents/reviewScore.d.ts.map +1 -0
  1516. package/dist/types/features/SegmentReviewComponents/reviewStepAdapters.d.ts +243 -0
  1517. package/dist/types/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +1 -0
  1518. package/dist/types/features/SplitterCitations/SplitterCitationsComponent.d.ts +5 -0
  1519. package/dist/types/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +1 -0
  1520. package/dist/types/features/SplitterCitations/icons/icons.d.ts +17 -0
  1521. package/dist/types/features/SplitterCitations/icons/icons.d.ts.map +1 -0
  1522. package/dist/types/features/SplitterCitations/types.d.ts +77 -0
  1523. package/dist/types/features/SplitterCitations/types.d.ts.map +1 -0
  1524. package/dist/types/features/TableCitation/TableCitationContent.d.ts +14 -0
  1525. package/dist/types/features/TableCitation/TableCitationContent.d.ts.map +1 -0
  1526. package/dist/types/features/TextualGuidelines/TextualGuideLinesComponent.d.ts +25 -0
  1527. package/dist/types/features/TextualGuidelines/TextualGuideLinesComponent.d.ts.map +1 -0
  1528. package/dist/types/features/TextualGuidelines/TextualGuidelines.types.d.ts +81 -0
  1529. package/dist/types/features/TextualGuidelines/TextualGuidelines.types.d.ts.map +1 -0
  1530. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +14 -0
  1531. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +1 -0
  1532. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +13 -0
  1533. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +1 -0
  1534. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts +1107 -0
  1535. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts.map +1 -0
  1536. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts +57 -0
  1537. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts.map +1 -0
  1538. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts +643 -0
  1539. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts.map +1 -0
  1540. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts +24 -0
  1541. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts.map +1 -0
  1542. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts +283 -0
  1543. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts.map +1 -0
  1544. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts +58 -0
  1545. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts.map +1 -0
  1546. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts +20 -0
  1547. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts.map +1 -0
  1548. package/dist/types/features/UploadData/main.d.ts +9 -0
  1549. package/dist/types/features/UploadData/main.d.ts.map +1 -0
  1550. package/dist/types/hooks/useOnDemandCitationFetch.d.ts +11 -0
  1551. package/dist/types/hooks/useOnDemandCitationFetch.d.ts.map +1 -0
  1552. package/dist/types/index.d.ts +63 -0
  1553. package/dist/types/index.d.ts.map +1 -0
  1554. package/dist/types/methodsToExpose.d.ts +18 -0
  1555. package/dist/types/methodsToExpose.d.ts.map +1 -0
  1556. package/dist/types/onDemandApi.types.js +1 -1
  1557. package/dist/types/onDemandApi.types.js.map +1 -1
  1558. package/dist/types/service/API.d.ts +6 -0
  1559. package/dist/types/service/API.d.ts.map +1 -0
  1560. package/dist/types/service/DataService.d.ts +73 -0
  1561. package/dist/types/service/DataService.d.ts.map +1 -0
  1562. package/dist/types/service/ModelService.d.ts +68 -0
  1563. package/dist/types/service/ModelService.d.ts.map +1 -0
  1564. package/dist/types/service/ProjectService.d.ts +16 -0
  1565. package/dist/types/service/ProjectService.d.ts.map +1 -0
  1566. package/dist/types/service/SavedDataSetService.d.ts +27 -0
  1567. package/dist/types/service/SavedDataSetService.d.ts.map +1 -0
  1568. package/dist/types/service/apicache.service.d.ts +43 -0
  1569. package/dist/types/service/apicache.service.d.ts.map +1 -0
  1570. package/dist/types/service/constants.d.ts +3 -0
  1571. package/dist/types/service/constants.d.ts.map +1 -0
  1572. package/dist/types/service/envHelperService.d.ts +5 -0
  1573. package/dist/types/service/envHelperService.d.ts.map +1 -0
  1574. package/dist/types/service/onDemandApi.d.ts +27 -0
  1575. package/dist/types/service/onDemandApi.d.ts.map +1 -0
  1576. package/dist/types/service/variableHelperService.d.ts +6 -0
  1577. package/dist/types/service/variableHelperService.d.ts.map +1 -0
  1578. package/dist/types/theme.d.ts +4 -0
  1579. package/dist/types/theme.d.ts.map +1 -0
  1580. package/dist/types/types/CodeCitationTypes.d.ts +46 -0
  1581. package/dist/types/types/CodeCitationTypes.d.ts.map +1 -0
  1582. package/dist/types/types/onDemandApi.types.d.ts +63 -0
  1583. package/dist/types/types/onDemandApi.types.d.ts.map +1 -0
  1584. package/dist/types/types/useOnDemandCitationFetch.types.d.ts +70 -0
  1585. package/dist/types/types/useOnDemandCitationFetch.types.d.ts.map +1 -0
  1586. package/dist/types/userProvidedConfig.d.ts +8 -0
  1587. package/dist/types/userProvidedConfig.d.ts.map +1 -0
  1588. package/dist/types/utils/api.d.ts +2 -0
  1589. package/dist/types/utils/api.d.ts.map +1 -0
  1590. package/dist/types/utils/codeCitations.utils.d.ts +9 -0
  1591. package/dist/types/utils/codeCitations.utils.d.ts.map +1 -0
  1592. package/dist/types/utils/helper.d.ts +5 -0
  1593. package/dist/types/utils/helper.d.ts.map +1 -0
  1594. package/dist/types/utils/sanitizeHtml.d.ts +5 -0
  1595. package/dist/types/utils/sanitizeHtml.d.ts.map +1 -0
  1596. package/dist/types/utils/themeManager.d.ts +13 -0
  1597. package/dist/types/utils/themeManager.d.ts.map +1 -0
  1598. package/dist/utils/codeCitations.utils.js +1 -1
  1599. package/dist/utils/codeCitations.utils.js.map +1 -1
  1600. package/dist/utils/helper.js +2 -0
  1601. package/dist/utils/helper.js.map +1 -0
  1602. package/dist/utils/sanitizeHtml.js +1 -1
  1603. package/dist/utils/sanitizeHtml.js.map +1 -1
  1604. package/dist/utils/themeManager.js +1 -1
  1605. package/dist/utils/themeManager.js.map +1 -1
  1606. package/package.json +135 -278
  1607. package/dist/types/src/AccordianHeadTest.d.ts +0 -2
  1608. package/dist/types/src/AccordianHeadTest.d.ts.map +0 -1
  1609. package/dist/types/src/App.d.ts +0 -3
  1610. package/dist/types/src/App.d.ts.map +0 -1
  1611. package/dist/types/src/AutopilotStyle.d.ts +0 -2
  1612. package/dist/types/src/AutopilotStyle.d.ts.map +0 -1
  1613. package/dist/types/src/BookCitationTest.d.ts +0 -3
  1614. package/dist/types/src/BookCitationTest.d.ts.map +0 -1
  1615. package/dist/types/src/BookemonTest.d.ts +0 -83
  1616. package/dist/types/src/BookemonTest.d.ts.map +0 -1
  1617. package/dist/types/src/ChatCitationTest.d.ts +0 -7
  1618. package/dist/types/src/ChatCitationTest.d.ts.map +0 -1
  1619. package/dist/types/src/ChatDrawerTest.d.ts +0 -17
  1620. package/dist/types/src/ChatDrawerTest.d.ts.map +0 -1
  1621. package/dist/types/src/CitationDependencyGraphTest.d.ts +0 -4
  1622. package/dist/types/src/CitationDependencyGraphTest.d.ts.map +0 -1
  1623. package/dist/types/src/CodeCitationTest.d.ts +0 -3
  1624. package/dist/types/src/CodeCitationTest.d.ts.map +0 -1
  1625. package/dist/types/src/CognitiveCompareTest.d.ts +0 -3
  1626. package/dist/types/src/CognitiveCompareTest.d.ts.map +0 -1
  1627. package/dist/types/src/CommonComponents/AccordianHead/AccordianHead.d.ts +0 -9
  1628. package/dist/types/src/CommonComponents/AccordianHead/AccordianHead.d.ts.map +0 -1
  1629. package/dist/types/src/CommonComponents/CustomDropdown.d.ts +0 -4
  1630. package/dist/types/src/CommonComponents/CustomDropdown.d.ts.map +0 -1
  1631. package/dist/types/src/CommonComponents/HelloWorld.d.ts +0 -2
  1632. package/dist/types/src/CommonComponents/HelloWorld.d.ts.map +0 -1
  1633. package/dist/types/src/CommonComponents/NoTableData.d.ts +0 -6
  1634. package/dist/types/src/CommonComponents/NoTableData.d.ts.map +0 -1
  1635. package/dist/types/src/CommonComponents/Spinner.d.ts +0 -4
  1636. package/dist/types/src/CommonComponents/Spinner.d.ts.map +0 -1
  1637. package/dist/types/src/CommonConstants/CommonConstants.d.ts +0 -5
  1638. package/dist/types/src/CommonConstants/CommonConstants.d.ts.map +0 -1
  1639. package/dist/types/src/CustomStylesProvider.d.ts +0 -6
  1640. package/dist/types/src/CustomStylesProvider.d.ts.map +0 -1
  1641. package/dist/types/src/CustomThemeProvider.d.ts +0 -7
  1642. package/dist/types/src/CustomThemeProvider.d.ts.map +0 -1
  1643. package/dist/types/src/DatagestMonTest.d.ts +0 -3
  1644. package/dist/types/src/DatagestMonTest.d.ts.map +0 -1
  1645. package/dist/types/src/DbCodeCitationTest.d.ts +0 -3
  1646. package/dist/types/src/DbCodeCitationTest.d.ts.map +0 -1
  1647. package/dist/types/src/EmailCitationTest.d.ts +0 -3
  1648. package/dist/types/src/EmailCitationTest.d.ts.map +0 -1
  1649. package/dist/types/src/ExcelCitationTest.d.ts +0 -2
  1650. package/dist/types/src/ExcelCitationTest.d.ts.map +0 -1
  1651. package/dist/types/src/GoogleFilePickerDemo.d.ts +0 -2
  1652. package/dist/types/src/GoogleFilePickerDemo.d.ts.map +0 -1
  1653. package/dist/types/src/MarkdownWithImageCitationTest.d.ts +0 -3
  1654. package/dist/types/src/MarkdownWithImageCitationTest.d.ts.map +0 -1
  1655. package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts +0 -3
  1656. package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts.map +0 -1
  1657. package/dist/types/src/PaginatedTableTest/useFetchData.d.ts +0 -15
  1658. package/dist/types/src/PaginatedTableTest/useFetchData.d.ts.map +0 -1
  1659. package/dist/types/src/PdfViewerTest.d.ts +0 -5
  1660. package/dist/types/src/PdfViewerTest.d.ts.map +0 -1
  1661. package/dist/types/src/ProjectAccordianTest.d.ts +0 -3
  1662. package/dist/types/src/ProjectAccordianTest.d.ts.map +0 -1
  1663. package/dist/types/src/PromptemonBlockViewerTest.d.ts +0 -3
  1664. package/dist/types/src/PromptemonBlockViewerTest.d.ts.map +0 -1
  1665. package/dist/types/src/PromptemonViewerTest.d.ts +0 -3
  1666. package/dist/types/src/PromptemonViewerTest.d.ts.map +0 -1
  1667. package/dist/types/src/RequirementAICitationTest.d.ts +0 -3
  1668. package/dist/types/src/RequirementAICitationTest.d.ts.map +0 -1
  1669. package/dist/types/src/ScannedDocCitationTest.d.ts +0 -2
  1670. package/dist/types/src/ScannedDocCitationTest.d.ts.map +0 -1
  1671. package/dist/types/src/Spbanalysispaneltest.d.ts +0 -3
  1672. package/dist/types/src/Spbanalysispaneltest.d.ts.map +0 -1
  1673. package/dist/types/src/TableCitationTest.d.ts +0 -3
  1674. package/dist/types/src/TableCitationTest.d.ts.map +0 -1
  1675. package/dist/types/src/assests/icons/ChartSplitIcon.d.ts +0 -3
  1676. package/dist/types/src/assests/icons/ChartSplitIcon.d.ts.map +0 -1
  1677. package/dist/types/src/assests/icons/CitationsIcon.d.ts +0 -2
  1678. package/dist/types/src/assests/icons/CitationsIcon.d.ts.map +0 -1
  1679. package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts +0 -10
  1680. package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts.map +0 -1
  1681. package/dist/types/src/assests/icons/InfoAlert.d.ts +0 -3
  1682. package/dist/types/src/assests/icons/InfoAlert.d.ts.map +0 -1
  1683. package/dist/types/src/assests/svg/ButtonCognitiveIcon.d.ts +0 -2
  1684. package/dist/types/src/assests/svg/ButtonCognitiveIcon.d.ts.map +0 -1
  1685. package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts +0 -9
  1686. package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts.map +0 -1
  1687. package/dist/types/src/assests/svg/PdfViewerIcons.d.ts +0 -6
  1688. package/dist/types/src/assests/svg/PdfViewerIcons.d.ts.map +0 -1
  1689. package/dist/types/src/assests/svg/SparkleIcon.d.ts +0 -3
  1690. package/dist/types/src/assests/svg/SparkleIcon.d.ts.map +0 -1
  1691. package/dist/types/src/constants/diagnosticStylesBySeverity.d.ts +0 -3
  1692. package/dist/types/src/constants/diagnosticStylesBySeverity.d.ts.map +0 -1
  1693. package/dist/types/src/context/DataSelectedContext.d.ts +0 -73
  1694. package/dist/types/src/context/DataSelectedContext.d.ts.map +0 -1
  1695. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts +0 -5
  1696. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts.map +0 -1
  1697. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.types.d.ts +0 -230
  1698. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.types.d.ts.map +0 -1
  1699. package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts +0 -6
  1700. package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts.map +0 -1
  1701. package/dist/types/src/features/BPACitationRenderer/DualRuleBookBqCitationTest.d.ts +0 -4
  1702. package/dist/types/src/features/BPACitationRenderer/DualRuleBookBqCitationTest.d.ts.map +0 -1
  1703. package/dist/types/src/features/BPACitationRenderer/DualRuleBookGptCitationTest.d.ts +0 -4
  1704. package/dist/types/src/features/BPACitationRenderer/DualRuleBookGptCitationTest.d.ts.map +0 -1
  1705. package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts +0 -4
  1706. package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts.map +0 -1
  1707. package/dist/types/src/features/BPACitationRenderer/citationTypes.d.ts +0 -15
  1708. package/dist/types/src/features/BPACitationRenderer/citationTypes.d.ts.map +0 -1
  1709. package/dist/types/src/features/BookCitation/BookCitation.d.ts +0 -42
  1710. package/dist/types/src/features/BookCitation/BookCitation.d.ts.map +0 -1
  1711. package/dist/types/src/features/BookCitation/text-cleaner.d.ts +0 -2
  1712. package/dist/types/src/features/BookCitation/text-cleaner.d.ts.map +0 -1
  1713. package/dist/types/src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts +0 -21
  1714. package/dist/types/src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts.map +0 -1
  1715. package/dist/types/src/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts +0 -13
  1716. package/dist/types/src/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts.map +0 -1
  1717. package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts +0 -52
  1718. package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts.map +0 -1
  1719. package/dist/types/src/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts +0 -20
  1720. package/dist/types/src/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts.map +0 -1
  1721. package/dist/types/src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts +0 -35
  1722. package/dist/types/src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts.map +0 -1
  1723. package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts +0 -51
  1724. package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts.map +0 -1
  1725. package/dist/types/src/features/Bookemon/Bookemon.d.ts +0 -9
  1726. package/dist/types/src/features/Bookemon/Bookemon.d.ts.map +0 -1
  1727. package/dist/types/src/features/Bookemon/BookemonCitationLayer.d.ts +0 -7
  1728. package/dist/types/src/features/Bookemon/BookemonCitationLayer.d.ts.map +0 -1
  1729. package/dist/types/src/features/Bookemon/BookemonContent.d.ts +0 -3
  1730. package/dist/types/src/features/Bookemon/BookemonContent.d.ts.map +0 -1
  1731. package/dist/types/src/features/Bookemon/types/citation.types.d.ts +0 -65
  1732. package/dist/types/src/features/Bookemon/types/citation.types.d.ts.map +0 -1
  1733. package/dist/types/src/features/Bookemon/utils/highlight.d.ts +0 -7
  1734. package/dist/types/src/features/Bookemon/utils/highlight.d.ts.map +0 -1
  1735. package/dist/types/src/features/ChatCitation/BigQueryTable.d.ts +0 -8
  1736. package/dist/types/src/features/ChatCitation/BigQueryTable.d.ts.map +0 -1
  1737. package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts +0 -26
  1738. package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts.map +0 -1
  1739. package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts +0 -13
  1740. package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts.map +0 -1
  1741. package/dist/types/src/features/ChatCitation/assets/collapse.d.ts +0 -3
  1742. package/dist/types/src/features/ChatCitation/assets/collapse.d.ts.map +0 -1
  1743. package/dist/types/src/features/ChatCitation/components/AssistantChatItem.d.ts +0 -8
  1744. package/dist/types/src/features/ChatCitation/components/AssistantChatItem.d.ts.map +0 -1
  1745. package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts +0 -16
  1746. package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts.map +0 -1
  1747. package/dist/types/src/features/ChatCitation/components/Chip.d.ts +0 -8
  1748. package/dist/types/src/features/ChatCitation/components/Chip.d.ts.map +0 -1
  1749. package/dist/types/src/features/ChatCitation/components/DetailedView.d.ts +0 -10
  1750. package/dist/types/src/features/ChatCitation/components/DetailedView.d.ts.map +0 -1
  1751. package/dist/types/src/features/ChatCitation/components/IconContainer.d.ts +0 -8
  1752. package/dist/types/src/features/ChatCitation/components/IconContainer.d.ts.map +0 -1
  1753. package/dist/types/src/features/ChatCitation/components/InViewNavigation.d.ts +0 -11
  1754. package/dist/types/src/features/ChatCitation/components/InViewNavigation.d.ts.map +0 -1
  1755. package/dist/types/src/features/ChatCitation/components/MarkdownRenderer.d.ts +0 -10
  1756. package/dist/types/src/features/ChatCitation/components/MarkdownRenderer.d.ts.map +0 -1
  1757. package/dist/types/src/features/ChatCitation/components/RuleBook.d.ts +0 -9
  1758. package/dist/types/src/features/ChatCitation/components/RuleBook.d.ts.map +0 -1
  1759. package/dist/types/src/features/ChatCitation/components/SummarizedView.d.ts +0 -19
  1760. package/dist/types/src/features/ChatCitation/components/SummarizedView.d.ts.map +0 -1
  1761. package/dist/types/src/features/ChatCitation/components/UserChatItem.d.ts +0 -8
  1762. package/dist/types/src/features/ChatCitation/components/UserChatItem.d.ts.map +0 -1
  1763. package/dist/types/src/features/ChatCitation/components/UserInitialsAsAvatar.d.ts +0 -11
  1764. package/dist/types/src/features/ChatCitation/components/UserInitialsAsAvatar.d.ts.map +0 -1
  1765. package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts +0 -10
  1766. package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts.map +0 -1
  1767. package/dist/types/src/features/ChatCitation/constants/icons.d.ts +0 -9
  1768. package/dist/types/src/features/ChatCitation/constants/icons.d.ts.map +0 -1
  1769. package/dist/types/src/features/ChatCitation/constants/renderer.d.ts +0 -7
  1770. package/dist/types/src/features/ChatCitation/constants/renderer.d.ts.map +0 -1
  1771. package/dist/types/src/features/ChatCitation/types/citations.types.d.ts +0 -114
  1772. package/dist/types/src/features/ChatCitation/types/citations.types.d.ts.map +0 -1
  1773. package/dist/types/src/features/ChatCitation/utils/helpers.d.ts +0 -16
  1774. package/dist/types/src/features/ChatCitation/utils/helpers.d.ts.map +0 -1
  1775. package/dist/types/src/features/ChatDrawer/ChatDrawer.d.ts +0 -5
  1776. package/dist/types/src/features/ChatDrawer/ChatDrawer.d.ts.map +0 -1
  1777. package/dist/types/src/features/ChatDrawer/UploadedFilesList.types.d.ts +0 -33
  1778. package/dist/types/src/features/ChatDrawer/UploadedFilesList.types.d.ts.map +0 -1
  1779. package/dist/types/src/features/ChatDrawer/Uploadedfileslist.d.ts +0 -5
  1780. package/dist/types/src/features/ChatDrawer/Uploadedfileslist.d.ts.map +0 -1
  1781. package/dist/types/src/features/ChatDrawer/constants/ChatDrawer.d.ts +0 -17
  1782. package/dist/types/src/features/ChatDrawer/constants/ChatDrawer.d.ts.map +0 -1
  1783. package/dist/types/src/features/ChatDrawer/context/ChatDrawerContext.d.ts +0 -8
  1784. package/dist/types/src/features/ChatDrawer/context/ChatDrawerContext.d.ts.map +0 -1
  1785. package/dist/types/src/features/ChatDrawer/types/ChatDrawer.types.d.ts +0 -51
  1786. package/dist/types/src/features/ChatDrawer/types/ChatDrawer.types.d.ts.map +0 -1
  1787. package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts +0 -21
  1788. package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts.map +0 -1
  1789. package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts +0 -25
  1790. package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts.map +0 -1
  1791. package/dist/types/src/features/CitationViewer/CitationsViewer.d.ts +0 -5
  1792. package/dist/types/src/features/CitationViewer/CitationsViewer.d.ts.map +0 -1
  1793. package/dist/types/src/features/CitationViewer/components/AudioPlayer.d.ts +0 -8
  1794. package/dist/types/src/features/CitationViewer/components/AudioPlayer.d.ts.map +0 -1
  1795. package/dist/types/src/features/CitationViewer/components/AudioWaveform.d.ts +0 -17
  1796. package/dist/types/src/features/CitationViewer/components/AudioWaveform.d.ts.map +0 -1
  1797. package/dist/types/src/features/CitationViewer/components/ChatHistory.d.ts +0 -8
  1798. package/dist/types/src/features/CitationViewer/components/ChatHistory.d.ts.map +0 -1
  1799. package/dist/types/src/features/CitationViewer/components/Header.d.ts +0 -12
  1800. package/dist/types/src/features/CitationViewer/components/Header.d.ts.map +0 -1
  1801. package/dist/types/src/features/CitationViewer/components/KeyTakeaways.d.ts +0 -8
  1802. package/dist/types/src/features/CitationViewer/components/KeyTakeaways.d.ts.map +0 -1
  1803. package/dist/types/src/features/CitationViewer/components/Transcript.d.ts +0 -10
  1804. package/dist/types/src/features/CitationViewer/components/Transcript.d.ts.map +0 -1
  1805. package/dist/types/src/features/CitationViewer/config/apiConfig.d.ts +0 -3
  1806. package/dist/types/src/features/CitationViewer/config/apiConfig.d.ts.map +0 -1
  1807. package/dist/types/src/features/CitationViewer/hooks/getSignedUrl.d.ts +0 -2
  1808. package/dist/types/src/features/CitationViewer/hooks/getSignedUrl.d.ts.map +0 -1
  1809. package/dist/types/src/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts +0 -2
  1810. package/dist/types/src/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts.map +0 -1
  1811. package/dist/types/src/features/CitationViewer/types/artifact.d.ts +0 -59
  1812. package/dist/types/src/features/CitationViewer/types/artifact.d.ts.map +0 -1
  1813. package/dist/types/src/features/CodeCitation/CodeCitation.d.ts +0 -51
  1814. package/dist/types/src/features/CodeCitation/CodeCitation.d.ts.map +0 -1
  1815. package/dist/types/src/features/CodeCitation/_components/Accordian.d.ts +0 -10
  1816. package/dist/types/src/features/CodeCitation/_components/Accordian.d.ts.map +0 -1
  1817. package/dist/types/src/features/CodeCitation/_components/CodeCitationPopup.d.ts +0 -34
  1818. package/dist/types/src/features/CodeCitation/_components/CodeCitationPopup.d.ts.map +0 -1
  1819. package/dist/types/src/features/CodeCitation/_components/CodeCitationsStats.d.ts +0 -13
  1820. package/dist/types/src/features/CodeCitation/_components/CodeCitationsStats.d.ts.map +0 -1
  1821. package/dist/types/src/features/CodeCitation/_components/CodeEditor.d.ts +0 -30
  1822. package/dist/types/src/features/CodeCitation/_components/CodeEditor.d.ts.map +0 -1
  1823. package/dist/types/src/features/CodeCitation/_components/DescriptionWithToggle.d.ts +0 -6
  1824. package/dist/types/src/features/CodeCitation/_components/DescriptionWithToggle.d.ts.map +0 -1
  1825. package/dist/types/src/features/CodeCitation/_components/HighlightedCodeDetails.d.ts +0 -16
  1826. package/dist/types/src/features/CodeCitation/_components/HighlightedCodeDetails.d.ts.map +0 -1
  1827. package/dist/types/src/features/CodeCitation/_components/RepoAndBranchTag.d.ts +0 -8
  1828. package/dist/types/src/features/CodeCitation/_components/RepoAndBranchTag.d.ts.map +0 -1
  1829. package/dist/types/src/features/CodeCitation/_components/Spinner.d.ts +0 -4
  1830. package/dist/types/src/features/CodeCitation/_components/Spinner.d.ts.map +0 -1
  1831. package/dist/types/src/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts +0 -12
  1832. package/dist/types/src/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts.map +0 -1
  1833. package/dist/types/src/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts +0 -10
  1834. package/dist/types/src/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts.map +0 -1
  1835. package/dist/types/src/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts +0 -13
  1836. package/dist/types/src/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts.map +0 -1
  1837. package/dist/types/src/features/CodeCitation/_components/ThemeToggle.d.ts +0 -12
  1838. package/dist/types/src/features/CodeCitation/_components/ThemeToggle.d.ts.map +0 -1
  1839. package/dist/types/src/features/CodeCitation/_components/TooltipComponent.d.ts +0 -8
  1840. package/dist/types/src/features/CodeCitation/_components/TooltipComponent.d.ts.map +0 -1
  1841. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts +0 -30
  1842. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +0 -1
  1843. package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts +0 -13
  1844. package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts.map +0 -1
  1845. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +0 -6
  1846. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +0 -1
  1847. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConfig.d.ts +0 -64
  1848. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConfig.d.ts.map +0 -1
  1849. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts +0 -11
  1850. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts.map +0 -1
  1851. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +0 -322
  1852. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +0 -1
  1853. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +0 -83
  1854. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +0 -1
  1855. package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts +0 -7
  1856. package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts.map +0 -1
  1857. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts +0 -72
  1858. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts.map +0 -1
  1859. package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts +0 -3
  1860. package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +0 -1
  1861. package/dist/types/src/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts +0 -8
  1862. package/dist/types/src/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts.map +0 -1
  1863. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts +0 -2524
  1864. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +0 -1
  1865. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/helper.d.ts +0 -11
  1866. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/helper.d.ts.map +0 -1
  1867. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts +0 -6
  1868. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +0 -1
  1869. package/dist/types/src/features/CognitiveCompare/LoaderComponent.d.ts +0 -3
  1870. package/dist/types/src/features/CognitiveCompare/LoaderComponent.d.ts.map +0 -1
  1871. package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts +0 -19
  1872. package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts.map +0 -1
  1873. package/dist/types/src/features/CognitiveCompare/OverlayComponent.d.ts +0 -5
  1874. package/dist/types/src/features/CognitiveCompare/OverlayComponent.d.ts.map +0 -1
  1875. package/dist/types/src/features/CognitiveCompare/ResizableSplitPane.d.ts +0 -9
  1876. package/dist/types/src/features/CognitiveCompare/ResizableSplitPane.d.ts.map +0 -1
  1877. package/dist/types/src/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts +0 -3
  1878. package/dist/types/src/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts.map +0 -1
  1879. package/dist/types/src/features/CognitiveCompare/components/CompareHeader.d.ts +0 -12
  1880. package/dist/types/src/features/CognitiveCompare/components/CompareHeader.d.ts.map +0 -1
  1881. package/dist/types/src/features/CognitiveCompare/components/LHSSectionRow.d.ts +0 -9
  1882. package/dist/types/src/features/CognitiveCompare/components/LHSSectionRow.d.ts.map +0 -1
  1883. package/dist/types/src/features/CognitiveCompare/components/RHSSectionRow.d.ts +0 -9
  1884. package/dist/types/src/features/CognitiveCompare/components/RHSSectionRow.d.ts.map +0 -1
  1885. package/dist/types/src/features/CognitiveCompare/components/ScrollLockToggle.d.ts +0 -11
  1886. package/dist/types/src/features/CognitiveCompare/components/ScrollLockToggle.d.ts.map +0 -1
  1887. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts +0 -17
  1888. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +0 -1
  1889. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts +0 -14
  1890. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +0 -1
  1891. package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts +0 -37
  1892. package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts.map +0 -1
  1893. package/dist/types/src/features/CognitiveCompare/components/ThreeDotsLoader.d.ts +0 -8
  1894. package/dist/types/src/features/CognitiveCompare/components/ThreeDotsLoader.d.ts.map +0 -1
  1895. package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts +0 -9
  1896. package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts.map +0 -1
  1897. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +0 -13
  1898. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +0 -1
  1899. package/dist/types/src/features/CognitiveCompare/hooks/useAccordionState.d.ts +0 -32
  1900. package/dist/types/src/features/CognitiveCompare/hooks/useAccordionState.d.ts.map +0 -1
  1901. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +0 -20
  1902. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +0 -1
  1903. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -24
  1904. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +0 -1
  1905. package/dist/types/src/features/CognitiveCompare/hooks/useComparePopups.d.ts +0 -22
  1906. package/dist/types/src/features/CognitiveCompare/hooks/useComparePopups.d.ts.map +0 -1
  1907. package/dist/types/src/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts +0 -32
  1908. package/dist/types/src/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts.map +0 -1
  1909. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts +0 -27
  1910. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +0 -1
  1911. package/dist/types/src/features/CognitiveCompare/hooks/useResizeHandler.d.ts +0 -5
  1912. package/dist/types/src/features/CognitiveCompare/hooks/useResizeHandler.d.ts.map +0 -1
  1913. package/dist/types/src/features/CognitiveCompare/hooks/useSectionRefs.d.ts +0 -19
  1914. package/dist/types/src/features/CognitiveCompare/hooks/useSectionRefs.d.ts.map +0 -1
  1915. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts +0 -35
  1916. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +0 -1
  1917. package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts +0 -16
  1918. package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts.map +0 -1
  1919. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.d.ts +0 -11
  1920. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.d.ts.map +0 -1
  1921. package/dist/types/src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts +0 -47
  1922. package/dist/types/src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts.map +0 -1
  1923. package/dist/types/src/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts +0 -8
  1924. package/dist/types/src/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts.map +0 -1
  1925. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/DecisioningIcon.d.ts +0 -7
  1926. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/DecisioningIcon.d.ts.map +0 -1
  1927. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts +0 -7
  1928. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts.map +0 -1
  1929. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +0 -20
  1930. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +0 -1
  1931. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts +0 -27
  1932. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +0 -1
  1933. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts +0 -5
  1934. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts.map +0 -1
  1935. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts +0 -162
  1936. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts.map +0 -1
  1937. package/dist/types/src/features/DataSelector/DataSelector.d.ts +0 -18
  1938. package/dist/types/src/features/DataSelector/DataSelector.d.ts.map +0 -1
  1939. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +0 -3
  1940. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +0 -1
  1941. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +0 -3
  1942. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +0 -1
  1943. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +0 -3
  1944. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +0 -1
  1945. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts +0 -3
  1946. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +0 -1
  1947. package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +0 -3
  1948. package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +0 -1
  1949. package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts +0 -13
  1950. package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +0 -1
  1951. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts +0 -3
  1952. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts.map +0 -1
  1953. package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +0 -11
  1954. package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +0 -1
  1955. package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts +0 -7
  1956. package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts.map +0 -1
  1957. package/dist/types/src/features/DataSelector/tables/ShowSelectedDataTable.d.ts +0 -4
  1958. package/dist/types/src/features/DataSelector/tables/ShowSelectedDataTable.d.ts.map +0 -1
  1959. package/dist/types/src/features/DatagestMon/DatagestMon.d.ts +0 -21
  1960. package/dist/types/src/features/DatagestMon/DatagestMon.d.ts.map +0 -1
  1961. package/dist/types/src/features/DatagestMon/DynamicDataPreviiewer/DynamicDataPreviewer.d.ts +0 -19
  1962. package/dist/types/src/features/DatagestMon/DynamicDataPreviiewer/DynamicDataPreviewer.d.ts.map +0 -1
  1963. package/dist/types/src/features/DatagestMon/EpubPreviewer/EpubPreview.d.ts +0 -7
  1964. package/dist/types/src/features/DatagestMon/EpubPreviewer/EpubPreview.d.ts.map +0 -1
  1965. package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts +0 -20
  1966. package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts.map +0 -1
  1967. package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts +0 -31
  1968. package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts.map +0 -1
  1969. package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts +0 -36
  1970. package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts.map +0 -1
  1971. package/dist/types/src/features/EmailCitation/EmailCitation.d.ts +0 -43
  1972. package/dist/types/src/features/EmailCitation/EmailCitation.d.ts.map +0 -1
  1973. package/dist/types/src/features/EmailCitation/components/EmailMetaDropdown.d.ts +0 -10
  1974. package/dist/types/src/features/EmailCitation/components/EmailMetaDropdown.d.ts.map +0 -1
  1975. package/dist/types/src/features/ExcelCitation/ExcelCitations.d.ts +0 -15
  1976. package/dist/types/src/features/ExcelCitation/ExcelCitations.d.ts.map +0 -1
  1977. package/dist/types/src/features/ExcelCitation/utils/helper.d.ts +0 -2
  1978. package/dist/types/src/features/ExcelCitation/utils/helper.d.ts.map +0 -1
  1979. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +0 -15
  1980. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +0 -1
  1981. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +0 -16
  1982. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +0 -1
  1983. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +0 -10
  1984. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +0 -1
  1985. package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts +0 -9
  1986. package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts.map +0 -1
  1987. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +0 -14
  1988. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +0 -1
  1989. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +0 -4
  1990. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +0 -1
  1991. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts +0 -4
  1992. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +0 -1
  1993. package/dist/types/src/features/GptWebCitation/types.d.ts +0 -405
  1994. package/dist/types/src/features/GptWebCitation/types.d.ts.map +0 -1
  1995. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +0 -10
  1996. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +0 -1
  1997. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +0 -10
  1998. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +0 -1
  1999. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts +0 -6
  2000. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +0 -1
  2001. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +0 -28
  2002. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +0 -1
  2003. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts +0 -7
  2004. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +0 -1
  2005. package/dist/types/src/features/IngestionStatus/useIngestionStatus.d.ts +0 -40
  2006. package/dist/types/src/features/IngestionStatus/useIngestionStatus.d.ts.map +0 -1
  2007. package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts +0 -5
  2008. package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts.map +0 -1
  2009. package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts +0 -10
  2010. package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts.map +0 -1
  2011. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts +0 -2
  2012. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts.map +0 -1
  2013. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +0 -23
  2014. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +0 -1
  2015. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts +0 -6
  2016. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +0 -1
  2017. package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts +0 -13
  2018. package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts.map +0 -1
  2019. package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts +0 -13
  2020. package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts.map +0 -1
  2021. package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts +0 -5
  2022. package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts.map +0 -1
  2023. package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts +0 -12
  2024. package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts.map +0 -1
  2025. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +0 -356
  2026. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +0 -1
  2027. package/dist/types/src/features/ManageRemainders/AssigneeCalendarView.d.ts +0 -19
  2028. package/dist/types/src/features/ManageRemainders/AssigneeCalendarView.d.ts.map +0 -1
  2029. package/dist/types/src/features/ManageRemainders/ManageRemainderUsage.d.ts +0 -2
  2030. package/dist/types/src/features/ManageRemainders/ManageRemainderUsage.d.ts.map +0 -1
  2031. package/dist/types/src/features/ManageRemainders/ManageReminders.d.ts +0 -49
  2032. package/dist/types/src/features/ManageRemainders/ManageReminders.d.ts.map +0 -1
  2033. package/dist/types/src/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts +0 -17
  2034. package/dist/types/src/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts.map +0 -1
  2035. package/dist/types/src/features/ManageRemainders/types/type.d.ts +0 -79
  2036. package/dist/types/src/features/ManageRemainders/types/type.d.ts.map +0 -1
  2037. package/dist/types/src/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts +0 -37
  2038. package/dist/types/src/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts.map +0 -1
  2039. package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts +0 -27
  2040. package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts.map +0 -1
  2041. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitation.d.ts +0 -19
  2042. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitation.d.ts.map +0 -1
  2043. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitationTest/PdfEditorCitationTest.d.ts +0 -2
  2044. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitationTest/PdfEditorCitationTest.d.ts.map +0 -1
  2045. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts +0 -16
  2046. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts.map +0 -1
  2047. package/dist/types/src/features/PdfViewer/PdfStyle.d.ts +0 -33
  2048. package/dist/types/src/features/PdfViewer/PdfStyle.d.ts.map +0 -1
  2049. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts +0 -34
  2050. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +0 -1
  2051. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +0 -94
  2052. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +0 -1
  2053. package/dist/types/src/features/PdfViewer/coordinateTransformer.d.ts +0 -41
  2054. package/dist/types/src/features/PdfViewer/coordinateTransformer.d.ts.map +0 -1
  2055. package/dist/types/src/features/PdfViewer/rotationManager.d.ts +0 -23
  2056. package/dist/types/src/features/PdfViewer/rotationManager.d.ts.map +0 -1
  2057. package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts +0 -27
  2058. package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts.map +0 -1
  2059. package/dist/types/src/features/ProjectAccordion/ProjectAccordion.d.ts +0 -24
  2060. package/dist/types/src/features/ProjectAccordion/ProjectAccordion.d.ts.map +0 -1
  2061. package/dist/types/src/features/ProjectAccordion/_components/Markdown.d.ts +0 -5
  2062. package/dist/types/src/features/ProjectAccordion/_components/Markdown.d.ts.map +0 -1
  2063. package/dist/types/src/features/ProjectAccordion/index.d.ts +0 -2
  2064. package/dist/types/src/features/ProjectAccordion/index.d.ts.map +0 -1
  2065. package/dist/types/src/features/PromptCitation/CitationDependencyGraph.d.ts +0 -56
  2066. package/dist/types/src/features/PromptCitation/CitationDependencyGraph.d.ts.map +0 -1
  2067. package/dist/types/src/features/PromptCitation/PromptCitation.d.ts +0 -326
  2068. package/dist/types/src/features/PromptCitation/PromptCitation.d.ts.map +0 -1
  2069. package/dist/types/src/features/PromptCitation/PromptCitationTest.d.ts +0 -4
  2070. package/dist/types/src/features/PromptCitation/PromptCitationTest.d.ts.map +0 -1
  2071. package/dist/types/src/features/PromptCitation/_components/CodeEditor.d.ts +0 -30
  2072. package/dist/types/src/features/PromptCitation/_components/CodeEditor.d.ts.map +0 -1
  2073. package/dist/types/src/features/PromptCitation/_components/HighlightedCodeDetails.d.ts +0 -16
  2074. package/dist/types/src/features/PromptCitation/_components/HighlightedCodeDetails.d.ts.map +0 -1
  2075. package/dist/types/src/features/PromptCitation/_components/Markdownrenderer.d.ts +0 -23
  2076. package/dist/types/src/features/PromptCitation/_components/Markdownrenderer.d.ts.map +0 -1
  2077. package/dist/types/src/features/PromptCitation/_components/ThemeToggle.d.ts +0 -12
  2078. package/dist/types/src/features/PromptCitation/_components/ThemeToggle.d.ts.map +0 -1
  2079. package/dist/types/src/features/PromptCitation/_components/TooltipComponent.d.ts +0 -8
  2080. package/dist/types/src/features/PromptCitation/_components/TooltipComponent.d.ts.map +0 -1
  2081. package/dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts +0 -24
  2082. package/dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts.map +0 -1
  2083. package/dist/types/src/features/PromptemonBlockViewer/index.d.ts +0 -3
  2084. package/dist/types/src/features/PromptemonBlockViewer/index.d.ts.map +0 -1
  2085. package/dist/types/src/features/PromptemonViewer/PromptemonViewer.d.ts +0 -43
  2086. package/dist/types/src/features/PromptemonViewer/PromptemonViewer.d.ts.map +0 -1
  2087. package/dist/types/src/features/PromptemonViewer/index.d.ts +0 -3
  2088. package/dist/types/src/features/PromptemonViewer/index.d.ts.map +0 -1
  2089. package/dist/types/src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts +0 -125
  2090. package/dist/types/src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts.map +0 -1
  2091. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts +0 -6
  2092. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts.map +0 -1
  2093. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts +0 -26
  2094. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts.map +0 -1
  2095. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts +0 -26
  2096. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts.map +0 -1
  2097. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts +0 -123
  2098. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts.map +0 -1
  2099. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts +0 -92
  2100. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts.map +0 -1
  2101. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts +0 -7
  2102. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts.map +0 -1
  2103. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts +0 -12
  2104. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts.map +0 -1
  2105. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts +0 -12
  2106. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts.map +0 -1
  2107. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts +0 -12
  2108. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts.map +0 -1
  2109. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts +0 -7
  2110. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts.map +0 -1
  2111. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts +0 -7
  2112. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts.map +0 -1
  2113. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts +0 -7
  2114. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts.map +0 -1
  2115. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts +0 -4
  2116. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts.map +0 -1
  2117. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts +0 -7
  2118. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts.map +0 -1
  2119. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts +0 -4
  2120. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts.map +0 -1
  2121. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts +0 -7
  2122. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts.map +0 -1
  2123. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts +0 -6
  2124. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts.map +0 -1
  2125. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts +0 -3
  2126. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts.map +0 -1
  2127. package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +0 -207
  2128. package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +0 -1
  2129. package/dist/types/src/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts +0 -32
  2130. package/dist/types/src/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts.map +0 -1
  2131. package/dist/types/src/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts +0 -33
  2132. package/dist/types/src/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts.map +0 -1
  2133. package/dist/types/src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts +0 -45
  2134. package/dist/types/src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts.map +0 -1
  2135. package/dist/types/src/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts +0 -48
  2136. package/dist/types/src/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts.map +0 -1
  2137. package/dist/types/src/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts +0 -17
  2138. package/dist/types/src/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts.map +0 -1
  2139. package/dist/types/src/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts +0 -4
  2140. package/dist/types/src/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts.map +0 -1
  2141. package/dist/types/src/features/ReviewPanel/ReviewPanel.d.ts +0 -52
  2142. package/dist/types/src/features/ReviewPanel/ReviewPanel.d.ts.map +0 -1
  2143. package/dist/types/src/features/ReviewPanel/ReviewPanelTest/ReviewPanelTest.d.ts +0 -4
  2144. package/dist/types/src/features/ReviewPanel/ReviewPanelTest/ReviewPanelTest.d.ts.map +0 -1
  2145. package/dist/types/src/features/RulebookCitations/RuleBookCitation.types.d.ts +0 -40
  2146. package/dist/types/src/features/RulebookCitations/RuleBookCitation.types.d.ts.map +0 -1
  2147. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +0 -18
  2148. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +0 -1
  2149. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +0 -26
  2150. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +0 -1
  2151. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts +0 -1
  2152. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +0 -1
  2153. package/dist/types/src/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts +0 -52
  2154. package/dist/types/src/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts.map +0 -1
  2155. package/dist/types/src/features/SPBAnalysisPanel/DependencyGraph.d.ts +0 -71
  2156. package/dist/types/src/features/SPBAnalysisPanel/DependencyGraph.d.ts.map +0 -1
  2157. package/dist/types/src/features/SPBAnalysisPanel/Internaleditor.d.ts +0 -11
  2158. package/dist/types/src/features/SPBAnalysisPanel/Internaleditor.d.ts.map +0 -1
  2159. package/dist/types/src/features/SPBAnalysisPanel/Markdownrenderer.d.ts +0 -16
  2160. package/dist/types/src/features/SPBAnalysisPanel/Markdownrenderer.d.ts.map +0 -1
  2161. package/dist/types/src/features/SPBAnalysisPanel/Spbanalysispanel.d.ts +0 -124
  2162. package/dist/types/src/features/SPBAnalysisPanel/Spbanalysispanel.d.ts.map +0 -1
  2163. package/dist/types/src/features/SPBAnalysisPanel/index.d.ts +0 -10
  2164. package/dist/types/src/features/SPBAnalysisPanel/index.d.ts.map +0 -1
  2165. package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts +0 -57
  2166. package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts.map +0 -1
  2167. package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts +0 -85
  2168. package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +0 -1
  2169. package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts +0 -26
  2170. package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts.map +0 -1
  2171. package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts +0 -3
  2172. package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +0 -1
  2173. package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts +0 -3
  2174. package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts.map +0 -1
  2175. package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts +0 -33
  2176. package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts.map +0 -1
  2177. package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts +0 -7
  2178. package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +0 -1
  2179. package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts +0 -87
  2180. package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts.map +0 -1
  2181. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +0 -57
  2182. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +0 -1
  2183. package/dist/types/src/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts +0 -28
  2184. package/dist/types/src/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts.map +0 -1
  2185. package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts +0 -37
  2186. package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts.map +0 -1
  2187. package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts +0 -9
  2188. package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +0 -1
  2189. package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +0 -7
  2190. package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +0 -1
  2191. package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts +0 -17
  2192. package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts.map +0 -1
  2193. package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts +0 -33
  2194. package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts.map +0 -1
  2195. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +0 -124
  2196. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +0 -1
  2197. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts +0 -13
  2198. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts.map +0 -1
  2199. package/dist/types/src/features/SegmentReviewComponents/helper.d.ts +0 -51
  2200. package/dist/types/src/features/SegmentReviewComponents/helper.d.ts.map +0 -1
  2201. package/dist/types/src/features/SegmentReviewComponents/index.d.ts +0 -23
  2202. package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +0 -1
  2203. package/dist/types/src/features/SegmentReviewComponents/reviewScore.d.ts +0 -4
  2204. package/dist/types/src/features/SegmentReviewComponents/reviewScore.d.ts.map +0 -1
  2205. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +0 -243
  2206. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +0 -1
  2207. package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts +0 -5
  2208. package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +0 -1
  2209. package/dist/types/src/features/SplitterCitations/SplitterCitationsTest.d.ts +0 -4
  2210. package/dist/types/src/features/SplitterCitations/SplitterCitationsTest.d.ts.map +0 -1
  2211. package/dist/types/src/features/SplitterCitations/icons/icons.d.ts +0 -17
  2212. package/dist/types/src/features/SplitterCitations/icons/icons.d.ts.map +0 -1
  2213. package/dist/types/src/features/SplitterCitations/types.d.ts +0 -78
  2214. package/dist/types/src/features/SplitterCitations/types.d.ts.map +0 -1
  2215. package/dist/types/src/features/TableCitation/TableCitationContent.d.ts +0 -14
  2216. package/dist/types/src/features/TableCitation/TableCitationContent.d.ts.map +0 -1
  2217. package/dist/types/src/features/TextualGuidelines/TextualGudelinesTest.d.ts +0 -5
  2218. package/dist/types/src/features/TextualGuidelines/TextualGudelinesTest.d.ts.map +0 -1
  2219. package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts +0 -25
  2220. package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts.map +0 -1
  2221. package/dist/types/src/features/TextualGuidelines/TextualGuidelines.types.d.ts +0 -81
  2222. package/dist/types/src/features/TextualGuidelines/TextualGuidelines.types.d.ts.map +0 -1
  2223. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts +0 -3
  2224. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts.map +0 -1
  2225. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts +0 -3
  2226. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts.map +0 -1
  2227. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts +0 -3
  2228. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts.map +0 -1
  2229. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts +0 -3
  2230. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts.map +0 -1
  2231. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +0 -14
  2232. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +0 -1
  2233. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts +0 -3
  2234. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts.map +0 -1
  2235. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +0 -13
  2236. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +0 -1
  2237. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts +0 -3
  2238. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts.map +0 -1
  2239. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts +0 -21
  2240. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts.map +0 -1
  2241. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts +0 -33
  2242. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts.map +0 -1
  2243. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts +0 -19
  2244. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts.map +0 -1
  2245. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts +0 -8
  2246. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts.map +0 -1
  2247. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts +0 -17
  2248. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts.map +0 -1
  2249. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts +0 -26
  2250. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts.map +0 -1
  2251. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts +0 -11
  2252. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts.map +0 -1
  2253. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts +0 -3
  2254. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts.map +0 -1
  2255. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts +0 -3
  2256. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts.map +0 -1
  2257. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts +0 -3
  2258. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts.map +0 -1
  2259. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts +0 -1108
  2260. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts.map +0 -1
  2261. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts +0 -57
  2262. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts.map +0 -1
  2263. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts +0 -643
  2264. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts.map +0 -1
  2265. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts +0 -24
  2266. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts.map +0 -1
  2267. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts +0 -283
  2268. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts.map +0 -1
  2269. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts +0 -58
  2270. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts.map +0 -1
  2271. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts +0 -20
  2272. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts.map +0 -1
  2273. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts +0 -3
  2274. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts.map +0 -1
  2275. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts +0 -3
  2276. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts.map +0 -1
  2277. package/dist/types/src/features/UploadData/NotFound.d.ts +0 -4
  2278. package/dist/types/src/features/UploadData/NotFound.d.ts.map +0 -1
  2279. package/dist/types/src/features/UploadData/main.d.ts +0 -10
  2280. package/dist/types/src/features/UploadData/main.d.ts.map +0 -1
  2281. package/dist/types/src/hooks/useDebounce.d.ts +0 -2
  2282. package/dist/types/src/hooks/useDebounce.d.ts.map +0 -1
  2283. package/dist/types/src/hooks/useOnDemandCitationFetch.d.ts +0 -11
  2284. package/dist/types/src/hooks/useOnDemandCitationFetch.d.ts.map +0 -1
  2285. package/dist/types/src/hooks/useOnDemandCitationFetchTest.d.ts +0 -4
  2286. package/dist/types/src/hooks/useOnDemandCitationFetchTest.d.ts.map +0 -1
  2287. package/dist/types/src/hooks/useTableHeadCellsCount.d.ts +0 -6
  2288. package/dist/types/src/hooks/useTableHeadCellsCount.d.ts.map +0 -1
  2289. package/dist/types/src/hooks/useURLQuery.d.ts +0 -10
  2290. package/dist/types/src/hooks/useURLQuery.d.ts.map +0 -1
  2291. package/dist/types/src/index.d.ts +0 -63
  2292. package/dist/types/src/index.d.ts.map +0 -1
  2293. package/dist/types/src/lib/styles/viewerLayout.d.ts +0 -6
  2294. package/dist/types/src/lib/styles/viewerLayout.d.ts.map +0 -1
  2295. package/dist/types/src/methodsToExpose.d.ts +0 -13
  2296. package/dist/types/src/methodsToExpose.d.ts.map +0 -1
  2297. package/dist/types/src/routes/ErrorBoundary.d.ts +0 -20
  2298. package/dist/types/src/routes/ErrorBoundary.d.ts.map +0 -1
  2299. package/dist/types/src/routes/Routes.d.ts +0 -2
  2300. package/dist/types/src/routes/Routes.d.ts.map +0 -1
  2301. package/dist/types/src/service/API.d.ts +0 -6
  2302. package/dist/types/src/service/API.d.ts.map +0 -1
  2303. package/dist/types/src/service/DataService.d.ts +0 -73
  2304. package/dist/types/src/service/DataService.d.ts.map +0 -1
  2305. package/dist/types/src/service/GoogleFilePickerService.d.ts +0 -61
  2306. package/dist/types/src/service/GoogleFilePickerService.d.ts.map +0 -1
  2307. package/dist/types/src/service/JavascriptFileService.d.ts +0 -4
  2308. package/dist/types/src/service/JavascriptFileService.d.ts.map +0 -1
  2309. package/dist/types/src/service/ModelService.d.ts +0 -68
  2310. package/dist/types/src/service/ModelService.d.ts.map +0 -1
  2311. package/dist/types/src/service/ProjectService.d.ts +0 -16
  2312. package/dist/types/src/service/ProjectService.d.ts.map +0 -1
  2313. package/dist/types/src/service/SavedDataSetService.d.ts +0 -22
  2314. package/dist/types/src/service/SavedDataSetService.d.ts.map +0 -1
  2315. package/dist/types/src/service/apicache.service.d.ts +0 -43
  2316. package/dist/types/src/service/apicache.service.d.ts.map +0 -1
  2317. package/dist/types/src/service/constants.d.ts +0 -3
  2318. package/dist/types/src/service/constants.d.ts.map +0 -1
  2319. package/dist/types/src/service/envHelperService.d.ts +0 -5
  2320. package/dist/types/src/service/envHelperService.d.ts.map +0 -1
  2321. package/dist/types/src/service/onDemandApi.d.ts +0 -27
  2322. package/dist/types/src/service/onDemandApi.d.ts.map +0 -1
  2323. package/dist/types/src/service/variableHelperService.d.ts +0 -6
  2324. package/dist/types/src/service/variableHelperService.d.ts.map +0 -1
  2325. package/dist/types/src/theme.d.ts +0 -4
  2326. package/dist/types/src/theme.d.ts.map +0 -1
  2327. package/dist/types/src/types/CodeCitationTypes.d.ts +0 -46
  2328. package/dist/types/src/types/CodeCitationTypes.d.ts.map +0 -1
  2329. package/dist/types/src/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts +0 -23
  2330. package/dist/types/src/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts.map +0 -1
  2331. package/dist/types/src/types/epubItems.d.ts +0 -23
  2332. package/dist/types/src/types/epubItems.d.ts.map +0 -1
  2333. package/dist/types/src/types/onDemandApi.types.d.ts +0 -63
  2334. package/dist/types/src/types/onDemandApi.types.d.ts.map +0 -1
  2335. package/dist/types/src/types/useOnDemandCitationFetch.types.d.ts +0 -70
  2336. package/dist/types/src/types/useOnDemandCitationFetch.types.d.ts.map +0 -1
  2337. package/dist/types/src/userProvidedConfig.d.ts +0 -8
  2338. package/dist/types/src/userProvidedConfig.d.ts.map +0 -1
  2339. package/dist/types/src/utils/CustomSkeleton.d.ts +0 -2
  2340. package/dist/types/src/utils/CustomSkeleton.d.ts.map +0 -1
  2341. package/dist/types/src/utils/SkeletonLoader.d.ts +0 -3
  2342. package/dist/types/src/utils/SkeletonLoader.d.ts.map +0 -1
  2343. package/dist/types/src/utils/api.d.ts +0 -2
  2344. package/dist/types/src/utils/api.d.ts.map +0 -1
  2345. package/dist/types/src/utils/codeCitations.utils.d.ts +0 -9
  2346. package/dist/types/src/utils/codeCitations.utils.d.ts.map +0 -1
  2347. package/dist/types/src/utils/colors.d.ts +0 -5
  2348. package/dist/types/src/utils/colors.d.ts.map +0 -1
  2349. package/dist/types/src/utils/date.d.ts +0 -1
  2350. package/dist/types/src/utils/date.d.ts.map +0 -1
  2351. package/dist/types/src/utils/helperFunctions.d.ts +0 -6
  2352. package/dist/types/src/utils/helperFunctions.d.ts.map +0 -1
  2353. package/dist/types/src/utils/regexHelperService.d.ts +0 -9
  2354. package/dist/types/src/utils/regexHelperService.d.ts.map +0 -1
  2355. package/dist/types/src/utils/sanitizeHtml.d.ts +0 -5
  2356. package/dist/types/src/utils/sanitizeHtml.d.ts.map +0 -1
  2357. package/dist/types/src/utils/themeManager.d.ts +0 -13
  2358. package/dist/types/src/utils/themeManager.d.ts.map +0 -1
  2359. package/dist/types/src/utils/urlQueryParamService.d.ts +0 -2
  2360. package/dist/types/src/utils/urlQueryParamService.d.ts.map +0 -1
  2361. package/dist/types/src/utils/variableHelperService.d.ts +0 -7
  2362. package/dist/types/src/utils/variableHelperService.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"PdfToolbar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"PdfToolbar.js","sources":["../../../../src/features/PdfViewer/PdfToolbar.tsx"],"sourcesContent":["import React from \"react\";\nimport { pdfStyles } from \"./PdfStyle\";\nimport type { CustomIconsType, CustomStylesType, CustomClassesType, PdfSegment } from \"./PdfViewer\";\nimport { DefaultCloseIcon, DefaultDownloadIcon, DefaultFullScreenIcon, DefaultPdfIcon } from \"../../assests/svg/PdfViewerIcons\";\nimport Tooltip from '@mui/material/Tooltip';\nimport { Info, Plus, Minus, Expand } from \"lucide-react\";\nimport RotateRightIcon from '@mui/icons-material/RotateRight';\n\ntype Props = {\n highlightIndex: number;\n totalHighlights: number;\n controls: any;\n currentPosition: any;\n pdfName?: string;\n onClose?: () => void;\n pdfUrl?: string;\n viewerRef?: React.RefObject<HTMLDivElement>;\n customStyles?: CustomStylesType;\n customClasses?: CustomClassesType;\n customIcons?: CustomIconsType;\n headerAction?: {\n icon?: React.ReactNode;\n onClick?: () => void;\n tooltip?: string;\n };\n isZoomEnabled: boolean\n showHighlightsAction: boolean,\n showFullScreenAction?: boolean\n currentSegment?: PdfSegment;\n segmentTooltipText?: string;\n currentPage: number;\n totalPages: number;\n onPageNavigate: (pageNumber: number) => void;\n onRotatePage?: () => void;\n currentPageRotation?: number;\n showRotateButton?: boolean;\n};\n\nconst PdfToolbar = ({\n highlightIndex,\n totalHighlights,\n controls,\n currentPosition,\n pdfName,\n onClose,\n pdfUrl,\n viewerRef,\n customStyles,\n customClasses,\n customIcons,\n headerAction,\n isZoomEnabled = true,\n showHighlightsAction = true,\n showFullScreenAction = true,\n currentSegment,\n segmentTooltipText = \"Details of current segment\",\n currentPage,\n totalPages,\n onPageNavigate,\n onRotatePage,\n currentPageRotation = 0,\n showRotateButton = true,\n}: Props) => {\n const {\n CurrentScale,\n ZoomPopover,\n zoomTo,\n goToPrevious,\n goToNext,\n } = controls;\n const [pageInputValue, setPageInputValue] = React.useState(String(currentPage));\n\n React.useEffect(() => {\n setPageInputValue(String(currentPage));\n }, [currentPage]);\n\n const handleFullScreen = () => {\n const elem = viewerRef?.current;\n if (!elem) return;\n\n if (!document.fullscreenElement) {\n elem.requestFullscreen().catch((err) => {\n console.error(`Error attempting to enable fullscreen: ${err.message}`);\n });\n } else {\n document.exitFullscreen();\n }\n };\n const commitPageInput = () => {\n const pageNumber = Number(pageInputValue);\n\n if (!Number.isInteger(pageNumber) || pageNumber < 1) {\n setPageInputValue(String(currentPage));\n return;\n }\n\n const nextPage = totalPages ? Math.min(pageNumber, totalPages) : pageNumber;\n onPageNavigate(nextPage);\n setPageInputValue(String(nextPage));\n };\n\n const defaultPdfIconWrapperStyle: React.CSSProperties = {\n borderRadius: \"21px\",\n border: \"6px solid #E8F3FF\",\n background: \"#D5E8FF\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n width: \"32px\",\n height: \"32px\",\n boxSizing: \"content-box\",\n };\n\n const defaultActionButtonStyle: React.CSSProperties = {\n padding: \"4px\",\n borderRadius: \"6px\",\n background: \"transparent\",\n border: \"none\",\n cursor: \"pointer\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n transition: \"all 0.2s ease\",\n flexShrink: 0,\n };\n\n const dividerStyle: React.CSSProperties = {\n width: \"1px\",\n height: \"20px\",\n background: \"#D1D5DB\",\n margin: \"0 4px\",\n flexShrink: 0,\n };\n const actionButtonsWrapperStyle: React.CSSProperties = {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"8px\",\n flexShrink: 0,\n whiteSpace: \"nowrap\",\n };\n const formatSegmentPage = (page: number) => String(page).padStart(2, \"0\");\n\n return (\n <div\n style={{\n marginBottom: \"12px\",\n backgroundColor: \"#F1F5F9\",\n borderBottom: \"1px solid #F3F4F6\",\n borderTopLeftRadius: \"12px\",\n borderTopRightRadius: \"12px\",\n ...pdfStyles.header,\n ...customStyles?.header,\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"stretch\",\n gap: \"12px\",\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n flexWrap: \"wrap\",\n columnGap: \"16px\",\n rowGap: \"12px\",\n minWidth: 0,\n }}\n >\n {/* --- LEFT SIDE: Document Name & Custom Icon --- */}\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: \"12px\",\n flex: \"1 1 180px\",\n minWidth: 0,\n }}\n >\n <div\n style={{\n ...defaultPdfIconWrapperStyle,\n ...customStyles?.pdfIconWrapper,\n flexShrink: 0,\n }}\n >\n {customIcons?.pdfIcon || <DefaultPdfIcon />}\n </div>\n\n <Tooltip\n title={pdfName || \"\"}\n arrow\n placement=\"top\"\n >\n <div\n style={{\n flex: 1,\n minWidth: 0,\n overflow: \"hidden\",\n }}\n >\n <span\n style={{\n display: \"block\",\n width: \"100%\",\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n fontWeight: 500,\n cursor: \"default\",\n ...customStyles?.pdfName,\n }}\n className={customClasses?.pdfName}\n >\n {pdfName}\n </span>\n </div>\n </Tooltip>\n </div>\n\n {/* --- RIGHT SIDE: Toolbar actions --- */}\n <div \n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: showHighlightsAction ? \"16px\" : \"2px\",\n color: \"#4B5563\",\n flex: \"0 1 auto\",\n marginLeft: \"auto\",\n whiteSpace: \"nowrap\",\n minWidth: 0,\n maxWidth: \"100%\",\n overflowX: \"auto\",\n overflowY: \"hidden\",\n scrollbarWidth: \"thin\",\n }}\n >\n {totalPages > 0 && (\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: \"4px\",\n color: \"#475467\",\n flexShrink: 0,\n whiteSpace: \"nowrap\",\n }}\n >\n <input\n aria-label=\"Current page\"\n inputMode=\"numeric\"\n pattern=\"[0-9]*\"\n value={pageInputValue}\n onChange={(e) => {\n const nextValue = e.target.value.replace(/\\D/g, \"\");\n setPageInputValue(nextValue);\n }}\n onBlur={commitPageInput}\n onKeyDown={(e) => {\n if (e.key === \"Enter\") {\n e.currentTarget.blur();\n }\n if (e.key === \"Escape\") {\n setPageInputValue(String(currentPage));\n e.currentTarget.blur();\n }\n }}\n style={{\n width: \"40px\",\n height: \"28px\",\n border: \"1px solid #E5E7EB\",\n borderRadius: \"4px\",\n background: \"#FFFFFF\",\n color: \"#111827\",\n fontSize: \"14px\",\n fontWeight: 500,\n textAlign: \"center\",\n outline: \"none\",\n boxSizing: \"border-box\",\n }}\n />\n <span style={{ fontSize: \"14px\", fontWeight: 500, color: \"#111827\" }}>/</span>\n <span style={{ fontSize: \"14px\", fontWeight: 500, color: \"#111827\" }}>\n {String(totalPages)}\n </span>\n </div>\n )}\n\n {/* Zoom Controls */}\n {isZoomEnabled && (\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: \"4px\",\n }}\n >\n <CurrentScale>\n {({ scale }: { scale: number }) => (\n <button\n onClick={() => zoomTo(Math.max(0.1, scale - 0.1))}\n style={{\n background: \"none\",\n border: \"none\",\n cursor: \"pointer\",\n padding: \"2px 4px\",\n color: \"#475467\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n lineHeight: 1,\n height: \"20px\",\n width: \"20px\",\n transition: \"color 0.2s ease\",\n }}\n onMouseEnter={(e) => {\n if (e.currentTarget) e.currentTarget.style.color = \"#1976d2\";\n }}\n onMouseLeave={(e) => {\n if (e.currentTarget) e.currentTarget.style.color = \"#475467\";\n }}\n title=\"Zoom Out\"\n aria-label=\"Zoom out\"\n >\n <Minus size={16} strokeWidth={2} />\n </button>\n )}\n </CurrentScale>\n <div\n style={{\n fontSize: \"14px\",\n fontWeight: 500,\n width: \"56px\",\n textAlign: \"center\",\n }}\n >\n <ZoomPopover />\n </div>\n <CurrentScale>\n {({ scale }: { scale: number }) => (\n <button\n onClick={() => zoomTo(scale + 0.1)}\n style={{\n background: \"none\",\n border: \"none\",\n cursor: \"pointer\",\n padding: \"2px 4px\",\n color: \"#475467\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n lineHeight: 1,\n height: \"20px\",\n width: \"20px\",\n transition: \"color 0.2s ease\",\n }}\n onMouseEnter={(e) => {\n if (e.currentTarget) e.currentTarget.style.color = \"#1976d2\";\n }}\n onMouseLeave={(e) => {\n if (e.currentTarget) e.currentTarget.style.color = \"#475467\";\n }}\n title=\"Zoom In\"\n aria-label=\"Zoom in\"\n >\n <Plus size={16} strokeWidth={2} />\n </button>\n )}\n </CurrentScale>\n </div>\n )}\n\n {/* Rotate Button */}\n {showRotateButton && onRotatePage && totalPages > 0 && (\n <Tooltip title={`Rotate page (${currentPageRotation}°)`}>\n <button\n onClick={() => {\n if (onRotatePage && typeof onRotatePage === 'function') {\n onRotatePage();\n }\n }}\n style={{\n background: 'none',\n border: 'none',\n cursor: 'pointer',\n padding: '2px 4px',\n color: currentPageRotation !== 0 ? '#1976d2' : '#475467',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n lineHeight: 1,\n height: '20px',\n width: '20px',\n transition: 'color 0.2s ease',\n }}\n onMouseEnter={(e) => {\n if (e.currentTarget) e.currentTarget.style.color = '#1976d2';\n }}\n onMouseLeave={(e) => {\n if (e.currentTarget) e.currentTarget.style.color = currentPageRotation !== 0 ? '#1976d2' : '#475467';\n }}\n aria-label=\"Rotate current page\"\n >\n <RotateRightIcon sx={{ fontSize: '18px' }} />\n </button>\n </Tooltip>\n )}\n\n {!!totalHighlights && showHighlightsAction && (\n <div style={{ display: \"flex\", alignItems: \"center\", gap: \"4px\" }}>\n <span style={{ fontSize: \"14px\", color: \"#475467\", fontWeight: 500, lineHeight: 1 }}>\n {currentPosition} of {totalHighlights}\n </span>\n\n {/* Up / Previous */}\n <button\n style={{\n background: \"none\",\n border: \"none\",\n cursor: currentPosition <= 1 ? \"not-allowed\" : \"pointer\",\n padding: \"2px 4px\",\n color: currentPosition <= 1 ? \"#D0D5DD\" : \"#475467\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n lineHeight: 1,\n height: \"20px\",\n width: \"20px\",\n }}\n onClick={goToPrevious}\n disabled={currentPosition <= 1}\n >\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\">\n <path d=\"M2 8L6 4L10 8\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n </button>\n\n {/* Down / Next */}\n <button\n style={{\n background: \"none\",\n border: \"none\",\n cursor: currentPosition === totalHighlights ? \"not-allowed\" : \"pointer\",\n padding: \"2px 4px\",\n color: currentPosition === totalHighlights ? \"#D0D5DD\" : \"#475467\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n lineHeight: 1,\n height: \"20px\",\n width: \"20px\",\n }}\n onClick={goToNext}\n disabled={currentPosition === totalHighlights}\n >\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\">\n <path d=\"M2 4L6 8L10 4\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n </button>\n </div>\n )}\n\n {/* Vertical Divider */}\n <div style={dividerStyle} />\n\n {/* Action Buttons */}\n <div style={actionButtonsWrapperStyle}>\n\n {/* Full Screen OR headerAction */}\n {showFullScreenAction !== false && (\n headerAction?.icon && headerAction?.onClick ? (\n <Tooltip title={headerAction?.tooltip || \"\"} arrow placement=\"top\">\n <div\n onClick={headerAction.onClick}\n style={{ display: \"flex\", alignItems: \"center\", cursor: \"pointer\", ...defaultActionButtonStyle }}\n >\n {headerAction.icon}\n </div>\n </Tooltip>\n ) : (\n <button onClick={handleFullScreen} style={defaultActionButtonStyle} title=\"Full Screen\">\n {customIcons?.fullScreenIcon || <Expand size={20} color=\"#475467\" strokeWidth={2} />}\n </button>\n )\n )}\n\n {/* Download Button */}\n {pdfUrl && (\n <a href={pdfUrl} target=\"_blank\" rel=\"noopener noreferrer\" style={defaultActionButtonStyle} title=\"Open in new tab\">\n {customIcons?.downloadIcon || <DefaultDownloadIcon />}\n </a>\n )}\n\n {/* Close Modal Button - always stays */}\n {onClose && (\n <button onClick={onClose} style={defaultActionButtonStyle} title=\"Close\">\n {customIcons?.closeIcon || <DefaultCloseIcon />}\n </button>\n )}\n </div>\n </div>\n </div>\n {/* Segment Details */}\n {currentSegment && (\n <div\n style={{\n background: \"#EEF2FF\",\n border: \"1px solid #A5B4FC\",\n borderRadius: \"8px\",\n color: \"#4F46E5\",\n display: \"flex\",\n alignItems: \"center\",\n gap: \"12px\",\n minWidth: 0,\n padding: \"10px 16px\",\n fontSize: \"12px\",\n fontWeight: 500,\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n }}\n >\n <Tooltip title={segmentTooltipText} arrow placement=\"top\">\n <Info size={16} color=\"#4F46E5\" strokeWidth={2} style={{ flexShrink: 0 }} />\n </Tooltip>\n <span style={{ overflow: \"hidden\", textOverflow: \"ellipsis\" }}>\n <Tooltip title={currentSegment.title} arrow placement=\"top\">\n <span>Viewing {currentSegment.title} &bull; Pages {formatSegmentPage(currentSegment.start_page)}-{formatSegmentPage(currentSegment.end_page)}</span>\n </Tooltip>\n </span>\n </div>\n )}\n </div>\n );\n};\n\nexport default PdfToolbar;\n"],"names":["highlightIndex","totalHighlights","controls","currentPosition","pdfName","onClose","pdfUrl","viewerRef","customStyles","customClasses","customIcons","headerAction","isZoomEnabled","showHighlightsAction","showFullScreenAction","currentSegment","segmentTooltipText","currentPage","totalPages","onPageNavigate","onRotatePage","currentPageRotation","showRotateButton","CurrentScale","ZoomPopover","zoomTo","goToPrevious","goToNext","pageInputValue","setPageInputValue","React","useState","String","useEffect","defaultActionButtonStyle","padding","borderRadius","background","border","cursor","display","alignItems","justifyContent","transition","flexShrink","formatSegmentPage","page","padStart","jsxs","style","marginBottom","backgroundColor","borderBottom","borderTopLeftRadius","borderTopRightRadius","pdfStyles","header","flexDirection","gap","children","flexWrap","columnGap","rowGap","minWidth","flex","jsx","width","height","boxSizing","pdfIconWrapper","pdfIcon","DefaultPdfIcon","Tooltip","title","arrow","placement","overflow","whiteSpace","textOverflow","fontWeight","className","color","marginLeft","maxWidth","overflowX","overflowY","scrollbarWidth","inputMode","pattern","value","onChange","e","nextValue","target","replace","onBlur","pageNumber","Number","isInteger","nextPage","Math","min","onKeyDown","key","currentTarget","blur","fontSize","textAlign","outline","scale","onClick","max","lineHeight","onMouseEnter","onMouseLeave","Minus","size","strokeWidth","Plus","RotateRightIcon","sx","disabled","viewBox","fill","d","stroke","strokeLinecap","strokeLinejoin","margin","icon","tooltip","elem","current","document","fullscreenElement","exitFullscreen","requestFullscreen","catch","err","console","error","message","fullScreenIcon","Expand","href","rel","downloadIcon","DefaultDownloadIcon","closeIcon","DefaultCloseIcon","Info","start_page","end_page"],"mappings":"iaAsCmB,EACjBA,iBACAC,kBACAC,WACAC,kBACAC,UACAC,UACAC,SACAC,YACAC,eACAC,gBACAC,cACAC,eACAC,iBAAgB,EAChBC,wBAAuB,EACvBC,wBAAuB,EACvBC,iBACAC,qBAAqB,6BACrBC,cACAC,aACAC,iBACAC,eACAC,sBAAsB,EACtBC,oBAAmB,MAEb,MAAAC,aACJA,EAAAC,YACAA,EAAAC,OACAA,EAAAC,aACAA,EAAAC,SACAA,GACEzB,GACG0B,EAAgBC,GAAqBC,EAAAA,QAAMC,SAASC,OAAOf,IAElEa,EAAA,QAAMG,UAAU,KACIJ,EAAAG,OAAOf,KACxB,CAACA,IAEJ,MAqCMiB,EAAgD,CACpDC,QAAS,MACTC,aAAc,MACdC,WAAY,cACZC,OAAQ,OACRC,OAAQ,UACRC,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,WAAY,gBACZC,WAAY,GAiBRC,EAAqBC,GAAiBd,OAAOc,G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UoC,YAAa,OAMpF/G,GACE2D,EAAAA,IAAA,IAAA,CAAE+E,KAAM1I,EAAQuF,OAAO,SAASoD,IAAI,sBAAsBhG,MAAOf,EAA0BuC,MAAM,kBAC/Fd,YAAauF,cAAgBjF,MAACkF,EAAAA,qBAAoB,KAKtD9I,GACC4D,EAAAA,IAAC,SAAO,CAAA6C,QAASzG,EAAS4C,MAAOf,EAA0BuC,MAAM,QAC9Dd,SAAAjD,GAAa0I,WAAanF,EAAAA,IAACoF,oBAAiB,cAOpDtI,GACCiC,EAAAA,KAAC,MAAA,CACCC,MAAO,CACLZ,WAAY,UACZC,OAAQ,oBACRF,aAAc,MACd6C,MAAO,UACPzC,QAAS,OACTC,WAAY,SACZiB,IAAK,OACLK,SAAU,EACV5B,QAAS,YACTuE,SAAU,OACV3B,WAAY,IACZF,WAAY,SACZD,SAAU,SACVE,aAAc,YAGhBnB,SAAA,CAACM,EAAAA,IAAAO,EAAA,QAAA,CAAQC,MAAOzD,EAAoB0D,OAAK,EAACC,UAAU,MAClDhB,eAAC2F,EAAKA,KAAA,CAAAlC,KAAM,GAAInC,MAAM,UAAUoC,YAAa,EAAGpE,MAAO,CAAEL,WAAY,aAEtE,OAAK,CAAAK,MAAO,CAAE2B,SAAU,SAAUE,aAAc,YAC/CnB,eAACa,EAAQ,QAAA,CAAAC,MAAO1D,EAAe0D,MAAOC,OAAK,EAACC,UAAU,MACtDhB,gBAAC,OAAK,CAAAA,SAAA,CAAA,WAAS5C,EAAe0D,MAAM,YAAe5B,EAAkB9B,EAAewI,YAAY,IAAE1G,EAAkB9B,EAAeyI"}
@@ -0,0 +1,2 @@
1
+ "use strict";require("../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js").default(".PdfViewer_rpv-search__highlight__VoK0R{mix-blend-mode:multiply;opacity:0!important;pointer-events:none}.PdfViewer_rpv-search__highlight__VoK0R.PdfViewer_verified-match__uLbHV{opacity:.9!important;pointer-events:auto}[data-disable-pdf-annotations=true] .PdfViewer_rpv-core__annotation--link__PjTgh,[data-disable-pdf-annotations=true] .PdfViewer_rpv-core__annotation--popup__9Gy-f,[data-disable-pdf-annotations=true] .PdfViewer_rpv-core__annotation--text__a6yJd,[data-disable-pdf-annotations=true] .PdfViewer_rpv-core__annotation-layer__VSu-j,[data-disable-pdf-annotations=true] .PdfViewer_rpv-core__annotation-popup-wrapper__dYd-M{display:none!important;pointer-events:none!important}[data-pdf-page-fit=true] .PdfViewer_rpv-core__inner-pages__ybJXq{overflow-y:scroll;scrollbar-gutter:stable}.PdfViewer_citation-pdf-viewer__q7tEK .PdfViewer_rpv-core__inner-pages__ybJXq{scrollbar-color:#cbd5e1 transparent;scrollbar-gutter:stable;scrollbar-width:thin}.PdfViewer_citation-pdf-viewer__q7tEK .PdfViewer_rpv-core__inner-pages__ybJXq::-webkit-scrollbar{width:12px}.PdfViewer_citation-pdf-viewer__q7tEK .PdfViewer_rpv-core__inner-pages__ybJXq::-webkit-scrollbar-track{background:transparent}.PdfViewer_citation-pdf-viewer__q7tEK .PdfViewer_rpv-core__inner-pages__ybJXq::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#cbd5e1;border:3px solid transparent;border-radius:999px}.PdfViewer_citation-pdf-viewer__q7tEK .PdfViewer_rpv-core__inner-pages__ybJXq::-webkit-scrollbar-thumb:hover{background-color:#94a3b8}");
2
+ //# sourceMappingURL=PdfViewer.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdfViewer.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("@react-pdf-viewer/core"),r=require("./PdfContainer.js"),i=require("./PdfToolbar.js"),o=require("./PdfStyle.js"),a=require("./usePdfHighlight.js"),u=require("./rotationManager.js");require("@react-pdf-viewer/zoom/lib/styles/index.css"),require("@react-pdf-viewer/page-navigation/lib/styles/index.css"),require("@react-pdf-viewer/core/lib/styles/index.css"),require("@react-pdf-viewer/search/lib/styles/index.css");var l=require("react"),s=require("../ScannedDocCitation/ScannedDocCitation.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=c(l);exports.default=function(c){var g=c.pdfUrl,f=c.highlightText,v=c.highlightPages,h=c.highlightCordinatePages,p=c.highlightColor,m=void 0===p?"yellow":p,_=c.activeHighlightColor,y=void 0===_?"#f7dc51":_,w=c.jumpToPageValue,x=void 0===w?0:w,P=c.pdfName,b=c.onClose,S=c.customStyles,T=c.customClasses,C=c.customIcons,q=c.useCoordinates,R=c.fallbackPages,A=c.activeCitationIndex,L=c.onActiveCitationChange,M=c.headerAction,j=c.isZoomEnabled,I=void 0===j||j,E=c.showHighlightsAction,F=void 0===E||E,H=c.defaultScale,N=void 0===H?n.SpecialZoomLevel.ActualSize:H,B=c.useRange,Z=void 0!==B&&B,D=c.rangeOfPages,O=void 0===D?null:D,V=c.showFullScreenAction,W=void 0===V||V,k=c.showRotateButton,z=void 0!==k&&k,U=c.segments,J=void 0===U?[{title:"Document 2",start_page:52,end_page:52,page_count:1}]:U,K=c.segmentTooltipText,G=c.onCurrentPageChange,Q=c.navigationRequest,X=c.onNavigationSettled,Y=c.disablePdfAnnotations,$=void 0!==Y&&Y,ee=c.disablePdfTextLayer,te=void 0!==ee&&ee,ne=c.renderPage,re=c.setRenderRange,ie=l.useRef(null),oe=function(e){switch(e){case"ActualSize":return n.SpecialZoomLevel.ActualSize;case"PageFit":return n.SpecialZoomLevel.PageFit;case"PageWidth":return n.SpecialZoomLevel.PageWidth;default:return null!=e?e:n.SpecialZoomLevel.PageWidth}}(N),ae=l.useState(0),ue=ae[0],le=ae[1],se=l.useState(0),ce=se[0],de=se[1],ge=l.useState(0),fe=ge[0],ve=ge[1],he=l.useRef(null),pe=l.useRef(null),me=l.useRef(0),_e=l.useRef(null),ye=l.useMemo(function(){if(!g)return"";try{return new URL(g,window.location.origin).pathname.split("/").pop()||"default"}catch(e){return"default"}},[g]);l.useEffect(function(){ye&&u.rotationManager.setPdfIdentifier(ye)},[ye]);l.useEffect(function(){return u.rotationManager.onRotationChange(function(e,t){e===ue+1&&ve(t)})},[ue]),l.useEffect(function(){var e=new MutationObserver(function(){var e,t=null===(e=ie.current)||void 0===e?void 0:e.querySelectorAll('[data-testid^="core__page-layer-"]'),n=new Set;null==t||t.forEach(function(e){var t,r=null===(t=e.getAttribute("data-testid"))||void 0===t?void 0:t.match(/core__page-layer-(\d+)/);if(r&&r.length>=2){var i=parseInt(r[1],10)+1;n.has(i)||(u.rotationManager.registerPageElement(i,e),n.add(i))}})});return ie.current&&(e.observe(ie.current,{childList:!0,subtree:!0,attributes:!1}),_e.current=e),function(){e.disconnect(),_e.current=null}},[]),l.useEffect(function(){return function(){u.rotationManager.clearAll(),_e.current&&_e.current.disconnect()}},[]),l.useEffect(function(){var e=ue+1;ve(u.rotationManager.getRotation(e))},[ue]);var we,xe=l.useMemo(function(){return $||te?function(n){var r=te?t.jsx("div",e.__assign({"aria-hidden":"true",style:{display:"none"}},{children:n.textLayer.children})):n.textLayer.children,i=e.__assign(e.__assign({},n),{annotationLayer:e.__assign(e.__assign({},n.annotationLayer),{children:$?null:n.annotationLayer.children}),textLayer:e.__assign(e.__assign({},n.textLayer),{children:r})});return ne?ne(i):t.jsxs(t.Fragment,{children:[n.canvasLayer.children,r,!$&&n.annotationLayer.children]})}:ne},[$,te,ne]),Pe=l.useMemo(function(){if(q)return new Set(h.map(function(e){return e.pageIndex}));var e=new Set;return Object.values(v).forEach(function(t){t>0&&e.add(t-1)}),e},[h,v,q]),be=(we=f)&&0!==we.length?we.filter(function(e){return!we.some(function(t){return t!==e&&t.includes(e)})}):we,Se=a.PdfHighlightControls(be,q?{}:v,ie,Pe,q,q?h:[],m,y),Te=Se.highlightIndex,Ce=Se.cursorIndex,qe=Se.setCursorIndex,Re=Se.orderedKeys,Ae=Se.totalHighlights,Le=Se.getValidPosition,Me=Se.tryJump,je=Se.jumpToPage,Ie=Se.plugins,Ee=Se.controls,Fe=Se.hideNonTargetHighlights,He=Se.deduplicateHighlights,Ne=Le(Ce),Be=l.useMemo(function(){var e=ue+1;return J.find(function(t){return e>=t.start_page&&e<=t.end_page})},[ue,J]);l.useEffect(function(){void 0!==A&&A!==Ce&&qe(A)},[A]);var Ze=e.__assign(e.__assign({},Ee),{goToNext:function(){Ce>=Ae-1||(Ee.goToNext(),L&&L(Ce+1))},goToPrevious:function(){Ce<=0||(Ee.goToPrevious(),L&&L(Ce-1))}}),De=d.default.useCallback(function(e,t){me.current+=1;var n=me.current;null!=pe.current&&window.clearTimeout(pe.current);var r=null,i=0,o=0,a=function(){var u,l;if(me.current===n){o+=1;var s=null===(u=ie.current)||void 0===u?void 0:u.querySelector(".rpv-core__inner-pages"),c=null===(l=ie.current)||void 0===l?void 0:l.querySelector('[data-testid="core__page-layer-'.concat(t-1,'"]'));if(!s||!c)return o>=40?(pe.current=null,void(null==X||X({pageNumber:t,requestId:e.requestId}))):void(pe.current=window.setTimeout(a,50));r===s.scrollTop?i+=1:(r=s.scrollTop,i=0);var d=s.getBoundingClientRect(),g=c.getBoundingClientRect(),f=Boolean(d&&g&&g.bottom>d.top&&g.top<d.bottom);if(i>=2&&f||o>=40)return pe.current=null,void(null==X||X({pageNumber:t,requestId:e.requestId}));pe.current=window.setTimeout(a,50)}};pe.current=window.setTimeout(a,50)},[X]);if(l.useEffect(function(){return function(){me.current+=1,null!=pe.current&&window.clearTimeout(pe.current)}},[]),l.useEffect(function(){var e;if(Q&&!(ce<=0)){var t=Math.min(Math.max(Math.trunc(Q.pageNumber),1),ce),n="".concat(null!==(e=Q.requestId)&&void 0!==e?e:t,":").concat(t);he.current!==n&&(he.current=n,le(t-1),je(t-1),De(Q,t))}},[je,Q,ce,De]),!g)return t.jsx(s.default,{pages:R,activeCitationIndex:A,onActiveCitationChange:L,headerAction:M});return t.jsxs("div",e.__assign({ref:ie,className:(null==T?void 0:T.pdfViewerWrapper)||"","data-disable-pdf-annotations":$?"true":void 0,"data-pdf-page-fit":oe===n.SpecialZoomLevel.PageFit?"true":void 0,style:e.__assign(e.__assign(e.__assign(e.__assign({height:"100%",minHeight:0,minWidth:0,overflow:"hidden",display:"flex",flexDirection:"column"},o.pdfStyles.pdfViewer),{display:"flex",flexDirection:"column",height:"100%",width:"100%",backgroundColor:"#FAFAFA"}),null==S?void 0:S.pdfViewer),{backgroundColor:"#F1F5F9"})},{children:[t.jsx(i.default,{highlightIndex:Te,totalHighlights:Ae,controls:Ze,currentPosition:Ne,pdfName:P,onClose:b,pdfUrl:g,viewerRef:ie,customStyles:S,customClasses:T,customIcons:C,headerAction:M,isZoomEnabled:I,showHighlightsAction:F,showFullScreenAction:W,currentSegment:Be,segmentTooltipText:K,currentPage:ue+1,totalPages:ce,onPageNavigate:function(e){var t=Math.min(Math.max(e,1),ce||e);le(t-1),je(t-1)},onRotatePage:function(){var e=ue+1;u.rotationManager.rotatePageBy90(e),ve(u.rotationManager.getRotation(e))},currentPageRotation:fe,showRotateButton:z}),t.jsx(r.default,{defaultScale:oe,pdfUrl:g,plugins:Ie,customStyles:S,onLoad:function(t){de(t.doc.numPages);var n=!q&&!Z&&x<=0;if(x>0&&!Z){var r=x-1,i=Re[r],o=v[i],a=h[r];qe(r),console.log(a,"cordinateTargetHighlight"),q&&a.pageIndex>0&&je(a.pageIndex),o>0&&(setTimeout(function(){Fe(Pe),He(o-1)},1e3),q||je(o-1))}else if(Z&&O&&2===O.length){e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,i,o;return e.__generator(this,function(e){switch(e.label){case 0:t=O[0],n=O[1],r=t,e.label=1;case 1:return r<=n?(je(i=r-1),[4,new Promise(function(e){return setTimeout(e,1e3)})]):[3,4];case 2:if(e.sent(),Fe(Pe),(o=He(i))&&o>0)return[3,4];e.label=3;case 3:return r++,[3,1];case 4:return[2]}})})}else if(!q&&v){var u=Re.find(function(e){return v[e]>0});if(void 0!==u){var l=v[u]-1;je(l),setTimeout(function(){Fe(Pe),He(l)},1e3)}}requestAnimationFrame(function(){n&&Me(),!q&&x>0&&!Z&&function(){if(ie.current){var e=x-1,t=Re[e],n=v[t],r=n>0?n-1:0,i={};Re.forEach(function(e,t){var n=v[e];n>0&&(i[n]||(i[n]=[]),i[n].push(t))});var o=(i[n]||[]).indexOf(e),a=0,u=function(){var e,t;if(!(++a>40)){var n=null===(e=ie.current)||void 0===e?void 0:e.querySelector(".rpv-core__inner-pages");if(n){var i=null===(t=ie.current)||void 0===t?void 0:t.querySelector('[data-testid="core__page-layer-'.concat(r,'"]'));if(i){var l=n.getBoundingClientRect(),s=i.getBoundingClientRect();if(s.top<l.bottom&&s.bottom>l.top){var c=i.querySelectorAll(".rpv-search__highlight")[o];if(c){var d=c.getBoundingClientRect(),g=n.scrollTop+(d.top-l.top)-n.clientHeight/2+d.height/2;n.scrollTo({top:g,behavior:"smooth"})}else setTimeout(u,100)}else setTimeout(u,100)}else setTimeout(u,100)}else setTimeout(u,100)}};setTimeout(u,500)}}()})},onPageChange:function(e){var t=e.currentPage;le(t),null==G||G(t+1),Pe.has(t)?(He(t),Fe(Pe)):Fe(Pe)},renderPage:xe,setRenderRange:re})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@react-pdf-viewer/core"),r=require("./PdfContainer.js"),n=require("./PdfToolbar.js"),o=require("./PdfStyle.js"),i=require("./usePdfHighlight.js"),a=require("./rotationManager.js");require("@react-pdf-viewer/zoom/lib/styles/index.css"),require("@react-pdf-viewer/page-navigation/lib/styles/index.css"),require("@react-pdf-viewer/core/lib/styles/index.css"),require("@react-pdf-viewer/search/lib/styles/index.css");var s=require("react"),c=require("../ScannedDocCitation/ScannedDocCitation.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./PdfViewer.css.js");var u=l(s);exports.default=({pdfUrl:l,highlightText:d,highlightPages:g,highlightCordinatePages:h,highlightColor:f="yellow",activeHighlightColor:p="#f7dc51",jumpToPageValue:m=0,pdfName:v,onClose:y,customStyles:w,customClasses:x,customIcons:P,useCoordinates:S,fallbackPages:T,activeCitationIndex:C,onActiveCitationChange:b,headerAction:q,isZoomEnabled:R=!0,showHighlightsAction:A=!0,defaultScale:_=t.SpecialZoomLevel.ActualSize,useRange:j=!1,rangeOfPages:I=null,showFullScreenAction:L=!0,showRotateButton:M=!1,segments:E=[{title:"Document 2",start_page:52,end_page:52,page_count:1}],segmentTooltipText:F,onCurrentPageChange:H,navigationRequest:N,onNavigationSettled:B,disablePdfAnnotations:Z=!1,disablePdfTextLayer:V=!1,renderPage:k,setRenderRange:z})=>{const D=s.useRef(null),O=(e=>{switch(e){case"ActualSize":return t.SpecialZoomLevel.ActualSize;case"PageFit":return t.SpecialZoomLevel.PageFit;case"PageWidth":return t.SpecialZoomLevel.PageWidth;default:return e??t.SpecialZoomLevel.PageWidth}})(_),[W,U]=s.useState(0),[$,J]=s.useState(0),[K,G]=s.useState(0),Q=s.useRef(null),X=s.useRef(null),Y=s.useRef(0),ee=s.useRef(null),te=s.useMemo(()=>{if(!l)return"";try{return new URL(l,window.location.origin).pathname.split("/").pop()||"default"}catch{return"default"}},[l]);s.useEffect(()=>{te&&a.rotationManager.setPdfIdentifier(te)},[te]);s.useEffect(()=>a.rotationManager.onRotationChange((e,t)=>{e===W+1&&G(t)}),[W]),s.useEffect(()=>{const e=new MutationObserver(()=>{const e=D.current?.querySelectorAll('[data-testid^="core__page-layer-"]'),t=new Set;e?.forEach(e=>{const r=e.getAttribute("data-testid")?.match(/core__page-layer-(\d+)/);if(r&&r.length>=2){const n=parseInt(r[1],10)+1;t.has(n)||(a.rotationManager.registerPageElement(n,e),t.add(n))}})});return D.current&&(e.observe(D.current,{childList:!0,subtree:!0,attributes:!1}),ee.current=e),()=>{e.disconnect(),ee.current=null}},[]),s.useEffect(()=>()=>{a.rotationManager.clearAll(),ee.current&&ee.current.disconnect()},[]),s.useEffect(()=>{const e=W+1;G(a.rotationManager.getRotation(e))},[W]);const re=s.useMemo(()=>Z||V?t=>{const r=V?e.jsx("div",{"aria-hidden":"true",style:{display:"none"},children:t.textLayer.children}):t.textLayer.children,n={...t,annotationLayer:{...t.annotationLayer,children:Z?null:t.annotationLayer.children},textLayer:{...t.textLayer,children:r}};return k?k(n):e.jsxs(e.Fragment,{children:[t.canvasLayer.children,r,!Z&&t.annotationLayer.children]})}:k,[Z,V,k]),ne=s.useMemo(()=>{if(S)return new Set(h.map(e=>e.pageIndex));{const e=new Set;return Object.values(g).forEach(t=>{t>0&&e.add(t-1)}),e}},[h,g,S]),oe=(ie=d)&&0!==ie.length?ie.filter(e=>!ie.some(t=>t!==e&&t.includes(e))):ie;var ie;const{highlightIndex:ae,setHighlightIndex:se,cursorIndex:ce,setCursorIndex:le,orderedKeys:ue,totalHighlights:de,getValidPosition:ge,tryJump:he,jumpToPage:fe,zoomTo:pe,plugins:me,controls:ve,hideNonTargetHighlights:ye,deduplicateHighlights:we,scrollToCoord:xe}=i.PdfHighlightControls(oe,S?{}:g,D,ne,S,S?h:[],f,p),Pe=ge(ce),Se=s.useMemo(()=>{const e=W+1;return E.find(t=>e>=t.start_page&&e<=t.end_page)},[W,E]);s.useEffect(()=>{void 0!==C&&C!==ce&&le(C)},[C]);const Te={...ve,goToNext:()=>{ce>=de-1||(ve.goToNext(),b&&b(ce+1))},goToPrevious:()=>{ce<=0||(ve.goToPrevious(),b&&b(ce-1))}},Ce=u.default.useCallback((e,t)=>{Y.current+=1;const r=Y.current;null!=X.current&&window.clearTimeout(X.current);let n=null,o=0,i=0;const a=()=>{if(Y.current!==r)return;i+=1;const s=D.current?.querySelector(".rpv-core__inner-pages"),c=D.current?.querySelector(`[data-testid="core__page-layer-${t-1}"]`);if(!s||!c)return i>=40?(X.current=null,void B?.({pageNumber:t,requestId:e.requestId})):void(X.current=window.setTimeout(a,50));n===s.scrollTop?o+=1:(n=s.scrollTop,o=0);const l=s.getBoundingClientRect(),u=c.getBoundingClientRect(),d=Boolean(l&&u&&u.bottom>l.top&&u.top<l.bottom);if(o>=2&&d||i>=40)return X.current=null,void B?.({pageNumber:t,requestId:e.requestId});X.current=window.setTimeout(a,50)};X.current=window.setTimeout(a,50)},[B]);if(s.useEffect(()=>()=>{Y.current+=1,null!=X.current&&window.clearTimeout(X.current)},[]),s.useEffect(()=>{if(!N||$<=0)return;const e=Math.min(Math.max(Math.trunc(N.pageNumber),1),$),t=`${N.requestId??e}:${e}`;Q.current!==t&&(Q.current=t,U(e-1),fe(e-1),Ce(N,e))},[fe,N,$,Ce]),!l)return e.jsx(c.default,{pages:T,activeCitationIndex:C,onActiveCitationChange:b,headerAction:q});return e.jsxs("div",{ref:D,className:["citation-pdf-viewer",x?.pdfViewerWrapper].filter(Boolean).join(" "),"data-disable-pdf-annotations":Z?"true":void 0,"data-pdf-page-fit":O===t.SpecialZoomLevel.PageFit?"true":void 0,style:{height:"100%",minHeight:0,minWidth:0,overflow:"hidden",display:"flex",flexDirection:"column",...o.pdfStyles.pdfViewer,display:"flex",flexDirection:"column",height:"100%",width:"100%",backgroundColor:"#FAFAFA",...w?.pdfViewer,backgroundColor:"#F1F5F9"},children:[e.jsx(n.default,{highlightIndex:ae,totalHighlights:de,controls:Te,currentPosition:Pe,pdfName:v,onClose:y,pdfUrl:l,viewerRef:D,customStyles:w,customClasses:x,customIcons:P,headerAction:q,isZoomEnabled:R,showHighlightsAction:A,showFullScreenAction:L,currentSegment:Se,segmentTooltipText:F,currentPage:W+1,totalPages:$,onPageNavigate:e=>{const t=Math.min(Math.max(e,1),$||e);U(t-1),fe(t-1)},onRotatePage:()=>{const e=W+1;a.rotationManager.rotatePageBy90(e),G(a.rotationManager.getRotation(e))},currentPageRotation:K,showRotateButton:M}),e.jsx(r.default,{defaultScale:O,pdfUrl:l,plugins:me,customStyles:w,onLoad:e=>{J(e.doc.numPages);const t=!S&&!j&&m<=0;if(m>0&&!j){const e=m-1,t=ue[e],r=g[t],n=h[e];le(e),console.log(n,"cordinateTargetHighlight"),S&&n.pageIndex>0&&fe(n.pageIndex),r>0&&(setTimeout(()=>{ye(ne),we(r-1)},1e3),S||fe(r-1))}else if(j&&I&&2===I.length){(async()=>{const[e,t]=I;for(let r=e;r<=t;r++){const e=r-1;fe(e),await new Promise(e=>setTimeout(e,1e3)),ye(ne);const t=we(e);if(t&&t>0)break}})()}else if(!S&&g){const e=ue.find(e=>g[e]>0);if(void 0!==e){const t=g[e]-1;fe(t),setTimeout(()=>{ye(ne),we(t)},1e3)}}requestAnimationFrame(()=>{t&&he(),!S&&m>0&&!j&&(()=>{if(!D.current)return;const e=m-1,t=ue[e],r=g[t],n=r>0?r-1:0,o={};ue.forEach((e,t)=>{const r=g[e];r>0&&(o[r]||(o[r]=[]),o[r].push(t))});const i=(o[r]||[]).indexOf(e);let a=0;const s=()=>{if(a++,a>40)return;const e=D.current?.querySelector(".rpv-core__inner-pages");if(!e)return void setTimeout(s,100);const t=D.current?.querySelector(`[data-testid="core__page-layer-${n}"]`);if(!t)return void setTimeout(s,100);const r=e.getBoundingClientRect(),o=t.getBoundingClientRect();if(!(o.top<r.bottom&&o.bottom>r.top))return void setTimeout(s,100);const c=t.querySelectorAll(".rpv-search__highlight")[i];if(!c)return void setTimeout(s,100);const l=c.getBoundingClientRect(),u=e.scrollTop+(l.top-r.top)-e.clientHeight/2+l.height/2;e.scrollTo({top:u,behavior:"smooth"})};setTimeout(s,500)})()})},onPageChange:e=>{const t=e.currentPage;U(t),H?.(t+1),ne.has(t)?(we(t),ye(ne)):ye(ne)},renderPage:re,setRenderRange:z})]})};
2
2
  //# sourceMappingURL=PdfViewer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PdfViewer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"PdfViewer.js","sources":["../../../../src/features/PdfViewer/PdfViewer.tsx"],"sourcesContent":["import { DocumentLoadEvent, PageChangeEvent, RenderPage, SetRenderRange, SpecialZoomLevel } from \"@react-pdf-viewer/core\";\nimport PdfContainer from \"./PdfContainer\";\nimport PdfToolbar from \"./PdfToolbar\";\nimport { pdfStyles } from \"./PdfStyle\";\nimport { PdfHighlightControls } from \"./usePdfHighlight\";\nimport { rotationManager } from \"./rotationManager\";\nimport \"@react-pdf-viewer/zoom/lib/styles/index.css\";\nimport \"@react-pdf-viewer/page-navigation/lib/styles/index.css\";\nimport \"@react-pdf-viewer/core/lib/styles/index.css\";\nimport \"@react-pdf-viewer/search/lib/styles/index.css\";\nimport React, { useMemo, useRef, useEffect, useState } from \"react\";\nimport ScannedDocCitation, { CitationPage } from \"../ScannedDocCitation/ScannedDocCitation\";\nimport \"./PdfViewer.css\";\n\nexport type CustomIconsType = {\n pdfIcon?: React.ReactNode;\n fullScreenIcon?: React.ReactNode;\n downloadIcon?: React.ReactNode;\n closeIcon?: React.ReactNode;\n};\n\nexport type CustomStylesType = {\n pdfViewer?: React.CSSProperties;\n header?: React.CSSProperties;\n pdfIconWrapper?: React.CSSProperties;\n pdfName?: React.CSSProperties;\n pdfContainer?: React.CSSProperties;\n emptyState?: React.CSSProperties;\n};\n\nexport type CustomClassesType = {\n header?: string;\n pdfName?: string;\n actionButton?: string;\n pdfViewerWrapper?: string;\n};\n\nexport type PdfSegment = {\n title: string;\n start_page: number;\n end_page: number;\n page_count: number;\n};\n\ntype PdfScaleOption =\n | \"ActualSize\"\n | \"PageFit\"\n | \"PageWidth\"\n | number;\nexport interface PdfNavigationRequest {\n pageNumber: number;\n /** Change this value to navigate to the same page more than once. */\n requestId?: string | number;\n}\n\nexport interface PdfNavigationSettledEvent extends PdfNavigationRequest {\n pageNumber: number;\n}\n\nexport interface PdfViewerProps {\n pdfUrl?: string;\n highlightText: string[];\n highlightPages?: any;\n highlightCordinatePages: HighlightArea[];\n highlightColor?: string;\n activeHighlightColor?: string;\n jumpToPageValue?: number;\n pdfName?: string;\n onClose?: () => void;\n item?: any;\n customStyles?: CustomStylesType;\n customClasses?: CustomClassesType;\n customIcons?: CustomIconsType;\n useCoordinates: boolean;\n fallbackPages?: CitationPage[];\n activeCitationIndex?: number;\n onActiveCitationChange?: (index: number) => void;\n headerAction?: {\n icon?: React.ReactNode;\n onClick?: () => void;\n tooltip?: string;\n };\n isZoomEnabled?: boolean;\n showHighlightsAction?: boolean;\n defaultScale?: PdfScaleOption;\n useRange?: boolean; //\n rangeOfPages?: number[] | null;\n showFullScreenAction?: boolean;\n showRotateButton?: boolean;\n segments?: PdfSegment[];\n segmentTooltipText?: string;\n onCurrentPageChange?: (pageNumber: number) => void;\n navigationRequest?: PdfNavigationRequest | null;\n onNavigationSettled?: (event: PdfNavigationSettledEvent) => void;\n disablePdfAnnotations?: boolean;\n disablePdfTextLayer?: boolean;\n renderPage?: RenderPage;\n setRenderRange?: SetRenderRange;\n}\n\nconst getResolvedScale = (\n scale?: PdfScaleOption\n): SpecialZoomLevel | number => {\n switch (scale) {\n case \"ActualSize\":\n return SpecialZoomLevel.ActualSize;\n\n case \"PageFit\":\n return SpecialZoomLevel.PageFit;\n\n case \"PageWidth\":\n return SpecialZoomLevel.PageWidth;\n\n default:\n return scale ?? SpecialZoomLevel.PageWidth;\n }\n};\n\nexport type HighlightArea = {\n pageIndex: number;\n left: number;\n top: number;\n width: number;\n height: number;\n pageNumber?: number;\n};\n\nconst PdfViewer = ({\n pdfUrl,\n highlightText,\n highlightPages,\n highlightCordinatePages,\n highlightColor = \"yellow\",\n activeHighlightColor = \"#f7dc51\",\n jumpToPageValue = 0,\n pdfName,\n onClose,\n customStyles,\n customClasses,\n customIcons,\n useCoordinates,\n fallbackPages,\n activeCitationIndex,\n onActiveCitationChange,\n headerAction,\n isZoomEnabled = true,\n showHighlightsAction = true,\n defaultScale = SpecialZoomLevel.ActualSize,\n useRange = false,\n rangeOfPages = null,\n showFullScreenAction=true,\n showRotateButton = false,\n segments = [\n {\n title: \"Document 2\",\n start_page: 52,\n end_page: 52,\n page_count: 1,\n },\n ],\n segmentTooltipText,\n onCurrentPageChange,\n navigationRequest,\n onNavigationSettled,\n disablePdfAnnotations = false,\n disablePdfTextLayer = false,\n renderPage,\n setRenderRange,\n}: PdfViewerProps) => {\n\n const viewerRef = useRef<HTMLDivElement | null>(null);\n const resolvedDefaultScale = getResolvedScale(defaultScale);\n const [currentPage, setCurrentPage] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [currentPageRotation, setCurrentPageRotation] = useState(0);\n const lastNavigationRequestRef = useRef<string | null>(null);\n const navigationSettleTimerRef = useRef<number | null>(null);\n const navigationSettleSequenceRef = useRef(0);\n const mutationObserverRef = useRef<MutationObserver | null>(null);\n\n // Generate PDF identifier for localStorage from URL\n const pdfIdentifier = useMemo(() => {\n if (!pdfUrl) return '';\n // Use last part of URL or hash it\n try {\n const url = new URL(pdfUrl, window.location.origin);\n return url.pathname.split('/').pop() || 'default';\n } catch {\n return 'default';\n }\n }, [pdfUrl]);\n\n // Set up rotation manager with PDF identifier\n useEffect(() => {\n if (pdfIdentifier) {\n rotationManager.setPdfIdentifier(pdfIdentifier);\n }\n }, [pdfIdentifier]);\n\n // Handler for rotating current page (no state update)\n const handleRotatePage = () => {\n const pageNumber = currentPage + 1;\n rotationManager.rotatePageBy90(pageNumber);\n // Manually update state to reflect rotation in UI\n setCurrentPageRotation(rotationManager.getRotation(pageNumber));\n };\n\n // Subscribe to rotation changes to sync UI state\n useEffect(() => {\n const unsubscribe = rotationManager.onRotationChange((pageNum, angle) => {\n // Only update state if current page rotated\n if (pageNum === currentPage + 1) {\n setCurrentPageRotation(angle);\n }\n });\n\n return unsubscribe;\n }, [currentPage]);\n\n // Register page elements with rotation manager\n useEffect(() => {\n const observer = new MutationObserver(() => {\n // Find all newly rendered page elements\n const pageElements = viewerRef.current?.querySelectorAll(\n '[data-testid^=\"core__page-layer-\"]'\n );\n\n const registeredPages = new Set<number>();\n\n pageElements?.forEach((pageElement) => {\n const match = (pageElement as HTMLElement)\n .getAttribute('data-testid')\n ?.match(/core__page-layer-(\\d+)/);\n if (match && match.length >= 2) {\n const pageIndex = parseInt(match[1], 10);\n const pageNumber = pageIndex + 1;\n\n // Only register once per page\n if (!registeredPages.has(pageNumber)) {\n rotationManager.registerPageElement(pageNumber, pageElement as HTMLElement);\n registeredPages.add(pageNumber);\n }\n }\n });\n });\n\n if (viewerRef.current) {\n observer.observe(viewerRef.current, {\n childList: true,\n subtree: true,\n attributes: false,\n });\n mutationObserverRef.current = observer;\n }\n\n return () => {\n observer.disconnect();\n mutationObserverRef.current = null;\n };\n }, []);\n\n // Clean up when unmounting\n useEffect(() => {\n return () => {\n rotationManager.clearAll();\n if (mutationObserverRef.current) {\n mutationObserverRef.current.disconnect();\n }\n };\n }, []);\n\n // Update current page rotation when page changes\n useEffect(() => {\n const pageNumber = currentPage + 1;\n setCurrentPageRotation(rotationManager.getRotation(pageNumber));\n }, [currentPage]);\n const resolvedRenderPage = useMemo<RenderPage | undefined>(() => {\n if (!disablePdfAnnotations && !disablePdfTextLayer) return renderPage;\n\n return (props) => {\n const resolvedTextLayerChildren = disablePdfTextLayer ? (\n <div aria-hidden=\"true\" style={{ display: \"none\" }}>\n {props.textLayer.children}\n </div>\n ) : props.textLayer.children;\n const resolvedProps = {\n ...props,\n annotationLayer: {\n ...props.annotationLayer,\n children: disablePdfAnnotations ? null : props.annotationLayer.children,\n },\n textLayer: {\n ...props.textLayer,\n children: resolvedTextLayerChildren,\n },\n };\n\n const renderedPage = renderPage\n ? renderPage(resolvedProps)\n : (\n <>\n {props.canvasLayer.children}\n {resolvedTextLayerChildren}\n {!disablePdfAnnotations && props.annotationLayer.children}\n </>\n );\n\n return renderedPage;\n };\n }, [disablePdfAnnotations, disablePdfTextLayer, renderPage]);\n\n const cleanHighlightTexts = (texts: string[]): string[] => {\n if (!texts || texts.length === 0) return texts;\n return texts.filter((text) => {\n return !texts.some(\n (otherText) => otherText !== text && otherText.includes(text)\n );\n });\n };\n\n const highlightPageSet = useMemo(() => {\n if (useCoordinates) {\n return new Set(highlightCordinatePages.map((h: any) => h.pageIndex));\n } else {\n const set = new Set<number>();\n Object.values(highlightPages).forEach((p: any) => {\n if (p > 0) set.add(p - 1);\n });\n return set;\n }\n }, [highlightCordinatePages, highlightPages, useCoordinates]);\n\n const removeRedundantHighlightTexts = cleanHighlightTexts(highlightText);\n\n const {\n highlightIndex,\n setHighlightIndex,\n cursorIndex,\n setCursorIndex,\n orderedKeys,\n totalHighlights,\n getValidPosition,\n tryJump,\n jumpToPage,\n zoomTo,\n plugins,\n controls,\n hideNonTargetHighlights,\n deduplicateHighlights,\n scrollToCoord,\n } = PdfHighlightControls(\n removeRedundantHighlightTexts,\n !useCoordinates ? highlightPages : {},\n viewerRef,\n highlightPageSet,\n useCoordinates,\n useCoordinates ? highlightCordinatePages : [],\n highlightColor,\n activeHighlightColor\n );\n\n const currentPosition = getValidPosition(cursorIndex);\n const currentSegment = useMemo(() => {\n const pageNumber = currentPage + 1;\n return segments.find(\n (segment) =>\n pageNumber >= segment.start_page && pageNumber <= segment.end_page\n );\n }, [currentPage, segments]);\n\n // sync external activeCitationIndex → cursorIndex\n useEffect(() => {\n if (activeCitationIndex === undefined) return;\n if (activeCitationIndex === cursorIndex) return;\n setCursorIndex(activeCitationIndex);\n }, [activeCitationIndex]);\n\n // wrap controls to fire onActiveCitationChange\n const handleGoToNext = () => {\n if (cursorIndex >= totalHighlights - 1) return;\n controls.goToNext();\n if (onActiveCitationChange) onActiveCitationChange(cursorIndex + 1);\n };\n\n const handleGoToPrevious = () => {\n if (cursorIndex <= 0) return;\n controls.goToPrevious();\n if (onActiveCitationChange) onActiveCitationChange(cursorIndex - 1);\n };\n\n const modifiedControls = {\n ...controls,\n goToNext: handleGoToNext,\n goToPrevious: handleGoToPrevious,\n };\n\n const handlePageNavigate = (pageNumber: number) => {\n const nextPage = Math.min(Math.max(pageNumber, 1), totalPages || pageNumber);\n setCurrentPage(nextPage - 1);\n jumpToPage(nextPage - 1);\n };\n\n const waitForNavigationToSettle = React.useCallback((\n request: PdfNavigationRequest,\n pageNumber: number\n ) => {\n navigationSettleSequenceRef.current += 1;\n const settleSequence = navigationSettleSequenceRef.current;\n if (navigationSettleTimerRef.current != null) {\n window.clearTimeout(navigationSettleTimerRef.current);\n }\n\n let previousScrollTop: number | null = null;\n let stableChecks = 0;\n let attempts = 0;\n\n const checkScrollPosition = () => {\n if (navigationSettleSequenceRef.current !== settleSequence) return;\n\n attempts += 1;\n\n const scrollContainer = viewerRef.current?.querySelector(\n '.rpv-core__inner-pages'\n ) as HTMLElement | null;\n const targetPage = viewerRef.current?.querySelector(\n `[data-testid=\"core__page-layer-${pageNumber - 1}\"]`\n ) as HTMLElement | null;\n\n // Virtualized page layers are not guaranteed to be mounted on the first\n // check after jumpToPage. Keep polling so navigation completion is not\n // lost while React PDF Viewer is creating the target page DOM.\n if (!scrollContainer || !targetPage) {\n if (attempts >= 40) {\n navigationSettleTimerRef.current = null;\n onNavigationSettled?.({\n pageNumber,\n requestId: request.requestId,\n });\n return;\n }\n\n navigationSettleTimerRef.current = window.setTimeout(checkScrollPosition, 50);\n return;\n }\n\n if (previousScrollTop === scrollContainer.scrollTop) {\n stableChecks += 1;\n } else {\n previousScrollTop = scrollContainer.scrollTop;\n stableChecks = 0;\n }\n\n const scrollRect = scrollContainer.getBoundingClientRect();\n const pageRect = targetPage.getBoundingClientRect();\n const isTargetVisible = Boolean(\n scrollRect &&\n pageRect &&\n pageRect.bottom > scrollRect.top &&\n pageRect.top < scrollRect.bottom\n );\n const hasSettled = stableChecks >= 2 && isTargetVisible;\n const reachedTimeout = attempts >= 40;\n\n if (hasSettled || reachedTimeout) {\n navigationSettleTimerRef.current = null;\n onNavigationSettled?.({\n pageNumber,\n requestId: request.requestId,\n });\n return;\n }\n\n navigationSettleTimerRef.current = window.setTimeout(checkScrollPosition, 50);\n };\n\n navigationSettleTimerRef.current = window.setTimeout(checkScrollPosition, 50);\n }, [onNavigationSettled]);\n\n useEffect(() => () => {\n navigationSettleSequenceRef.current += 1;\n if (navigationSettleTimerRef.current != null) {\n window.clearTimeout(navigationSettleTimerRef.current);\n }\n }, []);\n\n useEffect(() => {\n if (!navigationRequest || totalPages <= 0) return;\n\n const nextPage = Math.min(\n Math.max(Math.trunc(navigationRequest.pageNumber), 1),\n totalPages\n );\n const requestKey = `${navigationRequest.requestId ?? nextPage}:${nextPage}`;\n if (lastNavigationRequestRef.current === requestKey) return;\n\n lastNavigationRequestRef.current = requestKey;\n setCurrentPage(nextPage - 1);\n jumpToPage(nextPage - 1);\n waitForNavigationToSettle(navigationRequest, nextPage);\n }, [jumpToPage, navigationRequest, totalPages, waitForNavigationToSettle]);\n\n if (!pdfUrl) {\n return (\n <ScannedDocCitation\n pages={fallbackPages}\n activeCitationIndex={activeCitationIndex}\n onActiveCitationChange={onActiveCitationChange}\n headerAction={headerAction}\n />\n );\n }\n\n const defaultViewerStyles: React.CSSProperties = {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n width: \"100%\",\n backgroundColor: \"#FAFAFA\",\n };\n\n const scrollToHighlight = () => {\n if (!viewerRef.current) return;\n\n const index = jumpToPageValue - 1;\n const key = orderedKeys[index];\n const page = highlightPages[key];\n const targetPage = page > 0 ? page - 1 : 0;\n\n const pageVisitMap: Record<number, number[]> = {};\n orderedKeys.forEach((k, i) => {\n const p = highlightPages[k];\n if (p > 0) {\n if (!pageVisitMap[p]) pageVisitMap[p] = [];\n pageVisitMap[p].push(i);\n }\n });\n const visits = pageVisitMap[page] || [];\n const occurrence = visits.indexOf(index);\n\n let attempts = 0;\n const maxAttempts = 40;\n\n const doScrollToHighlight = () => {\n attempts++;\n if (attempts > maxAttempts) return;\n\n const scrollContainer = viewerRef.current?.querySelector(\n \".rpv-core__inner-pages\"\n ) as HTMLElement;\n if (!scrollContainer) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const pageElement = viewerRef.current?.querySelector(\n `[data-testid=\"core__page-layer-${targetPage}\"]`\n );\n if (!pageElement) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const scrollContainerRect = scrollContainer.getBoundingClientRect();\n const pageRect = pageElement.getBoundingClientRect();\n const isPageVisible =\n pageRect.top < scrollContainerRect.bottom &&\n pageRect.bottom > scrollContainerRect.top;\n\n if (!isPageVisible) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const allHighlights = pageElement.querySelectorAll(\".rpv-search__highlight\");\n const target = allHighlights[occurrence] as HTMLElement;\n\n if (!target) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const highlightRect = target.getBoundingClientRect();\n const scrollTop =\n scrollContainer.scrollTop +\n (highlightRect.top - scrollContainerRect.top) -\n scrollContainer.clientHeight / 2 +\n highlightRect.height / 2;\n\n scrollContainer.scrollTo({ top: scrollTop, behavior: \"smooth\" });\n };\n\n setTimeout(doScrollToHighlight, 500);\n };\n\n return (\n <div\n ref={viewerRef}\n className={[\"citation-pdf-viewer\", customClasses?.pdfViewerWrapper]\n .filter(Boolean)\n .join(\" \")}\n data-disable-pdf-annotations={\n disablePdfAnnotations ? \"true\" : undefined\n }\n data-pdf-page-fit={\n resolvedDefaultScale === SpecialZoomLevel.PageFit ? \"true\" : undefined\n }\n style={{\n height: \"100%\",\n minHeight: 0,\n minWidth: 0,\n overflow: \"hidden\",\n display: \"flex\",\n flexDirection: \"column\",\n ...pdfStyles.pdfViewer,\n ...defaultViewerStyles,\n ...customStyles?.pdfViewer,\n backgroundColor: \"#F1F5F9\",\n }}\n >\n <PdfToolbar\n highlightIndex={highlightIndex}\n totalHighlights={totalHighlights}\n controls={modifiedControls}\n currentPosition={currentPosition}\n pdfName={pdfName}\n onClose={onClose}\n pdfUrl={pdfUrl}\n viewerRef={viewerRef}\n customStyles={customStyles}\n customClasses={customClasses}\n customIcons={customIcons}\n headerAction={headerAction}\n isZoomEnabled={isZoomEnabled}\n showHighlightsAction={showHighlightsAction}\n showFullScreenAction={showFullScreenAction} \n currentSegment={currentSegment}\n segmentTooltipText={segmentTooltipText}\n currentPage={currentPage + 1}\n totalPages={totalPages}\n onPageNavigate={handlePageNavigate}\n onRotatePage={handleRotatePage}\n currentPageRotation={currentPageRotation}\n showRotateButton={showRotateButton}\n />\n <PdfContainer\n defaultScale={resolvedDefaultScale}\n pdfUrl={pdfUrl}\n plugins={plugins}\n customStyles={customStyles}\n onLoad={(e: DocumentLoadEvent) => {\n setTotalPages(e.doc.numPages);\n\n const shouldAutoJumpToFirstMatch =\n !useCoordinates && !useRange && jumpToPageValue <= 0;\n\n if (jumpToPageValue > 0 && !useRange) {\n const index = jumpToPageValue - 1;\n const key = orderedKeys[index];\n const page = highlightPages[key];\n const cordinateTargetHighlight = highlightCordinatePages[index];\n setCursorIndex(index);\n\n console.log(cordinateTargetHighlight, \"cordinateTargetHighlight\");\n if (useCoordinates && cordinateTargetHighlight.pageIndex > 0)\n jumpToPage(cordinateTargetHighlight.pageIndex);\n\n if (page > 0) {\n setTimeout(() => {\n hideNonTargetHighlights(highlightPageSet);\n deduplicateHighlights(page - 1);\n }, 1000);\n if (!useCoordinates) {\n jumpToPage(page - 1);\n }\n }\n } else if (useRange && rangeOfPages && rangeOfPages.length === 2) {\n \n // Async function to handle sequential jumping and waiting\n const scanRangeSequence = async () => {\n const [startPage, endPage] = rangeOfPages;\n \n for (let p = startPage; p <= endPage; p++) {\n const targetPageIndex = p - 1;\n \n jumpToPage(targetPageIndex);\n \n // Pause execution for 1 second to let the DOM render the highlights\n await new Promise((resolve) => setTimeout(resolve, 1000));\n \n hideNonTargetHighlights(highlightPageSet);\n const matchSize = deduplicateHighlights(targetPageIndex);\n \n // If the returned size is greater than 0, a match was found. Stop the loop.\n if (matchSize && matchSize > 0) {\n break; \n }\n }\n };\n\n scanRangeSequence();\n\n } else if (!useCoordinates && highlightPages) {\n const firstKey = orderedKeys.find(k => highlightPages[k] > 0);\n if (firstKey !== undefined) {\n const firstPage = highlightPages[firstKey] - 1;\n jumpToPage(firstPage);\n setTimeout(() => {\n hideNonTargetHighlights(highlightPageSet);\n deduplicateHighlights(firstPage);\n }, 1000);\n }\n }\n\n requestAnimationFrame(() => {\n if (shouldAutoJumpToFirstMatch) {\n tryJump();\n }\n if (!useCoordinates && jumpToPageValue > 0 && !useRange) {\n scrollToHighlight();\n }\n });\n }}\n onPageChange={(e: PageChangeEvent) => {\n const currentPage = e.currentPage;\n setCurrentPage(currentPage);\n onCurrentPageChange?.(currentPage + 1);\n if (!highlightPageSet.has(currentPage)) {\n hideNonTargetHighlights(highlightPageSet);\n return;\n }\n deduplicateHighlights(currentPage);\n hideNonTargetHighlights(highlightPageSet);\n }}\n renderPage={resolvedRenderPage}\n setRenderRange={setRenderRange}\n />\n </div>\n );\n};\n\nexport default PdfViewer;\n"],"names":["pdfUrl","highlightText","highlightPages","highlightCordinatePages","highlightColor","activeHighlightColor","jumpToPageValue","pdfName","onClose","customStyles","customClasses","customIcons","useCoordinates","fallbackPages","activeCitationIndex","onActiveCitationChange","headerAction","isZoomEnabled","showHighlightsAction","defaultScale","SpecialZoomLevel","ActualSize","useRange","rangeOfPages","showFullScreenAction","showRotateButton","segments","title","start_page","end_page","page_count","segmentTooltipText","onCurrentPageChange","navigationRequest","onNavigationSettled","disablePdfAnnotations","disablePdfTextLayer","renderPage","setRenderRange","viewerRef","useRef","resolvedDefaultScale","scale","PageFit","PageWidth","getResolvedScale","currentPage","setCurrentPage","useState","totalPages","setTotalPages","currentPageRotation","setCurrentPageRotation","lastNavigationRequestRef","navigationSettleTimerRef","navigationSettleSequenceRef","mutationObserverRef","pdfIdentifier","useMemo","URL","window","location","origin","pathname","split","pop","useEffect","rotationManager","setPdfIdentifier","onRotationChange","pageNum","angle","observer","MutationObserver","pageElements","current","querySelectorAll","registeredPages","Set","forEach","pageElement","match","getAttribute","length","pageNumber","parseInt","has","registerPageElement","add","observe","childList","subtree","attributes","disconnect","clearAll","getRotation","resolvedRenderPage","props","resolvedTextLayerChildren","jsx","style","display","children","textLayer","resolvedProps","annotationLayer","jsxs","Fragment","canvasLayer","highlightPageSet","map","h","pageIndex","set","Object","values","p","removeRedundantHighlightTexts","texts","filter","text","some","otherText","includes","highlightIndex","setHighlightIndex","cursorIndex","setCursorIndex","orderedKeys","totalHighlights","getValidPosition","tryJump","jumpToPage","zoomTo","plugins","controls","hideNonTargetHighlights","deduplicateHighlights","scrollToCoord","PdfHighlightControls","currentPosition","currentSegment","find","segment","modifiedControls","goToNext","goToPrevious","waitForNavigationToSettle","React","useCallback","request","settleSequence","clearTimeout","previousScrollTop","stableChecks","attempts","checkScrollPosition","scrollContainer","querySelector","targetPage","requestId","setTimeout","scrollTop","scrollRect","getBoundingClientRect","pageRect","isTargetVisible","Boolean","bottom","top","nextPage","Math","min","max","trunc","requestKey","ScannedDocCitation","pages","ref","className","pdfViewerWrapper","join","height","minHeight","minWidth","overflow","flexDirection","pdfStyles","pdfViewer","width","backgroundColor","PdfToolbar","onPageNavigate","onRotatePage","rotatePageBy90","PdfContainer","onLoad","e","doc","numPages","shouldAutoJumpToFirstMatch","index","key","page","cordinateTargetHighlight","console","log","async","startPage","endPage","targetPageIndex","Promise","resolve","matchSize","scanRangeSequence","firstKey","k","firstPage","requestAnimationFrame","pageVisitMap","i","push","occurrence","indexOf","doScrollToHighlight","scrollContainerRect","target","highlightRect","clientHeight","scrollTo","behavior","scrollToHighlight","onPageChange"],"mappings":"guBA+HkB,EAChBA,SACAC,gBACAC,iBACAC,0BACAC,iBAAiB,SACjBC,uBAAuB,UACvBC,kBAAkB,EAClBC,UACAC,UACAC,eACAC,gBACAC,cACAC,iBACAC,gBACAC,sBACAC,yBACAC,eACAC,iBAAgB,EAChBC,wBAAuB,EACvBC,eAAeC,EAAiBA,iBAAAC,WAChCC,YAAW,EACXC,eAAe,KACfC,wBAAqB,EACrBC,oBAAmB,EACnBC,WAAW,CACT,CACEC,MAAO,aACPC,WAAY,GACZC,SAAU,GACVC,WAAY,IAGhBC,qBACAC,sBACAC,oBACAC,sBACAC,yBAAwB,EACxBC,uBAAsB,EACtBC,aACAC,qBAGM,MAAAC,EAAYC,SAA8B,MAC1CC,EAvEiB,CACvBC,IAEA,OAAQA,GACN,IAAK,aACH,OAAOtB,EAA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AEH,YADAiF,WAAW+D,EAAqB,KAI5B,MAAAC,EAAsBpE,EAAgBO,wBACtCC,EAAWrF,EAAYoF,wBAK7B,KAHEC,EAASI,IAAMwD,EAAoBzD,QACnCH,EAASG,OAASyD,EAAoBxD,KAItC,YADAR,WAAW+D,EAAqB,KAI5B,MACAE,EADgBlJ,EAAYJ,iBAAiB,0BACtBkJ,GAE7B,IAAKI,EAEH,YADAjE,WAAW+D,EAAqB,KAI5B,MAAAG,EAAgBD,EAAO9D,wBACvBF,EACJL,EAAgBK,WACfiE,EAAc1D,IAAMwD,EAAoBxD,KACzCZ,EAAgBuE,aAAe,EAC/BD,EAAc7C,OAAS,EAEzBzB,EAAgBwE,SAAS,CAAE5D,IAAKP,EAAWoE,SAAU,YAGvDrE,WAAW+D,EAAqB,MA+HJO,MAIxBC,aAAenC,IACb,MAAMvJ,EAAcuJ,EAAEvJ,YACtBC,EAAeD,GACfd,IAAsBc,EAAc,GAC/B+D,GAAiBvB,IAAIxC,IAI1B2F,GAAsB3F,GACtB0F,GAAwB3B,KAJtB2B,GAAwB3B,KAM5BxE,WAAY2D,GACZ1D"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});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(null===o)return 0;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;exports.RotationManager=t,exports.rotationManager=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./zoomStateManager.js");class e{constructor(){this.rotations=new WeakMap,this.pageMap=new Map,this.rotationChangeListeners=new Set,this.pdfIdentifier=""}setPdfIdentifier(t){this.pdfIdentifier=t}registerPageElement(t,e){this.pageMap.get(t),this.pageMap.set(t,e);const o=this.getPersistedRotation(t);0!==o&&this.applyRotation(e,t,o)}unregisterPageElement(t){this.pageMap.delete(t)}getRotation(t){const e=this.pageMap.get(t);return e&&this.rotations.get(e)||0}rotatePageBy90(t){const e=this.pageMap.get(t);if(!e)return;const o=((this.rotations.get(e)||0)+90)%360;this.applyRotation(e,t,o)}setRotation(t,e){const o=(e%360+360)%360,i=this.pageMap.get(t);i&&this.applyRotation(i,t,o)}applyRotation(e,o,i){this.rotations.set(e,i);const n=e.closest(".rpv-core__page-layer");if(t.zoomStateManager.beginRotation(),n)if(0===i)n.style.transform="",n.style.transformOrigin="",n.style.transition="",n.style.pointerEvents="";else{n.style.transform=`rotate(${i}deg)`,n.style.transformOrigin="center center",n.style.transition="transform 0.2s ease",n.style.pointerEvents="auto";const e=()=>{n&&n instanceof HTMLElement&&(t.zoomStateManager.endRotation(),n.removeEventListener("transitionend",e))};n.addEventListener("transitionend",e,{once:!0})}this.notifyRotationChange(o,i),this.persistRotation(o,i)}onRotationChange(t){return this.rotationChangeListeners.add(t),()=>{this.rotationChangeListeners.delete(t)}}notifyRotationChange(t,e){this.rotationChangeListeners.forEach(o=>{try{o(t,e)}catch(t){console.error("Error in rotation change listener:",t)}})}getPersistedRotation(t){if(!this.pdfIdentifier)return 0;const e=`pdf-rotation-${this.pdfIdentifier}-${t}`,o=localStorage.getItem(e);if(null===o)return 0;if(!o)return 0;const i=parseInt(o,10);return Number.isFinite(i)?i:0}persistRotation(t,e){if(!this.pdfIdentifier)return;const o=`pdf-rotation-${this.pdfIdentifier}-${t}`;0===e?localStorage.removeItem(o):localStorage.setItem(o,e.toString())}loadPersistedRotations(t){this.pdfIdentifier&&t.forEach(t=>{const e=this.getPersistedRotation(t);if(0!==e){const o=this.pageMap.get(t);o&&this.applyRotation(o,t,e)}})}clearAll(){this.pageMap.forEach((t,e)=>{const o=t.closest(".rpv-core__page-layer");if(o&&(o.style.transform="",o.style.transformOrigin="",o.style.transition=""),this.pdfIdentifier){const t=`pdf-rotation-${this.pdfIdentifier}-${e}`;localStorage.removeItem(t)}}),this.pageMap.clear(),this.rotations=new WeakMap,t.zoomStateManager.reset()}resetPage(t){const e=this.pageMap.get(t);e&&this.applyRotation(e,t,0)}getRotatedPages(){const t=new Map;return this.pageMap.forEach((e,o)=>{const i=this.rotations.get(e);void 0!==i&&0!==i&&t.set(o,i)}),t}}const o=new e;exports.RotationManager=e,exports.rotationManager=o;
2
2
  //# sourceMappingURL=rotationManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rotationManager.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"rotationManager.js","sources":["../../../../src/features/PdfViewer/rotationManager.ts"],"sourcesContent":["import {zoomStateManager} from \"./zoomStateManager\";\n\nexport class RotationManager {\n private rotations: WeakMap<HTMLElement, number> = new WeakMap();\n private pageMap: Map<number, HTMLElement> = new Map();\n private rotationChangeListeners: Set<(pageNum: number, angle: number) => void> = new Set();\n private pdfIdentifier: string = '';\n\n setPdfIdentifier(identifier: string) {\n this.pdfIdentifier = identifier;\n }\n\n registerPageElement(pageNumber: number, element: HTMLElement) {\n const oldElement = this.pageMap.get(pageNumber);\n if (oldElement && oldElement !== element) {\n // Old element will be garbage collected\n // WeakMap will auto-clean the entry\n }\n\n this.pageMap.set(pageNumber, element);\n\n // If rotation exists in localStorage, apply it immediately\n const persistedRotation = this.getPersistedRotation(pageNumber);\n if (persistedRotation !== 0) {\n this.applyRotation(element, pageNumber, persistedRotation);\n }\n }\n\n unregisterPageElement(pageNumber: number) {\n this.pageMap.delete(pageNumber);\n }\n\n getRotation(pageNumber: number): number {\n const element = this.pageMap.get(pageNumber);\n if (!element) return 0;\n return this.rotations.get(element) || 0;\n }\n\n rotatePageBy90(pageNumber: number) {\n const element = this.pageMap.get(pageNumber);\n if (!element) return;\n\n const currentRotation = this.rotations.get(element) || 0;\n const nextRotation = (currentRotation + 90) % 360;\n\n this.applyRotation(element, pageNumber, nextRotation);\n }\n\n setRotation(pageNumber: number, angle: number) {\n const normalizedAngle = ((angle % 360) + 360) % 360;\n const element = this.pageMap.get(pageNumber);\n if (!element) return;\n\n this.applyRotation(element, pageNumber, normalizedAngle);\n }\n\n private applyRotation(element: HTMLElement, pageNumber: number, angle: number) {\n this.rotations.set(element, angle);\n\n const pageWrapper = element.closest('.rpv-core__page-layer') as HTMLElement;\n\n // Notify zoom state manager that rotation is starting\n // This prevents zoom calculations during CSS transition\n zoomStateManager.beginRotation();\n\n if (pageWrapper) {\n if (angle === 0) {\n pageWrapper.style.transform = '';\n pageWrapper.style.transformOrigin = '';\n pageWrapper.style.transition = '';\n // Ensure pointer-events are enabled when no rotation\n pageWrapper.style.pointerEvents = '';\n } else {\n pageWrapper.style.transform = `rotate(${angle}deg)`;\n pageWrapper.style.transformOrigin = 'center center';\n pageWrapper.style.transition = 'transform 0.2s ease';\n // Maintain pointer events during rotation to prevent interaction issues\n pageWrapper.style.pointerEvents = 'auto';\n \n // Add transitionend listener as a fallback to ensure zoom display is unfrozen after CSS transition\n const handleTransitionEnd = () => {\n if (!pageWrapper || !(pageWrapper instanceof HTMLElement)) {\n return;\n }\n zoomStateManager.endRotation();\n pageWrapper.removeEventListener('transitionend', handleTransitionEnd);\n };\n pageWrapper.addEventListener('transitionend', handleTransitionEnd, { once: true });\n }\n }\n\n this.notifyRotationChange(pageNumber, angle);\n\n this.persistRotation(pageNumber, angle);\n }\n\n onRotationChange(callback: (pageNum: number, angle: number) => void): () => void {\n this.rotationChangeListeners.add(callback);\n return () => {\n this.rotationChangeListeners.delete(callback);\n };\n }\n\n private notifyRotationChange(pageNum: number, angle: number) {\n this.rotationChangeListeners.forEach(listener => {\n try {\n listener(pageNum, angle);\n } catch (error) {\n console.error('Error in rotation change listener:', error);\n }\n });\n }\n\n private getPersistedRotation(pageNumber: number): number {\n if (!this.pdfIdentifier) return 0;\n const key = `pdf-rotation-${this.pdfIdentifier}-${pageNumber}`;\n const stored = localStorage.getItem(key);\n if (stored === null) return 0;\n if (!stored) return 0;\n const angle = parseInt(stored, 10);\n return Number.isFinite(angle) ? angle : 0;\n }\n\n private persistRotation(pageNumber: number, angle: number) {\n if (!this.pdfIdentifier) return;\n\n const key = `pdf-rotation-${this.pdfIdentifier}-${pageNumber}`;\n if (angle === 0) {\n localStorage.removeItem(key);\n } else {\n localStorage.setItem(key, angle.toString());\n }\n }\n\n loadPersistedRotations(pageNumbers: number[]) {\n if (!this.pdfIdentifier) return;\n\n pageNumbers.forEach(pageNum => {\n const stored = this.getPersistedRotation(pageNum);\n if (stored !== 0) {\n const element = this.pageMap.get(pageNum);\n if (element) {\n this.applyRotation(element, pageNum, stored);\n }\n }\n });\n }\n\n clearAll() {\n this.pageMap.forEach((element, pageNum) => {\n const pageWrapper = element.closest('.rpv-core__page-layer') as HTMLElement;\n if (pageWrapper) {\n pageWrapper.style.transform = '';\n pageWrapper.style.transformOrigin = '';\n pageWrapper.style.transition = '';\n }\n if (this.pdfIdentifier) {\n const key = `pdf-rotation-${this.pdfIdentifier}-${pageNum}`;\n localStorage.removeItem(key);\n }\n });\n this.pageMap.clear();\n this.rotations = new WeakMap();\n // Reset zoom state when clearing all rotations\n zoomStateManager.reset();\n }\n\n resetPage(pageNumber: number) {\n const element = this.pageMap.get(pageNumber);\n if (element) {\n this.applyRotation(element, pageNumber, 0);\n }\n }\n\n getRotatedPages(): Map<number, number> {\n const result = new Map<number, number>();\n this.pageMap.forEach((element, pageNum) => {\n const rotation = this.rotations.get(element);\n if (rotation !== undefined && rotation !== 0) {\n result.set(pageNum, rotation);\n }\n });\n return result;\n }\n}\n\nexport const rotationManager = new RotationManager();\n"],"names":["RotationManager","constructor","this","rotations","WeakMap","pageMap","Map","rotationChangeListeners","Set","pdfIdentifier","setPdfIdentifier","identifier","registerPageElement","pageNumber","element","get","set","persistedRotation","getPersistedRotation","applyRotation","unregisterPageElement","delete","getRotation","rotatePageBy90","nextRotation","setRotation","angle","normalizedAngle","pageWrapper","closest","zoomStateManager","beginRotation","style","transform","transformOrigin","transition","pointerEvents","handleTransitionEnd","HTMLElement","endRotation","removeEventListener","addEventListener","once","notifyRotationChange","persistRotation","onRotationChange","callback","add","pageNum","forEach","listener","error","console","key","stored","localStorage","getItem","parseInt","Number","isFinite","removeItem","setItem","toString","loadPersistedRotations","pageNumbers","clearAll","clear","reset","resetPage","getRotatedPages","result","rotation","rotationManager"],"mappings":"2GAEO,MAAMA,EAAN,WAAAC,GACGC,KAAAC,cAA8CC,QAC9CF,KAAAG,YAAwCC,IACxCJ,KAAAK,4BAA6EC,IACrFN,KAAQO,cAAwB,EAAA,CAEhC,gBAAAC,CAAiBC,GACfT,KAAKO,cAAgBE,CACvB,CAEA,mBAAAC,CAAoBC,EAAoBC,GACnBZ,KAAKG,QAAQU,IAAIF,GAM/BX,KAAAG,QAAQW,IAAIH,EAAYC,GAGvB,MAAAG,EAAoBf,KAAKgB,qBAAqBL,GAC1B,IAAtBI,GACGf,KAAAiB,cAAcL,EAASD,EAAYI,EAE5C,CAEA,qBAAAG,CAAsBP,GACfX,KAAAG,QAAQgB,OAAOR,EACtB,CAEA,WAAAS,CAAYT,GACV,MAAMC,EAAUZ,KAAKG,QAAQU,IAAIF,GAC7B,OAACC,GACEZ,KAAKC,UAAUY,IAAID,IADL,CAEvB,CAEA,cAAAS,CAAeV,GACb,MAAMC,EAAUZ,KAAKG,QAAQU,IAAIF,GACjC,IAAKC,EAAS,OAEd,MACMU,IADkBtB,KAAKC,UAAUY,IAAID,IAAY,GACf,IAAM,IAEzCZ,KAAAiB,cAAcL,EAASD,EAAYW,EAC1C,CAEA,WAAAC,CAAYZ,EAAoBa,GACxB,MAAAC,GAAoBD,EAAQ,IAAO,KAAO,IAC1CZ,EAAUZ,KAAKG,QAAQU,IAAIF,GAC5BC,GAEA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("react"),n=require("@react-pdf-viewer/search"),i=require("@react-pdf-viewer/page-navigation"),o=require("@react-pdf-viewer/zoom"),a=require("@react-pdf-viewer/highlight");exports.PdfHighlightControls=function(l,u,c,h,g,s,f,p){void 0===f&&(f="yellow"),void 0===p&&(p="#F6D739");var d=r.useState(0),v=d[0],m=d[1],x=r.useRef(!1),y=r.useState(0),_=y[0],T=y[1];r.useRef([]);var M=function(e){return e.replace(/[^\S\n]+/g," ").trim()},b=function(e){return(e||"").toLowerCase().replace(/\u00ad/g,"").replace(/[""]/g,'"').replace(/['']/g,"'").replace(/[\u2013\u2014]/g,"-").replace(/-/g," ").replace(/[^\w\s]/g,"").replace(/\s+/g," ").trim()},w=function(e){var t=e.trim(),r=(t=(t=t.replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/[\u00A0\u2009\u202F]/g," ")).replace(/^[-•]\s+/,"")).match(/^((\d+(?:\.\d+)*[.)]?)|[A-Za-z][.)]|\([A-Za-z0-9]+\)|(?:i|ii|iii|iv|v|vi|vii|viii|ix|x)[.)])\s*/i);return r?t.slice(r[0].length).trim():t},I=function(e){var t=b(e),r=t.replace(/\s+/g,""),n=new Set;return t&&n.add(t),r&&n.add(r),n},S=function(e){return e.replace(/\\([''])/g,"$1").replace(/\]\s*\n\s*\(/g,"](").replace(/&[#\w]+;/g,function(e){return t=e,(r=document.createElement("textarea")).innerHTML=t,r.value;var t,r}).replace(/<br\s*\/?>/gi,"\n").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1").replace(/`([^`]+)`/g,"$1")},A=function(e){return e?S(e).split(/\n+/).map(w).flatMap(function(e){var t=e.match(/^\s*\|(.+)\|\s*$/);return t?t[1].split("|").map(function(e){return e.trim()}).filter(Boolean):[e]}).map(function(e){return M(function(e){return e.replace(/(^|\W)[*_]{1,3}([^*_]+)[*_]{1,3}(?=\W|$)/g,"$1$2")}(e))}).filter(Boolean):[]},q=Object.keys(u).map(Number).sort(function(e,t){return e-t}),E=r.useMemo(function(){return g?s.length:g?0:Object.values(u).filter(function(e){return e>0}).length},[s,u]),B=function(t){if(c.current){var r=c.current.querySelector('[data-testid="search__highlights-'.concat(t,'"]'));if(r){var n=Array.from(r.querySelectorAll(".rpv-search__highlight"));if(0!==n.length){var i=C.map(I),o=P.map(I);if(0!==i.length||0!==o.length){var a=n.map(function(t){var r=function(e){var t=e.getBoundingClientRect();if(t.height>0||t.width>0)return{top:t.top,left:t.left,right:t.right};var r=e.offsetTop,n=e.offsetLeft;return{top:r,left:n,right:n+e.offsetWidth}}(t),n=(t.textContent||"").trim(),i=(t.getAttribute("title")||"").trim(),o=n||i;return e.__assign({el:t,text:o},r)}).filter(function(e){return e.text.length>0}).sort(function(e,t){return e.top-t.top||e.left-t.left});if(0!==a.length){var u=[],h=null,g=[],s=function(){if(h){var e=g.join(" ");h.title=b(e),h.title&&u.push(h),h=null,g=[]}};if(a.forEach(function(e){if(!h)return h={title:"",elements:[e.el],lastTop:e.top,lastRight:e.right},void(g=[e.text]);var t=Math.abs(e.top-h.lastTop)<=5,r=e.left<=h.lastRight+28;t&&r?(h.elements.push(e.el),h.lastTop=e.top,h.lastRight=Math.max(h.lastRight,e.right),g.push(e.text)):(s(),h={title:"",elements:[e.el],lastTop:e.top,lastRight:e.right},g=[e.text])}),s(),0!==u.length){for(var f=function(e,t){if(!e)return!1;if(t.has(e))return!0;for(var r=e.replace(/\s+/g,""),n=0,i=Array.from(t);n<i.length;n++){var o=i[n];if(o){var a=o.replace(/\s+/g,"");if(a===r)return!0;if(o.length>=8&&e.length>=5&&o.includes(e))return!0;if(a.length>=8&&r.length>=5&&a.includes(r))return!0;if(e.length>=10&&o.length>=8&&e.includes(o))return!0;if(r.length>=10&&a.length>=8&&r.includes(a))return!0}}return!1},p=0,d=new Set,v=function(e){if(!e||e.length<8)return null;for(var t=e.replace(/\s+/g,""),r=0;r<u.length;r++)for(var n="",i="",o=new Set,a=r;a<u.length&&a<r+20;a++){var l=u[a].title;if(n=n?"".concat(n," ").concat(l):l,i=i?"".concat(i).concat(l.replace(/\s+/g,"")):l.replace(/\s+/g,""),o.add(a),n.includes(e)||i.includes(t))return o;if(n.length>=15&&(e.includes(n)||t.includes(i)))return o;if(n.length>e.length+150)break}return null},m=0,x=Array.from(new Set(e.__spreadArray(e.__spreadArray([],C,!0),P,!0).map(b).filter(function(e){return e.length>=8}))).sort(function(e,t){return t.length-e.length});m<x.length;m++){var y=v(x[m]);y&&y.size>0&&(y.forEach(function(e){return d.add(e)}),p=d.size)}if(0===p){var _=function(e){if(0===e.length)return null;for(var t=null,r=0,n=e;r<n.length;r++)for(var i=n[r],o=0,a=Array.from(i);o<a.length;o++){var l=a[o];if(l&&!(l.length<5))for(var c=l.replace(/\s+/g,""),h=0;h<u.length;h++)for(var g="",s="",f=new Set,p=h;p<u.length&&p<h+15;p++){var d=u[p].title;if(g=g?"".concat(g," ").concat(d):d,s=s?"".concat(s).concat(d.replace(/\s+/g,"")):d.replace(/\s+/g,""),f.add(p),g.includes(l)||s.includes(c)){var v=Math.max(0,g.length-l.length);(!t||v<t.extra)&&(t={blocks:new Set(f),extra:v});break}if(g.length>l.length+120)break}}return t?t.blocks:null}(i);_&&_.size>0&&(_.forEach(function(e){return d.add(e)}),p=d.size)}var T=function(e){if(e.length<2)return 40;for(var t=[],r=1;r<e.length;r++){var n=Math.abs(e[r].lastTop-e[r-1].lastTop);n>0&&t.push(n)}if(0===t.length)return 40;t.sort(function(e,t){return e-t});var i=t[Math.floor(t.length/2)],o=Math.round(2.25*i);return Math.min(60,Math.max(24,o))}(u),M=P.map(b).filter(function(e){return e.length>=8}),w=M.map(function(e){return e.split(/\s+/).filter(function(e){return e.length>=2})});if(0===p)for(var S=o,A=0;A<u.length;A++)for(var q=u[A].title,E=0;E<S.length;E++)if(f(q,S[E])){for(var B=0,j=new Set,z=E,k=A-1,R=A;R<u.length&&z<S.length;R++){if(f(u[R].title,S[z])){if(k>=0){var H=u[k].lastTop,N=u[R].lastTop;if(Math.abs(N-H)>T)break}B++,j.add(R),k=R,z++}else if(z>0&&f(u[R].title,S[z-1])){H=u[k].lastTop,N=u[R].lastTop;Math.abs(N-H)<=3&&(j.add(R),k=R)}if(R-k>6)break}B>p&&(p=B,d=j)}if(p<Math.min(3,M.length)&&M.length>0){var $=new Set;u.forEach(function(e,t){var r=e.title.split(/\s+/).filter(function(e){return e.length>=2});if(!(r.length<2))for(var n=new Set(r),i=0,o=w;i<o.length;i++){var a=o[i];if(!(a.length<2)){for(var l=0,u=0,c=a;u<c.length;u++){var h=c[u];n.has(h)&&l++}var g=l/a.length;if(l>=3||g>=.5){$.add(t);break}}}}),$.size>0&&(d=$,p=Math.max(p,$.size))}var O=new Set;if(F.forEach(function(e){var t=b(e);t&&(O.add(t),O.add(t.replace(/\s+/g,"")))}),0===p){var Z=new Set;if(u.forEach(function(e,t){var r=e.title.replace(/\s+/g,"");if(O.has(e.title)||O.has(r))Z.add(t);else for(var n=Array.from(O),i=0;i<n.length;i++){var o=n[i];if(o.length>=10&&o.includes(e.title)&&e.title.length>=5){Z.add(t);break}}}),0===Z.size)return 0;d=Z}u.forEach(function(e,t){var r=d.has(t);e.elements.forEach(function(e){r?(e.classList.add("verified-match"),e.style.display=""):(e.style.display="none",e.classList.remove("verified-match"))})});var L=[];return u.forEach(function(e,t){d.has(t)&&e.elements.forEach(function(e){return L.push(e)})}),requestAnimationFrame(function(){var e=L.map(function(e){return{el:e,rect:e.getBoundingClientRect()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0}).sort(function(e,t){return t.rect.width*t.rect.height-e.rect.width*e.rect.height}),t=[];e.forEach(function(e){var r=e.el,n=e.rect;t.some(function(e){return t=e.rect,r=n,i=Math.max(0,Math.min(t.right,r.right)-Math.max(t.left,r.left))*Math.max(0,Math.min(t.bottom,r.bottom)-Math.max(t.top,r.top)),((o=Math.min(t.width*t.height,r.width*r.height))>0?i/o:0)>.5;var t,r,i,o})?(r.style.display="none",r.classList.remove("verified-match")):t.push({el:r,rect:n})})}),console.groupCollapsed("[debug: PDF ordered matching - Page ".concat(t,"]")),console.log("input->",l),console.log("processed sentences->",C),console.log("processed lines->",P),console.log("Expected sentence count:",i.length),console.log("Expected line count:",o.length),console.log("Matched sequence length:",p),console.log("blocksToKeep",d,"size",d.size),console.groupEnd(),d.size}}}}}}},j=function(e){c.current&&c.current.querySelectorAll(".rpv-search__highlights").forEach(function(t){var r=t.getAttribute("data-testid"),n=parseInt((null==r?void 0:r.replace(/search__highlights-/g,""))||"-1"),i=t.querySelectorAll(".rpv-search__highlight");e.has(n)||i.forEach(function(e){e.style.display="none"})})},z=l.map(function(e){return function(e){return e?S(e).split(/\n{2,}/).map(function(e){return A(e).join(" ")}).map(function(e){return M(e)}).filter(Boolean):[]}(e)}).flat(),k=l.map(function(e){return A(e)}).flat(),R=z.some(function(e){return e.length>=3})?3:1,C=z.filter(function(e){return e.length>=R}),P=k.filter(function(e){return e.length>=R}),H=P.flatMap(function(e){return function(e,t,r){void 0===t&&(t=6),void 0===r&&(r=4);var n=e.split(/\s+/).filter(Boolean);if(n.length<=t)return[];for(var i=[],o=0;o+t<=n.length;o+=r)i.push(n.slice(o,o+t).join(" "));return n.length>t&&(n.length-t)%r!==0&&i.push(n.slice(n.length-t).join(" ")),i}(e)}),F=Array.from(new Set(e.__spreadArray(e.__spreadArray(e.__spreadArray([],C,!0),P,!0),H,!0).flatMap(function(e){var t=M(e.replace(/[\u00A0\u2009\u202F]/g," ").replace(/\u00ad/g,"").replace(/[""]/g,'"').replace(/['']/g,"'"));if(!t)return[];var r=t.replace(/[\u2013\u2014]/g,"-"),n=M(r.replace(/(\w)-\s+(\w)/g,"$1$2")),i=M(r.replace(/-/g," ")),o=M(r.replace(/-/g,"")),a=M(t.replace(/[^\w\s]/g,"")),l=new Set([t,r,n,i,o,a]);return Array.from(l).filter(Boolean)}))).filter(function(e){var t=e.split(/\s+/).filter(Boolean);return!(e.length<R)&&(t.length>=3||e.length>=12)}),N=n.searchPlugin({keyword:F}),$=i.pageNavigationPlugin(),O=o.zoomPlugin(),Z=N.jumpToMatch,L=$.jumpToPage,D=O.zoomTo,W=O.ZoomInButton,K=O.ZoomOutButton,J=O.ZoomPopover,V=r.useMemo(function(){return function(t){if(0===t.length)return[];var r=new Map;t.forEach(function(t,n){var i=null!=t.pageNumber?t.pageNumber-1:t.pageIndex;r.has(i)||r.set(i,[]),r.get(i).push(e.__assign(e.__assign({},t),{originalIndex:n}))});var n=[];return r.forEach(function(t){for(var r=e.__spreadArray([],t,!0).sort(function(e,t){return e.top!==t.top?e.top-t.top:e.left-t.left}),i=new Array(r.length).fill(!1),o=0;o<r.length;o++)if(!i[o]){var a=r[o],l=a.left,u=a.top,c=a.width,h=a.height,g=a.pageIndex,s=a.pageNumber,f=l+c,p=u+h,d=[r[o].originalIndex];i[o]=!0;for(var v=!0;v;){v=!1;for(var m=o+1;m<r.length;m++)if(!i[m]){var x=r[m],y=x.left+x.width,_=x.top+x.height,T=Math.max(0,Math.min(f,y)-Math.max(l,x.left))*Math.max(0,Math.min(p,_)-Math.max(u,x.top)),M=Math.max(c*h,1e-4),b=Math.max(x.width*x.height,1e-4),w=Math.min(M,b);(w>0?T/w:0)>=.8&&(l=Math.min(l,x.left),u=Math.min(u,x.top),c=(f=Math.max(f,y))-l,h=(p=Math.max(p,_))-u,d.push(x.originalIndex),i[m]=!0,v=!0)}}n.push({pageIndex:g,pageNumber:s,left:l,top:u,width:c,height:h,originalIndexes:d})}}),n}(s)},[s]),G=a.highlightPlugin({renderHighlights:function(e){return t.jsx(t.Fragment,{children:V.filter(function(t){return null!=t.pageNumber?t.pageNumber-1===e.pageIndex:t.pageIndex===e.pageIndex}).map(function(e){var r=e.originalIndexes.includes(_);return t.jsx("div",{style:{position:"absolute",left:"".concat(e.left,"%"),top:"".concat(e.top+.08*e.height,"%"),width:"".concat(e.width,"%"),height:"".concat(.95*e.height,"%"),background:r?p:f,opacity:r?.7:.4,transition:"background 0.2s, opacity 0.2s",border:r?"1px solid ".concat("red"):"1px solid transparent"}},e.originalIndexes.join("-"))})})}}),Q=function(){if(!x.current)try{Z(0),x.current=!0;var e=s[0];e&&g&&X(e.pageIndex,e.top)}catch(e){requestAnimationFrame(Q)}},U=function(e,t){if(c.current&&c.current.querySelector(".rpv-core__viewer")){var r=-1,n=function(){var i,o,a=null===(i=c.current)||void 0===i?void 0:i.querySelector(".rpv-core__inner-pages");if(a){if(a.scrollTop!==r)return r=a.scrollTop,void setTimeout(n,100);var l=null===(o=c.current)||void 0===o?void 0:o.querySelector('[data-testid="core__page-layer-'.concat(e,'"]'));if(l){var u=l.querySelectorAll(".rpv-search__highlight")[t];if(u){var h=a.getBoundingClientRect(),g=u.getBoundingClientRect(),s=a.scrollTop+(g.top-h.top)-a.clientHeight/2+g.height/2;a.scrollTo({top:s,behavior:"smooth"})}}}};setTimeout(n,300)}},X=function(e,t,r){if(void 0===r&&(r=0),c.current){var n=0,i=function(){var o,a;if(!(++n>60)){var l=null===(o=c.current)||void 0===o?void 0:o.querySelector(".rpv-core__inner-pages");if(l){var u=null===(a=c.current)||void 0===a?void 0:a.querySelector('[data-testid="core__page-layer-'.concat(e,'"]'));if(u){var h=u.getBoundingClientRect();if(0!==h.height){var g=l.getBoundingClientRect(),s=t/100*h.height,f=r/100*h.height,p=h.top-g.top+s,d=p+f;if(!(p>=80&&d<=l.clientHeight-80)){var v=p<80?l.scrollTop+p-80:l.scrollTop+d-l.clientHeight+80;l.scrollTo({top:v,behavior:"smooth"})}}else setTimeout(i,100)}else setTimeout(i,100)}else setTimeout(i,100)}};setTimeout(i,100)}},Y=r.useMemo(function(){var e={};return q.forEach(function(t,r){var n=u[t];n>0&&(e[n]||(e[n]=[]),e[n].push(r))}),e},[q,u]),ee=function(e){var t=u[q[e]];return(Y[t]||[]).indexOf(e)},te=function(e,t,r){if(void 0===r&&(r=0),c.current){var n=-1,i=0,o=function(){var a,l;if(!(++i>60)){var u=null===(a=c.current)||void 0===a?void 0:a.querySelector(".rpv-core__inner-pages");if(u){if(u.scrollTop!==n)return n=u.scrollTop,void setTimeout(o,100);var h=null===(l=c.current)||void 0===l?void 0:l.querySelector('[data-testid="core__page-layer-'.concat(e,'"]'));if(h){var g=h.getBoundingClientRect();if(0!==g.height){var s=u.getBoundingClientRect(),f=t/100*g.height,p=r/100*g.height,d=g.top-s.top+f,v=d+p;if(!(d>=80&&v<=u.clientHeight-80)){var m=d<80?u.scrollTop+d-80:u.scrollTop+v-u.clientHeight+80;u.scrollTo({top:m,behavior:"instant"})}}else setTimeout(o,100)}else setTimeout(o,100)}else setTimeout(o,100)}};setTimeout(o,100)}};return{setHighlightIndex:m,highlightIndex:v,cursorIndex:_,setCursorIndex:T,orderedKeys:q,totalHighlights:E,getValidPosition:function(e){if(g)return e+1;if(!u)return 0;for(var t=0,r=0;r<=e;r++)u[q[r]]>0&&t++;return t},tryJump:Q,jumpToPage:L,zoomTo:D,hideNonTargetHighlights:j,deduplicateHighlights:B,scrollToCoord:X,plugins:[g?G:N,$,O],controls:{ZoomInButton:W,ZoomOutButton:K,ZoomPopover:J,zoomTo:D,goToNext:function(){if(g&&s)for(var e=_+1;e<s.length;e++){var t=s[e],r=s[_];return T(e),void(t.pageIndex!==r.pageIndex?(L(t.pageIndex),te(t.pageIndex,t.top,t.height)):X(t.pageIndex,t.top,t.height))}else{var n=function(e){var t=q[e];if(u[t]>0){var r=u[t]-1,n=ee(e);return T(e),L(u[t]-1),U(r,n),setTimeout(function(){B(r)},500),1===Object.keys(u).length&&j(h),{value:void 0}}};for(e=_+1;e<q.length;e++){var i=n(e);if("object"==typeof i)return i.value}}},goToPrevious:function(){if(g&&s)for(var e=_-1;e>=0;e--){var t=s[e],r=s[_];return T(e),void(t.pageIndex!==r.pageIndex?(L(t.pageIndex),te(t.pageIndex,t.top,t.height)):X(t.pageIndex,t.top,t.height))}else{var n=function(e){var t=q[e];if(u[t]>0){var r=u[t]-1,n=ee(e);return T(e),L(u[t]-1),U(r,n),setTimeout(function(){B(r)},500),1===Object.keys(u).length&&j(h),{value:void 0}}};for(e=_-1;e>=0;e--){var i=n(e);if("object"==typeof i)return i.value}}}}}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("@react-pdf-viewer/search"),n=require("@react-pdf-viewer/page-navigation"),o=require("@react-pdf-viewer/zoom"),l=require("@react-pdf-viewer/highlight");exports.PdfHighlightControls=(i,s,a,c,h,g,u="yellow",p="#F6D739")=>{const[f,d]=t.useState(0),m=t.useRef(!1),[x,v]=t.useState(0);t.useRef([]);const T=e=>e.replace(/[^\S\n]+/g," ").trim(),y=e=>(e||"").toLowerCase().replace(/\u00ad/g,"").replace(/[""]/g,'"').replace(/['']/g,"'").replace(/[\u2013\u2014]/g,"-").replace(/-/g," ").replace(/[^\w\s]/g,"").replace(/\s+/g," ").trim(),M=e=>{let t=e.trim();t=t.replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/[\u00A0\u2009\u202F]/g," "),t=t.replace(/^[-•]\s+/,"");const r=t.match(/^((\d+(?:\.\d+)*[.)]?)|[A-Za-z][.)]|\([A-Za-z0-9]+\)|(?:i|ii|iii|iv|v|vi|vii|viii|ix|x)[.)])\s*/i);return r?t.slice(r[0].length).trim():t},w=e=>{const t=y(e),r=t.replace(/\s+/g,""),n=new Set;return t&&n.add(t),r&&n.add(r),n},b=e=>e.replace(/\\([''])/g,"$1").replace(/\]\s*\n\s*\(/g,"](").replace(/&[#\w]+;/g,e=>(e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value})(e)).replace(/<br\s*\/?>/gi,"\n").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1").replace(/`([^`]+)`/g,"$1"),_=e=>{if(!e)return[];return b(e).split(/\n+/).map(M).flatMap(e=>{const t=e.match(/^\s*\|(.+)\|\s*$/);return t?t[1].split("|").map(e=>e.trim()).filter(Boolean):[e]}).map(e=>T((e=>e.replace(/(^|\W)[*_]{1,3}([^*_]+)[*_]{1,3}(?=\W|$)/g,"$1$2"))(e))).filter(Boolean)},S=Object.keys(s).map(Number).sort((e,t)=>e-t),I=t.useMemo(()=>h?g.length:h?0:Object.values(s).filter(e=>e>0).length,[g,s]),$=e=>{if(!a.current)return;const t=a.current.querySelector(`[data-testid="search__highlights-${e}"]`);if(!t)return;const r=Array.from(t.querySelectorAll(".rpv-search__highlight"));if(0===r.length)return;const n=j.map(w),o=k.map(w);if(0===n.length&&0===o.length)return;const l=r.map(e=>{const t=(e=>{const t=e.getBoundingClientRect();if(t.height>0||t.width>0)return{top:t.top,left:t.left,right:t.right};const r=e.offsetTop,n=e.offsetLeft;return{top:r,left:n,right:n+e.offsetWidth}})(e),r=(e.textContent||"").trim(),n=(e.getAttribute("title")||"").trim();return{el:e,text:r||n,...t}}).filter(e=>e.text.length>0).sort((e,t)=>e.top-t.top||e.left-t.left);if(0===l.length)return;const s=[];let c=null,h=[];const g=()=>{if(!c)return;const e=h.join(" ");c.title=y(e),c.title&&s.push(c),c=null,h=[]};if(l.forEach(e=>{if(!c)return c={title:"",elements:[e.el],lastTop:e.top,lastRight:e.right},void(h=[e.text]);const t=Math.abs(e.top-c.lastTop)<=5,r=e.left<=c.lastRight+28;t&&r?(c.elements.push(e.el),c.lastTop=e.top,c.lastRight=Math.max(c.lastRight,e.right),h.push(e.text)):(g(),c={title:"",elements:[e.el],lastTop:e.top,lastRight:e.right},h=[e.text])}),g(),0===s.length)return;const u=(e,t)=>{if(!e)return!1;if(t.has(e))return!0;const r=e.replace(/\s+/g,"");for(const n of Array.from(t)){if(!n)continue;const t=n.replace(/\s+/g,"");if(t===r)return!0;if(n.length>=8&&e.length>=5&&n.includes(e))return!0;if(t.length>=8&&r.length>=5&&t.includes(r))return!0;if(e.length>=10&&n.length>=8&&e.includes(n))return!0;if(r.length>=10&&t.length>=8&&r.includes(t))return!0}return!1};let p=0,f=new Set;const d=Array.from(new Set([...j,...k].map(y).filter(e=>e.length>=8))).sort((e,t)=>t.length-e.length),m=e=>{if(!e||e.length<8)return null;const t=e.replace(/\s+/g,"");for(let r=0;r<s.length;r++){let n="",o="";const l=new Set;for(let i=r;i<s.length&&i<r+20;i++){const r=s[i].title;if(n=n?`${n} ${r}`:r,o=o?`${o}${r.replace(/\s+/g,"")}`:r.replace(/\s+/g,""),l.add(i),n.includes(e)||o.includes(t))return l;if(n.length>=15&&(e.includes(n)||t.includes(o)))return l;if(n.length>e.length+150)break}}return null};for(const e of d){const t=m(e);t&&t.size>0&&(t.forEach(e=>f.add(e)),p=f.size)}if(0===p){const e=(e=>{if(0===e.length)return null;let t=null;for(const r of e)for(const e of Array.from(r)){if(!e||e.length<5)continue;const r=e.replace(/\s+/g,"");for(let n=0;n<s.length;n++){let o="",l="";const i=new Set;for(let a=n;a<s.length&&a<n+15;a++){const n=s[a].title;if(o=o?`${o} ${n}`:n,l=l?`${l}${n.replace(/\s+/g,"")}`:n.replace(/\s+/g,""),i.add(a),o.includes(e)||l.includes(r)){const r=Math.max(0,o.length-e.length);(!t||r<t.extra)&&(t={blocks:new Set(i),extra:r});break}if(o.length>e.length+120)break}}}return t?t.blocks:null})(n);e&&e.size>0&&(e.forEach(e=>f.add(e)),p=f.size)}const x=(e=>{if(e.length<2)return 40;const t=[];for(let r=1;r<e.length;r++){const n=Math.abs(e[r].lastTop-e[r-1].lastTop);n>0&&t.push(n)}if(0===t.length)return 40;t.sort((e,t)=>e-t);const r=t[Math.floor(t.length/2)],n=Math.round(2.25*r);return Math.min(60,Math.max(24,n))})(s),v=k.map(y).filter(e=>e.length>=8),T=v.map(e=>e.split(/\s+/).filter(e=>e.length>=2));if(0===p){const e=o;for(let t=0;t<s.length;t++){const r=s[t].title;for(let n=0;n<e.length;n++){if(!u(r,e[n]))continue;let o=0;const l=new Set;let i=n,a=t-1;for(let r=t;r<s.length&&i<e.length;r++){if(u(s[r].title,e[i])){if(a>=0){const e=s[a].lastTop,t=s[r].lastTop;if(Math.abs(t-e)>x)break}o++,l.add(r),a=r,i++}else if(i>0&&u(s[r].title,e[i-1])){const e=s[a].lastTop,t=s[r].lastTop;Math.abs(t-e)<=3&&(l.add(r),a=r)}if(r-a>6)break}o>p&&(p=o,f=l)}}}if(p<Math.min(3,v.length)&&v.length>0){const e=new Set;s.forEach((t,r)=>{const n=t.title.split(/\s+/).filter(e=>e.length>=2);if(n.length<2)return;const o=new Set(n);for(const t of T){if(t.length<2)continue;let n=0;for(const e of t)o.has(e)&&n++;const l=n/t.length;if(n>=3||l>=.5){e.add(r);break}}}),e.size>0&&(f=e,p=Math.max(p,e.size))}const M=new Set;if(B.forEach(e=>{const t=y(e);t&&(M.add(t),M.add(t.replace(/\s+/g,"")))}),0===p){const e=new Set;if(s.forEach((t,r)=>{const n=t.title.replace(/\s+/g,"");if(M.has(t.title)||M.has(n))return void e.add(r);const o=Array.from(M);for(let n=0;n<o.length;n++){const l=o[n];if(l.length>=10&&l.includes(t.title)&&t.title.length>=5){e.add(r);break}}}),0===e.size)return 0;f=e}s.forEach((e,t)=>{const r=f.has(t);e.elements.forEach(e=>{r?(e.classList.add("verified-match"),e.style.display=""):(e.style.display="none",e.classList.remove("verified-match"))})});const b=[];return s.forEach((e,t)=>{f.has(t)&&e.elements.forEach(e=>b.push(e))}),requestAnimationFrame(()=>{const e=b.map(e=>({el:e,rect:e.getBoundingClientRect()})).filter(e=>e.rect.width>0&&e.rect.height>0).sort((e,t)=>t.rect.width*t.rect.height-e.rect.width*e.rect.height),t=[];e.forEach(({el:e,rect:r})=>{t.some(e=>((e,t)=>{const r=Math.max(0,Math.min(e.right,t.right)-Math.max(e.left,t.left))*Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top)),n=Math.min(e.width*e.height,t.width*t.height);return n>0?r/n:0})(e.rect,r)>.5)?(e.style.display="none",e.classList.remove("verified-match")):t.push({el:e,rect:r})})}),console.groupCollapsed(`[debug: PDF ordered matching - Page ${e}]`),console.log("input->",i),console.log("processed sentences->",j),console.log("processed lines->",k),console.log("Expected sentence count:",n.length),console.log("Expected line count:",o.length),console.log("Matched sequence length:",p),console.log("blocksToKeep",f,"size",f.size),console.groupEnd(),f.size},q=e=>{if(!a.current)return;a.current.querySelectorAll(".rpv-search__highlights").forEach(t=>{const r=t.getAttribute("data-testid"),n=parseInt(r?.replace(/search__highlights-/g,"")||"-1"),o=t.querySelectorAll(".rpv-search__highlight");e.has(n)||o.forEach(e=>{e.style.display="none"})})},E=i.map(e=>(e=>e?b(e).split(/\n{2,}/).map(e=>_(e).join(" ")).map(e=>T(e)).filter(Boolean):[])(e)).flat(),A=i.map(e=>_(e)).flat(),z=E.some(e=>e.length>=3)?3:1,j=E.filter(e=>e.length>=z),k=A.filter(e=>e.length>=z),C=k.flatMap(e=>((e,t=6,r=4)=>{const n=e.split(/\s+/).filter(Boolean);if(n.length<=t)return[];const o=[];for(let e=0;e+t<=n.length;e+=r)o.push(n.slice(e,e+t).join(" "));return n.length>t&&(n.length-t)%r!==0&&o.push(n.slice(n.length-t).join(" ")),o})(e)),B=Array.from(new Set([...j,...k,...C].flatMap(e=>{const t=T(e.replace(/[\u00A0\u2009\u202F]/g," ").replace(/\u00ad/g,"").replace(/[""]/g,'"').replace(/['']/g,"'"));if(!t)return[];const r=t.replace(/[\u2013\u2014]/g,"-"),n=T(r.replace(/(\w)-\s+(\w)/g,"$1$2")),o=T(r.replace(/-/g," ")),l=T(r.replace(/-/g,"")),i=T(t.replace(/[^\w\s]/g,"")),s=new Set([t,r,n,o,l,i]);return Array.from(s).filter(Boolean)}))).filter(e=>{const t=e.split(/\s+/).filter(Boolean);return!(e.length<z)&&(t.length>=3||e.length>=12)}),R=r.searchPlugin({keyword:B}),P=n.pageNavigationPlugin(),H=o.zoomPlugin(),{jumpToMatch:F}=R,{jumpToPage:N}=P,{zoomTo:L,CurrentScale:O,ZoomPopover:Z}=H,D=t.useMemo(()=>(e=>{if(0===e.length)return[];const t=new Map;e.forEach((e,r)=>{const n=null!=e.pageNumber?e.pageNumber-1:e.pageIndex;t.has(n)||t.set(n,[]),t.get(n).push({...e,originalIndex:r})});const r=[];return t.forEach(e=>{const t=[...e].sort((e,t)=>e.top!==t.top?e.top-t.top:e.left-t.left),n=new Array(t.length).fill(!1);for(let e=0;e<t.length;e++){if(n[e])continue;let{left:o,top:l,width:i,height:s,pageIndex:a,pageNumber:c}=t[e],h=o+i,g=l+s;const u=[t[e].originalIndex];n[e]=!0;let p=!0;for(;p;){p=!1;for(let r=e+1;r<t.length;r++){if(n[r])continue;const e=t[r],a=e.left+e.width,c=e.top+e.height,f=Math.max(0,Math.min(h,a)-Math.max(o,e.left))*Math.max(0,Math.min(g,c)-Math.max(l,e.top)),d=Math.max(i*s,1e-4),m=Math.max(e.width*e.height,1e-4),x=Math.min(d,m);(x>0?f/x:0)>=.8&&(o=Math.min(o,e.left),l=Math.min(l,e.top),h=Math.max(h,a),g=Math.max(g,c),i=h-o,s=g-l,u.push(e.originalIndex),n[r]=!0,p=!0)}}r.push({pageIndex:a,pageNumber:c,left:o,top:l,width:i,height:s,originalIndexes:u})}}),r})(g),[g]),W=l.highlightPlugin({renderHighlights:t=>e.jsx(e.Fragment,{children:D.filter(e=>null!=e.pageNumber?e.pageNumber-1===t.pageIndex:e.pageIndex===t.pageIndex).map(t=>{const r=t.originalIndexes.includes(x);return e.jsx("div",{style:{position:"absolute",left:`${t.left}%`,top:`${t.top+.08*t.height}%`,width:`${t.width}%`,height:.95*t.height+"%",background:r?p:u,opacity:r?.7:.4,transition:"background 0.2s, opacity 0.2s",border:r?"1px solid red":"1px solid transparent"}},t.originalIndexes.join("-"))})})}),K=()=>{if(!m.current)try{F(0),m.current=!0;const e=g[0];e&&h&&V(e.pageIndex,e.top)}catch{requestAnimationFrame(K)}},J=(e,t)=>{if(!a.current)return;if(!a.current.querySelector(".rpv-core__viewer"))return;let r=-1;const n=()=>{const o=a.current?.querySelector(".rpv-core__inner-pages");if(!o)return;if(o.scrollTop!==r)return r=o.scrollTop,void setTimeout(n,100);const l=a.current?.querySelector(`[data-testid="core__page-layer-${e}"]`);if(!l)return;const i=l.querySelectorAll(".rpv-search__highlight")[t];if(!i)return;const s=o.getBoundingClientRect(),c=i.getBoundingClientRect(),h=o.scrollTop+(c.top-s.top)-o.clientHeight/2+c.height/2;o.scrollTo({top:h,behavior:"smooth"})};setTimeout(n,300)},V=(e,t,r=0)=>{if(!a.current)return;let n=0;const o=()=>{if(++n>60)return;const l=a.current?.querySelector(".rpv-core__inner-pages");if(!l)return void setTimeout(o,100);const i=a.current?.querySelector(`[data-testid="core__page-layer-${e}"]`);if(!i)return void setTimeout(o,100);const s=i.getBoundingClientRect();if(0===s.height)return void setTimeout(o,100);const c=l.getBoundingClientRect(),h=t/100*s.height,g=r/100*s.height,u=s.top-c.top+h,p=u+g;if(u>=80&&p<=l.clientHeight-80)return;const f=u<80?l.scrollTop+u-80:l.scrollTop+p-l.clientHeight+80;l.scrollTo({top:f,behavior:"smooth"})};setTimeout(o,100)},G=t.useMemo(()=>{const e={};return S.forEach((t,r)=>{const n=s[t];n>0&&(e[n]||(e[n]=[]),e[n].push(r))}),e},[S,s]),Q=e=>{const t=s[S[e]];return(G[t]||[]).indexOf(e)},U=(e,t,r=0)=>{if(!a.current)return;let n=-1,o=0;const l=()=>{if(++o>60)return;const i=a.current?.querySelector(".rpv-core__inner-pages");if(!i)return void setTimeout(l,100);if(i.scrollTop!==n)return n=i.scrollTop,void setTimeout(l,100);const s=a.current?.querySelector(`[data-testid="core__page-layer-${e}"]`);if(!s)return void setTimeout(l,100);const c=s.getBoundingClientRect();if(0===c.height)return void setTimeout(l,100);const h=i.getBoundingClientRect(),g=t/100*c.height,u=r/100*c.height,p=c.top-h.top+g,f=p+u;if(p>=80&&f<=i.clientHeight-80)return;const d=p<80?i.scrollTop+p-80:i.scrollTop+f-i.clientHeight+80;i.scrollTo({top:d,behavior:"instant"})};setTimeout(l,100)};return{setHighlightIndex:d,highlightIndex:f,cursorIndex:x,setCursorIndex:v,orderedKeys:S,totalHighlights:I,getValidPosition:e=>{if(h)return e+1;if(!s)return 0;let t=0;for(let r=0;r<=e;r++)s[S[r]]>0&&t++;return t},tryJump:K,jumpToPage:N,zoomTo:L,hideNonTargetHighlights:q,deduplicateHighlights:$,scrollToCoord:V,plugins:[h?W:R,P,H],controls:{CurrentScale:O,ZoomPopover:Z,zoomTo:L,goToNext:()=>{if(h&&g)for(let e=x+1;e<g.length;e++){const t=g[e],r=g[x];return v(e),void(t.pageIndex!==r.pageIndex?(N(t.pageIndex),U(t.pageIndex,t.top,t.height)):V(t.pageIndex,t.top,t.height))}else{for(let e=x+1;e<S.length;e++){const t=S[e];if(s[t]>0){const r=s[t]-1,n=Q(e);return v(e),N(s[t]-1),J(r,n),setTimeout(()=>{$(r)},500),void(1===Object.keys(s).length&&q(c))}}}},goToPrevious:()=>{if(h&&g)for(let e=x-1;e>=0;e--){const t=g[e],r=g[x];return v(e),void(t.pageIndex!==r.pageIndex?(N(t.pageIndex),U(t.pageIndex,t.top,t.height)):V(t.pageIndex,t.top,t.height))}else{for(let e=x-1;e>=0;e--){const t=S[e];if(s[t]>0){const r=s[t]-1,n=Q(e);return v(e),N(s[t]-1),J(r,n),setTimeout(()=>{$(r)},500),void(1===Object.keys(s).length&&q(c))}}}}}}};
2
2
  //# sourceMappingURL=usePdfHighlight.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePdfHighlight.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"usePdfHighlight.js","sources":["../../../../src/features/PdfViewer/usePdfHighlight.tsx"],"sourcesContent":["import { useMemo, useRef, useState } from \"react\";\nimport { searchPlugin } from \"@react-pdf-viewer/search\";\nimport { pageNavigationPlugin } from \"@react-pdf-viewer/page-navigation\";\nimport { zoomPlugin } from \"@react-pdf-viewer/zoom\";\nimport { HighlightArea } from \"./PdfViewer\";\nimport {\n highlightPlugin,\n RenderHighlightsProps,\n} from \"@react-pdf-viewer/highlight\";\n\nexport const PdfHighlightControls = (\n highlightText: string[],\n highlightPages: Record<number, number>,\n viewerRef: React.RefObject<HTMLDivElement | null>,\n highlightPageSet : Set<number>,\n useCoordinates : boolean,\n highlightCordinatePages : HighlightArea[],\n highlightColor = \"yellow\", \n activeHighlightColor = \"#F6D739\",\n) => {\n const [highlightIndex, setHighlightIndex] = useState(0);\n const hasJumpedRef = useRef(false);\n const [cursorIndex, setCursorIndex] = useState(0);\n const visibleHighlightsRef = useRef<HTMLElement[]>([]);\n\n // Text normalization helpers\n\n const normalizeWhitespace = (value: string): string =>\n value.replace(/[^\\S\\n]+/g, \" \").trim();\n\n const stripMarkdownEmphasis = (line: string): string =>\n line.replace(/(^|\\W)[*_]{1,3}([^*_]+)[*_]{1,3}(?=\\W|$)/g, \"$1$2\");\n\n const normalizeForMatch = (value: string): string =>\n (value || \"\")\n .toLowerCase()\n .replace(/\\u00ad/g, \"\")\n .replace(/[\"\"]/g, '\"')\n .replace(/['']/g, \"'\")\n .replace(/[\\u2013\\u2014]/g, \"-\")\n .replace(/-/g, \" \")\n .replace(/[^\\w\\s]/g, \"\")\n .replace(/\\s+/g, \" \")\n .trim();\n\n const stripLeadingIndex = (line: string): string => {\n let trimmed = line.trim();\n trimmed = trimmed\n .replace(/[\\u200B-\\u200D\\uFEFF]/g, \"\")\n .replace(/[\\u00A0\\u2009\\u202F]/g, \" \");\n trimmed = trimmed.replace(/^[-•]\\s+/, \"\");\n const match = trimmed.match(\n /^((\\d+(?:\\.\\d+)*[.)]?)|[A-Za-z][.)]|\\([A-Za-z0-9]+\\)|(?:i|ii|iii|iv|v|vi|vii|viii|ix|x)[.)])\\s*/i\n );\n if (match) return trimmed.slice(match[0].length).trim();\n return trimmed;\n };\n\n const buildMatchVariants = (line: string): Set<string> => {\n const normalized = normalizeForMatch(line);\n const compact = normalized.replace(/\\s+/g, \"\");\n const variants = new Set<string>();\n if (normalized) variants.add(normalized);\n if (compact) variants.add(compact);\n return variants;\n };\n\n const buildSearchVariants = (line: string): string[] => {\n const base = normalizeWhitespace(\n line\n .replace(/[\\u00A0\\u2009\\u202F]/g, \" \")\n .replace(/\\u00ad/g, \"\")\n .replace(/[\"\"]/g, '\"')\n .replace(/['']/g, \"'\")\n );\n if (!base) return [];\n\n const dashNormalized = base.replace(/[\\u2013\\u2014]/g, \"-\");\n const dehyphenated = normalizeWhitespace(\n dashNormalized.replace(/(\\w)-\\s+(\\w)/g, \"$1$2\")\n );\n const hyphenToSpace = normalizeWhitespace(dashNormalized.replace(/-/g, \" \"));\n const hyphenRemoved = normalizeWhitespace(dashNormalized.replace(/-/g, \"\"));\n const punctuationStripped = normalizeWhitespace(base.replace(/[^\\w\\s]/g, \"\"));\n\n const variants = new Set<string>([\n base,\n dashNormalized,\n dehyphenated,\n hyphenToSpace,\n hyphenRemoved,\n punctuationStripped,\n ]);\n\n return Array.from(variants).filter(Boolean);\n };\n\n const decodeHtml = (str: string): string => {\n const textarea = document.createElement(\"textarea\");\n textarea.innerHTML = str;\n return textarea.value;\n };\n\n const getCleanedHighlightText = (text: string): string => {\n const cleanHighlight = text.replace(/\\\\([''])/g, \"$1\");\n const normalizedText = cleanHighlight.replace(/\\]\\s*\\n\\s*\\(/g, \"](\");\n return normalizedText\n .replace(/&[#\\w]+;/g, (match) => decodeHtml(match))\n .replace(/<br\\s*\\/?>/gi, \"\\n\")\n .replace(/\\[([^\\]]+)\\]\\(([^)]+)\\)/g, \"$1\")\n .replace(/`([^`]+)`/g, \"$1\");\n };\n\n const extractCleanLines = (text: string): string[] => {\n if (!text) return [];\n const cleaned = getCleanedHighlightText(text);\n\n return cleaned\n .split(/\\n+/)\n .map(stripLeadingIndex)\n .flatMap((line) => {\n const tableMatch = line.match(/^\\s*\\|(.+)\\|\\s*$/);\n if (tableMatch) {\n return tableMatch[1]\n .split(\"|\")\n .map((cell) => cell.trim())\n .filter(Boolean);\n }\n return [line];\n })\n .map((line) => normalizeWhitespace(stripMarkdownEmphasis(line)))\n .filter(Boolean);\n };\n\n const getMaxLineGap = (blocks: Array<{ lastTop: number }>): number => {\n if (blocks.length < 2) return 40;\n const diffs: number[] = [];\n for (let i = 1; i < blocks.length; i++) {\n const diff = Math.abs(blocks[i].lastTop - blocks[i - 1].lastTop);\n if (diff > 0) diffs.push(diff);\n }\n if (diffs.length === 0) return 40;\n diffs.sort((a, b) => a - b);\n const median = diffs[Math.floor(diffs.length / 2)];\n const scaled = Math.round(median * 2.25);\n return Math.min(60, Math.max(24, scaled));\n };\n\n type MergedHighlightArea = HighlightArea & {\n originalIndexes: number[];\n };\n\n // ─── Merge overlapping coordinate highlight areas on the same page ────────────\nconst mergeOverlappingAreas = (areas: HighlightArea[]): MergedHighlightArea[] => {\n if (areas.length === 0) return [];\n\n // Group by page\n const byPage = new Map<number, (HighlightArea & { originalIndex: number })[]>();\n areas.forEach((h, i) => {\n const pageKey = h.pageNumber != null ? h.pageNumber - 1 : h.pageIndex;\n if (!byPage.has(pageKey)) byPage.set(pageKey, []);\n byPage.get(pageKey)!.push({ ...h, originalIndex: i });\n });\n\n const merged: MergedHighlightArea[] = [];\n\n byPage.forEach((pageAreas) => {\n // Sort top-to-bottom, left-to-right\n const sorted = [...pageAreas].sort((a, b) =>\n a.top !== b.top ? a.top - b.top : a.left - b.left\n );\n\n const used = new Array(sorted.length).fill(false);\n\n for (let i = 0; i < sorted.length; i++) {\n if (used[i]) continue;\n\n let { left, top, width, height, pageIndex, pageNumber } = sorted[i];\n let right = left + width;\n let bottom = top + height;\n const originalIndexes = [sorted[i].originalIndex];\n used[i] = true;\n\n // Merge only true duplicate/heavily-overlapping rects. Nearby text lines\n // can be less than 1% apart vertically, so adjacency must stay separate.\n let changed = true;\n while (changed) {\n changed = false;\n for (let j = i + 1; j < sorted.length; j++) {\n if (used[j]) continue;\n const b = sorted[j];\n const bRight = b.left + b.width;\n const bBottom = b.top + b.height;\n\n const intersectionWidth = Math.max(\n 0,\n Math.min(right, bRight) - Math.max(left, b.left)\n );\n const intersectionHeight = Math.max(\n 0,\n Math.min(bottom, bBottom) - Math.max(top, b.top)\n );\n const intersectionArea = intersectionWidth * intersectionHeight;\n const currentArea = Math.max(width * height, 0.0001);\n const nextArea = Math.max(b.width * b.height, 0.0001);\n const smallerArea = Math.min(currentArea, nextArea);\n const overlapRatio = smallerArea > 0 ? intersectionArea / smallerArea : 0;\n\n const overlaps = overlapRatio >= 0.8;\n\n if (overlaps) {\n left = Math.min(left, b.left);\n top = Math.min(top, b.top);\n right = Math.max(right, bRight);\n bottom = Math.max(bottom, bBottom);\n width = right - left;\n height = bottom - top;\n originalIndexes.push(b.originalIndex);\n used[j] = true;\n changed = true;\n }\n }\n }\n\n merged.push({ pageIndex, pageNumber, left, top, width, height, originalIndexes });\n }\n });\n\n return merged;\n};\n\n const processPdfHighlightText = (text: string): string[] => {\n if (!text) return [];\n const cleaned = getCleanedHighlightText(text);\n return cleaned\n .split(/\\n{2,}/)\n .map((block) => extractCleanLines(block).join(\" \"))\n .map((line) => normalizeWhitespace(line))\n .filter(Boolean);\n };\n\n // ✅ Ordered valid keys (NO normalization to array)\n const orderedKeys = Object.keys(highlightPages)\n .map(Number)\n .sort((a, b) => a - b);\n\n\n /** Total navigable highlights. */\n const totalHighlights: number = useMemo(() => {\n if (useCoordinates) return highlightCordinatePages.length;\n if (!useCoordinates) return Object.values(highlightPages).filter((p) => p > 0).length;\n return 0;\n }, [highlightCordinatePages, highlightPages]);\n\n\n /** 1-based display position for a given cursor. */\n const getValidPosition = (cursor: number): number => {\n if (useCoordinates) return cursor + 1;\n if (!highlightPages) return 0;\n let count = 0;\n for (let i = 0; i <= cursor; i++) {\n if (highlightPages[orderedKeys[i]] > 0) count++;\n }\n return count;\n };\n\n const isSameLine = (a: DOMRect, b: DOMRect) =>\n Math.abs(a.top - b.top) < 5;\n\n const isHorizontallyClose = (a: DOMRect, b: DOMRect) =>\n Math.abs(a.right - b.left) < 20 || Math.abs(b.right - a.left) < 20;\n\n const isImmediateCluster = (\n curr:{\n el: HTMLElement;\n rect: DOMRect;\n text: string;\n },\n neighbor: {\n el: HTMLElement;\n rect: DOMRect;\n text: string;\n }) => {\n if (!neighbor) return false;\n\n return (\n isSameLine(curr.rect, neighbor.rect) &&\n isHorizontallyClose(curr.rect, neighbor.rect)\n );\n };\n\n\n const hideIsolatedShortHighlights = (pageHighlights: Element) => {\n const highlights = Array.from(\n pageHighlights.querySelectorAll(\".rpv-search__highlight\")\n ) as HTMLElement[];\n\n // ✅ Only process visible highlights — skip already-hidden ones\n const visibleItems = highlights\n .filter(el => el.style.display !== \"none\")\n .map(el => ({\n el,\n rect: el.getBoundingClientRect(),\n text: el.textContent?.trim() || \"\",\n }))\n .filter(item => item.rect.width > 0); // ✅ skip zero-rect (hidden/unmounted)\n\n visibleItems.forEach((item, i) => {\n const prev = visibleItems[i - 1];\n const next = visibleItems[i + 1];\n\n const width = item.rect.width;\n if (width > 100) return;\n const hasImmediateNeighbor =\n isImmediateCluster(item, prev) || isImmediateCluster(item, next);\n if (!hasImmediateNeighbor) item.el.style.display = \"none\";\n });\n };\n\n // ─── Core deduplication & matching ────────────────────────────────────────\n const deduplicateHighlights = (targetPage: number) => {\n if (!viewerRef.current) return;\n\n const pageHighlightsContainer = viewerRef.current.querySelector(\n `[data-testid=\"search__highlights-${targetPage}\"]`\n );\n if (!pageHighlightsContainer) return;\n\n const elements = Array.from(\n pageHighlightsContainer.querySelectorAll(\".rpv-search__highlight\")\n ) as HTMLElement[];\n\n if (elements.length === 0) return;\n\n const expectedSentenceVariants = filteredHighlightSentences.map(buildMatchVariants);\n const expectedLineVariants = filteredHighlightLineFragments.map(buildMatchVariants);\n if (expectedSentenceVariants.length === 0 && expectedLineVariants.length === 0) return;\n\n // Build DOM highlight items with coordinate fallback\n type HighlightItem = {\n el: HTMLElement;\n text: string;\n top: number;\n left: number;\n right: number;\n };\n\n type LogicalBlock = {\n title: string;\n elements: HTMLElement[];\n lastTop: number;\n lastRight: number;\n };\n\n const getCoords = (el: HTMLElement): { top: number; left: number; right: number } => {\n const rect = el.getBoundingClientRect();\n if (rect.height > 0 || rect.width > 0) {\n return { top: rect.top, left: rect.left, right: rect.right };\n }\n const top = el.offsetTop;\n const left = el.offsetLeft;\n const right = left + el.offsetWidth;\n return { top, left, right };\n };\n\n const items: HighlightItem[] = elements\n .map((el) => {\n const coords = getCoords(el);\n const rawText = (el.textContent || \"\").trim();\n const fallbackText = (el.getAttribute(\"title\") || \"\").trim();\n const text = rawText || fallbackText;\n return { el, text, ...coords };\n })\n .filter((item) => item.text.length > 0)\n .sort((a, b) => a.top - b.top || a.left - b.left);\n\n if (items.length === 0) return;\n\n // Group items into logical line-blocks\n const blocks: LogicalBlock[] = [];\n let currentBlock: LogicalBlock | null = null;\n let currentTextParts: string[] = [];\n const lineTolerance = 5;\n const wordGap = 28;\n\n const flushBlock = () => {\n if (!currentBlock) return;\n const joinedText = currentTextParts.join(\" \");\n currentBlock.title = normalizeForMatch(joinedText);\n if (currentBlock.title) blocks.push(currentBlock);\n currentBlock = null;\n currentTextParts = [];\n };\n\n items.forEach((item) => {\n if (!currentBlock) {\n currentBlock = {\n title: \"\",\n elements: [item.el],\n lastTop: item.top,\n lastRight: item.right,\n };\n currentTextParts = [item.text];\n return;\n }\n\n const sameLine = Math.abs(item.top - currentBlock.lastTop) <= lineTolerance;\n const closeToPrev = item.left <= currentBlock.lastRight + wordGap;\n\n if (sameLine && closeToPrev) {\n currentBlock.elements.push(item.el);\n currentBlock.lastTop = item.top;\n currentBlock.lastRight = Math.max(currentBlock.lastRight, item.right);\n currentTextParts.push(item.text);\n } else {\n flushBlock();\n currentBlock = {\n title: \"\",\n elements: [item.el],\n lastTop: item.top,\n lastRight: item.right,\n };\n currentTextParts = [item.text];\n }\n });\n flushBlock();\n\n if (blocks.length === 0) return;\n\n // Matching utilities\n\n // Returns true when blockTitle matches any of the expected variants.\n const matchesExpected = (blockTitle: string, variants: Set<string>): boolean => {\n if (!blockTitle) return false;\n if (variants.has(blockTitle)) return true;\n\n const compactTitle = blockTitle.replace(/\\s+/g, \"\");\n\n for (const variant of Array.from(variants)) {\n if (!variant) continue;\n const compactVariant = variant.replace(/\\s+/g, \"\");\n\n // Exact compact match\n if (compactVariant === compactTitle) return true;\n\n // Block is contained within the variant (fragmented DOM span)\n if (\n variant.length >= 8 &&\n blockTitle.length >= 5 &&\n variant.includes(blockTitle)\n )\n return true;\n if (\n compactVariant.length >= 8 &&\n compactTitle.length >= 5 &&\n compactVariant.includes(compactTitle)\n )\n return true;\n\n // Variant is contained within a larger block\n if (\n blockTitle.length >= 10 &&\n variant.length >= 8 &&\n blockTitle.includes(variant)\n )\n return true;\n if (\n compactTitle.length >= 10 &&\n compactVariant.length >= 8 &&\n compactTitle.includes(compactVariant)\n )\n return true;\n }\n return false;\n };\n\n let bestSequenceLen = 0;\n let blocksToKeep = new Set<number>();\n\n // Strategy A: Full-text sliding-window coverage\n\n const allExpectedNormalized = Array.from(\n new Set(\n [...filteredHighlightSentences, ...filteredHighlightLineFragments]\n .map(normalizeForMatch)\n .filter((s) => s.length >= 8)\n )\n ).sort((a, b) => b.length - a.length);\n\n const tryFullTextWindow = (expectedText: string): Set<number> | null => {\n if (!expectedText || expectedText.length < 8) return null;\n const expectedCompact = expectedText.replace(/\\s+/g, \"\");\n\n for (let start = 0; start < blocks.length; start++) {\n let combined = \"\";\n let combinedCompact = \"\";\n const collected = new Set<number>();\n\n for (\n let end = start;\n end < blocks.length && end < start + 20;\n end++\n ) {\n const piece = blocks[end].title;\n combined = combined ? `${combined} ${piece}` : piece;\n combinedCompact = combinedCompact\n ? `${combinedCompact}${piece.replace(/\\s+/g, \"\")}`\n : piece.replace(/\\s+/g, \"\");\n collected.add(end);\n\n if (\n combined.includes(expectedText) ||\n combinedCompact.includes(expectedCompact)\n ) {\n return collected;\n }\n\n if (\n combined.length >= 15 &&\n (expectedText.includes(combined) ||\n expectedCompact.includes(combinedCompact))\n ) {\n return collected;\n }\n\n if (combined.length > expectedText.length + 150) break;\n }\n }\n return null;\n };\n\n for (const expectedText of allExpectedNormalized) {\n const match = tryFullTextWindow(expectedText);\n if (match && match.size > 0) {\n match.forEach((idx) => blocksToKeep.add(idx));\n bestSequenceLen = blocksToKeep.size;\n }\n }\n\n // Strategy B: Per-sentence concatenated match\n\n const findConcatenatedMatch = (\n variantsList: Set<string>[]\n ): Set<number> | null => {\n if (variantsList.length === 0) return null;\n let bestMatch: { blocks: Set<number>; extra: number } | null = null;\n\n for (const variants of variantsList) {\n for (const variant of Array.from(variants)) {\n if (!variant || variant.length < 5) continue;\n const variantCompact = variant.replace(/\\s+/g, \"\");\n\n for (let start = 0; start < blocks.length; start++) {\n let combined = \"\";\n let combinedCompact = \"\";\n const collected = new Set<number>();\n\n for (\n let end = start;\n end < blocks.length && end < start + 15;\n end++\n ) {\n const piece = blocks[end].title;\n combined = combined ? `${combined} ${piece}` : piece;\n combinedCompact = combinedCompact\n ? `${combinedCompact}${piece.replace(/\\s+/g, \"\")}`\n : piece.replace(/\\s+/g, \"\");\n collected.add(end);\n\n if (\n combined.includes(variant) ||\n combinedCompact.includes(variantCompact)\n ) {\n const extra = Math.max(0, combined.length - variant.length);\n if (!bestMatch || extra < bestMatch.extra) {\n bestMatch = { blocks: new Set(collected), extra };\n }\n break;\n }\n\n if (combined.length > variant.length + 120) break;\n }\n }\n }\n }\n\n return bestMatch ? bestMatch.blocks : null;\n };\n\n if (bestSequenceLen === 0) {\n const concatenatedMatch = findConcatenatedMatch(expectedSentenceVariants);\n if (concatenatedMatch && concatenatedMatch.size > 0) {\n concatenatedMatch.forEach((idx) => blocksToKeep.add(idx));\n bestSequenceLen = blocksToKeep.size;\n }\n }\n\n // Strategy C: Line-by-line sequence matching\n\n const maxLineGap = getMaxLineGap(blocks);\n const expectedLineTexts = filteredHighlightLineFragments\n .map(normalizeForMatch)\n .filter((line) => line.length >= 8);\n const lineTokens = expectedLineTexts.map((line) =>\n line.split(/\\s+/).filter((word) => word.length >= 2)\n );\n\n if (bestSequenceLen === 0) {\n const sequenceCandidates = expectedLineVariants;\n\n for (\n let startBlockIdx = 0;\n startBlockIdx < blocks.length;\n startBlockIdx++\n ) {\n const blockTitle = blocks[startBlockIdx].title;\n\n for (let expStart = 0; expStart < sequenceCandidates.length; expStart++) {\n if (!matchesExpected(blockTitle, sequenceCandidates[expStart])) continue;\n\n let currentLen = 0;\n const currentKeptBlocks = new Set<number>();\n let expPtr = expStart;\n let lastMatchedBlockIdx = startBlockIdx - 1;\n\n for (let i = startBlockIdx; i < blocks.length && expPtr < sequenceCandidates.length; i++) {\n if (matchesExpected(blocks[i].title, sequenceCandidates[expPtr])) {\n if (lastMatchedBlockIdx >= 0) {\n const prevTop = blocks[lastMatchedBlockIdx].lastTop;\n const currentTop = blocks[i].lastTop;\n if (Math.abs(currentTop - prevTop) > maxLineGap) break;\n }\n\n currentLen++;\n currentKeptBlocks.add(i);\n lastMatchedBlockIdx = i;\n expPtr++;\n } else if (\n expPtr > 0 &&\n matchesExpected(blocks[i].title, sequenceCandidates[expPtr - 1])\n ) {\n const prevTop = blocks[lastMatchedBlockIdx].lastTop;\n const currentTop = blocks[i].lastTop;\n if (Math.abs(currentTop - prevTop) <= 3) {\n currentKeptBlocks.add(i);\n lastMatchedBlockIdx = i;\n }\n }\n\n if (i - lastMatchedBlockIdx > 6) break;\n }\n\n if (currentLen > bestSequenceLen) {\n bestSequenceLen = currentLen;\n blocksToKeep = currentKeptBlocks;\n }\n }\n }\n }\n\n // Strategy D: Fuzzy word-overlap fallback\n\n if (\n bestSequenceLen < Math.min(3, expectedLineTexts.length) &&\n expectedLineTexts.length > 0\n ) {\n const fuzzyBlocks = new Set<number>();\n\n blocks.forEach((block, index) => {\n const blockWords = block.title\n .split(/\\s+/)\n .filter((word) => word.length >= 2);\n\n if (blockWords.length < 2) return;\n const blockWordSet = new Set(blockWords);\n\n for (const expectedWords of lineTokens) {\n if (expectedWords.length < 2) continue;\n\n let common = 0;\n for (const word of expectedWords) {\n if (blockWordSet.has(word)) common++;\n }\n\n const ratio = common / expectedWords.length;\n if (common >= 3 || ratio >= 0.5) {\n fuzzyBlocks.add(index);\n break;\n }\n }\n });\n\n if (fuzzyBlocks.size > 0) {\n blocksToKeep = fuzzyBlocks;\n bestSequenceLen = Math.max(bestSequenceLen, fuzzyBlocks.size);\n }\n }\n\n // Strategy E: Normalized keyword exact-match fallback\n const normalizedSearchKeywords = new Set<string>();\n searchKeywords.forEach((keyword) => {\n const normalized = normalizeForMatch(keyword);\n if (!normalized) return;\n normalizedSearchKeywords.add(normalized);\n normalizedSearchKeywords.add(normalized.replace(/\\s+/g, \"\"));\n });\n\n if (bestSequenceLen === 0) {\n const fallbackBlocks = new Set<number>();\n blocks.forEach((block, index) => {\n const compactTitle = block.title.replace(/\\s+/g, \"\");\n if (\n normalizedSearchKeywords.has(block.title) ||\n normalizedSearchKeywords.has(compactTitle)\n ) {\n fallbackBlocks.add(index);\n return;\n }\n const keywordList = Array.from(normalizedSearchKeywords);\n for (let i = 0; i < keywordList.length; i++) {\n const kw = keywordList[i];\n if (kw.length >= 10 && kw.includes(block.title) && block.title.length >= 5) {\n fallbackBlocks.add(index);\n break;\n }\n }\n });\n\n if (fallbackBlocks.size === 0) return 0;\n blocksToKeep = fallbackBlocks;\n }\n\n // Reveal only verified blocks\n blocks.forEach((block, index) => {\n const isKept = blocksToKeep.has(index);\n block.elements.forEach((el) => {\n if (isKept) {\n // Reveal the verified sequence smoothly\n el.classList.add(\"verified-match\");\n el.style.display = \"\"; // Ensure it's in the document flow\n } else {\n // Hard-hide the noise so it doesn't block text selection\n el.style.display = \"none\";\n el.classList.remove(\"verified-match\");\n }\n });\n });\n\n // added console group for debugging - to be removed in final release\n // ─── After blocksToKeep is finalized, hide pixel-overlapping duplicates ──────\n // The search plugin sometimes renders multiple spans covering identical or\n // heavily-overlapping regions for the same keyword. We keep only the first\n // (largest) span in each overlapping cluster so opacity never compounds.\n\n const keptElements: HTMLElement[] = [];\n blocks.forEach((block, index) => {\n if (blocksToKeep.has(index)) {\n block.elements.forEach((el) => keptElements.push(el));\n }\n });\n\n // Build rects after a rAF so the browser has committed layout\n requestAnimationFrame(() => {\n type RectEntry = { el: HTMLElement; rect: DOMRect };\n const entries: RectEntry[] = keptElements\n .map((el) => ({ el, rect: el.getBoundingClientRect() }))\n .filter((e) => e.rect.width > 0 && e.rect.height > 0)\n // largest area first so we always keep the most-covering span\n .sort((a, b) => (b.rect.width * b.rect.height) - (a.rect.width * a.rect.height));\n\n const surviving: RectEntry[] = [];\n\n const overlapRatio = (a: DOMRect, b: DOMRect): number => {\n const ix = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));\n const iy = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));\n const intersection = ix * iy;\n const smaller = Math.min(a.width * a.height, b.width * b.height);\n return smaller > 0 ? intersection / smaller : 0;\n };\n\n entries.forEach(({ el, rect }) => {\n const isDuplicate = surviving.some(\n (s) => overlapRatio(s.rect, rect) > 0.5 // >50% of smaller rect is covered → duplicate\n );\n if (isDuplicate) {\n el.style.display = \"none\";\n el.classList.remove(\"verified-match\");\n } else {\n surviving.push({ el, rect });\n }\n });\n });\n console.groupCollapsed(`[debug: PDF ordered matching - Page ${targetPage}]`);\n console.log(\"input->\", highlightText);\n console.log(\"processed sentences->\", filteredHighlightSentences);\n console.log(\"processed lines->\", filteredHighlightLineFragments);\n console.log(\"Expected sentence count:\", expectedSentenceVariants.length);\n console.log(\"Expected line count:\", expectedLineVariants.length);\n console.log(\"Matched sequence length:\", bestSequenceLen);\n console.log(\"blocksToKeep\", blocksToKeep, \"size\", blocksToKeep.size);\n console.groupEnd();\n\n return blocksToKeep.size\n };\n\n\n const matchHighlightsInOrder = (\n processedHighlightText: string[],\n seenMap: Map<string, HTMLElement[]>\n ) => {\n const entries = Array.from(seenMap.entries());\n\n let pointer = 0;\n const result: any[] = [];\n\n const normalize = (str: string) =>\n str\n .toLowerCase()\n .replace(/[^\\w\\s]/g, \"\") // remove punctuation\n .replace(/\\s+/g, \" \") // normalize spaces\n .trim();\n\n for (let i = 0; i < processedHighlightText.length; i++) {\n const chunk = processedHighlightText[i];\n const normalizedChunk = normalize(chunk);\n\n while (pointer < entries.length) {\n const [key, value] = entries[pointer];\n const text = normalize(key.split(\"_#$_\")[0]);\n\n const nextChunk = processedHighlightText[i + 1];\n const nextEntry = entries[pointer + 1];\n\n const normalizedNextChunk = nextChunk ? normalize(nextChunk) : null;\n const nextText = nextEntry\n ? normalize(nextEntry[0].split(\"_#$_\")[0])\n : null;\n\n const isCurrentMatch = normalizedChunk === text;\n\n // ONLY apply lookahead if duplicate ahead\n const isDuplicateAhead =\n pointer + 1 < entries.length &&\n text === normalize(entries[pointer + 1][0].split(\"_#$_\")[0]);\n\n let isValid = isCurrentMatch;\n\n if (isCurrentMatch && isDuplicateAhead && normalizedNextChunk) {\n isValid = normalizedNextChunk === nextText;\n }\n\n if (isValid) {\n result.push({\n chunk,\n matchedKey: key,\n elements: value,\n });\n\n pointer++;\n break;\n }\n\n pointer++;\n }\n }\n\n return result;\n };\n\n\n // ✅ hide non-target pages\n // ✅ Accepts multiple target pages\n const hideNonTargetHighlights = (targetPages: Set<number>) => {\n if (!viewerRef.current) return;\n const allPageHighlights = viewerRef.current.querySelectorAll(\n \".rpv-search__highlights\"\n );\n\n allPageHighlights.forEach((pageHighlights) => {\n const testId = pageHighlights.getAttribute(\"data-testid\");\n const pageIndex = parseInt(\n // testId?.replace(\"search__highlights-\", \"\") || \"-1\"\n testId?.replace(/search__highlights-/g, \"\") || \"-1\"\n );\n const highlights = pageHighlights.querySelectorAll(\".rpv-search__highlight\");\n\n // ✅ Hide if page is NOT in the target set\n if (!targetPages.has(pageIndex)) {\n highlights.forEach((h) => {\n (h as HTMLElement).style.display = \"none\";\n });\n }\n // else if (highlights.length > 1) {\n // hideIsolatedShortHighlights(pageHighlights)\n // }\n });\n };\n\n // Pre-process input highlight text\n const processedHighlightSegments = highlightText\n .map((text) => processPdfHighlightText(text))\n .flat();\n\n const processedHighlightLineFragments = highlightText\n .map((text) => extractCleanLines(text))\n .flat();\n\n const minKeywordLength = processedHighlightSegments.some((line) => line.length >= 3)\n ? 3\n : 1;\n\n const filteredHighlightSentences = processedHighlightSegments.filter(\n (line) => line.length >= minKeywordLength\n );\n\n const filteredHighlightLineFragments = processedHighlightLineFragments.filter(\n (line) => line.length >= minKeywordLength\n );\n\n const isKeywordUseful = (line: string): boolean => {\n const words = line.split(/\\s+/).filter(Boolean);\n if (line.length < minKeywordLength) return false;\n if (words.length >= 3) return true;\n return line.length >= 12;\n };\n\n const buildWordWindows = (line: string, size = 6, step = 4): string[] => {\n const words = line.split(/\\s+/).filter(Boolean);\n if (words.length <= size) return [];\n const windows: string[] = [];\n for (let i = 0; i + size <= words.length; i += step) {\n windows.push(words.slice(i, i + size).join(\" \"));\n }\n if (words.length > size && (words.length - size) % step !== 0) {\n windows.push(words.slice(words.length - size).join(\" \"));\n }\n return windows;\n };\n\n const lineFragmentWindows = filteredHighlightLineFragments.flatMap((line) =>\n buildWordWindows(line)\n );\n\n const searchKeywords = Array.from(\n new Set(\n [\n ...filteredHighlightSentences,\n ...filteredHighlightLineFragments,\n ...lineFragmentWindows,\n ].flatMap(buildSearchVariants)\n )\n ).filter(isKeywordUseful);\n\n // Plugin instances\n const searchPluginInstance = searchPlugin({ keyword: searchKeywords });\n const pageNavigationPluginInstance = pageNavigationPlugin();\n const zoomPluginInstance = zoomPlugin();\n\n const { jumpToMatch } = searchPluginInstance;\n const { jumpToPage } = pageNavigationPluginInstance;\n const { zoomTo, CurrentScale, ZoomPopover } = zoomPluginInstance;\n\n // Pre-merge overlapping areas so stacked highlights don't compound opacity\nconst mergedCoordinateAreas = useMemo(\n () => mergeOverlappingAreas(highlightCordinatePages),\n [highlightCordinatePages]\n);\n\nconst highlightPluginInstance = highlightPlugin({\n renderHighlights: (props: RenderHighlightsProps) => (\n <>\n {mergedCoordinateAreas\n .filter((h) =>\n h.pageNumber != null\n ? h.pageNumber - 1 === props.pageIndex\n : h.pageIndex === props.pageIndex\n )\n .map((area) => {\n const isActive = area.originalIndexes.includes(cursorIndex);\n\n return (\n <div\n key={area.originalIndexes.join(\"-\")}\n style={{\n position: \"absolute\",\n left: `${area.left}%`,\n top: `${area.top + area.height * 0.08}%`,\n width: `${area.width}%`,\n height: `${area.height * 0.95}%`,\n background: isActive ? activeHighlightColor : highlightColor,\n opacity: isActive ? 0.7 : 0.4,\n transition: \"background 0.2s, opacity 0.2s\",\n border: isActive ? `1px solid ${\"red\"}` : `1px solid transparent`,\n }}\n />\n );\n })}\n </>\n ),\n});\n\n const tryJump = () => {\n if (hasJumpedRef.current) return;\n try {\n jumpToMatch(0);\n hasJumpedRef.current = true;\n const first = highlightCordinatePages[0]; // ✅ use highlightPages not hardcoded highlights\n if (first && useCoordinates) {\n scrollToCoord(first.pageIndex, first.top);\n }\n } catch {\n requestAnimationFrame(tryJump);\n }\n };\n\n\n const scrollToHighlightAfterNav = (targetPage: number, occurrence: number) => {\n if (!viewerRef.current) return;\n\n const container = viewerRef.current.querySelector(\".rpv-core__viewer\");\n if (!container) return;\n\n let lastScrollTop = -1;\n\n const doScrollToHighlight = () => {\n const scrollContainer = viewerRef.current?.querySelector(\n \".rpv-core__inner-pages\"\n ) as HTMLElement;\n if (!scrollContainer) return;\n\n // ✅ Wait for jumpToPage scroll to settle\n if (scrollContainer.scrollTop !== lastScrollTop) {\n lastScrollTop = scrollContainer.scrollTop;\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const pageElement = viewerRef.current?.querySelector(\n `[data-testid=\"core__page-layer-${targetPage}\"]`\n );\n if (!pageElement) return;\n\n // ✅ Get nth highlight on this page using occurrence\n const allHighlights = pageElement.querySelectorAll(\".rpv-search__highlight\");\n const target = allHighlights[occurrence] as HTMLElement;\n\n if (!target) return;\n\n const scrollContainerRect = scrollContainer.getBoundingClientRect();\n const highlightRect = target.getBoundingClientRect();\n\n const scrollTop =\n scrollContainer.scrollTop +\n (highlightRect.top - scrollContainerRect.top) -\n scrollContainer.clientHeight / 2 +\n highlightRect.height / 2;\n\n scrollContainer.scrollTo({ top: scrollTop, behavior: \"smooth\" });\n };\n\n setTimeout(doScrollToHighlight, 300);\n };\n\n // ─── Coordinate-mode: scroll by percentage position ───────────────────────\n\n const scrollToCoord = (pageIndex: number, top: number, height = 0) => {\n\n if (!viewerRef.current) return;\n let attempts = 0;\n const VIEWPORT_PADDING = 80;\n\n const doScroll = () => {\n if (++attempts > 60) return;\n\n const scrollContainer = viewerRef.current?.querySelector(\n \".rpv-core__inner-pages\"\n ) as HTMLElement | null;\n\n if (!scrollContainer) { setTimeout(doScroll, 100); return; }\n\n\n // const normalizedPageIndex = pageIndex - 1;\n\n const pageElement = viewerRef.current?.querySelector(\n `[data-testid=\"core__page-layer-${pageIndex}\"]`\n ) as HTMLElement | null;\n\n if (!pageElement) { setTimeout(doScroll, 100); return; }\n\n\n const pageRect = pageElement.getBoundingClientRect();\n\n if (pageRect.height === 0) { setTimeout(doScroll, 100); return; }\n\n const scrollContainerRect = scrollContainer.getBoundingClientRect();\n const highlightTopInPage = (top / 100) * pageRect.height;\n const highlightHeightInPage = (height / 100) * pageRect.height;\n const highlightTopAbsolute =\n pageRect.top - scrollContainerRect.top + highlightTopInPage;\n const highlightBottomAbsolute = highlightTopAbsolute + highlightHeightInPage;\n\n const isComfortablyVisible =\n highlightTopAbsolute >= VIEWPORT_PADDING &&\n highlightBottomAbsolute <= scrollContainer.clientHeight - VIEWPORT_PADDING;\n\n if (isComfortablyVisible) return;\n\n const scrollTop =\n highlightTopAbsolute < VIEWPORT_PADDING\n ? scrollContainer.scrollTop + highlightTopAbsolute - VIEWPORT_PADDING\n : scrollContainer.scrollTop +\n highlightBottomAbsolute -\n scrollContainer.clientHeight +\n VIEWPORT_PADDING;\n\n scrollContainer.scrollTo({\n top: scrollTop,\n behavior: \"smooth\",\n });\n };\n\n setTimeout(doScroll, 100);\n };\n\n\n// ✅ Map: page -> [cursorIndexes] for same-page occurrence tracking\nconst pageVisitMap = useMemo(() => {\n const map: Record<number, number[]> = {};\n orderedKeys.forEach((key, i) => {\n const page = highlightPages[key];\n if (page > 0) {\n if (!map[page]) map[page] = [];\n map[page].push(i);\n }\n });\n return map;\n}, [orderedKeys, highlightPages]);\n\n// ✅ Get which occurrence (0,1,2...) this cursorIndex is on its page\nconst getHighlightOccurrence = (cursorIdx: number): number => {\n const page = highlightPages[orderedKeys[cursorIdx]];\n const visits = pageVisitMap[page] || [];\n return visits.indexOf(cursorIdx);\n};\n\n\nconst scrollToCoordAfterNav = (pageIndex: number, top: number, height = 0) => {\n if (!viewerRef.current) return;\n const VIEWPORT_PADDING = 80;\n let lastScrollTop = -1;\n let attempts = 0;\n\n const waitForSettle = () => {\n if (++attempts > 60) return;\n\n const scrollContainer = viewerRef.current?.querySelector(\n \".rpv-core__inner-pages\"\n ) as HTMLElement | null;\n if (!scrollContainer) { setTimeout(waitForSettle, 100); return; }\n\n if (scrollContainer.scrollTop !== lastScrollTop) {\n lastScrollTop = scrollContainer.scrollTop;\n setTimeout(waitForSettle, 100);\n return;\n }\n\n const pageElement = viewerRef.current?.querySelector(\n `[data-testid=\"core__page-layer-${pageIndex}\"]`\n ) as HTMLElement | null;\n if (!pageElement) { setTimeout(waitForSettle, 100); return; }\n\n const pageRect = pageElement.getBoundingClientRect();\n if (pageRect.height === 0) { setTimeout(waitForSettle, 100); return; }\n\n const scrollContainerRect = scrollContainer.getBoundingClientRect();\n const highlightTopInPage = (top / 100) * pageRect.height;\n const highlightHeightInPage = (height / 100) * pageRect.height;\n const highlightTopAbsolute =\n pageRect.top - scrollContainerRect.top + highlightTopInPage;\n const highlightBottomAbsolute = highlightTopAbsolute + highlightHeightInPage;\n\n const isComfortablyVisible =\n highlightTopAbsolute >= VIEWPORT_PADDING &&\n highlightBottomAbsolute <= scrollContainer.clientHeight - VIEWPORT_PADDING;\n\n if (isComfortablyVisible) return;\n\n const scrollTop =\n highlightTopAbsolute < VIEWPORT_PADDING\n ? scrollContainer.scrollTop + highlightTopAbsolute - VIEWPORT_PADDING\n : scrollContainer.scrollTop +\n highlightBottomAbsolute -\n scrollContainer.clientHeight +\n VIEWPORT_PADDING;\n\n // ✅ instant — no second smooth animation\n scrollContainer.scrollTo({\n top: scrollTop,\n behavior: \"instant\" as ScrollBehavior,\n });\n };\n\n setTimeout(waitForSettle, 100);\n};\n\nconst goToNext = () => {\n if (useCoordinates && highlightCordinatePages) {\n for (let i = cursorIndex + 1; i < highlightCordinatePages.length; i++) {\n const h = highlightCordinatePages[i];\n const currentH = highlightCordinatePages[cursorIndex];\n setCursorIndex(i);\n\n if (h.pageIndex !== currentH.pageIndex) {\n jumpToPage(h.pageIndex);\n scrollToCoordAfterNav(h.pageIndex, h.top, h.height);\n } else {\n scrollToCoord(h.pageIndex, h.top, h.height);\n }\n return;\n }\n } else {\n const prev = cursorIndex;\n for (let i = prev + 1; i < orderedKeys.length; i++) {\n const key = orderedKeys[i];\n if (highlightPages[key] > 0) {\n const page = highlightPages[key] - 1;\n const occurrence = getHighlightOccurrence(i);\n setCursorIndex(i);\n jumpToPage(highlightPages[key] - 1);\n scrollToHighlightAfterNav(page, occurrence);\n setTimeout(() => { deduplicateHighlights(page); }, 500);\n if (Object.keys(highlightPages).length === 1) hideNonTargetHighlights(highlightPageSet);\n return;\n }\n }\n }\n};\n\nconst goToPrevious = () => {\n if (useCoordinates && highlightCordinatePages) {\n for (let i = cursorIndex - 1; i >= 0; i--) {\n const h = highlightCordinatePages[i];\n const currentH = highlightCordinatePages[cursorIndex];\n setCursorIndex(i);\n\n if (h.pageIndex !== currentH.pageIndex) {\n jumpToPage(h.pageIndex);\n scrollToCoordAfterNav(h.pageIndex, h.top, h.height);\n } else {\n scrollToCoord(h.pageIndex, h.top, h.height);\n }\n return;\n }\n } else {\n const prev = cursorIndex;\n for (let i = prev - 1; i >= 0; i--) {\n const key = orderedKeys[i];\n if (highlightPages[key] > 0) {\n const page = highlightPages[key] - 1;\n const occurrence = getHighlightOccurrence(i);\n setCursorIndex(i);\n jumpToPage(highlightPages[key] - 1);\n scrollToHighlightAfterNav(page, occurrence);\n setTimeout(() => { deduplicateHighlights(page); }, 500);\n if (Object.keys(highlightPages).length === 1) hideNonTargetHighlights(highlightPageSet);\n return;\n }\n }\n }\n};\n\n\n return {\n setHighlightIndex,\n highlightIndex,\n cursorIndex,\n setCursorIndex,\n orderedKeys,\n totalHighlights,\n getValidPosition,\n tryJump,\n jumpToPage,\n zoomTo,\n hideNonTargetHighlights,\n deduplicateHighlights,\n scrollToCoord,\n plugins: [\n useCoordinates ? highlightPluginInstance : searchPluginInstance,\n pageNavigationPluginInstance,\n zoomPluginInstance,\n ],\n controls: {\n CurrentScale,\n ZoomPopover,\n zoomTo,\n goToNext,\n goToPrevious,\n },\n };\n};"],"names":["highlightText","highlightPages","viewerRef","highlightPageSet","useCoordinates","highlightCordinatePages","highlightColor","activeHighlightColor","highlightIndex","setHighlightIndex","useState","hasJumpedRef","useRef","cursorIndex","setCursorIndex","normalizeWhitespace","value","replace","trim","normalizeForMatch","toLowerCase","stripLeadingIndex","line","trimmed","match","slice","length","buildMatchVariants","normalized","compact","variants","Set","add","getCleanedHighlightText","text","str","textarea","document","createElement","innerHTML","decodeHtml","extractCleanLines","split","map","flatMap","tableMatch","cell","filter","Boolean","stripMarkdownEmphasis","orderedKeys","Object","keys","Number","sort","a","b","totalHighlights","useMemo","values","p","deduplicateHighlights","targetPage","current","pageHighlightsContainer","querySelector","elements","Array","from","querySelectorAll","expectedSentenceVariants","filteredHighlightSentences","expectedLineVariants","filteredHighlightLineFragments","items","el","coords","rect","getBoundingClientRect","height","width","top","left","right","offsetTop","offsetLeft","offsetWidth","getCoords","rawText","textContent","fallbackText","getAttribute","item","blocks","currentBlock","currentTextParts","flushBlock","joinedText","join","title","push","forEach","lastTop","lastRight","sameLine","Math","abs","closeToPrev","max","matchesExpected","blockTitle","has","compactTitle","variant","compactVariant","includes","bestSequenceLen","blocksToKeep","allExpectedNormalized","s","tryFullTextWindow","expectedText","expectedCompact","start","combined","combinedCompact","collected","end","piece","size","idx","concatenatedMatch","variantsList","bestMatch","variantCompact","extra","findConcatenatedMatch","maxLineGap","diffs","i","diff","median","floor","scaled","round","min","getMaxLineGap","expectedLineTexts","lineTokens","word","sequenceCandidates","startBlockIdx","expStart","currentLen","currentKeptBlocks","expPtr","lastMatchedBlockIdx","prevTop","currentTop","fuzzyBlocks","block","index","blockWords","blockWordSet","expectedWords","common","ratio","normalizedSearchKeywords","searchKeywords","keyword","fallbackBlocks","keywordList","kw","isKept","classList","style","display","remove","keptElements","requestAnimationFrame","entries","e","surviving","some","intersection","bottom","smaller","overlapRatio","console","groupCollapsed","log","groupEnd","hideNonTargetHighlights","targetPages","pageHighlights","testId","pageIndex","parseInt","highlights","h","processedHighlightSegments","processPdfHighlightText","flat","processedHighlightLineFragments","minKeywordLength","lineFragmentWindows","step","words","windows","buildWordWindows","base","dashNormalized","dehyphenated","hyphenToSpace","hyphenRemoved","punctuationStripped","searchPluginInstance","searchPlugin","pageNavigationPluginInstance","pageNavigationPlugin","zoomPluginInstance","zoomPlugin","jumpToMatch","jumpToPage","zoomTo","CurrentScale","ZoomPopover","mergedCoordinateAreas","areas","byPage","Map","pageKey","pageNumber","set","get","originalIndex","merged","pageAreas","sorted","used","fill","originalIndexes","changed","j","bRight","bBottom","intersectionArea","currentArea","nextArea","smallerArea","mergeOverlappingAreas","highlightPluginInstance","highlightPlugin","renderHighlights","props","jsx","Fragment","children","area","isActive","position","background","opacity","transition","border","tryJump","first","scrollToCoord","scrollToHighlightAfterNav","occurrence","lastScrollTop","doScrollToHighlight","scrollContainer","scrollTop","setTimeout","pageElement","target","scrollContainerRect","highlightRect","clientHeight","scrollTo","behavior","attempts","doScroll","pageRect","highlightTopInPage","highlightHeightInPage","highlightTopAbsolute","highlightBottomAbsolute","pageVisitMap","key","page","getHighlightOccurrence","cursorIdx","indexOf","scrollToCoordAfterNav","waitForSettle","getValidPosition","cursor","count","plugins","controls","goToNext","currentH","goToPrevious"],"mappings":"yTAUoC,CAClCA,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAAiB,SACjBC,EAAuB,aAEvB,MAAOC,EAAgBC,GAAqBC,WAAS,GAC/CC,EAA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AExE,CACF,CACF"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});class t{constructor(){this.lastValidZoom=1,this.isRotating=!1,this.rotationTimeoutId=null,this.ROTATION_TRANSITION_DURATION=300,this.zoomStateListeners=new Set,this.frozenZoomDisplay=null,this.currentZoomLevel=1}getLastValidZoom(){return this.lastValidZoom}setLastValidZoom(t){Number.isFinite(t)&&t>0&&(this.lastValidZoom=t,this.currentZoomLevel=t,this.notifyZoomStateChange(t))}getDisplayZoom(){return this.isRotating&&null!==this.frozenZoomDisplay?this.frozenZoomDisplay:this.currentZoomLevel}beginRotation(){this.isRotating=!0,this.frozenZoomDisplay=this.currentZoomLevel,null!==this.rotationTimeoutId&&clearTimeout(this.rotationTimeoutId),this.rotationTimeoutId=setTimeout(()=>{this.endRotation()},this.ROTATION_TRANSITION_DURATION)}endRotation(){this.isRotating=!1,this.frozenZoomDisplay=null,null!==this.rotationTimeoutId&&(clearTimeout(this.rotationTimeoutId),this.rotationTimeoutId=null)}isInRotationTransition(){return this.isRotating}safeZoomEvaluation(t,o){try{const i=t(Number.isFinite(o)?o:this.lastValidZoom);return Number.isFinite(i)&&i>0?(this.setLastValidZoom(i),i):(console.warn(`[ZoomStateManager] Zoom calculation returned invalid value: ${i}. Recovering to last valid zoom: ${this.lastValidZoom}`),this.lastValidZoom)}catch(t){return console.error("[ZoomStateManager] Error during zoom evaluation:",t),this.lastValidZoom}}onZoomStateChange(t){return this.zoomStateListeners.add(t),()=>{this.zoomStateListeners.delete(t)}}notifyZoomStateChange(t){this.zoomStateListeners.forEach(o=>{try{o(t)}catch(t){console.error("[ZoomStateManager] Error in zoom state listener:",t)}})}reset(){this.lastValidZoom=1,this.currentZoomLevel=1,this.isRotating=!1,this.frozenZoomDisplay=null,null!==this.rotationTimeoutId&&(clearTimeout(this.rotationTimeoutId),this.rotationTimeoutId=null)}}const o=new t;exports.ZoomStateManager=t,exports.zoomStateManager=o;
2
+ //# sourceMappingURL=zoomStateManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoomStateManager.js","sources":["../../../../src/features/PdfViewer/zoomStateManager.ts"],"sourcesContent":["export class ZoomStateManager {\n private lastValidZoom: number = 1; // Default zoom level\n private isRotating: boolean = false;\n private rotationTimeoutId: ReturnType<typeof setTimeout> | null = null;\n private readonly ROTATION_TRANSITION_DURATION = 300; // Match CSS transition time\n private zoomStateListeners: Set<(zoom: number) => void> = new Set();\n private frozenZoomDisplay: number | null = null; // Caches zoom display value during rotation to prevent UI flicker\n private currentZoomLevel: number = 1; // Tracks actual current zoom level for display purposes\n\n getLastValidZoom(): number {\n return this.lastValidZoom;\n }\n\n setLastValidZoom(zoom: number): void {\n if (Number.isFinite(zoom) && zoom > 0) {\n this.lastValidZoom = zoom;\n this.currentZoomLevel = zoom;\n this.notifyZoomStateChange(zoom);\n }\n }\n\n getDisplayZoom(): number {\n if (this.isRotating && this.frozenZoomDisplay !== null) {\n return this.frozenZoomDisplay;\n }\n return this.currentZoomLevel;\n }\n\n beginRotation(): void {\n this.isRotating = true;\n this.frozenZoomDisplay = this.currentZoomLevel;\n\n if (this.rotationTimeoutId !== null) {\n clearTimeout(this.rotationTimeoutId);\n }\n this.rotationTimeoutId = setTimeout(() => {\n this.endRotation();\n }, this.ROTATION_TRANSITION_DURATION);\n }\n\n endRotation(): void {\n this.isRotating = false;\n this.frozenZoomDisplay = null;\n if (this.rotationTimeoutId !== null) {\n clearTimeout(this.rotationTimeoutId);\n this.rotationTimeoutId = null;\n }\n }\n\n isInRotationTransition(): boolean {\n return this.isRotating;\n }\n\n safeZoomEvaluation(\n zoomCallback: (current: number) => number,\n currentZoom: number\n ): number {\n try {\n const baseZoom = Number.isFinite(currentZoom) ? currentZoom : this.lastValidZoom;\n const newZoom = zoomCallback(baseZoom);\n\n if (Number.isFinite(newZoom) && newZoom > 0) {\n this.setLastValidZoom(newZoom);\n return newZoom;\n } else {\n console.warn(\n `[ZoomStateManager] Zoom calculation returned invalid value: ${newZoom}. ` +\n `Recovering to last valid zoom: ${this.lastValidZoom}`\n );\n return this.lastValidZoom;\n }\n } catch (error) {\n console.error(`[ZoomStateManager] Error during zoom evaluation:`, error);\n return this.lastValidZoom;\n }\n }\n\n onZoomStateChange(callback: (zoom: number) => void): () => void {\n this.zoomStateListeners.add(callback);\n return () => {\n this.zoomStateListeners.delete(callback);\n };\n }\n\n private notifyZoomStateChange(zoom: number): void {\n this.zoomStateListeners.forEach(listener => {\n try {\n listener(zoom);\n } catch (error) {\n console.error('[ZoomStateManager] Error in zoom state listener:', error);\n }\n });\n }\n\n reset(): void {\n this.lastValidZoom = 1;\n this.currentZoomLevel = 1;\n this.isRotating = false;\n this.frozenZoomDisplay = null;\n if (this.rotationTimeoutId !== null) {\n clearTimeout(this.rotationTimeoutId);\n this.rotationTimeoutId = null;\n }\n }\n}\n\nexport const zoomStateManager = new ZoomStateManager();\n\n"],"names":["ZoomStateManager","constructor","this","lastValidZoom","isRotating","rotationTimeoutId","ROTATION_TRANSITION_DURATION","zoomStateListeners","Set","frozenZoomDisplay","currentZoomLevel","getLastValidZoom","setLastValidZoom","zoom","Number","isFinite","notifyZoomStateChange","getDisplayZoom","beginRotation","clearTimeout","setTimeout","endRotation","isInRotationTransition","safeZoomEvaluation","zoomCallback","currentZoom","newZoom","console","warn","error","onZoomStateChange","callback","add","delete","forEach","listener","reset","zoomStateManager"],"mappings":"oEAAO,MAAMA,EAAN,WAAAC,GACLC,KAAQC,cAAwB,EAChCD,KAAQE,YAAsB,EAC9BF,KAAQG,kBAA0D,KAClEH,KAAiBI,6BAA+B,IACxCJ,KAAAK,uBAAsDC,IAC9DN,KAAQO,kBAAmC,KAC3CP,KAAQQ,iBAA2B,CAAA,CAEnC,gBAAAC,GACE,OAAOT,KAAKC,aACd,CAEA,gBAAAS,CAAiBC,GACXC,OAAOC,SAASF,IAASA,EAAO,IAClCX,KAAKC,cAAgBU,EACrBX,KAAKQ,iBAAmBG,EACxBX,KAAKc,sBAAsBH,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