@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
- import{useState as t,useRef as e,useCallback as n,useEffect as i}from"react";import{DEVIATION_BADGE_SEPARATOR as r}from"../CognitiveComparehelpers.js";var c=function(c){var o=c.containerRef,l=c.leftContainerRef,u=c.rightContainerRef;c.svgContainerRef;var a=c.pathRefs,d=c.leftHeaderRef,s=c.rightHeaderRef,v=c.proposedSections,h=c.existingSections,g=c.visibleFields,f=c.leftRefs,p=c.rightRefs,b=c.sectionLeftRefs,y=c.sectionRightRefs,x=c.subSectionLeftRefs,m=c.subSectionRightRefs,R=c.lhsBadgeRefs,C=c.rhsBadgeRefs,A=c.sectionRowRefs,B=c.expandedSections,S=c.expandedSubSections,M=c.connectedSections,I=c.isSideBySide,T=c.activeSideBySideSection,L=c.maintainRelativeOrder,F=c.isGuidelineMode,H=c.cognitiveMap,w=c.getSectionCompareStyle,k=c.getSubSectionCompareStyle,E=c.getDeviationStyleByKey,N=c.isArrowVisible,Y=c.isAnimatingRef,D=c.isSideBySideRef,j=c.sideBySideCacheRef,O=c.sideBySideLineRef,z=c.activeSideBySideSectionRef,P=c.activeSideBySideRightSectionRef,Q=c.connectedLines,X=c.setConnectedLines,q=c.cachedConnectedPositions,G=c.calculateLinesRef,K=c.resizeTimerRef,V=c.scrollLock,J=c.scrollSyncLocked,U=c.handleResizeRef,W=c.activeProposed,Z=c.existingRule,$=c.analysisData,_=c.pendingScrollTargetRef,tt=c.pendingScrollCallbackRef,et=c.resolvedComparisonConfig,nt=c.getFieldData,it=t([]),rt=it[0],ct=it[1],ot=t(null),lt=ot[0],ut=ot[1],at=t([]),dt=at[0],st=at[1],vt=null!=Q?Q:dt,ht=null!=X?X:st,gt=t({width:0,height:0}),ft=gt[0],pt=gt[1],bt=e(!1),yt=e(!1),xt=e(!1),mt=e(null),Rt=e([]),Ct=null!=q?q:Rt,At=function(t,e,n,i,r,c,o){if(Math.abs(i-e)<=1)return c&&o?"M ".concat(t,",").concat(e," L ").concat(n,",").concat(i):c&&!o?"M ".concat(t,",").concat(e," L ").concat(r,",").concat(e):!c&&o?"M ".concat(r,",").concat(e," L ").concat(n,",").concat(i):"M ".concat(r,",").concat(e," L ").concat(r,",").concat(i);var l=Math.min(15,Math.abs(r-t),Math.abs(i-e)/2),u=Math.min(15,Math.abs(n-r),Math.abs(i-e)/2),a=i>e?l:-l,d=i>e?u:-u,s=n>r?u:-u;return c&&o?"M ".concat(t,",").concat(e," L ").concat(r-l,",").concat(e," Q ").concat(r,",").concat(e," ").concat(r,",").concat(e+a," L ").concat(r,",").concat(i-d," Q ").concat(r,",").concat(i," ").concat(r+s,",").concat(i," L ").concat(n,",").concat(i):c&&!o?"M ".concat(t,",").concat(e," L ").concat(r-l,",").concat(e," Q ").concat(r,",").concat(e," ").concat(r,",").concat(e+a," L ").concat(r,",").concat(i):!c&&o?"M ".concat(r,",").concat(e," L ").concat(r,",").concat(i-d," Q ").concat(r,",").concat(i," ").concat(r+s,",").concat(i," L ").concat(n,",").concat(i):"M ".concat(r,",").concat(e," L ").concat(r,",").concat(i)},Bt=n(function(){var t,e,n,i,c,a,A,N,D,j,O,z,P,Q,X,q,G,K;if(!bt.current&&!Y.current){bt.current=!0;try{if(!o.current)return;var V=function(t){var e=t.split("-"),n=e[0];if(!B[n]&&!1===L)return!1;if(L&&!B["left-".concat(n)]&&!B["right-".concat(n)]&&!B[n])return!1;for(var i=n,r=1;r<e.length-1;r++)if(i+="-".concat(e[r]),!S[i])return!1;return!0},J=o.current.getBoundingClientRect();pt({width:J.width,height:J.height});var U=[];if(g.forEach(function(t){var e,n,i=t.key,r=null===(e=f.current[i])||void 0===e?void 0:e.current,c=null===(n=p.current[i])||void 0===n?void 0:n.current;r&&c&&(r.style.height="auto",c.style.height="auto",r.style.minHeight="0px",c.style.minHeight="0px")}),!Y.current){for(var W=0;W<Math.max(v.length,h.length);W++){var Z=null===(t=b.current[W])||void 0===t?void 0:t.current,$=null===(e=y.current[W])||void 0===e?void 0:e.current;Z&&(Z.style.height="auto",Z.style.minHeight="0px"),$&&($.style.height="auto",$.style.minHeight="0px")}L||Object.keys(x.current).forEach(function(t){var e,n;if(V(t)){var i=null===(e=x.current[t])||void 0===e?void 0:e.current,r=null===(n=m.current[t])||void 0===n?void 0:n.current;i&&r&&(i.style.height="auto",r.style.height="auto",i.style.minHeight="0px",r.style.minHeight="0px")}})}var _={};g.forEach(function(t){var e,n,i=t.key,r=null===(e=f.current[i])||void 0===e?void 0:e.current,c=null===(n=p.current[i])||void 0===n?void 0:n.current;if(r&&c){var o=r.getBoundingClientRect(),l=c.getBoundingClientRect();_[i]=Math.max(o.height,l.height)}});var tt={left:{},right:{}},et={};if(!Y.current)if(L){if(I&&null!==T)if("number"==typeof T){var nt=T,it=v[nt],rt=null===(c=b.current[nt])||void 0===c?void 0:c.current;rt&&it&&(it.refIndexes||[]).forEach(function(t){var e,n=h.findIndex(function(e){return e.selfIndex===t}),i=null===(e=y.current[n])||void 0===e?void 0:e.current;if(i&&(B["left-".concat(nt)]||B["right-".concat(n)])){var r=Math.max(rt.getBoundingClientRect().height,i.getBoundingClientRect().height);tt.left[nt]=Math.max(tt.left[nt]||0,r),tt.right[n]=Math.max(tt.right[n]||0,r)}})}else{var ot=T.split(r)[2];if(ot){Z=null===(a=x.current[ot])||void 0===a?void 0:a.current,$=null===(A=m.current[ot])||void 0===A?void 0:A.current;if(Z&&$){lt=Math.max(Z.getBoundingClientRect().height,$.getBoundingClientRect().height);et[ot]=Math.max(et[ot]||0,lt)}}}}else{Object.keys(x.current).forEach(function(t){var e,n;if(V(t)){var i=null===(e=x.current[t])||void 0===e?void 0:e.current,r=null===(n=m.current[t])||void 0===n?void 0:n.current;if(i&&r&&null!==i.offsetParent&&null!==r.offsetParent){var c=i.getBoundingClientRect(),o=r.getBoundingClientRect(),l=Math.max(c.height,o.height);et[t]=l,i.style.minHeight="".concat(l,"px"),r.style.minHeight="".concat(l,"px")}}});for(W=0;W<Math.min(v.length,h.length);W++){var Z=null===(n=b.current[W])||void 0===n?void 0:n.current,$=null===(i=y.current[W])||void 0===i?void 0:i.current;if(Z&&$){var lt=Math.max(Z.getBoundingClientRect().height,$.getBoundingClientRect().height);tt.left[W]=lt,tt.right[W]=lt}}}if(g.forEach(function(t){var e,n,i=t.key,r=null===(e=f.current[i])||void 0===e?void 0:e.current,c=null===(n=p.current[i])||void 0===n?void 0:n.current;if(r&&c){var o=_[i];r.style.minHeight="".concat(o,"px"),c.style.minHeight="".concat(o,"px")}}),Y.current||(Object.entries(tt.left).forEach(function(t){var e,n=t[0],i=t[1],r=null===(e=b.current[Number(n)])||void 0===e?void 0:e.current;r&&(r.style.minHeight="".concat(i,"px"))}),Object.entries(tt.right).forEach(function(t){var e,n=t[0],i=t[1],r=null===(e=y.current[Number(n)])||void 0===e?void 0:e.current;r&&(r.style.minHeight="".concat(i,"px"))}),L||Object.keys(et).forEach(function(t){var e,n,i=null===(e=x.current[t])||void 0===e?void 0:e.current,r=null===(n=m.current[t])||void 0===n?void 0:n.current;if(i&&r&&et[t]){var c=et[t];i.style.minHeight="".concat(c,"px"),r.style.minHeight="".concat(c,"px")}})),!F){v.forEach(function(t,e){var n,i=t.continuationSourceRowId?v.findIndex(function(e){return e.comparisonRowId===t.continuationSourceRowId}):-1,r=i>=0?i:e,c=null===(n=b.current[r])||void 0===n?void 0:n.current;if(c){var o=function(t,e){if(!L)return h[e]?[e]:[];var n=(t.refIndexes||[]).map(function(t){return h.findIndex(function(e){return e.selfIndex===t})}).filter(function(t){return-1!==t});return!n.length&&h[e]?[e]:Array.from(new Set(n))}(t,e);o.forEach(function(t){var n,o,a,d,s,g,f,p,b,x,m,R,C=null===(n=y.current[t])||void 0===n?void 0:n.current;if(C){var A=c.getBoundingClientRect(),B=C.getBoundingClientRect(),S=A.right-J.left,M=B.left-J.left,F=A.top+18-J.top,k=B.top+18-J.top;if(L&&I&&T===e){var E=null!==(a=null===(o=l.current)||void 0===o?void 0:o.getBoundingClientRect().top)&&void 0!==a?a:0,N=null!==(s=null===(d=u.current)||void 0===d?void 0:d.getBoundingClientRect().top)&&void 0!==s?s:0,Y=E+(null!==(f=null===(g=l.current)||void 0===g?void 0:g.clientHeight)&&void 0!==f?f:1/0),D=N+(null!==(b=null===(p=u.current)||void 0===p?void 0:p.clientHeight)&&void 0!==b?b:1/0),j=function(t,e,n){return Math.max(e,Math.min(n,t))};F=j(A.top+18,E,Y)-J.top,k=j(B.top+18,N,D)-J.top}var O=w(r);O&&U.push({id:"line-".concat(r,"-").concat(t),x1:S,y1:F,x2:M,y2:k,style:O,sectionIdx:r,targetRightIdx:t,isSubSection:!1,isMappingContinuation:i>=0,hasCognitive:!!((null===(x=v[r])||void 0===x?void 0:x.cognitiveData)||(null===(m=h[t])||void 0===m?void 0:m.cognitiveData)||(null===(R=v[r])||void 0===R?void 0:R.nodeId)&&H[v[r].nodeId])})}})}})}if(!F&&I&&"string"==typeof T&&T.includes(r)){var at=T.split(r),dt=at[0],st=at[1],vt=at[2],gt=(at[3],"".concat(dt).concat(r).concat(st)),ft=null===(N=R.current[gt])||void 0===N?void 0:N.current,yt=null===(D=C.current[gt])||void 0===D?void 0:D.current;if(ft&&yt){var xt=ft.getBoundingClientRect(),mt=yt.getBoundingClientRect(),Rt=xt.right-J.left,Bt=mt.left-J.left,Mt=xt.top+xt.height/2-J.top,It=mt.top+mt.height/2-J.top;if(L){var Tt=null!==(O=null===(j=l.current)||void 0===j?void 0:j.getBoundingClientRect().top)&&void 0!==O?O:0,Lt=null!==(P=null===(z=u.current)||void 0===z?void 0:z.getBoundingClientRect().top)&&void 0!==P?P:0,Ft=Tt+(null!==(X=null===(Q=l.current)||void 0===Q?void 0:Q.clientHeight)&&void 0!==X?X:1/0),Ht=Lt+(null!==(G=null===(q=u.current)||void 0===q?void 0:q.clientHeight)&&void 0!==G?G:1/0),wt=function(t,e,n){return Math.max(e,Math.min(n,t))};Mt=wt(xt.top+xt.height/2,Tt,Ft)-J.top,It=wt(mt.top+mt.height/2,Lt,Ht)-J.top}var kt=null!==(K=E(dt,st))&&void 0!==K?K:k(vt);kt&&U.push({id:"line-subsec-".concat(gt),x1:Rt,y1:Mt,x2:Bt,y2:It,style:kt,sectionIdx:Number(vt.split("-")[0]),isSubSection:!0,subSectionKeyPath:T})}}if(ct(U),d.current&&s.current){var Et=d.current.getBoundingClientRect(),Nt=s.current.getBoundingClientRect(),Yt=(Et.top+Et.height/2-J.top+Nt.top+Nt.height/2-J.top)/2;ut({x1:Et.right-J.left,x2:Nt.left-J.left,y:Yt})}else ut(null);if(M.size>0){var Dt=[],jt=l.current,Ot=u.current;if(jt&&Ot){var zt=[],Pt=jt.getBoundingClientRect().top,Qt=Ot.getBoundingClientRect().top,Xt=Pt+jt.clientHeight,qt=Qt+Ot.clientHeight,Gt=jt.scrollTop,Kt=Ot.scrollTop,Vt=J.top,Jt=function(t,e,n){return Math.max(e,Math.min(n,t))};M.forEach(function(t){var e,n,i,c,o,l,u,a,d;if(F){var s=null,g=null,f=null;if("string"==typeof t&&t.includes(r)){var p=t.split(r),b=p[0],y=p[1],x=p[2],m="".concat(b).concat(r).concat(y);s=null===(e=R.current[m])||void 0===e?void 0:e.current,f=null!==(n=E(b,y))&&void 0!==n?n:k(x),g=Number((null==x?void 0:x.split("-")[0])||0)}else g=Number(t),s=null===(i=R.current[g])||void 0===i?void 0:i.current,f=w(g);if(!s)return;var A=document.querySelectorAll('[id^="guideline-target-"]');A.forEach(function(e,n){var i=s.getBoundingClientRect(),c=e.getBoundingClientRect(),o=i.right-J.left,l=c.left-J.left-0,u=o+75,a=i.top+i.height/2,d=c.top+c.height/2,v=a-Pt+Gt,h=d-Qt+Kt,g="conn-guide-".concat(t,"-").concat(n),p="";"string"==typeof t&&t.includes(r)?p=(t.split(r)[2]||"").split("-").map(function(t){return Number(t)+1}).join("."):p=String(Number(t)+1);var b=String.fromCharCode(97+n),y=1===A.length?null:"".concat(p,"(").concat(b,")");zt.push({lhsScrollY:v,rhsScrollY:h,x1:o,x2:l,containerTop:Vt,leftIdx:t,rhsArrayIdx:n,styleColor:(null==f?void 0:f.badgeBorder)||"#6366F1",styleBg:(null==f?void 0:f.badgeBg)||"#FFFFFF",styleText:(null==f?void 0:f.badgeText)||"#A16207",styleId:g,centerX:u});var x=Jt(a,Pt,Xt),m=Jt(d,Qt,qt),R=x-Vt,C=m-Vt,B=At(o,R,l,C,u,a>=Pt-4&&a<=Xt+4,d>=Qt-4&&d<=qt+4);Dt.push({id:g,pathD:B,style:f,leftIdx:t,rhsArrayIdx:n,x1:o,x2:l,y1:R,y2:C,centerX:u,matchLabel:y,isGuideline:!0})})}else if("string"==typeof t&&t.includes(r)){var B=t.split(r),S=(b=B[0],y=B[1],x=B[2],B[3],m="".concat(b).concat(r).concat(y),null===(c=R.current[m])||void 0===c?void 0:c.current),M=null===(o=C.current[m])||void 0===o?void 0:o.current;if(!S||!M)return;var I=S.getBoundingClientRect(),T=M.getBoundingClientRect(),H=null!==(l=E(b,y))&&void 0!==l?l:k(x),N=I.right-J.left,Y=T.left-J.left-0,D=N+75,j=I.top+I.height/2,O=T.top+T.height/2,z=j-Pt+Gt,P=O-Qt+Kt,Q="conn-subsec-".concat(m),X=((x||"").split("-").map(function(t){return Number(t)+1}).join("."),null);zt.push({lhsScrollY:z,rhsScrollY:P,x1:N,x2:Y,containerTop:Vt,leftIdx:t,rhsArrayIdx:t,styleColor:(null==H?void 0:H.badgeBorder)||"#6366F1",styleBg:(null==H?void 0:H.badgeBg)||"#FFFFFF",styleText:(null==H?void 0:H.badgeText)||"#A16207",styleId:Q,centerX:D});var q=Jt(j,Pt,Xt),G=Jt(O,Qt,qt),K=At(N,$=q-Vt,Y,_=G-Vt,D,j>=Pt-4&&j<=Xt+4,O>=Qt-4&&O<=qt+4);Dt.push({id:Q,pathD:K,style:H,leftIdx:t,rhsArrayIdx:t,x1:N,x2:Y,y1:$,y2:_,matchLabel:X})}else if(L){var V=t,U=v[V];if(!(null===(d=null==U?void 0:U.refIndexes)||void 0===d?void 0:d.length))return;U.refIndexes.forEach(function(e,n){var i,r,c=h.findIndex(function(t){return t.selfIndex===e});if(-1!==c){var o=null===(i=R.current[V])||void 0===i?void 0:i.current,l=null===(r=C.current[c])||void 0===r?void 0:r.current;if(o&&l){var u=o.getBoundingClientRect(),a=l.getBoundingClientRect(),d=w(V),s=u.right-J.left,v=a.left-J.left-0,g=s+75,f=u.top+u.height/2,p=a.top+a.height/2,b=f-Pt+Gt,y=p-Qt+Kt,x="conn-".concat(V,"-").concat(c),m=String(Number(t)+1),A=String.fromCharCode(97+n),B=1===U.refIndexes.length?null:"".concat(m,"(").concat(A,")");zt.push({lhsScrollY:b,rhsScrollY:y,x1:s,x2:v,containerTop:Vt,leftIdx:V,rhsArrayIdx:c,styleColor:(null==d?void 0:d.badgeBorder)||"#6366F1",styleBg:(null==d?void 0:d.badgeBg)||"#FFFFFF",styleText:(null==d?void 0:d.badgeText)||"#A16207",styleId:x,centerX:g});var S=Jt(f,Pt,Xt),M=Jt(p,Qt,qt),I=S-Vt,T=M-Vt,L=At(s,I,v,T,g,f>=Pt-4&&f<=Xt+4,p>=Qt-4&&p<=qt+4);Dt.push({id:x,pathD:L,style:d,leftIdx:V,rhsArrayIdx:c,x1:s,x2:v,y1:I,y2:T,matchLabel:B})}}})}else{var W=t,Z=W;S=null===(u=R.current[W])||void 0===u?void 0:u.current,M=null===(a=C.current[Z])||void 0===a?void 0:a.current;if(!S||!M)return;I=S.getBoundingClientRect(),T=M.getBoundingClientRect(),H=w(W),N=I.right-J.left,Y=T.left-J.left-0,D=N+75,j=I.top+I.height/2,O=T.top+T.height/2,z=j-Pt+Gt,P=O-Qt+Kt,Q="conn-".concat(W,"-").concat(Z),String(Number(t)+1),X=null;zt.push({lhsScrollY:z,rhsScrollY:P,x1:N,x2:Y,containerTop:Vt,leftIdx:W,rhsArrayIdx:Z,styleColor:(null==H?void 0:H.badgeBorder)||"#6366F1",styleBg:(null==H?void 0:H.badgeBg)||"#FFFFFF",styleText:(null==H?void 0:H.badgeText)||"#A16207",styleId:Q,centerX:D});var $,_;q=Jt(j,Pt,Xt),G=Jt(O,Qt,qt),K=At(N,$=q-Vt,Y,_=G-Vt,D,j>=Pt-4&&j<=Xt+4,O>=Qt-4&&O<=qt+4);Dt.push({id:Q,pathD:K,style:H,leftIdx:W,rhsArrayIdx:Z,x1:N,x2:Y,y1:$,y2:_,matchLabel:X})}}),Ct.current=zt}ht(Dt),setTimeout(function(){return St()},10)}else ht([]),Ct.current=[],setTimeout(function(){return St()},10)}catch(t){console.error("Line render safe fail: ",t)}finally{bt.current=!1}}},[g,v,h,H,et,nt,w,E,L,I,T,M,B,S,F]),St=n(function(){var t,e,n,i,r,c,d,s,v,h,g,f,p,b,y,x,m,R,C,A=Ct.current;if(!A.length)return null===(t=a.current["guideline-up-stroke"])||void 0===t||t.setAttribute("visibility","hidden"),null===(e=a.current["guideline-up-badge"])||void 0===e||e.setAttribute("visibility","hidden"),null===(n=a.current["guideline-down-stroke"])||void 0===n||n.setAttribute("visibility","hidden"),void(null===(i=a.current["guideline-down-badge"])||void 0===i||i.setAttribute("visibility","hidden"));if(!Y.current){var B=null!==(c=null===(r=l.current)||void 0===r?void 0:r.scrollTop)&&void 0!==c?c:0,S=null!==(s=null===(d=u.current)||void 0===d?void 0:d.scrollTop)&&void 0!==s?s:0,M=null!==(h=null===(v=l.current)||void 0===v?void 0:v.clientHeight)&&void 0!==h?h:1/0,I=null!==(f=null===(g=u.current)||void 0===g?void 0:g.clientHeight)&&void 0!==f?f:1/0,T=null!==(b=null===(p=l.current)||void 0===p?void 0:p.getBoundingClientRect().top)&&void 0!==b?b:0,L=null!==(x=null===(y=u.current)||void 0===y?void 0:y.getBoundingClientRect().top)&&void 0!==x?x:0,F=T+M,H=L+I,w=null===(m=o.current)||void 0===m?void 0:m.getBoundingClientRect(),k=null!==(R=null==w?void 0:w.top)&&void 0!==R?R:0,E=null!==(C=null==w?void 0:w.height)&&void 0!==C?C:1/0,N=function(t,e,n){return Math.max(e,Math.min(n,t))},D=0,j=0,O=0,z=0,P="#6366F1",Q="#A16207",X=!1,q=0;if(A.forEach(function(t){var e=t.lhsScrollY-B+T,n=t.rhsScrollY-S+L,i=a.current[t.styleId+"-stroke"],r=a.current[t.styleId+"-bg"],c=a.current[t.styleId+"-btn"],o=a.current[t.styleId+"-number"];if(i||r){var l=N(e,T,F),u=N(n,L,H),d=l-k,s=u-k,v=e>=T-4&&e<=F+4,h=n>=L-4&&n<=H+4,g=!0;X=!0;var f=t.centerX||t.x1+75;0===O&&(O=t.x1,z=d,q=f,P=t.styleColor,t.styleBg,Q=t.styleText||"#A16207"),n<L-4?(D++,g=!1):n>H+4&&(j++,g=!1);var p=At(t.x1,d,t.x2,s,q,v,h);i&&(g&&p?(i.setAttribute("visibility","visible"),i.setAttribute("d",p)):i.setAttribute("visibility","hidden")),r&&(g&&p?(r.setAttribute("visibility","visible"),r.setAttribute("d",p)):r.setAttribute("visibility","hidden")),c&&(v&&g?(c.setAttribute("visibility","visible"),c.setAttribute("y",String(d-12))):c.setAttribute("visibility","hidden")),o&&(v&&g?(o.setAttribute("visibility","visible"),o.setAttribute("transform","translate(".concat(t.x2-42,", ").concat(s,")"))):o.setAttribute("visibility","hidden"))}}),X&&q>0){var G=a.current["guideline-up-stroke"],K=a.current["guideline-up-badge"],V=a.current["guideline-up-arrow"],J=a.current["guideline-up-text"],U=a.current["guideline-up-badge-rect"];if(D>0){var W=Math.max(15,L-k+15),Z=Math.min(15,Math.abs(q-O),Math.max(0,z-W)),$="M ".concat(O,",").concat(z," L ").concat(q-Z,",").concat(z," Q ").concat(q,",").concat(z," ").concat(q,",").concat(z-Z," L ").concat(q,",").concat(W);null==G||G.setAttribute("visibility","visible"),null==G||G.setAttribute("d",$),null==G||G.setAttribute("stroke",P),null==K||K.setAttribute("visibility","visible"),null==K||K.setAttribute("transform","translate(".concat(q,", ").concat(W,")")),V&&V.setAttribute("fill",P),J&&(J.textContent="+".concat(D),J.setAttribute("fill",Q)),U&&U.setAttribute("stroke",P)}else null==G||G.setAttribute("visibility","hidden"),null==K||K.setAttribute("visibility","hidden");var _=a.current["guideline-down-stroke"],tt=a.current["guideline-down-badge"],et=a.current["guideline-down-arrow"],nt=a.current["guideline-down-text"],it=a.current["guideline-down-badge-rect"];if(j>0){var rt=Math.min(E-15,H-k-15);Z=Math.min(15,Math.abs(q-O),Math.max(0,rt-z)),$="M ".concat(O,",").concat(z," L ").concat(q-Z,",").concat(z," Q ").concat(q,",").concat(z," ").concat(q,",").concat(z+Z," L ").concat(q,",").concat(rt);null==_||_.setAttribute("visibility","visible"),null==_||_.setAttribute("d",$),null==_||_.setAttribute("stroke",P),null==tt||tt.setAttribute("visibility","visible"),null==tt||tt.setAttribute("transform","translate(".concat(q,", ").concat(rt,")")),et&&et.setAttribute("fill",P),nt&&(nt.textContent="+".concat(j),nt.setAttribute("fill",Q)),it&&it.setAttribute("stroke",P)}else null==_||_.setAttribute("visibility","hidden"),null==tt||tt.setAttribute("visibility","hidden")}}},[]),Mt=n(function(){Ct.current.length>0&&!Y.current||(null!==mt.current&&clearTimeout(mt.current),mt.current=setTimeout(function(){G.current(),mt.current=null},50))},[]),It=n(function(t){if(null!==_.current&&tt.current&&Math.abs(t.currentTarget.scrollTop-_.current)<=2){var e=tt.current;_.current=null,tt.current=null,e()}if(!xt.current&&!V.current){if(L&&J&&(D.current||M.size>0)){var n=t.currentTarget,i=l.current,c=u.current,a=n===i?c:n===c?i:null;if(n&&a){var d=function(){var t,e,n,i,c,o,l,u,a,d,s,v=z.current,h=P.current;if(null===v)return{leftAnchor:null,rightAnchor:null};if("string"==typeof v&&v.includes(r)){var g=v.split(r),f="".concat(g[0]).concat(r).concat(g[1]);return{leftAnchor:(null===(t=R.current[f])||void 0===t?void 0:t.current)||(null===(e=x.current[g[2]])||void 0===e?void 0:e.current)||(null===(n=b.current[Number(g[2])])||void 0===n?void 0:n.current)||null,rightAnchor:(null===(i=C.current[f])||void 0===i?void 0:i.current)||(null===(c=m.current[g[3]])||void 0===c?void 0:c.current)||(null===(o=y.current[Number(g[3])])||void 0===o?void 0:o.current)||null}}var p=Number(v),B=null!==h?Number(h):p;return{leftAnchor:(null===(l=R.current[p])||void 0===l?void 0:l.current)||(null===(u=A.current[p])||void 0===u?void 0:u.current)||(null===(a=b.current[p])||void 0===a?void 0:a.current)||null,rightAnchor:(null===(d=C.current[B])||void 0===d?void 0:d.current)||(null===(s=y.current[B])||void 0===s?void 0:s.current)||null}}(),s=d.leftAnchor,v=d.rightAnchor,h=n===i?s:v,g=n===i?v:s,f=null;if(h&&g){var p=h.getBoundingClientRect(),B=g.getBoundingClientRect(),S=a.getBoundingClientRect(),I=p.top+p.height/2;f=B.top-S.top+a.scrollTop+B.height/2-(I-S.top)}else{var T=Math.max(0,n.scrollHeight-n.clientHeight),F=Math.max(0,a.scrollHeight-a.clientHeight);f=T>0?n.scrollTop/T*F:n.scrollTop}var H=Math.max(0,a.scrollHeight-a.clientHeight);f=Math.max(0,Math.min(f,H)),Math.abs(a.scrollTop-f)>1&&(xt.current=!0,a.scrollTop=f,requestAnimationFrame(function(){xt.current=!1}))}}L||Mt(),yt.current||(yt.current=!0,requestAnimationFrame(function(){var t,e,n,i,c,a,d;if(D.current){var s=l.current,v=u.current;if(s&&v&&O.current){if(!j.current){var h=z.current,g=void 0;if("string"==typeof h&&h.includes(r)){var f=h.split(r),p="".concat(f[0]).concat(r).concat(f[1]);g=null===(t=R.current[p])||void 0===t?void 0:t.current}else g=null===(e=R.current[h])||void 0===e?void 0:e.current;if(g){var b=g.getBoundingClientRect();j.current={badgeScreenY:b.top+b.height/2,initialScrollTop:s.scrollTop,leftTop:s.getBoundingClientRect().top,leftBottom:s.getBoundingClientRect().top+s.clientHeight,cTop:null!==(i=null===(n=o.current)||void 0===n?void 0:n.getBoundingClientRect().top)&&void 0!==i?i:0}}}if(j.current){var y=j.current,x=s.scrollTop-y.initialScrollTop,m=y.badgeScreenY-x,C=((c=m,a=y.leftTop,d=y.leftBottom,Math.max(a,Math.min(d,c)))-y.cTop).toString(),A=m>=y.leftTop-4&&m<=y.leftBottom+4;O.current.setAttribute("y1",C),O.current.setAttribute("y2",C),O.current.setAttribute("visibility",A?"visible":"hidden")}}}St(),yt.current=!1}))}},[St,L,J,M,Mt]);return i(function(){G.current=Bt},[Bt]),i(function(){var t=setTimeout(Mt,250),e=function(){return U.current()};return window.addEventListener("resize",e),function(){clearTimeout(t),null!==mt.current&&clearTimeout(mt.current),null!==K.current&&clearTimeout(K.current),window.removeEventListener("resize",e)}},[W,Z,$,g,B,S,v,h,et,Mt,I,T,N,M]),{lines:rt,setLines:ct,overallConnector:lt,setOverallConnector:ut,connectedLines:vt,setConnectedLines:ht,svgDimensions:ft,cachedConnectedPositions:Ct,calculateLines:Bt,calculateLinesRef:G,calculateLinesDebounced:Mt,handleColumnScroll:It}};export{c as useLinesCalculator};
1
+ import{useState as t,useRef as e,useCallback as n,useEffect as r}from"react";import{DEVIATION_BADGE_SEPARATOR as i}from"../CognitiveComparehelpers.js";const c=({containerRef:c,leftContainerRef:l,rightContainerRef:o,svgContainerRef:u,pathRefs:s,leftHeaderRef:h,rightHeaderRef:g,proposedSections:d,existingSections:a,visibleFields:f,leftRefs:p,rightRefs:b,sectionLeftRefs:y,sectionRightRefs:$,subSectionLeftRefs:x,subSectionRightRefs:m,lhsBadgeRefs:R,rhsBadgeRefs:C,sectionRowRefs:A,expandedSections:B,expandedSubSections:S,connectedSections:M,isSideBySide:v,activeSideBySideSection:I,maintainRelativeOrder:T,isGuidelineMode:L,cognitiveMap:F,getSectionCompareStyle:H,getSubSectionCompareStyle:w,getDeviationStyleByKey:k,isArrowVisible:E,isAnimatingRef:N,isSideBySideRef:Y,sideBySideCacheRef:D,sideBySideLineRef:j,activeSideBySideSectionRef:O,activeSideBySideRightSectionRef:z,connectedLines:P,setConnectedLines:Q,cachedConnectedPositions:X,calculateLinesRef:q,resizeTimerRef:G,scrollLock:K,scrollSyncLocked:V,handleResizeRef:J,activeProposed:U,existingRule:W,analysisData:Z,pendingScrollTargetRef:_,pendingScrollCallbackRef:tt,resolvedComparisonConfig:et,getFieldData:nt})=>{const[rt,it]=t([]),[ct,lt]=t(null),[ot,ut]=t([]),st=P??ot,ht=Q??ut,[gt,dt]=t({width:0,height:0}),at=e(!1),ft=e(!1),pt=e(!1),bt=e(null),yt=e([]),$t=X??yt,xt=(t,e,n,r,i,c,l)=>{if(Math.abs(r-e)<=1)return c&&l?`M ${t},${e} L ${n},${r}`:c&&!l?`M ${t},${e} L ${i},${e}`:!c&&l?`M ${i},${e} L ${n},${r}`:`M ${i},${e} L ${i},${r}`;const o=Math.min(15,Math.abs(i-t),Math.abs(r-e)/2),u=Math.min(15,Math.abs(n-i),Math.abs(r-e)/2),s=r>e?o:-o,h=r>e?u:-u,g=n>i?u:-u;return c&&l?`M ${t},${e} L ${i-o},${e} Q ${i},${e} ${i},${e+s} L ${i},${r-h} Q ${i},${r} ${i+g},${r} L ${n},${r}`:c&&!l?`M ${t},${e} L ${i-o},${e} Q ${i},${e} ${i},${e+s} L ${i},${r}`:!c&&l?`M ${i},${e} L ${i},${r-h} Q ${i},${r} ${i+g},${r} L ${n},${r}`:`M ${i},${e} L ${i},${r}`},mt=n(()=>{if(!at.current&&!N.current){at.current=!0;try{if(!c.current)return;const t=t=>{const e=t.split("-"),n=e[0];if(!B[n]&&!1===T)return!1;if(T&&!B[`left-${n}`]&&!B[`right-${n}`]&&!B[n])return!1;let r=n;for(let t=1;t<e.length-1;t++)if(r+=`-${e[t]}`,!S[r])return!1;return!0},e=c.current.getBoundingClientRect();dt({width:e.width,height:e.height});const n=[];if(f.forEach(({key:t})=>{const e=p.current[t]?.current,n=b.current[t]?.current;e&&n&&(e.style.height="auto",n.style.height="auto",e.style.minHeight="0px",n.style.minHeight="0px")}),!N.current){for(let t=0;t<Math.max(d.length,a.length);t++){const e=y.current[t]?.current,n=$.current[t]?.current;e&&(e.style.height="auto",e.style.minHeight="0px"),n&&(n.style.height="auto",n.style.minHeight="0px")}T||Object.keys(x.current).forEach(e=>{if(!t(e))return;const n=x.current[e]?.current,r=m.current[e]?.current;n&&r&&(n.style.height="auto",r.style.height="auto",n.style.minHeight="0px",r.style.minHeight="0px")})}const r={};f.forEach(({key:t})=>{const e=p.current[t]?.current,n=b.current[t]?.current;if(e&&n){const i=e.getBoundingClientRect(),c=n.getBoundingClientRect();r[t]=Math.max(i.height,c.height)}});const u={left:{},right:{}},s={};if(!N.current)if(T){if(v&&null!==I)if("number"==typeof I){const t=I,e=d[t],n=y.current[t]?.current;n&&e&&(e.refIndexes||[]).forEach(e=>{const r=a.findIndex(t=>t.selfIndex===e),i=$.current[r]?.current;if(i&&(B[`left-${t}`]||B[`right-${r}`])){const e=Math.max(n.getBoundingClientRect().height,i.getBoundingClientRect().height);u.left[t]=Math.max(u.left[t]||0,e),u.right[r]=Math.max(u.right[r]||0,e)}})}else{const t=I.split(i)[2];if(t){const e=x.current[t]?.current,n=m.current[t]?.current;if(e&&n){const r=Math.max(e.getBoundingClientRect().height,n.getBoundingClientRect().height);s[t]=Math.max(s[t]||0,r)}}}}else{Object.keys(x.current).forEach(e=>{if(!t(e))return;const n=x.current[e]?.current,r=m.current[e]?.current;if(n&&r&&null!==n.offsetParent&&null!==r.offsetParent){const t=n.getBoundingClientRect(),i=r.getBoundingClientRect(),c=Math.max(t.height,i.height);s[e]=c,n.style.minHeight=`${c}px`,r.style.minHeight=`${c}px`}});for(let t=0;t<Math.min(d.length,a.length);t++){const e=y.current[t]?.current,n=$.current[t]?.current;if(e&&n){const r=Math.max(e.getBoundingClientRect().height,n.getBoundingClientRect().height);u.left[t]=r,u.right[t]=r}}}if(f.forEach(({key:t})=>{const e=p.current[t]?.current,n=b.current[t]?.current;if(e&&n){const i=r[t];e.style.minHeight=`${i}px`,n.style.minHeight=`${i}px`}}),N.current||(Object.entries(u.left).forEach(([t,e])=>{const n=y.current[Number(t)]?.current;n&&(n.style.minHeight=`${e}px`)}),Object.entries(u.right).forEach(([t,e])=>{const n=$.current[Number(t)]?.current;n&&(n.style.minHeight=`${e}px`)}),T||Object.keys(s).forEach(t=>{const e=x.current[t]?.current,n=m.current[t]?.current;if(e&&n&&s[t]){const r=s[t];e.style.minHeight=`${r}px`,n.style.minHeight=`${r}px`}})),!L){const t=(t,e)=>{if(!T)return a[e]?[e]:[];const n=(t.refIndexes||[]).map(t=>a.findIndex(e=>e.selfIndex===t)).filter(t=>-1!==t);return!n.length&&a[e]?[e]:Array.from(new Set(n))};d.forEach((r,i)=>{const c=r.continuationSourceRowId?d.findIndex(t=>t.comparisonRowId===r.continuationSourceRowId):-1,u=c>=0?c:i,s=y.current[u]?.current;if(!s)return;t(r,i).forEach(t=>{const r=$.current[t]?.current;if(!r)return;const h=s.getBoundingClientRect(),g=r.getBoundingClientRect(),f=h.right-e.left,p=g.left-e.left;let b=h.top+18-e.top,y=g.top+18-e.top;if(T&&v&&I===i){const t=l.current?.getBoundingClientRect().top??0,n=o.current?.getBoundingClientRect().top??0,r=t+(l.current?.clientHeight??1/0),i=n+(o.current?.clientHeight??1/0),c=(t,e,n)=>Math.max(e,Math.min(n,t));b=c(h.top+18,t,r)-e.top,y=c(g.top+18,n,i)-e.top}const x=H(u);x&&n.push({id:`line-${u}-${t}`,x1:f,y1:b,x2:p,y2:y,style:x,sectionIdx:u,targetRightIdx:t,isSubSection:!1,isMappingContinuation:c>=0,hasCognitive:!!(d[u]?.cognitiveData||a[t]?.cognitiveData||d[u]?.nodeId&&F[d[u].nodeId])})})})}if(!L&&v&&"string"==typeof I&&I.includes(i)){const[t,r,c,u]=I.split(i),s=`${t}${i}${r}`,h=R.current[s]?.current,g=C.current[s]?.current;if(h&&g){const i=h.getBoundingClientRect(),u=g.getBoundingClientRect(),d=i.right-e.left,a=u.left-e.left;let f=i.top+i.height/2-e.top,p=u.top+u.height/2-e.top;if(T){const t=l.current?.getBoundingClientRect().top??0,n=o.current?.getBoundingClientRect().top??0,r=t+(l.current?.clientHeight??1/0),c=n+(o.current?.clientHeight??1/0),s=(t,e,n)=>Math.max(e,Math.min(n,t));f=s(i.top+i.height/2,t,r)-e.top,p=s(u.top+u.height/2,n,c)-e.top}const b=k(t,r)??w(c);b&&n.push({id:`line-subsec-${s}`,x1:d,y1:f,x2:a,y2:p,style:b,sectionIdx:Number(c.split("-")[0]),isSubSection:!0,subSectionKeyPath:I})}}if(it(n),h.current&&g.current){const t=h.current.getBoundingClientRect(),n=g.current.getBoundingClientRect(),r=(t.top+t.height/2-e.top+n.top+n.height/2-e.top)/2;lt({x1:t.right-e.left,x2:n.left-e.left,y:r})}else lt(null);if(M.size>0){const t=[],n=l.current,r=o.current;if(n&&r){const c=[],l=n.getBoundingClientRect().top,o=r.getBoundingClientRect().top,u=l+n.clientHeight,s=o+r.clientHeight,h=n.scrollTop,g=r.scrollTop,f=e.top,p=(t,e,n)=>Math.max(e,Math.min(n,t));M.forEach(n=>{if(L){let r=null,d=null,a=null;if("string"==typeof n&&n.includes(i)){const[t,e,c]=n.split(i),l=`${t}${i}${e}`;r=R.current[l]?.current,a=k(t,e)??w(c),d=Number(c?.split("-")[0]||0)}else d=Number(n),r=R.current[d]?.current,a=H(d);if(!r)return;const b=document.querySelectorAll('[id^="guideline-target-"]');b.forEach((d,y)=>{const $=r.getBoundingClientRect(),x=d.getBoundingClientRect(),m=$.right-e.left,R=x.left-e.left-0,C=m+75,A=$.top+$.height/2,B=x.top+x.height/2,S=A-l+h,M=B-o+g,v=`conn-guide-${n}-${y}`;let I="";if("string"==typeof n&&n.includes(i)){I=(n.split(i)[2]||"").split("-").map(t=>Number(t)+1).join(".")}else I=String(Number(n)+1);const T=String.fromCharCode(97+y),L=1===b.length?null:`${I}(${T})`;c.push({lhsScrollY:S,rhsScrollY:M,x1:m,x2:R,containerTop:f,leftIdx:n,rhsArrayIdx:y,styleColor:a?.badgeBorder||"#6366F1",styleBg:a?.badgeBg||"#FFFFFF",styleText:a?.badgeText||"#A16207",styleId:v,centerX:C});const F=p(A,l,u),H=p(B,o,s),w=F-f,k=H-f,E=xt(m,w,R,k,C,A>=l-4&&A<=u+4,B>=o-4&&B<=s+4);t.push({id:v,pathD:E,style:a,leftIdx:n,rhsArrayIdx:y,x1:m,x2:R,y1:w,y2:k,centerX:C,matchLabel:L,isGuideline:!0})})}else if("string"==typeof n&&n.includes(i)){const[r,d,a,b]=n.split(i),y=`${r}${i}${d}`,$=R.current[y]?.current,x=C.current[y]?.current;if(!$||!x)return;const m=$.getBoundingClientRect(),A=x.getBoundingClientRect(),B=k(r,d)??w(a),S=m.right-e.left,M=A.left-e.left-0,v=S+75,I=m.top+m.height/2,T=A.top+A.height/2,L=I-l+h,F=T-o+g,H=`conn-subsec-${y}`,E=((a||"").split("-").map(t=>Number(t)+1).join("."),null);c.push({lhsScrollY:L,rhsScrollY:F,x1:S,x2:M,containerTop:f,leftIdx:n,rhsArrayIdx:n,styleColor:B?.badgeBorder||"#6366F1",styleBg:B?.badgeBg||"#FFFFFF",styleText:B?.badgeText||"#A16207",styleId:H,centerX:v});const N=p(I,l,u),Y=p(T,o,s),D=N-f,j=Y-f,O=xt(S,D,M,j,v,I>=l-4&&I<=u+4,T>=o-4&&T<=s+4);t.push({id:H,pathD:O,style:B,leftIdx:n,rhsArrayIdx:n,x1:S,x2:M,y1:D,y2:j,matchLabel:E})}else if(T){const r=n,i=d[r];if(!i?.refIndexes?.length)return;i.refIndexes.forEach((d,b)=>{const y=a.findIndex(t=>t.selfIndex===d);if(-1===y)return;const $=R.current[r]?.current,x=C.current[y]?.current;if(!$||!x)return;const m=$.getBoundingClientRect(),A=x.getBoundingClientRect(),B=H(r),S=m.right-e.left,M=A.left-e.left-0,v=S+75,I=m.top+m.height/2,T=A.top+A.height/2,L=I-l+h,F=T-o+g,w=`conn-${r}-${y}`,k=String(Number(n)+1),E=String.fromCharCode(97+b),N=1===i.refIndexes.length?null:`${k}(${E})`;c.push({lhsScrollY:L,rhsScrollY:F,x1:S,x2:M,containerTop:f,leftIdx:r,rhsArrayIdx:y,styleColor:B?.badgeBorder||"#6366F1",styleBg:B?.badgeBg||"#FFFFFF",styleText:B?.badgeText||"#A16207",styleId:w,centerX:v});const Y=p(I,l,u),D=p(T,o,s),j=Y-f,O=D-f,z=xt(S,j,M,O,v,I>=l-4&&I<=u+4,T>=o-4&&T<=s+4);t.push({id:w,pathD:z,style:B,leftIdx:r,rhsArrayIdx:y,x1:S,x2:M,y1:j,y2:O,matchLabel:N})})}else{const r=n,i=r,d=R.current[r]?.current,a=C.current[i]?.current;if(!d||!a)return;const b=d.getBoundingClientRect(),y=a.getBoundingClientRect(),$=H(r),x=b.right-e.left,m=y.left-e.left-0,A=x+75,B=b.top+b.height/2,S=y.top+y.height/2,M=B-l+h,v=S-o+g,I=`conn-${r}-${i}`,T=(String(Number(n)+1),null);c.push({lhsScrollY:M,rhsScrollY:v,x1:x,x2:m,containerTop:f,leftIdx:r,rhsArrayIdx:i,styleColor:$?.badgeBorder||"#6366F1",styleBg:$?.badgeBg||"#FFFFFF",styleText:$?.badgeText||"#A16207",styleId:I,centerX:A});const L=p(B,l,u),F=p(S,o,s),w=L-f,k=F-f,E=xt(x,w,m,k,A,B>=l-4&&B<=u+4,S>=o-4&&S<=s+4);t.push({id:I,pathD:E,style:$,leftIdx:r,rhsArrayIdx:i,x1:x,x2:m,y1:w,y2:k,matchLabel:T})}}),$t.current=c}ht(t),setTimeout(()=>Rt(),10)}else ht([]),$t.current=[],setTimeout(()=>Rt(),10)}catch(t){console.error("Line render safe fail: ",t)}finally{at.current=!1}}},[f,d,a,F,et,nt,H,k,T,v,I,M,B,S,L]),Rt=n(()=>{const t=$t.current;if(!t.length)return s.current["guideline-up-stroke"]?.setAttribute("visibility","hidden"),s.current["guideline-up-badge"]?.setAttribute("visibility","hidden"),s.current["guideline-down-stroke"]?.setAttribute("visibility","hidden"),void s.current["guideline-down-badge"]?.setAttribute("visibility","hidden");if(N.current)return;const e=l.current?.scrollTop??0,n=o.current?.scrollTop??0,r=l.current?.clientHeight??1/0,i=o.current?.clientHeight??1/0,u=l.current?.getBoundingClientRect().top??0,h=o.current?.getBoundingClientRect().top??0,g=u+r,d=h+i,a=c.current?.getBoundingClientRect(),f=a?.top??0,p=a?.height??1/0,b=(t,e,n)=>Math.max(e,Math.min(n,t));let y=0,$=0,x=0,m=0,R="#6366F1",C="#A16207",A=!1,B=0;if(t.forEach(t=>{const r=t.lhsScrollY-e+u,i=t.rhsScrollY-n+h,c=s.current[t.styleId+"-stroke"],l=s.current[t.styleId+"-bg"],o=s.current[t.styleId+"-btn"],a=s.current[t.styleId+"-number"];if(!c&&!l)return;const p=b(r,u,g),S=b(i,h,d),M=p-f,v=S-f,I=r>=u-4&&r<=g+4,T=i>=h-4&&i<=d+4;let L=!0;A=!0;const F=t.centerX||t.x1+75;0===x&&(x=t.x1,m=M,B=F,R=t.styleColor,t.styleBg,C=t.styleText||"#A16207"),i<h-4?(y++,L=!1):i>d+4&&($++,L=!1);const H=xt(t.x1,M,t.x2,v,B,I,T);c&&(L&&H?(c.setAttribute("visibility","visible"),c.setAttribute("d",H)):c.setAttribute("visibility","hidden")),l&&(L&&H?(l.setAttribute("visibility","visible"),l.setAttribute("d",H)):l.setAttribute("visibility","hidden")),o&&(I&&L?(o.setAttribute("visibility","visible"),o.setAttribute("y",String(M-12))):o.setAttribute("visibility","hidden")),a&&(I&&L?(a.setAttribute("visibility","visible"),a.setAttribute("transform",`translate(${t.x2-42}, ${v})`)):a.setAttribute("visibility","hidden"))}),A&&B>0){const t=s.current["guideline-up-stroke"],e=s.current["guideline-up-badge"],n=s.current["guideline-up-arrow"],r=s.current["guideline-up-text"],i=s.current["guideline-up-badge-rect"];if(y>0){const c=Math.max(15,h-f+15),l=Math.min(15,Math.abs(B-x),Math.max(0,m-c)),o=`M ${x},${m} L ${B-l},${m} Q ${B},${m} ${B},${m-l} L ${B},${c}`;t?.setAttribute("visibility","visible"),t?.setAttribute("d",o),t?.setAttribute("stroke",R),e?.setAttribute("visibility","visible"),e?.setAttribute("transform",`translate(${B}, ${c})`),n&&n.setAttribute("fill",R),r&&(r.textContent=`+${y}`,r.setAttribute("fill",C)),i&&i.setAttribute("stroke",R)}else t?.setAttribute("visibility","hidden"),e?.setAttribute("visibility","hidden");const c=s.current["guideline-down-stroke"],l=s.current["guideline-down-badge"],o=s.current["guideline-down-arrow"],u=s.current["guideline-down-text"],g=s.current["guideline-down-badge-rect"];if($>0){const t=Math.min(p-15,d-f-15),e=Math.min(15,Math.abs(B-x),Math.max(0,t-m)),n=`M ${x},${m} L ${B-e},${m} Q ${B},${m} ${B},${m+e} L ${B},${t}`;c?.setAttribute("visibility","visible"),c?.setAttribute("d",n),c?.setAttribute("stroke",R),l?.setAttribute("visibility","visible"),l?.setAttribute("transform",`translate(${B}, ${t})`),o&&o.setAttribute("fill",R),u&&(u.textContent=`+${$}`,u.setAttribute("fill",C)),g&&g.setAttribute("stroke",R)}else c?.setAttribute("visibility","hidden"),l?.setAttribute("visibility","hidden")}},[]),Ct=n(()=>{$t.current.length>0&&!N.current||(null!==bt.current&&clearTimeout(bt.current),bt.current=setTimeout(()=>{q.current(),bt.current=null},50))},[]),At=n(t=>{if(null!==_.current&&tt.current&&Math.abs(t.currentTarget.scrollTop-_.current)<=2){const t=tt.current;_.current=null,tt.current=null,t()}if(!pt.current&&!K.current){if(T&&V&&(Y.current||M.size>0)){const e=t.currentTarget,n=l.current,r=o.current,c=e===n?r:e===r?n:null;if(e&&c){const t=()=>{const t=O.current,e=z.current;if(null===t)return{leftAnchor:null,rightAnchor:null};if("string"==typeof t&&t.includes(i)){const e=t.split(i),n=`${e[0]}${i}${e[1]}`;return{leftAnchor:R.current[n]?.current||x.current[e[2]]?.current||y.current[Number(e[2])]?.current||null,rightAnchor:C.current[n]?.current||m.current[e[3]]?.current||$.current[Number(e[3])]?.current||null}}const n=Number(t),r=null!==e?Number(e):n;return{leftAnchor:R.current[n]?.current||A.current[n]?.current||y.current[n]?.current||null,rightAnchor:C.current[r]?.current||$.current[r]?.current||null}},{leftAnchor:r,rightAnchor:l}=t(),o=e===n?r:l,u=e===n?l:r;let s=null;if(o&&u){const t=o.getBoundingClientRect(),e=u.getBoundingClientRect(),n=c.getBoundingClientRect(),r=t.top+t.height/2;s=e.top-n.top+c.scrollTop+e.height/2-(r-n.top)}else{const t=Math.max(0,e.scrollHeight-e.clientHeight),n=Math.max(0,c.scrollHeight-c.clientHeight);s=t>0?e.scrollTop/t*n:e.scrollTop}const h=Math.max(0,c.scrollHeight-c.clientHeight);s=Math.max(0,Math.min(s,h)),Math.abs(c.scrollTop-s)>1&&(pt.current=!0,c.scrollTop=s,requestAnimationFrame(()=>{pt.current=!1}))}}T||Ct(),ft.current||(ft.current=!0,requestAnimationFrame(()=>{if(Y.current){const t=l.current,e=o.current;if(t&&e&&j.current){if(!D.current){const e=O.current;let n;if("string"==typeof e&&e.includes(i)){const t=e.split(i),r=`${t[0]}${i}${t[1]}`;n=R.current[r]?.current}else n=R.current[e]?.current;if(n){const e=n.getBoundingClientRect();D.current={badgeScreenY:e.top+e.height/2,initialScrollTop:t.scrollTop,leftTop:t.getBoundingClientRect().top,leftBottom:t.getBoundingClientRect().top+t.clientHeight,cTop:c.current?.getBoundingClientRect().top??0}}}if(D.current){const e=D.current,n=t.scrollTop-e.initialScrollTop,r=e.badgeScreenY-n,i=(((t,e,n)=>Math.max(e,Math.min(n,t)))(r,e.leftTop,e.leftBottom)-e.cTop).toString(),c=r>=e.leftTop-4&&r<=e.leftBottom+4;j.current.setAttribute("y1",i),j.current.setAttribute("y2",i),j.current.setAttribute("visibility",c?"visible":"hidden")}}}Rt(),ft.current=!1}))}},[Rt,T,V,M,Ct]);return r(()=>{q.current=mt},[mt]),r(()=>{const t=setTimeout(Ct,250),e=()=>J.current();return window.addEventListener("resize",e),()=>{clearTimeout(t),null!==bt.current&&clearTimeout(bt.current),null!==G.current&&clearTimeout(G.current),window.removeEventListener("resize",e)}},[U,W,Z,f,B,S,d,a,et,Ct,v,I,E,M]),{lines:rt,setLines:it,overallConnector:ct,setOverallConnector:lt,connectedLines:st,setConnectedLines:ht,svgDimensions:gt,cachedConnectedPositions:$t,calculateLines:mt,calculateLinesRef:q,calculateLinesDebounced:Ct,handleColumnScroll:At}};export{c as useLinesCalculator};
2
2
  //# sourceMappingURL=useLinesCalculator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLinesCalculator.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"useLinesCalculator.js","sources":["../../../../src/features/CognitiveCompare/hooks/useLinesCalculator.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\"\nimport { CachedBadgePosition, SectionBlock } from \"../CognitiveCompareTypes\";\nimport { DEVIATION_BADGE_SEPARATOR, getBentArrowPath, hasValue } from \"../CognitiveComparehelpers\";\nimport { maxHeight } from \"@mui/system\";\n\nexport const useLinesCalculator = ({\n containerRef,\n leftContainerRef,\n rightContainerRef,\n svgContainerRef,\n pathRefs,\n leftHeaderRef, rightHeaderRef,\n proposedSections, existingSections,\n visibleFields,\n leftRefs, rightRefs,\n sectionLeftRefs, sectionRightRefs,\n subSectionLeftRefs, subSectionRightRefs,\n lhsBadgeRefs, rhsBadgeRefs,\n sectionRowRefs,\n expandedSections, expandedSubSections,\n connectedSections,\n isSideBySide, activeSideBySideSection,\n maintainRelativeOrder,\n isGuidelineMode, // ── NEW PROP ──\n cognitiveMap,\n getSectionCompareStyle, getSubSectionCompareStyle, getDeviationStyleByKey,\n isArrowVisible,\n\n isAnimatingRef,\n isSideBySideRef,\n sideBySideCacheRef,\n sideBySideLineRef,\n activeSideBySideSectionRef,\n activeSideBySideRightSectionRef,\n connectedLines: providedConnectedLines,\n setConnectedLines: providedSetConnectedLines,\n cachedConnectedPositions: providedCachedConnectedPositions,\n calculateLinesRef,\n resizeTimerRef,\n scrollLock,\n scrollSyncLocked,\n\n handleResizeRef,\n activeProposed, existingRule, analysisData,\n pendingScrollTargetRef, pendingScrollCallbackRef,\n\n resolvedComparisonConfig,\n getFieldData\n}: any) => {\n // States and Refs\n const [lines, setLines] = useState<Record<string, any>[]>([]);\n const [overallConnector, setOverallConnector] = useState<{ x1: number; x2: number; y: number; } | null>(null);\n const [internalConnectedLines, internalSetConnectedLines] = useState<Record<string, any>[]>([]);\n const connectedLines = providedConnectedLines ?? internalConnectedLines;\n const setConnectedLines = providedSetConnectedLines ?? internalSetConnectedLines;\n const [svgDimensions, setSvgDimensions] = useState<{ width: number; height: number }>({ width: 0, height: 0 });\n\n const isCalculatingLines = useRef(false);\n const scrollTicking = useRef(false);\n const scrollSyncing = useRef(false);\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const internalCachedConnectedPositions = useRef<CachedBadgePosition[]>([]);\n const cachedConnectedPositions =\n providedCachedConnectedPositions ?? internalCachedConnectedPositions;\n\n\n \n // Helpers\n // ── UNIFIED ROUNDED PATH GENERATOR (Guarantees shared trunk for ALL modes) ──\n const getRoundedStaggeredPath = (x1: number, y1: number, x2: number, y2: number, cX: number, visL: boolean, visR: boolean) => {\n if (Math.abs(y2 - y1) <= 1) {\n if (visL && visR) return `M ${x1},${y1} L ${x2},${y2}`;\n if (visL && !visR) return `M ${x1},${y1} L ${cX},${y1}`;\n if (!visL && visR) return `M ${cX},${y1} L ${x2},${y2}`;\n return `M ${cX},${y1} L ${cX},${y2}`;\n }\n const r1 = Math.min(15, Math.abs(cX - x1), Math.abs(y2 - y1) / 2);\n const r2 = Math.min(15, Math.abs(x2 - cX), Math.abs(y2 - y1) / 2);\n const dy1 = y2 > y1 ? r1 : -r1;\n const dy2 = y2 > y1 ? r2 : -r2;\n const dx2 = x2 > cX ? r2 : -r2; // Safe horizontal direction\n \n if (visL && visR) {\n return `M ${x1},${y1} L ${cX - r1},${y1} Q ${cX},${y1} ${cX},${y1 + dy1} L ${cX},${y2 - dy2} Q ${cX},${y2} ${cX + dx2},${y2} L ${x2},${y2}`;\n } else if (visL && !visR) {\n return `M ${x1},${y1} L ${cX - r1},${y1} Q ${cX},${y1} ${cX},${y1 + dy1} L ${cX},${y2}`;\n } else if (!visL && visR) {\n return `M ${cX},${y1} L ${cX},${y2 - dy2} Q ${cX},${y2} ${cX + dx2},${y2} L ${x2},${y2}`;\n } else {\n return `M ${cX},${y1} L ${cX},${y2}`;\n }\n };\n\n // Helper to check if a subsection is actually visible in the expanded section\n const isSubSectionVisible = (keyPath: string) => {\n const pathParts = keyPath.split('-');\n const rootIdx = pathParts[0];\n\n // Edge case\n // Early return if root parent is not expanded\n // Only happens in side by side view for deeply nested children\n if (!expandedSections[rootIdx] && maintainRelativeOrder === false) return;\n\n if (maintainRelativeOrder) {\n if (!expandedSections[`left-${rootIdx}`] && !expandedSections[`right-${rootIdx}`] && !expandedSections[rootIdx]) return false;\n }\n\n // Check to confirm if all the ancestors of the node are expanded otherwise early return\n let ancestorPath = rootIdx;\n for (let i = 1; i < pathParts.length - 1; i++) {\n ancestorPath += `-${pathParts[i]}`;\n if (!expandedSections[ancestorPath]) return false;\n }\n\n return true;\n };\n\n // Callbacks\n const calculateLines = useCallback(() => {\n if (isCalculatingLines.current) return;\n if (isAnimatingRef.current) return;\n isCalculatingLines.current = true;\n try {\n if (!containerRef.current) return;\n\n // Helper to check if a subsection is actually visible in the expanded accordion tree\n const isSubSectionVisible = (keyPath: string) => {\n const pathParts = keyPath.split('-');\n const rootIdx = pathParts[0];\n\n // 1. Root Parent must be expanded\n if (!expandedSections[rootIdx] && maintainRelativeOrder === false) return false;\n if (maintainRelativeOrder) {\n if (!expandedSections[`left-${rootIdx}`] && !expandedSections[`right-${rootIdx}`] && !expandedSections[rootIdx]) return false;\n }\n\n // 2. All intermediate ancestor subsections must be expanded\n let ancestorPath = rootIdx;\n for (let i = 1; i < pathParts.length - 1; i++) {\n ancestorPath += `-${pathParts[i]}`;\n if (!expandedSubSections[ancestorPath]) {\n return false;\n }\n }\n return true;\n };\n\n // 3. Keep the SVG setup and field heights logic intact\n const containerRect = containerRef.current.getBoundingClientRect();\n setSvgDimensions({\n width: containerRect.width,\n height: containerRect.height,\n });\n\n const newLines: Record<string, any>[] = [];\n\n // RESET STYLES (WRITE ONLY)\n visibleFields.forEach(({ key }: {key: any}) => {\n const l = leftRefs.current[key]?.current;\n const r = rightRefs.current[key]?.current;\n\n if (l && r) {\n l.style.height = \"auto\";\n r.style.height = \"auto\";\n l.style.minHeight = \"0px\";\n r.style.minHeight = \"0px\";\n }\n });\n\n if (!isAnimatingRef.current) {\n for (let idx = 0; idx < Math.max(proposedSections.length, existingSections.length); idx++) {\n const l = sectionLeftRefs.current[idx]?.current;\n const r = sectionRightRefs.current[idx]?.current;\n\n if (l) {\n l.style.height = \"auto\";\n l.style.minHeight = \"0px\";\n }\n if (r) {\n r.style.height = \"auto\";\n r.style.minHeight = \"0px\";\n }\n }\n \n if (!maintainRelativeOrder) {\n // Subsections reset\n Object.keys(subSectionLeftRefs.current).forEach(keyPath => {\n if (!isSubSectionVisible(keyPath)) return;\n const l = subSectionLeftRefs.current[keyPath]?.current;\n const r = subSectionRightRefs.current[keyPath]?.current;\n if (l && r) {\n l.style.height = \"auto\";\n r.style.height = \"auto\";\n l.style.minHeight = \"0px\";\n r.style.minHeight = \"0px\";\n }\n });\n }\n }\n\n // READ HEIGHTS (READ ONLY)\n const fieldHeights: Record<string, number> = {};\n\n visibleFields.forEach(({ key } : {key: any}) => {\n const l = leftRefs.current[key]?.current;\n const r = rightRefs.current[key]?.current;\n\n if (l && r) {\n const lRect = l.getBoundingClientRect();\n const rRect = r.getBoundingClientRect();\n fieldHeights[key] = Math.max(lRect.height, rRect.height);\n }\n });\n\n const syncHeights = { left: {} as Record<number, number>, right: {} as Record<number, number> };\n const subSectionHeights: Record<string, number> = {};\n\n if (!isAnimatingRef.current) {\n if (!maintainRelativeOrder) {\n // ── FIX: Measure and apply subsection heights FIRST so their new heights push the parent containers ──\n Object.keys(subSectionLeftRefs.current).forEach(keyPath => {\n if (!isSubSectionVisible(keyPath)) return;\n const l = subSectionLeftRefs.current[keyPath]?.current;\n const r = subSectionRightRefs.current[keyPath]?.current;\n if (l && r && l.offsetParent !== null && r.offsetParent !== null) {\n const lRect = l.getBoundingClientRect();\n const rRect = r.getBoundingClientRect();\n const maxH = Math.max(lRect.height, rRect.height);\n subSectionHeights[keyPath] = maxH;\n \n // Apply immediately so the browser recalculates layout for the parent block below\n l.style.minHeight = `${maxH}px`;\n r.style.minHeight = `${maxH}px`;\n }\n });\n\n // ── NOW measure main sections (which will naturally wrap the aligned subsections) ──\n for (let idx = 0; idx < Math.min(proposedSections.length, existingSections.length); idx++) {\n const l = sectionLeftRefs.current[idx]?.current;\n const r = sectionRightRefs.current[idx]?.current;\n\n if (l && r) {\n const maxH = Math.max(l.getBoundingClientRect().height, r.getBoundingClientRect().height);\n syncHeights.left[idx] = maxH;\n syncHeights.right[idx] = maxH;\n }\n }\n\n } else if (isSideBySide && activeSideBySideSection !== null) {\n if (typeof activeSideBySideSection === \"number\") {\n const leftIdx = activeSideBySideSection;\n const leftSec = proposedSections[leftIdx] as any;\n const l = sectionLeftRefs.current[leftIdx]?.current;\n\n if (l && leftSec) {\n (leftSec.refIndexes || []).forEach((rhsSelfIdx: number) => {\n const rhsArrayIdx = existingSections.findIndex((s: any) => s.selfIndex === rhsSelfIdx);\n const r = sectionRightRefs.current[rhsArrayIdx]?.current;\n if (!r) return;\n\n if (expandedSections[`left-${leftIdx}`] || expandedSections[`right-${rhsArrayIdx}`]) {\n const maxH = Math.max(l.getBoundingClientRect().height, r.getBoundingClientRect().height);\n syncHeights.left[leftIdx] = Math.max(syncHeights.left[leftIdx] || 0, maxH);\n syncHeights.right[rhsArrayIdx] = Math.max(syncHeights.right[rhsArrayIdx] || 0, maxH);\n }\n });\n }\n } else {\n const keyPath = activeSideBySideSection.split(DEVIATION_BADGE_SEPARATOR)[2]; \n if (keyPath) {\n const l = subSectionLeftRefs.current[keyPath]?.current;\n const r = subSectionRightRefs.current[keyPath]?.current;\n if (l && r) {\n const maxH = Math.max(l.getBoundingClientRect().height, r.getBoundingClientRect().height);\n subSectionHeights[keyPath] = Math.max(subSectionHeights[keyPath] || 0, maxH);\n }\n }\n }\n }\n }\n\n visibleFields.forEach(({ key } : {key : any}) => {\n const l = leftRefs.current[key]?.current;\n const r = rightRefs.current[key]?.current;\n\n if (l && r) {\n const maxH = fieldHeights[key];\n l.style.minHeight = `${maxH}px`;\n r.style.minHeight = `${maxH}px`;\n }\n });\n\n if (!isAnimatingRef.current) {\n Object.entries(syncHeights.left).forEach(([idx, maxH]) => {\n const l = sectionLeftRefs.current[Number(idx)]?.current;\n if (l) l.style.minHeight = `${maxH}px`;\n });\n \n Object.entries(syncHeights.right).forEach(([idx, maxH]) => {\n const r = sectionRightRefs.current[Number(idx)]?.current;\n if (r) r.style.minHeight = `${maxH}px`;\n });\n\n if (!maintainRelativeOrder) {\n Object.keys(subSectionHeights).forEach(keyPath => {\n const l = subSectionLeftRefs.current[keyPath]?.current;\n const r = subSectionRightRefs.current[keyPath]?.current;\n if (l && r && subSectionHeights[keyPath]) {\n const maxH = subSectionHeights[keyPath];\n l.style.minHeight = `${maxH}px`;\n r.style.minHeight = `${maxH}px`;\n }\n });\n }\n }\n\n // SECTION CONNECTORS\n // ── SKIP SECTION LINES IF IN GUIDELINE MODE ──\n if (!isGuidelineMode) {\n const getMappedRightIndexes = (leftSec: any, leftIdx: number) => {\n // Standard/Side-by-Side data is already materialized as explicit\n // mapping rows, so its counterpart is always at the same row index.\n // Looking up by display_index is ambiguous when a target section is\n // intentionally repeated for more than one mapping edge.\n if (!maintainRelativeOrder) {\n return existingSections[leftIdx] ? [leftIdx] : [];\n }\n\n const mapped = (leftSec.refIndexes || [])\n .map((rhsSelfIdx: number) =>\n existingSections.findIndex((s: any) => s.selfIndex === rhsSelfIdx),\n )\n .filter((idx: number) => idx !== -1);\n\n // Backward-compatible fallback for old one-to-one/index-based data\n if (!mapped.length && existingSections[leftIdx]) {\n return [leftIdx];\n }\n\n return Array.from(new Set(mapped));\n };\n\n proposedSections.forEach((leftSec: any, leftIdx: number) => {\n const continuationSourceIdx = leftSec.continuationSourceRowId\n ? proposedSections.findIndex(\n (section: any) =>\n section.comparisonRowId === leftSec.continuationSourceRowId,\n )\n : -1;\n const resolvedLeftIdx =\n continuationSourceIdx >= 0 ? continuationSourceIdx : leftIdx;\n const lWrap = sectionLeftRefs.current[resolvedLeftIdx]?.current;\n if (!lWrap) return;\n\n const rightIndexes = getMappedRightIndexes(leftSec, leftIdx);\n\n rightIndexes.forEach((rhsArrayIdx: any) => {\n const rWrap = sectionRightRefs.current[rhsArrayIdx]?.current;\n if (!rWrap) return;\n\n const leftRect = lWrap.getBoundingClientRect();\n const rightRect = rWrap.getBoundingClientRect();\n\n const x1 = leftRect.right - containerRect.left;\n const x2 = rightRect.left - containerRect.left;\n\n let y1 = leftRect.top + 18 - containerRect.top;\n let y2 = rightRect.top + 18 - containerRect.top;\n\n if (maintainRelativeOrder && isSideBySide && activeSideBySideSection === leftIdx) {\n const leftTop = leftContainerRef.current?.getBoundingClientRect().top ?? 0;\n const rightTop = rightContainerRef.current?.getBoundingClientRect().top ?? 0;\n const leftBottom = leftTop + (leftContainerRef.current?.clientHeight ?? Infinity);\n const rightBottom = rightTop + (rightContainerRef.current?.clientHeight ?? Infinity);\n\n const clamp = (v: number, min: number, max: number) =>\n Math.max(min, Math.min(max, v));\n\n y1 = clamp(leftRect.top + 18, leftTop, leftBottom) - containerRect.top;\n y2 = clamp(rightRect.top + 18, rightTop, rightBottom) - containerRect.top;\n }\n\n const style = getSectionCompareStyle(resolvedLeftIdx);\n\n if (style) {\n newLines.push({\n id: `line-${resolvedLeftIdx}-${rhsArrayIdx}`,\n x1,\n y1,\n x2,\n y2,\n style,\n sectionIdx: resolvedLeftIdx,\n targetRightIdx: rhsArrayIdx,\n isSubSection: false,\n isMappingContinuation: continuationSourceIdx >= 0,\n hasCognitive: !!(\n proposedSections[resolvedLeftIdx]?.cognitiveData ||\n existingSections[rhsArrayIdx]?.cognitiveData ||\n proposedSections[resolvedLeftIdx]?.nodeId &&\n cognitiveMap[proposedSections[resolvedLeftIdx].nodeId as string]\n ),\n });\n }\n });\n });\n }\n\n if (!isGuidelineMode && isSideBySide && typeof activeSideBySideSection === 'string' && activeSideBySideSection.includes(DEVIATION_BADGE_SEPARATOR)) {\n const [nodeId, devKey, leftKeyPath, rightKeyPath] = activeSideBySideSection.split(DEVIATION_BADGE_SEPARATOR);\n const refId = `${nodeId}${DEVIATION_BADGE_SEPARATOR}${devKey}`;\n\n const lBadgeEl = lhsBadgeRefs.current[refId]?.current;\n const rBadgeEl = rhsBadgeRefs.current[refId]?.current;\n\n if (lBadgeEl && rBadgeEl) {\n const lRect = lBadgeEl.getBoundingClientRect();\n const rRect = rBadgeEl.getBoundingClientRect();\n\n const x1 = lRect.right - containerRect.left;\n const x2 = rRect.left - containerRect.left;\n \n let y1 = lRect.top + lRect.height / 2 - containerRect.top;\n let y2 = rRect.top + rRect.height / 2 - containerRect.top;\n\n if (maintainRelativeOrder) {\n const leftTop = leftContainerRef.current?.getBoundingClientRect().top ?? 0;\n const rightTop = rightContainerRef.current?.getBoundingClientRect().top ?? 0;\n const leftBottom = leftTop + (leftContainerRef.current?.clientHeight ?? Infinity);\n const rightBottom = rightTop + (rightContainerRef.current?.clientHeight ?? Infinity);\n const clamp = (v: number, min: number, max: number) => Math.max(min, Math.min(max, v));\n\n y1 = clamp(lRect.top + lRect.height / 2, leftTop, leftBottom) - containerRect.top;\n y2 = clamp(rRect.top + rRect.height / 2, rightTop, rightBottom) - containerRect.top;\n }\n \n const style =\n getDeviationStyleByKey(nodeId, devKey) ??\n getSubSectionCompareStyle(leftKeyPath);\n if (style) {\n newLines.push({\n id: `line-subsec-${refId}`,\n x1, y1, x2, y2,\n style,\n sectionIdx: Number(leftKeyPath.split('-')[0]),\n isSubSection: true,\n subSectionKeyPath: activeSideBySideSection,\n });\n }\n }\n }\n\n setLines(newLines);\n\n if (leftHeaderRef.current && rightHeaderRef.current) {\n const leftHeaderRect = leftHeaderRef.current.getBoundingClientRect();\n const rightHeaderRect = rightHeaderRef.current.getBoundingClientRect();\n const overallY =\n (leftHeaderRect.top +\n leftHeaderRect.height / 2 -\n containerRect.top +\n rightHeaderRect.top +\n rightHeaderRect.height / 2 -\n containerRect.top) /\n 2;\n setOverallConnector({\n x1: leftHeaderRect.right - containerRect.left,\n x2: rightHeaderRect.left - containerRect.left,\n y: overallY,\n });\n } else {\n setOverallConnector(null);\n }\n\n if (connectedSections.size > 0) {\n const newConnectedLines: Record<string, any>[] = [];\n const leftContainer = leftContainerRef.current;\n const rightContainer = rightContainerRef.current;\n\n if (leftContainer && rightContainer) {\n const newCache: CachedBadgePosition[] = [];\n \n const leftTop = leftContainer.getBoundingClientRect().top;\n const rightTop = rightContainer.getBoundingClientRect().top;\n const leftBottom = leftTop + leftContainer.clientHeight;\n const rightBottom = rightTop + rightContainer.clientHeight;\n\n const leftScrollTop = leftContainer.scrollTop;\n const rightScrollTop = rightContainer.scrollTop;\n const cTop = containerRect.top;\n\n const clamp = (v: number, min: number, max: number) =>\n Math.max(min, Math.min(max, v));\n\n connectedSections.forEach((connectedIdx:any) => {\n // ── GUIDELINE MODE LOGIC ──\n if (isGuidelineMode) {\n let lBadge: HTMLElement | null = null;\n let leftIdxNum: number | null = null;\n let style: any = null;\n\n if (typeof connectedIdx === 'string' && connectedIdx.includes(DEVIATION_BADGE_SEPARATOR)) {\n const [nodeId, devKey, leftKeyPath] = connectedIdx.split(DEVIATION_BADGE_SEPARATOR);\n const refId = `${nodeId}${DEVIATION_BADGE_SEPARATOR}${devKey}`;\n lBadge = lhsBadgeRefs.current[refId]?.current;\n style = getDeviationStyleByKey(nodeId, devKey) ?? getSubSectionCompareStyle(leftKeyPath);\n leftIdxNum = Number(leftKeyPath?.split('-')[0] || 0);\n } else {\n leftIdxNum = Number(connectedIdx);\n lBadge = lhsBadgeRefs.current[leftIdxNum]?.current;\n style = getSectionCompareStyle(leftIdxNum);\n }\n\n if (!lBadge) return;\n\n const targetMarks = document.querySelectorAll('[id^=\"guideline-target-\"]');\n \n targetMarks.forEach((rBadge, index) => {\n const lRect = lBadge!.getBoundingClientRect();\n const rRect = rBadge.getBoundingClientRect();\n\n const x1 = lRect.right - containerRect.left;\n const x2 = rRect.left - containerRect.left - 0;\n \n // ── UNIVERSAL SPINE JUNCTION PUSHED TO X1+75 TO CLEAR LOCK ICON ──\n const centerX = x1 + 75;\n\n const rawLhsY = lRect.top + lRect.height / 2;\n // Target the middle of the highlighted text vertically\n const rawRhsY = rRect.top + rRect.height / 2;\n\n const lhsScrollY = (rawLhsY - leftTop) + leftScrollTop;\n const rhsScrollY = (rawRhsY - rightTop) + rightScrollTop;\n \n const styleId = `conn-guide-${connectedIdx}-${index}`;\n \n // ── BULLETPROOF MATH LABEL GENERATION ──\n let baseLabel = \"\";\n if (typeof connectedIdx === 'string' && connectedIdx.includes(DEVIATION_BADGE_SEPARATOR)) {\n const parts = connectedIdx.split(DEVIATION_BADGE_SEPARATOR);\n const leftKeyPath = parts[2] || \"\";\n baseLabel = leftKeyPath.split('-').map(n => Number(n) + 1).join('.');\n } else {\n baseLabel = String(Number(connectedIdx) + 1);\n }\n const letter = String.fromCharCode(97 + index); // a, b, c...\n const matchLabel = targetMarks.length === 1 ? null : `${baseLabel}(${letter})`;\n\n newCache.push({\n lhsScrollY, rhsScrollY, x1, x2, containerTop: cTop,\n leftIdx: connectedIdx, rhsArrayIdx: index, \n styleColor: style?.badgeBorder || \"#6366F1\", \n styleBg: style?.badgeBg || \"#FFFFFF\",\n styleText: style?.badgeText || \"#A16207\",\n styleId, centerX,\n });\n\n const clampedLhsY = clamp(rawLhsY, leftTop, leftBottom);\n const clampedRhsY = clamp(rawRhsY, rightTop, rightBottom);\n\n const y1 = clampedLhsY - cTop;\n const y2 = clampedRhsY - cTop;\n\n const lhsVisible = rawLhsY >= leftTop - 4 && rawLhsY <= leftBottom + 4;\n const rhsVisible = rawRhsY >= rightTop - 4 && rawRhsY <= rightBottom + 4;\n\n const pathD = getRoundedStaggeredPath(x1, y1, x2, y2, centerX, lhsVisible, rhsVisible);\n\n newConnectedLines.push({ \n id: styleId, pathD, style, leftIdx: connectedIdx, rhsArrayIdx: index, \n x1, x2, y1, y2, centerX, matchLabel, isGuideline: true \n });\n });\n } else {\n // ── UNIFIED CONTRACT TO CONTRACT LOGIC ──\n if (typeof connectedIdx === 'string' && connectedIdx.includes(DEVIATION_BADGE_SEPARATOR)) {\n const [nodeId, devKey, leftKeyPath, rightKeyPath] = connectedIdx.split(DEVIATION_BADGE_SEPARATOR);\n const refId = `${nodeId}${DEVIATION_BADGE_SEPARATOR}${devKey}`;\n\n const lBadge = lhsBadgeRefs.current[refId]?.current;\n const rBadge = rhsBadgeRefs.current[refId]?.current;\n if (!lBadge || !rBadge) return;\n\n const lRect = lBadge.getBoundingClientRect();\n const rRect = rBadge.getBoundingClientRect();\n const style = getDeviationStyleByKey(nodeId, devKey) ?? getSubSectionCompareStyle(leftKeyPath);\n\n const x1 = lRect.right - containerRect.left;\n const x2 = rRect.left - containerRect.left - 0;\n const centerX = x1 + 75; // ── UNIVERSAL SPINE JUNCTION ──\n\n const rawLhsY = lRect.top + lRect.height / 2;\n const rawRhsY = rRect.top + rRect.height / 2;\n\n const lhsScrollY = (rawLhsY - leftTop) + leftScrollTop;\n const rhsScrollY = (rawRhsY - rightTop) + rightScrollTop;\n const styleId = `conn-subsec-${refId}`;\n \n const leftKeyP = leftKeyPath || \"\";\n const baseLabel = leftKeyP.split('-').map(n => Number(n) + 1).join('.');\n const matchLabel = null; // 1-to-1 connection, no badge needed\n\n newCache.push({\n lhsScrollY, rhsScrollY, x1, x2, containerTop: cTop,\n leftIdx: connectedIdx, rhsArrayIdx: connectedIdx,\n styleColor: style?.badgeBorder || \"#6366F1\", styleBg: style?.badgeBg || \"#FFFFFF\", styleText: style?.badgeText || \"#A16207\",\n styleId, centerX, \n });\n\n const clampedLhsY = clamp(rawLhsY, leftTop, leftBottom);\n const clampedRhsY = clamp(rawRhsY, rightTop, rightBottom);\n const y1 = clampedLhsY - cTop;\n const y2 = clampedRhsY - cTop;\n const lhsVisible = rawLhsY >= leftTop - 4 && rawLhsY <= leftBottom + 4;\n const rhsVisible = rawRhsY >= rightTop - 4 && rawRhsY <= rightBottom + 4;\n\n const pathD = getRoundedStaggeredPath(x1, y1, x2, y2, centerX, lhsVisible, rhsVisible);\n\n newConnectedLines.push({ id: styleId, pathD, style, leftIdx: connectedIdx, rhsArrayIdx: connectedIdx, x1, x2, y1, y2, matchLabel });\n } else {\n if (!maintainRelativeOrder) {\n const leftIdx = connectedIdx;\n const rhsArrayIdx = leftIdx as number;\n const lBadge = lhsBadgeRefs.current[leftIdx]?.current;\n const rBadge = rhsBadgeRefs.current[rhsArrayIdx]?.current;\n if (!lBadge || !rBadge) return;\n\n const lRect = lBadge.getBoundingClientRect();\n const rRect = rBadge.getBoundingClientRect();\n const style = getSectionCompareStyle(leftIdx as number);\n\n const x1 = lRect.right - containerRect.left;\n const x2 = rRect.left - containerRect.left - 0;\n const centerX = x1 + 75; // ── UNIVERSAL SPINE JUNCTION ──\n\n const rawLhsY = lRect.top + lRect.height / 2;\n const rawRhsY = rRect.top + rRect.height / 2;\n const lhsScrollY = (rawLhsY - leftTop) + leftScrollTop;\n const rhsScrollY = (rawRhsY - rightTop) + rightScrollTop;\n const styleId = `conn-${leftIdx}-${rhsArrayIdx}`;\n \n const baseLabel = String(Number(connectedIdx) + 1);\n const matchLabel = null; // 1-to-1 connection, no badge needed\n\n newCache.push({\n lhsScrollY, rhsScrollY, x1, x2, containerTop: cTop,\n leftIdx, rhsArrayIdx, \n styleColor: style?.badgeBorder || \"#6366F1\", styleBg: style?.badgeBg || \"#FFFFFF\", styleText: style?.badgeText || \"#A16207\",\n styleId, centerX,\n });\n\n const clampedLhsY = clamp(rawLhsY, leftTop, leftBottom);\n const clampedRhsY = clamp(rawRhsY, rightTop, rightBottom);\n const y1 = clampedLhsY - cTop;\n const y2 = clampedRhsY - cTop;\n const lhsVisible = rawLhsY >= leftTop - 4 && rawLhsY <= leftBottom + 4;\n const rhsVisible = rawRhsY >= rightTop - 4 && rawRhsY <= rightBottom + 4;\n\n const pathD = getRoundedStaggeredPath(x1, y1, x2, y2, centerX, lhsVisible, rhsVisible);\n\n newConnectedLines.push({ id: styleId, pathD, style, leftIdx, rhsArrayIdx, x1, x2, y1, y2, matchLabel });\n } else {\n const leftIdx = connectedIdx as number;\n const leftSec = proposedSections[leftIdx] as any;\n if (!leftSec?.refIndexes?.length) return;\n\n leftSec.refIndexes.forEach((rhsSelfIdx: number, index: number) => {\n const rhsArrayIdx = existingSections.findIndex((s: any) => s.selfIndex === rhsSelfIdx);\n if (rhsArrayIdx === -1) return;\n\n const lBadge = lhsBadgeRefs.current[leftIdx]?.current;\n const rBadge = rhsBadgeRefs.current[rhsArrayIdx]?.current;\n if (!lBadge || !rBadge) return;\n\n const lRect = lBadge.getBoundingClientRect();\n const rRect = rBadge.getBoundingClientRect();\n const style = getSectionCompareStyle(leftIdx);\n\n const x1 = lRect.right - containerRect.left;\n const x2 = rRect.left - containerRect.left - 0;\n \n const centerX = x1 + 75; // ── UNIVERSAL SPINE JUNCTION ──\n\n const rawLhsY = lRect.top + lRect.height / 2;\n const rawRhsY = rRect.top + rRect.height / 2;\n const lhsScrollY = (rawLhsY - leftTop) + leftScrollTop;\n const rhsScrollY = (rawRhsY - rightTop) + rightScrollTop;\n const styleId = `conn-${leftIdx}-${rhsArrayIdx}`;\n \n const baseLabel = String(Number(connectedIdx) + 1);\n const letter = String.fromCharCode(97 + index); \n const matchLabel = leftSec.refIndexes.length === 1 ? null : `${baseLabel}(${letter})`;\n\n newCache.push({\n lhsScrollY, rhsScrollY, x1, x2, containerTop: cTop,\n leftIdx, rhsArrayIdx,\n styleColor: style?.badgeBorder || \"#6366F1\", styleBg: style?.badgeBg || \"#FFFFFF\", styleText: style?.badgeText || \"#A16207\",\n styleId, centerX,\n });\n\n const clampedLhsY = clamp(rawLhsY, leftTop, leftBottom);\n const clampedRhsY = clamp(rawRhsY, rightTop, rightBottom);\n const y1 = clampedLhsY - cTop;\n const y2 = clampedRhsY - cTop;\n const lhsVisible = rawLhsY >= leftTop - 4 && rawLhsY <= leftBottom + 4;\n const rhsVisible = rawRhsY >= rightTop - 4 && rawRhsY <= rightBottom + 4;\n\n const pathD = getRoundedStaggeredPath(x1, y1, x2, y2, centerX, lhsVisible, rhsVisible);\n\n newConnectedLines.push({\n id: styleId, pathD, style, leftIdx, rhsArrayIdx, x1, x2, y1, y2, matchLabel,\n });\n });\n }\n }\n }\n });\n cachedConnectedPositions.current = newCache;\n }\n setConnectedLines(newConnectedLines);\n\n setTimeout(() => updateConnectedLinesOnScroll(), 10);\n } else {\n setConnectedLines([]);\n cachedConnectedPositions.current = [];\n setTimeout(() => updateConnectedLinesOnScroll(), 10);\n }\n } catch (e) {\n console.error(\"Line render safe fail: \", e);\n } finally {\n isCalculatingLines.current = false;\n }\n }, [\n visibleFields,\n proposedSections,\n existingSections,\n cognitiveMap,\n resolvedComparisonConfig,\n getFieldData,\n getSectionCompareStyle,\n getDeviationStyleByKey,\n maintainRelativeOrder,\n isSideBySide, \n activeSideBySideSection, \n connectedSections,\n expandedSections,\n expandedSubSections,\n isGuidelineMode, \n ]);\n\n const updateConnectedLinesOnScroll = useCallback(() => {\n const cache = cachedConnectedPositions.current;\n \n if (!cache.length) {\n pathRefs.current[\"guideline-up-stroke\"]?.setAttribute(\"visibility\", \"hidden\");\n pathRefs.current[\"guideline-up-badge\"]?.setAttribute(\"visibility\", \"hidden\");\n pathRefs.current[\"guideline-down-stroke\"]?.setAttribute(\"visibility\", \"hidden\");\n pathRefs.current[\"guideline-down-badge\"]?.setAttribute(\"visibility\", \"hidden\");\n return;\n }\n\n if (isAnimatingRef.current) return;\n \n const leftScroll = leftContainerRef.current?.scrollTop ?? 0;\n const rightScroll = rightContainerRef.current?.scrollTop ?? 0;\n \n const leftHeight = leftContainerRef.current?.clientHeight ?? Infinity;\n const rightHeight = rightContainerRef.current?.clientHeight ?? Infinity;\n \n const leftTop = leftContainerRef.current?.getBoundingClientRect().top ?? 0;\n const rightTop = rightContainerRef.current?.getBoundingClientRect().top ?? 0;\n \n const leftBottom = leftTop + leftHeight;\n const rightBottom = rightTop + rightHeight;\n \n const containerRect = containerRef.current?.getBoundingClientRect();\n const containerTop = containerRect?.top ?? 0;\n const containerHeight = containerRect?.height ?? Infinity;\n \n const clamp = (v: number, min: number, max: number) => Math.max(min, Math.min(max, v));\n \n let topCount = 0;\n let bottomCount = 0;\n let sharedX1 = 0, sharedY1 = 0;\n let sharedColor = \"#6366F1\", sharedBg = \"#FFFFFF\", sharedTextCol = \"#A16207\";\n let hasActiveConnections = false;\n let universalSpineX = 0; \n\n cache.forEach((entry: any) => {\n const lhsViewportY = (entry.lhsScrollY - leftScroll) + leftTop;\n const rhsViewportY = (entry.rhsScrollY - rightScroll) + rightTop;\n \n const strokeEl = pathRefs.current[entry.styleId + \"-stroke\"];\n const bgEl = pathRefs.current[entry.styleId + \"-bg\"];\n const btnEl = pathRefs.current[entry.styleId + \"-btn\"];\n const numberBadgeEl = pathRefs.current[entry.styleId + \"-number\"];\n \n if (!strokeEl && !bgEl) return;\n \n const visibleLhsY = clamp(lhsViewportY, leftTop, leftBottom);\n const visibleRhsY = clamp(rhsViewportY, rightTop, rightBottom);\n \n const y1 = visibleLhsY - containerTop;\n const y2 = visibleRhsY - containerTop;\n \n const lhsVisible = lhsViewportY >= leftTop - 4 && lhsViewportY <= leftBottom + 4;\n const rhsVisible = rhsViewportY >= rightTop - 4 && rhsViewportY <= rightBottom + 4;\n \n let showLine = true;\n hasActiveConnections = true;\n\n // Enforce absolute strict universal spine\n const centerX = entry.centerX || (entry.x1 + 75);\n\n if (sharedX1 === 0) {\n sharedX1 = entry.x1;\n sharedY1 = y1;\n universalSpineX = centerX;\n sharedColor = entry.styleColor;\n sharedBg = entry.styleBg || \"#FFFFFF\";\n sharedTextCol = entry.styleText || \"#A16207\";\n }\n\n if (rhsViewportY < rightTop - 4) {\n topCount++; showLine = false; \n } else if (rhsViewportY > rightBottom + 4) {\n bottomCount++; showLine = false; \n } \n \n const pathD = getRoundedStaggeredPath(entry.x1, y1, entry.x2, y2, universalSpineX, lhsVisible, rhsVisible);\n \n if (strokeEl) {\n if (showLine && pathD) {\n strokeEl.setAttribute(\"visibility\", \"visible\");\n strokeEl.setAttribute(\"d\", pathD);\n } else { strokeEl.setAttribute(\"visibility\", \"hidden\"); }\n }\n \n if (bgEl) {\n if (showLine && pathD) {\n bgEl.setAttribute(\"visibility\", \"visible\");\n bgEl.setAttribute(\"d\", pathD);\n } else { bgEl.setAttribute(\"visibility\", \"hidden\"); }\n }\n\n if (btnEl) {\n if (!lhsVisible || !showLine) {\n btnEl.setAttribute(\"visibility\", \"hidden\");\n } else {\n btnEl.setAttribute(\"visibility\", \"visible\");\n btnEl.setAttribute(\"y\", String(y1 - 12)); \n }\n }\n\n if (numberBadgeEl) {\n if (!lhsVisible || !showLine) {\n numberBadgeEl.setAttribute(\"visibility\", \"hidden\");\n } else {\n numberBadgeEl.setAttribute(\"visibility\", \"visible\");\n numberBadgeEl.setAttribute(\"transform\", `translate(${entry.x2 - 42}, ${y2})`);\n }\n }\n });\n\n // ── UNIVERSAL OFF-SCREEN ARROWS (ALWAYS ORIGINATE EXACTLY AT THE SPINE: X1 + 75) ──\n if (hasActiveConnections && universalSpineX > 0) {\n const upStroke = pathRefs.current[\"guideline-up-stroke\"];\n const upBadge = pathRefs.current[\"guideline-up-badge\"];\n const upArrow = pathRefs.current[\"guideline-up-arrow\"];\n const upText = pathRefs.current[\"guideline-up-text\"];\n const upRect = pathRefs.current[\"guideline-up-badge-rect\"];\n\n if (topCount > 0) {\n const upY = Math.max(15, rightTop - containerTop + 15); \n const r = Math.min(15, Math.abs(universalSpineX - sharedX1), Math.max(0, sharedY1 - upY));\n const pathD = `M ${sharedX1},${sharedY1} L ${universalSpineX - r},${sharedY1} Q ${universalSpineX},${sharedY1} ${universalSpineX},${sharedY1 - r} L ${universalSpineX},${upY}`;\n\n upStroke?.setAttribute(\"visibility\", \"visible\");\n upStroke?.setAttribute(\"d\", pathD);\n upStroke?.setAttribute(\"stroke\", sharedColor);\n\n upBadge?.setAttribute(\"visibility\", \"visible\");\n upBadge?.setAttribute(\"transform\", `translate(${universalSpineX}, ${upY})`);\n \n if (upArrow) { upArrow.setAttribute(\"fill\", sharedColor); }\n if (upText) { upText.textContent = `+${topCount}`; upText.setAttribute(\"fill\", sharedTextCol); }\n if (upRect) { upRect.setAttribute(\"stroke\", sharedColor); }\n } else {\n upStroke?.setAttribute(\"visibility\", \"hidden\");\n upBadge?.setAttribute(\"visibility\", \"hidden\");\n }\n\n const downStroke = pathRefs.current[\"guideline-down-stroke\"];\n const downBadge = pathRefs.current[\"guideline-down-badge\"];\n const downArrow = pathRefs.current[\"guideline-down-arrow\"];\n const downText = pathRefs.current[\"guideline-down-text\"];\n const downRect = pathRefs.current[\"guideline-down-badge-rect\"];\n\n if (bottomCount > 0) {\n const downY = Math.min(containerHeight - 15, rightBottom - containerTop - 15);\n const r = Math.min(15, Math.abs(universalSpineX - sharedX1), Math.max(0, downY - sharedY1));\n const pathD = `M ${sharedX1},${sharedY1} L ${universalSpineX - r},${sharedY1} Q ${universalSpineX},${sharedY1} ${universalSpineX},${sharedY1 + r} L ${universalSpineX},${downY}`;\n\n downStroke?.setAttribute(\"visibility\", \"visible\");\n downStroke?.setAttribute(\"d\", pathD);\n downStroke?.setAttribute(\"stroke\", sharedColor);\n\n downBadge?.setAttribute(\"visibility\", \"visible\");\n downBadge?.setAttribute(\"transform\", `translate(${universalSpineX}, ${downY})`);\n \n if (downArrow) { downArrow.setAttribute(\"fill\", sharedColor); }\n if (downText) { downText.textContent = `+${bottomCount}`; downText.setAttribute(\"fill\", sharedTextCol); }\n if (downRect) { downRect.setAttribute(\"stroke\", sharedColor); }\n } else {\n downStroke?.setAttribute(\"visibility\", \"hidden\");\n downBadge?.setAttribute(\"visibility\", \"hidden\");\n }\n }\n }, []);\n\n const calculateLinesDebounced = useCallback(() => {\n if (cachedConnectedPositions.current.length > 0 && !isAnimatingRef.current) {\n return;\n }\n if (timerRef.current !== null) {\n clearTimeout(timerRef.current);\n }\n timerRef.current = setTimeout(() => {\n calculateLinesRef.current();\n timerRef.current = null;\n }, 50);\n }, []); \n \n \n const handleColumnScroll = useCallback((e: any) => {\n if (pendingScrollTargetRef.current !== null && pendingScrollCallbackRef.current) {\n if (Math.abs(e.currentTarget.scrollTop - pendingScrollTargetRef.current) <= 2) {\n const callback = pendingScrollCallbackRef.current;\n pendingScrollTargetRef.current = null;\n pendingScrollCallbackRef.current = null;\n callback();\n }\n }\n \n if (scrollSyncing.current) return;\n if (scrollLock.current) return;\n\n if (\n maintainRelativeOrder &&\n scrollSyncLocked &&\n (isSideBySideRef.current || connectedSections.size > 0)\n ) {\n const source = e.currentTarget as HTMLElement;\n const leftContainer = leftContainerRef.current;\n const rightContainer = rightContainerRef.current;\n const target =\n source === leftContainer\n ? rightContainer\n : source === rightContainer\n ? leftContainer\n : null;\n\n if (source && target) {\n const resolveActiveAnchors = () => {\n const activeLeftIdx = activeSideBySideSectionRef.current;\n const activeRightIdx = activeSideBySideRightSectionRef.current;\n\n if (activeLeftIdx === null) return { leftAnchor: null, rightAnchor: null };\n\n if (\n typeof activeLeftIdx === \"string\" &&\n activeLeftIdx.includes(DEVIATION_BADGE_SEPARATOR)\n ) {\n const parts = activeLeftIdx.split(DEVIATION_BADGE_SEPARATOR);\n const refId = `${parts[0]}${DEVIATION_BADGE_SEPARATOR}${parts[1]}`;\n\n return {\n leftAnchor:\n lhsBadgeRefs.current[refId]?.current ||\n subSectionLeftRefs.current[parts[2]]?.current ||\n sectionLeftRefs.current[Number(parts[2])]?.current ||\n null,\n rightAnchor:\n rhsBadgeRefs.current[refId]?.current ||\n subSectionRightRefs.current[parts[3]]?.current ||\n sectionRightRefs.current[Number(parts[3])]?.current ||\n null,\n };\n }\n\n const leftIdx = Number(activeLeftIdx);\n const rightIdx = activeRightIdx !== null ? Number(activeRightIdx) : leftIdx;\n\n return {\n leftAnchor:\n lhsBadgeRefs.current[leftIdx]?.current ||\n sectionRowRefs.current[leftIdx]?.current ||\n sectionLeftRefs.current[leftIdx]?.current ||\n null,\n rightAnchor:\n rhsBadgeRefs.current[rightIdx]?.current ||\n sectionRightRefs.current[rightIdx]?.current ||\n null,\n };\n };\n\n const { leftAnchor, rightAnchor } = resolveActiveAnchors();\n const sourceAnchor = source === leftContainer ? leftAnchor : rightAnchor;\n const targetAnchor = source === leftContainer ? rightAnchor : leftAnchor;\n\n let nextTargetTop: number | null = null;\n\n if (sourceAnchor && targetAnchor) {\n const sourceAnchorRect = sourceAnchor.getBoundingClientRect();\n const targetAnchorRect = targetAnchor.getBoundingClientRect();\n const targetRect = target.getBoundingClientRect();\n\n const sourceAnchorCenterY =\n sourceAnchorRect.top + sourceAnchorRect.height / 2;\n const targetAnchorAbsoluteCenterY =\n targetAnchorRect.top -\n targetRect.top +\n target.scrollTop +\n targetAnchorRect.height / 2;\n\n nextTargetTop =\n targetAnchorAbsoluteCenterY - (sourceAnchorCenterY - targetRect.top);\n } else {\n const sourceMaxScroll = Math.max(0, source.scrollHeight - source.clientHeight);\n const targetMaxScroll = Math.max(0, target.scrollHeight - target.clientHeight);\n nextTargetTop = sourceMaxScroll > 0\n ? (source.scrollTop / sourceMaxScroll) * targetMaxScroll\n : source.scrollTop;\n }\n\n const targetMaxScroll = Math.max(0, target.scrollHeight - target.clientHeight);\n nextTargetTop = Math.max(0, Math.min(nextTargetTop, targetMaxScroll));\n\n if (Math.abs(target.scrollTop - nextTargetTop) > 1) {\n scrollSyncing.current = true;\n target.scrollTop = nextTargetTop;\n requestAnimationFrame(() => {\n scrollSyncing.current = false;\n });\n }\n }\n }\n \n if (!maintainRelativeOrder) {\n calculateLinesDebounced();\n }\n \n if (!scrollTicking.current) {\n scrollTicking.current = true;\n \n requestAnimationFrame(() => {\n if (isSideBySideRef.current) {\n const leftContainer = leftContainerRef.current;\n const rightContainer = rightContainerRef.current;\n \n if (leftContainer && rightContainer && sideBySideLineRef.current) {\n if (!sideBySideCacheRef.current) {\n const activeLeftIdx = activeSideBySideSectionRef.current;\n let lBadge;\n \n if (typeof activeLeftIdx === 'string' && activeLeftIdx.includes(DEVIATION_BADGE_SEPARATOR)) {\n const parts = activeLeftIdx.split(DEVIATION_BADGE_SEPARATOR);\n const refId = `${parts[0]}${DEVIATION_BADGE_SEPARATOR}${parts[1]}`;\n lBadge = lhsBadgeRefs.current[refId]?.current;\n } else {\n lBadge = lhsBadgeRefs.current[activeLeftIdx as number]?.current;\n }\n \n if (lBadge) {\n const lRect = lBadge.getBoundingClientRect();\n sideBySideCacheRef.current = {\n badgeScreenY: lRect.top + lRect.height / 2, \n initialScrollTop: leftContainer.scrollTop, \n leftTop: leftContainer.getBoundingClientRect().top,\n leftBottom: leftContainer.getBoundingClientRect().top + leftContainer.clientHeight,\n cTop: containerRef.current?.getBoundingClientRect().top ?? 0\n };\n }\n }\n \n if (sideBySideCacheRef.current) {\n const cache = sideBySideCacheRef.current;\n const scrollDelta = leftContainer.scrollTop - cache.initialScrollTop;\n const rawLhsY = cache.badgeScreenY - scrollDelta;\n const clamp = (v: number, min: number, max: number) => Math.max(min, Math.min(max, v));\n const clampedLhsY = clamp(rawLhsY, cache.leftTop, cache.leftBottom);\n const horizontalY = (clampedLhsY - cache.cTop).toString();\n const isVisible = rawLhsY >= cache.leftTop - 4 && rawLhsY <= cache.leftBottom + 4;\n \n sideBySideLineRef.current.setAttribute(\"y1\", horizontalY);\n sideBySideLineRef.current.setAttribute(\"y2\", horizontalY); \n sideBySideLineRef.current.setAttribute(\"visibility\", isVisible ? \"visible\" : \"hidden\");\n }\n }\n }\n \n updateConnectedLinesOnScroll(); \n scrollTicking.current = false;\n });\n }\n }, [\n updateConnectedLinesOnScroll,\n maintainRelativeOrder,\n scrollSyncLocked,\n connectedSections,\n calculateLinesDebounced,\n ]);\n\n\n useEffect(() => {\n calculateLinesRef.current = calculateLines;\n }, [calculateLines]);\n\n useEffect(() => {\n const timer = setTimeout(calculateLinesDebounced, 250);\n const onWindowResize = () => handleResizeRef.current();\n window.addEventListener(\"resize\", onWindowResize);\n \n return () => {\n clearTimeout(timer);\n if (timerRef.current !== null) clearTimeout(timerRef.current);\n if (resizeTimerRef.current !== null) clearTimeout(resizeTimerRef.current);\n window.removeEventListener(\"resize\", onWindowResize);\n };\n }, [\n activeProposed,\n existingRule,\n analysisData,\n visibleFields,\n expandedSections,\n expandedSubSections,\n proposedSections,\n existingSections,\n resolvedComparisonConfig,\n calculateLinesDebounced,\n isSideBySide,\n activeSideBySideSection,\n isArrowVisible,\n connectedSections,\n ]);\n\n\n return {\n lines, setLines,\n overallConnector, setOverallConnector,\n connectedLines, setConnectedLines,\n svgDimensions,\n cachedConnectedPositions,\n calculateLines,\n calculateLinesRef,\n calculateLinesDebounced,\n handleColumnScroll,\n}\n\n}\n"],"names":["useLinesCalculator","containerRef","leftContainerRef","rightContainerRef","svgContainerRef","pathRefs","leftHeaderRef","rightHeaderRef","proposedSections","existingSections","visibleFields","leftRefs","rightRefs","sectionLeftRefs","sectionRightRefs","subSectionLeftRefs","subSectionRightRefs","lhsBadgeRefs","rhsBadgeRefs","sectionRowRefs","expandedSections","expandedSubSections","connectedSections","isSideBySide","activeSideBySideSection","maintainRelativeOrder","isGuidelineMode","cognitiveMap","getSectionCompareStyle","getSubSectionCompareStyle","getDeviationStyleByKey","isArrowVisible","isAnimatingRef","isSideBySideRef","sideBySideCacheRef","sideBySideLineRef","activeSideBySideSectionRef","activeSideBySideRightSectionRef","connectedLines","providedConnectedLines","setConnectedLines","providedSetConnectedLines","cachedConnectedPositions","providedCachedConnectedPositions","calculateLinesRef","resizeTimerRef","scrollLock","scrollSyncLocked","handleResizeRef","activeProposed","existingRule","analysisData","pendingScrollTargetRef","pendingScrollCallbackRef","resolvedComparisonConfig","getFieldData","lines","setLines","useState","overallConnector","setOverallConnector","internalConnectedLines","internalSetConnectedLines","svgDimensions","setSvgDimensions","width","height","isCalculatingLines","useRef","scrollTicking","scrollSyncing","timerRef","internalCachedConnectedPositions","getRoundedStaggeredPath","x1","y1","x2","y2","cX","visL","visR","Math","abs","r1","min","r2","dy1","dy2","dx2","calculateLines","useCallback","current","isSubSectionVisible","keyPath","pathParts","split","rootIdx","ancestorPath","i","length","containerRect","getBoundingClientRect","newLines","forEach","key","l","r","style","minHeight","idx","max","Object","keys","fieldHeights","lRect","rRect","syncHeights","left","right","subSectionHeights","leftIdx","leftSec","refIndexes","rhsSelfIdx","rhsArrayIdx","findIndex","s","selfIndex","maxH","DEVIATION_BADGE_SEPARATOR","offsetParent","entries","Number","getMappedRightIndexes","mapped","map","filter","Array","from","Set","continuationSourceIdx","continuationSourceRowId","section","comparisonRowId","resolvedLeftIdx","lWrap","rWrap","leftRect","rightRect","top","leftTop","rightTop","leftBottom","clientHeight","Infinity","rightBottom","clamp","v","push","id","sectionIdx","targetRightIdx","isSubSection","isMappingContinuation","hasCognitive","cognitiveData","nodeId","includes","devKey","leftKeyPath","rightKeyPath","refId","lBadgeEl","rBadgeEl","subSectionKeyPath","leftHeaderRect","rightHeaderRect","overallY","y","size","newConnectedLines","leftContainer","rightContainer","newCache","leftScrollTop","scrollTop","rightScrollTop","cTop","connectedIdx","lBadge","leftIdxNum","targetMarks","document","querySelectorAll","rBadge","index","centerX","rawLhsY","rawRhsY","lhsScrollY","rhsScrollY","styleId","baseLabel","n","join","String","letter","fromCharCode","matchLabel","containerTop","styleColor","badgeBorder","styleBg","badgeBg","styleText","badgeText","clampedLhsY","clampedRhsY","pathD","isGuideline","setTimeout","updateConnectedLinesOnScroll","e","console","error","cache","setAttribute","leftScroll","rightScroll","leftHeight","rightHeight","containerHeight","topCount","bottomCount","sharedX1","sharedY1","sharedColor","sharedTextCol","hasActiveConnections","universalSpineX","entry","lhsViewportY","rhsViewportY","strokeEl","bgEl","btnEl","numberBadgeEl","visibleLhsY","visibleRhsY","lhsVisible","rhsVisible","showLine","upStroke","upBadge","upArrow","upText","upRect","upY","textContent","downStroke","downBadge","downArrow","downText","downRect","downY","calculateLinesDebounced","clearTimeout","handleColumnScroll","currentTarget","callback","source","target","resolveActiveAnchors","activeLeftIdx","activeRightIdx","leftAnchor","rightAnchor","parts","rightIdx","sourceAnchor","targetAnchor","nextTargetTop","sourceAnchorRect","targetAnchorRect","targetRect","sourceAnchorCenterY","sourceMaxScroll","scrollHeight","targetMaxScroll","requestAnimationFrame","badgeScreenY","initialScrollTop","scrollDelta","horizontalY","toString","isVisible","useEffect","timer","onWindowResize","window","addEventListener","removeEventListener"],"mappings":"uJAKO,MAAMA,EAAqB,EAC9BC,eACAC,mBACAC,oBACAC,kBACAC,WACAC,gBAAeC,iBACfC,mBAAkBC,mBAClBC,gBACAC,WAAUC,YACVC,kBAAiBC,mBACjBC,qBAAoBC,sBACpBC,eAAcC,eACdC,iBACAC,mBAAkBC,sBAClBC,oBACAC,eAAcC,0BACdC,wBACAC,kBACAC,eACAC,yBAAwBC,4BAA2BC,yBACnDC,iBAEAC,iBACAC,kBACAC,qBACAC,oBACAC,6BACAC,kCACAC,eAAgBC,EAChBC,kBAAmBC,EACnBC,yBAA0BC,EAC1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OgN,OAAAC,iBAAiB,SAAUF,GAE3B,KACLhC,aAAa+B,GACY,OAArBlO,GAASoB,SAAkB+K,aAAanM,GAASoB,SACtB,OAA3B9C,EAAe8C,SAAkB+K,aAAa7N,EAAe8C,SAC1DgN,OAAAE,oBAAoB,SAAUH,KAEtC,CACDzP,EACAC,EACAC,EACAzC,EACAU,EACAC,EACAb,EACAC,EACA6C,GACAmN,GACAlP,EACAC,EACAO,EACAT,IAIG,CACXkC,SAAOC,YACPE,oBAAkBC,uBAClBtB,kBAAgBE,qBAChBuB,iBACArB,4BACA+C,kBACA7C,oBACA6N,2BACAE"}
@@ -1,2 +1,2 @@
1
- import{useRef as n,useEffect as e,useCallback as r}from"react";import{DEVIATION_BADGE_SEPARATOR as t}from"../CognitiveComparehelpers.js";var u=function(u){var i=u.timerRef,c=u.ruleComponentRef,l=u.scrollContainerRef,o=u.containerRef,a=u.maintainRelativeOrder,d=u.proposedSections,s=u.existingSections,f=u.isSideBySideRef,v=u.activeSideBySideSectionRef,R=u.activeSideBySideRightSectionRef,p=u.sectionRowRefs,g=u.sectionRightRowRefs,h=u.sectionLeftRefs,m=u.sectionRightRefs,C=u.subSectionLeftRefs,S=u.subSectionRightRefs,B=u.lhsBadgeRefs,T=u.rhsBadgeRefs,b=u.leftContainerRef,y=u.rightContainerRef,z=u.calculateLinesRef,x=u.handleResizeRef,w=u.setIsResizing,A=u.setIsArrowVisible,E=u.sideBySideCacheRef,F=u.cachedConnectedPositions,L=n(0),M=n(0),I=n(0),N=n(function(){}),O=null!=x?x:N,j=n(null);n(i),e(function(){var n=function(n,e,r,t,u){e.current=n.getBoundingClientRect().width;var i=new ResizeObserver(function(n){null!==r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(function(){var i,c,l;r.current=null;var o=n[n.length-1];if(o){var a=null!==(l=null===(c=null===(i=o.borderBoxSize)||void 0===i?void 0:i[0])||void 0===c?void 0:c.inlineSize)&&void 0!==l?l:o.contentRect.width;Math.abs(a-e.current)<1?u():(e.current=a,t())}})});return i.observe(n),i},e={current:null},r={current:null},t={current:null},u=[],i=[e,r,t];return c.current&&u.push(n(c.current,L,e,function(){return O.current()},function(){})),l.current&&u.push(n(l.current,M,r,function(){return O.current()},function(){var n;return null===(n=z.current)||void 0===n?void 0:n.call(z)})),o.current&&u.push(n(o.current,I,t,function(){return O.current()},function(){var n;return null===(n=z.current)||void 0===n?void 0:n.call(z)})),function(){u.forEach(function(n){return n.disconnect()}),i.forEach(function(n){null!==n.current&&(cancelAnimationFrame(n.current),n.current=null)})}},[]);var q=r(function(){w(!0),A(!1),E.current=null,null!==j.current&&clearTimeout(j.current),null!==i.current&&(clearTimeout(i.current),i.current=null),j.current=setTimeout(function(){var n,e,r,u,i,c,l,o,d,s,x;try{if(F.current=[],f.current&&null!==v.current&&null!==R.current){var E=v.current,L=R.current,M="string"==typeof E&&E.includes(t),I=null,N=null,O=null,q=null;if(M){var P=E.split(t),V="".concat(P[0]).concat(t).concat(P[1]);I=(null===(n=B.current[V])||void 0===n?void 0:n.current)||null,N=(null===(e=T.current[V])||void 0===e?void 0:e.current)||null,O=(null===(r=C.current[P[2]])||void 0===r?void 0:r.current)||(null===(u=h.current[Number(P[2])])||void 0===u?void 0:u.current)||null,q=(null===(i=S.current[P[3]])||void 0===i?void 0:i.current)||(null===(c=m.current[Number(P[3])])||void 0===c?void 0:c.current)||null}else I=(null===(l=p.current[E])||void 0===l?void 0:l.current)||null,O=(null===(o=h.current[E])||void 0===o?void 0:o.current)||null,N=(null===(d=g.current[L])||void 0===d?void 0:d.current)||null,q=(null===(s=m.current[L])||void 0===s?void 0:s.current)||null;if(I&&N&&O&&q){if(O.style.paddingTop="0px",q.style.paddingTop="0px",!a){var k=I.getBoundingClientRect(),D=N.getBoundingClientRect(),G=k.top-D.top;G>0?q.style.paddingTop="".concat(G,"px"):G<0&&(O.style.paddingTop="".concat(Math.abs(G),"px"))}var H=b.current,J=y.current;if(H&&J){var K=I.getBoundingClientRect().top-H.getBoundingClientRect().top+H.scrollTop,Q=N.getBoundingClientRect().top-J.getBoundingClientRect().top+J.scrollTop-(K-H.scrollTop);Math.abs(J.scrollTop-Q)>1&&(J.scrollTop=Q)}}}null===(x=z.current)||void 0===x||x.call(z),f.current&&A(!0)}catch(n){console.error("Error in resize handler: ",n)}finally{w(!1),j.current=null}},150)},[a,d,s]);return{handleResize:q,handleResizeRef:O}};export{u as useResizeHandler};
1
+ import{useRef as e,useEffect as r,useCallback as n}from"react";import{DEVIATION_BADGE_SEPARATOR as t}from"../CognitiveComparehelpers.js";const c=({timerRef:c,ruleComponentRef:u,scrollContainerRef:l,containerRef:i,maintainRelativeOrder:o,proposedSections:s,existingSections:a,isSideBySideRef:R,activeSideBySideSectionRef:d,activeSideBySideRightSectionRef:f,sectionRowRefs:p,sectionRightRowRefs:g,sectionLeftRefs:h,sectionRightRefs:m,subSectionLeftRefs:C,subSectionRightRefs:S,lhsBadgeRefs:B,rhsBadgeRefs:T,leftContainerRef:b,rightContainerRef:y,calculateLinesRef:z,handleResizeRef:x,setIsResizing:v,setIsArrowVisible:w,sideBySideCacheRef:$,cachedConnectedPositions:A})=>{const E=e(0),F=e(0),L=e(0),M=e(()=>{}),I=x??M,N=e(null);e(c),r(()=>{const e=(e,r,n,t,c)=>{r.current=e.getBoundingClientRect().width;const u=new ResizeObserver(e=>{null!==n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{n.current=null;const u=e[e.length-1];if(!u)return;const l=u.borderBoxSize?.[0]?.inlineSize??u.contentRect.width;Math.abs(l-r.current)<1?c():(r.current=l,t())})});return u.observe(e),u},r={current:null},n={current:null},t={current:null},c=[],o=[r,n,t];return u.current&&c.push(e(u.current,E,r,()=>I.current(),()=>{})),l.current&&c.push(e(l.current,F,n,()=>I.current(),()=>z.current?.())),i.current&&c.push(e(i.current,L,t,()=>I.current(),()=>z.current?.())),()=>{c.forEach(e=>e.disconnect()),o.forEach(e=>{null!==e.current&&(cancelAnimationFrame(e.current),e.current=null)})}},[]);return{handleResize:n(()=>{v(!0),w(!1),$.current=null,null!==N.current&&clearTimeout(N.current),null!==c.current&&(clearTimeout(c.current),c.current=null),N.current=setTimeout(()=>{try{if(A.current=[],R.current&&null!==d.current&&null!==f.current){const e=d.current,r=f.current,n="string"==typeof e&&e.includes(t);let c=null,u=null,l=null,i=null;if(n){const r=e.split(t),n=`${r[0]}${t}${r[1]}`;c=B.current[n]?.current||null,u=T.current[n]?.current||null,l=C.current[r[2]]?.current||h.current[Number(r[2])]?.current||null,i=S.current[r[3]]?.current||m.current[Number(r[3])]?.current||null}else c=p.current[e]?.current||null,l=h.current[e]?.current||null,u=g.current[r]?.current||null,i=m.current[r]?.current||null;if(c&&u&&l&&i){if(l.style.paddingTop="0px",i.style.paddingTop="0px",!o){const e=c.getBoundingClientRect(),r=u.getBoundingClientRect(),n=e.top-r.top;n>0?i.style.paddingTop=`${n}px`:n<0&&(l.style.paddingTop=`${Math.abs(n)}px`)}const e=b.current,r=y.current;if(e&&r){const n=c.getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop,t=u.getBoundingClientRect().top-r.getBoundingClientRect().top+r.scrollTop,l=t-(n-e.scrollTop);Math.abs(r.scrollTop-l)>1&&(r.scrollTop=l)}}}z.current?.(),R.current&&w(!0)}catch(e){console.error("Error in resize handler: ",e)}finally{v(!1),N.current=null}},150)},[o,s,a]),handleResizeRef:I}};export{c as useResizeHandler};
2
2
  //# sourceMappingURL=useResizeHandler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useResizeHandler.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"useResizeHandler.js","sources":["../../../../src/features/CognitiveCompare/hooks/useResizeHandler.ts"],"sourcesContent":["import React, { useCallback, useEffect, useRef } from \"react\";\nimport { DEVIATION_BADGE_SEPARATOR } from \"../CognitiveComparehelpers\";\n\nexport const useResizeHandler = ({\n timerRef,\n ruleComponentRef,\n scrollContainerRef,\n containerRef,\n maintainRelativeOrder,\n proposedSections,\n existingSections,\n isSideBySideRef,\n activeSideBySideSectionRef,\n activeSideBySideRightSectionRef,\n sectionRowRefs,\n sectionRightRowRefs,\n sectionLeftRefs,\n sectionRightRefs,\n subSectionLeftRefs,\n subSectionRightRefs,\n lhsBadgeRefs,\n rhsBadgeRefs,\n leftContainerRef,\n rightContainerRef,\n calculateLinesRef,\n handleResizeRef: externalHandleResizeRef,\n setIsResizing,\n setIsArrowVisible,\n sideBySideCacheRef,\n cachedConnectedPositions\n}: any) => {\n\n // REFS Declaration\n const prevRootWidthRef = useRef<number>(0);\n const prevScrollWidthRef = useRef<number>(0);\n const prevContainerWidthRef = useRef<number>(0);\n const internalHandleResizeRef = useRef<() => void>(() => { });\n const handleResizeRef = externalHandleResizeRef ?? internalHandleResizeRef;\n const resizeTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const timerRefLocal = useRef<ReturnType<typeof setTimeout> | null>(timerRef);\n\n useEffect(() => {\n // Local function to create a ResizeObserver for a given element and width reference, with debouncing using requestAnimationFrame\n const makeWidthObserver = (\n element: HTMLElement,\n prevWidthRef: React.MutableRefObject<number>,\n rafRef: React.MutableRefObject<number | null>, // Request AnimationFrame reference for debouncing\n onWidthChange: () => void,\n onNoChange: () => void\n ): ResizeObserver => {\n prevWidthRef.current = element.getBoundingClientRect().width;\n\n const observer = new ResizeObserver((entries) => {\n // Cancel the animation frame if rAF is already scheduled to prevent multiple calls during rapid resize events\n if (rafRef.current !== null) cancelAnimationFrame(rafRef.current);\n\n rafRef.current = requestAnimationFrame(() => {\n rafRef.current = null; // Reset rAF reference after execution\n\n const entry = entries[entries.length - 1];\n if (!entry) return;\n\n // Calculate the new width using borderBoxSize if available for more accurate measurements, otherwise fallback to contentRect\n const newWidth = entry.borderBoxSize?.[0]?.inlineSize ?? entry.contentRect.width;\n\n if (Math.abs(newWidth - prevWidthRef.current) < 1) {\n onNoChange();\n return;\n }\n\n prevWidthRef.current = newWidth;\n onWidthChange();\n });\n });\n observer.observe(element);\n return observer;\n };\n\n // Each observer gets its own rAF so they don't cancel each other\n // Preventing race conditions\n const rootRafRef: React.MutableRefObject<number | null> = { current: null };\n const scrollRafRef: React.MutableRefObject<number | null> = { current: null };\n const containerRafRef: React.MutableRefObject<number | null> = { current: null };\n\n const observers: ResizeObserver[] = [];\n const rafRefs = [rootRafRef, scrollRafRef, containerRafRef];\n\n if (ruleComponentRef.current) {\n observers.push(makeWidthObserver(\n ruleComponentRef.current,\n prevRootWidthRef,\n rootRafRef,\n () => handleResizeRef.current(),\n () => { },\n ));\n }\n\n if (scrollContainerRef.current) {\n observers.push(\n makeWidthObserver(\n scrollContainerRef.current,\n prevScrollWidthRef,\n scrollRafRef,\n () => handleResizeRef.current(),\n // Optional chaining to prevent runtime crashes\n () => calculateLinesRef.current?.(),\n ),\n )\n }\n\n if (containerRef.current) {\n observers.push(makeWidthObserver(\n containerRef.current,\n prevContainerWidthRef,\n containerRafRef,\n () => handleResizeRef.current(),\n () => calculateLinesRef.current?.(),\n ));\n }\n\n // Cleanup function to disconnect\n return () => {\n observers.forEach((observer: ResizeObserver) => observer.disconnect());\n rafRefs.forEach((rafRef: React.MutableRefObject<number | null>) => {\n if (rafRef.current !== null) {\n cancelAnimationFrame(rafRef.current);\n rafRef.current = null;\n }\n })\n }\n // add observers in initial mount only\n }, []);\n\n const handleResize = useCallback(() => {\n setIsResizing(true);\n setIsArrowVisible(false);\n\n sideBySideCacheRef.current = null;\n if (resizeTimerRef.current !== null) clearTimeout(resizeTimerRef.current);\n\n if (timerRef.current !== null) {\n clearTimeout(timerRef.current);\n timerRef.current = null;\n }\n\n resizeTimerRef.current = setTimeout(() => {\n try {\n cachedConnectedPositions.current = [];\n\n if (isSideBySideRef.current && activeSideBySideSectionRef.current !== null && activeSideBySideRightSectionRef.current !== null) {\n const activeLeftIdx = activeSideBySideSectionRef.current;\n const activeRightIdx = activeSideBySideRightSectionRef.current;\n\n const isSubSection = typeof activeLeftIdx === \"string\" && activeLeftIdx.includes(DEVIATION_BADGE_SEPARATOR);\n\n let leftElement: HTMLElement | null = null;\n let rightElement: HTMLElement | null = null;\n let leftPadTarget: HTMLElement | null = null;\n let rightPadTarget: HTMLElement | null = null;\n\n if (isSubSection) {\n const parts = (activeLeftIdx as string).split(DEVIATION_BADGE_SEPARATOR);\n\n const refIdx = `${parts[0]}${DEVIATION_BADGE_SEPARATOR}${parts[1]}`;\n\n leftElement = lhsBadgeRefs.current[refIdx]?.current || null;\n rightElement = rhsBadgeRefs.current[refIdx]?.current || null;\n\n leftPadTarget =\n subSectionLeftRefs.current[parts[2]]?.current ||\n sectionLeftRefs.current[Number(parts[2])]?.current ||\n null;\n\n rightPadTarget =\n subSectionRightRefs.current[parts[3]]?.current ||\n sectionRightRefs.current[Number(parts[3])]?.current ||\n null;\n } else {\n leftElement = sectionRowRefs.current[activeLeftIdx as number]?.current || null;\n leftPadTarget = sectionLeftRefs.current[activeLeftIdx as number]?.current || null;\n\n rightElement = sectionRightRowRefs.current[activeRightIdx as number]?.current || null;\n rightPadTarget = sectionRightRefs.current[activeRightIdx as number]?.current || null;\n\n }\n\n\n if (leftElement && rightElement && leftPadTarget && rightPadTarget) {\n leftPadTarget.style.paddingTop = \"0px\";\n rightPadTarget.style.paddingTop = \"0px\";\n\n\n if (!maintainRelativeOrder) {\n const leftBadgeRect = leftElement.getBoundingClientRect();\n const rightBadgeRect = rightElement.getBoundingClientRect();\n\n const badgeDiff = leftBadgeRect.top - rightBadgeRect.top;\n\n // Add padding based on the left / right click\n if (badgeDiff > 0) {\n rightPadTarget.style.paddingTop = `${badgeDiff}px`;\n } else if (badgeDiff < 0) {\n leftPadTarget.style.paddingTop = `${Math.abs(badgeDiff)}px`;\n }\n }\n\n const leftContainer = leftContainerRef.current;\n const rightContainer = rightContainerRef.current;\n\n if (leftContainer && rightContainer) {\n const leftAbsoluteTop =\n leftElement.getBoundingClientRect().top - leftContainer.getBoundingClientRect().top + leftContainer.scrollTop;\n\n const rightAbsoluteTop =\n rightElement.getBoundingClientRect().top - rightContainer.getBoundingClientRect().top + rightContainer.scrollTop;\n\n // Get relative position of left deviation badge\n const currentRelativeY = leftAbsoluteTop - leftContainer.scrollTop;\n\n // Amount of scroll to be performed in the RHS\n const targetRightScroll = rightAbsoluteTop - currentRelativeY;\n\n if (Math.abs(rightContainer.scrollTop - targetRightScroll) > 1) {\n rightContainer.scrollTop = targetRightScroll;\n }\n }\n }\n }\n\n // Recalculate lines once the position and scroll calculation is completed\n calculateLinesRef.current?.();\n\n // Once calculation are done show the arrows\n if (isSideBySideRef.current) {\n setIsArrowVisible(true);\n }\n } catch (err: any) {\n console.error(\"Error in resize handler: \", err);\n }\n finally {\n setIsResizing(false);\n resizeTimerRef.current = null;\n }\n // 150 ms delay timeout to trigger handleResize once resizing animation is completed\n }, 150);\n }, [maintainRelativeOrder, proposedSections, existingSections]);\n\n return {\n handleResize,\n handleResizeRef\n }\n}\n"],"names":["useResizeHandler","timerRef","ruleComponentRef","scrollContainerRef","containerRef","maintainRelativeOrder","proposedSections","existingSections","isSideBySideRef","activeSideBySideSectionRef","activeSideBySideRightSectionRef","sectionRowRefs","sectionRightRowRefs","sectionLeftRefs","sectionRightRefs","subSectionLeftRefs","subSectionRightRefs","lhsBadgeRefs","rhsBadgeRefs","leftContainerRef","rightContainerRef","calculateLinesRef","handleResizeRef","externalHandleResizeRef","setIsResizing","setIsArrowVisible","sideBySideCacheRef","cachedConnectedPositions","prevRootWidthRef","useRef","prevScrollWidthRef","prevContainerWidthRef","internalHandleResizeRef","resizeTimerRef","useEffect","makeWidthObserver","element","prevWidthRef","rafRef","onWidthChange","onNoChange","current","getBoundingClientRect","width","observer","ResizeObserver","entries","cancelAnimationFrame","requestAnimationFrame","entry","length","newWidth","borderBoxSize","inlineSize","contentRect","Math","abs","observe","rootRafRef","scrollRafRef","containerRafRef","observers","rafRefs","push","forEach","disconnect","handleResize","useCallback","clearTimeout","setTimeout","activeLeftIdx","activeRightIdx","isSubSection","includes","DEVIATION_BADGE_SEPARATOR","leftElement","rightElement","leftPadTarget","rightPadTarget","parts","split","refIdx","Number","style","paddingTop","leftBadgeRect","rightBadgeRect","badgeDiff","top","leftContainer","rightContainer","leftAbsoluteTop","scrollTop","rightAbsoluteTop","targetRightScroll","err","console","error"],"mappings":"yIAGO,MAAMA,EAAmB,EAC5BC,WACAC,mBACAC,qBACAC,eACAC,wBACAC,mBACAC,mBACAC,kBACAC,6BACAC,kCACAC,iBACAC,sBACAC,kBACAC,mBACAC,qBACAC,sBACAC,eACAC,eACAC,mBACAC,oBACAC,oBACAC,gBAAiBC,EACjBC,gBACAC,oBACAC,qBACAC,+BAIM,MAAAC,EAAmBC,EAAe,GAClCC,EAAqBD,EAAe,GACpCE,EAAwBF,EAAe,GACvCG,EAA0BH,EAAmB,QAC7CP,EAAkBC,GAA2BS,EAC7CC,EAAiBJ,EAA6C,MAC9CA,EAA6C5B,GAEnEiC,EAAU,KAEN,MAAMC,EAAoB,CACtBC,EACAC,EACAC,EACAC,EACAC,KAEaH,EAAAI,QAAUL,EAAQM,wBAAwBC,MAEvD,MAAMC,EAAW,IAAIC,eAAgBC,IAEV,OAAnBR,EAAOG,SAAkBM,qBAAqBT,EAAOG,SAElDH,EAAAG,QAAUO,sBAAsB,KACnCV,EAAOG,QAAU,KAEjB,MAAMQ,EAAQH,EAAQA,EAAQI,OAAS,GACvC,IAAKD,EAAO,OAGZ,MAAME,EAAWF,EAAMG,gBAAgB,IAAIC,YAAcJ,EAAMK,YAAYX,MAEvEY,KAAKC,IAAIL,EAAWd,EAAaI,SAAW,EACjCD,KAIfH,EAAaI,QAAUU,EACTZ,SAIf,OADPK,EAASa,QAAQrB,GACVQ,GAKLc,EAAoD,CAAEjB,QAAS,MAC/DkB,EAAsD,CAAElB,QAAS,MACjEmB,EAAyD,CAAEnB,QAAS,MAEpEoB,EAA8B,GAC9BC,EAAU,CAACJ,EAAYC,EAAcC,GAoC3C,OAlCI1D,EAAiBuC,SACjBoB,EAAUE,KAAK5B,EACXjC,EAAiBuC,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+1,2 @@
1
- import e,{useRef as t,useCallback as r}from"react";var n=function(){return e.createRef()},f=function(e,f){var c=t({}),u=t({}),o=t({}),i=t({}),R=t({}),s=t({}),a=t({}),g=t({}),h=t({}),l=t({}),v=r(function(e,t){var r="left"===e?c.current:u.current;return r[t]||(r[t]=n()),r[t]},[]),S=r(function(e,t){return e.current[t]||(e.current[t]=n()),e.current[t]},[]);e.forEach(function(e){v("left",e),v("right",e)});for(var d=0;d<f;d+=1)S(o,d),S(i,d),S(R,d),S(s,d),S(a,d);var b=r(function(e){return S(l,e)},[S]),w=r(function(e,t){var r="left"===e?g.current:h.current;return r[t]||(r[t]=n()),r[t]},[]),B=r(function(e,t){return S("left"===e?R:s,t)},[S]);return{leftRefs:c,rightRefs:u,sectionLeftRefs:o,sectionRightRefs:i,lhsBadgeRefs:R,rhsBadgeRefs:s,sectionRightRowRefs:a,subSectionLeftRefs:g,subSectionRightRefs:h,sectionRowRefs:l,getFieldRef:v,getSectionRowRef:b,getSubSectionRef:w,getBadgeRef:B}};export{f as useSectionRefs};
1
+ import e,{useRef as t,useCallback as r}from"react";const f=()=>e.createRef(),c=(e,c)=>{const n=t({}),s=t({}),o=t({}),R=t({}),i=t({}),u=t({}),g=t({}),h=t({}),l=t({}),a=t({}),S=r((e,t)=>{const r="left"===e?n.current:s.current;return r[t]||(r[t]=f()),r[t]},[]),d=r((e,t)=>(e.current[t]||(e.current[t]=f()),e.current[t]),[]);e.forEach(e=>{S("left",e),S("right",e)});for(let e=0;e<c;e+=1)d(o,e),d(R,e),d(i,e),d(u,e),d(g,e);const b=r(e=>d(a,e),[d]),w=r((e,t)=>{const r="left"===e?h.current:l.current;return r[t]||(r[t]=f()),r[t]},[]),B=r((e,t)=>d("left"===e?i:u,t),[d]);return{leftRefs:n,rightRefs:s,sectionLeftRefs:o,sectionRightRefs:R,lhsBadgeRefs:i,rhsBadgeRefs:u,sectionRightRowRefs:g,subSectionLeftRefs:h,subSectionRightRefs:l,sectionRowRefs:a,getFieldRef:S,getSectionRowRef:b,getSubSectionRef:w,getBadgeRef:B}};export{c as useSectionRefs};
2
2
  //# sourceMappingURL=useSectionRefs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSectionRefs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"useSectionRefs.js","sources":["../../../../src/features/CognitiveCompare/hooks/useSectionRefs.ts"],"sourcesContent":["import React, { useCallback, useRef } from \"react\";\nimport { DivRefMap } from \"../CognitiveCompareTypes\";\n\n\n\nconst createDivRef = () => React.createRef<HTMLDivElement>();\n\nexport const useSectionRefs = (\n visibleFieldKeys: string[],\n sectionCount: number,\n) => {\n const leftRefs = useRef<DivRefMap<string>>({});\n const rightRefs = useRef<DivRefMap<string>>({});\n const sectionLeftRefs = useRef<DivRefMap>({});\n const sectionRightRefs = useRef<DivRefMap>({});\n const lhsBadgeRefs = useRef<DivRefMap>({});\n const rhsBadgeRefs = useRef<DivRefMap>({});\n const sectionRightRowRefs = useRef<DivRefMap>({});\n const subSectionLeftRefs = useRef<DivRefMap<string>>({});\n const subSectionRightRefs = useRef<DivRefMap<string>>({});\n const sectionRowRefs = useRef<DivRefMap>({});\n\n const getFieldRef = useCallback(\n (side: \"left\" | \"right\", key: string) => {\n const store = side === \"left\" ? leftRefs.current : rightRefs.current;\n if (!store[key]) {\n store[key] = createDivRef();\n }\n return store[key];\n },\n [],\n );\n\n const getIndexedRef = useCallback(\n (store: React.MutableRefObject<DivRefMap>, key: string | number) => {\n if (!store.current[key]) {\n store.current[key] = createDivRef();\n }\n return store.current[key];\n },\n [],\n );\n\n visibleFieldKeys.forEach((key) => {\n getFieldRef(\"left\", key);\n getFieldRef(\"right\", key);\n });\n\n for (let i = 0; i < sectionCount; i += 1) {\n getIndexedRef(sectionLeftRefs, i);\n getIndexedRef(sectionRightRefs, i);\n getIndexedRef(lhsBadgeRefs, i);\n getIndexedRef(rhsBadgeRefs, i);\n getIndexedRef(sectionRightRowRefs, i);\n }\n\n const getSectionRowRef = useCallback(\n (idx: string | number) => getIndexedRef(sectionRowRefs, idx),\n [getIndexedRef],\n );\n\n const getSubSectionRef = useCallback(\n (side: \"left\" | \"right\", keyPath: string) => {\n const store =\n side === \"left\" ? subSectionLeftRefs.current : subSectionRightRefs.current;\n if (!store[keyPath]) {\n store[keyPath] = createDivRef();\n }\n return store[keyPath];\n },\n [],\n );\n\n const getBadgeRef = useCallback(\n (side: \"left\" | \"right\", key: string | number) => {\n const store = side === \"left\" ? lhsBadgeRefs : rhsBadgeRefs;\n return getIndexedRef(store, key);\n },\n [getIndexedRef],\n );\n\n return {\n leftRefs,\n rightRefs,\n sectionLeftRefs,\n sectionRightRefs,\n lhsBadgeRefs,\n rhsBadgeRefs,\n sectionRightRowRefs,\n subSectionLeftRefs,\n subSectionRightRefs,\n sectionRowRefs,\n getFieldRef,\n getSectionRowRef,\n getSubSectionRef,\n getBadgeRef,\n };\n};\n"],"names":["createDivRef","React","createRef","useSectionRefs","visibleFieldKeys","sectionCount","leftRefs","useRef","rightRefs","sectionLeftRefs","sectionRightRefs","lhsBadgeRefs","rhsBadgeRefs","sectionRightRowRefs","subSectionLeftRefs","subSectionRightRefs","sectionRowRefs","getFieldRef","useCallback","side","key","store","current","getIndexedRef","forEach","i","getSectionRowRef","idx","getSubSectionRef","keyPath","getBadgeRef"],"mappings":"mDAKA,MAAMA,EAAe,IAAMC,EAAMC,YAEpBC,EAAiB,CAC5BC,EACAC,KAEM,MAAAC,EAAWC,EAA0B,CAAA,GACrCC,EAAYD,EAA0B,CAAA,GACtCE,EAAkBF,EAAkB,CAAA,GACpCG,EAAmBH,EAAkB,CAAA,GACrCI,EAAeJ,EAAkB,CAAA,GACjCK,EAAeL,EAAkB,CAAA,GACjCM,EAAsBN,EAAkB,CAAA,GACxCO,EAAqBP,EAA0B,CAAA,GAC/CQ,EAAsBR,EAA0B,CAAA,GAChDS,EAAiBT,EAAkB,CAAA,GAEnCU,EAAcC,EAClB,CAACC,EAAwBC,KACvB,MAAMC,EAAiB,SAATF,EAAkBb,EAASgB,QAAUd,EAAUc,QAI7D,OAHKD,EAAMD,KACHC,EAAAD,GAAOpB,KAERqB,EAAMD,IAEf,IAGIG,EAAgBL,EACpB,CAACG,EAA0CD,KACpCC,EAAMC,QAAQF,KACXC,EAAAC,QAAQF,GAAOpB,KAEhBqB,EAAMC,QAAQF,IAEvB,IAGehB,EAAAoB,QAASJ,IACxBH,EAAY,OAAQG,GACpBH,EAAY,QAASG,KAGvB,IAAA,IAASK,EAAI,EAAGA,EAAIpB,EAAcoB,GAAK,EACrCF,EAAcd,EAAiBgB,GAC/BF,EAAcb,EAAkBe,GAChCF,EAAcZ,EAAcc,GAC5BF,EAAcX,EAAca,GAC5BF,EAAcV,EAAqBY,GAGrC,MAAMC,EAAmBR,EACtBS,GAAyBJ,EAAcP,EAAgBW,GACxD,CAACJ,IAGGK,EAAmBV,EACvB,CAACC,EAAwBU,KACvB,MAAMR,EACK,SAATF,EAAkBL,EAAmBQ,QAAUP,EAAoBO,QAIrE,OAHKD,EAAMQ,KACHR,EAAAQ,GAAW7B,KAEZqB,EAAMQ,IAEf,IAGIC,EAAcZ,EAClB,CAACC,EAAwBC,IAEhBG,EADgB,SAATJ,EAAkBR,EAAeC,EACnBQ,GAE9B,CAACG,IAGI,MAAA,CACLjB,WACAE,YACAC,kBACAC,mBACAC,eACAC,eACAC,sBACAC,qBACAC,sBACAC,iBACAC,cACAS,mBACAE,mBACAE"}
@@ -1,2 +1,2 @@
1
- import{useState as e,useRef as n,useCallback as t,useEffect as r}from"react";import{DEVIATION_BADGE_SEPARATOR as i,resetClauseHighlight as l,smoothScrollTo as u}from"../CognitiveComparehelpers.js";var o=function(o){var c=o.isGuidelineMode,d=o.maintainRelativeOrder,s=o.proposedSections,v=o.existingSections,a=o.leftContainerRef,p=o.rightContainerRef,g=o.scrollContainerRef,f=o.sectionLeftRefs,h=o.sectionRightRefs,R=o.subSectionLeftRefs,S=o.subSectionRightRefs,y=o.lhsBadgeRefs,m=o.rhsBadgeRefs,B=o.sectionRowRefs,x=o.sectionRightRowRefs,C=o.rhsTopSpacerRef,T=o.rhsBottomSpacerRef,b=o.lhsTopSpacerRef,A=o.lhsBottomSpacerRef,I=o.calculateLinesRef,w=o.setConnectedSections,L=o.setConnectedLines,E=o.cachedConnectedPositions,F=o.closeMoreFunctionsPopup,N=o.setErrorToast;o.moreFunctions,o.closeSummaryPopup;var q=e(!1),H=q[0],M=q[1],P=e(!1),z=P[0],V=P[1],j=e(!1),k=j[0],G=j[1],O=e(!1),D=O[0],J=O[1],K=e(null),Q=K[0],U=K[1],W=n(!1),X=n(null),Y=n(!1),Z=n(null),$=n(null),_=n(null),ee=n(new Set),ne=function(){ee.current.forEach(function(e){l(e)}),ee.current.clear()},te=function(e,n,t){var r,l,u,o,c,d,s,v,g,C,T,b,A=null,I=null,w=null,L=null,E=null,F=null,N=function(e,n){if(!e||!n)return!0;var t=e.getBoundingClientRect(),r=n.getBoundingClientRect();return t.bottom>=r.top&&t.top<=r.bottom};if(e){var q=n.split(i),H="".concat(q[0]).concat(i).concat(q[1]);A=(null===(r=R.current[q[2]])||void 0===r?void 0:r.current)||(null===(l=f.current[Number(q[2])])||void 0===l?void 0:l.current)||null,I=(null===(u=S.current[q[3]])||void 0===u?void 0:u.current)||(null===(o=h.current[Number(q[3])])||void 0===o?void 0:o.current)||null,w=(null===(c=y.current[H])||void 0===c?void 0:c.current)||A,L=(null===(d=m.current[H])||void 0===d?void 0:d.current)||I}else{var M=Number(n),P=null!==t?Number(t):M;A=(null===(s=f.current[M])||void 0===s?void 0:s.current)||null,I=(null===(v=h.current[P])||void 0===v?void 0:v.current)||null,E=(null===(g=y.current[M])||void 0===g?void 0:g.current)||null,F=(null===(C=m.current[P])||void 0===C?void 0:C.current)||null,w=E||(null===(T=B.current[M])||void 0===T?void 0:T.current)||A,L=F||(null===(b=x.current[P])||void 0===b?void 0:b.current)||I}if(A&&(A.style.paddingTop="0px"),I&&(I.style.paddingTop="0px"),e||(E&&(E.style.marginTop="0px"),F&&(F.style.marginTop="0px")),!e&&E&&F){var z=a.current,V=p.current;if(!N(E,z)||!N(F,V))return;var j=E.getBoundingClientRect(),k=F.getBoundingClientRect(),G=j.top-k.top;if(Math.abs(G)>32)return;G>0&&(F.style.marginTop="".concat(G,"px"))}else if(w&&L&&A&&I){j=w.getBoundingClientRect(),k=L.getBoundingClientRect();(G=j.top-k.top)>0&&(I.style.paddingTop="".concat(G,"px"))}},re=t(function(){var e,n,t,r,l,u,o,c,d=Z.current,s=$.current;if(null!==d)if("string"==typeof d&&d.includes(i)){var v=d.split(i),a=(null===(e=R.current[v[2]])||void 0===e?void 0:e.current)||(null===(n=f.current[Number(v[2])])||void 0===n?void 0:n.current)||null,p=(null===(t=S.current[v[3]])||void 0===t?void 0:t.current)||(null===(r=h.current[Number(v[3])])||void 0===r?void 0:r.current)||null;a&&(a.style.paddingTop="0px"),p&&(p.style.paddingTop="0px")}else{a=(null===(l=f.current[d])||void 0===l?void 0:l.current)||null,p=(null===(u=h.current[null!=s?s:d])||void 0===u?void 0:u.current)||null;a&&(a.style.paddingTop="0px"),p&&(p.style.paddingTop="0px");var g=(null===(o=y.current[d])||void 0===o?void 0:o.current)||null,B=(null===(c=m.current[null!=s?s:d])||void 0===c?void 0:c.current)||null;g&&(g.style.marginTop="0px"),B&&(B.style.marginTop="0px")}C.current&&(C.current.style.height="0px"),T.current&&(T.current.style.height="0px"),b.current&&(b.current.style.height="0px"),A.current&&(A.current.style.height="0px")},[]);r(function(){Y.current=H},[H]),r(function(){Z.current=Q},[Q]);var ie=t(function(){ne(),M(!1),Y.current=!1,X.current=null,re(),U(null),Z.current=null,$.current=null,V(!1),J(!1)},[re]),le=t(function(e,n,t){var r,l,o=null===(r=null==t?void 0:t.toggleIfSame)||void 0===r||r,R=null==t?void 0:t.onReady,S=null!==(l=null==t?void 0:t.sourceSide)&&void 0!==l?l:"left";if(F(),null!=e)if(!n||c){ne();var q=H&&Q===e;H&&null!==Q&&re(),q&&o?ie():(w(new Set([e])),L([]),E.current=[],J(!0),W.current=!0,U(e),Z.current=e,M(!0),Y.current=!0,V(!1),C.current&&(C.current.style.height="0px"),T.current&&(T.current.style.height="0px"),b.current&&(b.current.style.height="0px"),A.current&&(A.current.style.height="0px"),requestAnimationFrame(function(){var n=function(){var n,t,r,l,o,b,A,w,L,E,F,N="string"==typeof e&&e.includes(i),q=null,H=null,M=null;if(c){if(N){var P=e.split(i),z="".concat(P[0]).concat(i).concat(P[1]);q=(null===(n=y.current[z])||void 0===n?void 0:n.current)||null}else q=(null===(t=f.current[e])||void 0===t?void 0:t.current)||(null===(r=B.current[e])||void 0===r?void 0:r.current)||null;H=document.getElementById("guideline-target-0"),M=H?e:null}else if(N){P=e.split(i),z="".concat(P[0]).concat(i).concat(P[1]);q=(null===(l=y.current[z])||void 0===l?void 0:l.current)||null,H=(null===(o=m.current[z])||void 0===o?void 0:o.current)||null,M=H?e:null}else if(q=(null===(b=f.current[e])||void 0===b?void 0:b.current)||(null===(A=B.current[e])||void 0===A?void 0:A.current)||null,d){var j=s[e],k=(null==j?void 0:j.refIndexes)||[];if(k.length>0){var G=k[0],O=v.findIndex(function(e){return e.selfIndex===G});-1!==O&&(H=(null===(E=h.current[O])||void 0===E?void 0:E.current)||(null===(F=x.current[O])||void 0===F?void 0:F.current)||null,M=O)}}else H=(null===(w=h.current[e])||void 0===w?void 0:w.current)||(null===(L=x.current[e])||void 0===L?void 0:L.current)||null,M=H?e:null;$.current=M;var D=a.current,K=p.current,Q=function(){te(N,e,M),V(!0),I.current&&I.current(),W.current=!1,"right"===S&&K?K.dispatchEvent(new Event("scroll")):D&&D.dispatchEvent(new Event("scroll")),J(!1),null==R||R()};if(!q||!D)return W.current=!1,J(!1),void(null==R||R());if(H&&K){if(!d){var U=0;U="right"===S?H?H.getBoundingClientRect().top:0:q?q.getBoundingClientRect().top:0;var X=g.current,Y=(null==X?void 0:X.getBoundingClientRect().top)||0,Z=X?X.scrollTop+U-Y-150:0;return X?void u(X,Z,200,Q):void Q()}var _=q.getBoundingClientRect().top-D.getBoundingClientRect().top+D.scrollTop,ee=H.getBoundingClientRect().top-K.getBoundingClientRect().top+K.scrollTop,ne=200;if("left"===S){var re=ee-(_-D.scrollTop);re<0&&C.current&&!c&&(C.current.style.height="".concat(Math.abs(re),"px")),requestAnimationFrame(function(){var e,n=K.scrollHeight-K.clientHeight;if(re<0)e=0;else{if(re>n){var t=re-n;return T.current&&!c&&(T.current.style.height="".concat(t+150,"px")),void requestAnimationFrame(function(){u(K,re,ne,Q)})}e=re}u(K,e,ne,Q)})}else{var ie=_-(ee-K.scrollTop);requestAnimationFrame(function(){var e,n=D.scrollHeight-D.clientHeight;if(ie<0)e=0;else{if(ie>n)return void requestAnimationFrame(function(){return u(D,n,ne,Q)});e=ie}u(D,e,ne,Q)})}}else Q()};c?setTimeout(n,100):n()}))}else N("No counterpart exists for this section.")},[Q,F,v,H,d,s,re,ie,c]);return{isSideBySide:H,setIsSideBySide:M,isArrowVisible:z,setIsArrowVisible:V,isResizing:k,setIsResizing:G,isSideBySideLoading:D,setIsSideBySideLoading:J,activeSideBySideSection:Q,setActiveSideBySideSection:U,scrollLock:W,sideBySideCacheRef:X,isSideBySideRef:Y,activeSideBySideSectionRef:Z,activeSideBySideRightSectionRef:$,sideBySideLineRef:_,highlightedClauseRefs:ee,clearClauseHighlight:ne,applyAlignmentPadding:te,resetSideBySide:ie,activateSideBySide:le}};export{o as useSideBySide};
1
+ import{useState as e,useRef as t,useCallback as n,useEffect as r}from"react";import{DEVIATION_BADGE_SEPARATOR as c,resetClauseHighlight as i,smoothScrollTo as u}from"../CognitiveComparehelpers.js";const l=({isGuidelineMode:l,maintainRelativeOrder:o,proposedSections:s,existingSections:d,leftContainerRef:p,rightContainerRef:g,scrollContainerRef:a,sectionLeftRefs:f,sectionRightRefs:h,subSectionLeftRefs:R,subSectionRightRefs:S,lhsBadgeRefs:y,rhsBadgeRefs:m,sectionRowRefs:B,sectionRightRowRefs:x,rhsTopSpacerRef:C,rhsBottomSpacerRef:T,lhsTopSpacerRef:v,lhsBottomSpacerRef:b,calculateLinesRef:$,setConnectedSections:A,setConnectedLines:I,cachedConnectedPositions:w,closeMoreFunctionsPopup:L,setErrorToast:E,moreFunctions:F,closeSummaryPopup:N})=>{const[q,H]=e(!1),[M,P]=e(!1),[z,V]=e(!1),[j,k]=e(!1),[G,O]=e(null),D=t(!1),J=t(null),K=t(!1),Q=t(null),U=t(null),W=t(null),X=t(new Set),Y=()=>{X.current.forEach(e=>{i(e)}),X.current.clear()},Z=(e,t,n)=>{let r=null,i=null,u=null,l=null,o=null,s=null;const d=(e,t)=>{if(!e||!t)return!0;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.bottom>=r.top&&n.top<=r.bottom};if(e){const e=t.split(c),n=`${e[0]}${c}${e[1]}`;r=R.current[e[2]]?.current||f.current[Number(e[2])]?.current||null,i=S.current[e[3]]?.current||h.current[Number(e[3])]?.current||null,u=y.current[n]?.current||r,l=m.current[n]?.current||i}else{const e=Number(t),c=null!==n?Number(n):e;r=f.current[e]?.current||null,i=h.current[c]?.current||null,o=y.current[e]?.current||null,s=m.current[c]?.current||null,u=o||B.current[e]?.current||r,l=s||x.current[c]?.current||i}if(r&&(r.style.paddingTop="0px"),i&&(i.style.paddingTop="0px"),e||(o&&(o.style.marginTop="0px"),s&&(s.style.marginTop="0px")),!e&&o&&s){const e=p.current,t=g.current;if(!d(o,e)||!d(s,t))return;const n=o.getBoundingClientRect(),r=s.getBoundingClientRect(),c=n.top-r.top;if(Math.abs(c)>32)return;return void(c>0&&(s.style.marginTop=`${c}px`))}if(u&&l&&r&&i){const e=u.getBoundingClientRect(),t=l.getBoundingClientRect(),n=e.top-t.top;n>0&&(i.style.paddingTop=`${n}px`)}},_=n(()=>{const e=Q.current,t=U.current;if(null!==e)if("string"==typeof e&&e.includes(c)){const t=e.split(c),n=R.current[t[2]]?.current||f.current[Number(t[2])]?.current||null,r=S.current[t[3]]?.current||h.current[Number(t[3])]?.current||null;n&&(n.style.paddingTop="0px"),r&&(r.style.paddingTop="0px")}else{const n=f.current[e]?.current||null,r=h.current[t??e]?.current||null;n&&(n.style.paddingTop="0px"),r&&(r.style.paddingTop="0px");const c=y.current[e]?.current||null,i=m.current[t??e]?.current||null;c&&(c.style.marginTop="0px"),i&&(i.style.marginTop="0px")}C.current&&(C.current.style.height="0px"),T.current&&(T.current.style.height="0px"),v.current&&(v.current.style.height="0px"),b.current&&(b.current.style.height="0px")},[]);r(()=>{K.current=q},[q]),r(()=>{Q.current=G},[G]);const ee=n(()=>{Y(),H(!1),K.current=!1,J.current=null,_(),O(null),Q.current=null,U.current=null,P(!1),k(!1)},[_]),te=n((e,t,n)=>{const r=n?.toggleIfSame??!0,i=n?.onReady,R=n?.sourceSide??"left";if(L(),null==e)return;if(t&&!l)return void E("No counterpart exists for this section.");Y();const S=q&&G===e;q&&null!==G&&_(),S&&r?ee():(A(new Set([e])),I([]),w.current=[],k(!0),D.current=!0,O(e),Q.current=e,H(!0),K.current=!0,P(!1),C.current&&(C.current.style.height="0px"),T.current&&(T.current.style.height="0px"),v.current&&(v.current.style.height="0px"),b.current&&(b.current.style.height="0px"),requestAnimationFrame(()=>{const t=()=>{const t="string"==typeof e&&e.includes(c);let n=null,r=null,S=null;if(l){if(t){const t=e.split(c),r=`${t[0]}${c}${t[1]}`;n=y.current[r]?.current||null}else n=f.current[e]?.current||B.current[e]?.current||null;r=document.getElementById("guideline-target-0"),S=r?e:null}else if(t){const t=e.split(c),i=`${t[0]}${c}${t[1]}`;n=y.current[i]?.current||null,r=m.current[i]?.current||null,S=r?e:null}else if(n=f.current[e]?.current||B.current[e]?.current||null,o){const t=s[e],n=t?.refIndexes||[];if(n.length>0){const e=n[0],t=d.findIndex(t=>t.selfIndex===e);-1!==t&&(r=h.current[t]?.current||x.current[t]?.current||null,S=t)}}else r=h.current[e]?.current||x.current[e]?.current||null,S=r?e:null;U.current=S;const v=p.current,b=g.current,A=()=>{Z(t,e,S),P(!0),$.current&&$.current(),D.current=!1,"right"===R&&b?b.dispatchEvent(new Event("scroll")):v&&v.dispatchEvent(new Event("scroll")),k(!1),i?.()};if(!n||!v)return D.current=!1,k(!1),void i?.();if(!r||!b)return void A();if(!o){let e=0;e="right"===R?r?r.getBoundingClientRect().top:0:n?n.getBoundingClientRect().top:0;const t=a.current,c=t?.getBoundingClientRect().top||0,i=t?t.scrollTop+e-c-150:0;return t?void u(t,i,200,A):void A()}const I=n.getBoundingClientRect().top-v.getBoundingClientRect().top+v.scrollTop,w=r.getBoundingClientRect().top-b.getBoundingClientRect().top+b.scrollTop,L=200;if("left"===R){const e=w-(I-v.scrollTop);e<0&&C.current&&!l&&(C.current.style.height=`${Math.abs(e)}px`),requestAnimationFrame(()=>{const t=b.scrollHeight-b.clientHeight;let n;if(e<0)n=0;else{if(e>t){const n=e-t;return T.current&&!l&&(T.current.style.height=`${n+150}px`),void requestAnimationFrame(()=>{u(b,e,L,A)})}n=e}u(b,n,L,A)})}else{const e=I-(w-b.scrollTop);requestAnimationFrame(()=>{const t=v.scrollHeight-v.clientHeight;let n;if(e<0)n=0;else{if(e>t)return void requestAnimationFrame(()=>u(v,t,L,A));n=e}u(v,n,L,A)})}};l?setTimeout(t,100):t()}))},[G,L,d,q,o,s,_,ee,l]);return{isSideBySide:q,setIsSideBySide:H,isArrowVisible:M,setIsArrowVisible:P,isResizing:z,setIsResizing:V,isSideBySideLoading:j,setIsSideBySideLoading:k,activeSideBySideSection:G,setActiveSideBySideSection:O,scrollLock:D,sideBySideCacheRef:J,isSideBySideRef:K,activeSideBySideSectionRef:Q,activeSideBySideRightSectionRef:U,sideBySideLineRef:W,highlightedClauseRefs:X,clearClauseHighlight:Y,applyAlignmentPadding:Z,resetSideBySide:ee,activateSideBySide:te}};export{l as useSideBySide};
2
2
  //# sourceMappingURL=useSideBySide.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSideBySide.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"useSideBySide.js","sources":["../../../../src/features/CognitiveCompare/hooks/useSideBySide.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from \"react\"\nimport { DEVIATION_BADGE_SEPARATOR, resetClauseHighlight, smoothScrollTo } from \"../CognitiveComparehelpers\";\n\nexport const useSideBySide = ({ \n isGuidelineMode, // ── NEW PROP ──\n maintainRelativeOrder,\n proposedSections, existingSections,\n leftContainerRef, rightContainerRef, scrollContainerRef,\n sectionLeftRefs, sectionRightRefs,\n subSectionLeftRefs, subSectionRightRefs,\n lhsBadgeRefs, rhsBadgeRefs,\n sectionRowRefs, sectionRightRowRefs,\n rhsTopSpacerRef, rhsBottomSpacerRef,\n lhsTopSpacerRef, lhsBottomSpacerRef,\n calculateLinesRef,\n setConnectedSections, setConnectedLines, cachedConnectedPositions,\n closeMoreFunctionsPopup, setErrorToast,\n moreFunctions, closeSummaryPopup,\n}: any) => {\n const [isSideBySide, setIsSideBySide] = useState(false);\n const [isArrowVisible, setIsArrowVisible] = useState(false);\n const [isResizing, setIsResizing] = useState(false);\n const [isSideBySideLoading, setIsSideBySideLoading] = useState(false)\n const [activeSideBySideSection, setActiveSideBySideSection] = useState<number | string | null>(null)\n\n\n const scrollLock = useRef(false);\n const sideBySideCacheRef = useRef<{ badgeScreenY: number; initialScrollTop: number; leftTop: number; leftBottom: number; cTop: number; } | null>(null);\n const isSideBySideRef = useRef(false);\n const activeSideBySideSectionRef = useRef<number | string | null>(null);\n const activeSideBySideRightSectionRef = useRef<number | string | null>(null);\n const sideBySideLineRef = useRef<SVGLineElement | null>(null);\n const highlightedClauseRefs = useRef<Set<HTMLElement>>(new Set());\n\n // Helpers\n const clearClauseHighlight = () => {\n highlightedClauseRefs.current.forEach((el) => {\n resetClauseHighlight(el);\n });\n highlightedClauseRefs.current.clear();\n };\n\n const applyAlignmentPadding = (isSub: boolean, idx: any, activeRightIdx: any) => {\n let leftPadTarget: HTMLElement | null = null;\n let rightPadTarget: HTMLElement | null = null;\n let leftAlignEl: HTMLElement | null = null;\n let rightAlignEl: HTMLElement | null = null;\n let leftBadgeEl: HTMLElement | null = null;\n let rightBadgeEl: HTMLElement | null = null;\n const maxBadgeOffset = 32;\n\n const isVisibleInContainer = (el: HTMLElement | null, container: HTMLElement | null) => {\n if (!el || !container) return true;\n const rect = el.getBoundingClientRect();\n const cRect = container.getBoundingClientRect();\n return rect.bottom >= cRect.top && rect.top <= cRect.bottom;\n };\n\n if (isSub) {\n const parts = (idx as string).split(DEVIATION_BADGE_SEPARATOR);\n const refId = `${parts[0]}${DEVIATION_BADGE_SEPARATOR}${parts[1]}`;\n leftPadTarget = subSectionLeftRefs.current[parts[2]]?.current || sectionLeftRefs.current[Number(parts[2])]?.current || null;\n rightPadTarget = subSectionRightRefs.current[parts[3]]?.current || sectionRightRefs.current[Number(parts[3])]?.current || null;\n leftAlignEl = lhsBadgeRefs.current[refId]?.current || leftPadTarget;\n rightAlignEl = rhsBadgeRefs.current[refId]?.current || rightPadTarget;\n } else {\n const leftNumIdx = Number(idx);\n const rightNumIdx = activeRightIdx !== null ? Number(activeRightIdx) : leftNumIdx;\n\n leftPadTarget = sectionLeftRefs.current[leftNumIdx]?.current || null;\n rightPadTarget = sectionRightRefs.current[rightNumIdx]?.current || null;\n leftBadgeEl = lhsBadgeRefs.current[leftNumIdx]?.current || null;\n rightBadgeEl = rhsBadgeRefs.current[rightNumIdx]?.current || null;\n\n // Core Fix: Fallbacks guarantee we find an element even if badges are null\n leftAlignEl = leftBadgeEl || sectionRowRefs.current[leftNumIdx]?.current || leftPadTarget;\n rightAlignEl = rightBadgeEl || sectionRightRowRefs.current[rightNumIdx]?.current || rightPadTarget;\n }\n\n if (leftPadTarget) leftPadTarget.style.paddingTop = \"0px\";\n if (rightPadTarget) rightPadTarget.style.paddingTop = \"0px\";\n if (!isSub) {\n if (leftBadgeEl) leftBadgeEl.style.marginTop = \"0px\";\n if (rightBadgeEl) rightBadgeEl.style.marginTop = \"0px\";\n }\n\n if (!isSub && leftBadgeEl && rightBadgeEl) {\n const leftContainer = leftContainerRef.current;\n const rightContainer = rightContainerRef.current;\n if (!isVisibleInContainer(leftBadgeEl, leftContainer) || !isVisibleInContainer(rightBadgeEl, rightContainer)) {\n return;\n }\n const lRect = leftBadgeEl.getBoundingClientRect();\n const rRect = rightBadgeEl.getBoundingClientRect();\n const badgeDiff = lRect.top - rRect.top;\n\n if (Math.abs(badgeDiff) > maxBadgeOffset) return;\n\n if (badgeDiff > 0) {\n rightBadgeEl.style.marginTop = `${badgeDiff}px`;\n }\n return;\n }\n\n if (leftAlignEl && rightAlignEl && leftPadTarget && rightPadTarget) {\n const lRect = leftAlignEl.getBoundingClientRect();\n const rRect = rightAlignEl.getBoundingClientRect();\n const badgeDiff = lRect.top - rRect.top;\n\n if (badgeDiff > 0) {\n rightPadTarget.style.paddingTop = `${badgeDiff}px`;\n }\n }\n };\n\n const clearAlignmentOffsets = useCallback(() => {\n const leftIdx = activeSideBySideSectionRef.current;\n const rightIdx = activeSideBySideRightSectionRef.current;\n\n if (leftIdx !== null) {\n if (typeof leftIdx === \"string\" && leftIdx.includes(DEVIATION_BADGE_SEPARATOR)) {\n const parts = leftIdx.split(DEVIATION_BADGE_SEPARATOR);\n const leftPadTarget =\n subSectionLeftRefs.current[parts[2]]?.current ||\n sectionLeftRefs.current[Number(parts[2])]?.current ||\n null;\n const rightPadTarget =\n subSectionRightRefs.current[parts[3]]?.current ||\n sectionRightRefs.current[Number(parts[3])]?.current ||\n null;\n\n if (leftPadTarget) leftPadTarget.style.paddingTop = \"0px\";\n if (rightPadTarget) rightPadTarget.style.paddingTop = \"0px\";\n } else {\n const leftPadTarget = sectionLeftRefs.current[leftIdx as number]?.current || null;\n const rightPadTarget =\n sectionRightRefs.current[(rightIdx ?? leftIdx) as number]?.current || null;\n\n if (leftPadTarget) leftPadTarget.style.paddingTop = \"0px\";\n if (rightPadTarget) rightPadTarget.style.paddingTop = \"0px\";\n\n const leftBadge = lhsBadgeRefs.current[leftIdx as number]?.current || null;\n const rightBadge = rhsBadgeRefs.current[(rightIdx ?? leftIdx) as number]?.current || null;\n if (leftBadge) leftBadge.style.marginTop = \"0px\";\n if (rightBadge) rightBadge.style.marginTop = \"0px\";\n }\n }\n\n if (rhsTopSpacerRef.current) rhsTopSpacerRef.current.style.height = \"0px\";\n if (rhsBottomSpacerRef.current) rhsBottomSpacerRef.current.style.height = \"0px\";\n if (lhsTopSpacerRef.current) lhsTopSpacerRef.current.style.height = \"0px\";\n if (lhsBottomSpacerRef.current) lhsBottomSpacerRef.current.style.height = \"0px\";\n }, []);\n\n\n // Effects\n useEffect(() => {\n isSideBySideRef.current = isSideBySide;\n }, [isSideBySide]);\n\n useEffect(() => {\n activeSideBySideSectionRef.current = activeSideBySideSection;\n }, [activeSideBySideSection]);\n\n // Callbacks\n\n const resetSideBySide = useCallback(() => {\n clearClauseHighlight();\n setIsSideBySide(false);\n isSideBySideRef.current = false;\n sideBySideCacheRef.current = null;\n clearAlignmentOffsets();\n setActiveSideBySideSection(null);\n activeSideBySideSectionRef.current = null;\n activeSideBySideRightSectionRef.current = null;\n setIsArrowVisible(false);\n setIsSideBySideLoading(false);\n }, [clearAlignmentOffsets]);\n\n const activateSideBySide = useCallback(\n (\n idx: number | string,\n isOrphan: boolean,\n options?: { toggleIfSame?: boolean; onReady?: () => void; sourceSide?: \"left\" | \"right\" },\n ) => {\n const toggleIfSame = options?.toggleIfSame ?? true;\n const onReady = options?.onReady;\n const sourceSide = options?.sourceSide ?? \"left\";\n\n closeMoreFunctionsPopup();\n\n if (idx == null) return;\n\n // In Guideline Mode, we don't care about orphans, the whole rulebook is the counterpart.\n if (isOrphan && !isGuidelineMode) {\n setErrorToast(\"No counterpart exists for this section.\");\n return;\n }\n clearClauseHighlight();\n const isSameTarget = isSideBySide && activeSideBySideSection === idx;\n if (isSideBySide && activeSideBySideSection !== null) {\n clearAlignmentOffsets();\n }\n if (isSameTarget && toggleIfSame) {\n resetSideBySide();\n return;\n }\n\n setConnectedSections(new Set([idx]));\n setConnectedLines([]);\n cachedConnectedPositions.current = [];\n setIsSideBySideLoading(true);\n scrollLock.current = true;\n setActiveSideBySideSection(idx);\n activeSideBySideSectionRef.current = idx;\n setIsSideBySide(true);\n isSideBySideRef.current = true;\n setIsArrowVisible(false);\n\n if (rhsTopSpacerRef.current) rhsTopSpacerRef.current.style.height = \"0px\";\n if (rhsBottomSpacerRef.current) rhsBottomSpacerRef.current.style.height = \"0px\";\n if (lhsTopSpacerRef.current) lhsTopSpacerRef.current.style.height = \"0px\";\n if (lhsBottomSpacerRef.current) lhsBottomSpacerRef.current.style.height = \"0px\";\n\n requestAnimationFrame(() => {\n const executeAlignment = () => {\n const isSub = typeof idx === \"string\" && idx.includes(DEVIATION_BADGE_SEPARATOR);\n let leftEl: HTMLElement | null = null;\n let rightEl: HTMLElement | null = null;\n let activeRightIdx: number | string | null = null;\n\n if (isGuidelineMode) {\n // In guideline mode, grab leftEl normally, but rightEl is the injected <mark>\n if (isSub) {\n const parts = (idx as string).split(DEVIATION_BADGE_SEPARATOR);\n const refId = `${parts[0]}${DEVIATION_BADGE_SEPARATOR}${parts[1]}`;\n leftEl = lhsBadgeRefs.current[refId]?.current || null;\n } else {\n leftEl = sectionLeftRefs.current[idx as number]?.current || sectionRowRefs.current[idx as number]?.current || null;\n }\n \n rightEl = document.getElementById('guideline-target-0');\n activeRightIdx = rightEl ? idx : null;\n } else {\n if (isSub) {\n const parts = (idx as string).split(DEVIATION_BADGE_SEPARATOR);\n const refId = `${parts[0]}${DEVIATION_BADGE_SEPARATOR}${parts[1]}`;\n \n leftEl = lhsBadgeRefs.current[refId]?.current || null;\n rightEl = rhsBadgeRefs.current[refId]?.current || null;\n activeRightIdx = rightEl ? idx : null;\n } else {\n leftEl = sectionLeftRefs.current[idx as number]?.current || sectionRowRefs.current[idx as number]?.current || null;\n \n if (!maintainRelativeOrder) {\n rightEl = sectionRightRefs.current[idx as number]?.current || sectionRightRowRefs.current[idx as number]?.current || null;\n activeRightIdx = rightEl ? idx : null;\n } else {\n const leftSec = proposedSections[idx as number] as any;\n const refIdxs = (leftSec?.refIndexes || []) as number[];\n \n if (refIdxs.length > 0) {\n const rhsSelfIndex = refIdxs[0];\n const rhsArrayIdx = existingSections.findIndex(\n (s: any) => s.selfIndex === rhsSelfIndex,\n );\n if (rhsArrayIdx !== -1) {\n rightEl = sectionRightRefs.current[rhsArrayIdx]?.current || sectionRightRowRefs.current[rhsArrayIdx]?.current || null;\n activeRightIdx = rhsArrayIdx;\n }\n }\n }\n }\n }\n\n activeSideBySideRightSectionRef.current = activeRightIdx;\n\n const leftContainer = leftContainerRef.current;\n const rightContainer = rightContainerRef.current;\n\n // Force visual alignment instantly after scroll animation completes\n const forceLayoutSync = () => {\n if (sourceSide === \"right\" && rightContainer) {\n rightContainer.dispatchEvent(new Event(\"scroll\"));\n } else if (leftContainer) {\n leftContainer.dispatchEvent(new Event(\"scroll\"));\n }\n };\n\n\n // CONSOLIDATED SCROLL COMPLETION HANDLER\n const finalizeSideBySide = () => {\n applyAlignmentPadding(isSub, idx, activeRightIdx);\n setIsArrowVisible(true);\n if (calculateLinesRef.current) calculateLinesRef.current();\n scrollLock.current = false;\n forceLayoutSync();\n setIsSideBySideLoading(false);\n onReady?.();\n };\n\n if (!leftEl || !leftContainer) {\n scrollLock.current = false;\n setIsSideBySideLoading(false);\n onReady?.();\n return;\n }\n\n if (!rightEl || !rightContainer) {\n finalizeSideBySide();\n return;\n }\n\n if (!maintainRelativeOrder) {\n let targetTop = 0;\n if (sourceSide === \"right\") {\n targetTop = rightEl ? rightEl.getBoundingClientRect().top : 0;\n } else {\n targetTop = leftEl ? leftEl.getBoundingClientRect().top : 0;\n }\n\n const scrollContainer = scrollContainerRef.current;\n const containerTop = scrollContainer?.getBoundingClientRect().top || 0;\n const nextTop = scrollContainer\n ? scrollContainer.scrollTop + targetTop - containerTop - 150\n : 0;\n const ANIM_SPEED = 200;\n\n if (!scrollContainer) {\n finalizeSideBySide();\n return;\n }\n\n smoothScrollTo(scrollContainer, nextTop, ANIM_SPEED, finalizeSideBySide);\n return;\n }\n\n const leftAbsoluteTop = leftEl.getBoundingClientRect().top - leftContainer.getBoundingClientRect().top + leftContainer.scrollTop;\n const rightAbsoluteTop = rightEl.getBoundingClientRect().top - rightContainer.getBoundingClientRect().top + rightContainer.scrollTop;\n const ANIM_SPEED = 200;\n\n if (sourceSide === \"left\") {\n const currentRelativeY = leftAbsoluteTop - leftContainer.scrollTop;\n const rawRightTargetScroll = rightAbsoluteTop - currentRelativeY;\n\n if (rawRightTargetScroll < 0) {\n if (rhsTopSpacerRef.current && !isGuidelineMode)\n rhsTopSpacerRef.current.style.height = `${Math.abs(rawRightTargetScroll)}px`;\n }\n\n requestAnimationFrame(() => {\n const rightMaxScroll = rightContainer.scrollHeight - rightContainer.clientHeight;\n let rightActualScroll: number;\n\n if (rawRightTargetScroll < 0) {\n rightActualScroll = 0;\n } else if (rawRightTargetScroll > rightMaxScroll) {\n const deficit = rawRightTargetScroll - rightMaxScroll;\n if (rhsBottomSpacerRef.current && !isGuidelineMode)\n rhsBottomSpacerRef.current.style.height = `${deficit + 150}px`;\n requestAnimationFrame(() => {\n smoothScrollTo(rightContainer, rawRightTargetScroll, ANIM_SPEED, finalizeSideBySide);\n });\n return;\n } else {\n rightActualScroll = rawRightTargetScroll;\n }\n\n smoothScrollTo(rightContainer, rightActualScroll, ANIM_SPEED, finalizeSideBySide);\n });\n } else {\n const currentRelativeY = rightAbsoluteTop - rightContainer.scrollTop;\n const rawLeftTargetScroll = leftAbsoluteTop - currentRelativeY;\n\n // STRICT FIX: Removed LHS Top Spacer injection. LHS acts strictly as scroll target without manipulation.\n requestAnimationFrame(() => {\n const leftMaxScroll = leftContainer.scrollHeight - leftContainer.clientHeight;\n let leftActualScroll: number;\n\n if (rawLeftTargetScroll < 0) {\n leftActualScroll = 0;\n } else if (rawLeftTargetScroll > leftMaxScroll) {\n requestAnimationFrame(() => smoothScrollTo(leftContainer, leftMaxScroll, ANIM_SPEED, finalizeSideBySide));\n return;\n } else {\n leftActualScroll = rawLeftTargetScroll;\n }\n smoothScrollTo(leftContainer, leftActualScroll, ANIM_SPEED, finalizeSideBySide);\n });\n }\n };\n\n // Because GuidelinePanel re-renders when setConnectedSections fires,\n // we must wait a tick for the `<mark>` tags to paint to the DOM before calculating scroll bounds.\n if (isGuidelineMode) {\n setTimeout(executeAlignment, 100);\n } else {\n executeAlignment();\n }\n });\n },\n [\n activeSideBySideSection,\n closeMoreFunctionsPopup,\n existingSections,\n isSideBySide,\n maintainRelativeOrder,\n proposedSections,\n clearAlignmentOffsets,\n resetSideBySide,\n isGuidelineMode\n ],\n );\n\n return {\n isSideBySide, setIsSideBySide,\n isArrowVisible, setIsArrowVisible,\n isResizing, setIsResizing,\n isSideBySideLoading, setIsSideBySideLoading,\n activeSideBySideSection, setActiveSideBySideSection,\n scrollLock,\n sideBySideCacheRef,\n isSideBySideRef,\n activeSideBySideSectionRef,\n activeSideBySideRightSectionRef,\n sideBySideLineRef,\n highlightedClauseRefs,\n clearClauseHighlight,\n applyAlignmentPadding,\n resetSideBySide,\n activateSideBySide,\n }\n}"],"names":["useSideBySide","isGuidelineMode","maintainRelativeOrder","proposedSections","existingSections","leftContainerRef","rightContainerRef","scrollContainerRef","sectionLeftRefs","sectionRightRefs","subSectionLeftRefs","subSectionRightRefs","lhsBadgeRefs","rhsBadgeRefs","sectionRowRefs","sectionRightRowRefs","rhsTopSpacerRef","rhsBottomSpacerRef","lhsTopSpacerRef","lhsBottomSpacerRef","calculateLinesRef","setConnectedSections","setConnectedLines","cachedConnectedPositions","closeMoreFunctionsPopup","setErrorToast","moreFunctions","closeSummaryPopup","isSideBySide","setIsSideBySide","useState","isArrowVisible","setIsArrowVisible","isResizing","setIsResizing","isSideBySideLoading","setIsSideBySideLoading","activeSideBySideSection","setActiveSideBySideSection","scrollLock","useRef","sideBySideCacheRef","isSideBySideRef","activeSideBySideSectionRef","activeSideBySideRightSectionRef","sideBySideLineRef","highlightedClauseRefs","Set","clearClauseHighlight","current","forEach","el","resetClauseHighlight","clear","applyAlignmentPadding","isSub","idx","activeRightIdx","leftPadTarget","rightPadTarget","leftAlignEl","rightAlignEl","leftBadgeEl","rightBadgeEl","isVisibleInContainer","container","rect","getBoundingClientRect","cRect","bottom","top","parts","split","DEVIATION_BADGE_SEPARATOR","refId","Number","leftNumIdx","rightNumIdx","style","paddingTop","marginTop","leftContainer","rightContainer","lRect","rRect","badgeDiff","Math","abs","clearAlignmentOffsets","useCallback","leftIdx","rightIdx","includes","leftBadge","rightBadge","height","useEffect","resetSideBySide","activateSideBySide","isOrphan","options","toggleIfSame","onReady","sourceSide","isSameTarget","requestAnimationFrame","executeAlignment","leftEl","rightEl","document","getElementById","leftSec","refIdxs","refIndexes","length","rhsSelfIndex","rhsArrayIdx","findIndex","s","selfIndex","finalizeSideBySide","dispatchEvent","Event","targetTop","scrollContainer","containerTop","nextTop","scrollTop","smoothScrollTo","leftAbsoluteTop","rightAbsoluteTop","ANIM_SPEED","rawRightTargetScroll","rightMaxScroll","scrollHeight","clientHeight","rightActualScroll","deficit","rawLeftTargetScroll","leftMaxScroll","leftActualScroll","setTimeout"],"mappings":"qMAGO,MAAMA,EAAgB,EACzBC,kBACAC,wBACAC,mBAAkBC,mBAClBC,mBAAkBC,oBAAmBC,qBACrCC,kBAAiBC,mBACjBC,qBAAoBC,sBACpBC,eAAcC,eACdC,iBAAgBC,sBAChBC,kBAAiBC,qBACjBC,kBAAiBC,qBACjBC,oBACAC,uBAAsBC,oBAAmBC,2BACzCC,0BAAyBC,gBACzBC,gBAAeC,wBAEf,MAAOC,EAAcC,GAAmBC,GAAS,IAC1CC,EAAgBC,GAAqBF,GAAS,IAC9CG,EAAYC,GAAiBJ,GAAS,IACtCK,EAAqBC,GAA0BN,GAAS,IACxDO,EAAyBC,GAA8BR,EAAiC,MAGzFS,EAAaC,GAAO,GACpBC,EAAqBD,EAAsH,MAC3IE,EAAkBF,GAAO,GACzBG,EAA6BH,EAA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,kBACdE,iBAAgBC,oBAChBC,aAAYC,gBACZC,sBAAqBC,yBACrBC,0BAAyBC,6BACzBC,aACAE,qBACAC,kBACAC,6BACAC,kCACAC,oBACAC,wBACAE,uBACAM,wBACA2C,mBACAC"}
@@ -1,2 +1,2 @@
1
- import{__assign as l}from"tslib";import{useCallback as e}from"react";import{generateColorPalette as n,getFirstDeviationOutputValue as i,getFirstDeviationColor as o,safeStringify as t}from"../CognitiveComparehelpers.js";import{DEFAULT_DEVIAION_COLOR as u}from"../CognitiveCompareConstants.js";var d=function(d){var v=d.proposedSections,a=d.existingSections,r=d.maintainRelativeOrder,s=d.cognitiveMap,f=d.deviationData,b=d.treeData,g=d.resolvedComparisonConfig,c=d.badgeStyleOverride,p=e(function(e,t){var d,s,f;void 0===t&&(t="left");var b=null,g=null;if("left"===t)if(b=v[e],r&&b){var p=a.filter(function(l){var e;return null===(e=b.refIndexes)||void 0===e?void 0:e.includes(l.selfIndex)});g=p.find(function(l){return l.evaluationResult})||p[0]}else g=a[e];else if(g=a[e],r&&g){var m=v.filter(function(l){var e;return null===(e=l.refIndexes)||void 0===e?void 0:e.includes(g.selfIndex)});b=m.find(function(l){return l.evaluationResult})||m[0]}else b=v[e];var x=(null==b?void 0:b.relation)&&"not_defined"!==b.relation,_=(null==g?void 0:g.relation)&&"not_defined"!==g.relation,B=!(!(null==b?void 0:b.cognitiveData)&&!(null==g?void 0:g.cognitiveData)),C="left"===t?!(null==b?void 0:b.title)&&!(null==b?void 0:b.content):!(null==g?void 0:g.title)&&!(null==g?void 0:g.content);if(!x&&!_&&!B){var S=C?null:"Not Defined",D=n(u);if(c)(y=c(S))&&(D=l(l({},D),{badgeBg:y.bg,badgeText:y.text,badgeBorder:y.border}));return l(l({},D),{label:S})}var y,R=null!==(s=null!==(d=null==b?void 0:b.evaluationResult)&&void 0!==d?d:null==g?void 0:g.evaluationResult)&&void 0!==s?s:null,I=i(R),T=o(R),j=n(T);c&&((y=c(I))&&(j=l(l({},j),{badgeBg:y.bg,badgeText:y.text,badgeBorder:y.border})));return l(l({},j),null!=R?{label:null!==(f=I)&&void 0!==f?f:""}:{label:null})},[v,a,s,g,r,c]),m=e(function(e){for(var d,r,s=e.split("-").map(Number),f=v[s[0]],b=a[s[0]],g=1;g<s.length;g++)(null==f?void 0:f.subsections)&&(f=f.subsections[s[g]]),(null==b?void 0:b.subsections)&&(b=b.subsections[s[g]]);if(!f&&!b)return null;var p=(null==f?void 0:f.relation)&&"not_defined"!==f.relation,m=(null==b?void 0:b.relation)&&"not_defined"!==b.relation;t(null==f?void 0:f.id)||t(null==b?void 0:b.id);var x=!(!(null==f?void 0:f.cognitiveData)&&!(null==b?void 0:b.cognitiveData));if(!p&&!m&&!x){var _=n(u);if(c)(B=c(null))&&(_=l(l({},_),{badgeBg:B.bg,badgeText:B.text,badgeBorder:B.border}));return l(l({},_),{label:null})}var B,C=null!==(r=null!==(d=null==f?void 0:f.evaluationResult)&&void 0!==d?d:null==b?void 0:b.evaluationResult)&&void 0!==r?r:null,S=i(C),D=o(C),y=n(D);c&&((B=c(S))&&(y=l(l({},y),{badgeBg:B.bg,badgeText:B.text,badgeBorder:B.border})));return l(l({},y),null!=C?{label:null!=S?S:""}:{label:null})},[v,a,s,g,c]),x=e(function(e,o){var t,d,v,a,r,s,g,c,p,m,x,_,B,C,S,D,y,R,I,T,j;if(!e||null==o)return null;var h=null!==(r=null!==(d=null===(t=null==f?void 0:f[e])||void 0===t?void 0:t.evaluation_result)&&void 0!==d?d:null===(a=null===(v=null==b?void 0:b.nodes)||void 0===v?void 0:v[e])||void 0===a?void 0:a.evaluation_result)&&void 0!==r?r:null;if(!h||"object"!=typeof h)return null;var N=null!==(m=null!==(p=null!==(g=null===(s=null==h?void 0:h.deviations)||void 0===s?void 0:s[o])&&void 0!==g?g:null===(c=null==h?void 0:h.deviation_entries)||void 0===c?void 0:c[o])&&void 0!==p?p:null==h?void 0:h[o])&&void 0!==m?m:null,O=null!==(T=null!==(y=null!==(S=null!==(B=null===(_=null===(x=null==N?void 0:N.evaluation_outputs)||void 0===x?void 0:x.metadata)||void 0===_?void 0:_.label_color)&&void 0!==B?B:null===(C=null==N?void 0:N.evaluation_outputs)||void 0===C?void 0:C.label_color)&&void 0!==S?S:null===(D=null==N?void 0:N.metadata)||void 0===D?void 0:D.label_color)&&void 0!==y?y:null===(I=null===(R=null==h?void 0:h.evaluation_outputs)||void 0===R?void 0:R.metadata)||void 0===I?void 0:I.label_color)&&void 0!==T?T:u,K=null!==(j=i(N))&&void 0!==j?j:i(h);return l(l({},n(O)),{label:K})},[f,b]);return{getSectionCompareStyle:p,getSubSectionCompareStyle:m,getDeviationStyleByKey:x}};export{d as useStyleHelpers};
1
+ import{useCallback as e}from"react";import{generateColorPalette as t,getFirstDeviationOutputValue as l,getFirstDeviationColor as n,safeStringify as o}from"../CognitiveComparehelpers.js";import{DEFAULT_DEVIAION_COLOR as a}from"../CognitiveCompareConstants.js";const i=({proposedSections:i,existingSections:r,maintainRelativeOrder:s,cognitiveMap:u,deviationData:d,treeData:b,resolvedComparisonConfig:c,badgeStyleOverride:f})=>({getSectionCompareStyle:e((e,o="left")=>{let u=null,d=null;if("left"===o)if(u=i[e],s&&u){const e=r.filter(e=>u.refIndexes?.includes(e.selfIndex));d=e.find(e=>e.evaluationResult)||e[0]}else d=r[e];else if(d=r[e],s&&d){const e=i.filter(e=>e.refIndexes?.includes(d.selfIndex));u=e.find(e=>e.evaluationResult)||e[0]}else u=i[e];const b=u?.relation&&"not_defined"!==u.relation,c=d?.relation&&"not_defined"!==d.relation;if(!b&&!c&&!!(!u?.cognitiveData&&!d?.cognitiveData)){const e=("left"===o?!u?.title&&!u?.content:!d?.title&&!d?.content)?null:"Not Defined";let l=t(a);if(f){const t=f(e);t&&(l={...l,badgeBg:t.bg,badgeText:t.text,badgeBorder:t.border})}return{...l,label:e}}const g=u?.evaluationResult??d?.evaluationResult??null,v=l(g),p=n(g);let m=t(p);if(f){const e=f(v);e&&(m={...m,badgeBg:e.bg,badgeText:e.text,badgeBorder:e.border})}return null!=g?{...m,label:v??""}:{...m,label:null}},[i,r,u,c,s,f]),getSubSectionCompareStyle:e(e=>{const s=e.split("-").map(Number);let u=i[s[0]],d=r[s[0]];for(let e=1;e<s.length;e++)u?.subsections&&(u=u.subsections[s[e]]),d?.subsections&&(d=d.subsections[s[e]]);if(!u&&!d)return null;const b=u?.relation&&"not_defined"!==u.relation,c=d?.relation&&"not_defined"!==d.relation;o(u?.id)||o(d?.id);if(!b&&!c&&!!(!u?.cognitiveData&&!d?.cognitiveData)){let e=t(a);if(f){const t=f(null);t&&(e={...e,badgeBg:t.bg,badgeText:t.text,badgeBorder:t.border})}return{...e,label:null}}const g=u?.evaluationResult??d?.evaluationResult??null,v=l(g),p=n(g);let m=t(p);if(f){const e=f(v);e&&(m={...m,badgeBg:e.bg,badgeText:e.text,badgeBorder:e.border})}return null!=g?{...m,label:v??""}:{...m,label:null}},[i,r,u,c,f]),getDeviationStyleByKey:e((e,n)=>{if(!e||null==n)return null;const o=d?.[e]?.evaluation_result??b?.nodes?.[e]?.evaluation_result??null;if(!o||"object"!=typeof o)return null;const i=o?.deviations?.[n]??o?.deviation_entries?.[n]??o?.[n]??null,r=i?.evaluation_outputs?.metadata?.label_color??i?.evaluation_outputs?.label_color??i?.metadata?.label_color??o?.evaluation_outputs?.metadata?.label_color??a,s=l(i)??l(o);return{...t(r),label:s}},[d,b])});export{i as useStyleHelpers};
2
2
  //# sourceMappingURL=useStyles.js.map