@e-llm-studio/citation 0.0.249 → 0.0.250

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 (2374) 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/BookemonStyles.js +2 -0
  133. package/dist/cjs/features/Bookemon/BookemonStyles.js.map +1 -0
  134. package/dist/cjs/features/Bookemon/utils/highlight.js +1 -1
  135. package/dist/cjs/features/Bookemon/utils/highlight.js.map +1 -1
  136. package/dist/cjs/features/ChatCitation/BigQueryTable.js +1 -1
  137. package/dist/cjs/features/ChatCitation/BigQueryTable.js.map +1 -1
  138. package/dist/cjs/features/ChatCitation/ChatCitationRenderer.js +1 -1
  139. package/dist/cjs/features/ChatCitation/ChatCitationRenderer.js.map +1 -1
  140. package/dist/cjs/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
  141. package/dist/cjs/features/ChatCitation/InternalChatCitationRenderer.js.map +1 -1
  142. package/dist/cjs/features/ChatCitation/assets/cw_chat.svg.js.map +1 -1
  143. package/dist/cjs/features/ChatCitation/assets/message-chat-square.svg.js.map +1 -1
  144. package/dist/cjs/features/ChatCitation/components/AssistantChatItem.js +1 -1
  145. package/dist/cjs/features/ChatCitation/components/AssistantChatItem.js.map +1 -1
  146. package/dist/cjs/features/ChatCitation/components/ChatCitation.js +1 -1
  147. package/dist/cjs/features/ChatCitation/components/ChatCitation.js.map +1 -1
  148. package/dist/cjs/features/ChatCitation/components/Chip.js +1 -1
  149. package/dist/cjs/features/ChatCitation/components/Chip.js.map +1 -1
  150. package/dist/cjs/features/ChatCitation/components/DetailedView.js +1 -1
  151. package/dist/cjs/features/ChatCitation/components/DetailedView.js.map +1 -1
  152. package/dist/cjs/features/ChatCitation/components/IconContainer.js +1 -1
  153. package/dist/cjs/features/ChatCitation/components/IconContainer.js.map +1 -1
  154. package/dist/cjs/features/ChatCitation/components/InViewNavigation.js +1 -1
  155. package/dist/cjs/features/ChatCitation/components/InViewNavigation.js.map +1 -1
  156. package/dist/cjs/features/ChatCitation/components/MarkdownRenderer.js +1 -1
  157. package/dist/cjs/features/ChatCitation/components/MarkdownRenderer.js.map +1 -1
  158. package/dist/cjs/features/ChatCitation/components/RuleBook.js +1 -1
  159. package/dist/cjs/features/ChatCitation/components/RuleBook.js.map +1 -1
  160. package/dist/cjs/features/ChatCitation/components/SummarizedView.js +1 -1
  161. package/dist/cjs/features/ChatCitation/components/SummarizedView.js.map +1 -1
  162. package/dist/cjs/features/ChatCitation/components/UserChatItem.js +1 -1
  163. package/dist/cjs/features/ChatCitation/components/UserChatItem.js.map +1 -1
  164. package/dist/cjs/features/ChatCitation/components/UserInitialsAsAvatar.js +1 -1
  165. package/dist/cjs/features/ChatCitation/components/UserInitialsAsAvatar.js.map +1 -1
  166. package/dist/cjs/features/ChatCitation/components/wrappers/Modal.js +1 -1
  167. package/dist/cjs/features/ChatCitation/components/wrappers/Modal.js.map +1 -1
  168. package/dist/cjs/features/ChatCitation/constants/renderer.js +1 -1
  169. package/dist/cjs/features/ChatCitation/constants/renderer.js.map +1 -1
  170. package/dist/cjs/features/ChatCitation/styles/common.css.js +2 -0
  171. package/dist/cjs/features/ChatCitation/styles/common.css.js.map +1 -0
  172. package/dist/cjs/features/ChatCitation/utils/helpers.js +1 -1
  173. package/dist/cjs/features/ChatCitation/utils/helpers.js.map +1 -1
  174. package/dist/cjs/features/ChatDrawer/ChatDrawer.js +1 -1
  175. package/dist/cjs/features/ChatDrawer/ChatDrawer.js.map +1 -1
  176. package/dist/cjs/features/ChatDrawer/constants/ChatDrawer.js.map +1 -1
  177. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  178. package/dist/cjs/features/CitationRenderer/CitationRenderer.js.map +1 -1
  179. package/dist/cjs/features/CitationRenderer/CitationRenderer.module.css.js +1 -1
  180. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js +1 -1
  181. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
  182. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
  183. package/dist/cjs/features/CitationViewer/CitationsViewer.js +1 -1
  184. package/dist/cjs/features/CitationViewer/CitationsViewer.js.map +1 -1
  185. package/dist/cjs/features/CitationViewer/components/AudioWaveform.js +1 -1
  186. package/dist/cjs/features/CitationViewer/components/AudioWaveform.js.map +1 -1
  187. package/dist/cjs/features/CitationViewer/components/Header.js +1 -1
  188. package/dist/cjs/features/CitationViewer/components/Header.js.map +1 -1
  189. package/dist/cjs/features/CitationViewer/components/KeyTakeaways.js +1 -1
  190. package/dist/cjs/features/CitationViewer/components/KeyTakeaways.js.map +1 -1
  191. package/dist/cjs/features/CitationViewer/components/StormeeChatCitation.module.css.js +1 -1
  192. package/dist/cjs/features/CitationViewer/components/Transcript.js +1 -1
  193. package/dist/cjs/features/CitationViewer/components/Transcript.js.map +1 -1
  194. package/dist/cjs/features/CitationViewer/config/apiConfig.js +1 -1
  195. package/dist/cjs/features/CitationViewer/config/apiConfig.js.map +1 -1
  196. package/dist/cjs/features/CitationViewer/hooks/getSignedUrl.js +1 -1
  197. package/dist/cjs/features/CitationViewer/hooks/getSignedUrl.js.map +1 -1
  198. package/dist/cjs/features/CitationViewer/hooks/useResolvedAudioUrl.js +1 -1
  199. package/dist/cjs/features/CitationViewer/hooks/useResolvedAudioUrl.js.map +1 -1
  200. package/dist/cjs/features/CodeCitation/CodeCitation.js +1 -1
  201. package/dist/cjs/features/CodeCitation/CodeCitation.js.map +1 -1
  202. package/dist/cjs/features/CodeCitation/CodeCitation.module.css.js +1 -1
  203. package/dist/cjs/features/CodeCitation/_components/Accordian.js +1 -1
  204. package/dist/cjs/features/CodeCitation/_components/Accordian.js.map +1 -1
  205. package/dist/cjs/features/CodeCitation/_components/CodeCitationPopup.js +1 -1
  206. package/dist/cjs/features/CodeCitation/_components/CodeCitationPopup.js.map +1 -1
  207. package/dist/cjs/features/CodeCitation/_components/CodeCitationsStats.js +1 -1
  208. package/dist/cjs/features/CodeCitation/_components/CodeCitationsStats.js.map +1 -1
  209. package/dist/cjs/features/CodeCitation/_components/CodeEditor.js +1 -1
  210. package/dist/cjs/features/CodeCitation/_components/CodeEditor.js.map +1 -1
  211. package/dist/cjs/features/CodeCitation/_components/DescriptionWithToggle.js +1 -1
  212. package/dist/cjs/features/CodeCitation/_components/DescriptionWithToggle.js.map +1 -1
  213. package/dist/cjs/features/CodeCitation/_components/HighlightedCodeDetails.js +1 -1
  214. package/dist/cjs/features/CodeCitation/_components/HighlightedCodeDetails.js.map +1 -1
  215. package/dist/cjs/features/CodeCitation/_components/RepoAndBranchTag.js +1 -1
  216. package/dist/cjs/features/CodeCitation/_components/RepoAndBranchTag.js.map +1 -1
  217. package/dist/cjs/features/CodeCitation/_components/Spinner.js +1 -1
  218. package/dist/cjs/features/CodeCitation/_components/Spinner.js.map +1 -1
  219. package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js +1 -1
  220. package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map +1 -1
  221. package/dist/cjs/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js +1 -1
  222. package/dist/cjs/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js.map +1 -1
  223. package/dist/cjs/features/CodeCitation/_components/StatsComponents/StatsComponent.js +1 -1
  224. package/dist/cjs/features/CodeCitation/_components/StatsComponents/StatsComponent.js.map +1 -1
  225. package/dist/cjs/features/CodeCitation/_components/ThemeToggle.js +1 -1
  226. package/dist/cjs/features/CodeCitation/_components/ThemeToggle.js.map +1 -1
  227. package/dist/cjs/features/CodeCitation/_components/TooltipComponent.js +1 -1
  228. package/dist/cjs/features/CodeCitation/_components/TooltipComponent.js.map +1 -1
  229. package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +1 -1
  230. package/dist/cjs/features/CognitiveCompare/CitationAnchor.js.map +1 -1
  231. package/dist/cjs/features/CognitiveCompare/CitationRenderer.js +1 -1
  232. package/dist/cjs/features/CognitiveCompare/CitationRenderer.js.map +1 -1
  233. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  234. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js.map +1 -1
  235. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConfig.js +1 -1
  236. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConfig.js.map +1 -1
  237. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConstants.js.map +1 -1
  238. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  239. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js.map +1 -1
  240. package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +1 -1
  241. package/dist/cjs/features/CognitiveCompare/CognitivePopup.js.map +1 -1
  242. package/dist/cjs/features/CognitiveCompare/CompareContext.js +1 -1
  243. package/dist/cjs/features/CognitiveCompare/CompareContext.js.map +1 -1
  244. package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  245. package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js.map +1 -1
  246. package/dist/cjs/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  247. package/dist/cjs/features/CognitiveCompare/Guidelines/components/WebGptPanel.js.map +1 -1
  248. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/helper.js +1 -1
  249. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/helper.js.map +1 -1
  250. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  251. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js.map +1 -1
  252. package/dist/cjs/features/CognitiveCompare/LoaderComponent.js +1 -1
  253. package/dist/cjs/features/CognitiveCompare/LoaderComponent.js.map +1 -1
  254. package/dist/cjs/features/CognitiveCompare/MoreFunctionsPopup.js +1 -1
  255. package/dist/cjs/features/CognitiveCompare/MoreFunctionsPopup.js.map +1 -1
  256. package/dist/cjs/features/CognitiveCompare/OverlayComponent.js +1 -1
  257. package/dist/cjs/features/CognitiveCompare/OverlayComponent.js.map +1 -1
  258. package/dist/cjs/features/CognitiveCompare/ResizableSplitPane.js +1 -1
  259. package/dist/cjs/features/CognitiveCompare/ResizableSplitPane.js.map +1 -1
  260. package/dist/cjs/features/CognitiveCompare/components/CognitiveSummaryPopup.js +1 -1
  261. package/dist/cjs/features/CognitiveCompare/components/CognitiveSummaryPopup.js.map +1 -1
  262. package/dist/cjs/features/CognitiveCompare/components/CompareHeader.js +1 -1
  263. package/dist/cjs/features/CognitiveCompare/components/CompareHeader.js.map +1 -1
  264. package/dist/cjs/features/CognitiveCompare/components/LHSSectionRow.js +1 -1
  265. package/dist/cjs/features/CognitiveCompare/components/LHSSectionRow.js.map +1 -1
  266. package/dist/cjs/features/CognitiveCompare/components/RHSSectionRow.js +1 -1
  267. package/dist/cjs/features/CognitiveCompare/components/RHSSectionRow.js.map +1 -1
  268. package/dist/cjs/features/CognitiveCompare/components/ScrollLockToggle.js +1 -1
  269. package/dist/cjs/features/CognitiveCompare/components/ScrollLockToggle.js.map +1 -1
  270. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  271. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js.map +1 -1
  272. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  273. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js.map +1 -1
  274. package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js +1 -1
  275. package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js.map +1 -1
  276. package/dist/cjs/features/CognitiveCompare/components/ThreeDotsLoader.js +1 -1
  277. package/dist/cjs/features/CognitiveCompare/components/ThreeDotsLoader.js.map +1 -1
  278. package/dist/cjs/features/CognitiveCompare/components/connectedLines.js +1 -1
  279. package/dist/cjs/features/CognitiveCompare/components/connectedLines.js.map +1 -1
  280. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  281. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js.map +1 -1
  282. package/dist/cjs/features/CognitiveCompare/hooks/useAccordionState.js +1 -1
  283. package/dist/cjs/features/CognitiveCompare/hooks/useAccordionState.js.map +1 -1
  284. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  285. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js.map +1 -1
  286. package/dist/cjs/features/CognitiveCompare/hooks/useComparePopups.js +1 -1
  287. package/dist/cjs/features/CognitiveCompare/hooks/useComparePopups.js.map +1 -1
  288. package/dist/cjs/features/CognitiveCompare/hooks/useDeviationNavigation.js +1 -1
  289. package/dist/cjs/features/CognitiveCompare/hooks/useDeviationNavigation.js.map +1 -1
  290. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  291. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js.map +1 -1
  292. package/dist/cjs/features/CognitiveCompare/hooks/useResizeHandler.js +1 -1
  293. package/dist/cjs/features/CognitiveCompare/hooks/useResizeHandler.js.map +1 -1
  294. package/dist/cjs/features/CognitiveCompare/hooks/useSectionRefs.js +1 -1
  295. package/dist/cjs/features/CognitiveCompare/hooks/useSectionRefs.js.map +1 -1
  296. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  297. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js.map +1 -1
  298. package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js +1 -1
  299. package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js.map +1 -1
  300. package/dist/cjs/features/CognitiveCompare/utils/buildComparisonRows.js +1 -1
  301. package/dist/cjs/features/CognitiveCompare/utils/buildComparisonRows.js.map +1 -1
  302. package/dist/cjs/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js +1 -1
  303. package/dist/cjs/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js.map +1 -1
  304. package/dist/cjs/features/CognitiveDecisioning/CognitiveDecisioningWrapper.module.css.js +1 -1
  305. package/dist/cjs/features/CognitiveDecisioning/FaqCitation/FaqCitation.js +1 -1
  306. package/dist/cjs/features/CognitiveDecisioning/FaqCitation/FaqCitation.js.map +1 -1
  307. package/dist/cjs/features/CognitiveDecisioning/FaqCitation/FaqCitation.module.css.js +1 -1
  308. package/dist/cjs/features/CognitiveDecisioning/shared/Audacy/GapIcon.js +1 -1
  309. package/dist/cjs/features/CognitiveDecisioning/shared/Audacy/GapIcon.js.map +1 -1
  310. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  311. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js.map +1 -1
  312. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
  313. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js.map +1 -1
  314. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
  315. package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js +1 -1
  316. package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -1
  317. package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js +1 -1
  318. package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js.map +1 -1
  319. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js +1 -1
  320. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js.map +1 -1
  321. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.module.css.js +1 -1
  322. package/dist/cjs/features/ExcelCitation/ExcelCitations.js +1 -1
  323. package/dist/cjs/features/ExcelCitation/ExcelCitations.js.map +1 -1
  324. package/dist/cjs/features/ExcelCitation/css/excel-citation.css.js +2 -0
  325. package/dist/cjs/features/ExcelCitation/css/excel-citation.css.js.map +1 -0
  326. package/dist/cjs/features/ExcelCitation/utils/helper.js +1 -1
  327. package/dist/cjs/features/ExcelCitation/utils/helper.js.map +1 -1
  328. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
  329. package/dist/cjs/features/GptWebCitation/GptWebCitation.js.map +1 -1
  330. package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  331. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  332. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -1
  333. package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  334. package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -1
  335. package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  336. package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -1
  337. package/dist/cjs/features/GptWebCitation/types.js +1 -1
  338. package/dist/cjs/features/GptWebCitation/types.js.map +1 -1
  339. package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +1 -1
  340. package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js.map +1 -1
  341. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  342. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -1
  343. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js +1 -1
  344. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -1
  345. package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  346. package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js.map +1 -1
  347. package/dist/cjs/features/IngestionStatus/ingestion.module.css.js +1 -1
  348. package/dist/cjs/features/IngestionStatus/useIngestionStatus.js +1 -1
  349. package/dist/cjs/features/IngestionStatus/useIngestionStatus.js.map +1 -1
  350. package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +1 -1
  351. package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -1
  352. package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js +1 -1
  353. package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js.map +1 -1
  354. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js +1 -1
  355. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -1
  356. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
  357. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -1
  358. package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js +1 -1
  359. package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js.map +1 -1
  360. package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js +1 -1
  361. package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -1
  362. package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js +1 -1
  363. package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js.map +1 -1
  364. package/dist/cjs/features/InstantLearningCitation/SlashLoader.js +1 -1
  365. package/dist/cjs/features/InstantLearningCitation/SlashLoader.js.map +1 -1
  366. package/dist/cjs/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +1 -1
  367. package/dist/cjs/features/InstantLearningCitation/css/Override.module.css.js +1 -1
  368. package/dist/cjs/features/InstantLearningCitation/css/RuleAccordian.module.css.js +1 -1
  369. package/dist/cjs/features/InstantLearningCitation/css/common.module.css.js +1 -1
  370. package/dist/cjs/features/InstantLearningCitation/types/Types.js +1 -1
  371. package/dist/cjs/features/InstantLearningCitation/types/Types.js.map +1 -1
  372. package/dist/cjs/features/ManageRemainders/AssigneeCalendarView.js +1 -1
  373. package/dist/cjs/features/ManageRemainders/AssigneeCalendarView.js.map +1 -1
  374. package/dist/cjs/features/ManageRemainders/ManageRemainder.module.css.js +1 -1
  375. package/dist/cjs/features/ManageRemainders/ManageReminders.js +1 -1
  376. package/dist/cjs/features/ManageRemainders/ManageReminders.js.map +1 -1
  377. package/dist/cjs/features/ManageRemainders/ReminderFrequencyAutocomplete.js +1 -1
  378. package/dist/cjs/features/ManageRemainders/ReminderFrequencyAutocomplete.js.map +1 -1
  379. package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js +1 -1
  380. package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js.map +1 -1
  381. package/dist/cjs/features/MarkdownWithImageCitation/MarkdownWithImageCitation.module.css.js +1 -1
  382. package/dist/cjs/features/PaginatedTable/PaginatedTable.js +1 -1
  383. package/dist/cjs/features/PaginatedTable/PaginatedTable.js.map +1 -1
  384. package/dist/cjs/features/PaginatedTable/paginatedTable.module.css.js +1 -1
  385. package/dist/cjs/features/PdfEditorCitation/PdfEditorCitation.js +1 -1
  386. package/dist/cjs/features/PdfEditorCitation/PdfEditorCitation.js.map +1 -1
  387. package/dist/cjs/features/PdfEditorCitation/PdfEditorCitation.module.css.js +1 -1
  388. package/dist/cjs/features/PdfViewer/PdfContainer.js +1 -1
  389. package/dist/cjs/features/PdfViewer/PdfContainer.js.map +1 -1
  390. package/dist/cjs/features/PdfViewer/PdfStyle.js.map +1 -1
  391. package/dist/cjs/features/PdfViewer/PdfToolbar.js +1 -1
  392. package/dist/cjs/features/PdfViewer/PdfToolbar.js.map +1 -1
  393. package/dist/cjs/features/PdfViewer/PdfViewer.css.js +2 -0
  394. package/dist/cjs/features/PdfViewer/PdfViewer.css.js.map +1 -0
  395. package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
  396. package/dist/cjs/features/PdfViewer/PdfViewer.js.map +1 -1
  397. package/dist/cjs/features/PdfViewer/rotationManager.js +1 -1
  398. package/dist/cjs/features/PdfViewer/rotationManager.js.map +1 -1
  399. package/dist/cjs/features/PdfViewer/usePdfHighlight.js +1 -1
  400. package/dist/cjs/features/PdfViewer/usePdfHighlight.js.map +1 -1
  401. package/dist/cjs/features/PdfViewer/zoomStateManager.js +2 -0
  402. package/dist/cjs/features/PdfViewer/zoomStateManager.js.map +1 -0
  403. package/dist/cjs/features/ProjectAccordion/ProjectAccordion.js +1 -1
  404. package/dist/cjs/features/ProjectAccordion/ProjectAccordion.js.map +1 -1
  405. package/dist/cjs/features/ProjectAccordion/ProjectAccordion.module.css.js +1 -1
  406. package/dist/cjs/features/ProjectAccordion/_components/Markdown.js +1 -1
  407. package/dist/cjs/features/ProjectAccordion/_components/Markdown.js.map +1 -1
  408. package/dist/cjs/features/PromptCitation/CitationDependencyGraph.js +1 -1
  409. package/dist/cjs/features/PromptCitation/CitationDependencyGraph.js.map +1 -1
  410. package/dist/cjs/features/PromptCitation/PromptCitation.js +1 -1
  411. package/dist/cjs/features/PromptCitation/PromptCitation.js.map +1 -1
  412. package/dist/cjs/features/PromptCitation/_components/CodeEditor.js +1 -1
  413. package/dist/cjs/features/PromptCitation/_components/CodeEditor.js.map +1 -1
  414. package/dist/cjs/features/PromptCitation/_components/Markdownrenderer.js +1 -1
  415. package/dist/cjs/features/PromptCitation/_components/Markdownrenderer.js.map +1 -1
  416. package/dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js +1 -1
  417. package/dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js.map +1 -1
  418. package/dist/cjs/features/PromptemonViewer/PromptemonViewer.js +1 -1
  419. package/dist/cjs/features/PromptemonViewer/PromptemonViewer.js.map +1 -1
  420. package/dist/cjs/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js +1 -1
  421. package/dist/cjs/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js.map +1 -1
  422. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  423. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js.map +1 -1
  424. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.module.css.js +1 -1
  425. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.js +1 -1
  426. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.js.map +1 -1
  427. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.module.css.js +1 -1
  428. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js +1 -1
  429. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js.map +1 -1
  430. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.module.css.js +1 -1
  431. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.js +1 -1
  432. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.js.map +1 -1
  433. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.module.css.js +1 -1
  434. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js +1 -1
  435. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js.map +1 -1
  436. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.module.css.js +1 -1
  437. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.js +1 -1
  438. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.js.map +1 -1
  439. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.js +1 -1
  440. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.js.map +1 -1
  441. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.js +1 -1
  442. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.js.map +1 -1
  443. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.js +1 -1
  444. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.js.map +1 -1
  445. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.js +1 -1
  446. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.js.map +1 -1
  447. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.js +1 -1
  448. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.js.map +1 -1
  449. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  450. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js.map +1 -1
  451. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.js +1 -1
  452. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.js.map +1 -1
  453. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.js +1 -1
  454. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.js.map +1 -1
  455. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.js +1 -1
  456. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.js.map +1 -1
  457. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  458. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js.map +1 -1
  459. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.js +1 -1
  460. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.js.map +1 -1
  461. package/dist/cjs/features/RequirementAiCitations/FileCitation/FileCitationContent.js +1 -1
  462. package/dist/cjs/features/RequirementAiCitations/FileCitation/FileCitationContent.js.map +1 -1
  463. package/dist/cjs/features/RequirementAiCitations/FileCitation/FileCitationContent.module.css.js +1 -1
  464. package/dist/cjs/features/RequirementAiCitations/ImageCitation/ImageCitationContent.js +1 -1
  465. package/dist/cjs/features/RequirementAiCitations/ImageCitation/ImageCitationContent.js.map +1 -1
  466. package/dist/cjs/features/RequirementAiCitations/ImageCitation/ImageCitationContent.module.css.js +1 -1
  467. package/dist/cjs/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js +1 -1
  468. package/dist/cjs/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js.map +1 -1
  469. package/dist/cjs/features/RequirementAiCitations/VideoCitation/VideoCitationContent.module.css.js +1 -1
  470. package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
  471. package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js.map +1 -1
  472. package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
  473. package/dist/cjs/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.js +1 -1
  474. package/dist/cjs/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.js.map +1 -1
  475. package/dist/cjs/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.module.css.js +1 -1
  476. package/dist/cjs/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.js +1 -1
  477. package/dist/cjs/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.js.map +1 -1
  478. package/dist/cjs/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.module.css.js +1 -1
  479. package/dist/cjs/features/ReviewPanel/ReviewPanel.css.js +2 -0
  480. package/dist/cjs/features/ReviewPanel/ReviewPanel.css.js.map +1 -0
  481. package/dist/cjs/features/ReviewPanel/ReviewPanel.js +1 -1
  482. package/dist/cjs/features/ReviewPanel/ReviewPanel.js.map +1 -1
  483. package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  484. package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js.map +1 -1
  485. package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  486. package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js.map +1 -1
  487. package/dist/cjs/features/SPBAnalysisPanel/Cognitivereasoningpanel.js +1 -1
  488. package/dist/cjs/features/SPBAnalysisPanel/Cognitivereasoningpanel.js.map +1 -1
  489. package/dist/cjs/features/SPBAnalysisPanel/DependencyGraph.js +1 -1
  490. package/dist/cjs/features/SPBAnalysisPanel/DependencyGraph.js.map +1 -1
  491. package/dist/cjs/features/SPBAnalysisPanel/Internaleditor.js +1 -1
  492. package/dist/cjs/features/SPBAnalysisPanel/Internaleditor.js.map +1 -1
  493. package/dist/cjs/features/SPBAnalysisPanel/Markdownrenderer.js +1 -1
  494. package/dist/cjs/features/SPBAnalysisPanel/Markdownrenderer.js.map +1 -1
  495. package/dist/cjs/features/SPBAnalysisPanel/Spbanalysispanel.js +1 -1
  496. package/dist/cjs/features/SPBAnalysisPanel/Spbanalysispanel.js.map +1 -1
  497. package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js +1 -1
  498. package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js.map +1 -1
  499. package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js +1 -1
  500. package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js.map +1 -1
  501. package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js +1 -1
  502. package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js.map +1 -1
  503. package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js +1 -1
  504. package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +1 -1
  505. package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js +1 -1
  506. package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js.map +1 -1
  507. package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js +1 -1
  508. package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js.map +1 -1
  509. package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
  510. package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +1 -1
  511. package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js +1 -1
  512. package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js.map +1 -1
  513. package/dist/cjs/features/SegmentReviewComponents/PageCheck.js +1 -1
  514. package/dist/cjs/features/SegmentReviewComponents/PageCheck.js.map +1 -1
  515. package/dist/cjs/features/SegmentReviewComponents/PageTypeChoiceCheck.js +1 -1
  516. package/dist/cjs/features/SegmentReviewComponents/PageTypeChoiceCheck.js.map +1 -1
  517. package/dist/cjs/features/SegmentReviewComponents/RevertCard.js +1 -1
  518. package/dist/cjs/features/SegmentReviewComponents/RevertCard.js.map +1 -1
  519. package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +1 -1
  520. package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js.map +1 -1
  521. package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js +1 -1
  522. package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js.map +1 -1
  523. package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js +1 -1
  524. package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +1 -1
  525. package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js +1 -1
  526. package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js.map +1 -1
  527. package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  528. package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +1 -1
  529. package/dist/cjs/features/SegmentReviewComponents/helper.js +1 -1
  530. package/dist/cjs/features/SegmentReviewComponents/helper.js.map +1 -1
  531. package/dist/cjs/features/SegmentReviewComponents/reviewScore.js +1 -1
  532. package/dist/cjs/features/SegmentReviewComponents/reviewScore.js.map +1 -1
  533. package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
  534. package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js.map +1 -1
  535. package/dist/cjs/features/SplitterCitations/Splitter.module.css.js +1 -1
  536. package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
  537. package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js.map +1 -1
  538. package/dist/cjs/features/SplitterCitations/icons/icons.js +1 -1
  539. package/dist/cjs/features/SplitterCitations/icons/icons.js.map +1 -1
  540. package/dist/cjs/features/TableCitation/TableCitationContent.js +1 -1
  541. package/dist/cjs/features/TableCitation/TableCitationContent.js.map +1 -1
  542. package/dist/cjs/features/TableCitation/TableCitationContent.module.css.js +1 -1
  543. package/dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
  544. package/dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js.map +1 -1
  545. package/dist/cjs/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
  546. package/dist/cjs/hooks/useOnDemandCitationFetch.js +1 -1
  547. package/dist/cjs/hooks/useOnDemandCitationFetch.js.map +1 -1
  548. package/dist/cjs/index.js +1 -1
  549. package/dist/cjs/lib/ui/icons.js +2 -0
  550. package/dist/cjs/lib/ui/icons.js.map +1 -0
  551. package/dist/cjs/lib/ui/materialCompat.js +2 -0
  552. package/dist/cjs/lib/ui/materialCompat.js.map +1 -0
  553. package/dist/cjs/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +2 -0
  554. package/dist/cjs/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
  555. package/dist/cjs/service/apicache.service.js +1 -1
  556. package/dist/cjs/service/apicache.service.js.map +1 -1
  557. package/dist/cjs/service/onDemandApi.js +1 -1
  558. package/dist/cjs/service/onDemandApi.js.map +1 -1
  559. package/dist/cjs/types/onDemandApi.types.js +1 -1
  560. package/dist/cjs/types/onDemandApi.types.js.map +1 -1
  561. package/dist/cjs/utils/codeCitations.utils.js +1 -1
  562. package/dist/cjs/utils/codeCitations.utils.js.map +1 -1
  563. package/dist/cjs/utils/sanitizeHtml.js +1 -1
  564. package/dist/cjs/utils/sanitizeHtml.js.map +1 -1
  565. package/dist/cjs/utils/themeManager.js +1 -1
  566. package/dist/cjs/utils/themeManager.js.map +1 -1
  567. package/dist/constants/diagnosticStylesBySeverity.js +1 -1
  568. package/dist/constants/diagnosticStylesBySeverity.js.map +1 -1
  569. package/dist/features/BPACitationRenderer/BPACitationRenderer.js +1 -1
  570. package/dist/features/BPACitationRenderer/BPACitationRenderer.js.map +1 -1
  571. package/dist/features/BPACitationRenderer/citationTypes.js +1 -1
  572. package/dist/features/BPACitationRenderer/citationTypes.js.map +1 -1
  573. package/dist/features/BookCitation/BookCitation.js +1 -1
  574. package/dist/features/BookCitation/BookCitation.js.map +1 -1
  575. package/dist/features/BookCitation/BookCitation.module.css.js +1 -1
  576. package/dist/features/BookCitation/text-cleaner.js +1 -1
  577. package/dist/features/BookCitation/text-cleaner.js.map +1 -1
  578. package/dist/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.js +1 -1
  579. package/dist/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.js.map +1 -1
  580. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.css.js +2 -0
  581. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.css.js.map +1 -0
  582. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.js +1 -1
  583. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.js.map +1 -1
  584. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.css.js +2 -0
  585. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.css.js.map +1 -0
  586. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.js +1 -1
  587. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.js.map +1 -1
  588. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.css.js +2 -0
  589. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.css.js.map +1 -0
  590. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
  591. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.js.map +1 -1
  592. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.css.js +2 -0
  593. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.css.js.map +1 -0
  594. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js +1 -1
  595. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js.map +1 -1
  596. package/dist/features/Bookemon/BookPreview/BookPreview.css.js +2 -0
  597. package/dist/features/Bookemon/BookPreview/BookPreview.css.js.map +1 -0
  598. package/dist/features/Bookemon/BookPreview/BookPreview.js +1 -1
  599. package/dist/features/Bookemon/BookPreview/BookPreview.js.map +1 -1
  600. package/dist/features/Bookemon/Bookemon.js +1 -1
  601. package/dist/features/Bookemon/Bookemon.js.map +1 -1
  602. package/dist/features/Bookemon/BookemonCitationLayer.js +1 -1
  603. package/dist/features/Bookemon/BookemonCitationLayer.js.map +1 -1
  604. package/dist/features/Bookemon/BookemonContent.js +1 -1
  605. package/dist/features/Bookemon/BookemonContent.js.map +1 -1
  606. package/dist/features/Bookemon/BookemonStyles.js +2 -0
  607. package/dist/features/Bookemon/BookemonStyles.js.map +1 -0
  608. package/dist/features/Bookemon/utils/highlight.js +1 -1
  609. package/dist/features/Bookemon/utils/highlight.js.map +1 -1
  610. package/dist/features/ChatCitation/BigQueryTable.js +1 -1
  611. package/dist/features/ChatCitation/BigQueryTable.js.map +1 -1
  612. package/dist/features/ChatCitation/ChatCitationRenderer.js +1 -1
  613. package/dist/features/ChatCitation/ChatCitationRenderer.js.map +1 -1
  614. package/dist/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
  615. package/dist/features/ChatCitation/InternalChatCitationRenderer.js.map +1 -1
  616. package/dist/features/ChatCitation/assets/cw_chat.svg.js.map +1 -1
  617. package/dist/features/ChatCitation/assets/message-chat-square.svg.js.map +1 -1
  618. package/dist/features/ChatCitation/components/AssistantChatItem.js +1 -1
  619. package/dist/features/ChatCitation/components/AssistantChatItem.js.map +1 -1
  620. package/dist/features/ChatCitation/components/ChatCitation.js +1 -1
  621. package/dist/features/ChatCitation/components/ChatCitation.js.map +1 -1
  622. package/dist/features/ChatCitation/components/Chip.js +1 -1
  623. package/dist/features/ChatCitation/components/Chip.js.map +1 -1
  624. package/dist/features/ChatCitation/components/DetailedView.js +1 -1
  625. package/dist/features/ChatCitation/components/DetailedView.js.map +1 -1
  626. package/dist/features/ChatCitation/components/IconContainer.js +1 -1
  627. package/dist/features/ChatCitation/components/IconContainer.js.map +1 -1
  628. package/dist/features/ChatCitation/components/InViewNavigation.js +1 -1
  629. package/dist/features/ChatCitation/components/InViewNavigation.js.map +1 -1
  630. package/dist/features/ChatCitation/components/MarkdownRenderer.js +1 -1
  631. package/dist/features/ChatCitation/components/MarkdownRenderer.js.map +1 -1
  632. package/dist/features/ChatCitation/components/RuleBook.js +1 -1
  633. package/dist/features/ChatCitation/components/RuleBook.js.map +1 -1
  634. package/dist/features/ChatCitation/components/SummarizedView.js +1 -1
  635. package/dist/features/ChatCitation/components/SummarizedView.js.map +1 -1
  636. package/dist/features/ChatCitation/components/UserChatItem.js +1 -1
  637. package/dist/features/ChatCitation/components/UserChatItem.js.map +1 -1
  638. package/dist/features/ChatCitation/components/UserInitialsAsAvatar.js +1 -1
  639. package/dist/features/ChatCitation/components/UserInitialsAsAvatar.js.map +1 -1
  640. package/dist/features/ChatCitation/components/wrappers/Modal.js +1 -1
  641. package/dist/features/ChatCitation/components/wrappers/Modal.js.map +1 -1
  642. package/dist/features/ChatCitation/constants/renderer.js +1 -1
  643. package/dist/features/ChatCitation/constants/renderer.js.map +1 -1
  644. package/dist/features/ChatCitation/styles/common.css.js +2 -0
  645. package/dist/features/ChatCitation/styles/common.css.js.map +1 -0
  646. package/dist/features/ChatCitation/utils/helpers.js +1 -1
  647. package/dist/features/ChatCitation/utils/helpers.js.map +1 -1
  648. package/dist/features/ChatDrawer/ChatDrawer.js +1 -1
  649. package/dist/features/ChatDrawer/ChatDrawer.js.map +1 -1
  650. package/dist/features/ChatDrawer/constants/ChatDrawer.js +1 -1
  651. package/dist/features/ChatDrawer/constants/ChatDrawer.js.map +1 -1
  652. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  653. package/dist/features/CitationRenderer/CitationRenderer.js.map +1 -1
  654. package/dist/features/CitationRenderer/CitationRenderer.module.css.js +1 -1
  655. package/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
  656. package/dist/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
  657. package/dist/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
  658. package/dist/features/CitationViewer/CitationsViewer.js +1 -1
  659. package/dist/features/CitationViewer/CitationsViewer.js.map +1 -1
  660. package/dist/features/CitationViewer/components/AudioWaveform.js +1 -1
  661. package/dist/features/CitationViewer/components/AudioWaveform.js.map +1 -1
  662. package/dist/features/CitationViewer/components/Header.js +1 -1
  663. package/dist/features/CitationViewer/components/Header.js.map +1 -1
  664. package/dist/features/CitationViewer/components/KeyTakeaways.js +1 -1
  665. package/dist/features/CitationViewer/components/KeyTakeaways.js.map +1 -1
  666. package/dist/features/CitationViewer/components/StormeeChatCitation.module.css.js +1 -1
  667. package/dist/features/CitationViewer/components/Transcript.js +1 -1
  668. package/dist/features/CitationViewer/components/Transcript.js.map +1 -1
  669. package/dist/features/CitationViewer/config/apiConfig.js +1 -1
  670. package/dist/features/CitationViewer/config/apiConfig.js.map +1 -1
  671. package/dist/features/CitationViewer/hooks/getSignedUrl.js +1 -1
  672. package/dist/features/CitationViewer/hooks/getSignedUrl.js.map +1 -1
  673. package/dist/features/CitationViewer/hooks/useResolvedAudioUrl.js +1 -1
  674. package/dist/features/CitationViewer/hooks/useResolvedAudioUrl.js.map +1 -1
  675. package/dist/features/CodeCitation/CodeCitation.js +1 -1
  676. package/dist/features/CodeCitation/CodeCitation.js.map +1 -1
  677. package/dist/features/CodeCitation/CodeCitation.module.css.js +1 -1
  678. package/dist/features/CodeCitation/_components/Accordian.js +1 -1
  679. package/dist/features/CodeCitation/_components/Accordian.js.map +1 -1
  680. package/dist/features/CodeCitation/_components/CodeCitationPopup.js +1 -1
  681. package/dist/features/CodeCitation/_components/CodeCitationPopup.js.map +1 -1
  682. package/dist/features/CodeCitation/_components/CodeCitationsStats.js +1 -1
  683. package/dist/features/CodeCitation/_components/CodeCitationsStats.js.map +1 -1
  684. package/dist/features/CodeCitation/_components/CodeEditor.js +1 -1
  685. package/dist/features/CodeCitation/_components/CodeEditor.js.map +1 -1
  686. package/dist/features/CodeCitation/_components/DescriptionWithToggle.js +1 -1
  687. package/dist/features/CodeCitation/_components/DescriptionWithToggle.js.map +1 -1
  688. package/dist/features/CodeCitation/_components/HighlightedCodeDetails.js +1 -1
  689. package/dist/features/CodeCitation/_components/HighlightedCodeDetails.js.map +1 -1
  690. package/dist/features/CodeCitation/_components/RepoAndBranchTag.js +1 -1
  691. package/dist/features/CodeCitation/_components/RepoAndBranchTag.js.map +1 -1
  692. package/dist/features/CodeCitation/_components/Spinner.js +1 -1
  693. package/dist/features/CodeCitation/_components/Spinner.js.map +1 -1
  694. package/dist/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js +1 -1
  695. package/dist/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map +1 -1
  696. package/dist/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js +1 -1
  697. package/dist/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js.map +1 -1
  698. package/dist/features/CodeCitation/_components/StatsComponents/StatsComponent.js +1 -1
  699. package/dist/features/CodeCitation/_components/StatsComponents/StatsComponent.js.map +1 -1
  700. package/dist/features/CodeCitation/_components/ThemeToggle.js +1 -1
  701. package/dist/features/CodeCitation/_components/ThemeToggle.js.map +1 -1
  702. package/dist/features/CodeCitation/_components/TooltipComponent.js +1 -1
  703. package/dist/features/CodeCitation/_components/TooltipComponent.js.map +1 -1
  704. package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
  705. package/dist/features/CognitiveCompare/CitationAnchor.js.map +1 -1
  706. package/dist/features/CognitiveCompare/CitationRenderer.js +1 -1
  707. package/dist/features/CognitiveCompare/CitationRenderer.js.map +1 -1
  708. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  709. package/dist/features/CognitiveCompare/CognitiveCompare.js.map +1 -1
  710. package/dist/features/CognitiveCompare/CognitiveCompareConfig.js +1 -1
  711. package/dist/features/CognitiveCompare/CognitiveCompareConfig.js.map +1 -1
  712. package/dist/features/CognitiveCompare/CognitiveCompareConstants.js +1 -1
  713. package/dist/features/CognitiveCompare/CognitiveCompareConstants.js.map +1 -1
  714. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  715. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js.map +1 -1
  716. package/dist/features/CognitiveCompare/CognitivePopup.js +1 -1
  717. package/dist/features/CognitiveCompare/CognitivePopup.js.map +1 -1
  718. package/dist/features/CognitiveCompare/CompareContext.js +1 -1
  719. package/dist/features/CognitiveCompare/CompareContext.js.map +1 -1
  720. package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  721. package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js.map +1 -1
  722. package/dist/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  723. package/dist/features/CognitiveCompare/Guidelines/components/WebGptPanel.js.map +1 -1
  724. package/dist/features/CognitiveCompare/Guidelines/utils/helper.js +1 -1
  725. package/dist/features/CognitiveCompare/Guidelines/utils/helper.js.map +1 -1
  726. package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  727. package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js.map +1 -1
  728. package/dist/features/CognitiveCompare/LoaderComponent.js +1 -1
  729. package/dist/features/CognitiveCompare/LoaderComponent.js.map +1 -1
  730. package/dist/features/CognitiveCompare/MoreFunctionsPopup.js +1 -1
  731. package/dist/features/CognitiveCompare/MoreFunctionsPopup.js.map +1 -1
  732. package/dist/features/CognitiveCompare/OverlayComponent.js +1 -1
  733. package/dist/features/CognitiveCompare/OverlayComponent.js.map +1 -1
  734. package/dist/features/CognitiveCompare/ResizableSplitPane.js +1 -1
  735. package/dist/features/CognitiveCompare/ResizableSplitPane.js.map +1 -1
  736. package/dist/features/CognitiveCompare/components/CognitiveSummaryPopup.js +1 -1
  737. package/dist/features/CognitiveCompare/components/CognitiveSummaryPopup.js.map +1 -1
  738. package/dist/features/CognitiveCompare/components/CompareHeader.js +1 -1
  739. package/dist/features/CognitiveCompare/components/CompareHeader.js.map +1 -1
  740. package/dist/features/CognitiveCompare/components/LHSSectionRow.js +1 -1
  741. package/dist/features/CognitiveCompare/components/LHSSectionRow.js.map +1 -1
  742. package/dist/features/CognitiveCompare/components/RHSSectionRow.js +1 -1
  743. package/dist/features/CognitiveCompare/components/RHSSectionRow.js.map +1 -1
  744. package/dist/features/CognitiveCompare/components/ScrollLockToggle.js +1 -1
  745. package/dist/features/CognitiveCompare/components/ScrollLockToggle.js.map +1 -1
  746. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  747. package/dist/features/CognitiveCompare/components/SectionAccordion.js.map +1 -1
  748. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  749. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js.map +1 -1
  750. package/dist/features/CognitiveCompare/components/SvgConnectors.js +1 -1
  751. package/dist/features/CognitiveCompare/components/SvgConnectors.js.map +1 -1
  752. package/dist/features/CognitiveCompare/components/ThreeDotsLoader.js +1 -1
  753. package/dist/features/CognitiveCompare/components/ThreeDotsLoader.js.map +1 -1
  754. package/dist/features/CognitiveCompare/components/connectedLines.js +1 -1
  755. package/dist/features/CognitiveCompare/components/connectedLines.js.map +1 -1
  756. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  757. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js.map +1 -1
  758. package/dist/features/CognitiveCompare/hooks/useAccordionState.js +1 -1
  759. package/dist/features/CognitiveCompare/hooks/useAccordionState.js.map +1 -1
  760. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  761. package/dist/features/CognitiveCompare/hooks/useCompareData.js.map +1 -1
  762. package/dist/features/CognitiveCompare/hooks/useComparePopups.js +1 -1
  763. package/dist/features/CognitiveCompare/hooks/useComparePopups.js.map +1 -1
  764. package/dist/features/CognitiveCompare/hooks/useDeviationNavigation.js +1 -1
  765. package/dist/features/CognitiveCompare/hooks/useDeviationNavigation.js.map +1 -1
  766. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  767. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js.map +1 -1
  768. package/dist/features/CognitiveCompare/hooks/useResizeHandler.js +1 -1
  769. package/dist/features/CognitiveCompare/hooks/useResizeHandler.js.map +1 -1
  770. package/dist/features/CognitiveCompare/hooks/useSectionRefs.js +1 -1
  771. package/dist/features/CognitiveCompare/hooks/useSectionRefs.js.map +1 -1
  772. package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  773. package/dist/features/CognitiveCompare/hooks/useSideBySide.js.map +1 -1
  774. package/dist/features/CognitiveCompare/hooks/useStyles.js +1 -1
  775. package/dist/features/CognitiveCompare/hooks/useStyles.js.map +1 -1
  776. package/dist/features/CognitiveCompare/utils/buildComparisonRows.js +1 -1
  777. package/dist/features/CognitiveCompare/utils/buildComparisonRows.js.map +1 -1
  778. package/dist/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js +1 -1
  779. package/dist/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js.map +1 -1
  780. package/dist/features/CognitiveDecisioning/CognitiveDecisioningWrapper.module.css.js +1 -1
  781. package/dist/features/CognitiveDecisioning/FaqCitation/FaqCitation.js +1 -1
  782. package/dist/features/CognitiveDecisioning/FaqCitation/FaqCitation.js.map +1 -1
  783. package/dist/features/CognitiveDecisioning/FaqCitation/FaqCitation.module.css.js +1 -1
  784. package/dist/features/CognitiveDecisioning/shared/Audacy/GapIcon.js +1 -1
  785. package/dist/features/CognitiveDecisioning/shared/Audacy/GapIcon.js.map +1 -1
  786. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  787. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js.map +1 -1
  788. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
  789. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js.map +1 -1
  790. package/dist/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
  791. package/dist/features/DualCitation/RuleBookCitationApiComponent.js +1 -1
  792. package/dist/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -1
  793. package/dist/features/DualCitation/RuleBookCitationComponent.js +1 -1
  794. package/dist/features/DualCitation/RuleBookCitationComponent.js.map +1 -1
  795. package/dist/features/DualCitation/SourceBQDataCompnent.js +1 -1
  796. package/dist/features/DualCitation/SourceBQDataCompnent.js.map +1 -1
  797. package/dist/features/DualCitation/SourceBQDataCompnent.module.css.js +1 -1
  798. package/dist/features/ExcelCitation/ExcelCitations.js +1 -1
  799. package/dist/features/ExcelCitation/ExcelCitations.js.map +1 -1
  800. package/dist/features/ExcelCitation/css/excel-citation.css.js +2 -0
  801. package/dist/features/ExcelCitation/css/excel-citation.css.js.map +1 -0
  802. package/dist/features/ExcelCitation/utils/helper.js +1 -1
  803. package/dist/features/ExcelCitation/utils/helper.js.map +1 -1
  804. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  805. package/dist/features/GptWebCitation/GptWebCitation.js.map +1 -1
  806. package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  807. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  808. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -1
  809. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  810. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -1
  811. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  812. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -1
  813. package/dist/features/GptWebCitation/types.js +1 -1
  814. package/dist/features/GptWebCitation/types.js.map +1 -1
  815. package/dist/features/GptWebCitation/utils/citationData.utils.js +1 -1
  816. package/dist/features/GptWebCitation/utils/citationData.utils.js.map +1 -1
  817. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  818. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -1
  819. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js +1 -1
  820. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -1
  821. package/dist/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  822. package/dist/features/IngestionStatus/IngestionStatusComponent.js.map +1 -1
  823. package/dist/features/IngestionStatus/ingestion.module.css.js +1 -1
  824. package/dist/features/IngestionStatus/useIngestionStatus.js +1 -1
  825. package/dist/features/IngestionStatus/useIngestionStatus.js.map +1 -1
  826. package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +1 -1
  827. package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -1
  828. package/dist/features/InstantLearningCitation/HistorySkeleton.js +1 -1
  829. package/dist/features/InstantLearningCitation/HistorySkeleton.js.map +1 -1
  830. package/dist/features/InstantLearningCitation/InstantLearningCitation.js +1 -1
  831. package/dist/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -1
  832. package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
  833. package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -1
  834. package/dist/features/InstantLearningCitation/OverrideTimeline.js +1 -1
  835. package/dist/features/InstantLearningCitation/OverrideTimeline.js.map +1 -1
  836. package/dist/features/InstantLearningCitation/RuleConditionBlock.js +1 -1
  837. package/dist/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -1
  838. package/dist/features/InstantLearningCitation/RuleContentComponent.js +1 -1
  839. package/dist/features/InstantLearningCitation/RuleContentComponent.js.map +1 -1
  840. package/dist/features/InstantLearningCitation/SlashLoader.js +1 -1
  841. package/dist/features/InstantLearningCitation/SlashLoader.js.map +1 -1
  842. package/dist/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +1 -1
  843. package/dist/features/InstantLearningCitation/css/Override.module.css.js +1 -1
  844. package/dist/features/InstantLearningCitation/css/RuleAccordian.module.css.js +1 -1
  845. package/dist/features/InstantLearningCitation/css/common.module.css.js +1 -1
  846. package/dist/features/InstantLearningCitation/types/Types.js +1 -1
  847. package/dist/features/InstantLearningCitation/types/Types.js.map +1 -1
  848. package/dist/features/ManageRemainders/AssigneeCalendarView.js +1 -1
  849. package/dist/features/ManageRemainders/AssigneeCalendarView.js.map +1 -1
  850. package/dist/features/ManageRemainders/ManageRemainder.module.css.js +1 -1
  851. package/dist/features/ManageRemainders/ManageReminders.js +1 -1
  852. package/dist/features/ManageRemainders/ManageReminders.js.map +1 -1
  853. package/dist/features/ManageRemainders/ReminderFrequencyAutocomplete.js +1 -1
  854. package/dist/features/ManageRemainders/ReminderFrequencyAutocomplete.js.map +1 -1
  855. package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js +1 -1
  856. package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.js.map +1 -1
  857. package/dist/features/MarkdownWithImageCitation/MarkdownWithImageCitation.module.css.js +1 -1
  858. package/dist/features/PaginatedTable/PaginatedTable.js +1 -1
  859. package/dist/features/PaginatedTable/PaginatedTable.js.map +1 -1
  860. package/dist/features/PaginatedTable/paginatedTable.module.css.js +1 -1
  861. package/dist/features/PdfEditorCitation/PdfEditorCitation.js +1 -1
  862. package/dist/features/PdfEditorCitation/PdfEditorCitation.js.map +1 -1
  863. package/dist/features/PdfEditorCitation/PdfEditorCitation.module.css.js +1 -1
  864. package/dist/features/PdfViewer/PdfContainer.js +1 -1
  865. package/dist/features/PdfViewer/PdfContainer.js.map +1 -1
  866. package/dist/features/PdfViewer/PdfStyle.js +1 -1
  867. package/dist/features/PdfViewer/PdfStyle.js.map +1 -1
  868. package/dist/features/PdfViewer/PdfToolbar.js +1 -1
  869. package/dist/features/PdfViewer/PdfToolbar.js.map +1 -1
  870. package/dist/features/PdfViewer/PdfViewer.css.js +2 -0
  871. package/dist/features/PdfViewer/PdfViewer.css.js.map +1 -0
  872. package/dist/features/PdfViewer/PdfViewer.js +1 -1
  873. package/dist/features/PdfViewer/PdfViewer.js.map +1 -1
  874. package/dist/features/PdfViewer/rotationManager.js +1 -1
  875. package/dist/features/PdfViewer/rotationManager.js.map +1 -1
  876. package/dist/features/PdfViewer/usePdfHighlight.js +1 -1
  877. package/dist/features/PdfViewer/usePdfHighlight.js.map +1 -1
  878. package/dist/features/PdfViewer/zoomStateManager.js +2 -0
  879. package/dist/features/PdfViewer/zoomStateManager.js.map +1 -0
  880. package/dist/features/ProjectAccordion/ProjectAccordion.js +1 -1
  881. package/dist/features/ProjectAccordion/ProjectAccordion.js.map +1 -1
  882. package/dist/features/ProjectAccordion/ProjectAccordion.module.css.js +1 -1
  883. package/dist/features/ProjectAccordion/_components/Markdown.js +1 -1
  884. package/dist/features/ProjectAccordion/_components/Markdown.js.map +1 -1
  885. package/dist/features/PromptCitation/CitationDependencyGraph.js +1 -1
  886. package/dist/features/PromptCitation/CitationDependencyGraph.js.map +1 -1
  887. package/dist/features/PromptCitation/PromptCitation.js +1 -1
  888. package/dist/features/PromptCitation/PromptCitation.js.map +1 -1
  889. package/dist/features/PromptCitation/_components/CodeEditor.js +1 -1
  890. package/dist/features/PromptCitation/_components/CodeEditor.js.map +1 -1
  891. package/dist/features/PromptCitation/_components/Markdownrenderer.js +1 -1
  892. package/dist/features/PromptCitation/_components/Markdownrenderer.js.map +1 -1
  893. package/dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js +1 -1
  894. package/dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js.map +1 -1
  895. package/dist/features/PromptemonViewer/PromptemonViewer.js +1 -1
  896. package/dist/features/PromptemonViewer/PromptemonViewer.js.map +1 -1
  897. package/dist/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js +1 -1
  898. package/dist/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js.map +1 -1
  899. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  900. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js.map +1 -1
  901. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.module.css.js +1 -1
  902. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.js +1 -1
  903. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.js.map +1 -1
  904. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.module.css.js +1 -1
  905. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js +1 -1
  906. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js.map +1 -1
  907. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.module.css.js +1 -1
  908. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.js +1 -1
  909. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.js.map +1 -1
  910. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.module.css.js +1 -1
  911. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js +1 -1
  912. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js.map +1 -1
  913. package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.module.css.js +1 -1
  914. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.js +1 -1
  915. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.js.map +1 -1
  916. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.js +1 -1
  917. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.js.map +1 -1
  918. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.js +1 -1
  919. package/dist/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.js.map +1 -1
  920. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.js +1 -1
  921. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.js.map +1 -1
  922. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.js +1 -1
  923. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.js.map +1 -1
  924. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.js +1 -1
  925. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.js.map +1 -1
  926. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  927. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js.map +1 -1
  928. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.js +1 -1
  929. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.js.map +1 -1
  930. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.js +1 -1
  931. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.js.map +1 -1
  932. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.js +1 -1
  933. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.js.map +1 -1
  934. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  935. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js.map +1 -1
  936. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.js +1 -1
  937. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.js.map +1 -1
  938. package/dist/features/RequirementAiCitations/FileCitation/FileCitationContent.js +1 -1
  939. package/dist/features/RequirementAiCitations/FileCitation/FileCitationContent.js.map +1 -1
  940. package/dist/features/RequirementAiCitations/FileCitation/FileCitationContent.module.css.js +1 -1
  941. package/dist/features/RequirementAiCitations/ImageCitation/ImageCitationContent.js +1 -1
  942. package/dist/features/RequirementAiCitations/ImageCitation/ImageCitationContent.js.map +1 -1
  943. package/dist/features/RequirementAiCitations/ImageCitation/ImageCitationContent.module.css.js +1 -1
  944. package/dist/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js +1 -1
  945. package/dist/features/RequirementAiCitations/VideoCitation/VideoCitationContent.js.map +1 -1
  946. package/dist/features/RequirementAiCitations/VideoCitation/VideoCitationContent.module.css.js +1 -1
  947. package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
  948. package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js.map +1 -1
  949. package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
  950. package/dist/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.js +1 -1
  951. package/dist/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.js.map +1 -1
  952. package/dist/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.module.css.js +1 -1
  953. package/dist/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.js +1 -1
  954. package/dist/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.js.map +1 -1
  955. package/dist/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.module.css.js +1 -1
  956. package/dist/features/ReviewPanel/ReviewPanel.css.js +2 -0
  957. package/dist/features/ReviewPanel/ReviewPanel.css.js.map +1 -0
  958. package/dist/features/ReviewPanel/ReviewPanel.js +1 -1
  959. package/dist/features/ReviewPanel/ReviewPanel.js.map +1 -1
  960. package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  961. package/dist/features/RulebookCitations/RuleBookCitationApi.js.map +1 -1
  962. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  963. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js.map +1 -1
  964. package/dist/features/SPBAnalysisPanel/Cognitivereasoningpanel.js +1 -1
  965. package/dist/features/SPBAnalysisPanel/Cognitivereasoningpanel.js.map +1 -1
  966. package/dist/features/SPBAnalysisPanel/DependencyGraph.js +1 -1
  967. package/dist/features/SPBAnalysisPanel/DependencyGraph.js.map +1 -1
  968. package/dist/features/SPBAnalysisPanel/Internaleditor.js +1 -1
  969. package/dist/features/SPBAnalysisPanel/Internaleditor.js.map +1 -1
  970. package/dist/features/SPBAnalysisPanel/Markdownrenderer.js +1 -1
  971. package/dist/features/SPBAnalysisPanel/Markdownrenderer.js.map +1 -1
  972. package/dist/features/SPBAnalysisPanel/Spbanalysispanel.js +1 -1
  973. package/dist/features/SPBAnalysisPanel/Spbanalysispanel.js.map +1 -1
  974. package/dist/features/ScannedDocCitation/ScannedDocCitation.js +1 -1
  975. package/dist/features/ScannedDocCitation/ScannedDocCitation.js.map +1 -1
  976. package/dist/features/SegmentReviewComponents/BoundaryCard.js +1 -1
  977. package/dist/features/SegmentReviewComponents/BoundaryCard.js.map +1 -1
  978. package/dist/features/SegmentReviewComponents/CardWrapper.js +1 -1
  979. package/dist/features/SegmentReviewComponents/CardWrapper.js.map +1 -1
  980. package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js +1 -1
  981. package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +1 -1
  982. package/dist/features/SegmentReviewComponents/CognitiveIcon.js +1 -1
  983. package/dist/features/SegmentReviewComponents/CognitiveIcon.js.map +1 -1
  984. package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js +1 -1
  985. package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js.map +1 -1
  986. package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
  987. package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +1 -1
  988. package/dist/features/SegmentReviewComponents/LabelCheck.js +1 -1
  989. package/dist/features/SegmentReviewComponents/LabelCheck.js.map +1 -1
  990. package/dist/features/SegmentReviewComponents/PageCheck.js +1 -1
  991. package/dist/features/SegmentReviewComponents/PageCheck.js.map +1 -1
  992. package/dist/features/SegmentReviewComponents/PageTypeChoiceCheck.js +1 -1
  993. package/dist/features/SegmentReviewComponents/PageTypeChoiceCheck.js.map +1 -1
  994. package/dist/features/SegmentReviewComponents/RevertCard.js +1 -1
  995. package/dist/features/SegmentReviewComponents/RevertCard.js.map +1 -1
  996. package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +1 -1
  997. package/dist/features/SegmentReviewComponents/RevertSuccessCard.js.map +1 -1
  998. package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js +1 -1
  999. package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js.map +1 -1
  1000. package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js +1 -1
  1001. package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +1 -1
  1002. package/dist/features/SegmentReviewComponents/ReviewedCard.js +1 -1
  1003. package/dist/features/SegmentReviewComponents/ReviewedCard.js.map +1 -1
  1004. package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  1005. package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +1 -1
  1006. package/dist/features/SegmentReviewComponents/helper.js +1 -1
  1007. package/dist/features/SegmentReviewComponents/helper.js.map +1 -1
  1008. package/dist/features/SegmentReviewComponents/reviewScore.js +1 -1
  1009. package/dist/features/SegmentReviewComponents/reviewScore.js.map +1 -1
  1010. package/dist/features/SegmentReviewComponents/reviewStepAdapters.js +1 -1
  1011. package/dist/features/SegmentReviewComponents/reviewStepAdapters.js.map +1 -1
  1012. package/dist/features/SplitterCitations/Splitter.module.css.js +1 -1
  1013. package/dist/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
  1014. package/dist/features/SplitterCitations/SplitterCitationsComponent.js.map +1 -1
  1015. package/dist/features/SplitterCitations/icons/icons.js +1 -1
  1016. package/dist/features/SplitterCitations/icons/icons.js.map +1 -1
  1017. package/dist/features/TableCitation/TableCitationContent.js +1 -1
  1018. package/dist/features/TableCitation/TableCitationContent.js.map +1 -1
  1019. package/dist/features/TableCitation/TableCitationContent.module.css.js +1 -1
  1020. package/dist/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
  1021. package/dist/features/TextualGuidelines/TextualGuideLinesComponent.js.map +1 -1
  1022. package/dist/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
  1023. package/dist/hooks/useOnDemandCitationFetch.js +1 -1
  1024. package/dist/hooks/useOnDemandCitationFetch.js.map +1 -1
  1025. package/dist/index.js +1 -1
  1026. package/dist/lib/ui/icons.js +2 -0
  1027. package/dist/lib/ui/icons.js.map +1 -0
  1028. package/dist/lib/ui/materialCompat.js +2 -0
  1029. package/dist/lib/ui/materialCompat.js.map +1 -0
  1030. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +2 -0
  1031. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
  1032. package/dist/service/apicache.service.js +1 -1
  1033. package/dist/service/apicache.service.js.map +1 -1
  1034. package/dist/service/onDemandApi.js +1 -1
  1035. package/dist/service/onDemandApi.js.map +1 -1
  1036. package/dist/types/AutopilotStyle.d.ts +2 -0
  1037. package/dist/types/AutopilotStyle.d.ts.map +1 -0
  1038. package/dist/types/BPACitationRenderer.d.ts +3 -0
  1039. package/dist/types/BPACitationRenderer.d.ts.map +1 -0
  1040. package/dist/types/BookCitation.d.ts +3 -0
  1041. package/dist/types/BookCitation.d.ts.map +1 -0
  1042. package/dist/types/Bookemon.d.ts +3 -0
  1043. package/dist/types/Bookemon.d.ts.map +1 -0
  1044. package/dist/types/ChatCitation.d.ts +3 -0
  1045. package/dist/types/ChatCitation.d.ts.map +1 -0
  1046. package/dist/types/ChatDrawer.d.ts +3 -0
  1047. package/dist/types/ChatDrawer.d.ts.map +1 -0
  1048. package/dist/types/CitationRenderer.d.ts +3 -0
  1049. package/dist/types/CitationRenderer.d.ts.map +1 -0
  1050. package/dist/types/CodeCitation.d.ts +3 -0
  1051. package/dist/types/CodeCitation.d.ts.map +1 -0
  1052. package/dist/types/CognitiveInternalgptCoreComponent.d.ts +3 -0
  1053. package/dist/types/CognitiveInternalgptCoreComponent.d.ts.map +1 -0
  1054. package/dist/types/CognitiveInternalgptReasoning.d.ts +3 -0
  1055. package/dist/types/CognitiveInternalgptReasoning.d.ts.map +1 -0
  1056. package/dist/types/CommonConstants/CommonConstants.d.ts +5 -0
  1057. package/dist/types/CommonConstants/CommonConstants.d.ts.map +1 -0
  1058. package/dist/types/GptWebCitation.d.ts +3 -0
  1059. package/dist/types/GptWebCitation.d.ts.map +1 -0
  1060. package/dist/types/IngestionStatusComponent.d.ts +2 -0
  1061. package/dist/types/IngestionStatusComponent.d.ts.map +1 -0
  1062. package/dist/types/PdfViewer.d.ts +3 -0
  1063. package/dist/types/PdfViewer.d.ts.map +1 -0
  1064. package/dist/types/ProjectAccordion.d.ts +3 -0
  1065. package/dist/types/ProjectAccordion.d.ts.map +1 -0
  1066. package/dist/types/SplitterCitationsComponent.d.ts +3 -0
  1067. package/dist/types/SplitterCitationsComponent.d.ts.map +1 -0
  1068. package/dist/types/TextualGuideLinesComponent.d.ts +3 -0
  1069. package/dist/types/TextualGuideLinesComponent.d.ts.map +1 -0
  1070. package/dist/types/assests/icons/CitationsIcon.d.ts +2 -0
  1071. package/dist/types/assests/icons/CitationsIcon.d.ts.map +1 -0
  1072. package/dist/types/assests/icons/CitationsSparkleIcon.d.ts +9 -0
  1073. package/dist/types/assests/icons/CitationsSparkleIcon.d.ts.map +1 -0
  1074. package/dist/types/assests/icons/InfoAlert.d.ts +3 -0
  1075. package/dist/types/assests/icons/InfoAlert.d.ts.map +1 -0
  1076. package/dist/types/assests/svg/ButtonCognitiveIcon.d.ts +2 -0
  1077. package/dist/types/assests/svg/ButtonCognitiveIcon.d.ts.map +1 -0
  1078. package/dist/types/assests/svg/NeuralNetworkIcon.d.ts +10 -0
  1079. package/dist/types/assests/svg/NeuralNetworkIcon.d.ts.map +1 -0
  1080. package/dist/types/assests/svg/PdfViewerIcons.d.ts +6 -0
  1081. package/dist/types/assests/svg/PdfViewerIcons.d.ts.map +1 -0
  1082. package/dist/types/assests/svg/SparkleIcon.d.ts +3 -0
  1083. package/dist/types/assests/svg/SparkleIcon.d.ts.map +1 -0
  1084. package/dist/types/constants/diagnosticStylesBySeverity.d.ts +3 -0
  1085. package/dist/types/constants/diagnosticStylesBySeverity.d.ts.map +1 -0
  1086. package/dist/types/context/DataSelectedContext.d.ts +73 -0
  1087. package/dist/types/context/DataSelectedContext.d.ts.map +1 -0
  1088. package/dist/types/features/BPACitationRenderer/BPACitationRenderer.d.ts +5 -0
  1089. package/dist/types/features/BPACitationRenderer/BPACitationRenderer.d.ts.map +1 -0
  1090. package/dist/types/features/BPACitationRenderer/BPACitationRenderer.types.d.ts +230 -0
  1091. package/dist/types/features/BPACitationRenderer/BPACitationRenderer.types.d.ts.map +1 -0
  1092. package/dist/types/features/BPACitationRenderer/citationTypes.d.ts +15 -0
  1093. package/dist/types/features/BPACitationRenderer/citationTypes.d.ts.map +1 -0
  1094. package/dist/types/features/BookCitation/BookCitation.d.ts +42 -0
  1095. package/dist/types/features/BookCitation/BookCitation.d.ts.map +1 -0
  1096. package/dist/types/features/BookCitation/text-cleaner.d.ts +2 -0
  1097. package/dist/types/features/BookCitation/text-cleaner.d.ts.map +1 -0
  1098. package/dist/types/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts +22 -0
  1099. package/dist/types/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts.map +1 -0
  1100. package/dist/types/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts +14 -0
  1101. package/dist/types/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts.map +1 -0
  1102. package/dist/types/features/Bookemon/BookElementsCard/BookElementsCard.d.ts +53 -0
  1103. package/dist/types/features/Bookemon/BookElementsCard/BookElementsCard.d.ts.map +1 -0
  1104. package/dist/types/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts +21 -0
  1105. package/dist/types/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts.map +1 -0
  1106. package/dist/types/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts +36 -0
  1107. package/dist/types/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts.map +1 -0
  1108. package/dist/types/features/Bookemon/BookPreview/BookPreview.d.ts +51 -0
  1109. package/dist/types/features/Bookemon/BookPreview/BookPreview.d.ts.map +1 -0
  1110. package/dist/types/features/Bookemon/Bookemon.d.ts +9 -0
  1111. package/dist/types/features/Bookemon/Bookemon.d.ts.map +1 -0
  1112. package/dist/types/features/Bookemon/BookemonCitationLayer.d.ts +8 -0
  1113. package/dist/types/features/Bookemon/BookemonCitationLayer.d.ts.map +1 -0
  1114. package/dist/types/features/Bookemon/BookemonContent.d.ts +3 -0
  1115. package/dist/types/features/Bookemon/BookemonContent.d.ts.map +1 -0
  1116. package/dist/types/features/Bookemon/BookemonStyles.d.ts +6 -0
  1117. package/dist/types/features/Bookemon/BookemonStyles.d.ts.map +1 -0
  1118. package/dist/types/features/Bookemon/types/citation.types.d.ts +65 -0
  1119. package/dist/types/features/Bookemon/types/citation.types.d.ts.map +1 -0
  1120. package/dist/types/features/Bookemon/utils/highlight.d.ts +7 -0
  1121. package/dist/types/features/Bookemon/utils/highlight.d.ts.map +1 -0
  1122. package/dist/types/features/ChatCitation/BigQueryTable.d.ts +8 -0
  1123. package/dist/types/features/ChatCitation/BigQueryTable.d.ts.map +1 -0
  1124. package/dist/types/features/ChatCitation/ChatCitationRenderer.d.ts +25 -0
  1125. package/dist/types/features/ChatCitation/ChatCitationRenderer.d.ts.map +1 -0
  1126. package/dist/types/features/ChatCitation/InternalChatCitationRenderer.d.ts +13 -0
  1127. package/dist/types/features/ChatCitation/InternalChatCitationRenderer.d.ts.map +1 -0
  1128. package/dist/types/features/ChatCitation/assets/collapse.d.ts +4 -0
  1129. package/dist/types/features/ChatCitation/assets/collapse.d.ts.map +1 -0
  1130. package/dist/types/features/ChatCitation/components/AssistantChatItem.d.ts +7 -0
  1131. package/dist/types/features/ChatCitation/components/AssistantChatItem.d.ts.map +1 -0
  1132. package/dist/types/features/ChatCitation/components/ChatCitation.d.ts +16 -0
  1133. package/dist/types/features/ChatCitation/components/ChatCitation.d.ts.map +1 -0
  1134. package/dist/types/features/ChatCitation/components/Chip.d.ts +8 -0
  1135. package/dist/types/features/ChatCitation/components/Chip.d.ts.map +1 -0
  1136. package/dist/types/features/ChatCitation/components/DetailedView.d.ts +11 -0
  1137. package/dist/types/features/ChatCitation/components/DetailedView.d.ts.map +1 -0
  1138. package/dist/types/features/ChatCitation/components/IconContainer.d.ts +8 -0
  1139. package/dist/types/features/ChatCitation/components/IconContainer.d.ts.map +1 -0
  1140. package/dist/types/features/ChatCitation/components/InViewNavigation.d.ts +12 -0
  1141. package/dist/types/features/ChatCitation/components/InViewNavigation.d.ts.map +1 -0
  1142. package/dist/types/features/ChatCitation/components/MarkdownRenderer.d.ts +9 -0
  1143. package/dist/types/features/ChatCitation/components/MarkdownRenderer.d.ts.map +1 -0
  1144. package/dist/types/features/ChatCitation/components/RuleBook.d.ts +10 -0
  1145. package/dist/types/features/ChatCitation/components/RuleBook.d.ts.map +1 -0
  1146. package/dist/types/features/ChatCitation/components/SummarizedView.d.ts +19 -0
  1147. package/dist/types/features/ChatCitation/components/SummarizedView.d.ts.map +1 -0
  1148. package/dist/types/features/ChatCitation/components/UserChatItem.d.ts +7 -0
  1149. package/dist/types/features/ChatCitation/components/UserChatItem.d.ts.map +1 -0
  1150. package/dist/types/features/ChatCitation/components/UserInitialsAsAvatar.d.ts +11 -0
  1151. package/dist/types/features/ChatCitation/components/UserInitialsAsAvatar.d.ts.map +1 -0
  1152. package/dist/types/features/ChatCitation/components/wrappers/Modal.d.ts +10 -0
  1153. package/dist/types/features/ChatCitation/components/wrappers/Modal.d.ts.map +1 -0
  1154. package/dist/types/features/ChatCitation/constants/icons.d.ts +9 -0
  1155. package/dist/types/features/ChatCitation/constants/icons.d.ts.map +1 -0
  1156. package/dist/types/features/ChatCitation/constants/renderer.d.ts +7 -0
  1157. package/dist/types/features/ChatCitation/constants/renderer.d.ts.map +1 -0
  1158. package/dist/types/features/ChatCitation/types/citations.types.d.ts +113 -0
  1159. package/dist/types/features/ChatCitation/types/citations.types.d.ts.map +1 -0
  1160. package/dist/types/features/ChatCitation/utils/helpers.d.ts +16 -0
  1161. package/dist/types/features/ChatCitation/utils/helpers.d.ts.map +1 -0
  1162. package/dist/types/features/ChatDrawer/ChatDrawer.d.ts +5 -0
  1163. package/dist/types/features/ChatDrawer/ChatDrawer.d.ts.map +1 -0
  1164. package/dist/types/features/ChatDrawer/constants/ChatDrawer.d.ts +17 -0
  1165. package/dist/types/features/ChatDrawer/constants/ChatDrawer.d.ts.map +1 -0
  1166. package/dist/types/features/ChatDrawer/types/ChatDrawer.types.d.ts +51 -0
  1167. package/dist/types/features/ChatDrawer/types/ChatDrawer.types.d.ts.map +1 -0
  1168. package/dist/types/features/CitationRenderer/CitationRenderer.d.ts +21 -0
  1169. package/dist/types/features/CitationRenderer/CitationRenderer.d.ts.map +1 -0
  1170. package/dist/types/features/CitationRenderer/MarkdownRenderer.d.ts +25 -0
  1171. package/dist/types/features/CitationRenderer/MarkdownRenderer.d.ts.map +1 -0
  1172. package/dist/types/features/CitationViewer/CitationsViewer.d.ts +4 -0
  1173. package/dist/types/features/CitationViewer/CitationsViewer.d.ts.map +1 -0
  1174. package/dist/types/features/CitationViewer/components/AudioWaveform.d.ts +17 -0
  1175. package/dist/types/features/CitationViewer/components/AudioWaveform.d.ts.map +1 -0
  1176. package/dist/types/features/CitationViewer/components/Header.d.ts +12 -0
  1177. package/dist/types/features/CitationViewer/components/Header.d.ts.map +1 -0
  1178. package/dist/types/features/CitationViewer/components/KeyTakeaways.d.ts +8 -0
  1179. package/dist/types/features/CitationViewer/components/KeyTakeaways.d.ts.map +1 -0
  1180. package/dist/types/features/CitationViewer/components/Transcript.d.ts +10 -0
  1181. package/dist/types/features/CitationViewer/components/Transcript.d.ts.map +1 -0
  1182. package/dist/types/features/CitationViewer/config/apiConfig.d.ts +3 -0
  1183. package/dist/types/features/CitationViewer/config/apiConfig.d.ts.map +1 -0
  1184. package/dist/types/features/CitationViewer/hooks/getSignedUrl.d.ts +2 -0
  1185. package/dist/types/features/CitationViewer/hooks/getSignedUrl.d.ts.map +1 -0
  1186. package/dist/types/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts +2 -0
  1187. package/dist/types/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts.map +1 -0
  1188. package/dist/types/features/CitationViewer/types/artifact.d.ts +58 -0
  1189. package/dist/types/features/CitationViewer/types/artifact.d.ts.map +1 -0
  1190. package/dist/types/features/CodeCitation/CodeCitation.d.ts +51 -0
  1191. package/dist/types/features/CodeCitation/CodeCitation.d.ts.map +1 -0
  1192. package/dist/types/features/CodeCitation/_components/Accordian.d.ts +10 -0
  1193. package/dist/types/features/CodeCitation/_components/Accordian.d.ts.map +1 -0
  1194. package/dist/types/features/CodeCitation/_components/CodeCitationPopup.d.ts +34 -0
  1195. package/dist/types/features/CodeCitation/_components/CodeCitationPopup.d.ts.map +1 -0
  1196. package/dist/types/features/CodeCitation/_components/CodeCitationsStats.d.ts +13 -0
  1197. package/dist/types/features/CodeCitation/_components/CodeCitationsStats.d.ts.map +1 -0
  1198. package/dist/types/features/CodeCitation/_components/CodeEditor.d.ts +30 -0
  1199. package/dist/types/features/CodeCitation/_components/CodeEditor.d.ts.map +1 -0
  1200. package/dist/types/features/CodeCitation/_components/DescriptionWithToggle.d.ts +7 -0
  1201. package/dist/types/features/CodeCitation/_components/DescriptionWithToggle.d.ts.map +1 -0
  1202. package/dist/types/features/CodeCitation/_components/HighlightedCodeDetails.d.ts +16 -0
  1203. package/dist/types/features/CodeCitation/_components/HighlightedCodeDetails.d.ts.map +1 -0
  1204. package/dist/types/features/CodeCitation/_components/RepoAndBranchTag.d.ts +9 -0
  1205. package/dist/types/features/CodeCitation/_components/RepoAndBranchTag.d.ts.map +1 -0
  1206. package/dist/types/features/CodeCitation/_components/Spinner.d.ts +4 -0
  1207. package/dist/types/features/CodeCitation/_components/Spinner.d.ts.map +1 -0
  1208. package/dist/types/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts +12 -0
  1209. package/dist/types/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts.map +1 -0
  1210. package/dist/types/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts +10 -0
  1211. package/dist/types/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts.map +1 -0
  1212. package/dist/types/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts +13 -0
  1213. package/dist/types/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts.map +1 -0
  1214. package/dist/types/features/CodeCitation/_components/ThemeToggle.d.ts +12 -0
  1215. package/dist/types/features/CodeCitation/_components/ThemeToggle.d.ts.map +1 -0
  1216. package/dist/types/features/CodeCitation/_components/TooltipComponent.d.ts +8 -0
  1217. package/dist/types/features/CodeCitation/_components/TooltipComponent.d.ts.map +1 -0
  1218. package/dist/types/features/CognitiveCompare/CitationAnchor.d.ts +30 -0
  1219. package/dist/types/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -0
  1220. package/dist/types/features/CognitiveCompare/CitationRenderer.d.ts +14 -0
  1221. package/dist/types/features/CognitiveCompare/CitationRenderer.d.ts.map +1 -0
  1222. package/dist/types/features/CognitiveCompare/CognitiveCompare.d.ts +7 -0
  1223. package/dist/types/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -0
  1224. package/dist/types/features/CognitiveCompare/CognitiveCompareConfig.d.ts +64 -0
  1225. package/dist/types/features/CognitiveCompare/CognitiveCompareConfig.d.ts.map +1 -0
  1226. package/dist/types/features/CognitiveCompare/CognitiveCompareConstants.d.ts +11 -0
  1227. package/dist/types/features/CognitiveCompare/CognitiveCompareConstants.d.ts.map +1 -0
  1228. package/dist/types/features/CognitiveCompare/CognitiveCompareTypes.d.ts +321 -0
  1229. package/dist/types/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -0
  1230. package/dist/types/features/CognitiveCompare/CognitiveComparehelpers.d.ts +83 -0
  1231. package/dist/types/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -0
  1232. package/dist/types/features/CognitiveCompare/CognitivePopup.d.ts +7 -0
  1233. package/dist/types/features/CognitiveCompare/CognitivePopup.d.ts.map +1 -0
  1234. package/dist/types/features/CognitiveCompare/CompareContext.d.ts +72 -0
  1235. package/dist/types/features/CognitiveCompare/CompareContext.d.ts.map +1 -0
  1236. package/dist/types/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts +4 -0
  1237. package/dist/types/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +1 -0
  1238. package/dist/types/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts +9 -0
  1239. package/dist/types/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts.map +1 -0
  1240. package/dist/types/features/CognitiveCompare/Guidelines/utils/helper.d.ts +11 -0
  1241. package/dist/types/features/CognitiveCompare/Guidelines/utils/helper.d.ts.map +1 -0
  1242. package/dist/types/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts +6 -0
  1243. package/dist/types/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +1 -0
  1244. package/dist/types/features/CognitiveCompare/LoaderComponent.d.ts +4 -0
  1245. package/dist/types/features/CognitiveCompare/LoaderComponent.d.ts.map +1 -0
  1246. package/dist/types/features/CognitiveCompare/MoreFunctionsPopup.d.ts +19 -0
  1247. package/dist/types/features/CognitiveCompare/MoreFunctionsPopup.d.ts.map +1 -0
  1248. package/dist/types/features/CognitiveCompare/OverlayComponent.d.ts +5 -0
  1249. package/dist/types/features/CognitiveCompare/OverlayComponent.d.ts.map +1 -0
  1250. package/dist/types/features/CognitiveCompare/ResizableSplitPane.d.ts +9 -0
  1251. package/dist/types/features/CognitiveCompare/ResizableSplitPane.d.ts.map +1 -0
  1252. package/dist/types/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts +3 -0
  1253. package/dist/types/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts.map +1 -0
  1254. package/dist/types/features/CognitiveCompare/components/CompareHeader.d.ts +13 -0
  1255. package/dist/types/features/CognitiveCompare/components/CompareHeader.d.ts.map +1 -0
  1256. package/dist/types/features/CognitiveCompare/components/LHSSectionRow.d.ts +9 -0
  1257. package/dist/types/features/CognitiveCompare/components/LHSSectionRow.d.ts.map +1 -0
  1258. package/dist/types/features/CognitiveCompare/components/RHSSectionRow.d.ts +9 -0
  1259. package/dist/types/features/CognitiveCompare/components/RHSSectionRow.d.ts.map +1 -0
  1260. package/dist/types/features/CognitiveCompare/components/ScrollLockToggle.d.ts +11 -0
  1261. package/dist/types/features/CognitiveCompare/components/ScrollLockToggle.d.ts.map +1 -0
  1262. package/dist/types/features/CognitiveCompare/components/SectionAccordion.d.ts +17 -0
  1263. package/dist/types/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -0
  1264. package/dist/types/features/CognitiveCompare/components/SubSectionAccordion.d.ts +14 -0
  1265. package/dist/types/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -0
  1266. package/dist/types/features/CognitiveCompare/components/SvgConnectors.d.ts +36 -0
  1267. package/dist/types/features/CognitiveCompare/components/SvgConnectors.d.ts.map +1 -0
  1268. package/dist/types/features/CognitiveCompare/components/ThreeDotsLoader.d.ts +8 -0
  1269. package/dist/types/features/CognitiveCompare/components/ThreeDotsLoader.d.ts.map +1 -0
  1270. package/dist/types/features/CognitiveCompare/components/connectedLines.d.ts +9 -0
  1271. package/dist/types/features/CognitiveCompare/components/connectedLines.d.ts.map +1 -0
  1272. package/dist/types/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +13 -0
  1273. package/dist/types/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -0
  1274. package/dist/types/features/CognitiveCompare/hooks/useAccordionState.d.ts +32 -0
  1275. package/dist/types/features/CognitiveCompare/hooks/useAccordionState.d.ts.map +1 -0
  1276. package/dist/types/features/CognitiveCompare/hooks/useCompareData.d.ts +20 -0
  1277. package/dist/types/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -0
  1278. package/dist/types/features/CognitiveCompare/hooks/useComparePopups.d.ts +22 -0
  1279. package/dist/types/features/CognitiveCompare/hooks/useComparePopups.d.ts.map +1 -0
  1280. package/dist/types/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts +32 -0
  1281. package/dist/types/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts.map +1 -0
  1282. package/dist/types/features/CognitiveCompare/hooks/useLinesCalculator.d.ts +26 -0
  1283. package/dist/types/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -0
  1284. package/dist/types/features/CognitiveCompare/hooks/useResizeHandler.d.ts +5 -0
  1285. package/dist/types/features/CognitiveCompare/hooks/useResizeHandler.d.ts.map +1 -0
  1286. package/dist/types/features/CognitiveCompare/hooks/useSectionRefs.d.ts +19 -0
  1287. package/dist/types/features/CognitiveCompare/hooks/useSectionRefs.d.ts.map +1 -0
  1288. package/dist/types/features/CognitiveCompare/hooks/useSideBySide.d.ts +34 -0
  1289. package/dist/types/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -0
  1290. package/dist/types/features/CognitiveCompare/hooks/useStyles.d.ts +16 -0
  1291. package/dist/types/features/CognitiveCompare/hooks/useStyles.d.ts.map +1 -0
  1292. package/dist/types/features/CognitiveCompare/utils/buildComparisonRows.d.ts +11 -0
  1293. package/dist/types/features/CognitiveCompare/utils/buildComparisonRows.d.ts.map +1 -0
  1294. package/dist/types/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts +47 -0
  1295. package/dist/types/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts.map +1 -0
  1296. package/dist/types/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts +8 -0
  1297. package/dist/types/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts.map +1 -0
  1298. package/dist/types/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts +7 -0
  1299. package/dist/types/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts.map +1 -0
  1300. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +19 -0
  1301. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -0
  1302. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts +26 -0
  1303. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +1 -0
  1304. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts +162 -0
  1305. package/dist/types/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts.map +1 -0
  1306. package/dist/types/features/DataSelector/DataSelector.d.ts +18 -0
  1307. package/dist/types/features/DataSelector/DataSelector.d.ts.map +1 -0
  1308. package/dist/types/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +3 -0
  1309. package/dist/types/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +1 -0
  1310. package/dist/types/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +3 -0
  1311. package/dist/types/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +1 -0
  1312. package/dist/types/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +3 -0
  1313. package/dist/types/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +1 -0
  1314. package/dist/types/features/DataSelector/components/RlefDataTabsComponent.d.ts +4 -0
  1315. package/dist/types/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +1 -0
  1316. package/dist/types/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +4 -0
  1317. package/dist/types/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +1 -0
  1318. package/dist/types/features/DataSelector/components/SavedDataSetListScreen.d.ts +13 -0
  1319. package/dist/types/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +1 -0
  1320. package/dist/types/features/DataSelector/components/SelectedDataList.d.ts +3 -0
  1321. package/dist/types/features/DataSelector/components/SelectedDataList.d.ts.map +1 -0
  1322. package/dist/types/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +10 -0
  1323. package/dist/types/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +1 -0
  1324. package/dist/types/features/DualCitation/RuleBookCitationApiComponent.d.ts +20 -0
  1325. package/dist/types/features/DualCitation/RuleBookCitationApiComponent.d.ts.map +1 -0
  1326. package/dist/types/features/DualCitation/RuleBookCitationComponent.d.ts +31 -0
  1327. package/dist/types/features/DualCitation/RuleBookCitationComponent.d.ts.map +1 -0
  1328. package/dist/types/features/DualCitation/SourceBQDataCompnent.d.ts +36 -0
  1329. package/dist/types/features/DualCitation/SourceBQDataCompnent.d.ts.map +1 -0
  1330. package/dist/types/features/ExcelCitation/ExcelCitations.d.ts +15 -0
  1331. package/dist/types/features/ExcelCitation/ExcelCitations.d.ts.map +1 -0
  1332. package/dist/types/features/ExcelCitation/utils/helper.d.ts +2 -0
  1333. package/dist/types/features/ExcelCitation/utils/helper.d.ts.map +1 -0
  1334. package/dist/types/features/GptWebCitation/GptWebCitation.d.ts +15 -0
  1335. package/dist/types/features/GptWebCitation/GptWebCitation.d.ts.map +1 -0
  1336. package/dist/types/features/GptWebCitation/GptWebCitationImageCitation.d.ts +16 -0
  1337. package/dist/types/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -0
  1338. package/dist/types/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +10 -0
  1339. package/dist/types/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -0
  1340. package/dist/types/features/GptWebCitation/GptWebCitationSkeleton.d.ts +14 -0
  1341. package/dist/types/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -0
  1342. package/dist/types/features/GptWebCitation/types.d.ts +405 -0
  1343. package/dist/types/features/GptWebCitation/types.d.ts.map +1 -0
  1344. package/dist/types/features/GptWebCitation/utils/citationData.utils.d.ts +10 -0
  1345. package/dist/types/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -0
  1346. package/dist/types/features/GptWebCitation/utils/fixedHeight.utils.d.ts +10 -0
  1347. package/dist/types/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -0
  1348. package/dist/types/features/GptWebCitation/utils/styleOverrides.utils.d.ts +6 -0
  1349. package/dist/types/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +1 -0
  1350. package/dist/types/features/IngestionStatus/IngestionStatusComponent.d.ts +28 -0
  1351. package/dist/types/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -0
  1352. package/dist/types/features/IngestionStatus/useIngestionStatus.d.ts +40 -0
  1353. package/dist/types/features/IngestionStatus/useIngestionStatus.d.ts.map +1 -0
  1354. package/dist/types/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts +5 -0
  1355. package/dist/types/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts.map +1 -0
  1356. package/dist/types/features/InstantLearningCitation/HistorySkeleton.d.ts +10 -0
  1357. package/dist/types/features/InstantLearningCitation/HistorySkeleton.d.ts.map +1 -0
  1358. package/dist/types/features/InstantLearningCitation/InstantLearningCitation.d.ts +2 -0
  1359. package/dist/types/features/InstantLearningCitation/InstantLearningCitation.d.ts.map +1 -0
  1360. package/dist/types/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +23 -0
  1361. package/dist/types/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +1 -0
  1362. package/dist/types/features/InstantLearningCitation/OverrideTimeline.d.ts +13 -0
  1363. package/dist/types/features/InstantLearningCitation/OverrideTimeline.d.ts.map +1 -0
  1364. package/dist/types/features/InstantLearningCitation/RuleConditionBlock.d.ts +13 -0
  1365. package/dist/types/features/InstantLearningCitation/RuleConditionBlock.d.ts.map +1 -0
  1366. package/dist/types/features/InstantLearningCitation/RuleContentComponent.d.ts +5 -0
  1367. package/dist/types/features/InstantLearningCitation/RuleContentComponent.d.ts.map +1 -0
  1368. package/dist/types/features/InstantLearningCitation/SlashLoader.d.ts +12 -0
  1369. package/dist/types/features/InstantLearningCitation/SlashLoader.d.ts.map +1 -0
  1370. package/dist/types/features/InstantLearningCitation/types/Types.d.ts +356 -0
  1371. package/dist/types/features/InstantLearningCitation/types/Types.d.ts.map +1 -0
  1372. package/dist/types/features/ManageRemainders/AssigneeCalendarView.d.ts +19 -0
  1373. package/dist/types/features/ManageRemainders/AssigneeCalendarView.d.ts.map +1 -0
  1374. package/dist/types/features/ManageRemainders/ManageReminders.d.ts +48 -0
  1375. package/dist/types/features/ManageRemainders/ManageReminders.d.ts.map +1 -0
  1376. package/dist/types/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts +17 -0
  1377. package/dist/types/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts.map +1 -0
  1378. package/dist/types/features/ManageRemainders/types/type.d.ts +78 -0
  1379. package/dist/types/features/ManageRemainders/types/type.d.ts.map +1 -0
  1380. package/dist/types/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts +37 -0
  1381. package/dist/types/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts.map +1 -0
  1382. package/dist/types/features/PaginatedTable/PaginatedTable.d.ts +27 -0
  1383. package/dist/types/features/PaginatedTable/PaginatedTable.d.ts.map +1 -0
  1384. package/dist/types/features/PdfEditorCitation/PdfEditorCitation.d.ts +19 -0
  1385. package/dist/types/features/PdfEditorCitation/PdfEditorCitation.d.ts.map +1 -0
  1386. package/dist/types/features/PdfViewer/PdfContainer.d.ts +16 -0
  1387. package/dist/types/features/PdfViewer/PdfContainer.d.ts.map +1 -0
  1388. package/dist/types/features/PdfViewer/PdfStyle.d.ts +33 -0
  1389. package/dist/types/features/PdfViewer/PdfStyle.d.ts.map +1 -0
  1390. package/dist/types/features/PdfViewer/PdfToolbar.d.ts +34 -0
  1391. package/dist/types/features/PdfViewer/PdfToolbar.d.ts.map +1 -0
  1392. package/dist/types/features/PdfViewer/PdfViewer.d.ts +94 -0
  1393. package/dist/types/features/PdfViewer/PdfViewer.d.ts.map +1 -0
  1394. package/dist/types/features/PdfViewer/rotationManager.d.ts +23 -0
  1395. package/dist/types/features/PdfViewer/rotationManager.d.ts.map +1 -0
  1396. package/dist/types/features/PdfViewer/usePdfHighlight.d.ts +25 -0
  1397. package/dist/types/features/PdfViewer/usePdfHighlight.d.ts.map +1 -0
  1398. package/dist/types/features/PdfViewer/zoomStateManager.d.ts +21 -0
  1399. package/dist/types/features/PdfViewer/zoomStateManager.d.ts.map +1 -0
  1400. package/dist/types/features/ProjectAccordion/ProjectAccordion.d.ts +24 -0
  1401. package/dist/types/features/ProjectAccordion/ProjectAccordion.d.ts.map +1 -0
  1402. package/dist/types/features/ProjectAccordion/_components/Markdown.d.ts +5 -0
  1403. package/dist/types/features/ProjectAccordion/_components/Markdown.d.ts.map +1 -0
  1404. package/dist/types/features/PromptCitation/CitationDependencyGraph.d.ts +56 -0
  1405. package/dist/types/features/PromptCitation/CitationDependencyGraph.d.ts.map +1 -0
  1406. package/dist/types/features/PromptCitation/PromptCitation.d.ts +326 -0
  1407. package/dist/types/features/PromptCitation/PromptCitation.d.ts.map +1 -0
  1408. package/dist/types/features/PromptCitation/_components/CodeEditor.d.ts +30 -0
  1409. package/dist/types/features/PromptCitation/_components/CodeEditor.d.ts.map +1 -0
  1410. package/dist/types/features/PromptCitation/_components/Markdownrenderer.d.ts +23 -0
  1411. package/dist/types/features/PromptCitation/_components/Markdownrenderer.d.ts.map +1 -0
  1412. package/dist/types/features/PromptCitation/_components/ThemeToggle.d.ts +12 -0
  1413. package/dist/types/features/PromptCitation/_components/ThemeToggle.d.ts.map +1 -0
  1414. package/dist/types/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts +23 -0
  1415. package/dist/types/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts.map +1 -0
  1416. package/dist/types/features/PromptemonViewer/PromptemonViewer.d.ts +43 -0
  1417. package/dist/types/features/PromptemonViewer/PromptemonViewer.d.ts.map +1 -0
  1418. package/dist/types/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts +125 -0
  1419. package/dist/types/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts.map +1 -0
  1420. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts +6 -0
  1421. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts.map +1 -0
  1422. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts +26 -0
  1423. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts.map +1 -0
  1424. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts +26 -0
  1425. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts.map +1 -0
  1426. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts +123 -0
  1427. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts.map +1 -0
  1428. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts +92 -0
  1429. package/dist/types/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts.map +1 -0
  1430. package/dist/types/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts +7 -0
  1431. package/dist/types/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts.map +1 -0
  1432. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts +12 -0
  1433. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts.map +1 -0
  1434. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts +12 -0
  1435. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts.map +1 -0
  1436. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts +12 -0
  1437. package/dist/types/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts.map +1 -0
  1438. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts +7 -0
  1439. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts.map +1 -0
  1440. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts +7 -0
  1441. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts.map +1 -0
  1442. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts +7 -0
  1443. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts.map +1 -0
  1444. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts +4 -0
  1445. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts.map +1 -0
  1446. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts +7 -0
  1447. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts.map +1 -0
  1448. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts +4 -0
  1449. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts.map +1 -0
  1450. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts +7 -0
  1451. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts.map +1 -0
  1452. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts +6 -0
  1453. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts.map +1 -0
  1454. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts +3 -0
  1455. package/dist/types/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts.map +1 -0
  1456. package/dist/types/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +207 -0
  1457. package/dist/types/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +1 -0
  1458. package/dist/types/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts +31 -0
  1459. package/dist/types/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts.map +1 -0
  1460. package/dist/types/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts +33 -0
  1461. package/dist/types/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts.map +1 -0
  1462. package/dist/types/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts +45 -0
  1463. package/dist/types/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts.map +1 -0
  1464. package/dist/types/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts +47 -0
  1465. package/dist/types/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts.map +1 -0
  1466. package/dist/types/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts +16 -0
  1467. package/dist/types/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts.map +1 -0
  1468. package/dist/types/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts +4 -0
  1469. package/dist/types/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts.map +1 -0
  1470. package/dist/types/features/ReviewPanel/ReviewPanel.d.ts +52 -0
  1471. package/dist/types/features/ReviewPanel/ReviewPanel.d.ts.map +1 -0
  1472. package/dist/types/features/RulebookCitations/RuleBookCitation.types.d.ts +40 -0
  1473. package/dist/types/features/RulebookCitations/RuleBookCitation.types.d.ts.map +1 -0
  1474. package/dist/types/features/RulebookCitations/RuleBookCitationApi.d.ts +18 -0
  1475. package/dist/types/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -0
  1476. package/dist/types/features/RulebookCitations/RuleBookCitationWrapper.d.ts +26 -0
  1477. package/dist/types/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -0
  1478. package/dist/types/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts +52 -0
  1479. package/dist/types/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts.map +1 -0
  1480. package/dist/types/features/SPBAnalysisPanel/DependencyGraph.d.ts +71 -0
  1481. package/dist/types/features/SPBAnalysisPanel/DependencyGraph.d.ts.map +1 -0
  1482. package/dist/types/features/SPBAnalysisPanel/Internaleditor.d.ts +11 -0
  1483. package/dist/types/features/SPBAnalysisPanel/Internaleditor.d.ts.map +1 -0
  1484. package/dist/types/features/SPBAnalysisPanel/Markdownrenderer.d.ts +16 -0
  1485. package/dist/types/features/SPBAnalysisPanel/Markdownrenderer.d.ts.map +1 -0
  1486. package/dist/types/features/SPBAnalysisPanel/Spbanalysispanel.d.ts +134 -0
  1487. package/dist/types/features/SPBAnalysisPanel/Spbanalysispanel.d.ts.map +1 -0
  1488. package/dist/types/features/SPBAnalysisPanel/index.d.ts +10 -0
  1489. package/dist/types/features/SPBAnalysisPanel/index.d.ts.map +1 -0
  1490. package/dist/types/features/ScannedDocCitation/ScannedDocCitation.d.ts +56 -0
  1491. package/dist/types/features/ScannedDocCitation/ScannedDocCitation.d.ts.map +1 -0
  1492. package/dist/types/features/SegmentReviewComponents/BoundaryCard.d.ts +85 -0
  1493. package/dist/types/features/SegmentReviewComponents/BoundaryCard.d.ts.map +1 -0
  1494. package/dist/types/features/SegmentReviewComponents/CardWrapper.d.ts +26 -0
  1495. package/dist/types/features/SegmentReviewComponents/CardWrapper.d.ts.map +1 -0
  1496. package/dist/types/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts +2 -0
  1497. package/dist/types/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +1 -0
  1498. package/dist/types/features/SegmentReviewComponents/CognitiveIcon.d.ts +3 -0
  1499. package/dist/types/features/SegmentReviewComponents/CognitiveIcon.d.ts.map +1 -0
  1500. package/dist/types/features/SegmentReviewComponents/CognitiveIntegrity.d.ts +33 -0
  1501. package/dist/types/features/SegmentReviewComponents/CognitiveIntegrity.d.ts.map +1 -0
  1502. package/dist/types/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts +7 -0
  1503. package/dist/types/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +1 -0
  1504. package/dist/types/features/SegmentReviewComponents/LabelCheck.d.ts +87 -0
  1505. package/dist/types/features/SegmentReviewComponents/LabelCheck.d.ts.map +1 -0
  1506. package/dist/types/features/SegmentReviewComponents/PageCheck.d.ts +57 -0
  1507. package/dist/types/features/SegmentReviewComponents/PageCheck.d.ts.map +1 -0
  1508. package/dist/types/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts +28 -0
  1509. package/dist/types/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts.map +1 -0
  1510. package/dist/types/features/SegmentReviewComponents/RevertCard.d.ts +37 -0
  1511. package/dist/types/features/SegmentReviewComponents/RevertCard.d.ts.map +1 -0
  1512. package/dist/types/features/SegmentReviewComponents/RevertSuccessCard.d.ts +9 -0
  1513. package/dist/types/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +1 -0
  1514. package/dist/types/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +7 -0
  1515. package/dist/types/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +1 -0
  1516. package/dist/types/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts +17 -0
  1517. package/dist/types/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts.map +1 -0
  1518. package/dist/types/features/SegmentReviewComponents/ReviewedCard.d.ts +33 -0
  1519. package/dist/types/features/SegmentReviewComponents/ReviewedCard.d.ts.map +1 -0
  1520. package/dist/types/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +124 -0
  1521. package/dist/types/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +1 -0
  1522. package/dist/types/features/SegmentReviewComponents/helper.d.ts +51 -0
  1523. package/dist/types/features/SegmentReviewComponents/helper.d.ts.map +1 -0
  1524. package/dist/types/features/SegmentReviewComponents/index.d.ts +23 -0
  1525. package/dist/types/features/SegmentReviewComponents/index.d.ts.map +1 -0
  1526. package/dist/types/features/SegmentReviewComponents/reviewScore.d.ts +4 -0
  1527. package/dist/types/features/SegmentReviewComponents/reviewScore.d.ts.map +1 -0
  1528. package/dist/types/features/SegmentReviewComponents/reviewStepAdapters.d.ts +243 -0
  1529. package/dist/types/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +1 -0
  1530. package/dist/types/features/SplitterCitations/SplitterCitationsComponent.d.ts +5 -0
  1531. package/dist/types/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +1 -0
  1532. package/dist/types/features/SplitterCitations/icons/icons.d.ts +17 -0
  1533. package/dist/types/features/SplitterCitations/icons/icons.d.ts.map +1 -0
  1534. package/dist/types/features/SplitterCitations/types.d.ts +77 -0
  1535. package/dist/types/features/SplitterCitations/types.d.ts.map +1 -0
  1536. package/dist/types/features/TableCitation/TableCitationContent.d.ts +14 -0
  1537. package/dist/types/features/TableCitation/TableCitationContent.d.ts.map +1 -0
  1538. package/dist/types/features/TextualGuidelines/TextualGuideLinesComponent.d.ts +25 -0
  1539. package/dist/types/features/TextualGuidelines/TextualGuideLinesComponent.d.ts.map +1 -0
  1540. package/dist/types/features/TextualGuidelines/TextualGuidelines.types.d.ts +81 -0
  1541. package/dist/types/features/TextualGuidelines/TextualGuidelines.types.d.ts.map +1 -0
  1542. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +14 -0
  1543. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +1 -0
  1544. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +13 -0
  1545. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +1 -0
  1546. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts +1107 -0
  1547. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts.map +1 -0
  1548. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts +57 -0
  1549. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts.map +1 -0
  1550. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts +643 -0
  1551. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts.map +1 -0
  1552. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts +24 -0
  1553. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts.map +1 -0
  1554. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts +283 -0
  1555. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts.map +1 -0
  1556. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts +58 -0
  1557. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts.map +1 -0
  1558. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts +20 -0
  1559. package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts.map +1 -0
  1560. package/dist/types/features/UploadData/main.d.ts +9 -0
  1561. package/dist/types/features/UploadData/main.d.ts.map +1 -0
  1562. package/dist/types/hooks/useOnDemandCitationFetch.d.ts +11 -0
  1563. package/dist/types/hooks/useOnDemandCitationFetch.d.ts.map +1 -0
  1564. package/dist/types/index.d.ts +63 -0
  1565. package/dist/types/index.d.ts.map +1 -0
  1566. package/dist/types/lib/ui/icons.d.ts +46 -0
  1567. package/dist/types/lib/ui/icons.d.ts.map +1 -0
  1568. package/dist/types/lib/ui/materialCompat.d.ts +117 -0
  1569. package/dist/types/lib/ui/materialCompat.d.ts.map +1 -0
  1570. package/dist/types/methodsToExpose.d.ts +18 -0
  1571. package/dist/types/methodsToExpose.d.ts.map +1 -0
  1572. package/dist/types/onDemandApi.types.js +1 -1
  1573. package/dist/types/onDemandApi.types.js.map +1 -1
  1574. package/dist/types/service/API.d.ts +6 -0
  1575. package/dist/types/service/API.d.ts.map +1 -0
  1576. package/dist/types/service/DataService.d.ts +73 -0
  1577. package/dist/types/service/DataService.d.ts.map +1 -0
  1578. package/dist/types/service/ModelService.d.ts +68 -0
  1579. package/dist/types/service/ModelService.d.ts.map +1 -0
  1580. package/dist/types/service/ProjectService.d.ts +16 -0
  1581. package/dist/types/service/ProjectService.d.ts.map +1 -0
  1582. package/dist/types/service/SavedDataSetService.d.ts +27 -0
  1583. package/dist/types/service/SavedDataSetService.d.ts.map +1 -0
  1584. package/dist/types/service/apicache.service.d.ts +43 -0
  1585. package/dist/types/service/apicache.service.d.ts.map +1 -0
  1586. package/dist/types/service/constants.d.ts +3 -0
  1587. package/dist/types/service/constants.d.ts.map +1 -0
  1588. package/dist/types/service/envHelperService.d.ts +5 -0
  1589. package/dist/types/service/envHelperService.d.ts.map +1 -0
  1590. package/dist/types/service/onDemandApi.d.ts +27 -0
  1591. package/dist/types/service/onDemandApi.d.ts.map +1 -0
  1592. package/dist/types/service/variableHelperService.d.ts +6 -0
  1593. package/dist/types/service/variableHelperService.d.ts.map +1 -0
  1594. package/dist/types/theme.d.ts +4 -0
  1595. package/dist/types/theme.d.ts.map +1 -0
  1596. package/dist/types/types/CodeCitationTypes.d.ts +46 -0
  1597. package/dist/types/types/CodeCitationTypes.d.ts.map +1 -0
  1598. package/dist/types/types/onDemandApi.types.d.ts +63 -0
  1599. package/dist/types/types/onDemandApi.types.d.ts.map +1 -0
  1600. package/dist/types/types/useOnDemandCitationFetch.types.d.ts +70 -0
  1601. package/dist/types/types/useOnDemandCitationFetch.types.d.ts.map +1 -0
  1602. package/dist/types/userProvidedConfig.d.ts +8 -0
  1603. package/dist/types/userProvidedConfig.d.ts.map +1 -0
  1604. package/dist/types/utils/api.d.ts +2 -0
  1605. package/dist/types/utils/api.d.ts.map +1 -0
  1606. package/dist/types/utils/codeCitations.utils.d.ts +9 -0
  1607. package/dist/types/utils/codeCitations.utils.d.ts.map +1 -0
  1608. package/dist/types/utils/sanitizeHtml.d.ts +5 -0
  1609. package/dist/types/utils/sanitizeHtml.d.ts.map +1 -0
  1610. package/dist/types/utils/themeManager.d.ts +13 -0
  1611. package/dist/types/utils/themeManager.d.ts.map +1 -0
  1612. package/dist/utils/codeCitations.utils.js +1 -1
  1613. package/dist/utils/codeCitations.utils.js.map +1 -1
  1614. package/dist/utils/sanitizeHtml.js +1 -1
  1615. package/dist/utils/sanitizeHtml.js.map +1 -1
  1616. package/dist/utils/themeManager.js +1 -1
  1617. package/dist/utils/themeManager.js.map +1 -1
  1618. package/package.json +135 -278
  1619. package/dist/types/src/AccordianHeadTest.d.ts +0 -2
  1620. package/dist/types/src/AccordianHeadTest.d.ts.map +0 -1
  1621. package/dist/types/src/App.d.ts +0 -3
  1622. package/dist/types/src/App.d.ts.map +0 -1
  1623. package/dist/types/src/AutopilotStyle.d.ts +0 -2
  1624. package/dist/types/src/AutopilotStyle.d.ts.map +0 -1
  1625. package/dist/types/src/BookCitationTest.d.ts +0 -3
  1626. package/dist/types/src/BookCitationTest.d.ts.map +0 -1
  1627. package/dist/types/src/BookemonTest.d.ts +0 -83
  1628. package/dist/types/src/BookemonTest.d.ts.map +0 -1
  1629. package/dist/types/src/ChatCitationTest.d.ts +0 -7
  1630. package/dist/types/src/ChatCitationTest.d.ts.map +0 -1
  1631. package/dist/types/src/ChatDrawerTest.d.ts +0 -17
  1632. package/dist/types/src/ChatDrawerTest.d.ts.map +0 -1
  1633. package/dist/types/src/CitationDependencyGraphTest.d.ts +0 -4
  1634. package/dist/types/src/CitationDependencyGraphTest.d.ts.map +0 -1
  1635. package/dist/types/src/CodeCitationTest.d.ts +0 -3
  1636. package/dist/types/src/CodeCitationTest.d.ts.map +0 -1
  1637. package/dist/types/src/CognitiveCompareTest.d.ts +0 -3
  1638. package/dist/types/src/CognitiveCompareTest.d.ts.map +0 -1
  1639. package/dist/types/src/CommonComponents/AccordianHead/AccordianHead.d.ts +0 -9
  1640. package/dist/types/src/CommonComponents/AccordianHead/AccordianHead.d.ts.map +0 -1
  1641. package/dist/types/src/CommonComponents/CustomDropdown.d.ts +0 -4
  1642. package/dist/types/src/CommonComponents/CustomDropdown.d.ts.map +0 -1
  1643. package/dist/types/src/CommonComponents/HelloWorld.d.ts +0 -2
  1644. package/dist/types/src/CommonComponents/HelloWorld.d.ts.map +0 -1
  1645. package/dist/types/src/CommonComponents/NoTableData.d.ts +0 -6
  1646. package/dist/types/src/CommonComponents/NoTableData.d.ts.map +0 -1
  1647. package/dist/types/src/CommonComponents/Spinner.d.ts +0 -4
  1648. package/dist/types/src/CommonComponents/Spinner.d.ts.map +0 -1
  1649. package/dist/types/src/CommonConstants/CommonConstants.d.ts +0 -5
  1650. package/dist/types/src/CommonConstants/CommonConstants.d.ts.map +0 -1
  1651. package/dist/types/src/CustomStylesProvider.d.ts +0 -6
  1652. package/dist/types/src/CustomStylesProvider.d.ts.map +0 -1
  1653. package/dist/types/src/CustomThemeProvider.d.ts +0 -7
  1654. package/dist/types/src/CustomThemeProvider.d.ts.map +0 -1
  1655. package/dist/types/src/DatagestMonTest.d.ts +0 -3
  1656. package/dist/types/src/DatagestMonTest.d.ts.map +0 -1
  1657. package/dist/types/src/DbCodeCitationTest.d.ts +0 -3
  1658. package/dist/types/src/DbCodeCitationTest.d.ts.map +0 -1
  1659. package/dist/types/src/EmailCitationTest.d.ts +0 -3
  1660. package/dist/types/src/EmailCitationTest.d.ts.map +0 -1
  1661. package/dist/types/src/ExcelCitationTest.d.ts +0 -2
  1662. package/dist/types/src/ExcelCitationTest.d.ts.map +0 -1
  1663. package/dist/types/src/GoogleFilePickerDemo.d.ts +0 -2
  1664. package/dist/types/src/GoogleFilePickerDemo.d.ts.map +0 -1
  1665. package/dist/types/src/MarkdownWithImageCitationTest.d.ts +0 -3
  1666. package/dist/types/src/MarkdownWithImageCitationTest.d.ts.map +0 -1
  1667. package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts +0 -3
  1668. package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts.map +0 -1
  1669. package/dist/types/src/PaginatedTableTest/useFetchData.d.ts +0 -15
  1670. package/dist/types/src/PaginatedTableTest/useFetchData.d.ts.map +0 -1
  1671. package/dist/types/src/PdfViewerTest.d.ts +0 -5
  1672. package/dist/types/src/PdfViewerTest.d.ts.map +0 -1
  1673. package/dist/types/src/ProjectAccordianTest.d.ts +0 -3
  1674. package/dist/types/src/ProjectAccordianTest.d.ts.map +0 -1
  1675. package/dist/types/src/PromptemonBlockViewerTest.d.ts +0 -3
  1676. package/dist/types/src/PromptemonBlockViewerTest.d.ts.map +0 -1
  1677. package/dist/types/src/PromptemonViewerTest.d.ts +0 -3
  1678. package/dist/types/src/PromptemonViewerTest.d.ts.map +0 -1
  1679. package/dist/types/src/RequirementAICitationTest.d.ts +0 -3
  1680. package/dist/types/src/RequirementAICitationTest.d.ts.map +0 -1
  1681. package/dist/types/src/ScannedDocCitationTest.d.ts +0 -2
  1682. package/dist/types/src/ScannedDocCitationTest.d.ts.map +0 -1
  1683. package/dist/types/src/Spbanalysispaneltest.d.ts +0 -3
  1684. package/dist/types/src/Spbanalysispaneltest.d.ts.map +0 -1
  1685. package/dist/types/src/TableCitationTest.d.ts +0 -3
  1686. package/dist/types/src/TableCitationTest.d.ts.map +0 -1
  1687. package/dist/types/src/assests/icons/ChartSplitIcon.d.ts +0 -3
  1688. package/dist/types/src/assests/icons/ChartSplitIcon.d.ts.map +0 -1
  1689. package/dist/types/src/assests/icons/CitationsIcon.d.ts +0 -2
  1690. package/dist/types/src/assests/icons/CitationsIcon.d.ts.map +0 -1
  1691. package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts +0 -10
  1692. package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts.map +0 -1
  1693. package/dist/types/src/assests/icons/InfoAlert.d.ts +0 -3
  1694. package/dist/types/src/assests/icons/InfoAlert.d.ts.map +0 -1
  1695. package/dist/types/src/assests/svg/ButtonCognitiveIcon.d.ts +0 -2
  1696. package/dist/types/src/assests/svg/ButtonCognitiveIcon.d.ts.map +0 -1
  1697. package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts +0 -9
  1698. package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts.map +0 -1
  1699. package/dist/types/src/assests/svg/PdfViewerIcons.d.ts +0 -6
  1700. package/dist/types/src/assests/svg/PdfViewerIcons.d.ts.map +0 -1
  1701. package/dist/types/src/assests/svg/SparkleIcon.d.ts +0 -3
  1702. package/dist/types/src/assests/svg/SparkleIcon.d.ts.map +0 -1
  1703. package/dist/types/src/constants/diagnosticStylesBySeverity.d.ts +0 -3
  1704. package/dist/types/src/constants/diagnosticStylesBySeverity.d.ts.map +0 -1
  1705. package/dist/types/src/context/DataSelectedContext.d.ts +0 -73
  1706. package/dist/types/src/context/DataSelectedContext.d.ts.map +0 -1
  1707. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts +0 -5
  1708. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts.map +0 -1
  1709. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.types.d.ts +0 -230
  1710. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.types.d.ts.map +0 -1
  1711. package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts +0 -6
  1712. package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts.map +0 -1
  1713. package/dist/types/src/features/BPACitationRenderer/DualRuleBookBqCitationTest.d.ts +0 -4
  1714. package/dist/types/src/features/BPACitationRenderer/DualRuleBookBqCitationTest.d.ts.map +0 -1
  1715. package/dist/types/src/features/BPACitationRenderer/DualRuleBookGptCitationTest.d.ts +0 -4
  1716. package/dist/types/src/features/BPACitationRenderer/DualRuleBookGptCitationTest.d.ts.map +0 -1
  1717. package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts +0 -4
  1718. package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts.map +0 -1
  1719. package/dist/types/src/features/BPACitationRenderer/citationTypes.d.ts +0 -15
  1720. package/dist/types/src/features/BPACitationRenderer/citationTypes.d.ts.map +0 -1
  1721. package/dist/types/src/features/BookCitation/BookCitation.d.ts +0 -42
  1722. package/dist/types/src/features/BookCitation/BookCitation.d.ts.map +0 -1
  1723. package/dist/types/src/features/BookCitation/text-cleaner.d.ts +0 -2
  1724. package/dist/types/src/features/BookCitation/text-cleaner.d.ts.map +0 -1
  1725. package/dist/types/src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts +0 -21
  1726. package/dist/types/src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts.map +0 -1
  1727. package/dist/types/src/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts +0 -13
  1728. package/dist/types/src/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts.map +0 -1
  1729. package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts +0 -52
  1730. package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts.map +0 -1
  1731. package/dist/types/src/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts +0 -20
  1732. package/dist/types/src/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts.map +0 -1
  1733. package/dist/types/src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts +0 -35
  1734. package/dist/types/src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts.map +0 -1
  1735. package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts +0 -51
  1736. package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts.map +0 -1
  1737. package/dist/types/src/features/Bookemon/Bookemon.d.ts +0 -9
  1738. package/dist/types/src/features/Bookemon/Bookemon.d.ts.map +0 -1
  1739. package/dist/types/src/features/Bookemon/BookemonCitationLayer.d.ts +0 -7
  1740. package/dist/types/src/features/Bookemon/BookemonCitationLayer.d.ts.map +0 -1
  1741. package/dist/types/src/features/Bookemon/BookemonContent.d.ts +0 -3
  1742. package/dist/types/src/features/Bookemon/BookemonContent.d.ts.map +0 -1
  1743. package/dist/types/src/features/Bookemon/types/citation.types.d.ts +0 -65
  1744. package/dist/types/src/features/Bookemon/types/citation.types.d.ts.map +0 -1
  1745. package/dist/types/src/features/Bookemon/utils/highlight.d.ts +0 -7
  1746. package/dist/types/src/features/Bookemon/utils/highlight.d.ts.map +0 -1
  1747. package/dist/types/src/features/ChatCitation/BigQueryTable.d.ts +0 -8
  1748. package/dist/types/src/features/ChatCitation/BigQueryTable.d.ts.map +0 -1
  1749. package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts +0 -26
  1750. package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts.map +0 -1
  1751. package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts +0 -13
  1752. package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts.map +0 -1
  1753. package/dist/types/src/features/ChatCitation/assets/collapse.d.ts +0 -3
  1754. package/dist/types/src/features/ChatCitation/assets/collapse.d.ts.map +0 -1
  1755. package/dist/types/src/features/ChatCitation/components/AssistantChatItem.d.ts +0 -8
  1756. package/dist/types/src/features/ChatCitation/components/AssistantChatItem.d.ts.map +0 -1
  1757. package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts +0 -16
  1758. package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts.map +0 -1
  1759. package/dist/types/src/features/ChatCitation/components/Chip.d.ts +0 -8
  1760. package/dist/types/src/features/ChatCitation/components/Chip.d.ts.map +0 -1
  1761. package/dist/types/src/features/ChatCitation/components/DetailedView.d.ts +0 -10
  1762. package/dist/types/src/features/ChatCitation/components/DetailedView.d.ts.map +0 -1
  1763. package/dist/types/src/features/ChatCitation/components/IconContainer.d.ts +0 -8
  1764. package/dist/types/src/features/ChatCitation/components/IconContainer.d.ts.map +0 -1
  1765. package/dist/types/src/features/ChatCitation/components/InViewNavigation.d.ts +0 -11
  1766. package/dist/types/src/features/ChatCitation/components/InViewNavigation.d.ts.map +0 -1
  1767. package/dist/types/src/features/ChatCitation/components/MarkdownRenderer.d.ts +0 -10
  1768. package/dist/types/src/features/ChatCitation/components/MarkdownRenderer.d.ts.map +0 -1
  1769. package/dist/types/src/features/ChatCitation/components/RuleBook.d.ts +0 -9
  1770. package/dist/types/src/features/ChatCitation/components/RuleBook.d.ts.map +0 -1
  1771. package/dist/types/src/features/ChatCitation/components/SummarizedView.d.ts +0 -19
  1772. package/dist/types/src/features/ChatCitation/components/SummarizedView.d.ts.map +0 -1
  1773. package/dist/types/src/features/ChatCitation/components/UserChatItem.d.ts +0 -8
  1774. package/dist/types/src/features/ChatCitation/components/UserChatItem.d.ts.map +0 -1
  1775. package/dist/types/src/features/ChatCitation/components/UserInitialsAsAvatar.d.ts +0 -11
  1776. package/dist/types/src/features/ChatCitation/components/UserInitialsAsAvatar.d.ts.map +0 -1
  1777. package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts +0 -10
  1778. package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts.map +0 -1
  1779. package/dist/types/src/features/ChatCitation/constants/icons.d.ts +0 -9
  1780. package/dist/types/src/features/ChatCitation/constants/icons.d.ts.map +0 -1
  1781. package/dist/types/src/features/ChatCitation/constants/renderer.d.ts +0 -7
  1782. package/dist/types/src/features/ChatCitation/constants/renderer.d.ts.map +0 -1
  1783. package/dist/types/src/features/ChatCitation/types/citations.types.d.ts +0 -114
  1784. package/dist/types/src/features/ChatCitation/types/citations.types.d.ts.map +0 -1
  1785. package/dist/types/src/features/ChatCitation/utils/helpers.d.ts +0 -16
  1786. package/dist/types/src/features/ChatCitation/utils/helpers.d.ts.map +0 -1
  1787. package/dist/types/src/features/ChatDrawer/ChatDrawer.d.ts +0 -5
  1788. package/dist/types/src/features/ChatDrawer/ChatDrawer.d.ts.map +0 -1
  1789. package/dist/types/src/features/ChatDrawer/UploadedFilesList.types.d.ts +0 -33
  1790. package/dist/types/src/features/ChatDrawer/UploadedFilesList.types.d.ts.map +0 -1
  1791. package/dist/types/src/features/ChatDrawer/Uploadedfileslist.d.ts +0 -5
  1792. package/dist/types/src/features/ChatDrawer/Uploadedfileslist.d.ts.map +0 -1
  1793. package/dist/types/src/features/ChatDrawer/constants/ChatDrawer.d.ts +0 -17
  1794. package/dist/types/src/features/ChatDrawer/constants/ChatDrawer.d.ts.map +0 -1
  1795. package/dist/types/src/features/ChatDrawer/context/ChatDrawerContext.d.ts +0 -8
  1796. package/dist/types/src/features/ChatDrawer/context/ChatDrawerContext.d.ts.map +0 -1
  1797. package/dist/types/src/features/ChatDrawer/types/ChatDrawer.types.d.ts +0 -51
  1798. package/dist/types/src/features/ChatDrawer/types/ChatDrawer.types.d.ts.map +0 -1
  1799. package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts +0 -21
  1800. package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts.map +0 -1
  1801. package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts +0 -25
  1802. package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts.map +0 -1
  1803. package/dist/types/src/features/CitationViewer/CitationsViewer.d.ts +0 -5
  1804. package/dist/types/src/features/CitationViewer/CitationsViewer.d.ts.map +0 -1
  1805. package/dist/types/src/features/CitationViewer/components/AudioPlayer.d.ts +0 -8
  1806. package/dist/types/src/features/CitationViewer/components/AudioPlayer.d.ts.map +0 -1
  1807. package/dist/types/src/features/CitationViewer/components/AudioWaveform.d.ts +0 -17
  1808. package/dist/types/src/features/CitationViewer/components/AudioWaveform.d.ts.map +0 -1
  1809. package/dist/types/src/features/CitationViewer/components/ChatHistory.d.ts +0 -8
  1810. package/dist/types/src/features/CitationViewer/components/ChatHistory.d.ts.map +0 -1
  1811. package/dist/types/src/features/CitationViewer/components/Header.d.ts +0 -12
  1812. package/dist/types/src/features/CitationViewer/components/Header.d.ts.map +0 -1
  1813. package/dist/types/src/features/CitationViewer/components/KeyTakeaways.d.ts +0 -8
  1814. package/dist/types/src/features/CitationViewer/components/KeyTakeaways.d.ts.map +0 -1
  1815. package/dist/types/src/features/CitationViewer/components/Transcript.d.ts +0 -10
  1816. package/dist/types/src/features/CitationViewer/components/Transcript.d.ts.map +0 -1
  1817. package/dist/types/src/features/CitationViewer/config/apiConfig.d.ts +0 -3
  1818. package/dist/types/src/features/CitationViewer/config/apiConfig.d.ts.map +0 -1
  1819. package/dist/types/src/features/CitationViewer/hooks/getSignedUrl.d.ts +0 -2
  1820. package/dist/types/src/features/CitationViewer/hooks/getSignedUrl.d.ts.map +0 -1
  1821. package/dist/types/src/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts +0 -2
  1822. package/dist/types/src/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts.map +0 -1
  1823. package/dist/types/src/features/CitationViewer/types/artifact.d.ts +0 -59
  1824. package/dist/types/src/features/CitationViewer/types/artifact.d.ts.map +0 -1
  1825. package/dist/types/src/features/CodeCitation/CodeCitation.d.ts +0 -51
  1826. package/dist/types/src/features/CodeCitation/CodeCitation.d.ts.map +0 -1
  1827. package/dist/types/src/features/CodeCitation/_components/Accordian.d.ts +0 -10
  1828. package/dist/types/src/features/CodeCitation/_components/Accordian.d.ts.map +0 -1
  1829. package/dist/types/src/features/CodeCitation/_components/CodeCitationPopup.d.ts +0 -34
  1830. package/dist/types/src/features/CodeCitation/_components/CodeCitationPopup.d.ts.map +0 -1
  1831. package/dist/types/src/features/CodeCitation/_components/CodeCitationsStats.d.ts +0 -13
  1832. package/dist/types/src/features/CodeCitation/_components/CodeCitationsStats.d.ts.map +0 -1
  1833. package/dist/types/src/features/CodeCitation/_components/CodeEditor.d.ts +0 -30
  1834. package/dist/types/src/features/CodeCitation/_components/CodeEditor.d.ts.map +0 -1
  1835. package/dist/types/src/features/CodeCitation/_components/DescriptionWithToggle.d.ts +0 -6
  1836. package/dist/types/src/features/CodeCitation/_components/DescriptionWithToggle.d.ts.map +0 -1
  1837. package/dist/types/src/features/CodeCitation/_components/HighlightedCodeDetails.d.ts +0 -16
  1838. package/dist/types/src/features/CodeCitation/_components/HighlightedCodeDetails.d.ts.map +0 -1
  1839. package/dist/types/src/features/CodeCitation/_components/RepoAndBranchTag.d.ts +0 -8
  1840. package/dist/types/src/features/CodeCitation/_components/RepoAndBranchTag.d.ts.map +0 -1
  1841. package/dist/types/src/features/CodeCitation/_components/Spinner.d.ts +0 -4
  1842. package/dist/types/src/features/CodeCitation/_components/Spinner.d.ts.map +0 -1
  1843. package/dist/types/src/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts +0 -12
  1844. package/dist/types/src/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts.map +0 -1
  1845. package/dist/types/src/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts +0 -10
  1846. package/dist/types/src/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts.map +0 -1
  1847. package/dist/types/src/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts +0 -13
  1848. package/dist/types/src/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts.map +0 -1
  1849. package/dist/types/src/features/CodeCitation/_components/ThemeToggle.d.ts +0 -12
  1850. package/dist/types/src/features/CodeCitation/_components/ThemeToggle.d.ts.map +0 -1
  1851. package/dist/types/src/features/CodeCitation/_components/TooltipComponent.d.ts +0 -8
  1852. package/dist/types/src/features/CodeCitation/_components/TooltipComponent.d.ts.map +0 -1
  1853. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts +0 -30
  1854. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +0 -1
  1855. package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts +0 -13
  1856. package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts.map +0 -1
  1857. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +0 -6
  1858. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +0 -1
  1859. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConfig.d.ts +0 -64
  1860. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConfig.d.ts.map +0 -1
  1861. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts +0 -11
  1862. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts.map +0 -1
  1863. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +0 -322
  1864. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +0 -1
  1865. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +0 -83
  1866. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +0 -1
  1867. package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts +0 -7
  1868. package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts.map +0 -1
  1869. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts +0 -72
  1870. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts.map +0 -1
  1871. package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts +0 -3
  1872. package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +0 -1
  1873. package/dist/types/src/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts +0 -8
  1874. package/dist/types/src/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts.map +0 -1
  1875. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts +0 -2524
  1876. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +0 -1
  1877. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/helper.d.ts +0 -11
  1878. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/helper.d.ts.map +0 -1
  1879. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts +0 -6
  1880. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +0 -1
  1881. package/dist/types/src/features/CognitiveCompare/LoaderComponent.d.ts +0 -3
  1882. package/dist/types/src/features/CognitiveCompare/LoaderComponent.d.ts.map +0 -1
  1883. package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts +0 -19
  1884. package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts.map +0 -1
  1885. package/dist/types/src/features/CognitiveCompare/OverlayComponent.d.ts +0 -5
  1886. package/dist/types/src/features/CognitiveCompare/OverlayComponent.d.ts.map +0 -1
  1887. package/dist/types/src/features/CognitiveCompare/ResizableSplitPane.d.ts +0 -9
  1888. package/dist/types/src/features/CognitiveCompare/ResizableSplitPane.d.ts.map +0 -1
  1889. package/dist/types/src/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts +0 -3
  1890. package/dist/types/src/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts.map +0 -1
  1891. package/dist/types/src/features/CognitiveCompare/components/CompareHeader.d.ts +0 -12
  1892. package/dist/types/src/features/CognitiveCompare/components/CompareHeader.d.ts.map +0 -1
  1893. package/dist/types/src/features/CognitiveCompare/components/LHSSectionRow.d.ts +0 -9
  1894. package/dist/types/src/features/CognitiveCompare/components/LHSSectionRow.d.ts.map +0 -1
  1895. package/dist/types/src/features/CognitiveCompare/components/RHSSectionRow.d.ts +0 -9
  1896. package/dist/types/src/features/CognitiveCompare/components/RHSSectionRow.d.ts.map +0 -1
  1897. package/dist/types/src/features/CognitiveCompare/components/ScrollLockToggle.d.ts +0 -11
  1898. package/dist/types/src/features/CognitiveCompare/components/ScrollLockToggle.d.ts.map +0 -1
  1899. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts +0 -17
  1900. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +0 -1
  1901. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts +0 -14
  1902. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +0 -1
  1903. package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts +0 -37
  1904. package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts.map +0 -1
  1905. package/dist/types/src/features/CognitiveCompare/components/ThreeDotsLoader.d.ts +0 -8
  1906. package/dist/types/src/features/CognitiveCompare/components/ThreeDotsLoader.d.ts.map +0 -1
  1907. package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts +0 -9
  1908. package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts.map +0 -1
  1909. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +0 -13
  1910. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +0 -1
  1911. package/dist/types/src/features/CognitiveCompare/hooks/useAccordionState.d.ts +0 -32
  1912. package/dist/types/src/features/CognitiveCompare/hooks/useAccordionState.d.ts.map +0 -1
  1913. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +0 -20
  1914. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +0 -1
  1915. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -24
  1916. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +0 -1
  1917. package/dist/types/src/features/CognitiveCompare/hooks/useComparePopups.d.ts +0 -22
  1918. package/dist/types/src/features/CognitiveCompare/hooks/useComparePopups.d.ts.map +0 -1
  1919. package/dist/types/src/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts +0 -32
  1920. package/dist/types/src/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts.map +0 -1
  1921. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts +0 -27
  1922. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +0 -1
  1923. package/dist/types/src/features/CognitiveCompare/hooks/useResizeHandler.d.ts +0 -5
  1924. package/dist/types/src/features/CognitiveCompare/hooks/useResizeHandler.d.ts.map +0 -1
  1925. package/dist/types/src/features/CognitiveCompare/hooks/useSectionRefs.d.ts +0 -19
  1926. package/dist/types/src/features/CognitiveCompare/hooks/useSectionRefs.d.ts.map +0 -1
  1927. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts +0 -35
  1928. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +0 -1
  1929. package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts +0 -16
  1930. package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts.map +0 -1
  1931. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.d.ts +0 -11
  1932. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.d.ts.map +0 -1
  1933. package/dist/types/src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts +0 -47
  1934. package/dist/types/src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts.map +0 -1
  1935. package/dist/types/src/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts +0 -8
  1936. package/dist/types/src/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts.map +0 -1
  1937. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/DecisioningIcon.d.ts +0 -7
  1938. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/DecisioningIcon.d.ts.map +0 -1
  1939. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts +0 -7
  1940. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts.map +0 -1
  1941. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +0 -20
  1942. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +0 -1
  1943. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts +0 -27
  1944. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +0 -1
  1945. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts +0 -5
  1946. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts.map +0 -1
  1947. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts +0 -162
  1948. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts.map +0 -1
  1949. package/dist/types/src/features/DataSelector/DataSelector.d.ts +0 -18
  1950. package/dist/types/src/features/DataSelector/DataSelector.d.ts.map +0 -1
  1951. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +0 -3
  1952. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +0 -1
  1953. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +0 -3
  1954. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +0 -1
  1955. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +0 -3
  1956. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +0 -1
  1957. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts +0 -3
  1958. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +0 -1
  1959. package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +0 -3
  1960. package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +0 -1
  1961. package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts +0 -13
  1962. package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +0 -1
  1963. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts +0 -3
  1964. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts.map +0 -1
  1965. package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +0 -11
  1966. package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +0 -1
  1967. package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts +0 -7
  1968. package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts.map +0 -1
  1969. package/dist/types/src/features/DataSelector/tables/ShowSelectedDataTable.d.ts +0 -4
  1970. package/dist/types/src/features/DataSelector/tables/ShowSelectedDataTable.d.ts.map +0 -1
  1971. package/dist/types/src/features/DatagestMon/DatagestMon.d.ts +0 -21
  1972. package/dist/types/src/features/DatagestMon/DatagestMon.d.ts.map +0 -1
  1973. package/dist/types/src/features/DatagestMon/DynamicDataPreviiewer/DynamicDataPreviewer.d.ts +0 -19
  1974. package/dist/types/src/features/DatagestMon/DynamicDataPreviiewer/DynamicDataPreviewer.d.ts.map +0 -1
  1975. package/dist/types/src/features/DatagestMon/EpubPreviewer/EpubPreview.d.ts +0 -7
  1976. package/dist/types/src/features/DatagestMon/EpubPreviewer/EpubPreview.d.ts.map +0 -1
  1977. package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts +0 -20
  1978. package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts.map +0 -1
  1979. package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts +0 -31
  1980. package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts.map +0 -1
  1981. package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts +0 -36
  1982. package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts.map +0 -1
  1983. package/dist/types/src/features/EmailCitation/EmailCitation.d.ts +0 -43
  1984. package/dist/types/src/features/EmailCitation/EmailCitation.d.ts.map +0 -1
  1985. package/dist/types/src/features/EmailCitation/components/EmailMetaDropdown.d.ts +0 -10
  1986. package/dist/types/src/features/EmailCitation/components/EmailMetaDropdown.d.ts.map +0 -1
  1987. package/dist/types/src/features/ExcelCitation/ExcelCitations.d.ts +0 -15
  1988. package/dist/types/src/features/ExcelCitation/ExcelCitations.d.ts.map +0 -1
  1989. package/dist/types/src/features/ExcelCitation/utils/helper.d.ts +0 -2
  1990. package/dist/types/src/features/ExcelCitation/utils/helper.d.ts.map +0 -1
  1991. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +0 -15
  1992. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +0 -1
  1993. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +0 -16
  1994. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +0 -1
  1995. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +0 -10
  1996. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +0 -1
  1997. package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts +0 -9
  1998. package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts.map +0 -1
  1999. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +0 -14
  2000. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +0 -1
  2001. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +0 -4
  2002. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +0 -1
  2003. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts +0 -4
  2004. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +0 -1
  2005. package/dist/types/src/features/GptWebCitation/types.d.ts +0 -405
  2006. package/dist/types/src/features/GptWebCitation/types.d.ts.map +0 -1
  2007. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +0 -10
  2008. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +0 -1
  2009. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +0 -10
  2010. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +0 -1
  2011. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts +0 -6
  2012. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +0 -1
  2013. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +0 -28
  2014. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +0 -1
  2015. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts +0 -7
  2016. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +0 -1
  2017. package/dist/types/src/features/IngestionStatus/useIngestionStatus.d.ts +0 -40
  2018. package/dist/types/src/features/IngestionStatus/useIngestionStatus.d.ts.map +0 -1
  2019. package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts +0 -5
  2020. package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts.map +0 -1
  2021. package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts +0 -10
  2022. package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts.map +0 -1
  2023. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts +0 -2
  2024. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts.map +0 -1
  2025. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +0 -23
  2026. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +0 -1
  2027. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts +0 -6
  2028. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +0 -1
  2029. package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts +0 -13
  2030. package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts.map +0 -1
  2031. package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts +0 -13
  2032. package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts.map +0 -1
  2033. package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts +0 -5
  2034. package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts.map +0 -1
  2035. package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts +0 -12
  2036. package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts.map +0 -1
  2037. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +0 -356
  2038. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +0 -1
  2039. package/dist/types/src/features/ManageRemainders/AssigneeCalendarView.d.ts +0 -19
  2040. package/dist/types/src/features/ManageRemainders/AssigneeCalendarView.d.ts.map +0 -1
  2041. package/dist/types/src/features/ManageRemainders/ManageRemainderUsage.d.ts +0 -2
  2042. package/dist/types/src/features/ManageRemainders/ManageRemainderUsage.d.ts.map +0 -1
  2043. package/dist/types/src/features/ManageRemainders/ManageReminders.d.ts +0 -49
  2044. package/dist/types/src/features/ManageRemainders/ManageReminders.d.ts.map +0 -1
  2045. package/dist/types/src/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts +0 -17
  2046. package/dist/types/src/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts.map +0 -1
  2047. package/dist/types/src/features/ManageRemainders/types/type.d.ts +0 -79
  2048. package/dist/types/src/features/ManageRemainders/types/type.d.ts.map +0 -1
  2049. package/dist/types/src/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts +0 -37
  2050. package/dist/types/src/features/MarkdownWithImageCitation/MarkdownWithImageCitation.d.ts.map +0 -1
  2051. package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts +0 -27
  2052. package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts.map +0 -1
  2053. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitation.d.ts +0 -19
  2054. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitation.d.ts.map +0 -1
  2055. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitationTest/PdfEditorCitationTest.d.ts +0 -2
  2056. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitationTest/PdfEditorCitationTest.d.ts.map +0 -1
  2057. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts +0 -16
  2058. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts.map +0 -1
  2059. package/dist/types/src/features/PdfViewer/PdfStyle.d.ts +0 -33
  2060. package/dist/types/src/features/PdfViewer/PdfStyle.d.ts.map +0 -1
  2061. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts +0 -34
  2062. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +0 -1
  2063. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +0 -94
  2064. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +0 -1
  2065. package/dist/types/src/features/PdfViewer/coordinateTransformer.d.ts +0 -41
  2066. package/dist/types/src/features/PdfViewer/coordinateTransformer.d.ts.map +0 -1
  2067. package/dist/types/src/features/PdfViewer/rotationManager.d.ts +0 -23
  2068. package/dist/types/src/features/PdfViewer/rotationManager.d.ts.map +0 -1
  2069. package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts +0 -27
  2070. package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts.map +0 -1
  2071. package/dist/types/src/features/ProjectAccordion/ProjectAccordion.d.ts +0 -24
  2072. package/dist/types/src/features/ProjectAccordion/ProjectAccordion.d.ts.map +0 -1
  2073. package/dist/types/src/features/ProjectAccordion/_components/Markdown.d.ts +0 -5
  2074. package/dist/types/src/features/ProjectAccordion/_components/Markdown.d.ts.map +0 -1
  2075. package/dist/types/src/features/ProjectAccordion/index.d.ts +0 -2
  2076. package/dist/types/src/features/ProjectAccordion/index.d.ts.map +0 -1
  2077. package/dist/types/src/features/PromptCitation/CitationDependencyGraph.d.ts +0 -56
  2078. package/dist/types/src/features/PromptCitation/CitationDependencyGraph.d.ts.map +0 -1
  2079. package/dist/types/src/features/PromptCitation/PromptCitation.d.ts +0 -326
  2080. package/dist/types/src/features/PromptCitation/PromptCitation.d.ts.map +0 -1
  2081. package/dist/types/src/features/PromptCitation/PromptCitationTest.d.ts +0 -4
  2082. package/dist/types/src/features/PromptCitation/PromptCitationTest.d.ts.map +0 -1
  2083. package/dist/types/src/features/PromptCitation/_components/CodeEditor.d.ts +0 -30
  2084. package/dist/types/src/features/PromptCitation/_components/CodeEditor.d.ts.map +0 -1
  2085. package/dist/types/src/features/PromptCitation/_components/HighlightedCodeDetails.d.ts +0 -16
  2086. package/dist/types/src/features/PromptCitation/_components/HighlightedCodeDetails.d.ts.map +0 -1
  2087. package/dist/types/src/features/PromptCitation/_components/Markdownrenderer.d.ts +0 -23
  2088. package/dist/types/src/features/PromptCitation/_components/Markdownrenderer.d.ts.map +0 -1
  2089. package/dist/types/src/features/PromptCitation/_components/ThemeToggle.d.ts +0 -12
  2090. package/dist/types/src/features/PromptCitation/_components/ThemeToggle.d.ts.map +0 -1
  2091. package/dist/types/src/features/PromptCitation/_components/TooltipComponent.d.ts +0 -8
  2092. package/dist/types/src/features/PromptCitation/_components/TooltipComponent.d.ts.map +0 -1
  2093. package/dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts +0 -24
  2094. package/dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts.map +0 -1
  2095. package/dist/types/src/features/PromptemonBlockViewer/index.d.ts +0 -3
  2096. package/dist/types/src/features/PromptemonBlockViewer/index.d.ts.map +0 -1
  2097. package/dist/types/src/features/PromptemonViewer/PromptemonViewer.d.ts +0 -43
  2098. package/dist/types/src/features/PromptemonViewer/PromptemonViewer.d.ts.map +0 -1
  2099. package/dist/types/src/features/PromptemonViewer/index.d.ts +0 -3
  2100. package/dist/types/src/features/PromptemonViewer/index.d.ts.map +0 -1
  2101. package/dist/types/src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts +0 -125
  2102. package/dist/types/src/features/RequirementAiCitations/AiReasoning/AiReasoningCitation.d.ts.map +0 -1
  2103. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts +0 -6
  2104. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.d.ts.map +0 -1
  2105. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts +0 -26
  2106. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonAccordion.d.ts.map +0 -1
  2107. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts +0 -26
  2108. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts.map +0 -1
  2109. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts +0 -123
  2110. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationContent.d.ts.map +0 -1
  2111. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts +0 -92
  2112. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts.map +0 -1
  2113. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts +0 -7
  2114. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts.map +0 -1
  2115. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts +0 -12
  2116. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/FileCitation.d.ts.map +0 -1
  2117. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts +0 -12
  2118. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/ImageCitation.d.ts.map +0 -1
  2119. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts +0 -12
  2120. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/citationRenderers/WebCitationWithImage.d.ts.map +0 -1
  2121. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts +0 -7
  2122. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiGapIcon.d.ts.map +0 -1
  2123. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts +0 -7
  2124. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/AiReasoningIcon.d.ts.map +0 -1
  2125. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts +0 -7
  2126. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/CloseIcon.d.ts.map +0 -1
  2127. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts +0 -4
  2128. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.d.ts.map +0 -1
  2129. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts +0 -7
  2130. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/FullScreenIcon.d.ts.map +0 -1
  2131. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts +0 -4
  2132. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ImageCitationIcon.d.ts.map +0 -1
  2133. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts +0 -7
  2134. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/ReasoningBulbIcon.d.ts.map +0 -1
  2135. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts +0 -6
  2136. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.d.ts.map +0 -1
  2137. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts +0 -3
  2138. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/icons/WebCitationIcon.d.ts.map +0 -1
  2139. package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +0 -207
  2140. package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +0 -1
  2141. package/dist/types/src/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts +0 -32
  2142. package/dist/types/src/features/RequirementAiCitations/FileCitation/FileCitationContent.d.ts.map +0 -1
  2143. package/dist/types/src/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts +0 -33
  2144. package/dist/types/src/features/RequirementAiCitations/ImageCitation/ImageCitationContent.d.ts.map +0 -1
  2145. package/dist/types/src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts +0 -45
  2146. package/dist/types/src/features/RequirementAiCitations/VideoCitation/VideoCitationContent.d.ts.map +0 -1
  2147. package/dist/types/src/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts +0 -48
  2148. package/dist/types/src/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.d.ts.map +0 -1
  2149. package/dist/types/src/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts +0 -17
  2150. package/dist/types/src/features/RequirementAiCitations/WebCitation/components/ImagePreviewDialog.d.ts.map +0 -1
  2151. package/dist/types/src/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts +0 -4
  2152. package/dist/types/src/features/RequirementAiCitations/components/CitationAIConfidenceDisplay.d.ts.map +0 -1
  2153. package/dist/types/src/features/ReviewPanel/ReviewPanel.d.ts +0 -52
  2154. package/dist/types/src/features/ReviewPanel/ReviewPanel.d.ts.map +0 -1
  2155. package/dist/types/src/features/ReviewPanel/ReviewPanelTest/ReviewPanelTest.d.ts +0 -4
  2156. package/dist/types/src/features/ReviewPanel/ReviewPanelTest/ReviewPanelTest.d.ts.map +0 -1
  2157. package/dist/types/src/features/RulebookCitations/RuleBookCitation.types.d.ts +0 -40
  2158. package/dist/types/src/features/RulebookCitations/RuleBookCitation.types.d.ts.map +0 -1
  2159. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +0 -18
  2160. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +0 -1
  2161. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +0 -26
  2162. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +0 -1
  2163. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts +0 -1
  2164. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +0 -1
  2165. package/dist/types/src/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts +0 -52
  2166. package/dist/types/src/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts.map +0 -1
  2167. package/dist/types/src/features/SPBAnalysisPanel/DependencyGraph.d.ts +0 -71
  2168. package/dist/types/src/features/SPBAnalysisPanel/DependencyGraph.d.ts.map +0 -1
  2169. package/dist/types/src/features/SPBAnalysisPanel/Internaleditor.d.ts +0 -11
  2170. package/dist/types/src/features/SPBAnalysisPanel/Internaleditor.d.ts.map +0 -1
  2171. package/dist/types/src/features/SPBAnalysisPanel/Markdownrenderer.d.ts +0 -16
  2172. package/dist/types/src/features/SPBAnalysisPanel/Markdownrenderer.d.ts.map +0 -1
  2173. package/dist/types/src/features/SPBAnalysisPanel/Spbanalysispanel.d.ts +0 -124
  2174. package/dist/types/src/features/SPBAnalysisPanel/Spbanalysispanel.d.ts.map +0 -1
  2175. package/dist/types/src/features/SPBAnalysisPanel/index.d.ts +0 -10
  2176. package/dist/types/src/features/SPBAnalysisPanel/index.d.ts.map +0 -1
  2177. package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts +0 -57
  2178. package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts.map +0 -1
  2179. package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts +0 -85
  2180. package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +0 -1
  2181. package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts +0 -26
  2182. package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts.map +0 -1
  2183. package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts +0 -3
  2184. package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +0 -1
  2185. package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts +0 -3
  2186. package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts.map +0 -1
  2187. package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts +0 -33
  2188. package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts.map +0 -1
  2189. package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts +0 -7
  2190. package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +0 -1
  2191. package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts +0 -87
  2192. package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts.map +0 -1
  2193. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +0 -57
  2194. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +0 -1
  2195. package/dist/types/src/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts +0 -28
  2196. package/dist/types/src/features/SegmentReviewComponents/PageTypeChoiceCheck.d.ts.map +0 -1
  2197. package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts +0 -37
  2198. package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts.map +0 -1
  2199. package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts +0 -9
  2200. package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +0 -1
  2201. package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +0 -7
  2202. package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +0 -1
  2203. package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts +0 -17
  2204. package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts.map +0 -1
  2205. package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts +0 -33
  2206. package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts.map +0 -1
  2207. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +0 -124
  2208. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +0 -1
  2209. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts +0 -13
  2210. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts.map +0 -1
  2211. package/dist/types/src/features/SegmentReviewComponents/helper.d.ts +0 -51
  2212. package/dist/types/src/features/SegmentReviewComponents/helper.d.ts.map +0 -1
  2213. package/dist/types/src/features/SegmentReviewComponents/index.d.ts +0 -23
  2214. package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +0 -1
  2215. package/dist/types/src/features/SegmentReviewComponents/reviewScore.d.ts +0 -4
  2216. package/dist/types/src/features/SegmentReviewComponents/reviewScore.d.ts.map +0 -1
  2217. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +0 -243
  2218. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +0 -1
  2219. package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts +0 -5
  2220. package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +0 -1
  2221. package/dist/types/src/features/SplitterCitations/SplitterCitationsTest.d.ts +0 -4
  2222. package/dist/types/src/features/SplitterCitations/SplitterCitationsTest.d.ts.map +0 -1
  2223. package/dist/types/src/features/SplitterCitations/icons/icons.d.ts +0 -17
  2224. package/dist/types/src/features/SplitterCitations/icons/icons.d.ts.map +0 -1
  2225. package/dist/types/src/features/SplitterCitations/types.d.ts +0 -78
  2226. package/dist/types/src/features/SplitterCitations/types.d.ts.map +0 -1
  2227. package/dist/types/src/features/TableCitation/TableCitationContent.d.ts +0 -14
  2228. package/dist/types/src/features/TableCitation/TableCitationContent.d.ts.map +0 -1
  2229. package/dist/types/src/features/TextualGuidelines/TextualGudelinesTest.d.ts +0 -5
  2230. package/dist/types/src/features/TextualGuidelines/TextualGudelinesTest.d.ts.map +0 -1
  2231. package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts +0 -25
  2232. package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts.map +0 -1
  2233. package/dist/types/src/features/TextualGuidelines/TextualGuidelines.types.d.ts +0 -81
  2234. package/dist/types/src/features/TextualGuidelines/TextualGuidelines.types.d.ts.map +0 -1
  2235. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts +0 -3
  2236. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts.map +0 -1
  2237. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts +0 -3
  2238. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts.map +0 -1
  2239. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts +0 -3
  2240. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts.map +0 -1
  2241. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts +0 -3
  2242. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts.map +0 -1
  2243. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +0 -14
  2244. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +0 -1
  2245. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts +0 -3
  2246. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts.map +0 -1
  2247. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +0 -13
  2248. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +0 -1
  2249. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts +0 -3
  2250. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts.map +0 -1
  2251. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts +0 -21
  2252. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts.map +0 -1
  2253. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts +0 -33
  2254. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts.map +0 -1
  2255. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts +0 -19
  2256. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts.map +0 -1
  2257. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts +0 -8
  2258. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts.map +0 -1
  2259. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts +0 -17
  2260. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts.map +0 -1
  2261. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts +0 -26
  2262. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts.map +0 -1
  2263. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts +0 -11
  2264. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts.map +0 -1
  2265. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts +0 -3
  2266. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts.map +0 -1
  2267. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts +0 -3
  2268. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts.map +0 -1
  2269. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts +0 -3
  2270. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts.map +0 -1
  2271. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts +0 -1108
  2272. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts.map +0 -1
  2273. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts +0 -57
  2274. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts.map +0 -1
  2275. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts +0 -643
  2276. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts.map +0 -1
  2277. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts +0 -24
  2278. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts.map +0 -1
  2279. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts +0 -283
  2280. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts.map +0 -1
  2281. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts +0 -58
  2282. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts.map +0 -1
  2283. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts +0 -20
  2284. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts.map +0 -1
  2285. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts +0 -3
  2286. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts.map +0 -1
  2287. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts +0 -3
  2288. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts.map +0 -1
  2289. package/dist/types/src/features/UploadData/NotFound.d.ts +0 -4
  2290. package/dist/types/src/features/UploadData/NotFound.d.ts.map +0 -1
  2291. package/dist/types/src/features/UploadData/main.d.ts +0 -10
  2292. package/dist/types/src/features/UploadData/main.d.ts.map +0 -1
  2293. package/dist/types/src/hooks/useDebounce.d.ts +0 -2
  2294. package/dist/types/src/hooks/useDebounce.d.ts.map +0 -1
  2295. package/dist/types/src/hooks/useOnDemandCitationFetch.d.ts +0 -11
  2296. package/dist/types/src/hooks/useOnDemandCitationFetch.d.ts.map +0 -1
  2297. package/dist/types/src/hooks/useOnDemandCitationFetchTest.d.ts +0 -4
  2298. package/dist/types/src/hooks/useOnDemandCitationFetchTest.d.ts.map +0 -1
  2299. package/dist/types/src/hooks/useTableHeadCellsCount.d.ts +0 -6
  2300. package/dist/types/src/hooks/useTableHeadCellsCount.d.ts.map +0 -1
  2301. package/dist/types/src/hooks/useURLQuery.d.ts +0 -10
  2302. package/dist/types/src/hooks/useURLQuery.d.ts.map +0 -1
  2303. package/dist/types/src/index.d.ts +0 -63
  2304. package/dist/types/src/index.d.ts.map +0 -1
  2305. package/dist/types/src/lib/styles/viewerLayout.d.ts +0 -6
  2306. package/dist/types/src/lib/styles/viewerLayout.d.ts.map +0 -1
  2307. package/dist/types/src/methodsToExpose.d.ts +0 -13
  2308. package/dist/types/src/methodsToExpose.d.ts.map +0 -1
  2309. package/dist/types/src/routes/ErrorBoundary.d.ts +0 -20
  2310. package/dist/types/src/routes/ErrorBoundary.d.ts.map +0 -1
  2311. package/dist/types/src/routes/Routes.d.ts +0 -2
  2312. package/dist/types/src/routes/Routes.d.ts.map +0 -1
  2313. package/dist/types/src/service/API.d.ts +0 -6
  2314. package/dist/types/src/service/API.d.ts.map +0 -1
  2315. package/dist/types/src/service/DataService.d.ts +0 -73
  2316. package/dist/types/src/service/DataService.d.ts.map +0 -1
  2317. package/dist/types/src/service/GoogleFilePickerService.d.ts +0 -61
  2318. package/dist/types/src/service/GoogleFilePickerService.d.ts.map +0 -1
  2319. package/dist/types/src/service/JavascriptFileService.d.ts +0 -4
  2320. package/dist/types/src/service/JavascriptFileService.d.ts.map +0 -1
  2321. package/dist/types/src/service/ModelService.d.ts +0 -68
  2322. package/dist/types/src/service/ModelService.d.ts.map +0 -1
  2323. package/dist/types/src/service/ProjectService.d.ts +0 -16
  2324. package/dist/types/src/service/ProjectService.d.ts.map +0 -1
  2325. package/dist/types/src/service/SavedDataSetService.d.ts +0 -22
  2326. package/dist/types/src/service/SavedDataSetService.d.ts.map +0 -1
  2327. package/dist/types/src/service/apicache.service.d.ts +0 -43
  2328. package/dist/types/src/service/apicache.service.d.ts.map +0 -1
  2329. package/dist/types/src/service/constants.d.ts +0 -3
  2330. package/dist/types/src/service/constants.d.ts.map +0 -1
  2331. package/dist/types/src/service/envHelperService.d.ts +0 -5
  2332. package/dist/types/src/service/envHelperService.d.ts.map +0 -1
  2333. package/dist/types/src/service/onDemandApi.d.ts +0 -27
  2334. package/dist/types/src/service/onDemandApi.d.ts.map +0 -1
  2335. package/dist/types/src/service/variableHelperService.d.ts +0 -6
  2336. package/dist/types/src/service/variableHelperService.d.ts.map +0 -1
  2337. package/dist/types/src/theme.d.ts +0 -4
  2338. package/dist/types/src/theme.d.ts.map +0 -1
  2339. package/dist/types/src/types/CodeCitationTypes.d.ts +0 -46
  2340. package/dist/types/src/types/CodeCitationTypes.d.ts.map +0 -1
  2341. package/dist/types/src/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts +0 -23
  2342. package/dist/types/src/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts.map +0 -1
  2343. package/dist/types/src/types/epubItems.d.ts +0 -23
  2344. package/dist/types/src/types/epubItems.d.ts.map +0 -1
  2345. package/dist/types/src/types/onDemandApi.types.d.ts +0 -63
  2346. package/dist/types/src/types/onDemandApi.types.d.ts.map +0 -1
  2347. package/dist/types/src/types/useOnDemandCitationFetch.types.d.ts +0 -70
  2348. package/dist/types/src/types/useOnDemandCitationFetch.types.d.ts.map +0 -1
  2349. package/dist/types/src/userProvidedConfig.d.ts +0 -8
  2350. package/dist/types/src/userProvidedConfig.d.ts.map +0 -1
  2351. package/dist/types/src/utils/CustomSkeleton.d.ts +0 -2
  2352. package/dist/types/src/utils/CustomSkeleton.d.ts.map +0 -1
  2353. package/dist/types/src/utils/SkeletonLoader.d.ts +0 -3
  2354. package/dist/types/src/utils/SkeletonLoader.d.ts.map +0 -1
  2355. package/dist/types/src/utils/api.d.ts +0 -2
  2356. package/dist/types/src/utils/api.d.ts.map +0 -1
  2357. package/dist/types/src/utils/codeCitations.utils.d.ts +0 -9
  2358. package/dist/types/src/utils/codeCitations.utils.d.ts.map +0 -1
  2359. package/dist/types/src/utils/colors.d.ts +0 -5
  2360. package/dist/types/src/utils/colors.d.ts.map +0 -1
  2361. package/dist/types/src/utils/date.d.ts +0 -1
  2362. package/dist/types/src/utils/date.d.ts.map +0 -1
  2363. package/dist/types/src/utils/helperFunctions.d.ts +0 -6
  2364. package/dist/types/src/utils/helperFunctions.d.ts.map +0 -1
  2365. package/dist/types/src/utils/regexHelperService.d.ts +0 -9
  2366. package/dist/types/src/utils/regexHelperService.d.ts.map +0 -1
  2367. package/dist/types/src/utils/sanitizeHtml.d.ts +0 -5
  2368. package/dist/types/src/utils/sanitizeHtml.d.ts.map +0 -1
  2369. package/dist/types/src/utils/themeManager.d.ts +0 -13
  2370. package/dist/types/src/utils/themeManager.d.ts.map +0 -1
  2371. package/dist/types/src/utils/urlQueryParamService.d.ts +0 -2
  2372. package/dist/types/src/utils/urlQueryParamService.d.ts.map +0 -1
  2373. package/dist/types/src/utils/variableHelperService.d.ts +0 -7
  2374. package/dist/types/src/utils/variableHelperService.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react/jsx-runtime"),t=require("@mui/material"),i=require("react"),r=require("../CognitiveCompareConstants.js"),o=require("lucide-react"),a=require("react-markdown"),s=require("../CognitiveComparehelpers.js"),l=require("rehype-raw"),d=require("remark-gfm");function c(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var u=c(i),h=c(a),g=c(l),p=function(n){return"function"==typeof n?n:(null==n?void 0:n.default)||n},f=[p(c(d).default)],v=[p(g.default)],x=u.default.memo(function(a){var l=a.content,d=a.overlayContent,c=a.sxStyles,g=a.deviationBadges,p=void 0===g?[]:g,x=a.highlights,m=void 0===x?[]:x;a.maintainRelativeOrder;var _=a.highlightBg,b=a.suppressHighlightBg,y=void 0!==b&&b,B=a.collisionKey,E=i.useRef(null),j=!!d,w=i.useMemo(function(){return p.reduce(function(e,t){var i;return n.__assign(n.__assign({},e),((i={})[t.id]=t,i))},{})},[p]),k=i.useRef({badgeMap:w,highlightBg:_,hideHighlightBg:j,suppressHighlightBg:y});k.current={badgeMap:w,highlightBg:_,hideHighlightBg:j,suppressHighlightBg:y};var C=function(e,t){return u.default.Children.map(e,function(e){var i;if(!u.default.isValidElement(e))return e;var r=(null===(i=e.props)||void 0===i?void 0:i.children)?C(e.props.children,t):e.props.children,o=u.default.cloneElement(e,n.__assign(n.__assign({},e.props),{children:r}));return t(o)})},S=i.useMemo(function(){return{mark:function(t){var i,r,o,a,s=t.children,l=n.__rest(t,["children"]),d=k.current,c=d.badgeMap,u=d.highlightBg,h=d.hideHighlightBg,g=d.suppressHighlightBg,p=l["data-badge-id"],f=p?c[p]:null,v=l["data-highlight-color"],x=null!==(a=null!==(r=null!=v?v:null===(i=null==f?void 0:f.style)||void 0===i?void 0:i.highlightBg)&&void 0!==r?r:null===(o=null==f?void 0:f.style)||void 0===o?void 0:o.badgeBg)&&void 0!==a?a:u,m="true"===l["data-is-suggested-deviation-fix"]||g;return e.jsx("span",n.__assign({style:n.__assign(n.__assign(n.__assign({},m?{}:{backgroundColor:x}),{borderRadius:"2px",display:"inline",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone",backgroundClip:"padding-box",padding:"0 1px"}),h?{color:"transparent"}:{})},{children:s}))},span:function(i){var a,s,l,d,c,u,h=i.children,g=n.__rest(i,["children"]),p=k.current.badgeMap,f=g["data-badge-id"];if(!f)return e.jsx("span",n.__assign({},g,{children:h}));var v=p[f];if(!v)return e.jsx("span",n.__assign({},g,{children:h}));var x="number"==typeof v.stackIndex?v.stackIndex:0,m="translateY(calc(-20% + ".concat(12*x,"px + var(--badge-nudge, 0px)))");return e.jsxs(t.Box,n.__assign({component:"span",sx:{position:"static",display:"inline"}},{children:[e.jsxs(t.Box,n.__assign({ref:v.badgeRef,className:"deviation-badge","data-side":v.side||"right",sx:n.__assign(n.__assign({fontStyle:"normal",position:"absolute",zIndex:30+x,display:"inline-flex",alignItems:"stretch",fontSize:"10px",bgcolor:(null===(a=v.style)||void 0===a?void 0:a.badgeBg)||"#EEF2FF",color:(null===(s=v.style)||void 0===s?void 0:s.badgeText)||r.DEFAULT_DEVIAION_COLOR,border:"1px solid ".concat((null===(l=v.style)||void 0===l?void 0:l.badgeBorder)||"#C7D2FE"),borderRadius:"12px",fontWeight:600,whiteSpace:"nowrap",boxShadow:"0 1px 3px rgba(0,0,0,0.07)",overflow:"hidden",transition:"none"},"left"===v.side?{right:"-16px",transform:"".concat(m," translateX(calc(100% + 8px))")}:{left:"-16px",transform:"".concat(m," translateX(calc(-100% - 8px))")}),v.isConnected&&v.style&&{outline:"2px solid ".concat(v.style.badgeBorder),outlineOffset:"1px"})},{children:[e.jsxs(t.Box,n.__assign({onClick:function(n){n.stopPropagation(),v.onSummaryClick&&v.onSummaryClick(n)},sx:{display:"flex",alignItems:"center",px:1,py:.3,cursor:"pointer","&:hover":{bgcolor:"rgba(0,0,0,0.04)"}}},{children:[e.jsx(t.Box,n.__assign({component:"span",sx:{fontSize:"10px",fontWeight:700}},{children:v.label})),("left"===v.side||v.isOrphan)&&e.jsx(t.Box,n.__assign({component:"span",sx:{fontSize:"10px",pl:.5,ml:.5,borderLeft:"1px solid ".concat((null===(d=v.style)||void 0===d?void 0:d.badgeBorder)||"#C7D2FE")}},{children:null!=v.score&&"N/A"!==v.score&&"NA"!==v.score&&0!==v.score?"".concat(v.score):"N/A"===v.score||"NA"===v.score?"N/A":"Same"}))]})),("left"===v.side||v.isOrphan)&&e.jsx(t.Box,n.__assign({onClick:function(n){n.stopPropagation(),v.onClick&&v.onClick(n)},sx:{display:"flex",alignItems:"center",px:.5,borderLeft:"1px solid ".concat((null===(c=v.style)||void 0===c?void 0:c.badgeBorder)||"#C7D2FE"),cursor:"pointer","&:hover":{bgcolor:"rgba(0,0,0,0.06)"}}},{children:e.jsx(o.EllipsisVertical,{size:12,color:(null===(u=v.style)||void 0===u?void 0:u.badgeText)||"#3730A3"})}))]})),h]}))},table:function(i){var r=i.children;return e.jsx(t.Box,n.__assign({sx:{display:"block",width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",contain:"inline-size",overflowX:"auto",overflowY:"hidden",overscrollBehaviorX:"contain",WebkitOverflowScrolling:"touch",my:1}},{children:e.jsx(t.Box,n.__assign({component:"table",sx:{width:"600px",minWidth:"600px",tableLayout:"fixed",borderCollapse:"collapse",fontSize:"inherit"}},{children:r}))}))},thead:function(i){var r=i.children;return e.jsx(t.Box,n.__assign({component:"thead"},{children:r}))},tbody:function(i){var r=i.children;return e.jsx(t.Box,n.__assign({component:"tbody"},{children:r}))},tr:function(i){var r=i.children;return e.jsx(t.Box,n.__assign({component:"tr",sx:{borderBottom:"1px solid #E5E7EB"}},{children:r}))},th:function(i){var r=i.children;return e.jsx(t.Box,n.__assign({component:"th",sx:{border:"1px solid #E5E7EB",padding:"8px",textAlign:"left",verticalAlign:"top",fontWeight:600,backgroundColor:"#F9FAFB",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"anywhere"}},{children:r}))},td:function(i){var r=i.children;return e.jsx(t.Box,n.__assign({component:"td",sx:{border:"1px solid #E5E7EB",padding:"8px",verticalAlign:"top",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"anywhere"}},{children:r}))},code:function(t){var i=t.children;return e.jsx("span",n.__assign({style:{fontFamily:"inherit",fontSize:"inherit"}},{children:i}))},pre:function(t){var i=t.children;return e.jsx("span",n.__assign({style:{fontFamily:"inherit",fontSize:"inherit",display:"block",whiteSpace:"pre-wrap"}},{children:i}))},updated:function(n){var t=n.children;return e.jsx(e.Fragment,{children:t})},deleted:function(t){var i=t.children,r=C(i,function(n){return u.default.cloneElement(n,{"data-is-suggested-deviation-fix":"true"})});return e.jsx("span",n.__assign({style:{boxShadow:"inset 0 1px 0 #EF4444, inset 0 -1px 0 #EF4444",backgroundColor:"#FCCCCC",textDecoration:"line-through"}},{children:r}))},changed:function(t){var i=t.children,r=C(i,function(n){return u.default.cloneElement(n,{"data-is-suggested-deviation-fix":"true"})});return e.jsx("span",n.__assign({style:{boxShadow:"inset 0 1px 0 #2F59FF, inset 0 -1px 0 #2F59FF",backgroundColor:"#D5E8FF"}},{children:r}))},ul:function(i){var r=i.children,o=n.__rest(i,["children"]);return e.jsx(t.Box,n.__assign({component:"ul",sx:{mt:1,mb:1,pl:3,listStyleType:"disc"}},o,{children:r}))},ol:function(i){var r=i.children,o=n.__rest(i,["children"]);return e.jsx(t.Box,n.__assign({component:"ol",sx:{mt:1,mb:1,pl:3,listStyleType:"decimal"}},o,{children:r}))},li:function(i){var r=i.children,o=n.__rest(i,["children"]);return e.jsx(t.Box,n.__assign({component:"li",sx:{mb:.5,display:"list-item"}},o,{children:r}))}}},[]),F=function(n){if(!n||"string"!=typeof n)return"";var e=n,t=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/((?:<\/?[a-z]+[^>]*>\s*)+)([*+\-] |\d+\. )/gi,"$2$1")).replace(/\\(['"])/g,"$1").replace(/\\n/g,"\n").replace(/\\\./g,".").replace(/\r\n/g,"\n")).replace(/^(\d+\.)(\s{2,})/gm,function(n,e,t){return"".concat(e.slice(0,-1),"\\.").concat(t)})).replace(/^(\d+\.)\s*\n+(\s+)(\S)/gm,function(n,e,t,i){return"".concat(e," ").concat(i)})).replace(/([^\n])\n(#{1,6} )/g,"$1\n\n$2")).replace(/([^\n])\n([ \t]*(?:[#*+\-] |\d+\. ))/g,"$1\n\n$2")).replace(/\n{3,}/g,"\n\n")).replace(/^[ \t]+(?![ \t]*([\*\-\+] |\d+\. ))/gm,function(n){return n.replace(/ /g," ").replace(/\t/g,"    ")})).split(/(\n{2,})/);return(e=t.map(function(n){return/^\n+$/.test(n)||/\|.*\|/.test(n)&&/\|[\s:|-]+\|/.test(n)||/^#{1,6} /.test(n.trimStart())?n:n.replace(/\n(?=[^\n])/g,function(e,t){var i=n.slice(t+1);return/^[ \t]*([#>|\-*+]|\d+\.)/.test(i)?"\n":" "})}).join("")).trim()},z=function(n){return n.replace(/[\.,;:]/g," ")},A=i.useMemo(function(){return p.map(function(n){return{id:n.id,connected:n.isConnected,stackIndex:n.stackIndex,size:n.size}})},[p]),M=i.useMemo(function(){var e=F(l||""),t=y?z(e):e,i=(p||[]).map(function(n){var e,t;return{id:null==n?void 0:n.id,highlight:F((null==n?void 0:n.highlight)||""),highlightColor:(null===(e=null==n?void 0:n.style)||void 0===e?void 0:e.highlightBg)||(null===(t=null==n?void 0:n.style)||void 0===t?void 0:t.badgeBg)||_}}).filter(function(n){return n.id&&n.highlight}),r={};i.forEach(function(n){r[n.highlight]||(r[n.highlight]=[]),r[n.highlight].push(n)});var o=function(n,e,t,i){void 0===e&&(e=""),void 0===i&&(i=[]);var r=!1,o=function(n){var o=function(n,e,t){var i,r,o;void 0===e&&(e="");var a=n.match(/^(\s*)([\s\S]*?)(\s*)$/);if(!a)return n;var s=null!==(i=a[1])&&void 0!==i?i:"",l=null!==(r=a[2])&&void 0!==r?r:"",d=null!==(o=a[3])&&void 0!==o?o:"";return l?s+function(n,e){void 0===n&&(n="");var t=e?' data-highlight-color="'.concat(e,'"'):"",i=n?' data-badge-id="'.concat(n,'"'):"";return"<mark".concat(i).concat(t,">")}(e,t)+l+"</mark>"+d:n}(n,e,t),a=o;if(!r&&i.length>0){r=!0;var s="",l="";i.forEach(function(n){s+=function(n){return'<span data-badge-id="'.concat(n,'">')}(n.id),l="</span>"+l}),a=s+o+l}return"​"+a};return n.split(/(\n+)/).map(function(n){return/^\n+$/.test(n)?n:n.trim()?""===n.replace(/[|:\-\s]/g,"")&&n.includes("-")?n:n.includes("|")?n.split(/(\|)/).map(function(n){return"|"!==n&&n.trim()?o(n):n}).join(""):o(n):n}).join("")},a=[];Object.entries(r).forEach(function(n){var i=n[0],r=n[1],o=e.indexOf(i),l=!1;if(-1===o&&y){var d=z(i);-1!==(o=t.indexOf(d))&&(l=!0)}if(-1!==o){for(var c=r[0].highlightColor,u=1;u<r.length;u++)c=s.mixHexColors(c,r[u].highlightColor||"");a.push({highlight:i,start:o,end:o+i.length,badges:r,color:c,usedLooseMatch:l})}});var d=new Set(Object.keys(r));(m||[]).forEach(function(n){if(n){var i=F(n);if(i&&!d.has(i)){var r=e.indexOf(i),o=!1;if(-1===r&&y){var s=z(i);-1!==(r=t.indexOf(s))&&(o=!0)}if(-1!==r){var l=e.slice(0,r);(l.match(/</g)||[]).length===(l.match(/>/g)||[]).length&&a.push({highlight:i,start:r,end:r+i.length,badges:[],color:_||"",usedLooseMatch:o})}}}}),a.sort(function(n,e){return n.start-e.start||e.end-n.end});var c=[],u={};a.forEach(function(n,e){for(var t=n.start,i=n.end,r=0,o=c;r<o.length;r++){var a=o[r],s=a.start,l=a.end,d=t<l&&i>l&&t>=s,h=t<s&&i>s&&i<=l;if(t>=s&&i<=l){n.orphaned=!0,u[e]=a.matchIdx;break}d&&(t=l),h&&(i=s)}n.trimmedStart=t,n.trimmedEnd=i,!n.orphaned&&t<i&&c.push({start:t,end:i,matchIdx:e})});var h={};Object.entries(u).forEach(function(n){var e=n[0],t=n[1],i=Number(e);h[t]||(h[t]=[]),h[t].push(i)});var g=a.map(function(e,t){return n.__assign(n.__assign({},e),{idx:t})}).filter(function(n){return!n.orphaned}).sort(function(n,e){var t,i;return(null!==(t=e.trimmedStart)&&void 0!==t?t:e.start)-(null!==(i=n.trimmedStart)&&void 0!==i?i:n.start)});return g.forEach(function(n){var t,i,r,l,d=null!==(t=n.trimmedStart)&&void 0!==t?t:n.start,c=null!==(i=n.trimmedEnd)&&void 0!==i?i:n.end;if(!(d>=c)){var u=e.slice(d,c),g=function(n,e,t,i){if(!t.length)return n;var r=t.map(function(n){return a[n]}).sort(function(n,e){return n.start-e.start}),l="",d=0;return r.forEach(function(t){var r,a,c=Math.max(d,t.start-e),u=Math.max(c,t.end-e);if(!(c>=u)){var h=s.mixHexColors(i,t.color||"");l+=n.slice(d,c),l+=o(n.slice(c,u),(null===(a=null===(r=t.badges)||void 0===r?void 0:r[0])||void 0===a?void 0:a.id)||"",h,t.badges||[]),d=u}}),l+=n.slice(d)}(n.usedLooseMatch||d!==n.start||c!==n.end?u:n.highlight,n.start,h[n.idx]||[],n.color),p=o(g,(null===(l=null===(r=n.badges)||void 0===r?void 0:r[0])||void 0===l?void 0:l.id)||"",n.color,n.badges||[]);e=e.slice(0,d)+p+e.slice(c)}}),e},[l,p,m,_,y]),T=i.useMemo(function(){return d?F(d||""):""},[d]),O=!!d,W={"& *":{fontFamily:"inherit"},"& code, & pre, & kbd, & samp":{fontFamily:"inherit !important",fontSize:"inherit",background:"none",padding:0,border:"none",whiteSpace:"pre-wrap"},"& p, & li, & ul, & ol":{position:"static",overflow:"visible",whiteSpace:"pre-wrap"}},q=n.__assign(n.__assign(n.__assign(n.__assign({},c),W),{position:"relative",width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"visible",whiteSpace:"normal",gridArea:"1 / 1",zIndex:2}),O?{color:"transparent",userSelect:"none",pointerEvents:"none","& .deviation-badge":{pointerEvents:"auto"},"& table":{visibility:"hidden",margin:"0 !important"},"& th, & td":{padding:"0 !important",border:"none !important",backgroundColor:"transparent !important"},"& tr":{border:"none !important"},"& p:empty":{display:"none"}}:{}),I=n.__assign(n.__assign(n.__assign({},c),W),{position:"relative",width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"visible",whiteSpace:"normal",gridArea:"1 / 1",zIndex:1,pointerEvents:"auto"});return i.useLayoutEffect(function(){if(E.current){var n=function(){var n=Array.from(E.current.querySelectorAll(".deviation-badge"));if(0!==n.length){n.forEach(function(n){n.style.setProperty("--badge-nudge","0px")});var e=n.filter(function(n){return"left"===n.dataset.side}),t=n.filter(function(n){return"left"!==n.dataset.side}),i=E.current.getBoundingClientRect(),r=i.bottom-4,o=i.top+4,a=function(n){if(0!==n.length){var e=n.map(function(n){var e=n.getBoundingClientRect();return{el:n,naturalTop:e.top,height:e.height,currentTop:e.top}});e.sort(function(n,e){return n.naturalTop-e.naturalTop});var t=[],i=[];e.forEach(function(n){if(0===i.length)i.push(n);else{var e=i[i.length-1],r=e.currentTop+e.height;n.naturalTop<r+8?(n.currentTop=r+8,i.push(n)):(t.push(i),i=[n])}}),i.length>0&&t.push(i),t.forEach(function(n){var e=n[n.length-1],t=e.currentTop+e.height;if(t>r){var i=t-r,a=n[0].currentTop-o,s=Math.max(0,Math.min(i,a));n.forEach(function(n){n.currentTop-=s})}}),t.flat().forEach(function(n){var e=n.currentTop-n.naturalTop;n.el.style.setProperty("--badge-nudge","".concat(e,"px"))})}};a(e),a(t)}},e=requestAnimationFrame(function(){requestAnimationFrame(function(){n()})}),t=new ResizeObserver(function(){requestAnimationFrame(n)});return t.observe(E.current),function(){t.disconnect(),cancelAnimationFrame(e)}}},[M,B,A]),e.jsxs(t.Box,n.__assign({ref:E,sx:{position:"relative",display:"grid",gridTemplateColumns:"minmax(0, 1fr)",width:"100%",maxWidth:"100%",minWidth:0}},{children:[e.jsx(t.Typography,n.__assign({component:"div",sx:n.__assign(n.__assign({},q),{padding:"3px"})},{children:e.jsx(h.default,n.__assign({components:S,remarkPlugins:f,rehypePlugins:v},{children:M.replace(/#{3}/g,"")}))})),O&&e.jsx(t.Typography,n.__assign({component:"div",sx:I},{children:e.jsx(h.default,n.__assign({components:S,remarkPlugins:f,rehypePlugins:v},{children:T}))}))]}))},s.areMarkdownPropsEqual);exports.MemoizedMarkdown=x;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@mui/material"),r=require("react"),n=require("../CognitiveCompareConstants.js"),i=require("lucide-react"),o=require("react-markdown"),a=require("../CognitiveComparehelpers.js"),s=require("rehype-raw"),l=require("remark-gfm");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=d(r),h=d(o),p=d(s);const g=e=>"function"==typeof e?e:e?.default||e,u=[g(d(l).default)],x=[g(p.default)],m=c.default.memo(({content:o,overlayContent:s,sxStyles:l,deviationBadges:d=[],highlights:p=[],maintainRelativeOrder:g=!0,highlightBg:m,suppressHighlightBg:f=!1,collisionKey:b})=>{const y=r.useRef(null),B=!!s,v=r.useMemo(()=>d.reduce((e,t)=>({...e,[t.id]:t}),{}),[d]),E=r.useRef({badgeMap:v,highlightBg:m,hideHighlightBg:B,suppressHighlightBg:f});E.current={badgeMap:v,highlightBg:m,hideHighlightBg:B,suppressHighlightBg:f};const j=(e,t)=>c.default.Children.map(e,e=>{if(!c.default.isValidElement(e))return e;const r=e.props?.children?j(e.props.children,t):e.props.children,n=c.default.cloneElement(e,{...e.props,children:r});return t(n)}),w=r.useMemo(()=>({mark:({children:t,...r})=>{const{badgeMap:n,highlightBg:i,hideHighlightBg:o,suppressHighlightBg:a}=E.current,s=r["data-badge-id"],l=s?n[s]:null,d=r["data-highlight-color"]??l?.style?.highlightBg??l?.style?.badgeBg??i,c="true"===r["data-is-suggested-deviation-fix"]||a;return e.jsx("span",{style:{...c?{}:{backgroundColor:d},borderRadius:"2px",display:"inline",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone",backgroundClip:"padding-box",padding:"0 1px",...o?{color:"transparent"}:{}},children:t})},span:({children:r,...o})=>{const{badgeMap:a}=E.current,s=o["data-badge-id"];if(!s)return e.jsx("span",{...o,children:r});const l=a[s];if(!l)return e.jsx("span",{...o,children:r});const d="number"==typeof l.stackIndex?l.stackIndex:0,c=`translateY(calc(-20% + ${12*d}px + var(--badge-nudge, 0px)))`;return e.jsxs(t.Box,{component:"span",sx:{position:"static",display:"inline"},children:[e.jsxs(t.Box,{ref:l.badgeRef,className:"deviation-badge","data-side":l.side||"right",sx:{fontStyle:"normal",position:"absolute",zIndex:30+d,display:"inline-flex",alignItems:"stretch",fontSize:"10px",bgcolor:l.style?.badgeBg||"#EEF2FF",color:l.style?.badgeText||n.DEFAULT_DEVIAION_COLOR,border:`1px solid ${l.style?.badgeBorder||"#C7D2FE"}`,borderRadius:"12px",fontWeight:600,whiteSpace:"nowrap",boxShadow:"0 1px 3px rgba(0,0,0,0.07)",overflow:"hidden",transition:"none",..."left"===l.side?{right:"-16px",transform:`${c} translateX(calc(100% + 8px))`}:{left:"-16px",transform:`${c} translateX(calc(-100% - 8px))`},...l.isConnected&&l.style&&{outline:`2px solid ${l.style.badgeBorder}`,outlineOffset:"1px"}},children:[e.jsxs(t.Box,{onClick:e=>{e.stopPropagation(),l.onSummaryClick&&l.onSummaryClick(e)},sx:{display:"flex",alignItems:"center",px:1,py:.3,cursor:"pointer","&:hover":{bgcolor:"rgba(0,0,0,0.04)"}},children:[e.jsx(t.Box,{component:"span",sx:{fontSize:"10px",fontWeight:700},children:l.label}),("left"===l.side||l.isOrphan)&&e.jsx(t.Box,{component:"span",sx:{fontSize:"10px",pl:.5,ml:.5,borderLeft:`1px solid ${l.style?.badgeBorder||"#C7D2FE"}`},children:null!=l.score&&"N/A"!==l.score&&"NA"!==l.score&&0!==l.score?`${l.score}`:"N/A"===l.score||"NA"===l.score?"N/A":"Same"})]}),("left"===l.side||l.isOrphan)&&e.jsx(t.Box,{onClick:e=>{e.stopPropagation(),l.onClick&&l.onClick(e)},sx:{display:"flex",alignItems:"center",px:.5,borderLeft:`1px solid ${l.style?.badgeBorder||"#C7D2FE"}`,cursor:"pointer","&:hover":{bgcolor:"rgba(0,0,0,0.06)"}},children:e.jsx(i.EllipsisVertical,{size:12,color:l.style?.badgeText||"#3730A3"})})]}),r]})},table:({children:r})=>e.jsx(t.Box,{sx:{display:"block",width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",contain:"inline-size",overflowX:"auto",overflowY:"hidden",overscrollBehaviorX:"contain",WebkitOverflowScrolling:"touch",my:1},children:e.jsx(t.Box,{component:"table",sx:{width:"600px",minWidth:"600px",tableLayout:"fixed",borderCollapse:"collapse",fontSize:"inherit"},children:r})}),thead:({children:r})=>e.jsx(t.Box,{component:"thead",children:r}),tbody:({children:r})=>e.jsx(t.Box,{component:"tbody",children:r}),tr:({children:r})=>e.jsx(t.Box,{component:"tr",sx:{borderBottom:"1px solid #E5E7EB"},children:r}),th:({children:r})=>e.jsx(t.Box,{component:"th",sx:{border:"1px solid #E5E7EB",padding:"8px",textAlign:"left",verticalAlign:"top",fontWeight:600,backgroundColor:"#F9FAFB",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"anywhere"},children:r}),td:({children:r})=>e.jsx(t.Box,{component:"td",sx:{border:"1px solid #E5E7EB",padding:"8px",verticalAlign:"top",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"anywhere"},children:r}),code:({children:t})=>e.jsx("span",{style:{fontFamily:"inherit",fontSize:"inherit"},children:t}),pre:({children:t})=>e.jsx("span",{style:{fontFamily:"inherit",fontSize:"inherit",display:"block",whiteSpace:"pre-wrap"},children:t}),updated:({children:t})=>e.jsx(e.Fragment,{children:t}),deleted:({children:t})=>{const r=j(t,e=>c.default.cloneElement(e,{"data-is-suggested-deviation-fix":"true"}));return e.jsx("span",{style:{boxShadow:"inset 0 1px 0 #EF4444, inset 0 -1px 0 #EF4444",backgroundColor:"#FCCCCC",textDecoration:"line-through"},children:r})},changed:({children:t})=>{const r=j(t,e=>c.default.cloneElement(e,{"data-is-suggested-deviation-fix":"true"}));return e.jsx("span",{style:{boxShadow:"inset 0 1px 0 #2F59FF, inset 0 -1px 0 #2F59FF",backgroundColor:"#D5E8FF"},children:r})},ul:({children:r,...n})=>e.jsx(t.Box,{component:"ul",sx:{mt:1,mb:1,pl:3,listStyleType:"disc"},...n,children:r}),ol:({children:r,...n})=>e.jsx(t.Box,{component:"ol",sx:{mt:1,mb:1,pl:3,listStyleType:"decimal"},...n,children:r}),li:({children:r,...n})=>e.jsx(t.Box,{component:"li",sx:{mb:.5,display:"list-item"},...n,children:r})}),[]),k=e=>{if(!e||"string"!=typeof e)return"";let t=e;t=t.replace(/((?:<\/?[a-z]+[^>]*>\s*)+)([*+\-] |\d+\. )/gi,"$2$1"),t=t.replace(/\\(['"])/g,"$1").replace(/\\n/g,"\n").replace(/\\\./g,".").replace(/\r\n/g,"\n"),t=t.replace(/^(\d+\.)(\s{2,})/gm,(e,t,r)=>`${t.slice(0,-1)}\\.${r}`),t=t.replace(/^(\d+\.)\s*\n+(\s+)(\S)/gm,(e,t,r,n)=>`${t} ${n}`),t=t.replace(/([^\n])\n(#{1,6} )/g,"$1\n\n$2"),t=t.replace(/([^\n])\n([ \t]*(?:[#*+\-] |\d+\. ))/g,"$1\n\n$2"),t=t.replace(/\n{3,}/g,"\n\n"),t=t.replace(/^[ \t]+(?![ \t]*([\*\-\+] |\d+\. ))/gm,e=>e.replace(/ /g," ").replace(/\t/g,"    "));const r=t.split(/(\n{2,})/);return t=r.map(e=>/^\n+$/.test(e)||/\|.*\|/.test(e)&&/\|[\s:|-]+\|/.test(e)||/^#{1,6} /.test(e.trimStart())?e:e.replace(/\n(?=[^\n])/g,(t,r)=>{const n=e.slice(r+1);return/^[ \t]*([#>|\-*+]|\d+\.)/.test(n)?"\n":" "})).join(""),t.trim()},C=e=>e.replace(/[\.,;:]/g," "),S=r.useMemo(()=>d.map(e=>({id:e.id,connected:e.isConnected,stackIndex:e.stackIndex,size:e.size})),[d]),F=r.useMemo(()=>{let e=k(o||"");const t=f?C(e):e,r=(d||[]).map(e=>({id:e?.id,highlight:k(e?.highlight||""),highlightColor:e?.style?.highlightBg||e?.style?.badgeBg||m})).filter(e=>e.id&&e.highlight),n={};r.forEach(e=>{n[e.highlight]||(n[e.highlight]=[]),n[e.highlight].push(e)});const i=(e,t="",r,n=[])=>{let i=!1;const o=e=>{const o=((e,t="",r)=>{const n=e.match(/^(\s*)([\s\S]*?)(\s*)$/);if(!n)return e;const i=n[1]??"",o=n[2]??"",a=n[3]??"";return o?i+((e="",t)=>`<mark${e?` data-badge-id="${e}"`:""}${t?` data-highlight-color="${t}"`:""}>`)(t,r)+o+"</mark>"+a:e})(e,t,r);let a=o;if(!i&&n.length>0){i=!0;let e="",t="";n.forEach(r=>{e+=(e=>`<span data-badge-id="${e}">`)(r.id),t="</span>"+t}),a=e+o+t}return"​"+a};return e.split(/(\n+)/).map(e=>{if(/^\n+$/.test(e))return e;if(!e.trim())return e;return""===e.replace(/[|:\-\s]/g,"")&&e.includes("-")?e:e.includes("|")?e.split(/(\|)/).map(e=>"|"!==e&&e.trim()?o(e):e).join(""):o(e)}).join("")},s=[];Object.entries(n).forEach(([r,n])=>{let i=e.indexOf(r),o=!1;if(-1===i&&f){const e=C(r);i=t.indexOf(e),-1!==i&&(o=!0)}if(-1===i)return;let l=n[0].highlightColor;for(let e=1;e<n.length;e++)l=a.mixHexColors(l,n[e].highlightColor||"");s.push({highlight:r,start:i,end:i+r.length,badges:n,color:l,usedLooseMatch:o})});const l=new Set(Object.keys(n));(p||[]).forEach(r=>{if(!r)return;const n=k(r);if(!n||l.has(n))return;let i=e.indexOf(n),o=!1;if(-1===i&&f){const e=C(n);i=t.indexOf(e),-1!==i&&(o=!0)}if(-1===i)return;const a=e.slice(0,i);(a.match(/</g)||[]).length===(a.match(/>/g)||[]).length&&s.push({highlight:n,start:i,end:i+n.length,badges:[],color:m||"",usedLooseMatch:o})}),s.sort((e,t)=>e.start-t.start||t.end-e.end);const c=[],h={};s.forEach((e,t)=>{let r=e.start,n=e.end;for(const i of c){const o=i.start,a=i.end,s=r<a&&n>a&&r>=o,l=r<o&&n>o&&n<=a;if(r>=o&&n<=a){e.orphaned=!0,h[t]=i.matchIdx;break}s&&(r=a),l&&(n=o)}e.trimmedStart=r,e.trimmedEnd=n,!e.orphaned&&r<n&&c.push({start:r,end:n,matchIdx:t})});const g={};Object.entries(h).forEach(([e,t])=>{const r=Number(e);g[t]||(g[t]=[]),g[t].push(r)});return s.map((e,t)=>({...e,idx:t})).filter(e=>!e.orphaned).sort((e,t)=>(t.trimmedStart??t.start)-(e.trimmedStart??e.start)).forEach(t=>{const r=t.trimmedStart??t.start,n=t.trimmedEnd??t.end;if(r>=n)return;const o=e.slice(r,n),l=((e,t,r,n)=>{if(!r.length)return e;const o=r.map(e=>s[e]).sort((e,t)=>e.start-t.start);let l="",d=0;return o.forEach(r=>{const o=Math.max(d,r.start-t),s=Math.max(o,r.end-t);if(o>=s)return;const c=a.mixHexColors(n,r.color||"");l+=e.slice(d,o),l+=i(e.slice(o,s),r.badges?.[0]?.id||"",c,r.badges||[]),d=s}),l+=e.slice(d),l})(t.usedLooseMatch||r!==t.start||n!==t.end?o:t.highlight,t.start,g[t.idx]||[],t.color),d=i(l,t.badges?.[0]?.id||"",t.color,t.badges||[]);e=e.slice(0,r)+d+e.slice(n)}),e},[o,d,p,m,f]),$=r.useMemo(()=>s?k(s||""):"",[s]),z=!!s,A={"& *":{fontFamily:"inherit"},"& code, & pre, & kbd, & samp":{fontFamily:"inherit !important",fontSize:"inherit",background:"none",padding:0,border:"none",whiteSpace:"pre-wrap"},"& p, & li, & ul, & ol":{position:"static",overflow:"visible",whiteSpace:"pre-wrap"}},M={...l,...A,position:"relative",width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"visible",whiteSpace:"normal",gridArea:"1 / 1",zIndex:2,...z?{color:"transparent",userSelect:"none",pointerEvents:"none","& .deviation-badge":{pointerEvents:"auto"},"& table":{visibility:"hidden",margin:"0 !important"},"& th, & td":{padding:"0 !important",border:"none !important",backgroundColor:"transparent !important"},"& tr":{border:"none !important"},"& p:empty":{display:"none"}}:{}},T={...l,...A,position:"relative",width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"visible",whiteSpace:"normal",gridArea:"1 / 1",zIndex:1,pointerEvents:"auto"};return r.useLayoutEffect(()=>{if(!y.current)return;const e=()=>{const e=Array.from(y.current.querySelectorAll(".deviation-badge"));if(0===e.length)return;e.forEach(e=>{e.style.setProperty("--badge-nudge","0px")});const t=e.filter(e=>"left"===e.dataset.side),r=e.filter(e=>"left"!==e.dataset.side),n=y.current.getBoundingClientRect(),i=n.bottom-4,o=n.top+4,a=e=>{if(0===e.length)return;const t=e.map(e=>{const t=e.getBoundingClientRect();return{el:e,naturalTop:t.top,height:t.height,currentTop:t.top}});t.sort((e,t)=>e.naturalTop-t.naturalTop);const r=[];let n=[];t.forEach(e=>{if(0===n.length)n.push(e);else{const t=n[n.length-1],i=t.currentTop+t.height;e.naturalTop<i+8?(e.currentTop=i+8,n.push(e)):(r.push(n),n=[e])}}),n.length>0&&r.push(n),r.forEach(e=>{const t=e[e.length-1],r=t.currentTop+t.height;if(r>i){const t=r-i,n=e[0].currentTop-o,a=Math.max(0,Math.min(t,n));e.forEach(e=>{e.currentTop-=a})}}),r.flat().forEach(e=>{const t=e.currentTop-e.naturalTop;e.el.style.setProperty("--badge-nudge",`${t}px`)})};a(t),a(r)},t=requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})}),r=new ResizeObserver(()=>{requestAnimationFrame(e)});return r.observe(y.current),()=>{r.disconnect(),cancelAnimationFrame(t)}},[F,b,S]),e.jsxs(t.Box,{ref:y,sx:{position:"relative",display:"grid",gridTemplateColumns:"minmax(0, 1fr)",width:"100%",maxWidth:"100%",minWidth:0},children:[e.jsx(t.Typography,{component:"div",sx:{...M,padding:"3px"},children:e.jsx(h.default,{components:w,remarkPlugins:u,rehypePlugins:x,children:F.replace(/#{3}/g,"")})}),z&&e.jsx(t.Typography,{component:"div",sx:T,children:e.jsx(h.default,{components:w,remarkPlugins:u,rehypePlugins:x,children:$})})]})},a.areMarkdownPropsEqual);exports.MemoizedMarkdown=m;
2
2
  //# sourceMappingURL=memoizedMarkdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"memoizedMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"memoizedMarkdown.js","sources":["../../../../../src/features/CognitiveCompare/hooks/memoizedMarkdown.tsx"],"sourcesContent":["import { Box, Typography } from \"@mui/material\";\nimport React, { useMemo, useRef, useLayoutEffect, ReactElement, ReactNode } from \"react\";\nimport { DEFAULT_DEVIAION_COLOR } from \"../CognitiveCompareConstants\";\nimport { EllipsisVertical } from \"lucide-react\";\nimport ReactMarkdown from \"react-markdown\";\nimport { areMarkdownPropsEqual, mixHexColors } from \"../CognitiveComparehelpers\";\nimport rehypeRaw from \"rehype-raw\";\nimport { HighlightMatch } from \"../CognitiveCompareTypes\";\nimport remarkGfm from \"remark-gfm\";\n\n// Ensures plugins work regardless of how the bundler exports them (ESM vs CJS)\nconst resolvePlugin = (plugin: any) => typeof plugin === \"function\" ? plugin : plugin?.default || plugin;\nconst remarkPlugins = [resolvePlugin(remarkGfm)];\nconst rehypePlugins = [resolvePlugin(rehypeRaw)];\n\ntype TransformFn = (element: ReactElement) => ReactElement;\nexport const MemoizedMarkdown = React.memo(({ \n content, \n overlayContent,\n sxStyles, \n deviationBadges = [], \n highlights = [],\n maintainRelativeOrder = true,\n highlightBg,\n suppressHighlightBg = false,\n collisionKey\n}: { \n content: string; \n overlayContent?: string;\n sxStyles: any; \n deviationBadges?: any[]; \n highlights?: string[]; \n maintainRelativeOrder?: boolean;\n highlightBg: string;\n suppressHighlightBg?: boolean;\n collisionKey?: string | number;\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const hideHighlightBg = !!overlayContent;\n\n const badgeMap = useMemo(\n () => deviationBadges.reduce((acc, badge) => ({ ...acc, [badge.id]: badge }), {} as Record<string, any>),\n [deviationBadges],\n );\n\n const dynamicPropsRef = useRef({ badgeMap, highlightBg, hideHighlightBg, suppressHighlightBg });\n dynamicPropsRef.current = { badgeMap, highlightBg, hideHighlightBg, suppressHighlightBg };\n\n const mapChildrenDeep = (\n children: ReactNode,\n transform: TransformFn\n ): ReactNode => {\n return React.Children.map(children, (child) => {\n if (!React.isValidElement(child)) {\n return child;\n }\n\n const newChildren = child.props?.children\n ? mapChildrenDeep(child.props.children, transform)\n : child.props.children;\n\n const cloned = React.cloneElement(child, {\n ...child.props,\n children: newChildren,\n });\n\n return transform(cloned);\n });\n }\n\n const components = useMemo(() => ({\n mark: ({ children, ...props }: any) => {\n const { badgeMap, highlightBg, hideHighlightBg, suppressHighlightBg } = dynamicPropsRef.current;\n const badgeId = props[\"data-badge-id\"];\n const badge = badgeId ? badgeMap[badgeId] : null;\n const overrideBg = props[\"data-highlight-color\"];\n const bg =\n overrideBg\n ?? badge?.style?.highlightBg\n ?? badge?.style?.badgeBg\n ?? highlightBg;\n \n const shouldHideBg = props[\"data-is-suggested-deviation-fix\"] === \"true\" || suppressHighlightBg;\n \n return (\n <span style={{\n ...(!shouldHideBg ? { backgroundColor: bg } : {}),\n borderRadius: \"2px\",\n display: \"inline\",\n boxDecorationBreak: \"clone\",\n WebkitBoxDecorationBreak: \"clone\",\n backgroundClip: \"padding-box\",\n padding: \"0 1px\",\n ...(hideHighlightBg ? { color: \"transparent\" } : {})\n }}>\n {children}\n </span>\n );\n },\n span: ({ children, ...props }: any) => {\n const { badgeMap } = dynamicPropsRef.current;\n const badgeId = props[\"data-badge-id\"];\n if (!badgeId) return <span {...props}>{children}</span>;\n\n const badge = badgeMap[badgeId];\n if (!badge) return <span {...props}>{children}</span>;\n\n const stackIndex = typeof badge.stackIndex === \"number\" ? badge.stackIndex : 0;\n const stackOffset = stackIndex * 12;\n const translateY = `translateY(calc(-20% + ${stackOffset}px + var(--badge-nudge, 0px)))`;\n\n return (\n <Box component=\"span\" sx={{ position: \"static\", display: \"inline\" }}>\n <Box\n ref={badge.badgeRef}\n className=\"deviation-badge\"\n data-side={badge.side || \"right\"}\n sx={{\n fontStyle: \"normal\",\n position: \"absolute\",\n zIndex: 30 + stackIndex,\n display: \"inline-flex\",\n alignItems: \"stretch\",\n fontSize: \"10px\",\n bgcolor: badge.style?.badgeBg || \"#EEF2FF\",\n color: badge.style?.badgeText || DEFAULT_DEVIAION_COLOR,\n border: `1px solid ${badge.style?.badgeBorder || \"#C7D2FE\"}`,\n borderRadius: \"12px\",\n fontWeight: 600,\n whiteSpace: \"nowrap\",\n boxShadow: \"0 1px 3px rgba(0,0,0,0.07)\",\n overflow: \"hidden\",\n transition: \"none\",\n ...(badge.side === \"left\"\n ? { right: \"-16px\", transform: `${translateY} translateX(calc(100% + 8px))` }\n : { left: \"-16px\", transform: `${translateY} translateX(calc(-100% - 8px))` }),\n ...(badge.isConnected && badge.style && { outline: `2px solid ${badge.style.badgeBorder}`, outlineOffset: \"1px\" })\n }}\n >\n <Box\n onClick={(e) => {\n e.stopPropagation();\n if (badge.onSummaryClick) badge.onSummaryClick(e);\n }}\n sx={{\n display: \"flex\",\n alignItems: \"center\",\n px: 1,\n py: 0.3,\n cursor: \"pointer\",\n \"&:hover\": { bgcolor: \"rgba(0,0,0,0.04)\" },\n }}\n >\n <Box component=\"span\" sx={{ fontSize: \"10px\", fontWeight: 700 }}>\n {badge.label}\n </Box>\n {(badge.side === \"left\" || badge.isOrphan) && (\n <Box\n component=\"span\"\n sx={{\n fontSize: \"10px\",\n pl: 0.5,\n ml: 0.5,\n borderLeft: `1px solid ${badge.style?.badgeBorder || \"#C7D2FE\"}`,\n }}\n >\n {(badge.score != null && badge.score !== \"N/A\" && badge.score !== \"NA\" && badge.score !== 0)\n ? `${badge.score}`\n : (badge.score === \"N/A\" || badge.score === \"NA\")\n ? \"N/A\"\n : \"Same\"}\n </Box>\n )}\n </Box>\n\n {(badge.side === \"left\" || badge.isOrphan) && (\n <Box\n onClick={(e) => {\n e.stopPropagation();\n if (badge.onClick) badge.onClick(e);\n }}\n sx={{\n display: \"flex\",\n alignItems: \"center\",\n px: 0.5,\n borderLeft: `1px solid ${badge.style?.badgeBorder || \"#C7D2FE\"}`,\n cursor: \"pointer\",\n \"&:hover\": { bgcolor: \"rgba(0,0,0,0.06)\" },\n }}\n >\n <EllipsisVertical size={12} color={badge.style?.badgeText || \"#3730A3\"} />\n </Box>\n )}\n </Box>\n {children}\n </Box>\n );\n },\n table: ({ children }: any) => (\n <Box\n sx={{\n display: \"block\",\n width: \"100%\",\n maxWidth: \"100%\",\n minWidth: 0,\n boxSizing: \"border-box\",\n contain: \"inline-size\",\n overflowX: \"auto\",\n overflowY: \"hidden\",\n overscrollBehaviorX: \"contain\",\n WebkitOverflowScrolling: \"touch\",\n my: 1,\n }}\n >\n <Box\n component=\"table\"\n sx={{\n width: \"600px\",\n minWidth: \"600px\",\n tableLayout: \"fixed\",\n borderCollapse: \"collapse\",\n fontSize: \"inherit\",\n }}\n >\n {children}\n </Box>\n </Box>\n ),\n thead: ({ children }: any) => <Box component=\"thead\">{children}</Box>,\n tbody: ({ children }: any) => <Box component=\"tbody\">{children}</Box>,\n tr: ({ children }: any) => <Box component=\"tr\" sx={{ borderBottom: \"1px solid #E5E7EB\" }}>{children}</Box>,\n th: ({ children }: any) => <Box component=\"th\" sx={{ border: \"1px solid #E5E7EB\", padding: \"8px\", textAlign: \"left\", verticalAlign: \"top\", fontWeight: 600, backgroundColor: \"#F9FAFB\", whiteSpace: \"normal\", wordBreak: \"break-word\", overflowWrap: \"anywhere\" }}>{children}</Box>,\n td: ({ children }: any) => <Box component=\"td\" sx={{ border: \"1px solid #E5E7EB\", padding: \"8px\", verticalAlign: \"top\", whiteSpace: \"normal\", wordBreak: \"break-word\", overflowWrap: \"anywhere\" }}>{children}</Box>,\n code: ({ children }: any) => <span style={{ fontFamily: \"inherit\", fontSize: \"inherit\" }}>{children}</span>,\n pre: ({ children }: any) => <span style={{ fontFamily: \"inherit\", fontSize: \"inherit\", display: \"block\", whiteSpace: \"pre-wrap\" }}>{children}</span>,\n updated: ({ children }: any) => <>{children}</>,\n\n deleted: ({ children }: any) => {\n const updatedChildren = mapChildrenDeep(children, (el) => React.cloneElement(el, { \"data-is-suggested-deviation-fix\": \"true\" }));\n return <span style={{ boxShadow: \"inset 0 1px 0 #EF4444, inset 0 -1px 0 #EF4444\", backgroundColor: \"#FCCCCC\", textDecoration: \"line-through\" }}>{updatedChildren}</span>;\n },\n\n changed: ({ children }: any) => {\n const updatedChildren = mapChildrenDeep(children, (el) => React.cloneElement(el, { \"data-is-suggested-deviation-fix\": \"true\" }));\n return <span style={{ boxShadow: \"inset 0 1px 0 #2F59FF, inset 0 -1px 0 #2F59FF\", backgroundColor: \"#D5E8FF\" }}>{updatedChildren}</span>;\n },\n\n ul: ({ children, ...props }: any) => <Box component=\"ul\" sx={{ mt: 1, mb: 1, pl: 3, listStyleType: \"disc\" }} {...props}>{children}</Box>,\n ol: ({ children, ...props }: any) => <Box component=\"ol\" sx={{ mt: 1, mb: 1, pl: 3, listStyleType: \"decimal\" }} {...props}>{children}</Box>,\n li: ({ children, ...props }: any) => <Box component=\"li\" sx={{ mb: 0.5, display: \"list-item\" }} {...props}>{children}</Box>,\n }),\n []\n );\n\n const normalizeMarkdownText = (rawText: string): string => {\n if (!rawText || typeof rawText !== \"string\") return \"\";\n\n let text = rawText;\n\n // This converts `<updated><changed> * text` into `* <updated><changed>text to show bullet points in change_history as well`\n text = text.replace(/((?:<\\/?[a-z]+[^>]*>\\s*)+)([*+\\-] |\\d+\\. )/gi, \"$2$1\");\n\n text = text\n .replace(/\\\\(['\"])/g, \"$1\")\n .replace(/\\\\n/g, \"\\n\")\n .replace(/\\\\\\./g, \".\") \n .replace(/\\r\\n/g, \"\\n\");\n \n text = text.replace(/^(\\d+\\.)(\\s{2,})/gm, (_, num, spaces) => `${num.slice(0, -1)}\\\\.${spaces}`);\n text = text.replace(/^(\\d+\\.)\\s*\\n+(\\s+)(\\S)/gm, (_, marker, _indent, firstChar) => `${marker} ${firstChar}`);\n text = text.replace(/([^\\n])\\n(#{1,6} )/g, \"$1\\n\\n$2\");\n \n // Check for blank line before assign bullets\n text = text.replace(/([^\\n])\\n([ \\t]*(?:[#*+\\-] |\\d+\\. ))/g, \"$1\\n\\n$2\");\n\n text = text.replace(/\\n{3,}/g, \"\\n\\n\");\n\n // This protects the indentation required for markdown lists.\n text = text.replace(/^[ \\t]+(?![ \\t]*([\\*\\-\\+] |\\d+\\. ))/gm, (match) => {\n return match.replace(/ /g, \"\\u00A0\").replace(/\\t/g, \"\\u00A0\\u00A0\\u00A0\\u00A0\");\n });\n\n const parts = text.split(/(\\n{2,})/);\n text = parts.map((chunk) => {\n if (/^\\n+$/.test(chunk)) return chunk;\n if (/\\|.*\\|/.test(chunk) && /\\|[\\s:|-]+\\|/.test(chunk)) return chunk;\n if (/^#{1,6} /.test(chunk.trimStart())) return chunk;\n \n return chunk.replace(/\\n(?=[^\\n])/g, (_, offset) => {\n const remainingLine = chunk.slice(offset + 1);\n // If it is a bullet/number/table/heading, DO NOT collapse the newline\n const isStructural = /^[ \\t]*([#>|\\-*+]|\\d+\\.)/.test(remainingLine);\n return isStructural ? \"\\n\" : \" \";\n });\n }).join(\"\");\n\n // CRITICAL: Removed the duplicate `text = text.replace(/^[ \\t]+/gm...)` block from here!\n\n return text.trim();\n };\n\n const normalizePunctuationForMatch = (text: string) => text.replace(/[\\.,;:]/g, \" \");\n\n const collisionDependency = useMemo(() => deviationBadges.map((badge) => ({\n id: badge.id,\n connected: badge.isConnected,\n stackIndex: badge.stackIndex,\n size: badge.size,\n })), [deviationBadges]);\n\n const buildMarkOpen = (badgeId: string = \"\", color?: string) => {\n const colorAttr = color ? ` data-highlight-color=\"${color}\"` : \"\";\n const badgeAttr = badgeId ? ` data-badge-id=\"${badgeId}\"` : \"\";\n return `<mark${badgeAttr}${colorAttr}>`;\n };\n \n const buildMarkClose = () => `</mark>`;\n const buildSpanOpen = (badgeId: string) => `<span data-badge-id=\"${badgeId}\">`;\n const buildSpanClose = () => `</span>`;\n\n const wrapWithMark = (value: string, badgeId: string = \"\", highlightColor?: string) => {\n const match = value.match(/^(\\s*)([\\s\\S]*?)(\\s*)$/);\n if (!match) return value;\n const leading = match[1] ?? \"\";\n const body = match[2] ?? \"\";\n const trailing = match[3] ?? \"\";\n if (!body) return value;\n return leading + buildMarkOpen(badgeId, highlightColor) + body + buildMarkClose() + trailing;\n };\n\n const contentToRender = useMemo(() => {\n // 2. CRITICAL: Removed safeStringify here. Pure strings only to prevent encoded brackets.\n let normalizedContent = normalizeMarkdownText(content || \"\");\n\n const matchContent = suppressHighlightBg ? normalizePunctuationForMatch(normalizedContent) : normalizedContent;\n\n const badgeEntries = (deviationBadges || [])\n .map((badge: any) => ({\n id: badge?.id,\n highlight: normalizeMarkdownText(badge?.highlight || \"\"),\n highlightColor: badge?.style?.highlightBg || badge?.style?.badgeBg || highlightBg,\n }))\n .filter((entry: any) => entry.id && entry.highlight);\n\n const groupedBadges: Record<string, any[]> = {};\n badgeEntries.forEach((entry) => {\n if (!groupedBadges[entry.highlight]) groupedBadges[entry.highlight] = [];\n groupedBadges[entry.highlight].push(entry);\n });\n\n const createMarkedHighlight = (text: string, badgeId: string = \"\", highlightColor?: string, badges: any[] = []) => {\n let spanEmitted = false;\n\n const wrapSegment = (segment: string): string => {\n const mark = wrapWithMark(segment, badgeId, highlightColor);\n let wrapped = mark;\n \n if (!spanEmitted && badges.length > 0) {\n spanEmitted = true;\n let spansOpen = \"\";\n let spansClose = \"\";\n \n // Emit spans for ALL badges in the group, not just badges[0]\n badges.forEach((b) => {\n spansOpen += buildSpanOpen(b.id);\n spansClose = buildSpanClose() + spansClose;\n });\n \n wrapped = spansOpen + mark + spansClose;\n }\n \n return \"\\u200B\" + wrapped;\n };\n\n return text\n .split(/(\\n+)/)\n .map((part) => {\n if (/^\\n+$/.test(part)) return part;\n if (!part.trim()) return part;\n const strippedForSeparatorCheck = part.replace(/[|:\\-\\s]/g, \"\");\n if (strippedForSeparatorCheck === \"\" && part.includes(\"-\")) return part;\n if (part.includes(\"|\")) {\n return part.split(/(\\|)/).map((cell) => {\n if (cell === \"|\" || !cell.trim()) return cell;\n return wrapSegment(cell);\n }).join(\"\");\n }\n return wrapSegment(part);\n })\n .join(\"\");\n };\n\n const allMatches: HighlightMatch[] = [];\n\n Object.entries(groupedBadges).forEach(([highlight, badges]) => {\n let idx = normalizedContent.indexOf(highlight);\n let usedLooseMatch = false;\n\n if (idx === -1 && suppressHighlightBg) {\n const matchHighlight = normalizePunctuationForMatch(highlight);\n idx = matchContent.indexOf(matchHighlight);\n if (idx !== -1) usedLooseMatch = true;\n }\n\n if (idx === -1) return;\n\n let color = badges[0].highlightColor;\n for (let i = 1; i < badges.length; i++) {\n color = mixHexColors(color, badges[i].highlightColor || \"\");\n }\n\n allMatches.push({ highlight, start: idx, end: idx + highlight.length, badges, color, usedLooseMatch });\n });\n\n const badgeHighlightSet = new Set(Object.keys(groupedBadges));\n\n (highlights || []).forEach((highlight) => {\n if (!highlight) return;\n const cleanHighlight = normalizeMarkdownText(highlight);\n if (!cleanHighlight || badgeHighlightSet.has(cleanHighlight)) return;\n\n let idx = normalizedContent.indexOf(cleanHighlight);\n let usedLooseMatch = false;\n\n if (idx === -1 && suppressHighlightBg) {\n const matchHighlight = normalizePunctuationForMatch(cleanHighlight);\n idx = matchContent.indexOf(matchHighlight);\n if (idx !== -1) usedLooseMatch = true;\n }\n\n if (idx === -1) return;\n\n const before = normalizedContent.slice(0, idx);\n const openTags = (before.match(/</g) || []).length;\n const closeTags = (before.match(/>/g) || []).length;\n \n if (openTags === closeTags) {\n allMatches.push({\n highlight: cleanHighlight, start: idx, end: idx + cleanHighlight.length, badges: [], color: highlightBg || \"\", usedLooseMatch,\n } as unknown as HighlightMatch);\n }\n });\n\n allMatches.sort((a, b) => a.start - b.start || b.end - a.end);\n\n const claimedRanges: Array<{ start: number; end: number; matchIdx: number }> = [];\n const containedBy: Record<number, number> = {};\n\n allMatches.forEach((match, i) => {\n let start = match.start;\n let end = match.end;\n\n for (const claimed of claimedRanges) {\n const cStart = claimed.start;\n const cEnd = claimed.end;\n const fullyContained = start >= cStart && end <= cEnd;\n const partialOverlapRight = start < cEnd && end > cEnd && start >= cStart;\n const partialOverlapLeft = start < cStart && end > cStart && end <= cEnd;\n\n if (fullyContained) {\n match.orphaned = true;\n containedBy[i] = claimed.matchIdx;\n break;\n }\n if (partialOverlapRight) start = cEnd;\n if (partialOverlapLeft) end = cStart;\n }\n\n match.trimmedStart = start;\n match.trimmedEnd = end;\n\n if (!match.orphaned && start < end) {\n claimedRanges.push({ start, end, matchIdx: i });\n }\n });\n\n const childrenOf: Record<number, number[]> = {};\n Object.entries(containedBy).forEach(([childIdxStr, parentIdx]) => {\n const childIdx = Number(childIdxStr);\n if (!childrenOf[parentIdx]) childrenOf[parentIdx] = [];\n childrenOf[parentIdx].push(childIdx);\n });\n\n const injectChildren = (highlightText: string, parentAbsStart: number, childIndices: number[], parentColor: string) => {\n if (!childIndices.length) return highlightText;\n const children = childIndices.map((ci) => allMatches[ci]).sort((a, b) => a.start - b.start);\n let result = \"\";\n let cursor = 0;\n\n children.forEach((child) => {\n const relStart = Math.max(cursor, child.start - parentAbsStart);\n const relEnd = Math.max(relStart, child.end - parentAbsStart);\n if (relStart >= relEnd) return;\n\n const mixedColor = mixHexColors(parentColor, child.color || \"\");\n result += highlightText.slice(cursor, relStart);\n\n // Removed the redundant wrapperStart/wrapperEnd logic.\n // createMarkedHighlight now handles the spans natively and cleanly.\n result += createMarkedHighlight(\n highlightText.slice(relStart, relEnd), \n child.badges?.[0]?.id || \"\", \n mixedColor, \n child.badges || []\n );\n \n cursor = relEnd;\n });\n\n result += highlightText.slice(cursor);\n return result;\n };\n\n const finalMatches = allMatches.map((m, i) => ({ ...m, idx: i })).filter((m) => !m.orphaned).sort((a, b) => (b.trimmedStart ?? b.start) - (a.trimmedStart ?? a.start));\n\n finalMatches.forEach((match) => {\n const tStart = match.trimmedStart ?? match.start;\n const tEnd = match.trimmedEnd ?? match.end;\n if (tStart >= tEnd) return;\n\n const rawSlice = normalizedContent.slice(tStart, tEnd);\n const effectiveHighlight = match.usedLooseMatch || tStart !== match.start || tEnd !== match.end ? rawSlice : match.highlight;\n const withChildren = injectChildren(effectiveHighlight, match.start, childrenOf[match.idx!] || [], match.color);\n const markedText = createMarkedHighlight(withChildren, match.badges?.[0]?.id || \"\", match.color, match.badges || []);\n\n normalizedContent = normalizedContent.slice(0, tStart) + markedText + normalizedContent.slice(tEnd);\n });\n\n return normalizedContent;\n }, [content, deviationBadges, highlights, highlightBg, suppressHighlightBg]);\n\n const overlayContentToRender = useMemo(() => {\n if (!overlayContent) return \"\";\n return normalizeMarkdownText(overlayContent || \"\");\n }, [overlayContent]);\n\n const hasOverlay = !!overlayContent;\n\n const sharedContentSx = {\n \"& *\": { fontFamily: \"inherit\" },\n \"& code, & pre, & kbd, & samp\": {\n fontFamily: \"inherit !important\",\n fontSize: \"inherit\",\n background: \"none\",\n padding: 0,\n border: \"none\",\n whiteSpace: \"pre-wrap\",\n },\n \"& p, & li, & ul, & ol\": { position: \"static\", overflow: \"visible\", whiteSpace: \"pre-wrap\" },\n };\n\n const baseSx = { ...sxStyles, ...sharedContentSx, position: \"relative\", width: \"100%\", maxWidth: \"100%\", minWidth: 0, boxSizing: \"border-box\", overflow: \"visible\", whiteSpace: \"normal\", gridArea: \"1 / 1\", zIndex: 2, ...(hasOverlay ? {\n color: \"transparent\",\n userSelect: \"none\", \n pointerEvents: \"none\", \n \"& .deviation-badge\": { pointerEvents: \"auto\" },\n \"& table\": { visibility: \"hidden\", margin: \"0 !important\" },\n \"& th, & td\": { padding: \"0 !important\", border: \"none !important\", backgroundColor: \"transparent !important\" },\n \"& tr\": { border: \"none !important\" },\n \"& p:empty\": { display: \"none\" }\n } : {})\n };\n\n const overlaySx = { ...sxStyles, ...sharedContentSx, position: \"relative\", width: \"100%\", maxWidth: \"100%\", minWidth: 0, boxSizing: \"border-box\", overflow: \"visible\", whiteSpace: \"normal\", gridArea: \"1 / 1\", zIndex: 1, pointerEvents: \"auto\" };\n\n useLayoutEffect(() => {\n if (!containerRef.current) return;\n\n const resolveCollisions = () => {\n const badges = Array.from(\n containerRef.current!.querySelectorAll(\".deviation-badge\")\n ) as HTMLElement[];\n \n if (badges.length === 0) return;\n\n badges.forEach((b) => { b.style.setProperty(\"--badge-nudge\", \"0px\"); });\n\n const leftBadges = badges.filter((b) => b.dataset.side === \"left\");\n const rightBadges = badges.filter((b) => b.dataset.side !== \"left\");\n\n const containerRect = containerRef.current!.getBoundingClientRect();\n const maxBottom = containerRect.bottom - 4;\n const minTop = containerRect.top + 4;\n\n const applyPushDownAndClamp = (sideBadges: HTMLElement[]) => {\n if (sideBadges.length === 0) return;\n\n const metrics = sideBadges.map((el) => {\n const rect = el.getBoundingClientRect();\n return { \n el, \n naturalTop: rect.top, \n height: rect.height,\n currentTop: rect.top\n };\n });\n\n metrics.sort((a, b) => a.naturalTop - b.naturalTop);\n\n const MIN_GAP = 8;\n const clusters: typeof metrics[] = [];\n let currentCluster: typeof metrics = [];\n\n metrics.forEach((item) => {\n if (currentCluster.length === 0) {\n currentCluster.push(item);\n } else {\n const prev = currentCluster[currentCluster.length - 1];\n const prevBottom = prev.currentTop + prev.height;\n\n if (item.naturalTop < prevBottom + MIN_GAP) {\n item.currentTop = prevBottom + MIN_GAP;\n currentCluster.push(item);\n } else {\n clusters.push(currentCluster);\n currentCluster = [item];\n }\n }\n });\n if (currentCluster.length > 0) clusters.push(currentCluster);\n\n clusters.forEach((cluster) => {\n const lastItem = cluster[cluster.length - 1];\n const clusterBottom = lastItem.currentTop + lastItem.height;\n\n if (clusterBottom > maxBottom) {\n const overflowAmount = clusterBottom - maxBottom;\n\n const firstItem = cluster[0];\n const availableTopSpace = firstItem.currentTop - minTop;\n \n const actualShiftUp = Math.max(0, Math.min(overflowAmount, availableTopSpace));\n\n cluster.forEach((item) => {\n item.currentTop -= actualShiftUp;\n });\n }\n });\n\n clusters.flat().forEach((item) => {\n const nudge = item.currentTop - item.naturalTop;\n item.el.style.setProperty(\"--badge-nudge\", `${nudge}px`);\n });\n };\n\n applyPushDownAndClamp(leftBadges);\n applyPushDownAndClamp(rightBadges);\n };\n\n const raf1 = requestAnimationFrame(()=>{\n requestAnimationFrame(()=>{\n resolveCollisions();\n })\n });\n\n const resizeObserver = new ResizeObserver(() => {\n requestAnimationFrame(resolveCollisions);\n });\n resizeObserver.observe(containerRef.current);\n\n return () => {\n resizeObserver.disconnect();\n cancelAnimationFrame(raf1);\n }\n }, [contentToRender, collisionKey, collisionDependency]);\n\n return (\n <Box\n ref={containerRef}\n sx={{\n position: \"relative\",\n display: \"grid\",\n gridTemplateColumns: \"minmax(0, 1fr)\",\n width: \"100%\",\n maxWidth: \"100%\",\n minWidth: 0,\n }}\n >\n <Typography component=\"div\" sx={{ ...baseSx, padding: \"3px\" }}>\n <ReactMarkdown\n components={components}\n remarkPlugins={remarkPlugins}\n rehypePlugins={rehypePlugins}\n >\n {/* 4. Removed safeStringify wrapper! It encodes < to &lt; */}\n {contentToRender.replace(/#{3}/g, \"\")}\n </ReactMarkdown>\n </Typography>\n\n {hasOverlay && (\n <Typography component=\"div\" sx={overlaySx}>\n <ReactMarkdown\n components={components}\n remarkPlugins={remarkPlugins}\n rehypePlugins={rehypePlugins}\n >\n {overlayContentToRender}\n </ReactMarkdown>\n </Typography>\n )}\n </Box>\n );\n },\n areMarkdownPropsEqual\n);"],"names":["resolvePlugin","plugin","default","remarkPlugins","rehypePlugins","rehypeRaw","MemoizedMarkdown","React","memo","content","overlayContent","sxStyles","deviationBadges","highlights","maintainRelativeOrder","highlightBg","suppressHighlightBg","collisionKey","containerRef","useRef","hideHighlightBg","badgeMap","useMemo","reduce","acc","badge","id","dynamicPropsRef","current","mapChildrenDeep","children","transform","Children","map","child","isValidElement","newChildren","props","cloned","cloneElement","components","mark","badgeId","bg","style","badgeBg","shouldHideBg","jsx","backgroundColor","borderRadius","display","boxDecorationBreak","WebkitBoxDecorationBreak","backgroundClip","padding","color","span","stackIndex","translateY","jsxs","Box","component","sx","position","ref","badgeRef","className","side","fontStyle","zIndex","alignItems","fontSize","bgcolor","badgeText","DEFAULT_DEVIAION_COLOR","border","badgeBorder","fontWeight","whiteSpace","boxShadow","overflow","transition","right","left","isConnected","outline","outlineOffset","onClick","e","stopPropagation","onSummaryClick","px","py","cursor","label","isOrphan","pl","ml","borderLeft","score","EllipsisVertical","size","table","width","maxWidth","minWidth","boxSizing","contain","overflowX","overflowY","overscrollBehaviorX","WebkitOverflowScrolling","my","tableLayout","borderCollapse","thead","tbody","tr","borderBottom","th","textAlign","verticalAlign","wordBreak","overflowWrap","td","code","fontFamily","pre","updated","deleted","updatedChildren","el","textDecoration","changed","ul","mt","mb","listStyleType","ol","li","normalizeMarkdownText","rawText","text","replace","_","num","spaces","slice","marker","_indent","firstChar","match","parts","split","chunk","test","trimStart","offset","remainingLine","join","trim","normalizePunctuationForMatch","collisionDependency","connected","contentToRender","normalizedContent","matchContent","badgeEntries","highlight","highlightColor","filter","entry","groupedBadges","forEach","push","createMarkedHighlight","badges","spanEmitted","wrapSegment","segment","value","leading","body","trailing","buildMarkOpen","wrapWithMark","wrapped","length","spansOpen","spansClose","b","buildSpanOpen","part","includes","cell","allMatches","Object","entries","idx","indexOf","usedLooseMatch","matchHighlight","i","mixHexColors","start","end","badgeHighlightSet","Set","keys","cleanHighlight","has","before","sort","a","claimedRanges","containedBy","claimed","cStart","cEnd","partialOverlapRight","partialOverlapLeft","orphaned","matchIdx","trimmedStart","trimmedEnd","childrenOf","childIdxStr","parentIdx","childIdx","Number","m","tStart","tEnd","rawSlice","withChildren","highlightText","parentAbsStart","childIndices","parentColor","ci","result","relStart","Math","max","relEnd","mixedColor","injectChildren","markedText","overlayContentToRender","hasOverlay","sharedContentSx","background","baseSx","gridArea","userSelect","pointerEvents","visibility","margin","overlaySx","useLayoutEffect","resolveCollisions","Array","from","querySelectorAll","setProperty","leftBadges","dataset","rightBadges","containerRect","getBoundingClientRect","maxBottom","bottom","minTop","top","applyPushDownAndClamp","sideBadges","metrics","rect","naturalTop","height","currentTop","clusters","currentCluster","item","prev","prevBottom","cluster","lastItem","clusterBottom","overflowAmount","availableTopSpace","actualShiftUp","min","flat","nudge","raf1","requestAnimationFrame","resizeObserver","ResizeObserver","observe","disconnect","cancelAnimationFrame","gridTemplateColumns","Typography","ReactMarkdown","areMarkdownPropsEqual"],"mappings":"obAWA,MAAMA,EAAiBC,GAAkC,mBAAXA,EAAwBA,EAASA,GAAQC,SAAWD,EAC5FE,EAAgB,CAACH,OAAuB,UACxCI,EAAgB,CAACJ,EAAcK,EAAS,UAGjCC,EAAmBC,EAAM,QAAAC,KAAK,EACzCC,UACAC,iBACAC,WACAC,kBAAkB,GAClBC,aAAa,GACbC,yBAAwB,EACxBC,cACAC,uBAAsB,EACtBC,mBAYM,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B,QAAQ,QAAS,QAIrC0G,GACE1M,EAAAA,IAAAgQ,EAAAA,WAAA,CAAWlP,UAAU,MAAMC,GAAIoM,EAC9BpO,SAAAiB,EAAAA,IAACiQ,EAAA,QAAA,CACCxQ,aACArC,gBACAC,gBAEC0B,SAAA0N,UAObyD,EAAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react"),t=require("../CognitiveComparehelpers.js");exports.useAccordionState=function(i){var r=i.maintainRelativeOrder,c=i.proposedSections,o=i.existingSections,u=i.activeSideBySideSection,s=i.connectedSections,a=i.resetSideBySide,l=i.setConnectedSections,d=i.setConnectedLines,f=i.cachedConnectedPositions,v=i.svgContainerRef,S=i.isAnimatingRef,g=i.animationTimerRef,p=i.calculateLinesRef,x=i.sectionLeftRefs,_=i.sectionRightRefs,h=i.subSectionLeftRefs,A=i.subSectionRightRefs,E=n.useState({}),R=E[0],I=E[1],m=n.useState({}),y=m[0],T=m[1],b=function(e){S.current=!0,g.current&&clearTimeout(g.current),v.current&&(v.current.style.opacity="0"),g.current=setTimeout(function(){S.current=!1,p.current(),v.current&&(v.current.style.opacity="1")},e)},O=n.useCallback(function(n){if(n&&"string"==typeof n&&n.includes(t.DEVIATION_BADGE_SEPARATOR)){var i=n.split(t.DEVIATION_BADGE_SEPARATOR),c=i[2],o=i[3],u=c?Number(c.split("-")[0]):-1,s=o?Number(o.split("-")[0]):-1;I(function(n){var t,i=e.__assign({},n),c=!1;-1!==u&&(i[t=r?"left-".concat(u):String(u)]||(i[t]=!0,c=!0));-1!==s&&(i[t=r?"right-".concat(s):String(s)]||(i[t]=!0,c=!0));return c?i:n}),T(function(n){var t=e.__assign({},n),i=!1,r=function(e){if(e)for(var n=e.split("-"),r=n[0],c=1;c<n.length;c++)r+="-".concat(n[c]),t[r]||(t[r]=!0,i=!0)};return r(c),r(o),i?t:n})}},[r,I,T]);return{expandedSections:R,setExpandedSections:I,expandedSubSections:y,setExpandedSubSections:T,handleSubSectionToggle:function(n){var t,i,r=null===(t=h.current[n])||void 0===t?void 0:t.current,c=null===(i=A.current[n])||void 0===i?void 0:i.current;r&&(r.style.minHeight="0px"),c&&(c.style.minHeight="0px"),b(450),T(function(t){var i;return e.__assign(e.__assign({},t),((i={})[n]=!t[n],i))})},toggleSection:function(n,i){var v,S,g=null===(v=x.current[n])||void 0===v?void 0:v.current,p=null===(S=_.current[n])||void 0===S?void 0:S.current;g&&(g.style.minHeight="0px"),p&&(p.style.minHeight="0px"),b(650);var h=r?"".concat(i,"-").concat(n):String(n);if(!!R[h]){var A=new Set([String(n)]);if(r)if("left"===i){var E=c[n];((null==E?void 0:E.refIndexes)||[]).forEach(function(e){var n=o.findIndex(function(n){return n.selfIndex===e});-1!==n&&A.add(String(n))})}else{var m=o[n];c.forEach(function(e,n){var t;(null===(t=e.refIndexes)||void 0===t?void 0:t.includes(null==m?void 0:m.selfIndex))&&A.add(String(n))})}var y=function(e){var n,i;if(null===e)return!1;var r=String(e),c=r.split("-")[0];if(A.has(c))return!0;if(r.includes(t.DEVIATION_BADGE_SEPARATOR)){var o=r.split(t.DEVIATION_BADGE_SEPARATOR),u=null===(n=o[2])||void 0===n?void 0:n.split("-")[0],s=null===(i=o[3])||void 0===i?void 0:i.split("-")[0];if(u&&A.has(u))return!0;if(s&&A.has(s))return!0}return!1},T=y(u),O=Array.from(s).some(function(e){return y(e)});(T||O)&&(a(),l(new Set),d([]),f.current=[])}I(function(t){var u=e.__assign({},t),s=!t[h];if(!r)return u[String(n)]=s,u;if(u[h]=s,"left"===i){((null==(a=c[n])?void 0:a.refIndexes)||[]).forEach(function(e){var n=o.findIndex(function(n){return n.selfIndex===e});-1!==n&&(u["right-".concat(n)]=s)})}else{var a,l=null==(a=o[n])?void 0:a.selfIndex;c.forEach(function(e,n){var t;(null===(t=e.refIndexes)||void 0===t?void 0:t.includes(l))&&(u["left-".concat(n)]=s)})}return u})},forceExpandCrossWiredSections:O}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../CognitiveComparehelpers.js");exports.useAccordionState=({maintainRelativeOrder:n,proposedSections:r,existingSections:s,activeSideBySideSection:i,connectedSections:c,resetSideBySide:o,setConnectedSections:u,setConnectedLines:f,cachedConnectedPositions:l,svgContainerRef:d,isAnimatingRef:a,animationTimerRef:S,calculateLinesRef:p,sectionLeftRefs:g,sectionRightRefs:x,subSectionLeftRefs:h,subSectionRightRefs:A})=>{const[E,R]=e.useState({}),[I,m]=e.useState({}),y=e=>{a.current=!0,S.current&&clearTimeout(S.current),d.current&&(d.current.style.opacity="0"),S.current=setTimeout(()=>{a.current=!1,p.current(),d.current&&(d.current.style.opacity="1")},e)},T=e.useCallback(e=>{if(!e||"string"!=typeof e||!e.includes(t.DEVIATION_BADGE_SEPARATOR))return;const r=e.split(t.DEVIATION_BADGE_SEPARATOR),s=r[2],i=r[3],c=s?Number(s.split("-")[0]):-1,o=i?Number(i.split("-")[0]):-1;R(e=>{const t={...e};let r=!1;if(-1!==c){const e=n?`left-${c}`:String(c);t[e]||(t[e]=!0,r=!0)}if(-1!==o){const e=n?`right-${o}`:String(o);t[e]||(t[e]=!0,r=!0)}return r?t:e}),m(e=>{const t={...e};let n=!1;const r=e=>{if(!e)return;const r=e.split("-");let s=r[0];for(let e=1;e<r.length;e++)s+=`-${r[e]}`,t[s]||(t[s]=!0,n=!0)};return r(s),r(i),n?t:e})},[n,R,m]);return{expandedSections:E,setExpandedSections:R,expandedSubSections:I,setExpandedSubSections:m,handleSubSectionToggle:e=>{const t=h.current[e]?.current,n=A.current[e]?.current;t&&(t.style.minHeight="0px"),n&&(n.style.minHeight="0px"),y(450),m(t=>({...t,[e]:!t[e]}))},toggleSection:(e,d)=>{const a=g.current[e]?.current,S=x.current[e]?.current;a&&(a.style.minHeight="0px"),S&&(S.style.minHeight="0px"),y(650);const p=n?`${d}-${e}`:String(e);if(!!E[p]){const a=new Set([String(e)]);if(n)if("left"===d){const t=r[e];(t?.refIndexes||[]).forEach(e=>{const t=s.findIndex(t=>t.selfIndex===e);-1!==t&&a.add(String(t))})}else{const t=s[e];r.forEach((e,n)=>{e.refIndexes?.includes(t?.selfIndex)&&a.add(String(n))})}const S=e=>{if(null===e)return!1;const n=String(e),r=n.split("-")[0];if(a.has(r))return!0;if(n.includes(t.DEVIATION_BADGE_SEPARATOR)){const e=n.split(t.DEVIATION_BADGE_SEPARATOR),r=e[2]?.split("-")[0],s=e[3]?.split("-")[0];if(r&&a.has(r))return!0;if(s&&a.has(s))return!0}return!1},p=S(i),g=Array.from(c).some(e=>S(e));(p||g)&&(o(),u(new Set),f([]),l.current=[])}R(t=>{const i={...t},c=!t[p];if(!n)return i[String(e)]=c,i;if(i[p]=c,"left"===d){const t=r[e];(t?.refIndexes||[]).forEach(e=>{const t=s.findIndex(t=>t.selfIndex===e);-1!==t&&(i[`right-${t}`]=c)})}else{const t=s[e],n=t?.selfIndex;r.forEach((e,t)=>{e.refIndexes?.includes(n)&&(i[`left-${t}`]=c)})}return i})},forceExpandCrossWiredSections:T}};
2
2
  //# sourceMappingURL=useAccordionState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAccordionState.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"useAccordionState.js","sources":["../../../../../src/features/CognitiveCompare/hooks/useAccordionState.ts"],"sourcesContent":["import React, { useCallback, useState } from \"react\";\nimport { SectionBlock } from \"../CognitiveCompareTypes\";\nimport { DEVIATION_BADGE_SEPARATOR } from \"../CognitiveComparehelpers\";\n\ntype AccordionStateParams = {\n maintainRelativeOrder: boolean;\n proposedSections: SectionBlock[];\n existingSections: SectionBlock[];\n activeSideBySideSection: number | string | null;\n connectedSections: Set<number | string>;\n resetSideBySide: () => void;\n setConnectedSections: React.Dispatch<React.SetStateAction<Set<number | string>>>;\n setConnectedLines: React.Dispatch<React.SetStateAction<Record<string, any>[]>>;\n cachedConnectedPositions: React.MutableRefObject<any[]>;\n svgContainerRef: React.MutableRefObject<SVGSVGElement | null>;\n isAnimatingRef: React.MutableRefObject<boolean>;\n animationTimerRef: React.MutableRefObject<ReturnType<typeof setTimeout> | null>;\n calculateLinesRef: React.MutableRefObject<() => void>;\n sectionLeftRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;\n sectionRightRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;\n subSectionLeftRefs: React.MutableRefObject<Record<string, React.RefObject<HTMLDivElement>>>;\n subSectionRightRefs: React.MutableRefObject<Record<string, React.RefObject<HTMLDivElement>>>;\n};\n\nexport const useAccordionState = ({\n maintainRelativeOrder,\n proposedSections,\n existingSections,\n activeSideBySideSection,\n connectedSections,\n resetSideBySide,\n setConnectedSections,\n setConnectedLines,\n cachedConnectedPositions,\n svgContainerRef,\n isAnimatingRef,\n animationTimerRef,\n calculateLinesRef,\n sectionLeftRefs,\n sectionRightRefs,\n subSectionLeftRefs,\n subSectionRightRefs,\n}: AccordionStateParams) => {\n const [expandedSections, setExpandedSections] = useState<Record<string, boolean>>(\n {},\n );\n const [expandedSubSections, setExpandedSubSections] = useState<\n Record<string, boolean>\n >({});\n\n const clearConnectedState = () => {\n resetSideBySide();\n setConnectedSections(new Set());\n setConnectedLines([]);\n cachedConnectedPositions.current = [];\n };\n\n const queueLayoutSync = (delay: number) => {\n isAnimatingRef.current = true;\n if (animationTimerRef.current) {\n clearTimeout(animationTimerRef.current);\n }\n if (svgContainerRef.current) {\n svgContainerRef.current.style.opacity = \"0\";\n }\n\n animationTimerRef.current = setTimeout(() => {\n isAnimatingRef.current = false;\n calculateLinesRef.current();\n if (svgContainerRef.current) {\n svgContainerRef.current.style.opacity = \"1\";\n }\n }, delay);\n };\n // --- ADD THIS HELPER FUNCTION ---\n const forceExpandCrossWiredSections = useCallback((actionId: string | number | null) => {\n if (!actionId || typeof actionId !== \"string\" || !actionId.includes(DEVIATION_BADGE_SEPARATOR)) return;\n\n const parts = actionId.split(DEVIATION_BADGE_SEPARATOR);\n const leftKeyPath = parts[2];\n const rightKeyPath = parts[3];\n\n const leftRootIdx = leftKeyPath ? Number(leftKeyPath.split(\"-\")[0]) : -1;\n const rightRootIdx = rightKeyPath ? Number(rightKeyPath.split(\"-\")[0]) : -1;\n\n // 1. Expand Root Sections\n setExpandedSections((prev: any) => {\n const next = { ...prev };\n let changed = false;\n if (leftRootIdx !== -1) {\n const key = maintainRelativeOrder ? `left-${leftRootIdx}` : String(leftRootIdx);\n if (!next[key]) { next[key] = true; changed = true; }\n }\n if (rightRootIdx !== -1) {\n const key = maintainRelativeOrder ? `right-${rightRootIdx}` : String(rightRootIdx);\n if (!next[key]) { next[key] = true; changed = true; }\n }\n return changed ? next : prev;\n });\n\n // 2. Expand Nested Subsections\n setExpandedSubSections((prev: any) => {\n const next = { ...prev };\n let changed = false;\n const expandPath = (path: string) => {\n if (!path) return;\n const pParts = path.split(\"-\");\n let current = pParts[0];\n for (let i = 1; i < pParts.length; i++) {\n current += `-${pParts[i]}`;\n if (!next[current]) { next[current] = true; changed = true; }\n }\n };\n expandPath(leftKeyPath);\n expandPath(rightKeyPath);\n return changed ? next : prev;\n });\n }, [maintainRelativeOrder, setExpandedSections, setExpandedSubSections]);\n const handleSubSectionToggle = (keyPath: string) => {\n const leftEl = subSectionLeftRefs.current[keyPath]?.current;\n const rightEl = subSectionRightRefs.current[keyPath]?.current;\n if (leftEl) leftEl.style.minHeight = \"0px\";\n if (rightEl) rightEl.style.minHeight = \"0px\";\n\n queueLayoutSync(450);\n setExpandedSubSections((prev) => ({ ...prev, [keyPath]: !prev[keyPath] }));\n };\n\n const toggleSection = (idx: number, columnKey: \"left\" | \"right\") => {\n const leftEl = sectionLeftRefs.current[idx]?.current;\n const rightEl = sectionRightRefs.current[idx]?.current;\n if (leftEl) leftEl.style.minHeight = \"0px\";\n if (rightEl) rightEl.style.minHeight = \"0px\";\n\n queueLayoutSync(650);\n\n const key = maintainRelativeOrder ? `${columnKey}-${idx}` : String(idx);\n const isCurrentlyExpanded = !!expandedSections[key];\n\n if (isCurrentlyExpanded) {\n const collapsingIndexes = new Set<string>([String(idx)]);\n\n if (maintainRelativeOrder) {\n if (columnKey === \"left\") {\n const sec = proposedSections[idx] as any;\n (sec?.refIndexes || []).forEach((rhsSelfIdx: number) => {\n const rhsArrayIdx = existingSections.findIndex(\n (s: any) => s.selfIndex === rhsSelfIdx,\n );\n if (rhsArrayIdx !== -1) collapsingIndexes.add(String(rhsArrayIdx));\n });\n } else {\n const sec = existingSections[idx] as any;\n proposedSections.forEach((s: any, lhsArrayIdx: number) => {\n if (s.refIndexes?.includes(sec?.selfIndex)) {\n collapsingIndexes.add(String(lhsArrayIdx));\n }\n });\n }\n }\n\n const isRelatedToCollapse = (id: string | number | null) => {\n if (id === null) return false;\n const idStr = String(id);\n const rootIndex = idStr.split(\"-\")[0];\n if (collapsingIndexes.has(rootIndex)) return true;\n\n if (idStr.includes(DEVIATION_BADGE_SEPARATOR)) {\n const parts = idStr.split(DEVIATION_BADGE_SEPARATOR);\n const leftRoot = parts[2]?.split(\"-\")[0];\n const rightRoot = parts[3]?.split(\"-\")[0];\n if (leftRoot && collapsingIndexes.has(leftRoot)) return true;\n if (rightRoot && collapsingIndexes.has(rightRoot)) return true;\n }\n\n return false;\n };\n\n const isTargetActive = isRelatedToCollapse(activeSideBySideSection);\n const hasChildConnection = Array.from(connectedSections).some((id) =>\n isRelatedToCollapse(id),\n );\n\n if (isTargetActive || hasChildConnection) {\n clearConnectedState();\n }\n }\n\n setExpandedSections((prev) => {\n const next = { ...prev };\n const isExpanding = !prev[key];\n\n if (!maintainRelativeOrder) {\n next[String(idx)] = isExpanding;\n return next;\n }\n\n next[key] = isExpanding;\n if (columnKey === \"left\") {\n const sec = proposedSections[idx] as any;\n (sec?.refIndexes || []).forEach((rhsSelfIdx: number) => {\n const rhsArrayIdx = existingSections.findIndex(\n (s: any) => (s as any).selfIndex === rhsSelfIdx,\n );\n if (rhsArrayIdx !== -1) next[`right-${rhsArrayIdx}`] = isExpanding;\n });\n } else {\n const sec = existingSections[idx] as any;\n const selfIdx = sec?.selfIndex;\n proposedSections.forEach((s: any, lhsArrayIdx: number) => {\n if (s.refIndexes?.includes(selfIdx)) next[`left-${lhsArrayIdx}`] = isExpanding;\n });\n }\n return next;\n });\n };\n\n return {\n expandedSections,\n setExpandedSections,\n expandedSubSections,\n setExpandedSubSections,\n handleSubSectionToggle,\n toggleSection,\n forceExpandCrossWiredSections,\n };\n};\n"],"names":["maintainRelativeOrder","proposedSections","existingSections","activeSideBySideSection","connectedSections","resetSideBySide","setConnectedSections","setConnectedLines","cachedConnectedPositions","svgContainerRef","isAnimatingRef","animationTimerRef","calculateLinesRef","sectionLeftRefs","sectionRightRefs","subSectionLeftRefs","subSectionRightRefs","expandedSections","setExpandedSections","useState","expandedSubSections","setExpandedSubSections","queueLayoutSync","delay","current","clearTimeout","style","opacity","setTimeout","forceExpandCrossWiredSections","useCallback","actionId","includes","DEVIATION_BADGE_SEPARATOR","parts","split","leftKeyPath","rightKeyPath","leftRootIdx","Number","rightRootIdx","prev","next","changed","key","String","expandPath","path","pParts","i","length","handleSubSectionToggle","keyPath","leftEl","rightEl","minHeight","toggleSection","idx","columnKey","collapsingIndexes","Set","sec","refIndexes","forEach","rhsSelfIdx","rhsArrayIdx","findIndex","s","selfIndex","add","lhsArrayIdx","isRelatedToCollapse","id","idStr","rootIndex","has","leftRoot","rightRoot","isTargetActive","hasChildConnection","Array","from","some","isExpanding","selfIdx"],"mappings":"gKAwBiC,EAC/BA,wBACAC,mBACAC,mBACAC,0BACAC,oBACAC,kBACAC,uBACAC,oBACAC,2BACAC,kBACAC,iBACAC,oBACAC,oBACAC,kBACAC,mBACAC,qBACAC,0BAEM,MAACC,EAAkBC,GAAuBC,EAAAA,SAC9C,CAAC,IAEIC,EAAqBC,GAA0BF,EAAAA,SAEpD,CAAE,GASEG,EAAmBC,IACvBb,EAAec,SAAU,EACrBb,EAAkBa,SACpBC,aAAad,EAAkBa,SAE7Bf,EA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F,EAAyBA,2BAC7C2C,EAAW1C,EAAM,IAAIC,MAAM,KAAK,GAChC0C,EAAY3C,EAAM,IAAIC,MAAM,KAAK,GACvC,GAAIyC,GAAYjB,EAAkBgB,IAAIC,GAAkB,OAAA,EACxD,GAAIC,GAAalB,EAAkBgB,IAAIE,GAAmB,OAAA,CAC5D,CAEO,OAAA,GAGHC,EAAiBP,EAAoBpE,GACrC4E,EAAqBC,MAAMC,KAAK7E,GAAmB8E,KAAMV,GAC7DD,EAAoBC,KAGlBM,GAAkBC,KApIR1E,IACKC,EAAA,IAAIsD,KACzBrD,EAAkB,IAClBC,EAAyBgB,QAAU,GAoInC,CAEAN,EAAqBuB,IACb,MAAAC,EAAO,IAAKD,GACZ0C,GAAe1C,EAAKG,GAE1B,IAAK5C,EAEI,OADF0C,EAAAG,OAAOY,IAAQ0B,EACbzC,EAIT,GADAA,EAAKE,GAAOuC,EACM,SAAdzB,EAAsB,CAClB,MAAAG,EAAM5D,EAAiBwD,IAC5BI,GAAKC,YAAc,IAAIC,QAASC,IAC/B,MAAMC,EAAc/D,EAAiBgE,UAClCC,GAAYA,EAAUC,YAAcJ,IAEf,IAApBC,IAAoBvB,EAAK,SAASuB,KAAiBkB,IACxD,KACI,CACC,MAAAtB,EAAM3D,EAAiBuD,GACvB2B,EAAUvB,GAAKO,UACJnE,EAAA8D,QAAQ,CAACI,EAAQG,KAC5BH,EAAEL,YAAY9B,SAASoD,KAAe1C,EAAA,QAAQ4B,KAAiBa,IAEvE,CACO,OAAAzC,KAWTb"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react"),t=require("../CognitiveComparehelpers.js"),i=require("../utils/buildComparisonRows.js"),o={id:"",title:"",similarity:0,sections:[]};exports.useCognitiveTreeData=function(r,a,s,d,l,u){var v,c;void 0===l&&(l=!0);var f="string"==typeof s?s:JSON.stringify(s||{}),p=Boolean(u&&(u.learnings_data||(null===(c=null===(v=u.data)||void 0===v?void 0:v.artifactData)||void 0===c?void 0:c.userStorySnapshot))),_=e.useMemo(function(){if(!r||0===Object.keys(r).length)return{activeProposed:{},activeVariants:[],comparisonRows:[],parseError:"Tree data is required"};var e=JSON.parse(f);try{var o=r.nodes||r,s=[],d=[],v=[],c=r.base_root_id,_=r.input_index_map||{0:"left",1:"right"},I=r[c]||o[c];if(!I||!1===I.display_node)return{activeProposed:{title:"No Data",sections:[]},activeVariants:[],comparisonRows:[],parseError:null};var g=r.content_mapping||{},h=function(n){return r[n]||o[n]},m=function(e,i,o){if(!e||"object"!=typeof e)return e||null;if(e.deviations)return e;if(l)return e;var r=Object.keys(e).filter(function(n){return/^\d+$/.test(n)});if(!r.length)return e;var a=r.sort(function(n,e){return Number(n)-Number(e)}),s={},d={},u=null;return a.forEach(function(n){var r,a,l,v,c,f,p=e[n];if(p&&"object"==typeof p){u||(u=p);var I=!(null==p?void 0:p.status)||"pending"===p.status,g=(null==p?void 0:p.deviation_highlight)||(null===(a=null==p?void 0:p.web_search_answer)||void 0===a?void 0:a.deviation_highlight),h=function(n){var e,t=(null===(e=null==p?void 0:p.cognitive_decisioning)||void 0===e?void 0:e.citations)||(null==p?void 0:p.citations)||{};return Object.values(t).map(function(e){var t;return null===(t=null==e?void 0:e[n])||void 0===t?void 0:t.highlighted_text}).filter(function(n){return"string"==typeof n&&n.trim().length>0})},m=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var i=0,o=n;i<o.length;i++){var r=o[i];if(Array.isArray(r)&&r.some(function(n){return!t.isMissingStr(n)}))return r}return[]},y=I?m((null===(l=null==p?void 0:p.deviation_highlights)||void 0===l?void 0:l[i])||(null===(v=null==p?void 0:p.deviation_highlights)||void 0===v?void 0:v[_[0]]),"string"==typeof g?[g]:[],h(i),h(_[0])):[],b=I?m((null===(c=null==p?void 0:p.deviation_highlights)||void 0===c?void 0:c[o])||(null===(f=null==p?void 0:p.deviation_highlights)||void 0===f?void 0:f[_[1]]),h(o),h(_[1])):[];s[n]=((r={})[_[0]]=y[0]||"",r[_[1]]=b[0]||"",r.deviation_summary=(null==p?void 0:p.deviation_summary)||"",r.deviation_title=null==p?void 0:p.deviation_title,r.deviation_impact=null==p?void 0:p.deviation_impact,r.deviation_explanation=null==p?void 0:p.deviation_explanation,r.evaluation_outputs=null==p?void 0:p.evaluation_outputs,r.cognitive_decisioning=null==p?void 0:p.cognitive_decisioning,r.deviation_highlights=null==p?void 0:p.deviation_highlights,r),d[n]=p}}),n.__assign(n.__assign({},e),{deviation_title:(null==u?void 0:u.deviation_title)||(null==e?void 0:e.deviation_title),deviation_impact:(null==u?void 0:u.deviation_impact)||(null==e?void 0:e.deviation_impact),deviation_summary:(null==u?void 0:u.deviation_summary)||(null==e?void 0:e.deviation_summary),deviation_explanation:(null==u?void 0:u.deviation_explanation)||(null==e?void 0:e.deviation_explanation),evaluation_outputs:(null==u?void 0:u.evaluation_outputs)||(null==e?void 0:e.evaluation_outputs),cognitive_decisioning:(null==u?void 0:u.cognitive_decisioning)||(null==e?void 0:e.cognitive_decisioning),deviations:s,deviation_entries:d})},y=function(n){var e=new Map,t=function(n){n.forEach(function(n){var i;n.id&&e.set(n.id,n),(null===(i=n.subsections)||void 0===i?void 0:i.length)&&t(n.subsections)})};t(n);var i=function(n,t){for(var o,r=[],a=function(n){var a=n.ref_parent_section_node_id;if(a&&e.has(a)&&a!==(null==t?void 0:t.id)){var s=e.get(a);s.subsections||(s.subsections=[]),s.subsections.some(function(e){return e.id===n.id})||s.subsections.push(n)}else(null===(o=n.subsections)||void 0===o?void 0:o.length)&&(n.subsections=i(n.subsections,n)),r.push(n)},s=0,d=n;s<d.length;s++){a(d[s])}return r},o=i(n),r=function(n){n.forEach(function(n){n.subsections&&n.subsections.length>0&&(n.subsections.sort(function(n,e){return n.selfIndex<0&&e.selfIndex>=0?1:n.selfIndex>=0&&e.selfIndex<0?-1:(n.selfIndex||0)-(e.selfIndex||0)}),r(n.subsections))})};return r(o),o},b=function(n){var e=n.comparison_inputs?Object.keys(n.comparison_inputs):[],t=_[0],i=_[1];return e.length>0&&(t=e.includes(_[0])?_[0]:e[0],i=e.includes(_[1])?_[1]:e.length>1?e[1]:e[0]),{nodeLeftId:t,nodeRightId:i}},x=function(e,i,o,r){var a=i.attributes||{},s=i.data||{},d=!1!==a.display_title,l=!1!==a.display_content,u=d?t.safeStringify(s.title||""):"",v=l?t.safeStringify(s.content||""):"",c=l?t.safeStringify(s.change_history||""):"",f=void 0!==a.display_index&&null!==a.display_index?Number(a.display_index):-1,p=function(n){return(null==n?void 0:n.entity_id)||(null==n?void 0:n.ref_parent_section_node_id)||(null==n?void 0:n.parent_entity_id)||null}(a),_=!(!u.trim()&&!v.trim());return n.__assign(n.__assign({id:"".concat(e,"::").concat(i.contentId),nodeId:e,contentId:i.contentId,parentContentId:p,title:u,content:v,change_history:c,displayTitle:d,displayContent:l,subsections:[]},_?r:{score:void 0,relation:"not_defined"}),{evaluationResult:o,evaluationResults:o?[o]:[],selfIndex:f,refIndexes:[],refContentIds:[],ref_parent_section_node_id:p})},R=function(e,t){e.refIndexes=Array.from(new Set(n.__spreadArray(n.__spreadArray([],e.refIndexes||[],!0),t.refIndexes||[],!0))),e.refContentIds=Array.from(new Set(n.__spreadArray(n.__spreadArray([],e.refContentIds||[],!0),t.refContentIds||[],!0)));var i=new Set((e.subsections||[]).map(function(n){return n.id||n.contentId||n.nodeId}));(t.subsections||[]).forEach(function(t){var o=t.id||t.contentId||t.nodeId;i.has(o)||(e.subsections=n.__spreadArray(n.__spreadArray([],e.subsections||[],!0),[t],!1),i.add(o))});var o=n.__spreadArray(n.__spreadArray([],e.evaluationResults||(e.evaluationResult?[e.evaluationResult]:[]),!0),t.evaluationResults||(t.evaluationResult?[t.evaluationResult]:[]),!0).filter(Boolean),r=new Set;return e.evaluationResults=o.filter(function(n){var e=(null==n?void 0:n.nodeId)||JSON.stringify(Object.keys((null==n?void 0:n.deviations)||n||{}));return!r.has(e)&&(r.add(e),!0)}),!e.evaluationResult&&t.evaluationResult&&(e.evaluationResult=t.evaluationResult),!e.cognitiveData&&t.cognitiveData&&(e.cognitiveData=t.cognitiveData),e},C=function(n,e){return n.selfIndex<0&&e.selfIndex>=0?1:n.selfIndex>=0&&e.selfIndex<0?-1:n.selfIndex-e.selfIndex},S=function(i,o){var r,a=h(i);if(!a||!1===a.display_node)return[];if(p&&"1"===o)return[];var s=b(a),d=s.nodeLeftId,l=s.nodeRightId,u=t.getRationale(a),v=(null===(r=null==e?void 0:e[i])||void 0===r?void 0:r.evaluation_result)||a.evaluation_result||null,c=m(v,d,l),f=c&&"object"==typeof c?n.__assign(n.__assign({},c),{nodeId:i}):c,I=t.resolveComparisonInputItems(a,o,_,g).map(function(n){return x(i,n,f,u)});if(a.next){var y=Object.values(a.next).flatMap(function(n){return S(n,o)});I.forEach(function(n){var e=y.filter(function(e){return!e.parentContentId||e.parentContentId===n.contentId||e.parentContentId===n.parentContentId});n.subsections=e.length?e:y})}return I};if(a){var E=function(i,o){var r;void 0===o&&(o=0);var a=[],s=[];if(!i)return{refSections:a,baseSections:s};var d={},l={},u=-1,v=-1,c=function(a){var s=i[a],c=h(s);if(!c||!1===c.display_node)return"continue";var f=b(c),I=f.nodeLeftId,y=f.nodeRightId,C=t.getRationale(c),S=(null===(r=null==e?void 0:e[s])||void 0===r?void 0:r.evaluation_result)||c.evaluation_result||null,O=m(S,I,y),j=O&&"object"==typeof O?n.__assign(n.__assign({},O),{nodeId:s}):O,N=E(c.next,o+1),w=N.refSections,A=N.baseSections,D=t.resolveComparisonInputItems(c,"0",_,g).map(function(n){var e=x(s,n,j,C);return-1===e.selfIndex&&(e.selfIndex=v--),e}),k=[];if(!p){var M=t.resolveComparisonInputItems(c,"1",_,g);k=M.map(function(n){var e=x(s,n,j,C);return-1===e.selfIndex&&(e.selfIndex=u--),e})}D.forEach(function(n){k.forEach(function(e){var t,i,o,r,a,s,d,l;Number(e.selfIndex)>=0&&Number(n.selfIndex)>=0&&((null===(t=e.refIndexes)||void 0===t?void 0:t.includes(Number(n.selfIndex)))||null===(i=e.refIndexes)||void 0===i||i.push(Number(n.selfIndex)),(null===(o=n.refIndexes)||void 0===o?void 0:o.includes(Number(e.selfIndex)))||null===(r=n.refIndexes)||void 0===r||r.push(Number(e.selfIndex))),n.contentId&&!(null===(a=e.refContentIds)||void 0===a?void 0:a.includes(n.contentId))&&(null===(s=e.refContentIds)||void 0===s||s.push(n.contentId)),e.contentId&&!(null===(d=n.refContentIds)||void 0===d?void 0:d.includes(e.contentId))&&(null===(l=n.refContentIds)||void 0===l||l.push(e.contentId))})}),k.forEach(function(n){var e=w.filter(function(e){var t;return!e.parentContentId||e.parentContentId===n.contentId||e.parentContentId===n.parentContentId||(null===(t=n.refContentIds)||void 0===t?void 0:t.includes(e.parentContentId))});e.length>0&&(n.subsections=e);var t=0===o?String(n.selfIndex):"".concat(n.selfIndex,"_").concat(n.contentId||s);d[t]=d[t]?R(d[t],n):n}),D.forEach(function(n){var e=A.filter(function(e){var t;return!e.parentContentId||e.parentContentId===n.contentId||e.parentContentId===n.parentContentId||(null===(t=n.refContentIds)||void 0===t?void 0:t.includes(e.parentContentId))});e.length>0&&(n.subsections=e);var t=0===o?String(n.selfIndex):"".concat(n.selfIndex,"_").concat(n.contentId||s);l[t]=l[t]?R(l[t],n):n})};for(var f in i)c(f);return a=Object.values(d),s=Object.values(l),a.sort(C),s.sort(C),{refSections:a,baseSections:s}},O=E(I.next),j=O.refSections,N=O.baseSections;p||(d=y(j)),s=N}else I.next&&Object.values(I.next).forEach(function(n){var e=h(n);if(e&&!1!==e.display_node){var t=S(n,"0");if(p)s.push.apply(s,t);else{var o=y(S(n,"1"));v.push.apply(v,i.buildComparisonRows(n,t,o))}}}),p||(s=v.map(function(n){return n.left}),d=v.map(function(n){return n.right}));var w=t.getSideData(I,"0",_,g),A=t.getSideData(I,"1",_,g),D={title:w.title||"Uploaded Contract",description:I.decision_scope_description||"",sections:s},k={id:"tree-variant-1",title:p?function(){var n,e;if((null==u?void 0:u.learnings_data)&&Object.keys(u.learnings_data).length>0){var t=Object.keys(u.learnings_data)[0];return(null===(n=u.learnings_data[t])||void 0===n?void 0:n.title)||"Rulebook Guidelines"}return(null===(e=null==u?void 0:u.data)||void 0===e?void 0:e.artifactTitle)||"Rulebook Guidelines"}():A.title||"Reference Template",similarity:0,sections:d,analysis:{rule_difference_comparison:{summary:{overall_score:0,overall_summary:I.decision_scope_description||""},fields:{}}}};return{activeProposed:D,activeVariants:[k],comparisonRows:v,parseError:null}}catch(n){return console.error("Data Transformation Error: ",n),{activeProposed:{},activeVariants:[],comparisonRows:[],parseError:n instanceof Error?n.message:"Unknown Parsing Error"}}},[r,a,f,l,u]),I=_.activeProposed,g=_.activeVariants,h=_.comparisonRows,m=_.parseError,y=(null==g?void 0:g[0])||o,b=e.useMemo(function(){return(null==I?void 0:I.sections)||[]},[null==I?void 0:I.sections]),x=e.useMemo(function(){return y.sections||[]},[y.sections]),R=b.length>0||x.length>0,C=e.useMemo(function(){return d.fields.filter(function(n){var e=n.key;return(!R||"description"!==e)&&(t.hasValue(null==I?void 0:I[e])||t.hasValue(y[e]))})},[I,y,R,d.fields]),S=e.useMemo(function(){var n,e,i={},o={},s={},d=0,l=null===(n=null==r?void 0:r.input_index_map)||void 0===n?void 0:n[0],u=null===(e=null==r?void 0:r.input_index_map)||void 0===e?void 0:e[1],v=function(n,e){if(!a){var t="left"===e?b.indexOf(n):x.indexOf(n);return{rootKey:"".concat(e,":").concat(t),parentNum:t+1}}if("left"===e){var i=n.selfIndex,o=void 0!==i&&i>=0?i+1:b.indexOf(n)+1;return{rootKey:"left-root:".concat(n.id),parentNum:o}}var r=n.selfIndex,s=b.find(function(n){var e;return null===(e=n.refIndexes)||void 0===e?void 0:e.includes(r)});if(s){var d=s.selfIndex,l=void 0!==d&&d>=0?d+1:b.indexOf(s)+1;return{rootKey:"left-root:".concat(s.id),parentNum:l}}var u=void 0!==r&&r>=0?r+1:x.indexOf(n)+1;return{rootKey:"right-orphan-root:".concat(n.id),parentNum:u}},c=function(n,e){if(n&&e)return n.find(function(n){return n.id===e.id||n.nodeId&&n.nodeId===e.nodeId||n.contentId&&n.contentId===e.contentId})||void 0},f=function(n,e,r,a,v,p,_){if(e&&function(n,e,i){var r;((null===(r=null==n?void 0:n.evaluationResults)||void 0===r?void 0:r.length)?n.evaluationResults:(null==n?void 0:n.evaluationResult)?[n.evaluationResult]:[]).forEach(function(r){var a=(null==r?void 0:r.deviations)||{};Object.keys(a).sort().forEach(function(d){var v=a[d];if(v){var c=!t.isMissingStr(v[l]),f=!t.isMissingStr(v[u]);if(c||f){var p=(null==r?void 0:r.nodeId)||n.nodeId||n.id,_="".concat(p).concat(t.DEVIATION_BADGE_SEPARATOR).concat(d);void 0===o[_]&&(void 0===s[e]&&(s[e]=1),o[_]={index:s[e]++,rootKey:e,parentNum:i})}}})})}(e,a,v),e&&!p){var I=(null==_?void 0:_.id)||"fallback_parent_".concat(d++);i[I]||(i[I]=[]),i[I].push(e)}((null==e?void 0:e.subsections)||(null==n?void 0:n.subsections)||(null==r?void 0:r.subsections)||[]).forEach(function(t){var i=c(null==n?void 0:n.subsections,t),o=c(null==r?void 0:r.subsections,t);f(t,i,o,a,v,!1,e||_)})};b.forEach(function(n){var e,t=v(n,"left"),i=t.rootKey,o=t.parentNum,r=null;if(a){var s=null===(e=n.refIndexes)||void 0===e?void 0:e[0];r=x.find(function(n){return n.selfIndex===s})}else r=x[b.indexOf(n)];f(n,n,r,i,o,!0,n)}),p||x.forEach(function(n){var e=v(n,"right"),t=e.rootKey,i=e.parentNum;t.startsWith("right-orphan-root:")&&f(n,null,n,t,i,!0,n)});var _=Object.fromEntries(Object.entries(o).map(function(n){return[n[0],n[1].index]})),I=Object.fromEntries(Object.entries(o).map(function(n){return[n[0],n[1].parentNum]}));return{parentDeviationRecord:i,registry:_,deviationParentRegistry:I}},[b,x,a,r,p]),E=S.parentDeviationRecord,O=S.registry,j=S.deviationParentRegistry;return{isGuidelineMode:p,activeProposed:I,activeVariants:g,comparisonRows:h,existingRule:y,proposedSections:b,existingSections:x,visibleFields:C,parentDeviationRecord:E,deviationNumberRegistry:O,deviationParentRegistry:j,parseError:m}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../CognitiveComparehelpers.js"),n=require("../utils/buildComparisonRows.js");const i={id:"",title:"",similarity:0,sections:[]};exports.useCognitiveTreeData=(s,o,r,a,d=!0,c)=>{const l="string"==typeof r?r:JSON.stringify(r||{}),u=Boolean(c&&(c.learnings_data||c.data?.artifactData?.userStorySnapshot)),{activeProposed:f,activeVariants:p,comparisonRows:v,parseError:I}=e.useMemo(()=>{if(!s||0===Object.keys(s).length)return{activeProposed:{},activeVariants:[],comparisonRows:[],parseError:"Tree data is required"};const e=JSON.parse(l);try{const i=s.nodes||s;let r=[],a=[],l=[];const f=s.base_root_id,p=s.input_index_map||{0:"left",1:"right"},v=s[f]||i[f];if(!v||!1===v.display_node)return{activeProposed:{title:"No Data",sections:[]},activeVariants:[],comparisonRows:[],parseError:null};const I=s.content_mapping||{},_=e=>s[e]||i[e],g=(e,n,i)=>{if(!e||"object"!=typeof e)return e||null;if(e.deviations)return e;if(d)return e;const s=Object.keys(e).filter(e=>/^\d+$/.test(e));if(!s.length)return e;const o=s.sort((e,t)=>Number(e)-Number(t)),r={},a={};let c=null;return o.forEach(s=>{const o=e[s];if(!o||"object"!=typeof o)return;c||(c=o);const d=!o?.status||"pending"===o.status,l=o?.deviation_highlight||o?.web_search_answer?.deviation_highlight,u=e=>{const t=o?.cognitive_decisioning?.citations||o?.citations||{};return Object.values(t).map(t=>t?.[e]?.highlighted_text).filter(e=>"string"==typeof e&&e.trim().length>0)},f=(...e)=>{for(const n of e)if(Array.isArray(n)&&n.some(e=>!t.isMissingStr(e)))return n;return[]},v=d?f(o?.deviation_highlights?.[n]||o?.deviation_highlights?.[p[0]],"string"==typeof l?[l]:[],u(n),u(p[0])):[],I=d?f(o?.deviation_highlights?.[i]||o?.deviation_highlights?.[p[1]],u(i),u(p[1])):[];r[s]={[p[0]]:v[0]||"",[p[1]]:I[0]||"",deviation_summary:o?.deviation_summary||"",deviation_title:o?.deviation_title,deviation_impact:o?.deviation_impact,deviation_explanation:o?.deviation_explanation,evaluation_outputs:o?.evaluation_outputs,cognitive_decisioning:o?.cognitive_decisioning,deviation_highlights:o?.deviation_highlights},a[s]=o}),{...e,deviation_title:c?.deviation_title||e?.deviation_title,deviation_impact:c?.deviation_impact||e?.deviation_impact,deviation_summary:c?.deviation_summary||e?.deviation_summary,deviation_explanation:c?.deviation_explanation||e?.deviation_explanation,evaluation_outputs:c?.evaluation_outputs||e?.evaluation_outputs,cognitive_decisioning:c?.cognitive_decisioning||e?.cognitive_decisioning,deviations:r,deviation_entries:a}},h=e=>{const t=new Map,n=e=>{e.forEach(e=>{e.id&&t.set(e.id,e),e.subsections?.length&&n(e.subsections)})};n(e);const i=(e,n)=>{let s=[];for(const o of e){const e=o.ref_parent_section_node_id;if(e&&t.has(e)&&e!==n?.id){const n=t.get(e);n.subsections||(n.subsections=[]),n.subsections.some(e=>e.id===o.id)||n.subsections.push(o)}else o.subsections?.length&&(o.subsections=i(o.subsections,o)),s.push(o)}return s},s=i(e),o=e=>{e.forEach(e=>{e.subsections&&e.subsections.length>0&&(e.subsections.sort((e,t)=>e.selfIndex<0&&t.selfIndex>=0?1:e.selfIndex>=0&&t.selfIndex<0?-1:(e.selfIndex||0)-(t.selfIndex||0)),o(e.subsections))})};return o(s),s},m=e=>{const t=e.comparison_inputs?Object.keys(e.comparison_inputs):[];let n=p[0],i=p[1];return t.length>0&&(n=t.includes(p[0])?p[0]:t[0],i=t.includes(p[1])?p[1]:t.length>1?t[1]:t[0]),{nodeLeftId:n,nodeRightId:i}},x=e=>e?.entity_id||e?.ref_parent_section_node_id||e?.parent_entity_id||null,b=(e,n,i,s)=>{const o=n.attributes||{},r=n.data||{},a=!1!==o.display_title,d=!1!==o.display_content,c=a?t.safeStringify(r.title||""):"",l=d?t.safeStringify(r.content||""):"",u=d?t.safeStringify(r.change_history||""):"",f=void 0!==o.display_index&&null!==o.display_index?Number(o.display_index):-1,p=x(o),v=!(!c.trim()&&!l.trim());return{id:`${e}::${n.contentId}`,nodeId:e,contentId:n.contentId,parentContentId:p,title:c,content:l,change_history:u,displayTitle:a,displayContent:d,subsections:[],...v?s:{score:void 0,relation:"not_defined"},evaluationResult:i,evaluationResults:i?[i]:[],selfIndex:f,refIndexes:[],refContentIds:[],ref_parent_section_node_id:p}},y=(e,t)=>{e.refIndexes=Array.from(new Set([...e.refIndexes||[],...t.refIndexes||[]])),e.refContentIds=Array.from(new Set([...e.refContentIds||[],...t.refContentIds||[]]));const n=new Set((e.subsections||[]).map(e=>e.id||e.contentId||e.nodeId));(t.subsections||[]).forEach(t=>{const i=t.id||t.contentId||t.nodeId;n.has(i)||(e.subsections=[...e.subsections||[],t],n.add(i))});const i=[...e.evaluationResults||(e.evaluationResult?[e.evaluationResult]:[]),...t.evaluationResults||(t.evaluationResult?[t.evaluationResult]:[])].filter(Boolean),s=new Set;return e.evaluationResults=i.filter(e=>{const t=e?.nodeId||JSON.stringify(Object.keys(e?.deviations||e||{}));return!s.has(t)&&(s.add(t),!0)}),!e.evaluationResult&&t.evaluationResult&&(e.evaluationResult=t.evaluationResult),!e.cognitiveData&&t.cognitiveData&&(e.cognitiveData=t.cognitiveData),e},R=(e,t)=>e.selfIndex<0&&t.selfIndex>=0?1:e.selfIndex>=0&&t.selfIndex<0?-1:e.selfIndex-t.selfIndex,C=(n,i)=>{const s=_(n);if(!s||!1===s.display_node)return[];if(u&&"1"===i)return[];const{nodeLeftId:o,nodeRightId:r}=m(s),a=t.getRationale(s),d=e?.[n]?.evaluation_result||s.evaluation_result||null,c=g(d,o,r),l=c&&"object"==typeof c?{...c,nodeId:n}:c,f=t.resolveComparisonInputItems(s,i,p,I).map(e=>b(n,e,l,a));if(s.next){const e=Object.values(s.next).flatMap(e=>C(e,i));f.forEach(t=>{const n=e.filter(e=>!e.parentContentId||e.parentContentId===t.contentId||e.parentContentId===t.parentContentId);t.subsections=n.length?n:e})}return f};if(o){const n=(i,s=0)=>{let o=[],r=[];if(!i)return{refSections:o,baseSections:r};const a={},d={};let c=-1,l=-1;for(const o in i){const r=i[o],f=_(r);if(!f||!1===f.display_node)continue;const{nodeLeftId:v,nodeRightId:h}=m(f),x=t.getRationale(f),R=e?.[r]?.evaluation_result||f.evaluation_result||null,C=g(R,v,h),S=C&&"object"==typeof C?{...C,nodeId:r}:C,{refSections:E,baseSections:O}=n(f.next,s+1),j=t.resolveComparisonInputItems(f,"0",p,I).map(e=>{const t=b(r,e,S,x);return-1===t.selfIndex&&(t.selfIndex=l--),t});let N=[];if(!u){const e=t.resolveComparisonInputItems(f,"1",p,I);N=e.map(e=>{const t=b(r,e,S,x);return-1===t.selfIndex&&(t.selfIndex=c--),t})}j.forEach(e=>{N.forEach(t=>{Number(t.selfIndex)>=0&&Number(e.selfIndex)>=0&&(t.refIndexes?.includes(Number(e.selfIndex))||t.refIndexes?.push(Number(e.selfIndex)),e.refIndexes?.includes(Number(t.selfIndex))||e.refIndexes?.push(Number(t.selfIndex))),e.contentId&&!t.refContentIds?.includes(e.contentId)&&t.refContentIds?.push(e.contentId),t.contentId&&!e.refContentIds?.includes(t.contentId)&&e.refContentIds?.push(t.contentId)})}),N.forEach(e=>{const t=E.filter(t=>!t.parentContentId||t.parentContentId===e.contentId||t.parentContentId===e.parentContentId||e.refContentIds?.includes(t.parentContentId));t.length>0&&(e.subsections=t);const n=0===s?String(e.selfIndex):`${e.selfIndex}_${e.contentId||r}`;a[n]=a[n]?y(a[n],e):e}),j.forEach(e=>{const t=O.filter(t=>!t.parentContentId||t.parentContentId===e.contentId||t.parentContentId===e.parentContentId||e.refContentIds?.includes(t.parentContentId));t.length>0&&(e.subsections=t);const n=0===s?String(e.selfIndex):`${e.selfIndex}_${e.contentId||r}`;d[n]=d[n]?y(d[n],e):e})}return o=Object.values(a),r=Object.values(d),o.sort(R),r.sort(R),{refSections:o,baseSections:r}},{refSections:i,baseSections:s}=n(v.next);u||(a=h(i)),r=s}else v.next&&Object.values(v.next).forEach(e=>{const t=_(e);if(!t||!1===t.display_node)return;const i=C(e,"0");if(u)return void r.push(...i);const s=h(C(e,"1"));l.push(...n.buildComparisonRows(e,i,s))}),u||(r=l.map(e=>e.left),a=l.map(e=>e.right));const S=t.getSideData(v,"0",p,I),E=t.getSideData(v,"1",p,I),O={title:S.title||"Uploaded Contract",description:v.decision_scope_description||"",sections:r};return{activeProposed:O,activeVariants:[{id:"tree-variant-1",title:u?(()=>{if(c?.learnings_data&&Object.keys(c.learnings_data).length>0){const e=Object.keys(c.learnings_data)[0];return c.learnings_data[e]?.title||"Rulebook Guidelines"}return c?.data?.artifactTitle||"Rulebook Guidelines"})():E.title||"Reference Template",similarity:0,sections:a,analysis:{rule_difference_comparison:{summary:{overall_score:0,overall_summary:v.decision_scope_description||""},fields:{}}}}],comparisonRows:l,parseError:null}}catch(e){return console.error("Data Transformation Error: ",e),{activeProposed:{},activeVariants:[],comparisonRows:[],parseError:e instanceof Error?e.message:"Unknown Parsing Error"}}},[s,o,l,d,c]),_=p?.[0]||i,g=e.useMemo(()=>f?.sections||[],[f?.sections]),h=e.useMemo(()=>_.sections||[],[_.sections]),m=g.length>0||h.length>0,x=e.useMemo(()=>a.fields.filter(({key:e})=>(!m||"description"!==e)&&(t.hasValue(f?.[e])||t.hasValue(_[e]))),[f,_,m,a.fields]),{parentDeviationRecord:b,registry:y,deviationParentRegistry:R}=e.useMemo(()=>{const e={},n={},i={};let r=0;const a=s?.input_index_map?.[0],d=s?.input_index_map?.[1],c=(e,t)=>{if(!o){const n="left"===t?g.indexOf(e):h.indexOf(e);return{rootKey:`${t}:${n}`,parentNum:n+1}}if("left"===t){const t=e.selfIndex,n=void 0!==t&&t>=0?t+1:g.indexOf(e)+1;return{rootKey:`left-root:${e.id}`,parentNum:n}}const n=e.selfIndex,i=g.find(e=>e.refIndexes?.includes(n));if(i){const e=i.selfIndex,t=void 0!==e&&e>=0?e+1:g.indexOf(i)+1;return{rootKey:`left-root:${i.id}`,parentNum:t}}const s=void 0!==n&&n>=0?n+1:h.indexOf(e)+1;return{rootKey:`right-orphan-root:${e.id}`,parentNum:s}},l=(e,t)=>{if(e&&t)return e.find(e=>e.id===t.id||e.nodeId&&e.nodeId===t.nodeId||e.contentId&&e.contentId===t.contentId)||void 0},f=(s,o,c,u,p,v,I)=>{if(o&&((e,s,o)=>{(e?.evaluationResults?.length?e.evaluationResults:e?.evaluationResult?[e.evaluationResult]:[]).forEach(r=>{const c=r?.deviations||{};Object.keys(c).sort().forEach(l=>{const u=c[l];if(!u)return;const f=!t.isMissingStr(u[a]),p=!t.isMissingStr(u[d]);if(f||p){const a=`${r?.nodeId||e.nodeId||e.id}${t.DEVIATION_BADGE_SEPARATOR}${l}`;void 0===n[a]&&(void 0===i[s]&&(i[s]=1),n[a]={index:i[s]++,rootKey:s,parentNum:o})}})})})(o,u,p),o&&!v){const t=I?.id||"fallback_parent_"+r++;e[t]||(e[t]=[]),e[t].push(o)}(o?.subsections||s?.subsections||c?.subsections||[]).forEach(e=>{const t=l(s?.subsections,e),n=l(c?.subsections,e);f(e,t,n,u,p,!1,o||I)})};g.forEach(e=>{const{rootKey:t,parentNum:n}=c(e,"left");let i=null;if(o){const t=e.refIndexes?.[0];i=h.find(e=>e.selfIndex===t)}else i=h[g.indexOf(e)];f(e,e,i,t,n,!0,e)}),u||h.forEach(e=>{const{rootKey:t,parentNum:n}=c(e,"right");t.startsWith("right-orphan-root:")&&f(e,null,e,t,n,!0,e)});const p=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,t.index])),v=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,t.parentNum]));return{parentDeviationRecord:e,registry:p,deviationParentRegistry:v}},[g,h,o,s,u]);return{isGuidelineMode:u,activeProposed:f,activeVariants:p,comparisonRows:v,existingRule:_,proposedSections:g,existingSections:h,visibleFields:x,parentDeviationRecord:b,deviationNumberRegistry:y,deviationParentRegistry:R,parseError:I}};
2
2
  //# sourceMappingURL=useCompareData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCompareData.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"useCompareData.js","sources":["../../../../../src/features/CognitiveCompare/hooks/useCompareData.ts"],"sourcesContent":["import { useMemo } from \"react\";\nimport { getSideData, getRationale, hasValue, safeStringify, isMissingStr, DEVIATION_BADGE_SEPARATOR, resolveComparisonInputItems } from \"../CognitiveComparehelpers\";\nimport { ComparisonRow, SectionBlock, ProposedRuleData, RuleData, ComparisonConfig } from \"../CognitiveCompareTypes\";\nimport { buildComparisonRows } from \"../utils/buildComparisonRows\";\n\nconst DEFAULT_RULE_FALLBACK: RuleData = { id: \"\", title: \"\", similarity: 0, sections: [] };\n\nexport const useCognitiveTreeData = (\n treeData: Record<string, any> | undefined,\n maintainRelativeOrder: boolean,\n deviationData: Record<string, any> | null,\n resolvedComparisonConfig: ComparisonConfig,\n enableDeviationSchemaBackwardCompatibility: boolean = true,\n guidelinesData?: Record<string, any> | null\n) => {\n // AdaptTreeData function \n // memoized to increase performance\n // Stabilize the deviationData reference by stringifying it.\n // This prevents React from triggering re-renders purely due to memory reference changes.\n // We keep accepting it as a string so the memo dep stays content-based.\n const deviationDataStr = typeof deviationData === \"string\" ? deviationData : JSON.stringify(deviationData || {});\n\n // ── NEW: Check for either the new learnings_data or the old artifactData ──\n const isGuidelineMode = Boolean(\n guidelinesData && \n (guidelinesData.learnings_data || guidelinesData.data?.artifactData?.userStorySnapshot)\n );\n\n const { activeProposed, activeVariants, comparisonRows, parseError } = useMemo(() => {\n if (!treeData || Object.keys(treeData).length === 0) {\n return {\n activeProposed: {} as ProposedRuleData,\n activeVariants: [],\n comparisonRows: [] as ComparisonRow[],\n parseError: \"Tree data is required\",\n };\n }\n const stableDeviationData = JSON.parse(deviationDataStr);\n\n try {\n const nodes = treeData.nodes || treeData;\n let baseSections: any[] = []; \n let refSections: any[] = []; \n let comparisonRows: ComparisonRow[] = [];\n\n const rootId = treeData.base_root_id;\n const indexMap = treeData.input_index_map || { \"0\": \"left\", \"1\": \"right\" };\n const rootNode = treeData[rootId] || nodes[rootId];\n\n if (!rootNode || rootNode.display_node === false) {\n return {\n activeProposed: { title: \"No Data\", sections: [] },\n activeVariants: [],\n comparisonRows: [] as ComparisonRow[],\n parseError: null,\n };\n }\n \n const contentMapping = treeData.content_mapping || {};\n const getNode = (nodeId: string) => treeData[nodeId] || nodes[nodeId];\n \n\n const normalizeEvaluationResult = (rawEvaluationResult: any, nodeLeftId: string, nodeRightId: string) => {\n if (!rawEvaluationResult || typeof rawEvaluationResult !== \"object\") {\n return rawEvaluationResult || null;\n }\n\n // Old format already supported by UI.\n if (rawEvaluationResult.deviations) {\n return rawEvaluationResult;\n }\n\n if (enableDeviationSchemaBackwardCompatibility) {\n return rawEvaluationResult;\n }\n\n const numericDeviationKeys = Object.keys(rawEvaluationResult).filter(\n (k) => /^\\d+$/.test(k),\n );\n\n if (!numericDeviationKeys.length) {\n return rawEvaluationResult;\n }\n\n const sortedDeviationKeys = numericDeviationKeys.sort(\n (a, b) => Number(a) - Number(b),\n );\n const normalizedDeviations: Record<string, any> = {};\n const deviationEntries: Record<string, any> = {};\n let firstEntry: any = null;\n\n sortedDeviationKeys.forEach((devKey) => {\n const entry = rawEvaluationResult[devKey];\n if (!entry || typeof entry !== \"object\") return;\n if (!firstEntry) firstEntry = entry;\n\n const shouldShowHighlights =\n !entry?.status || entry.status === \"pending\";\n const deviationHighlight =\n entry?.deviation_highlight ||\n entry?.web_search_answer?.deviation_highlight;\n\n const citationHighlights = (docId: string): string[] => {\n const citations = entry?.cognitive_decisioning?.citations || entry?.citations || {};\n return Object.values(citations)\n .map((citation: any) => citation?.[docId]?.highlighted_text)\n .filter((text: any) => typeof text === \"string\" && text.trim().length > 0);\n };\n\n const firstNonEmpty = (...values: any[]): string[] => {\n for (const value of values) {\n if (Array.isArray(value) && value.some((text) => !isMissingStr(text))) {\n return value;\n }\n }\n return [];\n };\n\n const leftHighlights: string[] = shouldShowHighlights\n ? firstNonEmpty(\n entry?.deviation_highlights?.[nodeLeftId] ||\n entry?.deviation_highlights?.[indexMap[\"0\"] as string],\n typeof deviationHighlight === \"string\"\n ? [deviationHighlight]\n : [],\n citationHighlights(nodeLeftId),\n citationHighlights(indexMap[\"0\"] as string),\n )\n : [];\n\n const rightHighlights: string[] = shouldShowHighlights\n ? firstNonEmpty(\n entry?.deviation_highlights?.[nodeRightId] ||\n entry?.deviation_highlights?.[indexMap[\"1\"] as string],\n citationHighlights(nodeRightId),\n citationHighlights(indexMap[\"1\"] as string),\n )\n : [];\n\n normalizedDeviations[devKey] = {\n [indexMap[\"0\"] as string]: leftHighlights[0] || \"\", \n [indexMap[\"1\"] as string]: rightHighlights[0] || \"\",\n deviation_summary: entry?.deviation_summary || \"\",\n deviation_title: entry?.deviation_title,\n deviation_impact: entry?.deviation_impact,\n deviation_explanation: entry?.deviation_explanation,\n evaluation_outputs: entry?.evaluation_outputs,\n cognitive_decisioning: entry?.cognitive_decisioning,\n deviation_highlights: entry?.deviation_highlights,\n };\n\n deviationEntries[devKey] = entry;\n });\n\n return {\n ...rawEvaluationResult,\n deviation_title: firstEntry?.deviation_title || rawEvaluationResult?.deviation_title,\n deviation_impact: firstEntry?.deviation_impact || rawEvaluationResult?.deviation_impact,\n deviation_summary: firstEntry?.deviation_summary || rawEvaluationResult?.deviation_summary,\n deviation_explanation:\n firstEntry?.deviation_explanation || rawEvaluationResult?.deviation_explanation,\n evaluation_outputs:\n firstEntry?.evaluation_outputs || rawEvaluationResult?.evaluation_outputs,\n cognitive_decisioning:\n firstEntry?.cognitive_decisioning || rawEvaluationResult?.cognitive_decisioning,\n deviations: normalizedDeviations,\n deviation_entries: deviationEntries,\n };\n };\n\n // UNIVERSAL RE-ROUTING ENGINE (WITH SORTING FIX)\n const reRouteRHSTree = (sections: any[]) => {\n const allNodesMap = new Map<string, any>();\n \n const indexNodes = (nodes: any[]) => {\n nodes.forEach(node => {\n if (node.id) allNodesMap.set(node.id, node);\n if (node.subsections?.length) indexNodes(node.subsections);\n });\n };\n indexNodes(sections);\n \n const moveNodes = (nodes: any[], parentNode?: any): any[] => {\n let filteredNodes: any[] = [];\n \n for (const node of nodes) {\n const targetParentId = node.ref_parent_section_node_id;\n \n if (targetParentId && allNodesMap.has(targetParentId) && targetParentId !== parentNode?.id) {\n const targetParent = allNodesMap.get(targetParentId)!;\n if (!targetParent.subsections) targetParent.subsections = [];\n \n if (!targetParent.subsections.some((s: any) => s.id === node.id)) {\n targetParent.subsections.push(node);\n }\n } else {\n if (node.subsections?.length) {\n node.subsections = moveNodes(node.subsections, node);\n }\n filteredNodes.push(node);\n }\n }\n return filteredNodes;\n };\n \n const finalSections = moveNodes(sections);\n\n // Sort step added to ensure display_index is respected after re-routing\n const sortSubsections = (nodes: any[]) => {\n nodes.forEach(node => {\n if (node.subsections && node.subsections.length > 0) {\n node.subsections.sort((a: any, b: any) => {\n if (a.selfIndex < 0 && b.selfIndex >= 0) return 1;\n if (a.selfIndex >= 0 && b.selfIndex < 0) return -1;\n return (a.selfIndex || 0) - (b.selfIndex || 0);\n });\n sortSubsections(node.subsections);\n }\n });\n };\n\n sortSubsections(finalSections);\n return finalSections;\n };\n\n const getNodeInputIds = (node: any) => {\n const nodeInputKeys = node.comparison_inputs ? Object.keys(node.comparison_inputs) : [];\n let nodeLeftId = indexMap[\"0\"];\n let nodeRightId = indexMap[\"1\"];\n\n if (nodeInputKeys.length > 0) {\n nodeLeftId = nodeInputKeys.includes(indexMap[\"0\"]) ? indexMap[\"0\"] : nodeInputKeys[0];\n nodeRightId = nodeInputKeys.includes(indexMap[\"1\"]) ? indexMap[\"1\"] : (nodeInputKeys.length > 1 ? nodeInputKeys[1] : nodeInputKeys[0]);\n }\n\n return { nodeLeftId, nodeRightId };\n };\n\n const getParentContentId = (attrs: any) =>\n attrs?.entity_id ||\n attrs?.ref_parent_section_node_id ||\n attrs?.parent_entity_id ||\n null;\n\n const makeSectionBlock = (\n nodeId: string,\n item: any,\n evaluationResult: any,\n rationale: any,\n ): SectionBlock => {\n const attrs = item.attributes || {};\n const data = item.data || {};\n const displayTitle = attrs.display_title !== false;\n const displayContent = attrs.display_content !== false;\n const title = displayTitle ? safeStringify(data.title || \"\") : \"\";\n const content = displayContent ? safeStringify(data.content || \"\") : \"\";\n const changeHistory = displayContent ? safeStringify(data.change_history || \"\") : \"\";\n const selfIndex =\n attrs.display_index !== undefined && attrs.display_index !== null\n ? Number(attrs.display_index)\n : -1;\n const parentContentId = getParentContentId(attrs);\n const hasData = !!(title.trim() || content.trim());\n\n return {\n id: `${nodeId}::${item.contentId}`,\n nodeId,\n contentId: item.contentId,\n parentContentId,\n title,\n content,\n change_history: changeHistory,\n displayTitle,\n displayContent,\n subsections: [],\n ...(hasData ? rationale : { score: undefined, relation: \"not_defined\" }),\n evaluationResult,\n evaluationResults: evaluationResult ? [evaluationResult] : [],\n selfIndex,\n refIndexes: [],\n refContentIds: [],\n ref_parent_section_node_id: parentContentId,\n } as SectionBlock;\n };\n\n const mergeBlock = (target: any, incoming: any) => {\n target.refIndexes = Array.from(new Set([...(target.refIndexes || []), ...(incoming.refIndexes || [])]));\n target.refContentIds = Array.from(new Set([...(target.refContentIds || []), ...(incoming.refContentIds || [])]));\n\n const existingChildKeys = new Set(\n (target.subsections || []).map((child: any) =>\n child.id || child.contentId || child.nodeId,\n ),\n );\n (incoming.subsections || []).forEach((child: any) => {\n const childKey = child.id || child.contentId || child.nodeId;\n if (!existingChildKeys.has(childKey)) {\n target.subsections = [...(target.subsections || []), child];\n existingChildKeys.add(childKey);\n }\n });\n\n const mergedEvaluationResults = [\n ...(target.evaluationResults || (target.evaluationResult ? [target.evaluationResult] : [])),\n ...(incoming.evaluationResults || (incoming.evaluationResult ? [incoming.evaluationResult] : [])),\n ].filter(Boolean);\n const seenEvaluationResults = new Set<string>();\n target.evaluationResults = mergedEvaluationResults.filter((result: any) => {\n const key = result?.nodeId || JSON.stringify(Object.keys(result?.deviations || result || {}));\n if (seenEvaluationResults.has(key)) return false;\n seenEvaluationResults.add(key);\n return true;\n });\n\n if (!target.evaluationResult && incoming.evaluationResult) target.evaluationResult = incoming.evaluationResult;\n if (!target.cognitiveData && incoming.cognitiveData) target.cognitiveData = incoming.cognitiveData;\n\n return target;\n };\n\n const sortFn = (a: any, b: any) => {\n if (a.selfIndex! < 0 && b.selfIndex! >= 0) return 1;\n if (a.selfIndex! >= 0 && b.selfIndex! < 0) return -1;\n return a.selfIndex! - b.selfIndex!;\n };\n\n const buildSideSections = (nodeId: string, sideIndex: \"0\" | \"1\"): SectionBlock[] => {\n const node = getNode(nodeId);\n if (!node || node.display_node === false) return [];\n \n if (isGuidelineMode && sideIndex === \"1\") return [];\n\n const { nodeLeftId, nodeRightId } = getNodeInputIds(node);\n const rationale = getRationale(node);\n const rawEvaluationResult =\n stableDeviationData?.[nodeId]?.evaluation_result || node.evaluation_result || null;\n const normalizedEvaluationResult = normalizeEvaluationResult(rawEvaluationResult, nodeLeftId, nodeRightId);\n const evaluationResult = normalizedEvaluationResult && typeof normalizedEvaluationResult === \"object\"\n ? { ...normalizedEvaluationResult, nodeId }\n : normalizedEvaluationResult;\n const items = resolveComparisonInputItems(node, sideIndex, indexMap, contentMapping);\n\n const sections = items.map((item) =>\n makeSectionBlock(nodeId, item, evaluationResult, rationale),\n );\n\n if (node.next) {\n const childSections = (Object.values(node.next) as string[]).flatMap((childId) =>\n buildSideSections(childId, sideIndex),\n );\n sections.forEach((section) => {\n const matchedChildren = childSections.filter((child: any) =>\n !child.parentContentId ||\n child.parentContentId === section.contentId ||\n child.parentContentId === section.parentContentId,\n );\n section.subsections = matchedChildren.length ? matchedChildren : childSections;\n });\n }\n\n return sections;\n };\n\n if (!maintainRelativeOrder) {\n if (rootNode.next) {\n (Object.values(rootNode.next) as string[]).forEach((nodeId) => {\n const node = getNode(nodeId);\n if (!node || node.display_node === false) return;\n\n const leftBlocks = buildSideSections(nodeId, \"0\");\n\n if (isGuidelineMode) {\n baseSections.push(...leftBlocks);\n return;\n }\n\n const rightBlocks = reRouteRHSTree(buildSideSections(nodeId, \"1\"));\n comparisonRows.push(\n ...buildComparisonRows(nodeId, leftBlocks, rightBlocks),\n );\n });\n }\n\n if (!isGuidelineMode) {\n baseSections = comparisonRows.map((row) => row.left);\n refSections = comparisonRows.map((row) => row.right);\n }\n\n } else {\n const buildRelativeOrderMapping = (nodeMap?: Record<string, string> | null, depth = 0) => {\n let refSections: SectionBlock[] = [];\n let baseSections: SectionBlock[] = [];\n if (!nodeMap) return { refSections, baseSections };\n \n const rightNodesHash: Record<string, SectionBlock> = {};\n const leftNodesHash: Record<string, SectionBlock> = {};\n let rightNodeOrphanIdx = -1;\n let leftNodeOrphanIdx = -1;\n\n for (const nodeIdx in nodeMap) {\n const nodeId = nodeMap[nodeIdx];\n const node = getNode(nodeId);\n if (!node || node.display_node === false) continue;\n\n const { nodeLeftId, nodeRightId } = getNodeInputIds(node);\n const rationale = getRationale(node);\n const rawEvaluationResult = stableDeviationData?.[nodeId]?.evaluation_result || node.evaluation_result || null;\n const normalizedEvaluationResult = normalizeEvaluationResult(rawEvaluationResult, nodeLeftId, nodeRightId);\n const evaluationResult = normalizedEvaluationResult && typeof normalizedEvaluationResult === \"object\"\n ? { ...normalizedEvaluationResult, nodeId }\n : normalizedEvaluationResult;\n\n const { refSections: refSubSections, baseSections: baseSubSections } = buildRelativeOrderMapping(node.next, depth + 1);\n\n const leftItems = resolveComparisonInputItems(node, \"0\", indexMap, contentMapping);\n const leftBlocks = leftItems.map((item) => {\n const block = makeSectionBlock(nodeId, item, evaluationResult, rationale);\n if (block.selfIndex === -1) block.selfIndex = leftNodeOrphanIdx--;\n return block;\n });\n\n let rightBlocks: any[] = [];\n if (!isGuidelineMode) {\n const rightItems = resolveComparisonInputItems(node, \"1\", indexMap, contentMapping);\n rightBlocks = rightItems.map((item) => {\n const block = makeSectionBlock(nodeId, item, evaluationResult, rationale);\n if (block.selfIndex === -1) block.selfIndex = rightNodeOrphanIdx--;\n return block;\n });\n }\n\n leftBlocks.forEach((leftBlock: any) => {\n rightBlocks.forEach((rightBlock: any) => {\n if (Number(rightBlock.selfIndex) >= 0 && Number(leftBlock.selfIndex) >= 0) {\n if (!rightBlock.refIndexes?.includes(Number(leftBlock.selfIndex))) rightBlock.refIndexes?.push(Number(leftBlock.selfIndex));\n if (!leftBlock.refIndexes?.includes(Number(rightBlock.selfIndex))) leftBlock.refIndexes?.push(Number(rightBlock.selfIndex));\n }\n if (leftBlock.contentId && !rightBlock.refContentIds?.includes(leftBlock.contentId)) rightBlock.refContentIds?.push(leftBlock.contentId);\n if (rightBlock.contentId && !leftBlock.refContentIds?.includes(rightBlock.contentId)) leftBlock.refContentIds?.push(rightBlock.contentId);\n });\n });\n\n rightBlocks.forEach((rightBlock: any) => {\n const matchedSubSections = refSubSections.filter((sub: any) =>\n !sub.parentContentId ||\n sub.parentContentId === rightBlock.contentId ||\n sub.parentContentId === rightBlock.parentContentId ||\n rightBlock.refContentIds?.includes(sub.parentContentId),\n );\n if (matchedSubSections.length > 0) rightBlock.subsections = matchedSubSections;\n\n const rightHashKey = depth === 0\n ? String(rightBlock.selfIndex)\n : `${rightBlock.selfIndex}_${rightBlock.contentId || nodeId}`;\n rightNodesHash[rightHashKey] = rightNodesHash[rightHashKey]\n ? mergeBlock(rightNodesHash[rightHashKey], rightBlock)\n : rightBlock;\n });\n\n leftBlocks.forEach((leftBlock: any) => {\n const matchedSubSections = baseSubSections.filter((sub: any) =>\n !sub.parentContentId ||\n sub.parentContentId === leftBlock.contentId ||\n sub.parentContentId === leftBlock.parentContentId ||\n leftBlock.refContentIds?.includes(sub.parentContentId),\n );\n if (matchedSubSections.length > 0) leftBlock.subsections = matchedSubSections;\n\n const leftHashKey = depth === 0\n ? String(leftBlock.selfIndex)\n : `${leftBlock.selfIndex}_${leftBlock.contentId || nodeId}`;\n leftNodesHash[leftHashKey] = leftNodesHash[leftHashKey]\n ? mergeBlock(leftNodesHash[leftHashKey], leftBlock)\n : leftBlock;\n });\n }\n\n refSections = Object.values(rightNodesHash);\n baseSections = Object.values(leftNodesHash);\n\n refSections.sort(sortFn);\n baseSections.sort(sortFn);\n\n return { refSections, baseSections };\n };\n\n const { refSections: righSections, baseSections: leftSections } = buildRelativeOrderMapping(rootNode.next);\n \n if (!isGuidelineMode) {\n refSections = reRouteRHSTree(righSections);\n }\n baseSections = leftSections;\n }\n\n const rootLeftData = getSideData(rootNode, \"0\", indexMap, contentMapping);\n const rootRightData = getSideData(rootNode, \"1\", indexMap, contentMapping);\n\n const activeProposed: ProposedRuleData = {\n title: rootLeftData.title || \"Uploaded Contract\",\n description: rootNode.decision_scope_description || \"\",\n sections: baseSections,\n };\n\n // ── NEW: Extract the title dynamically based on the new learnings_data structure ──\n const getGuidelineTitle = () => {\n if (guidelinesData?.learnings_data && Object.keys(guidelinesData.learnings_data).length > 0) {\n const firstKey = Object.keys(guidelinesData.learnings_data)[0];\n return guidelinesData.learnings_data[firstKey]?.title || \"Rulebook Guidelines\";\n }\n return guidelinesData?.data?.artifactTitle || \"Rulebook Guidelines\";\n };\n\n const activeVariant: RuleData = {\n id: \"tree-variant-1\",\n title: isGuidelineMode ? getGuidelineTitle() : (rootRightData.title || \"Reference Template\"),\n similarity: 0,\n sections: refSections,\n analysis: { rule_difference_comparison: { summary: { overall_score: 0, overall_summary: rootNode.decision_scope_description || \"\" }, fields: {} } },\n };\n\n return {\n activeProposed,\n activeVariants: [activeVariant],\n comparisonRows,\n parseError: null,\n };\n } catch (err: unknown) {\n console.error(\"Data Transformation Error: \", err);\n return {\n activeProposed: {} as ProposedRuleData,\n activeVariants: [],\n comparisonRows: [] as ComparisonRow[],\n parseError: err instanceof Error ? err.message : \"Unknown Parsing Error\",\n };\n }\n }, [treeData, maintainRelativeOrder, deviationDataStr, enableDeviationSchemaBackwardCompatibility, guidelinesData]);\n\n // 2. Extracted section references\n const existingRule = activeVariants?.[0] || DEFAULT_RULE_FALLBACK;\n \n const proposedSections = useMemo(\n () => (activeProposed?.sections || []) as SectionBlock[],\n [activeProposed?.sections]\n );\n \n const existingSections = useMemo(\n () => (existingRule.sections || []) as SectionBlock[],\n [existingRule.sections]\n );\n\n const hasSectionAccordions =\n proposedSections.length > 0 || existingSections.length > 0;\n\n const visibleFields = useMemo(() => {\n return resolvedComparisonConfig.fields.filter(({ key }) => {\n if (hasSectionAccordions && key === \"description\") return false;\n return hasValue(activeProposed?.[key as keyof ProposedRuleData]) || hasValue(existingRule[key as keyof RuleData]);\n });\n }, [activeProposed, existingRule, hasSectionAccordions, resolvedComparisonConfig.fields]);\n\n // @ts-ignore\n const { parentDeviationRecord, registry: deviationNumberRegistry, deviationParentRegistry } = useMemo(() => {\n const parentDeviationRecord: Record<string, SectionBlock[]> = {};\n const registry: Record<string, { index: number; rootKey: string; parentNum: number }> = {};\n const counters: Record<string, number> = {};\n // Add a fallback id counter to ensure no deviations are left without ID even when backend does not provide any id.\n let fallbackIdCounter = 0;\n const leftDocId = treeData?.input_index_map?.[\"0\"];\n const rightDocId = treeData?.input_index_map?.[\"1\"];\n\n const resolveRootKeyAndParentNum = (\n rootSec: SectionBlock,\n side: \"left\" | \"right\",\n ): { rootKey: string; parentNum: number } => {\n if (!maintainRelativeOrder) {\n const idx = side === \"left\"\n ? proposedSections.indexOf(rootSec)\n : existingSections.indexOf(rootSec);\n return { rootKey: `${side}:${idx}`, parentNum: idx + 1 };\n }\n\n if (side === \"left\") {\n const selfIdx = (rootSec as any).selfIndex;\n const parentNum = selfIdx !== undefined && selfIdx >= 0 \n ? selfIdx + 1 \n : proposedSections.indexOf(rootSec) + 1;\n return { rootKey: `left-root:${rootSec.id}`, parentNum };\n }\n\n const rhsSelfIndex = (rootSec as any).selfIndex;\n const mappedLhs = proposedSections.find(\n (l: any) => l.refIndexes?.includes(rhsSelfIndex),\n );\n\n if (mappedLhs) {\n const lhsSelfIdx = (mappedLhs as any).selfIndex;\n const parentNum = lhsSelfIdx !== undefined && lhsSelfIdx >= 0 \n ? lhsSelfIdx + 1 \n : proposedSections.indexOf(mappedLhs) + 1;\n return { rootKey: `left-root:${mappedLhs.id}`, parentNum };\n }\n\n // True RHS orphan\n const parentNum = rhsSelfIndex !== undefined && rhsSelfIndex >= 0 \n ? rhsSelfIndex + 1 \n : existingSections.indexOf(rootSec) + 1;\n return { rootKey: `right-orphan-root:${rootSec.id}`, parentNum };\n };\n\n const processDeviations = (evalNode: any, rootKey: string, parentNum: number) => {\n const evaluationResults = evalNode?.evaluationResults?.length\n ? evalNode.evaluationResults\n : (evalNode?.evaluationResult ? [evalNode.evaluationResult] : []);\n\n evaluationResults.forEach((evaluationResult: any) => {\n const deviations = evaluationResult?.deviations || {};\n\n Object.keys(deviations).sort().forEach(devKey => {\n const devMap = deviations[devKey];\n if (!devMap) return;\n\n // changed the code because this logic was too strict and missed\n // cases where highlights were present in normalized/citation-backed data.\n const hasLeftHighlight = !isMissingStr(devMap[leftDocId as string]);\n const hasRightHighlight = !isMissingStr(devMap[rightDocId as string]);\n if (hasLeftHighlight || hasRightHighlight) {\n const registryNodeId = evaluationResult?.nodeId || evalNode.nodeId || evalNode.id;\n const refId = `${registryNodeId}${DEVIATION_BADGE_SEPARATOR}${devKey}`;\n if (registry[refId] === undefined) {\n if (counters[rootKey] === undefined) counters[rootKey] = 1;\n registry[refId] = { index: counters[rootKey]++, rootKey, parentNum };\n }\n }\n });\n });\n };\n\n // Resolve the correct child node at each level using id/refIndexes matching\n // rather than blind array-position (`subsections[i]`), so cross-routed\n // subsections are attributed to their actual structural parent.\n const findMatchingChild = (\n children: SectionBlock[] | undefined,\n target: SectionBlock | undefined,\n ): SectionBlock | undefined => {\n if (!children || !target) return undefined;\n return children.find((c: any) =>\n c.id === target.id ||\n (c.nodeId && c.nodeId === (target as any).nodeId) ||\n (c.contentId && c.contentId === (target as any).contentId)\n ) || undefined;\n };\n\n const traverse = (\n leftNode: SectionBlock | undefined | null,\n evalNode: SectionBlock | undefined | null,\n rightNode: SectionBlock | undefined | null,\n rootKey: string,\n parentNum: number,\n isRoot: boolean,\n parentNode: SectionBlock,\n ) => {\n if (evalNode) {\n processDeviations(evalNode, rootKey, parentNum);\n }\n\n if (evalNode && !isRoot) {\n const safeParentId = parentNode?.id || `fallback_parent_${fallbackIdCounter++}`;\n if (!parentDeviationRecord[safeParentId]) {\n parentDeviationRecord[safeParentId] = [];\n }\n parentDeviationRecord[safeParentId].push(evalNode);\n }\n\n const subs = evalNode?.subsections || leftNode?.subsections || rightNode?.subsections || [];\n subs.forEach((childEvalNode: any) => {\n const matchedLeft = findMatchingChild(leftNode?.subsections, childEvalNode);\n const matchedRight = findMatchingChild(rightNode?.subsections, childEvalNode);\n traverse(\n childEvalNode,\n matchedLeft,\n matchedRight,\n rootKey,\n parentNum,\n false,\n evalNode || parentNode,\n );\n });\n };\n\n proposedSections.forEach((rootSec) => {\n const { rootKey, parentNum } = resolveRootKeyAndParentNum(rootSec, \"left\");\n let rightSec = null;\n if (maintainRelativeOrder) {\n const rhsSelfIndex = (rootSec as any).refIndexes?.[0];\n rightSec = existingSections.find(s => (s as any).selfIndex === rhsSelfIndex);\n } else {\n rightSec = existingSections[proposedSections.indexOf(rootSec)];\n }\n traverse(rootSec, rootSec, rightSec, rootKey, parentNum, true, rootSec);\n });\n\n if (!isGuidelineMode) {\n existingSections.forEach((rootSec) => {\n const { rootKey, parentNum } = resolveRootKeyAndParentNum(rootSec, \"right\");\n const isOrphan = rootKey.startsWith(\"right-orphan-root:\");\n\n if (isOrphan) {\n traverse(rootSec, null, rootSec, rootKey, parentNum, true, rootSec);\n }\n });\n }\n\n const deviationNumberRegistry = Object.fromEntries(\n Object.entries(registry).map(([k, v]) => [k, v.index])\n );\n const deviationParentRegistry = Object.fromEntries(\n Object.entries(registry).map(([k, v]) => [k, v.parentNum])\n );\n\n return { parentDeviationRecord, registry: deviationNumberRegistry, deviationParentRegistry };\n\n }, [proposedSections, existingSections, maintainRelativeOrder, treeData, isGuidelineMode]);\n\n return {\n isGuidelineMode, // ── NEW ──\n activeProposed,\n activeVariants,\n comparisonRows,\n existingRule,\n proposedSections,\n existingSections,\n visibleFields,\n parentDeviationRecord,\n deviationNumberRegistry,\n deviationParentRegistry,\n parseError\n };\n};\n"],"names":["DEFAULT_RULE_FALLBACK","id","title","similarity","sections","treeData","maintainRelativeOrder","deviationData","resolvedComparisonConfig","enableDeviationSchemaBackwardCompatibility","guidelinesData","deviationDataStr","JSON","stringify","isGuidelineMode","Boolean","learnings_data","data","artifactData","userStorySnapshot","activeProposed","activeVariants","comparisonRows","parseError","useMemo","Object","keys","length","stableDeviationData","parse","nodes","baseSections","refSections","rootId","base_root_id","indexMap","input_index_map","rootNode","display_node","contentMapping","content_mapping","getNode","nodeId","normalizeEvaluationResult","rawEvaluationResult","nodeLeftId","nodeRightId","deviations","numericDeviationKeys","filter","k","test","sortedDeviationKeys","sort","a","b","Number","normalizedDeviations","deviationEntries","firstEntry","forEach","devKey","entry","shouldShowHighlights","status","deviationHighlight","deviation_highlight","web_search_answer","citationHighlights","docId","citations","cognitive_decisioning","values","map","citation","highlighted_text","text","trim","firstNonEmpty","value","Array","isArray","some","isMissingStr","leftHighlights","deviation_highlights","rightHighlights","deviation_summary","deviation_title","deviation_impact","deviation_explanation","evaluation_outputs","deviation_entries","reRouteRHSTree","allNodesMap","Map","indexNodes","node","set","subsections","moveNodes","parentNode","filteredNodes","targetParentId","ref_parent_section_node_id","has","targetParent","get","s","push","finalSections","sortSubsections","selfIndex","getNodeInputIds","nodeInputKeys","comparison_inputs","includes","getParentContentId","attrs","entity_id","parent_entity_id","makeSectionBlock","item","evaluationResult","rationale","attributes","displayTitle","display_title","displayContent","display_content","safeStringify","content","changeHistory","change_history","display_index","parentContentId","hasData","contentId","score","relation","evaluationResults","refIndexes","refContentIds","mergeBlock","target","incoming","from","Set","existingChildKeys","child","childKey","add","mergedEvaluationResults","seenEvaluationResults","result","key","cognitiveData","sortFn","buildSideSections","sideIndex","getRationale","evaluation_result","normalizedEvaluationResult","resolveComparisonInputItems","next","childSections","flatMap","childId","section","matchedChildren","buildRelativeOrderMapping","nodeMap","depth","rightNodesHash","leftNodesHash","rightNodeOrphanIdx","leftNodeOrphanIdx","nodeIdx","refSubSections","baseSubSections","leftBlocks","block","rightBlocks","rightItems","leftBlock","rightBlock","matchedSubSections","sub","rightHashKey","String","leftHashKey","righSections","leftSections","buildComparisonRows","row","left","right","rootLeftData","getSideData","rootRightData","description","decision_scope_description","firstKey","artifactTitle","getGuidelineTitle","analysis","rule_difference_comparison","summary","overall_score","overall_summary","fields","err","console","error","Error","message","existingRule","proposedSections","existingSections","hasSectionAccordions","visibleFields","hasValue","parentDeviationRecord","registry","deviationNumberRegistry","deviationParentRegistry","counters","fallbackIdCounter","leftDocId","rightDocId","resolveRootKeyAndParentNum","rootSec","side","idx","indexOf","rootKey","parentNum","selfIdx","rhsSelfIndex","mappedLhs","find","l","lhsSelfIdx","findMatchingChild","children","c","traverse","leftNode","evalNode","rightNode","isRoot","devMap","hasLeftHighlight","hasRightHighlight","refId","DEVIATION_BADGE_SEPARATOR","index","processDeviations","safeParentId","childEvalNode","matchedLeft","matchedRight","rightSec","startsWith","fromEntries","entries","v"],"mappings":"mLAKA,MAAMA,EAAkC,CAAEC,GAAI,GAAIC,MAAO,GAAIC,WAAY,EAAGC,SAAU,iCAElD,CAClCC,EACAC,EACAC,EACAC,EACAC,GAAsD,EACtDC,KAOM,MAAAC,EAA4C,iBAAlBJ,EAA6BA,EAAgBK,KAAKC,UAAUN,GAAiB,CAAA,GAGvGO,EAAkBC,QACtBL,IACCA,EAAeM,gBAAkBN,EAAeO,MAAMC,cAAcC,qBAGjEC,eAAEA,EAAgBC,eAAAA,EAAAC,eAAgBA,aAAgBC,GAAeC,EAAAA,QAAQ,KAC7E,IAAKnB,GAA6C,IAAjCoB,OAAOC,KAAKrB,GAAUsB,OAC9B,MAAA,CACLP,eAAgB,CAAC,EACjBC,eAAgB,GAChBC,eAAgB,GAChBC,WAA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,aAAesJ,GAAWtJ,aAAe,IACpFvC,QAASuM,IACZ,MAAMC,EAAcjB,EAAkBI,GAAUpJ,YAAagK,GACvDE,EAAelB,EAAkBM,GAAWtJ,YAAagK,GAC/Db,EACEa,EACAC,EACAC,EACA1B,EACAC,GACA,EACAY,GAAYnJ,MAKDoH,EAAA7J,QAAS2K,IACxB,MAAMI,QAAEA,EAASC,UAAAA,GAAcN,EAA2BC,EAAS,QACnE,IAAI+B,EAAW,KACf,GAAIhQ,EAAuB,CACnB,MAAAwO,EAAgBP,EAAgB1F,aAAa,GACnDyH,EAAW5C,EAAiBsB,KAAWpI,GAAAA,EAAUI,YAAc8H,EAAY,MAE3EwB,EAAW5C,EAAiBD,EAAiBiB,QAAQH,IAEvDe,EAASf,EAASA,EAAS+B,EAAU3B,EAASC,GAAW,EAAML,KAG5DzN,GACc4M,EAAA9J,QAAS2K,IACxB,MAAMI,QAAEA,EAASC,UAAAA,GAAcN,EAA2BC,EAAS,SAClDI,EAAQ4B,WAAW,uBAGlCjB,EAASf,EAAS,KAAMA,EAASI,EAASC,GAAW,EAAML,KAKjE,MAAMP,EAA0BvM,OAAO+O,YACrC/O,OAAOgP,QAAQ1C,GAAUtJ,IAAI,EAAEvB,EAAGwN,KAAO,CAACxN,EAAGwN,EAAEV,SAE3C/B,EAA0BxM,OAAO+O,YACrC/O,OAAOgP,QAAQ1C,GAAUtJ,IAAI,EAAEvB,EAAGwN,KAAO,CAACxN,EAAGwN,EAAE9B,aAGjD,MAAO,CAAEd,sBAAAA,EAAuBC,SAAUC,EAAyBC,wBAAAA,IAElE,CAACR,EAAkBC,EAAkBpN,EAAuBD,EAAUS,IAElE,MAAA,CACLA,kBACAM,iBACAC,iBACAC,iBACAkM,eACAC,mBACAC,mBACAE,gBACAE,wBACAE,0BACAC,0BACA1M"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react"),t=require("../CognitiveCompareConstants.js");exports.useComparePopups=function(o){var i=n.useState(t.EMPTY_SECTION_POPUP_STATE),r=i[0],u=i[1],a=n.useState(t.EMPTY_SECTION_POPUP_STATE),c=a[0],l=a[1],s=n.useState(t.EMPTY_SUMMARY_POPUP_STATE),P=s[0],p=s[1],_=n.useCallback(function(){p(t.EMPTY_SUMMARY_POPUP_STATE)},[]),f=n.useState(null),E=f[0],v=f[1],m=n.useState(null),T=m[0],d=m[1],A=n.useRef(null),O=n.useRef(null);n.useEffect(function(){O.current=null},[r.sectionIdx,r.open]);var M=n.useCallback(function(){v(null),u(t.EMPTY_SECTION_POPUP_STATE),d(null)},[]),S=n.useCallback(function(){l(t.EMPTY_SECTION_POPUP_STATE)},[]),I=n.useCallback(function(){var e;if(r.anchorEl&&r.refSectionTitle){var n=r.anchorEl.getBoundingClientRect();if(0!==n.width||0!==n.height){var o=(null===(e=null==A?void 0:A.current)||void 0===e?void 0:e.offsetHeight)||0,i=Math.min(t.POPUP_WIDTH,window.innerWidth-2*t.VIEWPORT_MARGIN),u=window.innerHeight-n.bottom-t.POPUP_GAP-t.VIEWPORT_MARGIN,a=n.top-t.POPUP_GAP-t.VIEWPORT_MARGIN,c=u<o&&a>u;c=null!==O.current?!0===O.current&&(a>=o||a>=u):!(u>=o||u>=a),O.current=c;var l=c?a:u,s=Math.min(o||9999,l),P=c?n.top-t.POPUP_GAP-s:n.bottom+t.POPUP_GAP,p=n.left+n.width/2,_=p-i/2,f=Math.max(t.VIEWPORT_MARGIN,Math.min(_,window.innerWidth-i-t.VIEWPORT_MARGIN)),E=Math.max(t.ARROW_SIZE+4,Math.min(p-f,i-t.ARROW_SIZE-4));v({top:P,left:f,arrowLeft:E,openAbove:c,maxHeight:l})}}},[r.anchorEl,r.refSectionTitle]);n.useEffect(function(){if(r.open){window.addEventListener("resize",I);var e=requestAnimationFrame(I),n=null;return A.current&&(n=new ResizeObserver(function(){cancelAnimationFrame(e),e=requestAnimationFrame(I)})).observe(A.current),function(){cancelAnimationFrame(e),window.removeEventListener("resize",I),null==n||n.disconnect()}}},[r.open,I]),n.useEffect(function(){var e=o.current;if(e&&(c.open||r.open)){var n=function(e){S(),A.current&&A.current.contains(e.target)||(v(null),M())};return e.addEventListener("scroll",n,{capture:!0}),function(){e.removeEventListener("scroll",n,{capture:!0})}}},[o,c.open,r.open,S,M]);var R=n.useCallback(function(e){S(),v(null),u(e)},[S]),h=n.useCallback(function(){null!==c.sectionIdx&&c.anchorEl?R(e.__assign(e.__assign({},c),{open:!0})):S()},[c,S,R]);return{cognitivePopup:r,setCognitivePopup:u,moreFunctions:c,setMoreFunctions:l,summaryPopup:P,setSummaryPopup:p,closeSummaryPopup:_,position:E,setPosition:v,activeBadgeId:T,setActiveBadgeId:d,popupRef:A,closeCognitivePopup:M,closeMoreFunctionsPopup:S,recalcPosition:I,handleOpenCognitiveCompare:h,openCognitivePopupFromState:R}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../CognitiveCompareConstants.js");exports.useComparePopups=n=>{const[o,r]=e.useState(t.EMPTY_SECTION_POPUP_STATE),[i,u]=e.useState(t.EMPTY_SECTION_POPUP_STATE),[s,a]=e.useState(t.EMPTY_SUMMARY_POPUP_STATE),c=e.useCallback(()=>{a(t.EMPTY_SUMMARY_POPUP_STATE)},[]),[l,P]=e.useState(null),[p,E]=e.useState(null),_=e.useRef(null),m=e.useRef(null);e.useEffect(()=>{m.current=null},[o.sectionIdx,o.open]);const T=e.useCallback(()=>{P(null),r(t.EMPTY_SECTION_POPUP_STATE),E(null)},[]),A=e.useCallback(()=>{u(t.EMPTY_SECTION_POPUP_STATE)},[]),O=e.useCallback(()=>{if(!o.anchorEl||!o.refSectionTitle)return;const e=o.anchorEl.getBoundingClientRect();if(0===e.width&&0===e.height)return;const n=_?.current?.offsetHeight||0,r=Math.min(t.POPUP_WIDTH,window.innerWidth-2*t.VIEWPORT_MARGIN),i=window.innerHeight-e.bottom-t.POPUP_GAP-t.VIEWPORT_MARGIN,u=e.top-t.POPUP_GAP-t.VIEWPORT_MARGIN;let s=i<n&&u>i;s=null!==m.current?!0===m.current&&(u>=n||u>=i):!(i>=n||i>=u),m.current=s;const a=s?u:i,c=Math.min(n||9999,a),l=s?e.top-t.POPUP_GAP-c:e.bottom+t.POPUP_GAP,p=e.left+e.width/2,E=p-r/2,T=Math.max(t.VIEWPORT_MARGIN,Math.min(E,window.innerWidth-r-t.VIEWPORT_MARGIN)),A=Math.max(t.ARROW_SIZE+4,Math.min(p-T,r-t.ARROW_SIZE-4));P({top:l,left:T,arrowLeft:A,openAbove:s,maxHeight:a})},[o.anchorEl,o.refSectionTitle]);e.useEffect(()=>{if(!o.open)return;window.addEventListener("resize",O);let e=requestAnimationFrame(O),t=null;return _.current&&(t=new ResizeObserver(()=>{cancelAnimationFrame(e),e=requestAnimationFrame(O)}),t.observe(_.current)),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",O),t?.disconnect()}},[o.open,O]),e.useEffect(()=>{const e=n.current;if(!e||!i.open&&!o.open)return;const t=e=>{A(),_.current&&_.current.contains(e.target)||(P(null),T())};return e.addEventListener("scroll",t,{capture:!0}),()=>{e.removeEventListener("scroll",t,{capture:!0})}},[n,i.open,o.open,A,T]);const d=e.useCallback(e=>{A(),P(null),r(e)},[A]),M=e.useCallback(()=>{null!==i.sectionIdx&&i.anchorEl?d({...i,open:!0}):A()},[i,A,d]);return{cognitivePopup:o,setCognitivePopup:r,moreFunctions:i,setMoreFunctions:u,summaryPopup:s,setSummaryPopup:a,closeSummaryPopup:c,position:l,setPosition:P,activeBadgeId:p,setActiveBadgeId:E,popupRef:_,closeCognitivePopup:T,closeMoreFunctionsPopup:A,recalcPosition:O,handleOpenCognitiveCompare:M,openCognitivePopupFromState:d}};
2
2
  //# sourceMappingURL=useComparePopups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useComparePopups.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"useComparePopups.js","sources":["../../../../../src/features/CognitiveCompare/hooks/useComparePopups.tsx"],"sourcesContent":["import React, { useState, useCallback, useRef, useEffect } from \"react\";\nimport { SectionPopupState, PopupPosition, SummaryPopupState } from \"../CognitiveCompareTypes\";\nimport { EMPTY_SECTION_POPUP_STATE, POPUP_GAP, POPUP_WIDTH, VIEWPORT_MARGIN, ARROW_SIZE, EMPTY_SUMMARY_POPUP_STATE } from \"../CognitiveCompareConstants\";\n\nexport const useComparePopups = (scrollContainerRef: React.RefObject<HTMLDivElement>,) => {\n const [cognitivePopup, setCognitivePopup] = useState<SectionPopupState>(EMPTY_SECTION_POPUP_STATE);\n const [moreFunctions, setMoreFunctions] = useState<SectionPopupState>(EMPTY_SECTION_POPUP_STATE);\n const [summaryPopup, setSummaryPopup] = useState<SummaryPopupState>(EMPTY_SUMMARY_POPUP_STATE);\n const closeSummaryPopup = useCallback(()=>{\n setSummaryPopup(EMPTY_SUMMARY_POPUP_STATE);\n }, []);\n const [position, setPosition] = useState<PopupPosition | null>(null);\n const [activeBadgeId, setActiveBadgeId] = useState<string | null>(null);\n\n const popupRef = useRef<HTMLDivElement>(null);\n const popupDirectionLock = useRef<boolean | null>(null);\n\n useEffect(() => {\n popupDirectionLock.current = null;\n }, [cognitivePopup.sectionIdx, cognitivePopup.open]);\n\n const closeCognitivePopup = useCallback(() => {\n setPosition(null);\n setCognitivePopup(EMPTY_SECTION_POPUP_STATE);\n setActiveBadgeId(null);\n }, []);\n\n const closeMoreFunctionsPopup = useCallback(() => {\n setMoreFunctions(EMPTY_SECTION_POPUP_STATE);\n }, []);\n\n const recalcPosition = useCallback(() => {\n if (!cognitivePopup.anchorEl || !cognitivePopup.refSectionTitle) return;\n\n const badgeRect = cognitivePopup.anchorEl.getBoundingClientRect();\n if (badgeRect.width === 0 && badgeRect.height === 0) return;\n\n const popupH = popupRef?.current?.offsetHeight || 0;\n const popupW = Math.min(POPUP_WIDTH, window.innerWidth - VIEWPORT_MARGIN * 2);\n\n const spaceBelow = window.innerHeight - badgeRect.bottom - POPUP_GAP - VIEWPORT_MARGIN;\n const spaceAbove = badgeRect.top - POPUP_GAP - VIEWPORT_MARGIN;\n\n let openAbove = spaceBelow < popupH && spaceAbove > spaceBelow;\n if (popupDirectionLock.current !== null) {\n openAbove = popupDirectionLock.current === true ? (spaceAbove >= popupH || spaceAbove >= spaceBelow) : false;\n } else {\n openAbove = !(spaceBelow >= popupH || spaceBelow >= spaceAbove);\n }\n\n popupDirectionLock.current = openAbove;\n const dynamicMaxHeight = openAbove ? spaceAbove : spaceBelow;\n const actualPopupH = Math.min(popupH || 9999, dynamicMaxHeight);\n\n const top = openAbove ? badgeRect.top - POPUP_GAP - actualPopupH : badgeRect.bottom + POPUP_GAP;\n const badgeCenterX = badgeRect.left + badgeRect.width / 2;\n const rawLeft = badgeCenterX - popupW / 2;\n const clampedLeft = Math.max(VIEWPORT_MARGIN, Math.min(rawLeft, window.innerWidth - popupW - VIEWPORT_MARGIN));\n const arrowLeft = Math.max(ARROW_SIZE + 4, Math.min(badgeCenterX - clampedLeft, popupW - ARROW_SIZE - 4));\n\n setPosition({ top, left: clampedLeft, arrowLeft, openAbove, maxHeight: dynamicMaxHeight });\n }, [cognitivePopup.anchorEl, cognitivePopup.refSectionTitle]);\n\n useEffect(() => {\n if (!cognitivePopup.open) return;\n window.addEventListener(\"resize\", recalcPosition);\n let raf = requestAnimationFrame(recalcPosition);\n let popupObserver: ResizeObserver | null = null;\n if (popupRef.current) {\n popupObserver = new ResizeObserver(() => {\n cancelAnimationFrame(raf);\n raf = requestAnimationFrame(recalcPosition);\n });\n popupObserver.observe(popupRef.current);\n }\n return () => {\n cancelAnimationFrame(raf);\n window.removeEventListener(\"resize\", recalcPosition);\n popupObserver?.disconnect();\n };\n }, [cognitivePopup.open, recalcPosition]);\n\n useEffect(() => {\n const scrollContainer = scrollContainerRef.current;\n if (!scrollContainer || (!moreFunctions.open && !cognitivePopup.open)) return;\n\n const handleScroll = (e: Event) => {\n closeMoreFunctionsPopup();\n if (popupRef.current && popupRef.current.contains(e.target as Node)) {\n return;\n }\n setPosition(null);\n closeCognitivePopup();\n };\n\n scrollContainer.addEventListener(\"scroll\", handleScroll, { capture: true });\n return () => {\n scrollContainer.removeEventListener(\"scroll\", handleScroll, {\n capture: true,\n });\n };\n }, [\n scrollContainerRef,\n moreFunctions.open,\n cognitivePopup.open,\n closeMoreFunctionsPopup,\n closeCognitivePopup,\n ]);\n\n\n const openCognitivePopupFromState = useCallback(\n (nextPopup: SectionPopupState) => {\n closeMoreFunctionsPopup();\n setPosition(null);\n setCognitivePopup(nextPopup);\n },\n [closeMoreFunctionsPopup],\n );\n\n const handleOpenCognitiveCompare = useCallback(() => {\n if (moreFunctions.sectionIdx === null || !moreFunctions.anchorEl) {\n closeMoreFunctionsPopup();\n return;\n }\n\n openCognitivePopupFromState({\n ...moreFunctions,\n open: true,\n });\n }, [moreFunctions, closeMoreFunctionsPopup, openCognitivePopupFromState]);\n\n return {\n cognitivePopup,\n setCognitivePopup,\n moreFunctions,\n setMoreFunctions,\n summaryPopup,\n setSummaryPopup,\n closeSummaryPopup,\n position,\n setPosition,\n activeBadgeId,\n setActiveBadgeId,\n popupRef,\n closeCognitivePopup,\n closeMoreFunctionsPopup,\n recalcPosition,\n handleOpenCognitiveCompare,\n openCognitivePopupFromState,\n };\n};\n"],"names":["scrollContainerRef","cognitivePopup","setCognitivePopup","useState","EMPTY_SECTION_POPUP_STATE","moreFunctions","setMoreFunctions","summaryPopup","setSummaryPopup","EMPTY_SUMMARY_POPUP_STATE","closeSummaryPopup","useCallback","position","setPosition","activeBadgeId","setActiveBadgeId","popupRef","useRef","popupDirectionLock","useEffect","current","sectionIdx","open","closeCognitivePopup","closeMoreFunctionsPopup","recalcPosition","anchorEl","refSectionTitle","badgeRect","getBoundingClientRect","width","height","popupH","offsetHeight","popupW","Math","min","POPUP_WIDTH","window","innerWidth","VIEWPORT_MARGIN","spaceBelow","innerHeight","bottom","POPUP_GAP","spaceAbove","top","openAbove","dynamicMaxHeight","actualPopupH","badgeCenterX","left","rawLeft","clampedLeft","max","arrowLeft","ARROW_SIZE","maxHeight","addEventListener","raf","requestAnimationFrame","popupObserver","ResizeObserver","cancelAnimationFrame","observe","removeEventListener","disconnect","scrollContainer","handleScroll","e","contains","target","capture","openCognitivePopupFromState","nextPopup","handleOpenCognitiveCompare"],"mappings":"iKAIiCA,IAC/B,MAAOC,EAAgBC,GAAqBC,WAA4BC,EAAyBA,4BAC1FC,EAAeC,GAAoBH,WAA4BC,EAAyBA,4BACxFG,EAAcC,GAAmBL,WAA4BM,EAAyBA,2BACvFC,EAAoBC,EAAAA,YAAY,KACpCH,EAAgBC,EAAyBA,4BACxC,KACIG,EAAUC,GAAeV,WAA+B,OACxDW,EAAeC,GAAoBZ,WAAwB,MAE5Da,EAAWC,SAAuB,MAClCC,EAAqBD,SAAuB,MAElDE,EAAAA,UAAU,KACRD,EAAmBE,QAAU,MAC5B,CAACnB,EAAeoB,WAAYpB,EAAeqB,OAExC,MAAAC,EAAsBZ,EAAAA,YAAY,KACtCE,EAAY,MACZX,EAAkBE,EAAyBA,2BAC3CW,EAAiB,OAChB,IAEGS,EAA0Bb,EAAAA,YAAY,KAC1CL,EAAiBF,EAAyBA,4BACzC,IAEGqB,EAAiBd,EAAAA,YAAY,KACjC,IAAKV,EAAeyB,WAAazB,EAAe0B,gBAAiB,OAE3D,MAAAC,EAAY3B,EAAeyB,SAASG,wBAC1C,GAAwB,IAApBD,EAAUE,OAAoC,IAArBF,EAAUG,OAAc,OAE/C,MAAAC,EAAShB,GAAUI,SAASa,cAAgB,EAC5CC,EAASC,KAAKC,IAAIC,EAAAA,YAAaC,OAAOC,WAA+B,EAAlBC,mBAEnDC,EAAaH,OAAOI,YAAcd,EAAUe,OAASC,EAAYA,UAAAJ,kBACjEK,EAAajB,EAAUkB,IAAMF,EAAAA,UAAYJ,EAAAA,gBAE3C,IAAAO,EAAYN,EAAaT,GAAUa,EAAaJ,EAElDM,EADiC,OAA/B7B,EAAmBE,SACsB,IAA/BF,EAAmB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AUU,EAAc,CAAEI,SAAS,IAC7D,KACWL,EAAAF,oBAAoB,SAAUG,EAAc,CAC1DI,SAAS,MAGZ,CACDxE,EACAK,EAAciB,KACdrB,EAAeqB,KACfE,EACAD,IAIF,MAAMkD,EAA8B9D,EAAAA,YAC/B+D,IACyBlD,IACxBX,EAAY,MACZX,EAAkBwE,IAEpB,CAAClD,IAGCmD,EAA6BhE,EAAAA,YAAY,KACV,OAA7BN,EAAcgB,YAAwBhB,EAAcqB,SAK5B+C,EAAA,IACvBpE,EACHiB,MAAM,IANkBE,KAQzB,CAACnB,EAAemB,EAAyBiD,IAEvC,MAAA,CACLxE,iBACAC,oBACAG,gBACAC,mBACAC,eACAC,kBACAE,oBACAE,WACAC,cACAC,gBACAC,mBACAC,WACAO,sBACAC,0BACAC,iBACAkD,6BACAF"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react"),i=require("../CognitiveComparehelpers.js");exports.useDeviationNavigation=function(n){var t=n.proposedSections,r=n.existingSections,l=n.parentDeviationRecord,u=n.expandedSections,c=n.maintainRelativeOrder,s=n.scrollContainerRef,d=n.leftContainerRef,v=n.rightContainerRef,a=n.lhsBadgeRefs,f=n.rhsBadgeRefs,h=o.useState({}),R=h[0],g=h[1],w=o.useRef();o.useEffect(function(){if(s.current){var o=c?d.current:s.current;if(o){var n=null,v=setTimeout(function(){var s=function(e,o){var i=e.getBoundingClientRect(),n=o.getBoundingClientRect();return i.bottom<n.top?"above":i.top>n.bottom?"below":"inside"};n=i.debounce(function(){g(function(n){var d=e.__assign({},n);return t.forEach(function(e,n){var t=c?!!u["left-".concat(n)]:!!u[String(n)],r=!1,v=!1,f=null,h=null,R=null,g=null;t&&(null==e?void 0:e.id)&&(l[e.id]||[]).forEach(function(n){var t="".concat(n.id).concat(i.DEVIATION_BADGE_SEPARATOR,"0"),l=a.current[t];if(null==l?void 0:l.current){var u=s(l.current,o);R||(R=l,g=u),"above"===u?(r=!0,f=l):"below"!==u||v?w.current===e.id&&(w.current=""):(v=!0,h=l)}}),e.id&&(d[e.id]={showAbove:r,showBelow:v,showAboveRef:f,showBelowRef:h,firstDeviationRef:R,firstDeviationPosition:g,columnKey:"left"})}),c||r.forEach(function(e,n){var t=!!u[String(n)],r=!1,c=!1,v=null,a=null,h=null,R=null;t&&(null==e?void 0:e.id)&&(l[e.id]||[]).forEach(function(n){var t,l,u,g,p,b=!(null===(t=n.refIndexes)||void 0===t?void 0:t.length)||void 0!==n.selfIndex&&n.selfIndex<0,B="".concat(n.id).concat(i.DEVIATION_BADGE_SEPARATOR,"0"),m=f.current[B];if((null==m?void 0:m.current)&&b&&(null==e?void 0:e.id)){var A=s(m.current,o);if(h||(h=m,R=A),"above"===A){var D=null===(u=null===(l=d[e.id])||void 0===l?void 0:l.showAboveRef)||void 0===u?void 0:u.current;(!D||D.getBoundingClientRect().top<m.current.getBoundingClientRect().top)&&(r=!0,v=m)}else if("below"!==A||c)w.current===e.id&&(w.current="");else{var T=null===(p=null===(g=d[e.id])||void 0===g?void 0:g.showBelowRef)||void 0===p?void 0:p.current;(!T||T.getBoundingClientRect().top>m.current.getBoundingClientRect().top)&&(c=!0,a=m)}}}),e.id&&t&&(r&&(d[e.id]=d[e.id]||{showAbove:!1,showAboveRef:null,showBelow:!1,showBelowRef:null,firstDeviationRef:null,firstDeviationPosition:null,columnKey:"right"},d[e.id].showAbove=r,d[e.id].showAboveRef=v,d[e.id].firstDeviationRef=h,d[e.id].firstDeviationPosition=R,d[e.id].columnKey="right"),c&&(d[e.id]=d[e.id]||{showAbove:!1,showAboveRef:null,showBelow:!1,showBelowRef:null,firstDeviationRef:null,firstDeviationPosition:null,columnKey:"right"},d[e.id].showBelow=c,d[e.id].showBelowRef=a,d[e.id].firstDeviationRef=h,d[e.id].firstDeviationPosition=R,d[e.id].columnKey="right"))}),d})},100),n(),null==o||o.addEventListener("scroll",n)},0);return function(){clearTimeout(v),n&&o.removeEventListener("scroll",n)}}}},[t,r,l,u,c,s,d,a,f]);var p=o.useCallback(function(e,o,n){var t,r;if(null==n?void 0:n.skipScroll)o();else if(e){var l=s.current;if(c&&((null===(t=d.current)||void 0===t?void 0:t.contains(e))?l=d.current:(null===(r=v.current)||void 0===r?void 0:r.contains(e))&&(l=v.current)),l){var u=e.getBoundingClientRect(),a=l.getBoundingClientRect(),f=a.bottom-.35*a.height,h=a.top+.35*a.height;if(u.top>f||u.top<h){var R=a.top+a.height/2,g=u.top+u.height/2-R,w=250;if(c){var p=d.current,b=v.current;p&&b?(i.smoothScrollTo(b,b.scrollTop+g,w),i.smoothScrollTo(p,p.scrollTop+g,w,o)):p?i.smoothScrollTo(p,p.scrollTop+g,w,o):b?i.smoothScrollTo(b,b.scrollTop+g,w,o):o()}else s.current?i.smoothScrollTo(s.current,s.current.scrollTop+g,w,o):o()}else o()}else o()}else o()},[c]);return{showDeviationNavigation:R,showOpenNodeRef:w,adjustScrollForPopup:p}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),o=require("../CognitiveComparehelpers.js");exports.useDeviationNavigation=({proposedSections:t,existingSections:n,parentDeviationRecord:i,expandedSections:r,maintainRelativeOrder:l,scrollContainerRef:s,leftContainerRef:c,rightContainerRef:u,lhsBadgeRefs:d,rhsBadgeRefs:f})=>{const[a,h]=e.useState({}),v=e.useRef();e.useEffect(()=>{if(!s.current)return;const e=l?c.current:s.current;if(!e)return;let u=null;const a=setTimeout(()=>{const s=(e,o)=>{const t=e.getBoundingClientRect(),n=o.getBoundingClientRect();return t.bottom<n.top?"above":t.top>n.bottom?"below":"inside"};u=o.debounce(()=>{h(c=>{const u={...c};return t.forEach((t,n)=>{const c=l?!!r[`left-${n}`]:!!r[String(n)];let f=!1,a=!1,h=null,R=null,g=null,w=null;c&&t?.id&&(i[t.id]||[]).forEach(n=>{const i=`${n.id}${o.DEVIATION_BADGE_SEPARATOR}0`,r=d.current[i];if(!r?.current)return;const l=s(r.current,e);g||(g=r,w=l),"above"===l?(f=!0,h=r):"below"!==l||a?v.current===t.id&&(v.current=""):(a=!0,R=r)}),t.id&&(u[t.id]={showAbove:f,showBelow:a,showAboveRef:h,showBelowRef:R,firstDeviationRef:g,firstDeviationPosition:w,columnKey:"left"})}),l||n.forEach((t,n)=>{const l=!!r[String(n)];let c=!1,d=!1,a=null,h=null,R=null,g=null;l&&t?.id&&(i[t.id]||[]).forEach(n=>{const i=!n.refIndexes?.length||void 0!==n.selfIndex&&n.selfIndex<0,r=`${n.id}${o.DEVIATION_BADGE_SEPARATOR}0`,l=f.current[r];if(!l?.current||!i||!t?.id)return;const w=s(l.current,e);if(R||(R=l,g=w),"above"===w){const e=u[t.id]?.showAboveRef?.current;(!e||e.getBoundingClientRect().top<l.current.getBoundingClientRect().top)&&(c=!0,a=l)}else if("below"!==w||d)v.current===t.id&&(v.current="");else{const e=u[t.id]?.showBelowRef?.current;(!e||e.getBoundingClientRect().top>l.current.getBoundingClientRect().top)&&(d=!0,h=l)}}),t.id&&l&&(c&&(u[t.id]=u[t.id]||{showAbove:!1,showAboveRef:null,showBelow:!1,showBelowRef:null,firstDeviationRef:null,firstDeviationPosition:null,columnKey:"right"},u[t.id].showAbove=c,u[t.id].showAboveRef=a,u[t.id].firstDeviationRef=R,u[t.id].firstDeviationPosition=g,u[t.id].columnKey="right"),d&&(u[t.id]=u[t.id]||{showAbove:!1,showAboveRef:null,showBelow:!1,showBelowRef:null,firstDeviationRef:null,firstDeviationPosition:null,columnKey:"right"},u[t.id].showBelow=d,u[t.id].showBelowRef=h,u[t.id].firstDeviationRef=R,u[t.id].firstDeviationPosition=g,u[t.id].columnKey="right"))}),u})},100),u(),e?.addEventListener("scroll",u)},0);return()=>{clearTimeout(a),u&&e.removeEventListener("scroll",u)}},[t,n,i,r,l,s,c,d,f]);const R=e.useCallback((e,t,n)=>{if(n?.skipScroll)return void t();if(!e)return void t();let i=s.current;if(l&&(c.current?.contains(e)?i=c.current:u.current?.contains(e)&&(i=u.current)),!i)return void t();const r=e.getBoundingClientRect(),d=i.getBoundingClientRect(),f=d.bottom-.35*d.height,a=d.top+.35*d.height;if(r.top>f||r.top<a){const e=d.top+d.height/2,n=r.top+r.height/2-e,i=250;if(l){const e=c.current,r=u.current;e&&r?(o.smoothScrollTo(r,r.scrollTop+n,i),o.smoothScrollTo(e,e.scrollTop+n,i,t)):e?o.smoothScrollTo(e,e.scrollTop+n,i,t):r?o.smoothScrollTo(r,r.scrollTop+n,i,t):t()}else s.current?o.smoothScrollTo(s.current,s.current.scrollTop+n,i,t):t()}else t()},[l]);return{showDeviationNavigation:a,showOpenNodeRef:v,adjustScrollForPopup:R}};
2
2
  //# sourceMappingURL=useDeviationNavigation.js.map