@viswa-test/test-citation 0.0.229 → 0.0.231

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 (684) hide show
  1. package/README.md +284 -45
  2. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  3. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  4. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  5. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  6. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  7. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  8. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
  9. package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  10. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  11. package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  12. package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  13. package/dist/cjs/features/GptWebCitation/types.js +2 -0
  14. package/dist/cjs/features/GptWebCitation/types.js.map +1 -0
  15. package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +1 -1
  16. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
  17. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
  18. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
  19. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
  20. package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  24. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  25. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  28. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  29. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  31. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  41. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  44. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  45. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  48. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  49. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  51. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  52. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  53. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  54. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  55. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  56. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
  61. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
  62. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
  63. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
  64. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
  67. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
  68. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
  69. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
  70. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  76. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  77. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +2 -0
  118. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
  119. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
  120. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
  121. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  131. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  132. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  133. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  134. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  135. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  136. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  137. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  138. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  139. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  140. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  141. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  142. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  143. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  144. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  145. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  146. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  147. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  148. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  149. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  150. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  151. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  152. package/dist/cjs/features/RequirementAI/components/segment/segment-common.css.js +1 -1
  153. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  154. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +2 -0
  155. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
  156. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
  157. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
  158. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  159. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  160. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  161. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  162. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  163. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  164. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  165. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  166. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  167. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  168. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  169. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  170. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  171. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  172. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  173. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  174. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  175. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  176. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  177. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  178. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  179. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  180. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  181. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  182. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  183. package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  184. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  185. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  186. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  187. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  188. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  189. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  190. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +2 -0
  191. package/dist/cjs/features/RequirementAI/icons/CDIcon.js.map +1 -0
  192. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  193. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  194. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  195. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  196. package/dist/cjs/features/RequirementAI/icons/Illustration.svg.js +2 -0
  197. package/dist/cjs/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
  198. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  199. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  200. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  201. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  202. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  203. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  204. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  205. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  206. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  207. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  208. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  209. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  210. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  211. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  212. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  213. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  214. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  215. package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  216. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  217. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  218. package/dist/cjs/features/RequirementAI/utils/css.utils.js +1 -1
  219. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  220. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  221. package/dist/cjs/features/RequirementAI/utils/json-helper.js +1 -1
  222. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  223. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  224. package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
  225. package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  226. package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  227. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  228. package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  229. package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  230. package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  231. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  232. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  233. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  234. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  235. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  236. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  237. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  238. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  239. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  240. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  241. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  242. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  243. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  244. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  245. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  246. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  247. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  248. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  249. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  250. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  251. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  252. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  253. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  254. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  255. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  256. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  257. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  258. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  259. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  260. package/dist/cjs/features/UserStoryImport/components/usePanelResize.js +1 -1
  261. package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  262. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  263. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  264. package/dist/cjs/features/UserStoryImport/index.js +1 -1
  265. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  266. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  267. package/dist/cjs/features/UserStoryImport/lib/cn.js +1 -1
  268. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  269. package/dist/cjs/index.js +1 -1
  270. package/dist/cjs/service/redlineService.js +2 -0
  271. package/dist/cjs/service/redlineService.js.map +1 -0
  272. package/dist/cjs/utils/tagHelper.js +2 -0
  273. package/dist/cjs/utils/tagHelper.js.map +1 -0
  274. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  275. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  276. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  277. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  278. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  279. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  280. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  281. package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  282. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  283. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  284. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  285. package/dist/features/GptWebCitation/types.js +2 -0
  286. package/dist/features/GptWebCitation/types.js.map +1 -0
  287. package/dist/features/GptWebCitation/utils/citationData.utils.js +1 -1
  288. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
  289. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
  290. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
  291. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
  292. package/dist/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  293. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  294. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  295. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  296. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  297. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  298. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  299. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  300. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  301. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  302. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  303. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  304. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  305. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  306. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  307. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  308. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  309. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  310. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  311. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  312. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  313. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
  314. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  315. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  316. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  317. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  318. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  319. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  320. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  321. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  322. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  323. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  324. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  325. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  326. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  327. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  328. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  329. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  330. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  331. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  332. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  333. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
  334. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
  335. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
  336. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
  337. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  338. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
  339. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
  340. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
  341. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
  342. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
  343. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  344. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  345. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  346. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  347. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  348. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  349. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  350. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  351. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  352. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  353. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  354. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  355. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  356. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  357. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  358. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  359. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  360. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  361. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  362. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  363. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  364. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  365. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  366. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  367. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  368. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  369. package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
  370. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  371. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  372. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  373. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  374. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  375. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  376. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  377. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  378. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  379. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  380. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  381. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  382. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  383. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  384. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  385. package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  386. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  387. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  388. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  389. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  390. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  391. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +2 -0
  392. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
  393. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
  394. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
  395. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  396. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  397. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  398. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  399. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  400. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  401. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  402. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  403. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  404. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  405. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  406. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  407. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  408. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  409. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  410. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  411. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  412. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  413. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  414. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  415. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  416. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  417. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  418. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  419. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  420. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  421. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  422. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  423. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  424. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  425. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  426. package/dist/features/RequirementAI/components/segment/segment-common.css.js +1 -1
  427. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  428. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +2 -0
  429. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
  430. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
  431. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
  432. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  433. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  434. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  435. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  436. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  437. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  438. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  439. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  440. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  441. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  442. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  443. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  444. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  445. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  446. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  447. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  448. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  449. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  450. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  451. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  452. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  453. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  454. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  455. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  456. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  457. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  458. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  459. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  460. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  461. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  462. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  463. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  464. package/dist/features/RequirementAI/icons/CDIcon.js +2 -0
  465. package/dist/features/RequirementAI/icons/CDIcon.js.map +1 -0
  466. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  467. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  468. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  469. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  470. package/dist/features/RequirementAI/icons/Illustration.svg.js +2 -0
  471. package/dist/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
  472. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  473. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  474. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  475. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  476. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  477. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  478. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  479. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  480. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  481. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  482. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  483. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  484. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  485. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  486. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  487. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  488. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  489. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  490. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  491. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  492. package/dist/features/RequirementAI/utils/css.utils.js +1 -1
  493. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  494. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  495. package/dist/features/RequirementAI/utils/json-helper.js +1 -1
  496. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  497. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  498. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  499. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  500. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  501. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  502. package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  503. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  504. package/dist/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  505. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  506. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  507. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  508. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  509. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  510. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  511. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  512. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  513. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  514. package/dist/features/UserStoryImport/components/Header.js +1 -1
  515. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  516. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  517. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  518. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  519. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  520. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  521. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  522. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  523. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  524. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  525. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  526. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  527. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  528. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  529. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  530. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  531. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  532. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  533. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  534. package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
  535. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  536. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  537. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  538. package/dist/features/UserStoryImport/index.js +1 -1
  539. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  540. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  541. package/dist/features/UserStoryImport/lib/cn.js +1 -1
  542. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  543. package/dist/index.js +1 -1
  544. package/dist/service/redlineService.js +2 -0
  545. package/dist/service/redlineService.js.map +1 -0
  546. package/dist/types/src/Background.d.ts +7 -0
  547. package/dist/types/src/Background.d.ts.map +1 -0
  548. package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
  549. package/dist/types/src/CommonConstants/CommonConstants.d.ts +1365 -0
  550. package/dist/types/src/CommonConstants/CommonConstants.d.ts.map +1 -1
  551. package/dist/types/src/DeviationSummaryTest.d.ts +2 -0
  552. package/dist/types/src/DeviationSummaryTest.d.ts.map +1 -0
  553. package/dist/types/src/RedlineEditorTest.d.ts +3 -0
  554. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -0
  555. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  556. package/dist/types/src/constants/deviationData.d.ts +887 -0
  557. package/dist/types/src/constants/deviationData.d.ts.map +1 -0
  558. package/dist/types/src/constants/treeData.d.ts +732 -0
  559. package/dist/types/src/constants/treeData.d.ts.map +1 -0
  560. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  561. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +5 -0
  562. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  563. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +9 -1
  564. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
  565. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
  566. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
  567. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
  568. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
  569. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
  570. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
  571. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +10 -0
  572. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
  573. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +9 -1
  574. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
  575. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +3 -1
  576. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -1
  577. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +12 -1
  578. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -1
  579. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +1 -1
  580. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -1
  581. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -1
  582. package/dist/types/src/features/GptWebCitation/types.d.ts +313 -20
  583. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
  584. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +2 -0
  585. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -1
  586. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +10 -0
  587. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -0
  588. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts +6 -0
  589. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +1 -0
  590. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +2 -0
  591. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -1
  592. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +1 -1
  593. package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.d.ts.map +1 -1
  594. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +156 -3
  595. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  596. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +2 -1
  597. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  598. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +1 -4
  599. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  600. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts +44 -0
  601. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts.map +1 -0
  602. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  603. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +4 -3
  604. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  605. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts +35 -0
  606. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts.map +1 -0
  607. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +25 -0
  608. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -0
  609. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts +23 -0
  610. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts.map +1 -0
  611. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +25 -0
  612. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -0
  613. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.d.ts.map +1 -1
  614. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map +1 -1
  615. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +9 -1
  616. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  617. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts +8 -0
  618. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts.map +1 -0
  619. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts +29 -0
  620. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts.map +1 -0
  621. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +8 -3
  622. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  623. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/BlockedPopup.d.ts +8 -0
  624. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/BlockedPopup.d.ts.map +1 -0
  625. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +44 -4
  626. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  627. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +25 -0
  628. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -0
  629. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +17 -3
  630. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  631. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +35 -2
  632. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  633. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  634. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts +12 -0
  635. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts.map +1 -0
  636. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts +6 -0
  637. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts.map +1 -0
  638. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts +1 -0
  639. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map +1 -1
  640. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts +15 -0
  641. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts.map +1 -0
  642. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +7 -1
  643. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  644. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts +4 -1
  645. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts.map +1 -1
  646. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +14 -1
  647. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  648. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts +11 -0
  649. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts.map +1 -0
  650. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts +10 -0
  651. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts.map +1 -0
  652. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +2 -1
  653. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  654. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts +4 -1
  655. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts.map +1 -1
  656. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +17 -2
  657. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
  658. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +10 -0
  659. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  660. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +4 -1
  661. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  662. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -12
  663. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  664. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +20 -0
  665. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
  666. package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts.map +1 -1
  667. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +2 -2
  668. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
  669. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +1 -0
  670. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
  671. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
  672. package/dist/types/src/index.d.ts +3 -2
  673. package/dist/types/src/index.d.ts.map +1 -1
  674. package/dist/types/src/service/redlineService.d.ts +33 -0
  675. package/dist/types/src/service/redlineService.d.ts.map +1 -0
  676. package/dist/types/src/utils/tagHelper.d.ts +5 -0
  677. package/dist/types/src/utils/tagHelper.d.ts.map +1 -0
  678. package/dist/utils/tagHelper.js +2 -0
  679. package/dist/utils/tagHelper.js.map +1 -0
  680. package/package.json +9 -6
  681. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  682. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
  683. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  684. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import{useRef as l,useState as i,useEffect as r}from"react";import t from"video.js";import"video.js/dist/video-js.css";import c from"./AudioTimeLineSlider.js";import a from"../icons/MaximizeIcon.js";import s from"../icons/MinimizeIcon.js";import d from"../icons/PlayIcon.js";import u from"../icons/PauseIcon.js";import p from"../icons/PlaybackSpeedIcon.js";import v from"./videoPlayer.module.css.js";var m=function(m){var f,y,g=m.videoSrc,h=m.currentTime,S=m.isWaveformPlaying,P=m.onBufferingStart,k=m.onBufferingEnd,V=m.onVideoPlayPause,b=m.videoType,I=void 0===b?"video/mp4":b,j=m.className,J=void 0===j?"":j,x=m.onVideoLoadingStateChange,w=m.isUrlPending,N=m.isPeaksPending,B=m.signedUrl,C=m.AudioData,T=m.showOnlyMatched,M=m.setShowOnlyMatched,R=m.wavesurferRef,A=m.segments,F=m.setIsAudioPlaying,L=m.handleAudioTimeUpdate,O=m.customStyles,U=m.waveformStyles,z=l(null),E=l(null),W=l(null),D=l(!1),H=l(!1),_=i(!1),q=_[0];_[1];var G=i(!0)[0],K=i(!0),Q=K[0],X=K[1],Y=i("1x"),Z=Y[0],$=Y[1],ee=i(!1),ne=ee[0],oe=ee[1],le=function(){oe(function(e){return!e})};r(function(){if(console.log("[VideoJS] useEffect triggered",{videoSrc:g}),z.current){console.log("[VideoJS] Initializing player"),X(!0),null==x||x(!0);var e=t(z.current,{controls:!1,autoplay:!1,preload:"auto",fluid:!0,muted:!0,sources:[{src:g,type:I}]});return e.on("loadstart",function(){console.log("[VideoJS] loadstart"),X(!0),null==x||x(!0)}),e.on("canplay",function(){console.log("[VideoJS] canplay",{isVideoLoading:Q,isBuffering:D.current}),Q&&(console.log("[VideoJS] Video loading finished"),X(!1),null==x||x(!1)),D.current&&(console.log("[VideoJS] Buffering ended"),D.current=!1,setTimeout(function(){console.log("[VideoJS] onBufferingEnd()"),k()},100))}),e.on("waiting",function(){console.log("[VideoJS] waiting (buffering start)"),D.current||(D.current=!0,H.current=S,console.log("[VideoJS] Buffering started",{wasPlaying:H.current}),P())}),e.on("error",function(){console.error("[VideoJS] Player error",e.error()),X(!1),null==x||x(!1)}),E.current=e,console.log("[VideoJS] Player ready"),function(){var e;console.log("[VideoJS] Disposing player"),null===(e=E.current)||void 0===e||e.dispose(),E.current=null}}console.warn("[VideoJS] videoRef is null")},[g]),r(function(){if(E.current){var e=E.current.currentTime();Math.abs(e-h)>.2&&E.current.currentTime(h)}},[h]),r(function(){E.current&&!D.current&&(S&&E.current.paused()?E.current.play().catch(function(){}):S||E.current.paused()||E.current.pause())},[S]),r(function(){var e,n,o,l=parseFloat(Z.replace("x",""));null===(e=E.current)||void 0===e||e.playbackRate(l),null===(o=null===(n=R.current)||void 0===n?void 0:n.setPlaybackRate)||void 0===o||o.call(n,l)},[Z]);return n("div",e({ref:W,className:"".concat(v.container," ").concat(J),style:null==O?void 0:O.container},{children:[o("video",{ref:z,className:"video-js vjs-big-play-centered ".concat(v.video),style:null==O?void 0:O.video,playsInline:!0,muted:!0}),n("div",e({className:"".concat(v.controlsWrapper," ").concat(G?v.visible:v.hidden),style:null==O?void 0:O.controlsWrapper},{children:[ne&&n("div",e({className:v.speedSelector,style:null==O?void 0:O.speedSelector},{children:[o("div",e({className:v.speedHeader,style:null==O?void 0:O.speedHeader},{children:"Playback Speed"})),["0.5x","1x","1.5x","2x"].map(function(n){return o("button",e({onClick:function(){return function(e){var n,o,l;$(e),oe(!1);var i=parseFloat(e.replace("x",""));null===(n=E.current)||void 0===n||n.playbackRate(i),null===(l=null===(o=R.current)||void 0===o?void 0:o.setPlaybackRate)||void 0===l||l.call(o,i)}(n)},className:v.speedItem,style:null==O?void 0:O.speedItem},{children:n}),n)})]})),n("div",e({className:v.controlBar,style:null==O?void 0:O.controlBar},{children:[o("div",{children:o("button",S?e({onClick:function(e){e.stopPropagation(),null==V||V(!1)},style:null==O?void 0:O.pauseIcon},{children:o(u,{})}):e({onClick:function(e){e.stopPropagation(),null==V||V(!0)},style:null==O?void 0:O.playIcon},{children:o(d,{})}))}),n("div",e({className:v.rightControls,style:null==O?void 0:O.rightControls},{children:["1x"!==Z?o("span",e({onClick:le},{children:Z})):o("button",e({onClick:le,style:null==O?void 0:O.playBackSpeedIcon},{children:o(p,{})})),o("button",e({onClick:function(e){var n,o,l;e.stopPropagation(),W.current&&(q?null===(l=document.exitFullscreen)||void 0===l||l.call(document):null===(o=(n=W.current).requestFullscreen)||void 0===o||o.call(n))}},{children:o(q?s:a,{})}))]}))]})),o("div",e({className:v.timeline,style:null==O?void 0:O.timeline},{children:w||N?o("div",e({className:v.loader,style:null==O?void 0:O.loader},{children:o("span",{children:"Loading audio-timeline peaks..."})})):B&&C&&o(c,{ref:R,audio_file_name:B,peaks:null!==(f=C.peaks)&&void 0!==f?f:[],duration:null!==(y=C.duration)&&void 0!==y?y:0,matchedSegments:A,showOnlyMatched:T,setShowOnlyMatched:M,setIsAudioPlaying:F,onTimeUpdate:L,onToggleShowMatched:function(){},customStyles:U})}))]}))]}))};export{m as default};
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useRef as l,useState as n,useEffect as r}from"react";import i from"video.js";import"video.js/dist/video-js.css";import t from"./AudioTimeLineSlider.js";import a from"../icons/MaximizeIcon.js";import s from"../icons/MinimizeIcon.js";import d from"../icons/PlayIcon.js";import c from"../icons/PauseIcon.js";import u from"../icons/PlaybackSpeedIcon.js";import p from"./videoPlayer.module.css.js";const m=({videoSrc:m,currentTime:v,isWaveformPlaying:y,onBufferingStart:g,onBufferingEnd:f,onVideoPlayPause:h,videoType:S="video/mp4",className:P="",onVideoLoadingStateChange:k,isUrlPending:V,isPeaksPending:b,signedUrl:I,AudioData:j,showOnlyMatched:J,setShowOnlyMatched:x,wavesurferRef:w,segments:N,setIsAudioPlaying:B,handleAudioTimeUpdate:C,customStyles:T,waveformStyles:M})=>{var R,A;const $=l(null),F=l(null),L=l(null),O=l(!1),U=l(!1),[z,E]=n(!1),[W]=n(!0),[D,H]=n(!0),[_,q]=n("1x"),[G,K]=n(!1),Q=()=>{K(e=>!e)};r(()=>{if(console.log("[VideoJS] useEffect triggered",{videoSrc:m}),!$.current)return void console.warn("[VideoJS] videoRef is null");console.log("[VideoJS] Initializing player"),H(!0),null==k||k(!0);const e=i($.current,{controls:!1,autoplay:!1,preload:"auto",fluid:!0,muted:!0,sources:[{src:m,type:S}]});return e.on("loadstart",()=>{console.log("[VideoJS] loadstart"),H(!0),null==k||k(!0)}),e.on("canplay",()=>{console.log("[VideoJS] canplay",{isVideoLoading:D,isBuffering:O.current}),D&&(console.log("[VideoJS] Video loading finished"),H(!1),null==k||k(!1)),O.current&&(console.log("[VideoJS] Buffering ended"),O.current=!1,setTimeout(()=>{console.log("[VideoJS] onBufferingEnd()"),f()},100))}),e.on("waiting",()=>{console.log("[VideoJS] waiting (buffering start)"),O.current||(O.current=!0,U.current=y,console.log("[VideoJS] Buffering started",{wasPlaying:U.current}),g())}),e.on("error",()=>{console.error("[VideoJS] Player error",e.error()),H(!1),null==k||k(!1)}),F.current=e,console.log("[VideoJS] Player ready"),()=>{var e;console.log("[VideoJS] Disposing player"),null===(e=F.current)||void 0===e||e.dispose(),F.current=null}},[m]),r(()=>{if(!F.current)return;const e=F.current.currentTime();Math.abs(e-v)>.2&&F.current.currentTime(v)},[v]),r(()=>{F.current&&!O.current&&(y&&F.current.paused()?F.current.play().catch(()=>{}):y||F.current.paused()||F.current.pause())},[y]),r(()=>{var e,o,l;const n=parseFloat(_.replace("x",""));null===(e=F.current)||void 0===e||e.playbackRate(n),null===(l=null===(o=w.current)||void 0===o?void 0:o.setPlaybackRate)||void 0===l||l.call(o,n)},[_]);return e("div",{ref:L,className:`${p.container} ${P}`,style:null==T?void 0:T.container,children:[o("video",{ref:$,className:`video-js vjs-big-play-centered ${p.video}`,style:null==T?void 0:T.video,playsInline:!0,muted:!0}),e("div",{className:`${p.controlsWrapper} ${W?p.visible:p.hidden}`,style:null==T?void 0:T.controlsWrapper,children:[G&&e("div",{className:p.speedSelector,style:null==T?void 0:T.speedSelector,children:[o("div",{className:p.speedHeader,style:null==T?void 0:T.speedHeader,children:"Playback Speed"}),["0.5x","1x","1.5x","2x"].map(e=>o("button",{onClick:()=>(e=>{var o,l,n;q(e),K(!1);const r=parseFloat(e.replace("x",""));null===(o=F.current)||void 0===o||o.playbackRate(r),null===(n=null===(l=w.current)||void 0===l?void 0:l.setPlaybackRate)||void 0===n||n.call(l,r)})(e),className:p.speedItem,style:null==T?void 0:T.speedItem,children:e},e))]}),e("div",{className:p.controlBar,style:null==T?void 0:T.controlBar,children:[o("div",{children:o("button",y?{onClick:e=>{e.stopPropagation(),null==h||h(!1)},style:null==T?void 0:T.pauseIcon,children:o(c,{})}:{onClick:e=>{e.stopPropagation(),null==h||h(!0)},style:null==T?void 0:T.playIcon,children:o(d,{})})}),e("div",{className:p.rightControls,style:null==T?void 0:T.rightControls,children:["1x"!==_?o("span",{onClick:Q,children:_}):o("button",{onClick:Q,style:null==T?void 0:T.playBackSpeedIcon,children:o(u,{})}),o("button",{onClick:e=>{var o,l,n;e.stopPropagation(),L.current&&(z?null===(n=document.exitFullscreen)||void 0===n||n.call(document):null===(l=(o=L.current).requestFullscreen)||void 0===l||l.call(o))},children:o(z?s:a,{})})]})]}),o("div",{className:p.timeline,style:null==T?void 0:T.timeline,children:V||b?o("div",{className:p.loader,style:null==T?void 0:T.loader,children:o("span",{children:"Loading audio-timeline peaks..."})}):I&&j&&o(t,{ref:w,audio_file_name:I,peaks:null!==(R=j.peaks)&&void 0!==R?R:[],duration:null!==(A=j.duration)&&void 0!==A?A:0,matchedSegments:N,showOnlyMatched:J,setShowOnlyMatched:x,setIsAudioPlaying:B,onTimeUpdate:C,onToggleShowMatched:()=>{},customStyles:M})})]})]})};export{m as default};
2
2
  //# sourceMappingURL=videoPlayer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as r,jsxs as i}from"react/jsx-runtime";var o=function(o){var e=o.height,d=void 0===e?24:e,h=o.width;return r("div",{children:i("svg",t({xmlns:"http://www.w3.org/2000/svg",width:void 0===h?24:h,height:d,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:[r("path",{d:"M2 10v3"}),r("path",{d:"M6 6v11"}),r("path",{d:"M10 3v18"}),r("path",{d:"M14 8v7"}),r("path",{d:"M18 5v13"}),r("path",{d:"M22 10v3"})]}))})};export{o as default};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";const r=({height:r=24,width:h=24})=>t("div",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:h,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[t("path",{d:"M2 10v3"}),t("path",{d:"M6 6v11"}),t("path",{d:"M10 3v18"}),t("path",{d:"M14 8v7"}),t("path",{d:"M18 5v13"}),t("path",{d:"M22 10v3"})]})});export{r as default};
2
2
  //# sourceMappingURL=AudioLinesIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as r,jsxs as i}from"react/jsx-runtime";var o=function(o){var e=o.height,h=void 0===e?24:e,d=o.width;return r("div",{children:i("svg",t({xmlns:"http://www.w3.org/2000/svg",width:void 0===d?24:d,height:h,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[r("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),r("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),r("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),r("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}))})};export{o as default};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";const h=({height:h=24,width:r=24})=>t("div",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:h,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),t("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),t("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),t("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})});export{h as default};
2
2
  //# sourceMappingURL=MaximizeIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as r,jsxs as i}from"react/jsx-runtime";var o=function(o){var e=o.height,h=void 0===e?24:e,d=o.width;return r("div",{children:i("svg",t({xmlns:"http://www.w3.org/2000/svg",width:void 0===d?24:d,height:h,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[r("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),r("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),r("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),r("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]}))})};export{o as default};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";const h=({height:h=24,width:r=24})=>t("div",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:h,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),t("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),t("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),t("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})});export{h as default};
2
2
  //# sourceMappingURL=MinimizeIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";import{jsx as t,jsxs as i}from"react/jsx-runtime";var e=function(e){var o=e.height,h=void 0===o?24:o,n=e.width;return t("div",{children:i("svg",r({xmlns:"http://www.w3.org/2000/svg",width:void 0===n?24:n,height:h,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}),t("rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"})]}))})};export{e as default};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";const r=({height:r=24,width:i=24})=>t("div",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t("rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}),t("rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"})]})});export{r as default};
2
2
  //# sourceMappingURL=PauseIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";import{jsx as t}from"react/jsx-runtime";var o=function(o){var i=o.height,e=void 0===i?24:i,n=o.width;return t("svg",r({xmlns:"http://www.w3.org/2000/svg",width:void 0===n?24:n,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:t("path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"})}))};export{o as default};
1
+ import{jsx as t}from"react/jsx-runtime";const e=({height:e=24,width:o=24})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t("path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"})});export{e as default};
2
2
  //# sourceMappingURL=PlayIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as C}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";var l=function(){return i("svg",C({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 12 12",fill:"none"},{children:[i("g",C({"clip-path":"url(#clip0_3246_74403)"},{children:[t("path",{d:"M4.80358 0.7585C5.18858 0.671 5.58907 0.625 6.00007 0.625C8.96858 0.625 11.3751 3.0315 11.3751 6C11.3751 8.9685 8.96858 11.375 6.00007 11.375C5.58907 11.375 5.18858 11.329 4.80358 11.2415C4.75554 11.2306 4.71014 11.2103 4.66995 11.1818C4.62975 11.1533 4.59557 11.1172 4.56933 11.0755C4.5431 11.0338 4.52534 10.9874 4.51706 10.9388C4.50878 10.8902 4.51014 10.8405 4.52107 10.7925C4.53201 10.7445 4.55229 10.6991 4.58077 10.6589C4.60926 10.6187 4.64537 10.5845 4.68707 10.5583C4.72876 10.532 4.77521 10.5143 4.82377 10.506C4.87233 10.4977 4.92204 10.4991 4.97007 10.51C5.64726 10.6639 6.35041 10.6633 7.02734 10.5083C7.70427 10.3533 8.33761 10.0479 8.88035 9.61462C9.4231 9.18139 9.86131 8.63149 10.1625 8.00574C10.4636 7.37999 10.62 6.69445 10.62 6C10.62 5.30555 10.4636 4.62001 10.1625 3.99426C9.86131 3.36851 9.4231 2.81861 8.88035 2.38538C8.33761 1.95214 7.70427 1.64668 7.02734 1.49168C6.35041 1.33668 5.64726 1.3361 4.97007 1.49C4.87307 1.51208 4.77127 1.49472 4.68707 1.44174C4.60286 1.38876 4.54315 1.3045 4.52107 1.2075C4.499 1.1105 4.51636 1.0087 4.56933 0.924492C4.62231 0.840289 4.70657 0.780579 4.80358 0.7585Z",fill:"white"}),t("path",{opacity:"0.5",d:"M3.65722 1.56573C3.71017 1.64988 3.72754 1.75161 3.70551 1.84856C3.68347 1.94551 3.62384 2.02974 3.53972 2.08273C2.95168 2.45316 2.45415 2.95069 2.08372 3.53873C2.03075 3.62294 1.94649 3.68265 1.84948 3.70474C1.75248 3.72682 1.65068 3.70946 1.56647 3.65648C1.48227 3.60351 1.42255 3.51925 1.40047 3.42225C1.37839 3.32524 1.39575 3.22344 1.44872 3.13923C1.87921 2.45616 2.4574 1.87832 3.14072 1.44823C3.22487 1.39528 3.3266 1.37792 3.42355 1.39995C3.5205 1.42199 3.60423 1.48162 3.65722 1.56573ZM1.56672 8.34273C1.65087 8.28978 1.7526 8.27242 1.84955 8.29445C1.9465 8.31649 2.03073 8.37612 2.08372 8.46023C2.45409 9.04846 2.95163 9.54616 3.53972 9.91673C3.58264 9.94237 3.61999 9.97632 3.64959 10.0166C3.67919 10.0569 3.70044 10.1027 3.71209 10.1513C3.72374 10.1999 3.72555 10.2503 3.71742 10.2997C3.70929 10.349 3.69139 10.3962 3.66475 10.4385C3.63812 10.4808 3.6033 10.5173 3.56234 10.546C3.52138 10.5746 3.4751 10.5948 3.42623 10.6053C3.37736 10.6158 3.32688 10.6164 3.27777 10.6071C3.22865 10.5979 3.18189 10.5789 3.14022 10.5512C2.45721 10.1209 1.87937 9.54288 1.44922 8.85973C1.39627 8.77559 1.37891 8.67386 1.40094 8.57691C1.42297 8.47996 1.4826 8.39573 1.56672 8.34273Z",fill:"white"}),t("path",{opacity:"0.3",d:"M1.48951 4.96617C1.51159 4.86917 1.49423 4.76736 1.44125 4.68316C1.38827 4.59896 1.30401 4.53925 1.20701 4.51717C1.11001 4.49509 1.00821 4.51245 0.924004 4.56543C0.8398 4.61841 0.780091 4.70267 0.758012 4.79967C0.670512 5.18467 0.624512 5.58517 0.624512 5.99617C0.624512 6.40717 0.670512 6.80717 0.758012 7.19217C0.780025 7.28917 0.83967 7.37346 0.923827 7.42648C1.00798 7.47951 1.10976 7.49693 1.20676 7.47492C1.30376 7.45291 1.38805 7.39326 1.44108 7.3091C1.4941 7.22495 1.51152 7.12317 1.48951 7.02617C1.41292 6.68819 1.37434 6.34271 1.37451 5.99617C1.37451 5.64167 1.41451 5.29717 1.48951 4.96617Z",fill:"white"}),t("path",{d:"M7.707 5.46999C8.0975 5.70099 8.0975 6.29799 7.707 6.52899L5.347 7.92249C4.967 8.14649 4.5 7.85449 4.5 7.39249V4.60649C4.5 4.14449 4.967 3.85299 5.347 4.07699L7.707 5.46999Z",fill:"white"})]})),t("defs",{children:t("clipPath",C({id:"clip0_3246_74403"},{children:t("rect",{width:"12",height:"12",fill:"white"})}))})]}))};export{l as default};
1
+ import{jsxs as C,jsx as i}from"react/jsx-runtime";const t=()=>C("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 12 12",fill:"none",children:[C("g",{"clip-path":"url(#clip0_3246_74403)",children:[i("path",{d:"M4.80358 0.7585C5.18858 0.671 5.58907 0.625 6.00007 0.625C8.96858 0.625 11.3751 3.0315 11.3751 6C11.3751 8.9685 8.96858 11.375 6.00007 11.375C5.58907 11.375 5.18858 11.329 4.80358 11.2415C4.75554 11.2306 4.71014 11.2103 4.66995 11.1818C4.62975 11.1533 4.59557 11.1172 4.56933 11.0755C4.5431 11.0338 4.52534 10.9874 4.51706 10.9388C4.50878 10.8902 4.51014 10.8405 4.52107 10.7925C4.53201 10.7445 4.55229 10.6991 4.58077 10.6589C4.60926 10.6187 4.64537 10.5845 4.68707 10.5583C4.72876 10.532 4.77521 10.5143 4.82377 10.506C4.87233 10.4977 4.92204 10.4991 4.97007 10.51C5.64726 10.6639 6.35041 10.6633 7.02734 10.5083C7.70427 10.3533 8.33761 10.0479 8.88035 9.61462C9.4231 9.18139 9.86131 8.63149 10.1625 8.00574C10.4636 7.37999 10.62 6.69445 10.62 6C10.62 5.30555 10.4636 4.62001 10.1625 3.99426C9.86131 3.36851 9.4231 2.81861 8.88035 2.38538C8.33761 1.95214 7.70427 1.64668 7.02734 1.49168C6.35041 1.33668 5.64726 1.3361 4.97007 1.49C4.87307 1.51208 4.77127 1.49472 4.68707 1.44174C4.60286 1.38876 4.54315 1.3045 4.52107 1.2075C4.499 1.1105 4.51636 1.0087 4.56933 0.924492C4.62231 0.840289 4.70657 0.780579 4.80358 0.7585Z",fill:"white"}),i("path",{opacity:"0.5",d:"M3.65722 1.56573C3.71017 1.64988 3.72754 1.75161 3.70551 1.84856C3.68347 1.94551 3.62384 2.02974 3.53972 2.08273C2.95168 2.45316 2.45415 2.95069 2.08372 3.53873C2.03075 3.62294 1.94649 3.68265 1.84948 3.70474C1.75248 3.72682 1.65068 3.70946 1.56647 3.65648C1.48227 3.60351 1.42255 3.51925 1.40047 3.42225C1.37839 3.32524 1.39575 3.22344 1.44872 3.13923C1.87921 2.45616 2.4574 1.87832 3.14072 1.44823C3.22487 1.39528 3.3266 1.37792 3.42355 1.39995C3.5205 1.42199 3.60423 1.48162 3.65722 1.56573ZM1.56672 8.34273C1.65087 8.28978 1.7526 8.27242 1.84955 8.29445C1.9465 8.31649 2.03073 8.37612 2.08372 8.46023C2.45409 9.04846 2.95163 9.54616 3.53972 9.91673C3.58264 9.94237 3.61999 9.97632 3.64959 10.0166C3.67919 10.0569 3.70044 10.1027 3.71209 10.1513C3.72374 10.1999 3.72555 10.2503 3.71742 10.2997C3.70929 10.349 3.69139 10.3962 3.66475 10.4385C3.63812 10.4808 3.6033 10.5173 3.56234 10.546C3.52138 10.5746 3.4751 10.5948 3.42623 10.6053C3.37736 10.6158 3.32688 10.6164 3.27777 10.6071C3.22865 10.5979 3.18189 10.5789 3.14022 10.5512C2.45721 10.1209 1.87937 9.54288 1.44922 8.85973C1.39627 8.77559 1.37891 8.67386 1.40094 8.57691C1.42297 8.47996 1.4826 8.39573 1.56672 8.34273Z",fill:"white"}),i("path",{opacity:"0.3",d:"M1.48951 4.96617C1.51159 4.86917 1.49423 4.76736 1.44125 4.68316C1.38827 4.59896 1.30401 4.53925 1.20701 4.51717C1.11001 4.49509 1.00821 4.51245 0.924004 4.56543C0.8398 4.61841 0.780091 4.70267 0.758012 4.79967C0.670512 5.18467 0.624512 5.58517 0.624512 5.99617C0.624512 6.40717 0.670512 6.80717 0.758012 7.19217C0.780025 7.28917 0.83967 7.37346 0.923827 7.42648C1.00798 7.47951 1.10976 7.49693 1.20676 7.47492C1.30376 7.45291 1.38805 7.39326 1.44108 7.3091C1.4941 7.22495 1.51152 7.12317 1.48951 7.02617C1.41292 6.68819 1.37434 6.34271 1.37451 5.99617C1.37451 5.64167 1.41451 5.29717 1.48951 4.96617Z",fill:"white"}),i("path",{d:"M7.707 5.46999C8.0975 5.70099 8.0975 6.29799 7.707 6.52899L5.347 7.92249C4.967 8.14649 4.5 7.85449 4.5 7.39249V4.60649C4.5 4.14449 4.967 3.85299 5.347 4.07699L7.707 5.46999Z",fill:"white"})]}),i("defs",{children:i("clipPath",{id:"clip0_3246_74403",children:i("rect",{width:"12",height:"12",fill:"white"})})})]});export{t as default};
2
2
  //# sourceMappingURL=PlaybackSpeedIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";import{jsx as t,jsxs as i}from"react/jsx-runtime";var e=function(e){var o=e.height,n=void 0===o?24:o,h=e.width;return t("div",{children:i("svg",r({xmlns:"http://www.w3.org/2000/svg",width:void 0===h?24:h,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}),t("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"})]}))})};export{e as default};
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";const r=({height:r=24,width:i=24})=>t("div",{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t("path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}),t("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"})]})});export{r as default};
2
2
  //# sourceMappingURL=VideoIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";import{jsx as e,jsxs as n,Fragment as t}from"react/jsx-runtime";import u,{forwardRef as c,useState as o,useRef as i,useEffect as a,useCallback as l}from"react";import s from"wavesurfer.js";import d from"wavesurfer.js/dist/plugins/regions";import f from"./searchwaveform.module.css.js";import v from"./icons/PauseIcon.js";import m from"./icons/PlayIcon.js";import{useAudioPlayPause as p}from"./store/autoplay.wavefrom.js";var g=c(function(c,g){var h=c.audio_file_name,y=c.showOnlyMatched,T=c.setShowOnlyMatched,S=c.matchedSegments,w=c.onTimeUpdate;c.currentAudioTime;var N=c.peaks,P=c.duration,k=c.setIsAudioPlaying,I=c.setChevronIndex,M=c.chevronIndex,_=void 0===M?0:M,b=c.onToggleShowMatched,R=c.topicId,x=c.isVideoBuffering,C=c.playOnlyMatched,B=void 0===C||C,j=c.customStyles,O=o(!1),A=O[0],D=O[1],q=o(!0),W=q[0],E=q[1],F=o(!1),z=F[0],H=F[1],L=o(!1),U=L[0],X=L[1],V=o(!1),G=V[0],J=V[1],K=o(!1);K[0];var Q=K[1],Y=o(0),Z=Y[0],$=Y[1],rr=o(!1);rr[0];var er=rr[1],nr=o("00:00:00"),tr=nr[0],ur=nr[1],cr=o("00:00:00"),or=cr[0],ir=cr[1],ar=o(0),lr=ar[0],sr=ar[1],dr=o(!1),fr=dr[0],vr=dr[1],mr=o(0),pr=mr[0],gr=mr[1],hr=o("00:00:00"),yr=hr[0],Tr=hr[1],Sr=i(null),wr=i(!1),Nr=i(null),Pr=i(null),kr=i(null),Ir=i(!1),Mr=i(null),_r=i(null),br=i(0),Rr=i(0),xr=o(!1),Cr=xr[0],Br=xr[1],jr=p(),Or=jr.playTopicId,Ar=jr.resetTrigger,Dr=jr.pendingPlayRequest,qr=jr.setPendingPlayRequest,Wr=jr.triggerPlayForTopic,Er=i(null),Fr=function(r){try{var e=r.split(":"),n=e[0],t=e[1],u=e[2],c=(e[3],parseInt(n).toString().padStart(2,"0")),o=parseInt(t).toString().padStart(2,"0"),i=parseInt(u).toString().padStart(2,"0");return"".concat(c,":").concat(o,":").concat(i)}catch(r){console.log("Error converting formatTimeToHMS",r)}};a(function(){null==T||T(B)},[B]),a(function(){Cr&&Dr===R&&(qr(null),setTimeout(function(){Wr(R)},100))},[Cr,Dr,R]),a(function(){Cr&&Or===R&&(Er.current&&(Er.current.click(),D(!0)),Ar())},[Or,R,Cr]),a(function(){return Br(!0),function(){Br(!1)}},[]),a(function(){if(h&&Nr.current&&!Ir.current){E(!0);var r=d.create(),e=s.create({container:Nr.current,waveColor:"#D0D5DD",progressColor:"#9CA3AF",cursorColor:"#6B7280",barWidth:2,barRadius:3,height:64,normalize:!0,peaks:[new Float32Array(N)],duration:P,url:h});return Pr.current=e,kr.current=e.registerPlugin(r),Ir.current=!0,e.on("decode",function(){er(!0),Hr();var r=Fr(zr(P));ir(r||"00:00:00")}),e.on("ready",function(){E(!1)}),e.on("play",function(){D(!0),k&&k(!0)}),e.on("pause",function(){D(!1),k&&k(!1)}),e.on("finish",function(){D(!1),k&&k(!1),z&&(H(!1),X(!1),J(!0))}),e.on("seeking",function(){y||z&&!U&&Lr()}),e.on("error",function(){E(!1)}),e.on("audioprocess",function(r){(w&&w(r),wr.current)||sr(r/P*100);var e=Fr(zr(r));ur(e||"00:00:00"),Rr.current=r}),function(){Mr.current&&clearTimeout(Mr.current),_r.current,e.destroy(),Ir.current=!1,Pr.current=null}}},[h]),a(function(){Pr.current&&(Pr.current.setOptions({interact:!y}),A&&Pr.current.pause(),y?(H(!0),br.current=0):Lr(),b&&b(y))},[y]);var zr=function(r){var e=Math.floor(r/3600),n=Math.floor(r%3600/60),t=Math.floor(r%60),u=Math.floor(r%1*1e3);return"".concat(String(e).padStart(2,"0"),":").concat(String(n).padStart(2,"0"),":").concat(String(t).padStart(2,"0"),":").concat(String(u).padStart(3,"0"))},Hr=l(function(){kr.current&&Pr.current&&(kr.current.clearRegions(),S.forEach(function(r,e){kr.current.addRegion({start:r.start_time,end:r.end_time,color:"rgba(254, 239, 137, 0.5)",drag:!1,resize:!1,id:r.segment_id})}))},[S]),Lr=l(function(){Pr.current&&(H(!1),X(!1),J(!1),Q(!1),Mr.current&&(clearTimeout(Mr.current),Mr.current=null),_r.current&&(Pr.current.un("audioprocess",_r.current),_r.current=null))},[]),Ur=l(function(r){!y&&Pr.current&&(Pr.current.seekTo(r/P),Pr.current.play(),D(!0),k&&k(!0),ur(Fr(zr(r))),H(!1),X(!1),J(!1))},[y,P,k,zr,Fr]),Xr=i(!1),Vr=l(function(){if(!Xr.current&&Pr.current&&S.length){Xr.current=!0,Pr.current.pause();var r=br.current+1;if(console.log("Current segment:",br.current),console.log("Next index calculated:",r),console.log("Total segments:",S.length),r<S.length){var e=S[r];ur(Fr(zr(e.start_time))),I&&I(r),$(r),br.current=r;var n=y?0:2e3;Mr.current=setTimeout(function(){Xr.current=!1,setTimeout(function(){if(Pr.current){Pr.current.seekTo(e.start_time/P),Pr.current.play();var r=e.end_time,n=function(e){var t;e>=r&&(null===(t=Pr.current)||void 0===t||t.un("audioprocess",n),_r.current=null,Vr())};_r.current=n,Pr.current.on("audioprocess",n)}},100)},n)}else{if(console.log("End of cycle reached, resetting to index 0"),H(y),X(!0),J(!0),br.current=0,$(0),I&&I(0),S.length>0){var t=S[0];ur(Fr(zr(t.start_time))),Pr.current.seekTo(t.start_time/P)}Pr.current.isPlaying()&&Pr.current.pause(),Mr.current=setTimeout(function(){Xr.current=!1,Pr.current&&Pr.current.isPlaying()&&Pr.current.pause()},y?0:2e3)}}},[S,P,I,zr,y]),Gr=l(function(){if(Pr.current&&S.length){var r=br.current;if(r>=S.length)return H(y),void J(!0);var e=S[r];$(r),ur(Fr(zr(e.start_time))),I&&I(r),setTimeout(function(){if(Pr.current){Pr.current.seekTo(e.start_time/P),Pr.current.play();var r=e.end_time,n=function(e){var t;e>=r&&(null===(t=Pr.current)||void 0===t||t.un("audioprocess",n),_r.current=null,Vr())};_r.current=n,Pr.current.on("audioprocess",n)}},100)}},[S,P,I,Vr,zr,y]),Jr=l(function(){if(Pr.current&&S.length){_r.current&&(Pr.current.un("audioprocess",_r.current),_r.current=null);var r=S[br.current];if(r){var e=r.end_time,n=function(r){var t;r>=e&&(null===(t=Pr.current)||void 0===t||t.un("audioprocess",n),_r.current=null,Vr())};_r.current=n,Pr.current.on("audioprocess",n)}}},[S,Vr]),Kr=l(function(){Pr.current&&(y?A?(Pr.current.pause(),X(!0)):U?(Pr.current.play(),X(!1),Jr()):G?(J(!1),br.current=0,Gr()):Gr():A?Pr.current.pause():Pr.current.play())},[A,y,U,G,Gr,Jr]),Qr=l(function(r){if(Pr.current&&0!==S.length){var e,n=A;A&&(Pr.current.pause(),X(!0)),_r.current&&(Pr.current.un("audioprocess",_r.current),_r.current=null),e="next"===r?(Z+1)%S.length:(Z-1+S.length)%S.length,$(e),br.current=e;var t=S[e];Pr.current.seekTo(t.start_time/P),I&&I(e),n&&y&&setTimeout(function(){Pr.current&&(Pr.current.play(),X(!1),Jr())},50)}},[Z,S,I,P,A,y,Jr]),Yr=l(function(r){Pr.current&&(y||(z&&Lr(),Pr.current.seekTo(r/P)))},[P,z,Lr,y]);a(function(){if(S.length>0&&void 0!==_&&Pr.current&&!Xr.current){if(_===br.current)return;var r=A;_r.current&&(Pr.current.un("audioprocess",_r.current),_r.current=null);var e=S[_];e&&(Pr.current.seekTo(e.start_time/P),$(_),br.current=_,r&&y&&setTimeout(function(){Pr.current&&Jr()},50))}},[_,P,S,y,A,Jr]);var Zr=i(!1);a(function(){x&&Pr.current&&Pr.current.isPlaying()&&(Zr.current=!0,Pr.current.pause(),z&&X(!0)),!x&&Zr.current&&Pr.current&&Pr.current&&(Pr.current.play(),Zr.current=!1,z&&U&&(X(!1),Jr()))},[x,z,U,Jr]),u.useImperativeHandle(g,function(){return{waveSurfer:Pr.current,navigateSegments:Qr,togglePlayPause:Kr,getCurrentSegmentIndex:function(){return Z},setCurrentSegmentIndex:$,isPlayingSequence:function(){return z},setPlayingSequence:function(r){return H(r)},seekToTime:Yr,showOnlyMatched:y,setShowOnlyMatched:function(r){return null==T?void 0:T(r)},handleIndividualSegmentPlay:Ur}},[Pr.current,Qr,Kr,Z,z,Yr,y,Ur]);return e("div",r({className:f.container,style:null==j?void 0:j.container},{children:n("div",r({className:f.inner,style:null==j?void 0:j.inner},{children:[n("div",r({className:f.waveformRow,style:null==j?void 0:j.waveformRow},{children:[e("div",r({className:f.playButtonWrapper,style:null==j?void 0:j.playButtonWrapper},{children:e("button",r({ref:Er,onClick:Kr,className:f.playButton,style:null==j?void 0:j.playButton,title:A?"Pause":"Play",disabled:W},{children:W?e(t,{children:"Loading..."}):e("div",A?r({className:f.icon,style:null==j?void 0:j.pauseIcon},{children:e(v,{})}):r({className:f.icon,style:null==j?void 0:j.playIcon},{children:e(m,{})}))}))})),e("div",{ref:Nr,className:f.waveform,style:null==j?void 0:j.waveform})]})),n("div",r({className:f.sliderRow,style:null==j?void 0:j.sliderRow},{children:[e("div",{className:f.buttonSpacer,style:null==j?void 0:j.buttonSpacer}),n("div",r({className:"".concat(f.slider,"\n ").concat(f.group,"\n ").concat(y?f.disabled:f.interactive),ref:Sr,style:null==j?void 0:j.slider,onClick:y?void 0:function(r){var e;if(!y){var n=null===(e=Sr.current)||void 0===e?void 0:e.getBoundingClientRect();if(n&&Pr.current){var t=(r.clientX-n.left)/n.width*100,u=t/100*P;sr(t),Pr.current.seekTo(u/P),z&&Lr()}}},onMouseMove:y?void 0:function(r){if(!y&&Sr.current){var e=Sr.current.getBoundingClientRect(),n=r.clientX-e.left;if(n>=0&&n<=e.width){var t=n/e.width*100;vr(!0),gr(n);var u=Fr(zr(t/100*P));Tr(u||"00:00:00")}}},onMouseLeave:function(){vr(!1)},onMouseDown:y?void 0:function(){y||(wr.current=!0)},onMouseUp:y?void 0:function(){if(!y&&(wr.current=!1,Pr.current)){var r=lr/100*P;Pr.current.seekTo(r/P),z&&Lr()}}},{children:[e("div",{className:f.sliderTrack,style:null==j?void 0:j.sliderTrack}),e("div",{className:f.sliderProgress,style:r({width:"".concat(lr,"%")},null==j?void 0:j.sliderProgress)}),e("div",{className:f.sliderThumb,style:r({left:"".concat(lr,"%")},null==j?void 0:j.sliderThumb)}),fr&&!y&&e("div",r({className:f.timeTooltip,style:r({left:pr},null==j?void 0:j.timeTooltip)},{children:yr}))]}))]})),n("div",r({className:f.timeRow,style:null==j?void 0:j.timeRow},{children:[e("div",{className:f.buttonSpacer,style:null==j?void 0:j.buttonSpacer}),n("div",r({className:f.timeText,style:null==j?void 0:j.timeText},{children:[e("span",{children:tr}),e("span",{children:"/"}),e("span",{children:or})]}))]}))]}))}))});g.displayName="SearchWaveform";export{g as default};
1
+ import{jsx as e,jsxs as r,Fragment as t}from"react/jsx-runtime";import n,{forwardRef as u,useState as c,useRef as o,useEffect as l,useCallback as s}from"react";import i from"wavesurfer.js";import a from"wavesurfer.js/dist/plugins/regions";import d from"./searchwaveform.module.css.js";import m from"./icons/PauseIcon.js";import p from"./icons/PlayIcon.js";import{useAudioPlayPause as g}from"./store/autoplay.wavefrom.js";const v=u(({audio_file_name:u,showOnlyMatched:v,setShowOnlyMatched:h,matchedSegments:y,onTimeUpdate:f,currentAudioTime:T,peaks:S,duration:w,setIsAudioPlaying:N,setChevronIndex:P,chevronIndex:k=0,onToggleShowMatched:I,topicId:M,isVideoBuffering:_,playOnlyMatched:R=!0,customStyles:b},x)=>{const[C,$]=c(!1),[B,j]=c(!0),[O,A]=c(!1),[D,q]=c(!1),[W,E]=c(!1),[F,z]=c(!1),[H,L]=c(0),[U,X]=c(!1),[V,G]=c("00:00:00"),[J,K]=c("00:00:00"),[Q,Y]=c(0),[Z,ee]=c(!1),[re,te]=c(0),[ne,ue]=c("00:00:00"),ce=o(null),oe=o(!1),le=o(null),se=o(null),ie=o(null),ae=o(!1),de=o(null),me=o(null),pe=o(0),ge=o(0),[ve,he]=c(!1),{playTopicId:ye,resetTrigger:fe,pendingPlayRequest:Te,setPendingPlayRequest:Se,triggerPlayForTopic:we}=g(),Ne=o(null),Pe=e=>{try{const[r,t,n,u]=e.split(":"),c=parseInt(r).toString().padStart(2,"0"),o=parseInt(t).toString().padStart(2,"0");return`${c}:${o}:${parseInt(n).toString().padStart(2,"0")}`}catch(e){console.log("Error converting formatTimeToHMS",e)}};l(()=>{null==h||h(R)},[R]),l(()=>{ve&&Te===M&&(Se(null),setTimeout(()=>{we(M)},100))},[ve,Te,M]),l(()=>{ve&&ye===M&&(Ne.current&&(Ne.current.click(),$(!0)),fe())},[ye,M,ve]),l(()=>(he(!0),()=>{he(!1)}),[]),l(()=>{if(!u||!le.current||ae.current)return;j(!0);const e=a.create(),r=i.create({container:le.current,waveColor:"#D0D5DD",progressColor:"#9CA3AF",cursorColor:"#6B7280",barWidth:2,barRadius:3,height:64,normalize:!0,peaks:[new Float32Array(S)],duration:w,url:u});return se.current=r,ie.current=r.registerPlugin(e),ae.current=!0,r.on("decode",()=>{X(!0),Ie();const e=Pe(ke(w));K(e||"00:00:00")}),r.on("ready",()=>{j(!1)}),r.on("play",()=>{$(!0),N&&N(!0)}),r.on("pause",()=>{$(!1),N&&N(!1)}),r.on("finish",()=>{$(!1),N&&N(!1),O&&(A(!1),q(!1),E(!0))}),r.on("seeking",()=>{v||O&&!D&&Me()}),r.on("error",()=>{j(!1)}),r.on("audioprocess",e=>{if(f&&f(e),!oe.current){Y(e/w*100)}const r=Pe(ke(e));G(r||"00:00:00"),ge.current=e}),()=>{de.current&&clearTimeout(de.current),me.current,r.destroy(),ae.current=!1,se.current=null}},[u]),l(()=>{se.current&&(se.current.setOptions({interact:!v}),C&&se.current.pause(),v?(A(!0),pe.current=0):Me(),I&&I(v))},[v]);const ke=e=>{const r=Math.floor(e/3600),t=Math.floor(e%3600/60),n=Math.floor(e%60),u=Math.floor(e%1*1e3);return`${String(r).padStart(2,"0")}:${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}:${String(u).padStart(3,"0")}`},Ie=s(()=>{ie.current&&se.current&&(ie.current.clearRegions(),y.forEach((e,r)=>{ie.current.addRegion({start:e.start_time,end:e.end_time,color:"rgba(254, 239, 137, 0.5)",drag:!1,resize:!1,id:e.segment_id})}))},[y]),Me=s(()=>{se.current&&(A(!1),q(!1),E(!1),z(!1),de.current&&(clearTimeout(de.current),de.current=null),me.current&&(se.current.un("audioprocess",me.current),me.current=null))},[]),_e=s(e=>{!v&&se.current&&(se.current.seekTo(e/w),se.current.play(),$(!0),N&&N(!0),G(Pe(ke(e))),A(!1),q(!1),E(!1))},[v,w,N,ke,Pe]),Re=o(!1),be=s(()=>{if(Re.current)return;if(!se.current||!y.length)return;Re.current=!0,se.current.pause();const e=pe.current+1;if(console.log("Current segment:",pe.current),console.log("Next index calculated:",e),console.log("Total segments:",y.length),e<y.length){const r=y[e];G(Pe(ke(r.start_time))),P&&P(e),L(e),pe.current=e;const t=v?0:2e3;de.current=setTimeout(()=>{Re.current=!1,setTimeout(()=>{if(!se.current)return;se.current.seekTo(r.start_time/w),se.current.play();const e=r.end_time,t=r=>{var n;r>=e&&(null===(n=se.current)||void 0===n||n.un("audioprocess",t),me.current=null,be())};me.current=t,se.current.on("audioprocess",t)},100)},t)}else{if(console.log("End of cycle reached, resetting to index 0"),A(v),q(!0),E(!0),pe.current=0,L(0),P&&P(0),y.length>0){const e=y[0];G(Pe(ke(e.start_time))),se.current.seekTo(e.start_time/w)}se.current.isPlaying()&&se.current.pause(),de.current=setTimeout(()=>{Re.current=!1,se.current&&se.current.isPlaying()&&se.current.pause()},v?0:2e3)}},[y,w,P,ke,v]),xe=s(()=>{if(!se.current||!y.length)return;const e=pe.current;if(e>=y.length)return A(v),void E(!0);const r=y[e];L(e),G(Pe(ke(r.start_time))),P&&P(e),setTimeout(()=>{if(!se.current)return;se.current.seekTo(r.start_time/w),se.current.play();const e=r.end_time,t=r=>{var n;r>=e&&(null===(n=se.current)||void 0===n||n.un("audioprocess",t),me.current=null,be())};me.current=t,se.current.on("audioprocess",t)},100)},[y,w,P,be,ke,v]),Ce=s(()=>{if(!se.current||!y.length)return;me.current&&(se.current.un("audioprocess",me.current),me.current=null);const e=y[pe.current];if(!e)return;const r=e.end_time,t=e=>{var n;e>=r&&(null===(n=se.current)||void 0===n||n.un("audioprocess",t),me.current=null,be())};me.current=t,se.current.on("audioprocess",t)},[y,be]),$e=s(()=>{se.current&&(v?C?(se.current.pause(),q(!0)):D?(se.current.play(),q(!1),Ce()):W?(E(!1),pe.current=0,xe()):xe():C?se.current.pause():se.current.play())},[C,v,D,W,xe,Ce]),Be=s(e=>{if(!se.current||0===y.length)return;const r=C;let t;C&&(se.current.pause(),q(!0)),me.current&&(se.current.un("audioprocess",me.current),me.current=null),t="next"===e?(H+1)%y.length:(H-1+y.length)%y.length,L(t),pe.current=t;const n=y[t];se.current.seekTo(n.start_time/w),P&&P(t),r&&v&&setTimeout(()=>{se.current&&(se.current.play(),q(!1),Ce())},50)},[H,y,P,w,C,v,Ce]),je=s(e=>{se.current&&(v||(O&&Me(),se.current.seekTo(e/w)))},[w,O,Me,v]);l(()=>{if(y.length>0&&void 0!==k&&se.current&&!Re.current){if(k===pe.current)return;const e=C;me.current&&(se.current.un("audioprocess",me.current),me.current=null);const r=y[k];r&&(se.current.seekTo(r.start_time/w),L(k),pe.current=k,e&&v&&setTimeout(()=>{se.current&&Ce()},50))}},[k,w,y,v,C,Ce]);const Oe=o(!1);l(()=>{_&&se.current&&se.current.isPlaying()&&(Oe.current=!0,se.current.pause(),O&&q(!0)),!_&&Oe.current&&se.current&&se.current&&(se.current.play(),Oe.current=!1,O&&D&&(q(!1),Ce()))},[_,O,D,Ce]),n.useImperativeHandle(x,()=>({waveSurfer:se.current,navigateSegments:Be,togglePlayPause:$e,getCurrentSegmentIndex:()=>H,setCurrentSegmentIndex:L,isPlayingSequence:()=>O,setPlayingSequence:e=>A(e),seekToTime:je,showOnlyMatched:v,setShowOnlyMatched:e=>null==h?void 0:h(e),handleIndividualSegmentPlay:_e}),[se.current,Be,$e,H,O,je,v,_e]);return e("div",{className:d.container,style:null==b?void 0:b.container,children:r("div",{className:d.inner,style:null==b?void 0:b.inner,children:[r("div",{className:d.waveformRow,style:null==b?void 0:b.waveformRow,children:[e("div",{className:d.playButtonWrapper,style:null==b?void 0:b.playButtonWrapper,children:e("button",{ref:Ne,onClick:$e,className:d.playButton,style:null==b?void 0:b.playButton,title:C?"Pause":"Play",disabled:B,children:B?e(t,{children:"Loading..."}):e("div",C?{className:d.icon,style:null==b?void 0:b.pauseIcon,children:e(m,{})}:{className:d.icon,style:null==b?void 0:b.playIcon,children:e(p,{})})})}),e("div",{ref:le,className:d.waveform,style:null==b?void 0:b.waveform})]}),r("div",{className:d.sliderRow,style:null==b?void 0:b.sliderRow,children:[e("div",{className:d.buttonSpacer,style:null==b?void 0:b.buttonSpacer}),r("div",{className:`${d.slider}\n ${d.group}\n ${v?d.disabled:d.interactive}`,ref:ce,style:null==b?void 0:b.slider,onClick:v?void 0:e=>{var r;if(v)return;const t=null===(r=ce.current)||void 0===r?void 0:r.getBoundingClientRect();if(!t||!se.current)return;const n=(e.clientX-t.left)/t.width*100,u=n/100*w;Y(n),se.current.seekTo(u/w),O&&Me()},onMouseMove:v?void 0:e=>{if(!v&&ce.current){const r=ce.current.getBoundingClientRect(),t=e.clientX-r.left;if(t>=0&&t<=r.width){const e=t/r.width*100;ee(!0),te(t);const n=Pe(ke(e/100*w));ue(n||"00:00:00")}}},onMouseLeave:()=>{ee(!1)},onMouseDown:v?void 0:()=>{v||(oe.current=!0)},onMouseUp:v?void 0:()=>{if(!v&&(oe.current=!1,se.current)){const e=Q/100*w;se.current.seekTo(e/w),O&&Me()}},children:[e("div",{className:d.sliderTrack,style:null==b?void 0:b.sliderTrack}),e("div",{className:d.sliderProgress,style:{width:`${Q}%`,...null==b?void 0:b.sliderProgress}}),e("div",{className:d.sliderThumb,style:{left:`${Q}%`,...null==b?void 0:b.sliderThumb}}),Z&&!v&&e("div",{className:d.timeTooltip,style:{left:re,...null==b?void 0:b.timeTooltip},children:ne})]})]}),r("div",{className:d.timeRow,style:null==b?void 0:b.timeRow,children:[e("div",{className:d.buttonSpacer,style:null==b?void 0:b.buttonSpacer}),r("div",{className:d.timeText,style:null==b?void 0:b.timeText,children:[e("span",{children:V}),e("span",{children:"/"}),e("span",{children:J})]})]})]})})});v.displayName="SearchWaveform";export{v as default};
2
2
  //# sourceMappingURL=searchwaveform.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{createContext as n,useState as i,useContext as t}from"react";var u=n(void 0),o=function(n){var t=n.children,o=i(null),l=o[0],a=o[1],d=i(null),c=d[0],s=d[1],P=i(null),p=P[0],f=P[1];return e(u.Provider,r({value:{playTopicId:l,pendingPlayRequest:c,currentPlayingSpeakerId:p,triggerPlayForTopic:function(r){return a(r)},setPendingPlayRequest:s,setCurrentPlayingSpeakerId:f,resetTrigger:function(){return a(null)}}},{children:t}))},l=function(){var r=t(u);if(!r)throw new Error("useAudioPlayPause must be used within an AudioPlayProvider");return r};export{o as AudioPlayProvider,l as useAudioPlayPause};
1
+ import{jsx as e}from"react/jsx-runtime";import{createContext as r,useState as n,useContext as t}from"react";const i=r(void 0),l=({children:r})=>{const[t,l]=n(null),[o,u]=n(null),[a,d]=n(null);return e(i.Provider,{value:{playTopicId:t,pendingPlayRequest:o,currentPlayingSpeakerId:a,triggerPlayForTopic:e=>l(e),setPendingPlayRequest:u,setCurrentPlayingSpeakerId:d,resetTrigger:()=>l(null)},children:r})},o=()=>{const e=t(i);if(!e)throw new Error("useAudioPlayPause must be used within an AudioPlayProvider");return e};export{l as AudioPlayProvider,o as useAudioPlayPause};
2
2
  //# sourceMappingURL=autoplay.wavefrom.js.map
@@ -1,2 +1,2 @@
1
- var e=function(e){return e.sort(function(e,t){var n=e.segmentSelected?1:0;return(t.segmentSelected?1:0)-n})};export{e as sortTopicsByCheckedStatus};
1
+ const e=e=>e.sort((e,t)=>{const n=e.segmentSelected?1:0;return(t.segmentSelected?1:0)-n});export{e as sortTopicsByCheckedStatus};
2
2
  //# sourceMappingURL=word-segment-util.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as n,Fragment as i}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import e from"../../ai-reasoning/BigEnoughComponent.js";var r=function(r){var a,c,l,s=(null===(a=r.customIcons)||void 0===a?void 0:a.bigEnoughCitationIcon)||n(i,{});return n(o,{inLineCitation:!0,citationTitle:r.title,citationId:"big-enough-".concat(r.citation.citation_number),citationComponent:n(e,{customStyles:r.customStyles,big_enough_decision_factors:r.citation}),chevronDownComponent:s,chevronUpComponent:s,styles:{pillButton:t({margin:"0px",padding:"0px",fontSize:"14px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(c=r.customStyles)||void 0===c?void 0:c.pill),citationContent:t({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(l=r.customStyles)||void 0===l?void 0:l.content)}})};export{r as default};
1
+ import{jsx as t,Fragment as n}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import i from"../../ai-reasoning/BigEnoughComponent.js";const e=e=>{var r,c,a;const l=(null===(r=e.customIcons)||void 0===r?void 0:r.bigEnoughCitationIcon)||t(n,{});return t(o,{inLineCitation:!0,citationTitle:e.title,citationId:`big-enough-${e.citation.citation_number}`,citationComponent:t(i,{customStyles:e.customStyles,big_enough_decision_factors:e.citation}),chevronDownComponent:l,chevronUpComponent:l,styles:{pillButton:{margin:"0px",padding:"0px",fontSize:"14px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none",...null===(c=e.customStyles)||void 0===c?void 0:c.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(a=e.customStyles)||void 0===a?void 0:a.content}}})};export{e as default};
2
2
  //# sourceMappingURL=BigEnoughCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as t,__assign as n}from"tslib";import{jsx as i}from"react/jsx-runtime";import{ChatCitation as o,CitationRenderer as r}from"@e-llm-studio/citation";import e from"dayjs";import{stripHtmlAndMetadata as a}from"../../../utils/helpers.js";import c,{memo as l,useCallback as u,useRef as s,useMemo as m}from"react";var p=function(t){var n,i;return null!==(i=null!==(n=t.message)&&void 0!==n?n:t.content)&&void 0!==i?i:""},f=function(t){var n;return null!==(n=t.highlighted_text)&&void 0!==n?n:""},h=function(t,n){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i+=1){var o=t[i],r=n[i];if(o.role!==r.role)return!1;if(p(o)!==p(r))return!1;if(f(o)!==f(r))return!1;if((o.timeStamp?String(o.timeStamp):"")!==(r.timeStamp?String(r.timeStamp):""))return!1}return!0},v=function(t){var n;return null==t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(v).join(""):c.isValidElement(t)?v(null===(n=t.props)||void 0===n?void 0:n.children):""},d=l(function(c){var l,v,d=u(function(){var t;null===(t=c.onCitationClick)||void 0===t||t.call(c,c.isTable)},[c.onCitationClick,c.isTable]),C=c.chatCitationProps,g=null!=C?C:{},y=g.chatContainer,S=g.rootContainer,b=t(g,["chatContainer","rootContainer"]),k=s(null),x=s([]);k.current&&h(k.current,c.chatHistory)||(k.current=c.chatHistory,x.current=c.chatHistory.map(function(t){var i=p(t),o=f(t);return n(n({},t),{message:a(i),timeStamp:e(t.timeStamp),highlighted_text:a(o)})}));var T=x.current,w=m(function(){return n({relevanceScore:100},S)},[S]),H=m(function(){return n(n({summarizedTab:{chip:{show:!1,isActive:!1}},detailedTab:{chip:{isActive:!0}}},y),{chatData:T})},[y,T]),A=m(function(){var t,i;return{pillButton:n({fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none"},null===(t=c.customStyles)||void 0===t?void 0:t.pill),citationContent:n({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",color:"black"},null===(i=c.customStyles)||void 0===i?void 0:i.content)}},[c.customStyles]),I=m(function(){return i(o,n({rootContainer:w,chatContainer:H},b))},[w,H]);return i("span",n({onClickCapture:d},{children:i(r,{inLineCitation:!0,citationTitle:c.title,chevronUpComponent:null===(l=c.customIcon)||void 0===l?void 0:l.chevronUp,chevronDownComponent:null===(v=c.customIcon)||void 0===v?void 0:v.chevronDown,citationComponent:I,styles:A})}))},function(t,n){return t.isTable===n.isTable&&(t.onCitationClick===n.onCitationClick&&(t.customIcon===n.customIcon&&(t.customStyles===n.customStyles&&(t.chatCitationProps===n.chatCitationProps&&(!!h(t.chatHistory,n.chatHistory)&&v(t.title)===v(n.title))))))});export{d as default};
1
+ import{jsx as t}from"react/jsx-runtime";import{ChatCitation as i,CitationRenderer as n}from"@e-llm-studio/citation";import o from"dayjs";import{stripHtmlAndMetadata as e}from"../../../utils/helpers.js";import r,{memo as l,useCallback as a,useRef as c,useMemo as s}from"react";const u=t=>{var i,n;return null!==(n=null!==(i=t.message)&&void 0!==i?i:t.content)&&void 0!==n?n:""},m=t=>{var i;return null!==(i=t.highlighted_text)&&void 0!==i?i:""},p=(t,i)=>{if(t.length!==i.length)return!1;for(let n=0;n<t.length;n+=1){const o=t[n],e=i[n];if(o.role!==e.role)return!1;if(u(o)!==u(e))return!1;if(m(o)!==m(e))return!1;if((o.timeStamp?String(o.timeStamp):"")!==(e.timeStamp?String(e.timeStamp):""))return!1}return!0},h=t=>{var i;return null==t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(h).join(""):r.isValidElement(t)?h(null===(i=t.props)||void 0===i?void 0:i.children):""};var d=l(r=>{var l,h;const d=a(()=>{var t;null===(t=r.onCitationClick)||void 0===t||t.call(r,r.isTable)},[r.onCitationClick,r.isTable]),v=r.chatCitationProps,{chatContainer:f,rootContainer:C,...g}=null!=v?v:{},y=c(null),S=c([]);y.current&&p(y.current,r.chatHistory)||(y.current=r.chatHistory,S.current=r.chatHistory.map(t=>{const i=u(t),n=m(t);return{...t,message:e(i),timeStamp:o(t.timeStamp),highlighted_text:e(n)}}));const b=S.current,k=s(()=>({relevanceScore:100,...C}),[C]),x=s(()=>({summarizedTab:{chip:{show:!1,isActive:!1}},detailedTab:{chip:{isActive:!0}},...f,chatData:b}),[f,b]),T=s(()=>{var t,i;return{pillButton:{fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none",...null===(t=r.customStyles)||void 0===t?void 0:t.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",color:"black",...null===(i=r.customStyles)||void 0===i?void 0:i.content}}},[r.customStyles]),w=s(()=>t(i,{rootContainer:k,chatContainer:x,...g}),[k,x]);return t("span",{onClickCapture:d,children:t(n,{inLineCitation:!0,citationTitle:r.title,chevronUpComponent:null===(l=r.customIcon)||void 0===l?void 0:l.chevronUp,chevronDownComponent:null===(h=r.customIcon)||void 0===h?void 0:h.chevronDown,citationComponent:w,styles:T})})},(t,i)=>t.isTable===i.isTable&&(t.onCitationClick===i.onCitationClick&&(t.customIcon===i.customIcon&&(t.customStyles===i.customStyles&&(t.chatCitationProps===i.chatCitationProps&&(!!p(t.chatHistory,i.chatHistory)&&h(t.title)===h(i.title)))))));export{d as default};
2
2
  //# sourceMappingURL=ChatCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as C}from"tslib";import{jsx as l,jsxs as t}from"react/jsx-runtime";var i=function(i){return l("div",C({className:"mb-2"},{children:t("svg",C({},i,{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[l("path",{d:"M20 19C20 19.7957 19.6839 20.5587 19.1213 21.1213C18.5587 21.6839 17.7956 22 17 22H7C6.20435 22 5.44129 21.6839 4.87868 21.1213C4.31607 20.5587 4 19.7957 4 19V5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2V4C6.73478 4 6.48043 4.10536 6.29289 4.29289C6.10536 4.48043 6 4.73478 6 5V19C6 19.2652 6.10536 19.5196 6.29289 19.7071C6.48043 19.8946 6.73478 20 7 20H17C17.2652 20 17.5196 19.8946 17.7071 19.7071C17.8946 19.5196 18 19.2652 18 19H20Z",fill:"#5C75F4"}),l("path",{d:"M7 2V4L14.4726 4V2L7 2Z",fill:"#5C75F4"}),l("path",{d:"M18 19H20V13H18V19Z",fill:"#5C75F4"}),l("path",{d:"M15.2209 5.47302C14.2942 5.47302 13.543 6.22424 13.543 7.15091C13.5446 8.05479 14.262 8.79491 15.1653 8.82483L14.1023 11.066H15.2209L16.7369 7.87C16.8441 7.6439 16.8928 7.39945 16.8988 7.15091C16.8988 6.22424 16.1476 5.47302 15.2209 5.47302ZM19.6953 5.47302C18.7686 5.47302 18.0174 6.22424 18.0174 7.15091C18.019 8.05479 18.7363 8.79491 19.6397 8.82483L18.5767 11.066H19.6953L21.2112 7.87C21.3185 7.6439 21.3672 7.39945 21.3731 7.15091C21.3731 6.22424 20.6219 5.47302 19.6953 5.47302Z",fill:"#5C75F4"}),l("path",{d:"M8.7984 15.5988H14.8447C15.0103 15.5988 15.1692 15.6646 15.2863 15.7817C15.4034 15.8988 15.4692 16.0577 15.4692 16.2233C15.4692 16.389 15.4034 16.5478 15.2863 16.665C15.1692 16.7821 15.0103 16.8479 14.8447 16.8479H8.7984C8.63275 16.8479 8.47389 16.7821 8.35676 16.665C8.23963 16.5478 8.17383 16.389 8.17383 16.2233C8.17383 16.0577 8.23963 15.8988 8.35676 15.7817C8.47389 15.6646 8.63275 15.5988 8.7984 15.5988ZM8.7984 13.1005H14.8447C15.0103 13.1005 15.1692 13.1663 15.2863 13.2834C15.4034 13.4005 15.4692 13.5594 15.4692 13.725C15.4692 13.8907 15.4034 14.0496 15.2863 14.1667C15.1692 14.2838 15.0103 14.3496 14.8447 14.3496H8.7984C8.63275 14.3496 8.47389 14.2838 8.35676 14.1667C8.23963 14.0496 8.17383 13.8907 8.17383 13.725C8.17383 13.5594 8.23963 13.4005 8.35676 13.2834C8.47389 13.1663 8.63275 13.1005 8.7984 13.1005ZM8.7984 10.3672L11.962 10.3672C12.1276 10.3672 12.2865 10.433 12.4036 10.5501C12.5208 10.6673 12.5866 10.8261 12.5866 10.9918C12.5866 11.1574 12.5208 11.3163 12.4036 11.4334C12.2865 11.5505 12.1276 11.6163 11.962 11.6163H8.7984C8.63275 11.6163 8.47389 11.5505 8.35676 11.4334C8.23963 11.3163 8.17383 11.1574 8.17383 10.9918C8.17383 10.8261 8.23963 10.6673 8.35676 10.5501C8.47389 10.433 8.63275 10.3672 8.7984 10.3672Z",fill:"#5C75F4"})]}))}))};export{i as default};
1
+ import{jsx as C,jsxs as l}from"react/jsx-runtime";const t=t=>C("div",{className:"mb-2",children:l("svg",{...t,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("path",{d:"M20 19C20 19.7957 19.6839 20.5587 19.1213 21.1213C18.5587 21.6839 17.7956 22 17 22H7C6.20435 22 5.44129 21.6839 4.87868 21.1213C4.31607 20.5587 4 19.7957 4 19V5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2V4C6.73478 4 6.48043 4.10536 6.29289 4.29289C6.10536 4.48043 6 4.73478 6 5V19C6 19.2652 6.10536 19.5196 6.29289 19.7071C6.48043 19.8946 6.73478 20 7 20H17C17.2652 20 17.5196 19.8946 17.7071 19.7071C17.8946 19.5196 18 19.2652 18 19H20Z",fill:"#5C75F4"}),C("path",{d:"M7 2V4L14.4726 4V2L7 2Z",fill:"#5C75F4"}),C("path",{d:"M18 19H20V13H18V19Z",fill:"#5C75F4"}),C("path",{d:"M15.2209 5.47302C14.2942 5.47302 13.543 6.22424 13.543 7.15091C13.5446 8.05479 14.262 8.79491 15.1653 8.82483L14.1023 11.066H15.2209L16.7369 7.87C16.8441 7.6439 16.8928 7.39945 16.8988 7.15091C16.8988 6.22424 16.1476 5.47302 15.2209 5.47302ZM19.6953 5.47302C18.7686 5.47302 18.0174 6.22424 18.0174 7.15091C18.019 8.05479 18.7363 8.79491 19.6397 8.82483L18.5767 11.066H19.6953L21.2112 7.87C21.3185 7.6439 21.3672 7.39945 21.3731 7.15091C21.3731 6.22424 20.6219 5.47302 19.6953 5.47302Z",fill:"#5C75F4"}),C("path",{d:"M8.7984 15.5988H14.8447C15.0103 15.5988 15.1692 15.6646 15.2863 15.7817C15.4034 15.8988 15.4692 16.0577 15.4692 16.2233C15.4692 16.389 15.4034 16.5478 15.2863 16.665C15.1692 16.7821 15.0103 16.8479 14.8447 16.8479H8.7984C8.63275 16.8479 8.47389 16.7821 8.35676 16.665C8.23963 16.5478 8.17383 16.389 8.17383 16.2233C8.17383 16.0577 8.23963 15.8988 8.35676 15.7817C8.47389 15.6646 8.63275 15.5988 8.7984 15.5988ZM8.7984 13.1005H14.8447C15.0103 13.1005 15.1692 13.1663 15.2863 13.2834C15.4034 13.4005 15.4692 13.5594 15.4692 13.725C15.4692 13.8907 15.4034 14.0496 15.2863 14.1667C15.1692 14.2838 15.0103 14.3496 14.8447 14.3496H8.7984C8.63275 14.3496 8.47389 14.2838 8.35676 14.1667C8.23963 14.0496 8.17383 13.8907 8.17383 13.725C8.17383 13.5594 8.23963 13.4005 8.35676 13.2834C8.47389 13.1663 8.63275 13.1005 8.7984 13.1005ZM8.7984 10.3672L11.962 10.3672C12.1276 10.3672 12.2865 10.433 12.4036 10.5501C12.5208 10.6673 12.5866 10.8261 12.5866 10.9918C12.5866 11.1574 12.5208 11.3163 12.4036 11.4334C12.2865 11.5505 12.1276 11.6163 11.962 11.6163H8.7984C8.63275 11.6163 8.47389 11.5505 8.35676 11.4334C8.23963 11.3163 8.17383 11.1574 8.17383 10.9918C8.17383 10.8261 8.23963 10.6673 8.35676 10.5501C8.47389 10.433 8.63275 10.3672 8.7984 10.3672Z",fill:"#5C75F4"})]})});export{t as default};
2
2
  //# sourceMappingURL=DocumentCitationIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useState as r,useEffect as o}from"react";import l from"./FileCitationContent.module.css.js";import{useRequirementAI as n}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{renderCitationAIConfidenceDisplay as a}from"../../../shared/CitationAIConfidenceDisplay.js";var s=function(s){var d,c,u,p,m,v,f=n().apiCachingConfig,h=f.queryClient,y=f.useGetSignedUrlQuery,g=f.useGetSignedUrlMutation,U=["getSignedUrl",s.gsUtilPath],C=y(s.gsUtilPath,U).data,S=g(s.gsUtilPath),w=S.mutate,P=S.isPending,k=r(null),W=k[0],j=k[1],N=r(null),b=N[0],x=N[1];o(function(){import("@react-pdf-viewer/core").then(function(e){j({Worker:e.Worker,Viewer:e.Viewer})}).catch(function(){x("@react-pdf-viewer/core is not installed. Run: npm install @react-pdf-viewer/core")})},[]),o(function(){s.gsUtilPath?h.getQueryData(U)||P||w({gsUtilPath:s.gsUtilPath}):console.error("error","Error","Please provide valid gsUtilPath.")},[s.gsUtilPath,h,U,P]);return t("div",e({className:l.bookCitationContentContainer,style:null===(d=s.customStyles)||void 0===d?void 0:d.container},{children:[t("div",e({className:l.header,style:null===(c=s.customStyles)||void 0===c?void 0:c.header},{children:[i("h2",e({className:l.title,style:null===(u=s.customStyles)||void 0===u?void 0:u.title},{children:s.title})),a(s.relevanceScore,!0,null===(p=s.customStyles)||void 0===p?void 0:p.confidenceDisplay)]})),i("div",e({className:l.previewContainer,style:null===(m=s.customStyles)||void 0===m?void 0:m.previewContainer},{children:"book_citation_pdf"===s.fileType&&i("div",e({className:l.pdfWrapper,style:null===(v=s.customStyles)||void 0===v?void 0:v.pdfWrapper},{children:!P&&C&&function(t){var r;if(b)return i("div",e({style:e({color:"red",fontSize:"12px"},null===(r=s.customStyles)||void 0===r?void 0:r.errorText)},{children:b}));if(!W)return i("div",{children:"Loading PDF viewer..."});var o=W.Worker,l=W.Viewer;return i(o,e({workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js"},{children:i(l,{fileUrl:t})}))}(C)}))}))]}))};export{s as default};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as r,useEffect as i}from"react";import l from"./FileCitationContent.module.css.js";import{useRequirementAI as o}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{renderCitationAIConfidenceDisplay as n}from"../../../shared/CitationAIConfidenceDisplay.js";const s=s=>{var a,d,c,u,p,v;const{queryClient:m,useGetSignedUrlQuery:h,useGetSignedUrlMutation:f}=o().apiCachingConfig,y=["getSignedUrl",s.gsUtilPath],{data:g}=h(s.gsUtilPath,y),{mutate:U,isPending:C}=f(s.gsUtilPath),[S,w]=r(null),[P,k]=r(null);i(()=>{import("@react-pdf-viewer/core").then(e=>{w({Worker:e.Worker,Viewer:e.Viewer})}).catch(()=>{k("@react-pdf-viewer/core is not installed. Run: npm install @react-pdf-viewer/core")})},[]),i(()=>{if(!s.gsUtilPath)return void console.error("error","Error","Please provide valid gsUtilPath.");m.getQueryData(y)||C||U({gsUtilPath:s.gsUtilPath})},[s.gsUtilPath,m,y,C]);return e("div",{className:l.bookCitationContentContainer,style:null===(a=s.customStyles)||void 0===a?void 0:a.container,children:[e("div",{className:l.header,style:null===(d=s.customStyles)||void 0===d?void 0:d.header,children:[t("h2",{className:l.title,style:null===(c=s.customStyles)||void 0===c?void 0:c.title,children:s.title}),n(s.relevanceScore,!0,null===(u=s.customStyles)||void 0===u?void 0:u.confidenceDisplay)]}),t("div",{className:l.previewContainer,style:null===(p=s.customStyles)||void 0===p?void 0:p.previewContainer,children:"book_citation_pdf"===s.fileType&&t("div",{className:l.pdfWrapper,style:null===(v=s.customStyles)||void 0===v?void 0:v.pdfWrapper,children:!C&&g&&(e=>{var r;if(P)return t("div",{style:{color:"red",fontSize:"12px",...null===(r=s.customStyles)||void 0===r?void 0:r.errorText},children:P});if(!S)return t("div",{children:"Loading PDF viewer..."});const{Worker:i,Viewer:l}=S;return t(i,{workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js",children:t(l,{fileUrl:e})})})(g)})})]})};export{s as default};
2
2
  //# sourceMappingURL=FileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as o}from"react/jsx-runtime";import i from"../../../../CitationRenderer/CitationRenderer.js";import n from"./FileCitationContent.js";import e from"./DocumentCitationIcon.js";var a=function(a){var c,l,r,d,m,s,u,p,f=(null===(c=a.customIcons)||void 0===c?void 0:c.fileCitationIcon)||o(e,{});return o(i,{inLineCitation:!0,citationTitle:a.title,citationId:"file-citation-".concat(a.citation.citation_number),citationComponent:o(n,{title:"book_citation_doc"===a.citation.customMetadata.type||"book_citation_pdf"===a.citation.customMetadata.type?"".concat(null!==(r=null===(l=a.citation.customMetadata)||void 0===l?void 0:l.file_name)&&void 0!==r?r:""):"",gsUtilPath:"book_citation_doc"===a.citation.customMetadata.type||"book_citation_pdf"===a.citation.customMetadata.type?null===(d=a.citation.customMetadata)||void 0===d?void 0:d.gcs_upload_url:"",fileType:null===(m=a.citation.customMetadata)||void 0===m?void 0:m.type,relevanceScore:null===(s=a.citation.customMetadata)||void 0===s?void 0:s.relevance_score,customStyles:a.customStyles}),chevronDownComponent:f,chevronUpComponent:f,styles:{pillButton:t({fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none"},null===(u=a.customStyles)||void 0===u?void 0:u.pill),citationContent:t({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(p=a.customStyles)||void 0===p?void 0:p.content)}})};export{a as default};
1
+ import{jsx as t}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import i from"./FileCitationContent.js";import n from"./DocumentCitationIcon.js";const e=e=>{var a,c,l,r,d,s,m,u;const p=(null===(a=e.customIcons)||void 0===a?void 0:a.fileCitationIcon)||t(n,{});return t(o,{inLineCitation:!0,citationTitle:e.title,citationId:`file-citation-${e.citation.citation_number}`,citationComponent:t(i,{title:"book_citation_doc"===e.citation.customMetadata.type||"book_citation_pdf"===e.citation.customMetadata.type?`${null!==(l=null===(c=e.citation.customMetadata)||void 0===c?void 0:c.file_name)&&void 0!==l?l:""}`:"",gsUtilPath:"book_citation_doc"===e.citation.customMetadata.type||"book_citation_pdf"===e.citation.customMetadata.type?null===(r=e.citation.customMetadata)||void 0===r?void 0:r.gcs_upload_url:"",fileType:null===(d=e.citation.customMetadata)||void 0===d?void 0:d.type,relevanceScore:null===(s=e.citation.customMetadata)||void 0===s?void 0:s.relevance_score,customStyles:e.customStyles}),chevronDownComponent:p,chevronUpComponent:p,styles:{pillButton:{fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none",...null===(m=e.customStyles)||void 0===m?void 0:m.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(u=e.customStyles)||void 0===u?void 0:u.content}}})};export{e as default};
2
2
  //# sourceMappingURL=FileCitationRender.js.map
@@ -0,0 +1,2 @@
1
+ import{jsx as t}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import i from"../web-citation/WebCitationIcon.js";import o from"./GptWebcitationPanel.js";const e=e=>{var r,c,a;const l=(null===(r=e.customIcons)||void 0===r?void 0:r.webCitationIcon)||t(i,{});return t(n,{inLineCitation:!0,citationTitle:e.title,citationId:`gpt-web-citation-${e.citation.citation_number}`,citationComponent:t(o,{citation:e.citation,content:e.content}),chevronDownComponent:l,chevronUpComponent:l,styles:{pillButton:{margin:"0px",padding:"0px",fontSize:"14px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none",...null===(c=e.customStyles)||void 0===c?void 0:c.pill},citationContent:{width:"100%",background:"transparent",color:"black",minHeight:"10px",height:"fit-content",...null===(a=e.customStyles)||void 0===a?void 0:a.content}}})};export{e as default};
2
+ //# sourceMappingURL=GptWebCitationRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GptWebCitationRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{CitationType as i,GptWebCitation as o}from"@e-llm-studio/citation";import{useState as n,useMemo as e,useEffect as a}from"react";import{ChevronDown as l,ChevronUp as r,Maximize2 as c,X as u,ExternalLink as d}from"lucide-react";import{useRequirementAI as s}from"../../RequirementAIWrapper/RequirementAIWrapper.js";const p={MaximizeIcon:c,ExternalLinkIcon:d},v=({citation:d,content:v})=>{var m,C;const[b,g]=n(),h=null===(m=null==d?void 0:d.customMetadata)||void 0===m?void 0:m.value,w=(null==h?void 0:h.paraphrase)||(null==h?void 0:h.label)||"Web Citation";const f=e(()=>`Source: Web Citation > ${w}`,[w]),x=e(()=>function(t){if(t)try{const i=new URL(t).hostname.replace(/^www\./i,""),o=i.split(".")[0];return o?o.charAt(0).toUpperCase()+o.slice(1):i}catch(t){return}}(null==h?void 0:h.citationUrl),[null==h?void 0:h.citationUrl]),[W,I]=n(!0),[y,T]=n("pending"),U=W,{getGptWebCitation:G,gptWebCitationPartialPayload:M}=s().apiCachingConfig,{displayMode:P}=(null===(C=s().citationConfig)||void 0===C?void 0:C.gptWeb)||{},E={item:{text:"",dataSource:(null==h?void 0:h.text)||"",paraphrase:(null==h?void 0:h.paraphrase)||""},headerTitle:(null==h?void 0:h.label)||"",index:0,iconsConfig:{ChevronDownIcon:l,ChevronUpIcon:r,MaximizeIcon:c,CloseIcon:u}},z=async()=>{var t;try{I(!0);const i={...M,citationId:null==h?void 0:h.citation_uuid,citationUrl:null==h?void 0:h.citationUrl,content:v||(null==h?void 0:h.text),citationType:null==h?void 0:h.citationType,citatioNumber:Number(null===(t=null==d?void 0:d.customMetadata)||void 0===t?void 0:t.citation_number)};console.log("Generating GPT-Web Citation with payload:",i);const o=await(null==G?void 0:G(i));g(null==o?void 0:o.data),T("success")}catch(t){T("error"),console.error("Error in GPT-Web Citation",t)}};a(()=>{P!==i.GPT&&(P!==i.GPT_WEB||U)&&z()},[P,U]);return t(o,{gptCitation:E,defaultCitationUrl:(null==h?void 0:h.citationUrl)||"",citationType:P||"web",webCitationData:b,sourceLabel:f,learnedFrom:x,showWebCitation:U,webCitationStatus:y,onGenerateWebCitation:z,onToggleCitationView:()=>{W?I(!1):z()},showExpandImageButton:!0,showGptMaximizeButton:!0,iconsConfig:p,isFixedHeight:!1})};export{v as default};
2
+ //# sourceMappingURL=GptWebcitationPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GptWebcitationPanel.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useEffect as l}from"react";import{CircularProgress as r}from"@mui/material";import s from"./ImageCitationContent.module.css.js";import{renderCitationAIConfidenceDisplay as a}from"../../../shared/CitationAIConfidenceDisplay.js";import{useRequirementAI as o}from"../../RequirementAIWrapper/RequirementAIWrapper.js";var n=function(n){var d,c,m,u,g,p,h,v=o().apiCachingConfig,y=v.queryClient,f=v.useGetSignedUrlQuery,U=v.useGetSignedUrlMutation,S=["getSignedUrl",n.gsUtilPath],C=f(n.gsUtilPath,S).data,P=U(n.gsUtilPath),I=P.mutate,N=P.isPending;return l(function(){n.gsUtilPath?y.getQueryData(S)||I({gsUtilPath:n.gsUtilPath}):console.error("Error -> ImageCitationContent: gsUtilPath is required to fetch signed URL")},[n.gsUtilPath]),t("div",e({className:s.container,style:null===(d=n.customStyles)||void 0===d?void 0:d.container},{children:[t("div",e({className:s.header,style:null===(c=n.customStyles)||void 0===c?void 0:c.header},{children:[i("h2",e({className:s.title,style:null===(m=n.customStyles)||void 0===m?void 0:m.title},{children:"Visual Reference"})),a(n.relevanceScore,!0,null===(u=n.customStyles)||void 0===u?void 0:u.confidenceDisplay)]})),N?t("div",e({className:s.loadingWrapper,style:null===(g=n.customStyles)||void 0===g?void 0:g.loadingWrapper},{children:[i(r,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),i("span",e({className:s.loadingText,style:null===(p=n.customStyles)||void 0===p?void 0:p.loadingText},{children:"Loading Image..."}))]})):C&&i("img",{className:s.image,src:C,alt:"images",style:null===(h=n.customStyles)||void 0===h?void 0:h.image})]}))};export{n as default};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useEffect as i}from"react";import{CircularProgress as s}from"@mui/material";import l from"./ImageCitationContent.module.css.js";import{renderCitationAIConfidenceDisplay as r}from"../../../shared/CitationAIConfidenceDisplay.js";import{useRequirementAI as a}from"../../RequirementAIWrapper/RequirementAIWrapper.js";const o=o=>{var n,d,c,m,u,g,h;const{queryClient:p,useGetSignedUrlQuery:v,useGetSignedUrlMutation:y}=a().apiCachingConfig,f=["getSignedUrl",o.gsUtilPath],{data:U}=v(o.gsUtilPath,f),{mutate:S,isPending:C}=y(o.gsUtilPath);return i(()=>{if(!o.gsUtilPath)return void console.error("Error -> ImageCitationContent: gsUtilPath is required to fetch signed URL");p.getQueryData(f)||S({gsUtilPath:o.gsUtilPath})},[o.gsUtilPath]),e("div",{className:l.container,style:null===(n=o.customStyles)||void 0===n?void 0:n.container,children:[e("div",{className:l.header,style:null===(d=o.customStyles)||void 0===d?void 0:d.header,children:[t("h2",{className:l.title,style:null===(c=o.customStyles)||void 0===c?void 0:c.title,children:"Visual Reference"}),r(o.relevanceScore,!0,null===(m=o.customStyles)||void 0===m?void 0:m.confidenceDisplay)]}),C?e("div",{className:l.loadingWrapper,style:null===(u=o.customStyles)||void 0===u?void 0:u.loadingWrapper,children:[t(s,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),t("span",{className:l.loadingText,style:null===(g=o.customStyles)||void 0===g?void 0:g.loadingText,children:"Loading Image..."})]}):U&&t("img",{className:l.image,src:U,alt:"images",style:null===(h=o.customStyles)||void 0===h?void 0:h.image})]})};export{o as default};
2
2
  //# sourceMappingURL=ImageCitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as C}from"tslib";import{jsx as t}from"react/jsx-runtime";var i=function(i){return t("div",C({className:"mb-2"},{children:t("svg",C({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M18 15.0001V19.0001C18 19.5501 17.55 20.0001 17 20.0001H5C4.45 20.0001 4 19.5501 4 19.0001V7.00015C4 6.45015 4.45 6.00015 5 6.00015H8.02C8.57 6.00015 9.02 5.55015 9.02 5.00015C9.02 4.45015 8.57 4.00015 8.02 4.00015H4C2.9 4.00015 2 4.90015 2 6.00015V20.0001C2 21.1001 2.9 22.0001 4 22.0001H18C19.1 22.0001 20 21.1001 20 20.0001V15.0001C20 14.4501 19.55 14.0001 19 14.0001C18.45 14.0001 18 14.4501 18 15.0001ZM15.5 18.0001H6.52C6.1 18.0001 5.87 17.5201 6.13 17.1901L7.87 14.9601C7.9161 14.9011 7.97486 14.8532 8.04195 14.82C8.10903 14.7867 8.18273 14.769 8.2576 14.768C8.33247 14.7671 8.4066 14.7829 8.47452 14.8144C8.54243 14.846 8.6024 14.8923 8.65 14.9501L10.21 16.8301L12.56 13.8101C12.76 13.5501 13.16 13.5501 13.35 13.8201L15.9 17.2101C16.15 17.5301 15.91 18.0001 15.5 18.0001ZM19.3 8.89015C19.78 8.12015 20.05 7.22015 19.99 6.23015C19.86 4.08015 18.15 2.26015 16.02 2.03015C15.3894 1.95679 14.7504 2.01768 14.145 2.20883C13.5397 2.39999 12.9816 2.71707 12.5075 3.13925C12.0333 3.56142 11.6539 4.07914 11.3941 4.65839C11.1343 5.23764 11 5.8653 11 6.50015C11 8.99015 13.01 11.0001 15.49 11.0001C16.37 11.0001 17.19 10.7401 17.88 10.3001L20.29 12.7101C20.68 13.1001 21.32 13.1001 21.71 12.7101C22.1 12.3201 22.1 11.6801 21.71 11.2901L19.3 8.89015ZM15.5 9.00015C14.837 9.00015 14.2011 8.73675 13.7322 8.26791C13.2634 7.79907 13 7.16319 13 6.50015C13 5.8371 13.2634 5.20122 13.7322 4.73238C14.2011 4.26354 14.837 4.00015 15.5 4.00015C16.163 4.00015 16.7989 4.26354 17.2678 4.73238C17.7366 5.20122 18 5.8371 18 6.50015C18 7.16319 17.7366 7.79907 17.2678 8.26791C16.7989 8.73675 16.163 9.00015 15.5 9.00015Z",fill:"#5C75F4"})}))}))};export{i as default};
1
+ import{jsx as C}from"react/jsx-runtime";const t=t=>C("div",{className:"mb-2",children:C("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C("path",{d:"M18 15.0001V19.0001C18 19.5501 17.55 20.0001 17 20.0001H5C4.45 20.0001 4 19.5501 4 19.0001V7.00015C4 6.45015 4.45 6.00015 5 6.00015H8.02C8.57 6.00015 9.02 5.55015 9.02 5.00015C9.02 4.45015 8.57 4.00015 8.02 4.00015H4C2.9 4.00015 2 4.90015 2 6.00015V20.0001C2 21.1001 2.9 22.0001 4 22.0001H18C19.1 22.0001 20 21.1001 20 20.0001V15.0001C20 14.4501 19.55 14.0001 19 14.0001C18.45 14.0001 18 14.4501 18 15.0001ZM15.5 18.0001H6.52C6.1 18.0001 5.87 17.5201 6.13 17.1901L7.87 14.9601C7.9161 14.9011 7.97486 14.8532 8.04195 14.82C8.10903 14.7867 8.18273 14.769 8.2576 14.768C8.33247 14.7671 8.4066 14.7829 8.47452 14.8144C8.54243 14.846 8.6024 14.8923 8.65 14.9501L10.21 16.8301L12.56 13.8101C12.76 13.5501 13.16 13.5501 13.35 13.8201L15.9 17.2101C16.15 17.5301 15.91 18.0001 15.5 18.0001ZM19.3 8.89015C19.78 8.12015 20.05 7.22015 19.99 6.23015C19.86 4.08015 18.15 2.26015 16.02 2.03015C15.3894 1.95679 14.7504 2.01768 14.145 2.20883C13.5397 2.39999 12.9816 2.71707 12.5075 3.13925C12.0333 3.56142 11.6539 4.07914 11.3941 4.65839C11.1343 5.23764 11 5.8653 11 6.50015C11 8.99015 13.01 11.0001 15.49 11.0001C16.37 11.0001 17.19 10.7401 17.88 10.3001L20.29 12.7101C20.68 13.1001 21.32 13.1001 21.71 12.7101C22.1 12.3201 22.1 11.6801 21.71 11.2901L19.3 8.89015ZM15.5 9.00015C14.837 9.00015 14.2011 8.73675 13.7322 8.26791C13.2634 7.79907 13 7.16319 13 6.50015C13 5.8371 13.2634 5.20122 13.7322 4.73238C14.2011 4.26354 14.837 4.00015 15.5 4.00015C16.163 4.00015 16.7989 4.26354 17.2678 4.73238C17.7366 5.20122 18 5.8371 18 6.50015C18 7.16319 17.7366 7.79907 17.2678 8.26791C16.7989 8.73675 16.163 9.00015 15.5 9.00015Z",fill:"#5C75F4"})})});export{t as default};
2
2
  //# sourceMappingURL=ImageCitationIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as i}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import n from"./ImageCitationContent.js";import e from"./ImageCitationIcon.js";var a=function(a){var r,c,l,m,s=(null===(r=a.customIcons)||void 0===r?void 0:r.imageCitationIcon)||i(e,{});return i(o,{inLineCitation:!0,citationTitle:a.title,citationId:"image-citation-".concat(a.citation.citation_number),citationComponent:i(n,{gsUtilPath:"image_citation"===a.citation.customMetadata.type?a.citation.customMetadata.gs_util_url:"",relevanceScore:null===(c=a.citation.customMetadata)||void 0===c?void 0:c.relevance_score,customStyles:a.customStyles}),chevronDownComponent:s,chevronUpComponent:s,styles:{pillButton:t({margin:"0px",padding:"0px",fontSize:"14px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(l=a.customStyles)||void 0===l?void 0:l.pill),citationContent:t({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(m=a.customStyles)||void 0===m?void 0:m.content)}})};export{a as default};
1
+ import{jsx as t}from"react/jsx-runtime";import i from"../../../../CitationRenderer/CitationRenderer.js";import o from"./ImageCitationContent.js";import n from"./ImageCitationIcon.js";const e=e=>{var a,c,r,l;const m=(null===(a=e.customIcons)||void 0===a?void 0:a.imageCitationIcon)||t(n,{});return t(i,{inLineCitation:!0,citationTitle:e.title,citationId:`image-citation-${e.citation.citation_number}`,citationComponent:t(o,{gsUtilPath:"image_citation"===e.citation.customMetadata.type?e.citation.customMetadata.gs_util_url:"",relevanceScore:null===(c=e.citation.customMetadata)||void 0===c?void 0:c.relevance_score,customStyles:e.customStyles}),chevronDownComponent:m,chevronUpComponent:m,styles:{pillButton:{margin:"0px",padding:"0px",fontSize:"14px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none",...null===(r=e.customStyles)||void 0===r?void 0:r.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(l=e.customStyles)||void 0===l?void 0:l.content}}})};export{e as default};
2
2
  //# sourceMappingURL=ImageCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as a}from"react/jsx-runtime";import{NotebookIcon as l,MessageCircleIcon as i}from"lucide-react";import s,{useRef as o}from"react";import{AppModIcon as r}from"../appmod-citation/icons/AppmodIcon.js";import{DEFAULT_HIGHLIGHT_THEME as c}from"../appmod-citation/types.js";import d from"./RCACitationContent.module.css.js";import{renderAIConfidenceDisplay as u}from"../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js";var m=function(l,i,o){if(!i||!l.includes(i))return l;var r=l.split(i),d={backgroundColor:c.background,color:c.text,padding:"2px 3px",borderRadius:"2px"};return n(a,{children:r.map(function(a,l){return t(s.Fragment,{children:[a,l<r.length-1&&n("span",e({style:e(e({},d),o)},{children:i}))]},l)})})},v=function(a){var i=a.extracts,s=a.customStyles,o=a.customIcon;return i&&0!==i.length?t("div",e({className:d.extractPanel,style:null==s?void 0:s.extractPanel},{children:[t("div",e({className:d.extractPanelHeader,style:null==s?void 0:s.extractPanelHeader},{children:[n("span",e({style:null==s?void 0:s.extractPanelHeaderIcon},{children:o||n(l,{className:d.extractPanelHeaderIcon})})),n("span",e({className:d.extractPanelHeaderTitle,style:null==s?void 0:s.extractPanelHeaderTitle},{children:"Extracted from Requirement Finalization"}))]})),n("div",e({className:d.extractList,style:null==s?void 0:s.extractList},{children:i.map(function(a,l){return t("div",e({className:d.extractItem,style:null==s?void 0:s.extractItem},{children:[n("p",e({className:d.extractSubheading,style:null==s?void 0:s.extractSubheading},{children:a.subheading})),n("p",e({className:d.extractContent,style:null==s?void 0:s.extractContent},{children:a.content}))]}),l)})}))]})):null},h=function(a){var s,c=a.citation,h=a.customStyles,p=a.customIcons,x=a.isLoading,y=void 0!==x&&x,g=o(null),N=c.customMetadata.assistant_answer||"",f=c.customMetadata.assistant_question||"",I=c.customMetadata.assistant_answer_highlight_content,P=c.customMetadata.relevance_score,C=c.customMetadata.requirement_plan_extract||[],b=(null==p?void 0:p.rcaNotebookIcon)||n(l,{className:d.headerIcon}),q=(null==p?void 0:p.rcaMessageIcon)||n(i,{className:d.conversationPanelHeaderIcon}),H=(null==p?void 0:p.rcaQuestionIcon)||n(r,{className:d.questionIcon}),T=(null==h?void 0:h.highlight)?{backgroundColor:h.highlight.background,color:h.highlight.text}:void 0;return t("div",e({ref:g,className:d.container,style:null==h?void 0:h.container},{children:[t("div",e({className:d.header,style:null==h?void 0:h.header},{children:[t("div",e({className:d.headerLeft,style:null==h?void 0:h.headerLeft},{children:[n("span",e({style:null==h?void 0:h.headerIcon},{children:b})),n("span",e({className:d.headerTitle,style:null==h?void 0:h.headerTitle},{children:"Requirement Clarification"}))]})),u(P,null==h?void 0:h.confidenceDisplay)]})),t("div",e({className:d.rcaContainer,style:null==h?void 0:h.rcaContainer},{children:[t("div",e({className:d.conversationPanel,style:null==h?void 0:h.conversationPanel},{children:[t("div",e({className:d.conversationPanelHeader,style:null==h?void 0:h.conversationPanelHeader},{children:[n("span",e({style:null==h?void 0:h.conversationPanelHeaderIcon},{children:q})),n("span",e({className:d.conversationPanelHeaderTitle,style:null==h?void 0:h.conversationPanelHeaderTitle},{children:"User Conversation"}))]})),t("div",e({className:d.questionRow,style:null==h?void 0:h.questionRow},{children:[n("span",e({style:null==h?void 0:h.questionIcon},{children:H})),n("span",e({className:d.questionText,style:null==h?void 0:h.questionText},{children:f||"Ask question to get response"}))]})),n("p",e({className:d.answerLabel,style:null==h?void 0:h.answerLabel},{children:"Me"})),n("div",e({className:d.answerBox,style:null==h?void 0:h.answerBox},{children:y?n("span",e({className:d.loadingText,style:null===(s=null==h?void 0:h.loading)||void 0===s?void 0:s.text},{children:"Generating..."})):m(N,I,T)}))]})),C.length>0&&n(v,{extracts:C,customStyles:h,customIcon:b})]}))]}))};export{h as default};
1
+ import{jsx as e,jsxs as n,Fragment as a}from"react/jsx-runtime";import{NotebookIcon as t,MessageCircleIcon as l}from"lucide-react";import s,{useRef as i}from"react";import{AppModIcon as o}from"../appmod-citation/icons/AppmodIcon.js";import{DEFAULT_HIGHLIGHT_THEME as r}from"../appmod-citation/types.js";import c from"./RCACitationContent.module.css.js";import{renderAIConfidenceDisplay as d}from"../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js";const u=(t,l,i)=>{if(!l||!t.includes(l))return t;const o=t.split(l),c={backgroundColor:r.background,color:r.text,padding:"2px 3px",borderRadius:"2px"};return e(a,{children:o.map((a,t)=>n(s.Fragment,{children:[a,t<o.length-1&&e("span",{style:{...c,...i},children:l})]},t))})},m=({extracts:a,customStyles:l,customIcon:s})=>a&&0!==a.length?n("div",{className:c.extractPanel,style:null==l?void 0:l.extractPanel,children:[n("div",{className:c.extractPanelHeader,style:null==l?void 0:l.extractPanelHeader,children:[e("span",{style:null==l?void 0:l.extractPanelHeaderIcon,children:s||e(t,{className:c.extractPanelHeaderIcon})}),e("span",{className:c.extractPanelHeaderTitle,style:null==l?void 0:l.extractPanelHeaderTitle,children:"Extracted from Requirement Finalization"})]}),e("div",{className:c.extractList,style:null==l?void 0:l.extractList,children:a.map((a,t)=>n("div",{className:c.extractItem,style:null==l?void 0:l.extractItem,children:[e("p",{className:c.extractSubheading,style:null==l?void 0:l.extractSubheading,children:a.subheading}),e("p",{className:c.extractContent,style:null==l?void 0:l.extractContent,children:a.content})]},t))})]}):null,v=({citation:a,customStyles:s,customIcons:r,isLoading:v=!1})=>{var h;const p=i(null),x=a.customMetadata.assistant_answer||"",y=a.customMetadata.assistant_question||"",g=a.customMetadata.assistant_answer_highlight_content,N=a.customMetadata.relevance_score,I=a.customMetadata.requirement_plan_extract||[],f=(null==r?void 0:r.rcaNotebookIcon)||e(t,{className:c.headerIcon}),P=(null==r?void 0:r.rcaMessageIcon)||e(l,{className:c.conversationPanelHeaderIcon}),C=(null==r?void 0:r.rcaQuestionIcon)||e(o,{className:c.questionIcon}),q=(null==s?void 0:s.highlight)?{backgroundColor:s.highlight.background,color:s.highlight.text}:void 0;return n("div",{ref:p,className:c.container,style:null==s?void 0:s.container,children:[n("div",{className:c.header,style:null==s?void 0:s.header,children:[n("div",{className:c.headerLeft,style:null==s?void 0:s.headerLeft,children:[e("span",{style:null==s?void 0:s.headerIcon,children:f}),e("span",{className:c.headerTitle,style:null==s?void 0:s.headerTitle,children:"Requirement Clarification"})]}),d(N,null==s?void 0:s.confidenceDisplay)]}),n("div",{className:c.rcaContainer,style:null==s?void 0:s.rcaContainer,children:[n("div",{className:c.conversationPanel,style:null==s?void 0:s.conversationPanel,children:[n("div",{className:c.conversationPanelHeader,style:null==s?void 0:s.conversationPanelHeader,children:[e("span",{style:null==s?void 0:s.conversationPanelHeaderIcon,children:P}),e("span",{className:c.conversationPanelHeaderTitle,style:null==s?void 0:s.conversationPanelHeaderTitle,children:"User Conversation"})]}),n("div",{className:c.questionRow,style:null==s?void 0:s.questionRow,children:[e("span",{style:null==s?void 0:s.questionIcon,children:C}),e("span",{className:c.questionText,style:null==s?void 0:s.questionText,children:y||"Ask question to get response"})]}),e("p",{className:c.answerLabel,style:null==s?void 0:s.answerLabel,children:"Me"}),e("div",{className:c.answerBox,style:null==s?void 0:s.answerBox,children:v?e("span",{className:c.loadingText,style:null===(h=null==s?void 0:s.loading)||void 0===h?void 0:h.text,children:"Generating..."}):u(x,g,q)})]}),I.length>0&&e(m,{extracts:I,customStyles:s,customIcon:f})]})]})};export{v as default};
2
2
  //# sourceMappingURL=RCACitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as n,Fragment as i}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import{ChatBubbleIcon as e}from"../appmod-citation/icons/ChatBubbleIcon.js";import a from"./RCACitationContent.js";var r=function(r){var c=r.title,l=r.citation,s=r.customStyles,p=r.customIcons,m=r.isLoading,d=void 0!==m&&m,u=(null==p?void 0:p.rcaCitationIcon)||n(e,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return n(o,{inLineCitation:!0,citationTitle:c+"⁠",citationIcon:n(i,{}),citationId:"rca-".concat(l.citation_number),citationComponent:n(a,{citation:l,customStyles:s,customIcons:p,isLoading:d}),chevronDownComponent:u,chevronUpComponent:u,styles:{pillButton:t({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
1
+ import{jsx as t,Fragment as n}from"react/jsx-runtime";import i from"../../../../CitationRenderer/CitationRenderer.js";import{ChatBubbleIcon as o}from"../appmod-citation/icons/ChatBubbleIcon.js";import e from"./RCACitationContent.js";const a=({title:a,citation:r,customStyles:c,customIcons:l,isLoading:s=!1})=>{const p=(null==l?void 0:l.rcaCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(i,{inLineCitation:!0,citationTitle:a+"⁠",citationIcon:t(n,{}),citationId:`rca-${r.citation_number}`,citationComponent:t(e,{citation:r,customStyles:c,customIcons:l,isLoading:s}),chevronDownComponent:p,chevronUpComponent:p,styles:{pillButton:{fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none",...null==c?void 0:c.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{a as default};
2
2
  //# sourceMappingURL=RCACitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as t,__generator as i}from"tslib";import{jsx as n}from"react/jsx-runtime";import{useState as r,useEffect as s}from"react";import a from"@exuanbo/file-icons-js";import{File as o,FileText as c}from"lucide-react";import{cn as l}from"../../../../UserStoryImport/lib/cn.js";var m=!1;function f(f){var u=this,d=f.name,h=f.size,p=void 0===h?"12px":h,x=f.className,v=r(x||""),g=v[0],y=v[1];return s(function(){t(u,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,a.getClass(d,{array:!0})];case 1:return e=t.sent(),y(e.join(" ")),[2]}})})},[d]),s(function(){if(!m){var e=document.createElement("style");e.innerHTML="\n .custom-file-icon::before {\n font-size: inherit !important;\n }\n ",document.head.appendChild(e),m=!0}},[]),d.includes(".txt")?n(o,{className:l("w-3 h-3 mr-2 text-muted",x)}):d.includes(".pdf")?n(c,{className:l("w-3 h-3 mr-2 text-destructive",x)}):n("span",e({className:"mt-0",style:{width:p,height:p,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top"}},{children:g?n("i",{className:l("custom-file-icon",g,x),style:{fontSize:p,height:p,display:"inline-flex",alignItems:"center",lineHeight:1}}):n(o,{className:l("text-muted",x),width:p,height:p})}))}export{f as default};
1
+ import{jsx as e}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import n from"@exuanbo/file-icons-js";import{File as s,FileText as a}from"lucide-react";import{cn as r}from"../../../../UserStoryImport/lib/cn.js";let l=!1;function c({name:c,size:m="12px",className:o}){const[d,f]=t(o||"");return i(()=>{(async()=>{const e=await n.getClass(c,{array:!0});f(e.join(" "))})()},[c]),i(()=>{if(!l){const e=document.createElement("style");e.innerHTML="\n .custom-file-icon::before {\n font-size: inherit !important;\n }\n ",document.head.appendChild(e),l=!0}},[]),c.includes(".txt")?e(s,{className:r("w-3 h-3 mr-2 text-muted",o)}):c.includes(".pdf")?e(a,{className:r("w-3 h-3 mr-2 text-destructive",o)}):e("span",{className:"mt-0",style:{width:m,height:m,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top"},children:d?e("i",{className:r("custom-file-icon",d,o),style:{fontSize:m,height:m,display:"inline-flex",alignItems:"center",lineHeight:1}}):e(s,{className:r("text-muted",o),width:m,height:m})})}export{c as default};
2
2
  //# sourceMappingURL=CustomFileIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useMemo as r,useState as l,useRef as o,useCallback as a,useEffect as c}from"react";import u from"react-dom";import s from"@monaco-editor/react";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as m,Maximize2 as f}from"lucide-react";import v from"./CustomFileIcon.js";var g=function(e){return"number"==typeof e&&Number.isFinite(e)},p=function(e,n){return g(e)&&g(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},y=function(e,n,t,i){var r,l=e[0],o=e[1];if(!Number.isFinite(l)||!Number.isFinite(o))return null;if(o<l&&(l=(r=[o,l])[0],o=r[1]),g(t)&&g(i)){var a=Math.max(l,t),c=Math.min(o,i);if(a>c)return null;var u=a-t+1,s=c-t+1,d=Math.max(1,u),h=Math.min(n,s);return d>h?null:[d,h]}var m=Math.max(1,l),f=Math.min(n,o);return m>f?null:[m,f]},b=function(e,n,t,i){if(0===e.length)return!1;var r=p(t,i);return!!r&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(r.start>n||r.end>n||Math.abs(r.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<r.start||n>r.end})))},N={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},x={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},C={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},F=function(F){var M=F.citation,k=F.customStyles,w=F.customColors,S=F.customIcons,L=F.editorConfig,O=F.fileCallback,B=r(function(){return e(e({},N),w)},[w]),j=r(function(){return e(e({},x),L)},[L]),P=l(!1),T=P[0],H=P[1],z=o(null),R=o(!1),W=M.customMetadata.content||"",I=M.customMetadata.highlighted_text,E=M.customMetadata.start_line,_=M.customMetadata.end_line,D=g(E)?E+1:E,q=r(function(){if(!I)return{};try{var e=I.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[I]),G=r(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(W));){var i=e[1]||"javascript",r=e[2].trim(),l=e[3].trim();r&&l&&n.push({filePath:r,code:l,language:i})}return n},[W]),A=a(function(e){return(q[e]||[]).map(function(e){var n=e.split("-").map(function(e){return Number(e.trim())}),t=n[0],i=n.length>1?n[1]:t;return Number.isFinite(t)&&Number.isFinite(i)?[t,i]:null}).filter(function(e){return null!==e})},[q]),J=r(function(){for(var e=function(e){var n=G[e],t=n.code.split("\n").length,i=A(n.filePath),r=b(i,t,D,_);if(i.map(function(e){return y(e,t,r?D:void 0,r?_:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<G.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[G,A,D,_]),V=J>=0,$=a(function(e,n){var t=A(e),i=b(t,n,D,_);return t.map(function(e){return y(e,n,i?D:void 0,i?_:void 0)}).filter(function(e){return null!==e})},[A,D,_]),K=a(function(e,n){var t=A(e);if(b(t,n,D,_)){var i=p(D,_);return i?t.map(function(e){var n=e[0],t=e[1],r=n<=t?[n,t]:[t,n],l=Math.max(r[0],i.start),o=Math.min(r[1],i.end);return l>o?null:[l,o]}).filter(function(e){return null!==e}):[]}return $(e,n)},[A,$,D,_]);c(function(){if(V&&!R.current&&G.length>0&&(null==O?void 0:O.autoOpenFirstHighlighted)&&(null==O?void 0:O.onOpenFile)){var e=G[J],n=K(e.filePath,e.code.split("\n").length);R.current=!0;var t=setTimeout(function(){O.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[V,J,G,$,O]),c(function(){R.current=!1},[W]),c(function(){if(!(J<0)){var e=setTimeout(function(){var e;null===(e=z.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[J,I]);var Q=a(function(e,n){if(null==O?void 0:O.onOpenFile){var t=K(e,n);O.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[K,O]),U=a(function(){(null==O?void 0:O.onExpandClick)?O.onExpandClick({blocks:G,highlightMap:q}):H(!0)},[O,G,q]),X=!!(null==O?void 0:O.onOpenFile),Y=(null==S?void 0:S.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),Z=a(function(e,n,t,i){var r=[];if(t.forEach(function(e){var t=e[0],i=e[1];r.push({range:new n.Range(t,1,i,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),r.length>0)try{e.createDecorationsCollection(r)}catch(e){console.warn("Failed to create decorations:",e)}var l=t[0];l&&requestAnimationFrame(function(){e.revealLineInCenter(l[0])}),i>0&&e.updateOptions({lineNumbers:function(e){return String(e+i)}})},[]),ee=function(i){return G.map(function(r,l){var o,a,c,u=r.code.split("\n").length,h=A(r.filePath),m=b(h,u,D,_),v=h.map(function(e){return y(e,u,m?D:void 0,m?_:void 0)}).filter(function(e){return null!==e}),p=m&&g(D)?v.map(function(e){var n=e[0],t=e[1];return[n+D-1,t+D-1]}):v,N=v.length>0,x=l===J,F=i?600:j.maxHeight,M=(o=20*r.code.split("\n").length+16+4,Math.min(Math.max(o,j.minHeight),F)),w=r.filePath.split("/").pop(),S=m&&g(D)?D-1:0,L=S+u,O=String(Math.max(1,L)).length;return t("div",e({ref:!i&&x?z:void 0,"data-highlighted":N?"true":void 0,"data-first-highlighted":x?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(B.border)},null==k?void 0:k.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:N?B.highlightBg:B.headerBg,borderBottom:"1px solid ".concat(B.border),color:N?B.highlightGutter:B.foreground},N?null==k?void 0:k.headerHighlighted:null==k?void 0:k.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:r.filePath,style:null==k?void 0:k.fileName,onClick:function(){return Q(r.filePath,u)}},{children:w})),X&&n("button",e({className:d.openFileButton,onClick:function(){return Q(r.filePath,u)},title:"Open in editor","aria-label":"Open ".concat(w," in editor"),style:null==k?void 0:k.openFileButton},{children:Y}))]})),t("div",e({className:d.headerRight},{children:[N&&n("span",e({className:d.lineRanges,style:null==k?void 0:k.lineRanges},{children:(c=p,c.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!i&&0===l&&n("button",e({className:d.expandButton,style:null==k?void 0:k.expandButton,onClick:U,title:"Expand","aria-label":"Expand code view"},{children:n(f,{size:13})}))]}))]})),n("div",e({className:d.editorWrapper,style:e({height:"".concat(M,"px"),backgroundColor:B.background},null==k?void 0:k.editorWrapper)},{children:n(s,{height:"100%",language:(a=r.language,C[a.toLowerCase()]||a),value:r.code,theme:j.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:j.fontSize,lineHeight:20,fontFamily:j.fontFamily,lineNumbers:S>0?function(e){return String(e+S)}:"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,O),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},onMount:function(e,n){return Z(e,n,v,S)},loading:n("div",e({className:d.editorLoading,style:{color:B.inactiveText}},{children:"Loading editor..."}))})}))]}),l)})};if(0===G.length)return n("div",e({className:d.emptyState,style:e({color:B.inactiveText},null==k?void 0:k.emptyState)},{children:"No code content available"}));var ne=T?u.createPortal(n("div",e({className:d.modalOverlay,style:null==k?void 0:k.modalOverlay,onClick:function(e){e.target===e.currentTarget&&H(!1)}},{children:t("div",e({className:d.modalContent,style:null==k?void 0:k.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==k?void 0:k.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==k?void 0:k.modalTitle},{children:1===G.length?t("span",e({className:d.modalTitleContent},{children:[n(v,{name:G[0].filePath,size:"15px"}),n("span",e({className:d.modalTitleText},{children:G[0].filePath}))]})):"".concat(G.length," files")})),n("button",e({className:d.modalCloseButton,style:null==k?void 0:k.modalCloseButton,onClick:function(){return H(!1)},"aria-label":"Close expanded view"},{children:n(m,{size:16})}))]})),n("div",e({className:d.modalBody},{children:n("div",e({className:d.container,style:null==k?void 0:k.container},{children:ee(!0)}))}))]}))})),document.body):null;return t(i,{children:[ne,n("div",e({className:d.container,style:null==k?void 0:k.container},{children:ee(!1)}))]})};export{F as default};
1
+ import{jsx as e,jsxs as t,Fragment as l}from"react/jsx-runtime";import{useMemo as n,useState as i,useRef as o,useCallback as a,useEffect as r}from"react";import s from"react-dom";import c from"@monaco-editor/react";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as u,Maximize2 as m}from"lucide-react";import g from"./CustomFileIcon.js";const p=e=>"number"==typeof e&&Number.isFinite(e),v=(e,t)=>p(e)&&p(t)?e<=0||t<e?null:{start:e,end:t,length:t-e+1}:null,f=(e,t,l,n)=>{let[i,o]=e;if(!Number.isFinite(i)||!Number.isFinite(o))return null;if(o<i&&([i,o]=[o,i]),p(l)&&p(n)){const e=Math.max(i,l),a=Math.min(o,n);if(e>a)return null;const r=e-l+1,s=a-l+1,c=Math.max(1,r),d=Math.min(t,s);return c>d?null:[c,d]}const a=Math.max(1,i),r=Math.min(t,o);return a>r?null:[a,r]},y=(e,t,l,n)=>{if(0===e.length)return!1;const i=v(l,n);if(!i)return!1;if(e.some(([e,l])=>e>t||l>t))return!0;if(i.start>t||i.end>t)return!0;if(Math.abs(i.length-t)<=1){return!e.every(([e,t])=>t<i.start||e>i.end)}return!1},b={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},N={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},x={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},C=({citation:C,customStyles:F,customColors:M,customIcons:k,editorConfig:w,fileCallback:S})=>{const L=n(()=>({...b,...M}),[M]),O=n(()=>({...N,...w}),[w]),[B,j]=i(!1),P=o(null),T=o(!1),H=C.customMetadata.content||"",z=C.customMetadata.highlighted_text,R=C.customMetadata.start_line,W=C.customMetadata.end_line,$=p(R)?R+1:R,I=n(()=>{if(!z)return{};try{let e=z.trim();return e.startsWith("```")&&(e=e.replace(/^```\w*\n?/,""),e=e.replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[z]),E=n(()=>{const e=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;let l;for(;null!==(l=t.exec(H));){const t=l[1]||"javascript",n=l[2].trim(),i=l[3].trim();n&&i&&e.push({filePath:n,code:i,language:t})}return e},[H]),_=a(e=>(I[e]||[]).map(e=>{const t=e.split("-").map(e=>Number(e.trim())),l=t[0],n=t.length>1?t[1]:l;return Number.isFinite(l)&&Number.isFinite(n)?[l,n]:null}).filter(e=>null!==e),[I]),D=n(()=>{for(let e=0;e<E.length;e++){const t=E[e],l=t.code.split("\n").length,n=_(t.filePath),i=y(n,l,$,W);if(n.map(e=>f(e,l,i?$:void 0,i?W:void 0)).filter(e=>null!==e).length>0)return e}return-1},[E,_,$,W]),q=D>=0,G=a((e,t)=>{const l=_(e),n=y(l,t,$,W);return l.map(e=>f(e,t,n?$:void 0,n?W:void 0)).filter(e=>null!==e)},[_,$,W]),A=a((e,t)=>{const l=_(e);if(y(l,t,$,W)){const e=v($,W);return e?l.map(([t,l])=>{const n=t<=l?[t,l]:[l,t],i=Math.max(n[0],e.start),o=Math.min(n[1],e.end);return i>o?null:[i,o]}).filter(e=>null!==e):[]}return G(e,t)},[_,G,$,W]);r(()=>{if(q&&!T.current&&E.length>0&&(null==S?void 0:S.autoOpenFirstHighlighted)&&(null==S?void 0:S.onOpenFile)){const e=E[D],t=A(e.filePath,e.code.split("\n").length);T.current=!0;const l=setTimeout(()=>{S.onOpenFile({filePath:e.filePath,ranges:t.length>0?t:null})},300);return()=>clearTimeout(l)}},[q,D,E,G,S]),r(()=>{T.current=!1},[H]),r(()=>{if(D<0)return;const e=setTimeout(()=>{var e;null===(e=P.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return()=>clearTimeout(e)},[D,z]);const J=a((e,t)=>{if(null==S?void 0:S.onOpenFile){const l=A(e,t);S.onOpenFile({filePath:e,ranges:l.length>0?l:null})}},[A,S]),V=a(()=>{(null==S?void 0:S.onExpandClick)?S.onExpandClick({blocks:E,highlightMap:I}):j(!0)},[S,E,I]),K=!!(null==S?void 0:S.onOpenFile),Q=(null==k?void 0:k.readFileCitationIcon)||e(h,{style:{width:"14px",height:"14px"}}),U=a((e,t,l,n)=>{const i=[];if(l.forEach(([e,l])=>{i.push({range:new t.Range(e,1,l,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),i.length>0)try{e.createDecorationsCollection(i)}catch(e){console.warn("Failed to create decorations:",e)}const o=l[0];o&&requestAnimationFrame(()=>{e.revealLineInCenter(o[0])}),n>0&&e.updateOptions({lineNumbers:e=>String(e+n)})},[]),X=l=>E.map((n,i)=>{const o=n.code.split("\n").length,a=_(n.filePath),r=y(a,o,$,W),s=a.map(e=>f(e,o,r?$:void 0,r?W:void 0)).filter(e=>null!==e),h=r&&p($)?s.map(([e,t])=>[e+$-1,t+$-1]):s,u=s.length>0,g=i===D,v=l?600:O.maxHeight,b=(()=>{const e=20*n.code.split("\n").length+16+4;return Math.min(Math.max(e,O.minHeight),v)})(),N=n.filePath.split("/").pop(),C=r&&p($)?$-1:0,M=C+o,k=String(Math.max(1,M)).length;return t("div",{ref:!l&&g?P:void 0,"data-highlighted":u?"true":void 0,"data-first-highlighted":g?"true":void 0,className:d.blockContainer,style:{border:`1px solid ${L.border}`,...null==F?void 0:F.blockContainer},children:[t("div",{className:d.header,style:{backgroundColor:u?L.highlightBg:L.headerBg,borderBottom:`1px solid ${L.border}`,color:u?L.highlightGutter:L.foreground,...u?null==F?void 0:F.headerHighlighted:null==F?void 0:F.header},children:[t("div",{className:d.headerLeft,children:[e("span",{className:d.fileName,title:n.filePath,style:null==F?void 0:F.fileName,onClick:()=>J(n.filePath,o),children:N}),K&&e("button",{className:d.openFileButton,onClick:()=>J(n.filePath,o),title:"Open in editor","aria-label":`Open ${N} in editor`,style:null==F?void 0:F.openFileButton,children:Q})]}),t("div",{className:d.headerRight,children:[u&&e("span",{className:d.lineRanges,style:null==F?void 0:F.lineRanges,children:(S=h,S.map(([e,t])=>e===t?`L${e}`:`L${e}-${t}`).join(", "))}),!l&&0===i&&e("button",{className:d.expandButton,style:null==F?void 0:F.expandButton,onClick:V,title:"Expand","aria-label":"Expand code view",children:e(m,{size:13})})]})]}),e("div",{className:d.editorWrapper,style:{height:`${b}px`,backgroundColor:L.background,...null==F?void 0:F.editorWrapper},children:e(c,{height:"100%",language:(w=n.language,x[w.toLowerCase()]||w),value:n.code,theme:O.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:O.fontSize,lineHeight:20,fontFamily:O.fontFamily,lineNumbers:C>0?e=>String(e+C):"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,k),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},onMount:(e,t)=>U(e,t,s,C),loading:e("div",{className:d.editorLoading,style:{color:L.inactiveText},children:"Loading editor..."})})})]},i);var w,S});if(0===E.length)return e("div",{className:d.emptyState,style:{color:L.inactiveText,...null==F?void 0:F.emptyState},children:"No code content available"});const Y=B?s.createPortal(e("div",{className:d.modalOverlay,style:null==F?void 0:F.modalOverlay,onClick:e=>{e.target===e.currentTarget&&j(!1)},children:t("div",{className:d.modalContent,style:null==F?void 0:F.modalContent,children:[t("div",{className:d.modalHeader,style:null==F?void 0:F.modalHeader,children:[e("span",{className:d.modalTitle,style:null==F?void 0:F.modalTitle,children:1===E.length?t("span",{className:d.modalTitleContent,children:[e(g,{name:E[0].filePath,size:"15px"}),e("span",{className:d.modalTitleText,children:E[0].filePath})]}):`${E.length} files`}),e("button",{className:d.modalCloseButton,style:null==F?void 0:F.modalCloseButton,onClick:()=>j(!1),"aria-label":"Close expanded view",children:e(u,{size:16})})]}),e("div",{className:d.modalBody,children:e("div",{className:d.container,style:null==F?void 0:F.container,children:X(!0)})})]})}),document.body):null;return t(l,{children:[Y,e("div",{className:d.container,style:null==F?void 0:F.container,children:X(!1)})]})};export{C as default};
2
2
  //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as i,Fragment as o}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import e from"./icons/FileCodeIcon.js";import r from"./ReadFileCitationContent.js";var a=function(a){var l=a.title,c=a.citation,s=a.customStyles,m=a.customColors,p=a.customIcons,d=a.editorConfig,u=a.fileCallback,C=(null==p?void 0:p.readFileCitationIcon)||i(e,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return i(n,{inLineCitation:!0,citationTitle:l+"⁠",citationId:"readfile-".concat(c.citation_number),citationIcon:i(o,{}),citationComponent:i(r,{citation:c,customStyles:s,customColors:m,customIcons:p,editorConfig:d,fileCallback:u}),chevronDownComponent:C,chevronUpComponent:C,styles:{pillButton:t({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{a as default};
1
+ import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const r=({title:r,citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p})=>{const d=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:r+"⁠",citationId:`readfile-${a.citation_number}`,citationIcon:t(i,{}),citationComponent:t(e,{citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:{fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none",...null==l?void 0:l.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
2
2
  //# sourceMappingURL=ReadFileCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";var o=function(o){var i=o.className,n=o.style;return e("svg",t({className:i,style:n,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[r("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),r("polyline",{points:"15 3 21 3 21 9"}),r("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}))};export{o as default};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";const o=({className:o,style:s})=>e("svg",{className:o,style:s,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),t("polyline",{points:"15 3 21 3 21 9"}),t("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]});export{o as default};
2
2
  //# sourceMappingURL=ExternalLinkIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as r,jsx as e}from"react/jsx-runtime";var o=function(o){var s=o.className,a=o.style;return r("svg",t({className:s,style:a,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[e("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("path",{d:"m10 13-2 2 2 2"}),e("path",{d:"m14 17 2-2-2-2"})]}))};export{o as default};
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";const o=({className:o,style:s})=>t("svg",{className:o,style:s,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("path",{d:"m10 13-2 2 2 2"}),e("path",{d:"m14 17 2-2-2-2"})]});export{o as default};
2
2
  //# sourceMappingURL=FileCodeIcon.js.map