@viswa-test/test-citation 0.0.229 → 0.0.230

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 (670) 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/features/CognitiveCompare/CognitiveCompare.js +1 -1
  273. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  274. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  275. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  276. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  277. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  278. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  279. package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  280. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  281. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  282. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  283. package/dist/features/GptWebCitation/types.js +2 -0
  284. package/dist/features/GptWebCitation/types.js.map +1 -0
  285. package/dist/features/GptWebCitation/utils/citationData.utils.js +1 -1
  286. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
  287. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
  288. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
  289. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
  290. package/dist/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  291. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  292. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  293. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  294. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  295. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  296. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  297. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  298. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  299. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  300. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  301. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  302. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  303. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  304. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  305. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  306. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  307. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  308. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  309. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  310. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  311. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
  312. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  313. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  314. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  315. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  316. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  317. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  318. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  319. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  320. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  321. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  322. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  323. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  324. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  325. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  326. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  327. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  328. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  329. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  330. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  331. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
  332. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
  333. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
  334. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
  335. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  336. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
  337. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
  338. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
  339. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
  340. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
  341. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  342. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  343. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  344. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  345. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  346. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  347. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  348. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  349. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  350. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  351. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  352. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  353. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  354. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  355. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  356. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  357. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  358. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  359. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  360. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  361. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  362. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  363. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  364. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  365. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  366. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  367. package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
  368. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  369. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  370. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  371. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  372. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  373. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  374. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  375. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  376. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  377. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  378. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  379. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  380. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  381. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  382. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  383. package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  384. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  385. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  386. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  387. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  388. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  389. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +2 -0
  390. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
  391. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
  392. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
  393. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  394. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  395. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  396. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  397. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  398. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  399. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  400. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  401. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  402. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  403. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  404. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  405. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  406. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  407. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  408. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  409. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  410. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  411. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  412. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  413. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  414. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  415. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  416. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  417. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  418. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  419. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  420. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  421. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  422. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  423. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  424. package/dist/features/RequirementAI/components/segment/segment-common.css.js +1 -1
  425. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  426. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +2 -0
  427. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
  428. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
  429. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
  430. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  431. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  432. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  433. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  434. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  435. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  436. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  437. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  438. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  439. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  440. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  441. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  442. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  443. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  444. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  445. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  446. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  447. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  448. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  449. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  450. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  451. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  452. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  453. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  454. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  455. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  456. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  457. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  458. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  459. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  460. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  461. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  462. package/dist/features/RequirementAI/icons/CDIcon.js +2 -0
  463. package/dist/features/RequirementAI/icons/CDIcon.js.map +1 -0
  464. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  465. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  466. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  467. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  468. package/dist/features/RequirementAI/icons/Illustration.svg.js +2 -0
  469. package/dist/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
  470. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  471. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  472. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  473. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  474. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  475. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  476. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  477. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  478. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  479. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  480. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  481. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  482. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  483. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  484. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  485. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  486. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  487. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  488. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  489. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  490. package/dist/features/RequirementAI/utils/css.utils.js +1 -1
  491. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  492. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  493. package/dist/features/RequirementAI/utils/json-helper.js +1 -1
  494. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  495. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  496. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  497. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  498. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  499. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  500. package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  501. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  502. package/dist/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  503. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  504. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  505. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  506. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  507. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  508. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  509. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  510. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  511. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  512. package/dist/features/UserStoryImport/components/Header.js +1 -1
  513. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  514. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  515. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  516. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  517. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  518. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  519. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  520. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  521. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  522. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  523. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  524. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  525. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  526. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  527. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  528. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  529. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  530. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  531. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  532. package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
  533. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  534. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  535. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  536. package/dist/features/UserStoryImport/index.js +1 -1
  537. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  538. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  539. package/dist/features/UserStoryImport/lib/cn.js +1 -1
  540. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  541. package/dist/index.js +1 -1
  542. package/dist/service/redlineService.js +2 -0
  543. package/dist/service/redlineService.js.map +1 -0
  544. package/dist/types/src/Background.d.ts +7 -0
  545. package/dist/types/src/Background.d.ts.map +1 -0
  546. package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
  547. package/dist/types/src/DeviationSummaryTest.d.ts +2 -0
  548. package/dist/types/src/DeviationSummaryTest.d.ts.map +1 -0
  549. package/dist/types/src/RedlineEditorTest.d.ts +3 -0
  550. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -0
  551. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  552. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  553. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +5 -0
  554. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  555. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +9 -1
  556. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
  557. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
  558. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
  559. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
  560. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
  561. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
  562. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
  563. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +10 -0
  564. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
  565. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +9 -1
  566. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
  567. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +3 -1
  568. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -1
  569. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +12 -1
  570. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -1
  571. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +1 -1
  572. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -1
  573. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -1
  574. package/dist/types/src/features/GptWebCitation/types.d.ts +313 -20
  575. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
  576. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +2 -0
  577. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -1
  578. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +10 -0
  579. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -0
  580. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts +6 -0
  581. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +1 -0
  582. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +2 -0
  583. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -1
  584. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +1 -1
  585. package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.d.ts.map +1 -1
  586. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +156 -3
  587. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  588. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +2 -1
  589. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  590. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +1 -4
  591. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  592. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts +44 -0
  593. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts.map +1 -0
  594. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  595. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +4 -3
  596. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  597. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts +35 -0
  598. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts.map +1 -0
  599. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +25 -0
  600. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -0
  601. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts +23 -0
  602. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts.map +1 -0
  603. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +25 -0
  604. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -0
  605. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.d.ts.map +1 -1
  606. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map +1 -1
  607. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +9 -1
  608. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  609. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts +8 -0
  610. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts.map +1 -0
  611. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts +29 -0
  612. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts.map +1 -0
  613. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +8 -3
  614. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  615. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +44 -4
  616. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  617. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +25 -0
  618. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -0
  619. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +17 -3
  620. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  621. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +35 -2
  622. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  623. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  624. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts +12 -0
  625. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts.map +1 -0
  626. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts +6 -0
  627. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts.map +1 -0
  628. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts +1 -0
  629. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map +1 -1
  630. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts +15 -0
  631. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts.map +1 -0
  632. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +7 -1
  633. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  634. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts +4 -1
  635. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts.map +1 -1
  636. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +14 -1
  637. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  638. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts +11 -0
  639. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts.map +1 -0
  640. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts +10 -0
  641. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts.map +1 -0
  642. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +2 -1
  643. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  644. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts +4 -1
  645. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts.map +1 -1
  646. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +17 -2
  647. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
  648. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +10 -0
  649. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  650. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +4 -1
  651. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  652. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -12
  653. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  654. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +20 -0
  655. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
  656. package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts.map +1 -1
  657. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +2 -2
  658. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
  659. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +1 -0
  660. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
  661. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
  662. package/dist/types/src/index.d.ts +3 -2
  663. package/dist/types/src/index.d.ts.map +1 -1
  664. package/dist/types/src/service/redlineService.d.ts +33 -0
  665. package/dist/types/src/service/redlineService.d.ts.map +1 -0
  666. package/package.json +10 -7
  667. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  668. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
  669. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  670. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),l=require("react"),o=require("video.js");require("video.js/dist/video-js.css");var i=require("./AudioTimeLineSlider.js"),s=require("../icons/MaximizeIcon.js"),t=require("../icons/MinimizeIcon.js"),r=require("../icons/PlayIcon.js"),a=require("../icons/PauseIcon.js"),u=require("../icons/PlaybackSpeedIcon.js"),c=require("./videoPlayer.module.css.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=d(o);exports.default=function(o){var d,v,g=o.videoSrc,p=o.currentTime,y=o.isWaveformPlaying,m=o.onBufferingStart,j=o.onBufferingEnd,x=o.onVideoPlayPause,h=o.videoType,S=void 0===h?"video/mp4":h,_=o.className,P=void 0===_?"":_,b=o.onVideoLoadingStateChange,k=o.isUrlPending,V=o.isPeaksPending,I=o.signedUrl,q=o.AudioData,J=o.showOnlyMatched,w=o.setShowOnlyMatched,N=o.wavesurferRef,R=o.segments,B=o.setIsAudioPlaying,C=o.handleAudioTimeUpdate,M=o.customStyles,T=o.waveformStyles,E=l.useRef(null),A=l.useRef(null),O=l.useRef(null),F=l.useRef(!1),L=l.useRef(!1),U=l.useState(!1),z=U[0];U[1];var W=l.useState(!0)[0],D=l.useState(!0),H=D[0],G=D[1],K=l.useState("1x"),Q=K[0],X=K[1],Y=l.useState(!1),Z=Y[0],$=Y[1],ee=function(){$(function(e){return!e})};l.useEffect(function(){if(console.log("[VideoJS] useEffect triggered",{videoSrc:g}),E.current){console.log("[VideoJS] Initializing player"),G(!0),null==b||b(!0);var e=f.default(E.current,{controls:!1,autoplay:!1,preload:"auto",fluid:!0,muted:!0,sources:[{src:g,type:S}]});return e.on("loadstart",function(){console.log("[VideoJS] loadstart"),G(!0),null==b||b(!0)}),e.on("canplay",function(){console.log("[VideoJS] canplay",{isVideoLoading:H,isBuffering:F.current}),H&&(console.log("[VideoJS] Video loading finished"),G(!1),null==b||b(!1)),F.current&&(console.log("[VideoJS] Buffering ended"),F.current=!1,setTimeout(function(){console.log("[VideoJS] onBufferingEnd()"),j()},100))}),e.on("waiting",function(){console.log("[VideoJS] waiting (buffering start)"),F.current||(F.current=!0,L.current=y,console.log("[VideoJS] Buffering started",{wasPlaying:L.current}),m())}),e.on("error",function(){console.error("[VideoJS] Player error",e.error()),G(!1),null==b||b(!1)}),A.current=e,console.log("[VideoJS] Player ready"),function(){var e;console.log("[VideoJS] Disposing player"),null===(e=A.current)||void 0===e||e.dispose(),A.current=null}}console.warn("[VideoJS] videoRef is null")},[g]),l.useEffect(function(){if(A.current){var e=A.current.currentTime();Math.abs(e-p)>.2&&A.current.currentTime(p)}},[p]),l.useEffect(function(){A.current&&!F.current&&(y&&A.current.paused()?A.current.play().catch(function(){}):y||A.current.paused()||A.current.pause())},[y]),l.useEffect(function(){var e,n,l,o=parseFloat(Q.replace("x",""));null===(e=A.current)||void 0===e||e.playbackRate(o),null===(l=null===(n=N.current)||void 0===n?void 0:n.setPlaybackRate)||void 0===l||l.call(n,o)},[Q]);return n.jsxs("div",e.__assign({ref:O,className:"".concat(c.default.container," ").concat(P),style:null==M?void 0:M.container},{children:[n.jsx("video",{ref:E,className:"video-js vjs-big-play-centered ".concat(c.default.video),style:null==M?void 0:M.video,playsInline:!0,muted:!0}),n.jsxs("div",e.__assign({className:"".concat(c.default.controlsWrapper," ").concat(W?c.default.visible:c.default.hidden),style:null==M?void 0:M.controlsWrapper},{children:[Z&&n.jsxs("div",e.__assign({className:c.default.speedSelector,style:null==M?void 0:M.speedSelector},{children:[n.jsx("div",e.__assign({className:c.default.speedHeader,style:null==M?void 0:M.speedHeader},{children:"Playback Speed"})),["0.5x","1x","1.5x","2x"].map(function(l){return n.jsx("button",e.__assign({onClick:function(){return function(e){var n,l,o;X(e),$(!1);var i=parseFloat(e.replace("x",""));null===(n=A.current)||void 0===n||n.playbackRate(i),null===(o=null===(l=N.current)||void 0===l?void 0:l.setPlaybackRate)||void 0===o||o.call(l,i)}(l)},className:c.default.speedItem,style:null==M?void 0:M.speedItem},{children:l}),l)})]})),n.jsxs("div",e.__assign({className:c.default.controlBar,style:null==M?void 0:M.controlBar},{children:[n.jsx("div",{children:y?n.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),null==x||x(!1)},style:null==M?void 0:M.pauseIcon},{children:n.jsx(a.default,{})})):n.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),null==x||x(!0)},style:null==M?void 0:M.playIcon},{children:n.jsx(r.default,{})}))}),n.jsxs("div",e.__assign({className:c.default.rightControls,style:null==M?void 0:M.rightControls},{children:["1x"!==Q?n.jsx("span",e.__assign({onClick:ee},{children:Q})):n.jsx("button",e.__assign({onClick:ee,style:null==M?void 0:M.playBackSpeedIcon},{children:n.jsx(u.default,{})})),n.jsx("button",e.__assign({onClick:function(e){var n,l,o;e.stopPropagation(),O.current&&(z?null===(o=document.exitFullscreen)||void 0===o||o.call(document):null===(l=(n=O.current).requestFullscreen)||void 0===l||l.call(n))}},{children:z?n.jsx(t.default,{}):n.jsx(s.default,{})}))]}))]})),n.jsx("div",e.__assign({className:c.default.timeline,style:null==M?void 0:M.timeline},{children:k||V?n.jsx("div",e.__assign({className:c.default.loader,style:null==M?void 0:M.loader},{children:n.jsx("span",{children:"Loading audio-timeline peaks..."})})):I&&q&&n.jsx(i.default,{ref:N,audio_file_name:I,peaks:null!==(d=q.peaks)&&void 0!==d?d:[],duration:null!==(v=q.duration)&&void 0!==v?v:0,matchedSegments:R,showOnlyMatched:J,setShowOnlyMatched:w,setIsAudioPlaying:B,onTimeUpdate:C,onToggleShowMatched:function(){},customStyles:T})}))]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),n=require("video.js");require("video.js/dist/video-js.css");var o=require("./AudioTimeLineSlider.js"),r=require("../icons/MaximizeIcon.js"),s=require("../icons/MinimizeIcon.js"),t=require("../icons/PlayIcon.js"),i=require("../icons/PauseIcon.js"),a=require("../icons/PlaybackSpeedIcon.js"),d=require("./videoPlayer.module.css.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(n);exports.default=({videoSrc:n,currentTime:u,isWaveformPlaying:f,onBufferingStart:v,onBufferingEnd:p,onVideoPlayPause:y,videoType:g="video/mp4",className:m="",onVideoLoadingStateChange:j,isUrlPending:x,isPeaksPending:h,signedUrl:S,AudioData:P,showOnlyMatched:b,setShowOnlyMatched:k,wavesurferRef:V,segments:I,setIsAudioPlaying:J,handleAudioTimeUpdate:q,customStyles:w,waveformStyles:N})=>{var R,B;const C=l.useRef(null),M=l.useRef(null),T=l.useRef(null),E=l.useRef(!1),A=l.useRef(!1),[O,$]=l.useState(!1),[F]=l.useState(!0),[L,U]=l.useState(!0),[_,z]=l.useState("1x"),[W,D]=l.useState(!1),H=()=>{D(e=>!e)};l.useEffect(()=>{if(console.log("[VideoJS] useEffect triggered",{videoSrc:n}),!C.current)return void console.warn("[VideoJS] videoRef is null");console.log("[VideoJS] Initializing player"),U(!0),null==j||j(!0);const e=c.default(C.current,{controls:!1,autoplay:!1,preload:"auto",fluid:!0,muted:!0,sources:[{src:n,type:g}]});return e.on("loadstart",()=>{console.log("[VideoJS] loadstart"),U(!0),null==j||j(!0)}),e.on("canplay",()=>{console.log("[VideoJS] canplay",{isVideoLoading:L,isBuffering:E.current}),L&&(console.log("[VideoJS] Video loading finished"),U(!1),null==j||j(!1)),E.current&&(console.log("[VideoJS] Buffering ended"),E.current=!1,setTimeout(()=>{console.log("[VideoJS] onBufferingEnd()"),p()},100))}),e.on("waiting",()=>{console.log("[VideoJS] waiting (buffering start)"),E.current||(E.current=!0,A.current=f,console.log("[VideoJS] Buffering started",{wasPlaying:A.current}),v())}),e.on("error",()=>{console.error("[VideoJS] Player error",e.error()),U(!1),null==j||j(!1)}),M.current=e,console.log("[VideoJS] Player ready"),()=>{var e;console.log("[VideoJS] Disposing player"),null===(e=M.current)||void 0===e||e.dispose(),M.current=null}},[n]),l.useEffect(()=>{if(!M.current)return;const e=M.current.currentTime();Math.abs(e-u)>.2&&M.current.currentTime(u)},[u]),l.useEffect(()=>{M.current&&!E.current&&(f&&M.current.paused()?M.current.play().catch(()=>{}):f||M.current.paused()||M.current.pause())},[f]),l.useEffect(()=>{var e,l,n;const o=parseFloat(_.replace("x",""));null===(e=M.current)||void 0===e||e.playbackRate(o),null===(n=null===(l=V.current)||void 0===l?void 0:l.setPlaybackRate)||void 0===n||n.call(l,o)},[_]);return e.jsxs("div",{ref:T,className:`${d.default.container} ${m}`,style:null==w?void 0:w.container,children:[e.jsx("video",{ref:C,className:`video-js vjs-big-play-centered ${d.default.video}`,style:null==w?void 0:w.video,playsInline:!0,muted:!0}),e.jsxs("div",{className:`${d.default.controlsWrapper} ${F?d.default.visible:d.default.hidden}`,style:null==w?void 0:w.controlsWrapper,children:[W&&e.jsxs("div",{className:d.default.speedSelector,style:null==w?void 0:w.speedSelector,children:[e.jsx("div",{className:d.default.speedHeader,style:null==w?void 0:w.speedHeader,children:"Playback Speed"}),["0.5x","1x","1.5x","2x"].map(l=>e.jsx("button",{onClick:()=>(e=>{var l,n,o;z(e),D(!1);const r=parseFloat(e.replace("x",""));null===(l=M.current)||void 0===l||l.playbackRate(r),null===(o=null===(n=V.current)||void 0===n?void 0:n.setPlaybackRate)||void 0===o||o.call(n,r)})(l),className:d.default.speedItem,style:null==w?void 0:w.speedItem,children:l},l))]}),e.jsxs("div",{className:d.default.controlBar,style:null==w?void 0:w.controlBar,children:[e.jsx("div",{children:f?e.jsx("button",{onClick:e=>{e.stopPropagation(),null==y||y(!1)},style:null==w?void 0:w.pauseIcon,children:e.jsx(i.default,{})}):e.jsx("button",{onClick:e=>{e.stopPropagation(),null==y||y(!0)},style:null==w?void 0:w.playIcon,children:e.jsx(t.default,{})})}),e.jsxs("div",{className:d.default.rightControls,style:null==w?void 0:w.rightControls,children:["1x"!==_?e.jsx("span",{onClick:H,children:_}):e.jsx("button",{onClick:H,style:null==w?void 0:w.playBackSpeedIcon,children:e.jsx(a.default,{})}),e.jsx("button",{onClick:e=>{var l,n,o;e.stopPropagation(),T.current&&(O?null===(o=document.exitFullscreen)||void 0===o||o.call(document):null===(n=(l=T.current).requestFullscreen)||void 0===n||n.call(l))},children:O?e.jsx(s.default,{}):e.jsx(r.default,{})})]})]}),e.jsx("div",{className:d.default.timeline,style:null==w?void 0:w.timeline,children:x||h?e.jsx("div",{className:d.default.loader,style:null==w?void 0:w.loader,children:e.jsx("span",{children:"Loading audio-timeline peaks..."})}):S&&P&&e.jsx(o.default,{ref:V,audio_file_name:S,peaks:null!==(R=P.peaks)&&void 0!==R?R:[],duration:null!==(B=P.duration)&&void 0!==B?B:0,matchedSegments:I,showOnlyMatched:b,setShowOnlyMatched:k,setIsAudioPlaying:J,onTimeUpdate:q,onToggleShowMatched:()=>{},customStyles:N})})]})]})};
2
2
  //# sourceMappingURL=videoPlayer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime");exports.default=function(r){var s=r.height,i=void 0===s?24:s,d=r.width,o=void 0===d?24:d;return t.jsx("div",{children:t.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:o,height:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:[t.jsx("path",{d:"M2 10v3"}),t.jsx("path",{d:"M6 6v11"}),t.jsx("path",{d:"M10 3v18"}),t.jsx("path",{d:"M14 8v7"}),t.jsx("path",{d:"M18 5v13"}),t.jsx("path",{d:"M22 10v3"})]}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("div",{children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[e.jsx("path",{d:"M2 10v3"}),e.jsx("path",{d:"M6 6v11"}),e.jsx("path",{d:"M10 3v18"}),e.jsx("path",{d:"M14 8v7"}),e.jsx("path",{d:"M18 5v13"}),e.jsx("path",{d:"M22 10v3"})]})});
2
2
  //# sourceMappingURL=AudioLinesIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime");exports.default=function(r){var i=r.height,s=void 0===i?24:i,o=r.width,d=void 0===o?24:o;return t.jsx("div",{children:t.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:d,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),t.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),t.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),t.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("div",{children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),e.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),e.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),e.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})});
2
2
  //# sourceMappingURL=MaximizeIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime");exports.default=function(r){var i=r.height,s=void 0===i?24:i,o=r.width,d=void 0===o?24:o;return t.jsx("div",{children:t.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:d,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),t.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),t.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),t.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("div",{children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),e.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),e.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),e.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})});
2
2
  //# sourceMappingURL=MinimizeIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.height,s=void 0===i?24:i,o=t.width,n=void 0===o?24:o;return r.jsx("div",{children:r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[r.jsx("rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}),r.jsx("rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"})]}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("div",{children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}),e.jsx("rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"})]})});
2
2
  //# sourceMappingURL=PauseIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.height,o=void 0===i?24:i,s=t.width,n=void 0===s?24:s;return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("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"})}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("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"})});
2
2
  //# sourceMappingURL=PlayIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),i=require("react/jsx-runtime");exports.default=function(){return i.jsxs("svg",C.__assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 12 12",fill:"none"},{children:[i.jsxs("g",C.__assign({"clip-path":"url(#clip0_3246_74403)"},{children:[i.jsx("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.jsx("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.jsx("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.jsx("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.jsx("defs",{children:i.jsx("clipPath",C.__assign({id:"clip0_3246_74403"},{children:i.jsx("rect",{width:"12",height:"12",fill:"white"})}))})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("react/jsx-runtime");exports.default=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 12 12",fill:"none",children:[C.jsxs("g",{"clip-path":"url(#clip0_3246_74403)",children:[C.jsx("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"}),C.jsx("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"}),C.jsx("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"}),C.jsx("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"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_3246_74403",children:C.jsx("rect",{width:"12",height:"12",fill:"white"})})})]});
2
2
  //# sourceMappingURL=PlaybackSpeedIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.height,s=void 0===i?24:i,o=t.width,n=void 0===o?24:o;return r.jsx("div",{children:r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:n,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[r.jsx("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"}),r.jsx("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"})]}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("div",{children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("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"}),e.jsx("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"})]})});
2
2
  //# sourceMappingURL=VideoIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),n=require("wavesurfer.js"),u=require("wavesurfer.js/dist/plugins/regions"),c=require("./searchwaveform.module.css.js"),a=require("./icons/PauseIcon.js"),s=require("./icons/PlayIcon.js"),i=require("./store/autoplay.wavefrom.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(t),d=l(n),f=l(u),v=t.forwardRef(function(n,u){var l=n.audio_file_name,v=n.showOnlyMatched,g=n.setShowOnlyMatched,p=n.matchedSegments,m=n.onTimeUpdate;n.currentAudioTime;var h=n.peaks,y=n.duration,_=n.setIsAudioPlaying,S=n.setChevronIndex,x=n.chevronIndex,T=void 0===x?0:x,j=n.onToggleShowMatched,w=n.topicId,k=n.isVideoBuffering,R=n.playOnlyMatched,b=void 0===R||R,P=n.customStyles,C=t.useState(!1),N=C[0],M=C[1],I=t.useState(!0),q=I[0],E=I[1],B=t.useState(!1),O=B[0],A=B[1],D=t.useState(!1),F=D[0],W=D[1],z=t.useState(!1),H=z[0],L=z[1],U=t.useState(!1);U[0];var X=U[1],V=t.useState(0),G=V[0],J=V[1],K=t.useState(!1);K[0];var Q=K[1],Y=t.useState("00:00:00"),Z=Y[0],$=Y[1],ee=t.useState("00:00:00"),re=ee[0],te=ee[1],ne=t.useState(0),ue=ne[0],ce=ne[1],ae=t.useState(!1),se=ae[0],ie=ae[1],le=t.useState(0),oe=le[0],de=le[1],fe=t.useState("00:00:00"),ve=fe[0],ge=fe[1],pe=t.useRef(null),me=t.useRef(!1),he=t.useRef(null),ye=t.useRef(null),_e=t.useRef(null),Se=t.useRef(!1),xe=t.useRef(null),Te=t.useRef(null),je=t.useRef(0),we=t.useRef(0),ke=t.useState(!1),Re=ke[0],be=ke[1],Pe=i.useAudioPlayPause(),Ce=Pe.playTopicId,Ne=Pe.resetTrigger,Me=Pe.pendingPlayRequest,Ie=Pe.setPendingPlayRequest,qe=Pe.triggerPlayForTopic,Ee=t.useRef(null),Be=function(e){try{var r=e.split(":"),t=r[0],n=r[1],u=r[2],c=(r[3],parseInt(t).toString().padStart(2,"0")),a=parseInt(n).toString().padStart(2,"0"),s=parseInt(u).toString().padStart(2,"0");return"".concat(c,":").concat(a,":").concat(s)}catch(e){console.log("Error converting formatTimeToHMS",e)}};t.useEffect(function(){null==g||g(b)},[b]),t.useEffect(function(){Re&&Me===w&&(Ie(null),setTimeout(function(){qe(w)},100))},[Re,Me,w]),t.useEffect(function(){Re&&Ce===w&&(Ee.current&&(Ee.current.click(),M(!0)),Ne())},[Ce,w,Re]),t.useEffect(function(){return be(!0),function(){be(!1)}},[]),t.useEffect(function(){if(l&&he.current&&!Se.current){E(!0);var e=f.default.create(),r=d.default.create({container:he.current,waveColor:"#D0D5DD",progressColor:"#9CA3AF",cursorColor:"#6B7280",barWidth:2,barRadius:3,height:64,normalize:!0,peaks:[new Float32Array(h)],duration:y,url:l});return ye.current=r,_e.current=r.registerPlugin(e),Se.current=!0,r.on("decode",function(){Q(!0),Ae();var e=Be(Oe(y));te(e||"00:00:00")}),r.on("ready",function(){E(!1)}),r.on("play",function(){M(!0),_&&_(!0)}),r.on("pause",function(){M(!1),_&&_(!1)}),r.on("finish",function(){M(!1),_&&_(!1),O&&(A(!1),W(!1),L(!0))}),r.on("seeking",function(){v||O&&!F&&De()}),r.on("error",function(){E(!1)}),r.on("audioprocess",function(e){(m&&m(e),me.current)||ce(e/y*100);var r=Be(Oe(e));$(r||"00:00:00"),we.current=e}),function(){xe.current&&clearTimeout(xe.current),Te.current,r.destroy(),Se.current=!1,ye.current=null}}},[l]),t.useEffect(function(){ye.current&&(ye.current.setOptions({interact:!v}),N&&ye.current.pause(),v?(A(!0),je.current=0):De(),j&&j(v))},[v]);var Oe=function(e){var r=Math.floor(e/3600),t=Math.floor(e%3600/60),n=Math.floor(e%60),u=Math.floor(e%1*1e3);return"".concat(String(r).padStart(2,"0"),":").concat(String(t).padStart(2,"0"),":").concat(String(n).padStart(2,"0"),":").concat(String(u).padStart(3,"0"))},Ae=t.useCallback(function(){_e.current&&ye.current&&(_e.current.clearRegions(),p.forEach(function(e,r){_e.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})}))},[p]),De=t.useCallback(function(){ye.current&&(A(!1),W(!1),L(!1),X(!1),xe.current&&(clearTimeout(xe.current),xe.current=null),Te.current&&(ye.current.un("audioprocess",Te.current),Te.current=null))},[]),Fe=t.useCallback(function(e){!v&&ye.current&&(ye.current.seekTo(e/y),ye.current.play(),M(!0),_&&_(!0),$(Be(Oe(e))),A(!1),W(!1),L(!1))},[v,y,_,Oe,Be]),We=t.useRef(!1),ze=t.useCallback(function(){if(!We.current&&ye.current&&p.length){We.current=!0,ye.current.pause();var e=je.current+1;if(console.log("Current segment:",je.current),console.log("Next index calculated:",e),console.log("Total segments:",p.length),e<p.length){var r=p[e];$(Be(Oe(r.start_time))),S&&S(e),J(e),je.current=e;var t=v?0:2e3;xe.current=setTimeout(function(){We.current=!1,setTimeout(function(){if(ye.current){ye.current.seekTo(r.start_time/y),ye.current.play();var e=r.end_time,t=function(r){var n;r>=e&&(null===(n=ye.current)||void 0===n||n.un("audioprocess",t),Te.current=null,ze())};Te.current=t,ye.current.on("audioprocess",t)}},100)},t)}else{if(console.log("End of cycle reached, resetting to index 0"),A(v),W(!0),L(!0),je.current=0,J(0),S&&S(0),p.length>0){var n=p[0];$(Be(Oe(n.start_time))),ye.current.seekTo(n.start_time/y)}ye.current.isPlaying()&&ye.current.pause(),xe.current=setTimeout(function(){We.current=!1,ye.current&&ye.current.isPlaying()&&ye.current.pause()},v?0:2e3)}}},[p,y,S,Oe,v]),He=t.useCallback(function(){if(ye.current&&p.length){var e=je.current;if(e>=p.length)return A(v),void L(!0);var r=p[e];J(e),$(Be(Oe(r.start_time))),S&&S(e),setTimeout(function(){if(ye.current){ye.current.seekTo(r.start_time/y),ye.current.play();var e=r.end_time,t=function(r){var n;r>=e&&(null===(n=ye.current)||void 0===n||n.un("audioprocess",t),Te.current=null,ze())};Te.current=t,ye.current.on("audioprocess",t)}},100)}},[p,y,S,ze,Oe,v]),Le=t.useCallback(function(){if(ye.current&&p.length){Te.current&&(ye.current.un("audioprocess",Te.current),Te.current=null);var e=p[je.current];if(e){var r=e.end_time,t=function(e){var n;e>=r&&(null===(n=ye.current)||void 0===n||n.un("audioprocess",t),Te.current=null,ze())};Te.current=t,ye.current.on("audioprocess",t)}}},[p,ze]),Ue=t.useCallback(function(){ye.current&&(v?N?(ye.current.pause(),W(!0)):F?(ye.current.play(),W(!1),Le()):H?(L(!1),je.current=0,He()):He():N?ye.current.pause():ye.current.play())},[N,v,F,H,He,Le]),Xe=t.useCallback(function(e){if(ye.current&&0!==p.length){var r,t=N;N&&(ye.current.pause(),W(!0)),Te.current&&(ye.current.un("audioprocess",Te.current),Te.current=null),r="next"===e?(G+1)%p.length:(G-1+p.length)%p.length,J(r),je.current=r;var n=p[r];ye.current.seekTo(n.start_time/y),S&&S(r),t&&v&&setTimeout(function(){ye.current&&(ye.current.play(),W(!1),Le())},50)}},[G,p,S,y,N,v,Le]),Ve=t.useCallback(function(e){ye.current&&(v||(O&&De(),ye.current.seekTo(e/y)))},[y,O,De,v]);t.useEffect(function(){if(p.length>0&&void 0!==T&&ye.current&&!We.current){if(T===je.current)return;var e=N;Te.current&&(ye.current.un("audioprocess",Te.current),Te.current=null);var r=p[T];r&&(ye.current.seekTo(r.start_time/y),J(T),je.current=T,e&&v&&setTimeout(function(){ye.current&&Le()},50))}},[T,y,p,v,N,Le]);var Ge=t.useRef(!1);t.useEffect(function(){k&&ye.current&&ye.current.isPlaying()&&(Ge.current=!0,ye.current.pause(),O&&W(!0)),!k&&Ge.current&&ye.current&&ye.current&&(ye.current.play(),Ge.current=!1,O&&F&&(W(!1),Le()))},[k,O,F,Le]),o.default.useImperativeHandle(u,function(){return{waveSurfer:ye.current,navigateSegments:Xe,togglePlayPause:Ue,getCurrentSegmentIndex:function(){return G},setCurrentSegmentIndex:J,isPlayingSequence:function(){return O},setPlayingSequence:function(e){return A(e)},seekToTime:Ve,showOnlyMatched:v,setShowOnlyMatched:function(e){return null==g?void 0:g(e)},handleIndividualSegmentPlay:Fe}},[ye.current,Xe,Ue,G,O,Ve,v,Fe]);return r.jsx("div",e.__assign({className:c.default.container,style:null==P?void 0:P.container},{children:r.jsxs("div",e.__assign({className:c.default.inner,style:null==P?void 0:P.inner},{children:[r.jsxs("div",e.__assign({className:c.default.waveformRow,style:null==P?void 0:P.waveformRow},{children:[r.jsx("div",e.__assign({className:c.default.playButtonWrapper,style:null==P?void 0:P.playButtonWrapper},{children:r.jsx("button",e.__assign({ref:Ee,onClick:Ue,className:c.default.playButton,style:null==P?void 0:P.playButton,title:N?"Pause":"Play",disabled:q},{children:q?r.jsx(r.Fragment,{children:"Loading..."}):N?r.jsx("div",e.__assign({className:c.default.icon,style:null==P?void 0:P.pauseIcon},{children:r.jsx(a.default,{})})):r.jsx("div",e.__assign({className:c.default.icon,style:null==P?void 0:P.playIcon},{children:r.jsx(s.default,{})}))}))})),r.jsx("div",{ref:he,className:c.default.waveform,style:null==P?void 0:P.waveform})]})),r.jsxs("div",e.__assign({className:c.default.sliderRow,style:null==P?void 0:P.sliderRow},{children:[r.jsx("div",{className:c.default.buttonSpacer,style:null==P?void 0:P.buttonSpacer}),r.jsxs("div",e.__assign({className:"".concat(c.default.slider,"\n ").concat(c.default.group,"\n ").concat(v?c.default.disabled:c.default.interactive),ref:pe,style:null==P?void 0:P.slider,onClick:v?void 0:function(e){var r;if(!v){var t=null===(r=pe.current)||void 0===r?void 0:r.getBoundingClientRect();if(t&&ye.current){var n=(e.clientX-t.left)/t.width*100,u=n/100*y;ce(n),ye.current.seekTo(u/y),O&&De()}}},onMouseMove:v?void 0:function(e){if(!v&&pe.current){var r=pe.current.getBoundingClientRect(),t=e.clientX-r.left;if(t>=0&&t<=r.width){var n=t/r.width*100;ie(!0),de(t);var u=Be(Oe(n/100*y));ge(u||"00:00:00")}}},onMouseLeave:function(){ie(!1)},onMouseDown:v?void 0:function(){v||(me.current=!0)},onMouseUp:v?void 0:function(){if(!v&&(me.current=!1,ye.current)){var e=ue/100*y;ye.current.seekTo(e/y),O&&De()}}},{children:[r.jsx("div",{className:c.default.sliderTrack,style:null==P?void 0:P.sliderTrack}),r.jsx("div",{className:c.default.sliderProgress,style:e.__assign({width:"".concat(ue,"%")},null==P?void 0:P.sliderProgress)}),r.jsx("div",{className:c.default.sliderThumb,style:e.__assign({left:"".concat(ue,"%")},null==P?void 0:P.sliderThumb)}),se&&!v&&r.jsx("div",e.__assign({className:c.default.timeTooltip,style:e.__assign({left:oe},null==P?void 0:P.timeTooltip)},{children:ve}))]}))]})),r.jsxs("div",e.__assign({className:c.default.timeRow,style:null==P?void 0:P.timeRow},{children:[r.jsx("div",{className:c.default.buttonSpacer,style:null==P?void 0:P.buttonSpacer}),r.jsxs("div",e.__assign({className:c.default.timeText,style:null==P?void 0:P.timeText},{children:[r.jsx("span",{children:Z}),r.jsx("span",{children:"/"}),r.jsx("span",{children:re})]}))]}))]}))}))});v.displayName="SearchWaveform",exports.default=v;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("wavesurfer.js"),n=require("wavesurfer.js/dist/plugins/regions"),u=require("./searchwaveform.module.css.js"),s=require("./icons/PauseIcon.js"),l=require("./icons/PlayIcon.js"),c=require("./store/autoplay.wavefrom.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=a(r),i=a(t),d=a(n);const f=r.forwardRef(({audio_file_name:t,showOnlyMatched:n,setShowOnlyMatched:a,matchedSegments:f,onTimeUpdate:p,currentAudioTime:m,peaks:v,duration:g,setIsAudioPlaying:h,setChevronIndex:y,chevronIndex:S=0,onToggleShowMatched:x,topicId:T,isVideoBuffering:j,playOnlyMatched:w=!0,customStyles:k},R)=>{const[b,P]=r.useState(!1),[C,N]=r.useState(!0),[_,M]=r.useState(!1),[I,q]=r.useState(!1),[$,E]=r.useState(!1),[B,O]=r.useState(!1),[A,D]=r.useState(0),[F,W]=r.useState(!1),[z,H]=r.useState("00:00:00"),[L,U]=r.useState("00:00:00"),[X,V]=r.useState(0),[G,J]=r.useState(!1),[K,Q]=r.useState(0),[Y,Z]=r.useState("00:00:00"),ee=r.useRef(null),re=r.useRef(!1),te=r.useRef(null),ne=r.useRef(null),ue=r.useRef(null),se=r.useRef(!1),le=r.useRef(null),ce=r.useRef(null),ae=r.useRef(0),oe=r.useRef(0),[ie,de]=r.useState(!1),{playTopicId:fe,resetTrigger:pe,pendingPlayRequest:me,setPendingPlayRequest:ve,triggerPlayForTopic:ge}=c.useAudioPlayPause(),he=r.useRef(null),ye=e=>{try{const[r,t,n,u]=e.split(":"),s=parseInt(r).toString().padStart(2,"0"),l=parseInt(t).toString().padStart(2,"0");return`${s}:${l}:${parseInt(n).toString().padStart(2,"0")}`}catch(e){console.log("Error converting formatTimeToHMS",e)}};r.useEffect(()=>{null==a||a(w)},[w]),r.useEffect(()=>{ie&&me===T&&(ve(null),setTimeout(()=>{ge(T)},100))},[ie,me,T]),r.useEffect(()=>{ie&&fe===T&&(he.current&&(he.current.click(),P(!0)),pe())},[fe,T,ie]),r.useEffect(()=>(de(!0),()=>{de(!1)}),[]),r.useEffect(()=>{if(!t||!te.current||se.current)return;N(!0);const e=d.default.create(),r=i.default.create({container:te.current,waveColor:"#D0D5DD",progressColor:"#9CA3AF",cursorColor:"#6B7280",barWidth:2,barRadius:3,height:64,normalize:!0,peaks:[new Float32Array(v)],duration:g,url:t});return ne.current=r,ue.current=r.registerPlugin(e),se.current=!0,r.on("decode",()=>{W(!0),xe();const e=ye(Se(g));U(e||"00:00:00")}),r.on("ready",()=>{N(!1)}),r.on("play",()=>{P(!0),h&&h(!0)}),r.on("pause",()=>{P(!1),h&&h(!1)}),r.on("finish",()=>{P(!1),h&&h(!1),_&&(M(!1),q(!1),E(!0))}),r.on("seeking",()=>{n||_&&!I&&Te()}),r.on("error",()=>{N(!1)}),r.on("audioprocess",e=>{if(p&&p(e),!re.current){V(e/g*100)}const r=ye(Se(e));H(r||"00:00:00"),oe.current=e}),()=>{le.current&&clearTimeout(le.current),ce.current,r.destroy(),se.current=!1,ne.current=null}},[t]),r.useEffect(()=>{ne.current&&(ne.current.setOptions({interact:!n}),b&&ne.current.pause(),n?(M(!0),ae.current=0):Te(),x&&x(n))},[n]);const Se=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")}`},xe=r.useCallback(()=>{ue.current&&ne.current&&(ue.current.clearRegions(),f.forEach((e,r)=>{ue.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})}))},[f]),Te=r.useCallback(()=>{ne.current&&(M(!1),q(!1),E(!1),O(!1),le.current&&(clearTimeout(le.current),le.current=null),ce.current&&(ne.current.un("audioprocess",ce.current),ce.current=null))},[]),je=r.useCallback(e=>{!n&&ne.current&&(ne.current.seekTo(e/g),ne.current.play(),P(!0),h&&h(!0),H(ye(Se(e))),M(!1),q(!1),E(!1))},[n,g,h,Se,ye]),we=r.useRef(!1),ke=r.useCallback(()=>{if(we.current)return;if(!ne.current||!f.length)return;we.current=!0,ne.current.pause();const e=ae.current+1;if(console.log("Current segment:",ae.current),console.log("Next index calculated:",e),console.log("Total segments:",f.length),e<f.length){const r=f[e];H(ye(Se(r.start_time))),y&&y(e),D(e),ae.current=e;const t=n?0:2e3;le.current=setTimeout(()=>{we.current=!1,setTimeout(()=>{if(!ne.current)return;ne.current.seekTo(r.start_time/g),ne.current.play();const e=r.end_time,t=r=>{var n;r>=e&&(null===(n=ne.current)||void 0===n||n.un("audioprocess",t),ce.current=null,ke())};ce.current=t,ne.current.on("audioprocess",t)},100)},t)}else{if(console.log("End of cycle reached, resetting to index 0"),M(n),q(!0),E(!0),ae.current=0,D(0),y&&y(0),f.length>0){const e=f[0];H(ye(Se(e.start_time))),ne.current.seekTo(e.start_time/g)}ne.current.isPlaying()&&ne.current.pause(),le.current=setTimeout(()=>{we.current=!1,ne.current&&ne.current.isPlaying()&&ne.current.pause()},n?0:2e3)}},[f,g,y,Se,n]),Re=r.useCallback(()=>{if(!ne.current||!f.length)return;const e=ae.current;if(e>=f.length)return M(n),void E(!0);const r=f[e];D(e),H(ye(Se(r.start_time))),y&&y(e),setTimeout(()=>{if(!ne.current)return;ne.current.seekTo(r.start_time/g),ne.current.play();const e=r.end_time,t=r=>{var n;r>=e&&(null===(n=ne.current)||void 0===n||n.un("audioprocess",t),ce.current=null,ke())};ce.current=t,ne.current.on("audioprocess",t)},100)},[f,g,y,ke,Se,n]),be=r.useCallback(()=>{if(!ne.current||!f.length)return;ce.current&&(ne.current.un("audioprocess",ce.current),ce.current=null);const e=f[ae.current];if(!e)return;const r=e.end_time,t=e=>{var n;e>=r&&(null===(n=ne.current)||void 0===n||n.un("audioprocess",t),ce.current=null,ke())};ce.current=t,ne.current.on("audioprocess",t)},[f,ke]),Pe=r.useCallback(()=>{ne.current&&(n?b?(ne.current.pause(),q(!0)):I?(ne.current.play(),q(!1),be()):$?(E(!1),ae.current=0,Re()):Re():b?ne.current.pause():ne.current.play())},[b,n,I,$,Re,be]),Ce=r.useCallback(e=>{if(!ne.current||0===f.length)return;const r=b;let t;b&&(ne.current.pause(),q(!0)),ce.current&&(ne.current.un("audioprocess",ce.current),ce.current=null),t="next"===e?(A+1)%f.length:(A-1+f.length)%f.length,D(t),ae.current=t;const u=f[t];ne.current.seekTo(u.start_time/g),y&&y(t),r&&n&&setTimeout(()=>{ne.current&&(ne.current.play(),q(!1),be())},50)},[A,f,y,g,b,n,be]),Ne=r.useCallback(e=>{ne.current&&(n||(_&&Te(),ne.current.seekTo(e/g)))},[g,_,Te,n]);r.useEffect(()=>{if(f.length>0&&void 0!==S&&ne.current&&!we.current){if(S===ae.current)return;const e=b;ce.current&&(ne.current.un("audioprocess",ce.current),ce.current=null);const r=f[S];r&&(ne.current.seekTo(r.start_time/g),D(S),ae.current=S,e&&n&&setTimeout(()=>{ne.current&&be()},50))}},[S,g,f,n,b,be]);const _e=r.useRef(!1);r.useEffect(()=>{j&&ne.current&&ne.current.isPlaying()&&(_e.current=!0,ne.current.pause(),_&&q(!0)),!j&&_e.current&&ne.current&&ne.current&&(ne.current.play(),_e.current=!1,_&&I&&(q(!1),be()))},[j,_,I,be]),o.default.useImperativeHandle(R,()=>({waveSurfer:ne.current,navigateSegments:Ce,togglePlayPause:Pe,getCurrentSegmentIndex:()=>A,setCurrentSegmentIndex:D,isPlayingSequence:()=>_,setPlayingSequence:e=>M(e),seekToTime:Ne,showOnlyMatched:n,setShowOnlyMatched:e=>null==a?void 0:a(e),handleIndividualSegmentPlay:je}),[ne.current,Ce,Pe,A,_,Ne,n,je]);return e.jsx("div",{className:u.default.container,style:null==k?void 0:k.container,children:e.jsxs("div",{className:u.default.inner,style:null==k?void 0:k.inner,children:[e.jsxs("div",{className:u.default.waveformRow,style:null==k?void 0:k.waveformRow,children:[e.jsx("div",{className:u.default.playButtonWrapper,style:null==k?void 0:k.playButtonWrapper,children:e.jsx("button",{ref:he,onClick:Pe,className:u.default.playButton,style:null==k?void 0:k.playButton,title:b?"Pause":"Play",disabled:C,children:C?e.jsx(e.Fragment,{children:"Loading..."}):b?e.jsx("div",{className:u.default.icon,style:null==k?void 0:k.pauseIcon,children:e.jsx(s.default,{})}):e.jsx("div",{className:u.default.icon,style:null==k?void 0:k.playIcon,children:e.jsx(l.default,{})})})}),e.jsx("div",{ref:te,className:u.default.waveform,style:null==k?void 0:k.waveform})]}),e.jsxs("div",{className:u.default.sliderRow,style:null==k?void 0:k.sliderRow,children:[e.jsx("div",{className:u.default.buttonSpacer,style:null==k?void 0:k.buttonSpacer}),e.jsxs("div",{className:`${u.default.slider}\n ${u.default.group}\n ${n?u.default.disabled:u.default.interactive}`,ref:ee,style:null==k?void 0:k.slider,onClick:n?void 0:e=>{var r;if(n)return;const t=null===(r=ee.current)||void 0===r?void 0:r.getBoundingClientRect();if(!t||!ne.current)return;const u=(e.clientX-t.left)/t.width*100,s=u/100*g;V(u),ne.current.seekTo(s/g),_&&Te()},onMouseMove:n?void 0:e=>{if(!n&&ee.current){const r=ee.current.getBoundingClientRect(),t=e.clientX-r.left;if(t>=0&&t<=r.width){const e=t/r.width*100;J(!0),Q(t);const n=ye(Se(e/100*g));Z(n||"00:00:00")}}},onMouseLeave:()=>{J(!1)},onMouseDown:n?void 0:()=>{n||(re.current=!0)},onMouseUp:n?void 0:()=>{if(!n&&(re.current=!1,ne.current)){const e=X/100*g;ne.current.seekTo(e/g),_&&Te()}},children:[e.jsx("div",{className:u.default.sliderTrack,style:null==k?void 0:k.sliderTrack}),e.jsx("div",{className:u.default.sliderProgress,style:{width:`${X}%`,...null==k?void 0:k.sliderProgress}}),e.jsx("div",{className:u.default.sliderThumb,style:{left:`${X}%`,...null==k?void 0:k.sliderThumb}}),G&&!n&&e.jsx("div",{className:u.default.timeTooltip,style:{left:K,...null==k?void 0:k.timeTooltip},children:Y})]})]}),e.jsxs("div",{className:u.default.timeRow,style:null==k?void 0:k.timeRow,children:[e.jsx("div",{className:u.default.buttonSpacer,style:null==k?void 0:k.buttonSpacer}),e.jsxs("div",{className:u.default.timeText,style:null==k?void 0:k.timeText,children:[e.jsx("span",{children:z}),e.jsx("span",{children:"/"}),e.jsx("span",{children:L})]})]})]})})});f.displayName="SearchWaveform",exports.default=f;
2
2
  //# sourceMappingURL=searchwaveform.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),u=t.createContext(void 0);exports.AudioPlayProvider=function(n){var i=n.children,a=t.useState(null),s=a[0],l=a[1],o=t.useState(null),d=o[0],P=o[1],c=t.useState(null),y=c[0],p=c[1];return r.jsx(u.Provider,e.__assign({value:{playTopicId:s,pendingPlayRequest:d,currentPlayingSpeakerId:y,triggerPlayForTopic:function(e){return l(e)},setPendingPlayRequest:P,setCurrentPlayingSpeakerId:p,resetTrigger:function(){return l(null)}}},{children:i}))},exports.useAudioPlayPause=function(){var e=t.useContext(u);if(!e)throw new Error("useAudioPlayPause must be used within an AudioPlayProvider");return e};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react");const t=r.createContext(void 0);exports.AudioPlayProvider=({children:u})=>{const[i,n]=r.useState(null),[s,a]=r.useState(null),[l,o]=r.useState(null);return e.jsx(t.Provider,{value:{playTopicId:i,pendingPlayRequest:s,currentPlayingSpeakerId:l,triggerPlayForTopic:e=>n(e),setPendingPlayRequest:a,setCurrentPlayingSpeakerId:o,resetTrigger:()=>n(null)},children:u})},exports.useAudioPlayPause=()=>{const e=r.useContext(t);if(!e)throw new Error("useAudioPlayPause must be used within an AudioPlayProvider");return e};
2
2
  //# sourceMappingURL=autoplay.wavefrom.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.sortTopicsByCheckedStatus=function(e){return e.sort(function(e,t){var r=e.segmentSelected?1:0;return(t.segmentSelected?1:0)-r})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.sortTopicsByCheckedStatus=e=>e.sort((e,t)=>{const s=e.segmentSelected?1:0;return(t.segmentSelected?1:0)-s});
2
2
  //# sourceMappingURL=word-segment-util.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),n=require("react/jsx-runtime"),e=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("../../ai-reasoning/BigEnoughComponent.js");exports.default=function(o){var r,a,s,c=(null===(r=o.customIcons)||void 0===r?void 0:r.bigEnoughCitationIcon)||n.jsx(n.Fragment,{});return n.jsx(e.default,{inLineCitation:!0,citationTitle:o.title,citationId:"big-enough-".concat(o.citation.citation_number),citationComponent:n.jsx(i.default,{customStyles:o.customStyles,big_enough_decision_factors:o.citation}),chevronDownComponent:c,chevronUpComponent:c,styles:{pillButton:t.__assign({margin:"0px",padding:"0px",fontSize:"14px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(a=o.customStyles)||void 0===a?void 0:a.pill),citationContent:t.__assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(s=o.customStyles)||void 0===s?void 0:s.content)}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../../../CitationRenderer/CitationRenderer.js"),n=require("../../ai-reasoning/BigEnoughComponent.js");exports.default=i=>{var o,r,a;const c=(null===(o=i.customIcons)||void 0===o?void 0:o.bigEnoughCitationIcon)||t.jsx(t.Fragment,{});return t.jsx(e.default,{inLineCitation:!0,citationTitle:i.title,citationId:`big-enough-${i.citation.citation_number}`,citationComponent:t.jsx(n.default,{customStyles:i.customStyles,big_enough_decision_factors:i.citation}),chevronDownComponent:c,chevronUpComponent:c,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=i.customStyles)||void 0===r?void 0:r.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(a=i.customStyles)||void 0===a?void 0:a.content}}})};
2
2
  //# sourceMappingURL=BigEnoughCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),n=require("react/jsx-runtime"),e=require("@e-llm-studio/citation"),i=require("dayjs"),r=require("../../../utils/helpers.js"),o=require("react");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=a(i),s=a(o),u=function(t){var n,e;return null!==(e=null!==(n=t.message)&&void 0!==n?n:t.content)&&void 0!==e?e:""},c=function(t){var n;return null!==(n=t.highlighted_text)&&void 0!==n?n:""},m=function(t,n){if(t.length!==n.length)return!1;for(var e=0;e<t.length;e+=1){var i=t[e],r=n[e];if(i.role!==r.role)return!1;if(u(i)!==u(r))return!1;if(c(i)!==c(r))return!1;if((i.timeStamp?String(i.timeStamp):"")!==(r.timeStamp?String(r.timeStamp):""))return!1}return!0},d=function(t){var n;return null==t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(d).join(""):s.default.isValidElement(t)?d(null===(n=t.props)||void 0===n?void 0:n.children):""},f=o.memo(function(i){var a,s,d=o.useCallback(function(){var t;null===(t=i.onCitationClick)||void 0===t||t.call(i,i.isTable)},[i.onCitationClick,i.isTable]),f=i.chatCitationProps,p=null!=f?f:{},h=p.chatContainer,v=p.rootContainer,g=t.__rest(p,["chatContainer","rootContainer"]),C=o.useRef(null),_=o.useRef([]);C.current&&m(C.current,i.chatHistory)||(C.current=i.chatHistory,_.current=i.chatHistory.map(function(n){var e=u(n),i=c(n);return t.__assign(t.__assign({},n),{message:r.stripHtmlAndMetadata(e),timeStamp:l.default(n.timeStamp),highlighted_text:r.stripHtmlAndMetadata(i)})}));var y=_.current,S=o.useMemo(function(){return t.__assign({relevanceScore:100},v)},[v]),b=o.useMemo(function(){return t.__assign(t.__assign({summarizedTab:{chip:{show:!1,isActive:!1}},detailedTab:{chip:{isActive:!0}}},h),{chatData:y})},[h,y]),x=o.useMemo(function(){var n,e;return{pillButton:t.__assign({fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none"},null===(n=i.customStyles)||void 0===n?void 0:n.pill),citationContent:t.__assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",color:"black"},null===(e=i.customStyles)||void 0===e?void 0:e.content)}},[i.customStyles]),j=o.useMemo(function(){return n.jsx(e.ChatCitation,t.__assign({rootContainer:S,chatContainer:b},g))},[S,b]);return n.jsx("span",t.__assign({onClickCapture:d},{children:n.jsx(e.CitationRenderer,{inLineCitation:!0,citationTitle:i.title,chevronUpComponent:null===(a=i.customIcon)||void 0===a?void 0:a.chevronUp,chevronDownComponent:null===(s=i.customIcon)||void 0===s?void 0:s.chevronDown,citationComponent:j,styles:x})}))},function(t,n){return t.isTable===n.isTable&&(t.onCitationClick===n.onCitationClick&&(t.customIcon===n.customIcon&&(t.customStyles===n.customStyles&&(t.chatCitationProps===n.chatCitationProps&&(!!m(t.chatHistory,n.chatHistory)&&d(t.title)===d(n.title))))))});exports.default=f;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("@e-llm-studio/citation"),i=require("dayjs"),n=require("../../../utils/helpers.js"),r=require("react");function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=o(i),l=o(r);const c=t=>{var e,i;return null!==(i=null!==(e=t.message)&&void 0!==e?e:t.content)&&void 0!==i?i:""},s=t=>{var e;return null!==(e=t.highlighted_text)&&void 0!==e?e:""},u=(t,e)=>{if(t.length!==e.length)return!1;for(let i=0;i<t.length;i+=1){const n=t[i],r=e[i];if(n.role!==r.role)return!1;if(c(n)!==c(r))return!1;if(s(n)!==s(r))return!1;if((n.timeStamp?String(n.timeStamp):"")!==(r.timeStamp?String(r.timeStamp):""))return!1}return!0},m=t=>{var e;return null==t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(m).join(""):l.default.isValidElement(t)?m(null===(e=t.props)||void 0===e?void 0:e.children):""};var d=r.memo(i=>{var o,l;const m=r.useCallback(()=>{var t;null===(t=i.onCitationClick)||void 0===t||t.call(i,i.isTable)},[i.onCitationClick,i.isTable]),d=i.chatCitationProps,{chatContainer:p,rootContainer:h,...v}=null!=d?d:{},f=r.useRef(null),C=r.useRef([]);f.current&&u(f.current,i.chatHistory)||(f.current=i.chatHistory,C.current=i.chatHistory.map(t=>{const e=c(t),i=s(t);return{...t,message:n.stripHtmlAndMetadata(e),timeStamp:a.default(t.timeStamp),highlighted_text:n.stripHtmlAndMetadata(i)}}));const g=C.current,y=r.useMemo(()=>({relevanceScore:100,...h}),[h]),S=r.useMemo(()=>({summarizedTab:{chip:{show:!1,isActive:!1}},detailedTab:{chip:{isActive:!0}},...p,chatData:g}),[p,g]),b=r.useMemo(()=>{var t,e;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=i.customStyles)||void 0===t?void 0:t.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",color:"black",...null===(e=i.customStyles)||void 0===e?void 0:e.content}}},[i.customStyles]),x=r.useMemo(()=>t.jsx(e.ChatCitation,{rootContainer:y,chatContainer:S,...v}),[y,S]);return t.jsx("span",{onClickCapture:m,children:t.jsx(e.CitationRenderer,{inLineCitation:!0,citationTitle:i.title,chevronUpComponent:null===(o=i.customIcon)||void 0===o?void 0:o.chevronUp,chevronDownComponent:null===(l=i.customIcon)||void 0===l?void 0:l.chevronDown,citationComponent:x,styles:b})})},(t,e)=>t.isTable===e.isTable&&(t.onCitationClick===e.onCitationClick&&(t.customIcon===e.customIcon&&(t.customStyles===e.customStyles&&(t.chatCitationProps===e.chatCitationProps&&(!!u(t.chatHistory,e.chatHistory)&&m(t.title)===m(e.title)))))));exports.default=d;
2
2
  //# sourceMappingURL=ChatCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),e=require("react/jsx-runtime");exports.default=function(s){return e.jsx("div",C.__assign({className:"mb-2"},{children:e.jsxs("svg",C.__assign({},s,{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("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"}),e.jsx("path",{d:"M7 2V4L14.4726 4V2L7 2Z",fill:"#5C75F4"}),e.jsx("path",{d:"M18 19H20V13H18V19Z",fill:"#5C75F4"}),e.jsx("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"}),e.jsx("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"})]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("react/jsx-runtime");exports.default=e=>C.jsx("div",{className:"mb-2",children:C.jsxs("svg",{...e,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("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.jsx("path",{d:"M7 2V4L14.4726 4V2L7 2Z",fill:"#5C75F4"}),C.jsx("path",{d:"M18 19H20V13H18V19Z",fill:"#5C75F4"}),C.jsx("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.jsx("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"})]})});
2
2
  //# sourceMappingURL=DocumentCitationIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),i=require("./FileCitationContent.module.css.js"),n=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),s=require("../../../shared/CitationAIConfidenceDisplay.js");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}exports.default=function(a){var o,u,d,c,f,v,p=n.useRequirementAI().apiCachingConfig,g=p.queryClient,h=p.useGetSignedUrlQuery,y=p.useGetSignedUrlMutation,m=["getSignedUrl",a.gsUtilPath],_=h(a.gsUtilPath,m).data,j=y(a.gsUtilPath),P=j.mutate,x=j.isPending,C=r.useState(null),S=C[0],U=C[1],w=r.useState(null),b=w[0],q=w[1];r.useEffect(function(){Promise.resolve().then(function(){return l(require("@react-pdf-viewer/core"))}).then(function(e){U({Worker:e.Worker,Viewer:e.Viewer})}).catch(function(){q("@react-pdf-viewer/core is not installed. Run: npm install @react-pdf-viewer/core")})},[]),r.useEffect(function(){a.gsUtilPath?g.getQueryData(m)||x||P({gsUtilPath:a.gsUtilPath}):console.error("error","Error","Please provide valid gsUtilPath.")},[a.gsUtilPath,g,m,x]);return t.jsxs("div",e.__assign({className:i.default.bookCitationContentContainer,style:null===(o=a.customStyles)||void 0===o?void 0:o.container},{children:[t.jsxs("div",e.__assign({className:i.default.header,style:null===(u=a.customStyles)||void 0===u?void 0:u.header},{children:[t.jsx("h2",e.__assign({className:i.default.title,style:null===(d=a.customStyles)||void 0===d?void 0:d.title},{children:a.title})),s.renderCitationAIConfidenceDisplay(a.relevanceScore,!0,null===(c=a.customStyles)||void 0===c?void 0:c.confidenceDisplay)]})),t.jsx("div",e.__assign({className:i.default.previewContainer,style:null===(f=a.customStyles)||void 0===f?void 0:f.previewContainer},{children:"book_citation_pdf"===a.fileType&&t.jsx("div",e.__assign({className:i.default.pdfWrapper,style:null===(v=a.customStyles)||void 0===v?void 0:v.pdfWrapper},{children:!x&&_&&function(r){var i;if(b)return t.jsx("div",e.__assign({style:e.__assign({color:"red",fontSize:"12px"},null===(i=a.customStyles)||void 0===i?void 0:i.errorText)},{children:b}));if(!S)return t.jsx("div",{children:"Loading PDF viewer..."});var n=S.Worker,s=S.Viewer;return t.jsx(n,e.__assign({workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js"},{children:t.jsx(s,{fileUrl:r})}))}(_)}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("./FileCitationContent.module.css.js"),i=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),l=require("../../../shared/CitationAIConfidenceDisplay.js");function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}exports.default=s=>{var o,a,d,u,c,f;const{queryClient:v,useGetSignedUrlQuery:p,useGetSignedUrlMutation:h}=i.useRequirementAI().apiCachingConfig,y=["getSignedUrl",s.gsUtilPath],{data:m}=p(s.gsUtilPath,y),{mutate:g,isPending:j}=h(s.gsUtilPath),[P,x]=t.useState(null),[C,S]=t.useState(null);t.useEffect(()=>{Promise.resolve().then(function(){return n(require("@react-pdf-viewer/core"))}).then(e=>{x({Worker:e.Worker,Viewer:e.Viewer})}).catch(()=>{S("@react-pdf-viewer/core is not installed. Run: npm install @react-pdf-viewer/core")})},[]),t.useEffect(()=>{if(!s.gsUtilPath)return void console.error("error","Error","Please provide valid gsUtilPath.");v.getQueryData(y)||j||g({gsUtilPath:s.gsUtilPath})},[s.gsUtilPath,v,y,j]);return e.jsxs("div",{className:r.default.bookCitationContentContainer,style:null===(o=s.customStyles)||void 0===o?void 0:o.container,children:[e.jsxs("div",{className:r.default.header,style:null===(a=s.customStyles)||void 0===a?void 0:a.header,children:[e.jsx("h2",{className:r.default.title,style:null===(d=s.customStyles)||void 0===d?void 0:d.title,children:s.title}),l.renderCitationAIConfidenceDisplay(s.relevanceScore,!0,null===(u=s.customStyles)||void 0===u?void 0:u.confidenceDisplay)]}),e.jsx("div",{className:r.default.previewContainer,style:null===(c=s.customStyles)||void 0===c?void 0:c.previewContainer,children:"book_citation_pdf"===s.fileType&&e.jsx("div",{className:r.default.pdfWrapper,style:null===(f=s.customStyles)||void 0===f?void 0:f.pdfWrapper,children:!j&&m&&(t=>{var r;if(C)return e.jsx("div",{style:{color:"red",fontSize:"12px",...null===(r=s.customStyles)||void 0===r?void 0:r.errorText},children:C});if(!P)return e.jsx("div",{children:"Loading PDF viewer..."});const{Worker:i,Viewer:l}=P;return e.jsx(i,{workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js",children:e.jsx(l,{fileUrl:t})})})(m)})})]})};
2
2
  //# sourceMappingURL=FileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),o=require("../../../../CitationRenderer/CitationRenderer.js"),e=require("./FileCitationContent.js"),n=require("./DocumentCitationIcon.js");exports.default=function(a){var c,l,r,d,s,u,p,m,f=(null===(c=a.customIcons)||void 0===c?void 0:c.fileCitationIcon)||i.jsx(n.default,{});return i.jsx(o.default,{inLineCitation:!0,citationTitle:a.title,citationId:"file-citation-".concat(a.citation.citation_number),citationComponent:i.jsx(e.default,{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===(s=a.citation.customMetadata)||void 0===s?void 0:s.type,relevanceScore:null===(u=a.citation.customMetadata)||void 0===u?void 0:u.relevance_score,customStyles:a.customStyles}),chevronDownComponent:f,chevronUpComponent:f,styles:{pillButton:t.__assign({fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none"},null===(p=a.customStyles)||void 0===p?void 0:p.pill),citationContent:t.__assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(m=a.customStyles)||void 0===m?void 0:m.content)}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),i=require("../../../../CitationRenderer/CitationRenderer.js"),o=require("./FileCitationContent.js"),e=require("./DocumentCitationIcon.js");exports.default=n=>{var a,c,l,r,d,u,s,p;const m=(null===(a=n.customIcons)||void 0===a?void 0:a.fileCitationIcon)||t.jsx(e.default,{});return t.jsx(i.default,{inLineCitation:!0,citationTitle:n.title,citationId:`file-citation-${n.citation.citation_number}`,citationComponent:t.jsx(o.default,{title:"book_citation_doc"===n.citation.customMetadata.type||"book_citation_pdf"===n.citation.customMetadata.type?`${null!==(l=null===(c=n.citation.customMetadata)||void 0===c?void 0:c.file_name)&&void 0!==l?l:""}`:"",gsUtilPath:"book_citation_doc"===n.citation.customMetadata.type||"book_citation_pdf"===n.citation.customMetadata.type?null===(r=n.citation.customMetadata)||void 0===r?void 0:r.gcs_upload_url:"",fileType:null===(d=n.citation.customMetadata)||void 0===d?void 0:d.type,relevanceScore:null===(u=n.citation.customMetadata)||void 0===u?void 0:u.relevance_score,customStyles:n.customStyles}),chevronDownComponent:m,chevronUpComponent:m,styles:{pillButton:{fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none",...null===(s=n.customStyles)||void 0===s?void 0:s.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(p=n.customStyles)||void 0===p?void 0:p.content}}})};
2
2
  //# sourceMappingURL=FileCitationRender.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("../web-citation/WebCitationIcon.js"),n=require("./GptWebcitationPanel.js");exports.default=o=>{var r,a,c;const l=(null===(r=o.customIcons)||void 0===r?void 0:r.webCitationIcon)||t.jsx(i.default,{});return t.jsx(e.default,{inLineCitation:!0,citationTitle:o.title,citationId:`gpt-web-citation-${o.citation.citation_number}`,citationComponent:t.jsx(n.default,{citation:o.citation,content:o.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===(a=o.customStyles)||void 0===a?void 0:a.pill},citationContent:{width:"100%",background:"transparent",color:"black",minHeight:"10px",height:"fit-content",...null===(c=o.customStyles)||void 0===c?void 0:c.content}}})};
2
+ //# sourceMappingURL=GptWebCitationRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GptWebCitationRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("@e-llm-studio/citation"),i=require("react"),o=require("lucide-react"),n=require("../../RequirementAIWrapper/RequirementAIWrapper.js");const a={MaximizeIcon:o.Maximize2,ExternalLinkIcon:o.ExternalLink};exports.default=({citation:r,content:l})=>{var u,c;const[s,d]=i.useState(),p=null===(u=null==r?void 0:r.customMetadata)||void 0===u?void 0:u.value,v=(null==p?void 0:p.paraphrase)||(null==p?void 0:p.label)||"Web Citation";const C=i.useMemo(()=>`Source: Web Citation > ${v}`,[v]),m=i.useMemo(()=>function(t){if(t)try{const e=new URL(t).hostname.replace(/^www\./i,""),i=e.split(".")[0];return i?i.charAt(0).toUpperCase()+i.slice(1):e}catch(t){return}}(null==p?void 0:p.citationUrl),[null==p?void 0:p.citationUrl]),[b,h]=i.useState(!0),[x,g]=i.useState("pending"),w=b,{getGptWebCitation:W,gptWebCitationPartialPayload:y}=n.useRequirementAI().apiCachingConfig,{displayMode:I}=(null===(c=n.useRequirementAI().citationConfig)||void 0===c?void 0:c.gptWeb)||{},f={item:{text:"",dataSource:(null==p?void 0:p.text)||"",paraphrase:(null==p?void 0:p.paraphrase)||""},headerTitle:(null==p?void 0:p.label)||"",index:0,iconsConfig:{ChevronDownIcon:o.ChevronDown,ChevronUpIcon:o.ChevronUp,MaximizeIcon:o.Maximize2,CloseIcon:o.X}},M=async()=>{var t;try{h(!0);const e={...y,citationId:null==p?void 0:p.citation_uuid,citationUrl:null==p?void 0:p.citationUrl,content:l||(null==p?void 0:p.text),citationType:null==p?void 0:p.citationType,citatioNumber:Number(null===(t=null==r?void 0:r.customMetadata)||void 0===t?void 0:t.citation_number)};console.log("Generating GPT-Web Citation with payload:",e);const i=await(null==W?void 0:W(e));d(null==i?void 0:i.data),g("success")}catch(t){g("error"),console.error("Error in GPT-Web Citation",t)}};i.useEffect(()=>{I!==e.CitationType.GPT&&(I!==e.CitationType.GPT_WEB||w)&&M()},[I,w]);return t.jsx(e.GptWebCitation,{gptCitation:f,defaultCitationUrl:(null==p?void 0:p.citationUrl)||"",citationType:I||"web",webCitationData:s,sourceLabel:C,learnedFrom:m,showWebCitation:w,webCitationStatus:x,onGenerateWebCitation:M,onToggleCitationView:()=>{b?h(!1):M()},showExpandImageButton:!0,showGptMaximizeButton:!0,iconsConfig:a,isFixedHeight:!1})};
2
+ //# sourceMappingURL=GptWebcitationPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GptWebcitationPanel.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("react"),t=require("@mui/material"),a=require("./ImageCitationContent.module.css.js"),r=require("../../../shared/CitationAIConfidenceDisplay.js"),l=require("../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(n){var o,u,d,c,g,m,v,h=l.useRequirementAI().apiCachingConfig,y=h.queryClient,f=h.useGetSignedUrlQuery,p=h.useGetSignedUrlMutation,x=["getSignedUrl",n.gsUtilPath],C=f(n.gsUtilPath,x).data,j=p(n.gsUtilPath),q=j.mutate,P=j.isPending;return s.useEffect(function(){n.gsUtilPath?y.getQueryData(x)||q({gsUtilPath:n.gsUtilPath}):console.error("Error -> ImageCitationContent: gsUtilPath is required to fetch signed URL")},[n.gsUtilPath]),i.jsxs("div",e.__assign({className:a.default.container,style:null===(o=n.customStyles)||void 0===o?void 0:o.container},{children:[i.jsxs("div",e.__assign({className:a.default.header,style:null===(u=n.customStyles)||void 0===u?void 0:u.header},{children:[i.jsx("h2",e.__assign({className:a.default.title,style:null===(d=n.customStyles)||void 0===d?void 0:d.title},{children:"Visual Reference"})),r.renderCitationAIConfidenceDisplay(n.relevanceScore,!0,null===(c=n.customStyles)||void 0===c?void 0:c.confidenceDisplay)]})),P?i.jsxs("div",e.__assign({className:a.default.loadingWrapper,style:null===(g=n.customStyles)||void 0===g?void 0:g.loadingWrapper},{children:[i.jsx(t.CircularProgress,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),i.jsx("span",e.__assign({className:a.default.loadingText,style:null===(m=n.customStyles)||void 0===m?void 0:m.loadingText},{children:"Loading Image..."}))]})):C&&i.jsx("img",{className:a.default.image,src:C,alt:"images",style:null===(v=n.customStyles)||void 0===v?void 0:v.image})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),i=require("@mui/material"),s=require("./ImageCitationContent.module.css.js"),r=require("../../../shared/CitationAIConfidenceDisplay.js"),l=require("../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=a=>{var n,o,d,u,c,g,m;const{queryClient:v,useGetSignedUrlQuery:h,useGetSignedUrlMutation:y}=l.useRequirementAI().apiCachingConfig,f=["getSignedUrl",a.gsUtilPath],{data:p}=h(a.gsUtilPath,f),{mutate:x,isPending:C}=y(a.gsUtilPath);return t.useEffect(()=>{if(!a.gsUtilPath)return void console.error("Error -> ImageCitationContent: gsUtilPath is required to fetch signed URL");v.getQueryData(f)||x({gsUtilPath:a.gsUtilPath})},[a.gsUtilPath]),e.jsxs("div",{className:s.default.container,style:null===(n=a.customStyles)||void 0===n?void 0:n.container,children:[e.jsxs("div",{className:s.default.header,style:null===(o=a.customStyles)||void 0===o?void 0:o.header,children:[e.jsx("h2",{className:s.default.title,style:null===(d=a.customStyles)||void 0===d?void 0:d.title,children:"Visual Reference"}),r.renderCitationAIConfidenceDisplay(a.relevanceScore,!0,null===(u=a.customStyles)||void 0===u?void 0:u.confidenceDisplay)]}),C?e.jsxs("div",{className:s.default.loadingWrapper,style:null===(c=a.customStyles)||void 0===c?void 0:c.loadingWrapper,children:[e.jsx(i.CircularProgress,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),e.jsx("span",{className:s.default.loadingText,style:null===(g=a.customStyles)||void 0===g?void 0:g.loadingText,children:"Loading Image..."})]}):p&&e.jsx("img",{className:s.default.image,src:p,alt:"images",style:null===(m=a.customStyles)||void 0===m?void 0:m.image})]})};
2
2
  //# sourceMappingURL=ImageCitationContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),e=require("react/jsx-runtime");exports.default=function(s){return e.jsx("div",C.__assign({className:"mb-2"},{children:e.jsx("svg",C.__assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("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"})}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("react/jsx-runtime");exports.default=e=>C.jsx("div",{className:"mb-2",children:C.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("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"})})});
2
2
  //# sourceMappingURL=ImageCitationIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),i=require("../../../../CitationRenderer/CitationRenderer.js"),n=require("./ImageCitationContent.js"),o=require("./ImageCitationIcon.js");exports.default=function(a){var r,c,l,s,u=(null===(r=a.customIcons)||void 0===r?void 0:r.imageCitationIcon)||e.jsx(o.default,{});return e.jsx(i.default,{inLineCitation:!0,citationTitle:a.title,citationId:"image-citation-".concat(a.citation.citation_number),citationComponent:e.jsx(n.default,{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:u,chevronUpComponent:u,styles:{pillButton:t.__assign({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.__assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(s=a.customStyles)||void 0===s?void 0:s.content)}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("./ImageCitationContent.js"),n=require("./ImageCitationIcon.js");exports.default=o=>{var a,r,c,l;const s=(null===(a=o.customIcons)||void 0===a?void 0:a.imageCitationIcon)||t.jsx(n.default,{});return t.jsx(e.default,{inLineCitation:!0,citationTitle:o.title,citationId:`image-citation-${o.citation.citation_number}`,citationComponent:t.jsx(i.default,{gsUtilPath:"image_citation"===o.citation.customMetadata.type?o.citation.customMetadata.gs_util_url:"",relevanceScore:null===(r=o.citation.customMetadata)||void 0===r?void 0:r.relevance_score,customStyles:o.customStyles}),chevronDownComponent:s,chevronUpComponent:s,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=o.customStyles)||void 0===c?void 0:c.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(l=o.customStyles)||void 0===l?void 0:l.content}}})};
2
2
  //# sourceMappingURL=ImageCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),n=require("react"),t=require("../appmod-citation/icons/AppmodIcon.js"),l=require("../appmod-citation/types.js"),i=require("./RCACitationContent.module.css.js"),o=require("../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=r(n),c=function(a,n,t){if(!n||!a.includes(n))return a;var i=a.split(n),o={backgroundColor:l.DEFAULT_HIGHLIGHT_THEME.background,color:l.DEFAULT_HIGHLIGHT_THEME.text,padding:"2px 3px",borderRadius:"2px"};return s.jsx(s.Fragment,{children:i.map(function(a,l){return s.jsxs(d.default.Fragment,{children:[a,l<i.length-1&&s.jsx("span",e.__assign({style:e.__assign(e.__assign({},o),t)},{children:n}))]},l)})})},u=function(n){var t=n.extracts,l=n.customStyles,o=n.customIcon;return t&&0!==t.length?s.jsxs("div",e.__assign({className:i.default.extractPanel,style:null==l?void 0:l.extractPanel},{children:[s.jsxs("div",e.__assign({className:i.default.extractPanelHeader,style:null==l?void 0:l.extractPanelHeader},{children:[s.jsx("span",e.__assign({style:null==l?void 0:l.extractPanelHeaderIcon},{children:o||s.jsx(a.NotebookIcon,{className:i.default.extractPanelHeaderIcon})})),s.jsx("span",e.__assign({className:i.default.extractPanelHeaderTitle,style:null==l?void 0:l.extractPanelHeaderTitle},{children:"Extracted from Requirement Finalization"}))]})),s.jsx("div",e.__assign({className:i.default.extractList,style:null==l?void 0:l.extractList},{children:t.map(function(a,n){return s.jsxs("div",e.__assign({className:i.default.extractItem,style:null==l?void 0:l.extractItem},{children:[s.jsx("p",e.__assign({className:i.default.extractSubheading,style:null==l?void 0:l.extractSubheading},{children:a.subheading})),s.jsx("p",e.__assign({className:i.default.extractContent,style:null==l?void 0:l.extractContent},{children:a.content}))]}),n)})}))]})):null};exports.default=function(l){var r,d=l.citation,_=l.customStyles,x=l.customIcons,v=l.isLoading,g=void 0!==v&&v,h=n.useRef(null),m=d.customMetadata.assistant_answer||"",f=d.customMetadata.assistant_question||"",j=d.customMetadata.assistant_answer_highlight_content,p=d.customMetadata.relevance_score,y=d.customMetadata.requirement_plan_extract||[],I=(null==x?void 0:x.rcaNotebookIcon)||s.jsx(a.NotebookIcon,{className:i.default.headerIcon}),N=(null==x?void 0:x.rcaMessageIcon)||s.jsx(a.MessageCircleIcon,{className:i.default.conversationPanelHeaderIcon}),q=(null==x?void 0:x.rcaQuestionIcon)||s.jsx(t.AppModIcon,{className:i.default.questionIcon}),H=(null==_?void 0:_.highlight)?{backgroundColor:_.highlight.background,color:_.highlight.text}:void 0;return s.jsxs("div",e.__assign({ref:h,className:i.default.container,style:null==_?void 0:_.container},{children:[s.jsxs("div",e.__assign({className:i.default.header,style:null==_?void 0:_.header},{children:[s.jsxs("div",e.__assign({className:i.default.headerLeft,style:null==_?void 0:_.headerLeft},{children:[s.jsx("span",e.__assign({style:null==_?void 0:_.headerIcon},{children:I})),s.jsx("span",e.__assign({className:i.default.headerTitle,style:null==_?void 0:_.headerTitle},{children:"Requirement Clarification"}))]})),o.renderAIConfidenceDisplay(p,null==_?void 0:_.confidenceDisplay)]})),s.jsxs("div",e.__assign({className:i.default.rcaContainer,style:null==_?void 0:_.rcaContainer},{children:[s.jsxs("div",e.__assign({className:i.default.conversationPanel,style:null==_?void 0:_.conversationPanel},{children:[s.jsxs("div",e.__assign({className:i.default.conversationPanelHeader,style:null==_?void 0:_.conversationPanelHeader},{children:[s.jsx("span",e.__assign({style:null==_?void 0:_.conversationPanelHeaderIcon},{children:N})),s.jsx("span",e.__assign({className:i.default.conversationPanelHeaderTitle,style:null==_?void 0:_.conversationPanelHeaderTitle},{children:"User Conversation"}))]})),s.jsxs("div",e.__assign({className:i.default.questionRow,style:null==_?void 0:_.questionRow},{children:[s.jsx("span",e.__assign({style:null==_?void 0:_.questionIcon},{children:q})),s.jsx("span",e.__assign({className:i.default.questionText,style:null==_?void 0:_.questionText},{children:f||"Ask question to get response"}))]})),s.jsx("p",e.__assign({className:i.default.answerLabel,style:null==_?void 0:_.answerLabel},{children:"Me"})),s.jsx("div",e.__assign({className:i.default.answerBox,style:null==_?void 0:_.answerBox},{children:g?s.jsx("span",e.__assign({className:i.default.loadingText,style:null===(r=null==_?void 0:_.loading)||void 0===r?void 0:r.text},{children:"Generating..."})):c(m,j,H)}))]})),y.length>0&&s.jsx(u,{extracts:y,customStyles:_,customIcon:I})]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("lucide-react"),t=require("react"),l=require("../appmod-citation/icons/AppmodIcon.js"),n=require("../appmod-citation/types.js"),s=require("./RCACitationContent.module.css.js"),i=require("../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=o(t);const d=(a,t,l)=>{if(!t||!a.includes(t))return a;const s=a.split(t),i={backgroundColor:n.DEFAULT_HIGHLIGHT_THEME.background,color:n.DEFAULT_HIGHLIGHT_THEME.text,padding:"2px 3px",borderRadius:"2px"};return e.jsx(e.Fragment,{children:s.map((a,n)=>e.jsxs(r.default.Fragment,{children:[a,n<s.length-1&&e.jsx("span",{style:{...i,...l},children:t})]},n))})},c=({extracts:t,customStyles:l,customIcon:n})=>t&&0!==t.length?e.jsxs("div",{className:s.default.extractPanel,style:null==l?void 0:l.extractPanel,children:[e.jsxs("div",{className:s.default.extractPanelHeader,style:null==l?void 0:l.extractPanelHeader,children:[e.jsx("span",{style:null==l?void 0:l.extractPanelHeaderIcon,children:n||e.jsx(a.NotebookIcon,{className:s.default.extractPanelHeaderIcon})}),e.jsx("span",{className:s.default.extractPanelHeaderTitle,style:null==l?void 0:l.extractPanelHeaderTitle,children:"Extracted from Requirement Finalization"})]}),e.jsx("div",{className:s.default.extractList,style:null==l?void 0:l.extractList,children:t.map((a,t)=>e.jsxs("div",{className:s.default.extractItem,style:null==l?void 0:l.extractItem,children:[e.jsx("p",{className:s.default.extractSubheading,style:null==l?void 0:l.extractSubheading,children:a.subheading}),e.jsx("p",{className:s.default.extractContent,style:null==l?void 0:l.extractContent,children:a.content})]},t))})]}):null;exports.default=({citation:n,customStyles:o,customIcons:r,isLoading:u=!1})=>{var x;const v=t.useRef(null),h=n.customMetadata.assistant_answer||"",m=n.customMetadata.assistant_question||"",f=n.customMetadata.assistant_answer_highlight_content,j=n.customMetadata.relevance_score,p=n.customMetadata.requirement_plan_extract||[],y=(null==r?void 0:r.rcaNotebookIcon)||e.jsx(a.NotebookIcon,{className:s.default.headerIcon}),g=(null==r?void 0:r.rcaMessageIcon)||e.jsx(a.MessageCircleIcon,{className:s.default.conversationPanelHeaderIcon}),I=(null==r?void 0:r.rcaQuestionIcon)||e.jsx(l.AppModIcon,{className:s.default.questionIcon}),N=(null==o?void 0:o.highlight)?{backgroundColor:o.highlight.background,color:o.highlight.text}:void 0;return e.jsxs("div",{ref:v,className:s.default.container,style:null==o?void 0:o.container,children:[e.jsxs("div",{className:s.default.header,style:null==o?void 0:o.header,children:[e.jsxs("div",{className:s.default.headerLeft,style:null==o?void 0:o.headerLeft,children:[e.jsx("span",{style:null==o?void 0:o.headerIcon,children:y}),e.jsx("span",{className:s.default.headerTitle,style:null==o?void 0:o.headerTitle,children:"Requirement Clarification"})]}),i.renderAIConfidenceDisplay(j,null==o?void 0:o.confidenceDisplay)]}),e.jsxs("div",{className:s.default.rcaContainer,style:null==o?void 0:o.rcaContainer,children:[e.jsxs("div",{className:s.default.conversationPanel,style:null==o?void 0:o.conversationPanel,children:[e.jsxs("div",{className:s.default.conversationPanelHeader,style:null==o?void 0:o.conversationPanelHeader,children:[e.jsx("span",{style:null==o?void 0:o.conversationPanelHeaderIcon,children:g}),e.jsx("span",{className:s.default.conversationPanelHeaderTitle,style:null==o?void 0:o.conversationPanelHeaderTitle,children:"User Conversation"})]}),e.jsxs("div",{className:s.default.questionRow,style:null==o?void 0:o.questionRow,children:[e.jsx("span",{style:null==o?void 0:o.questionIcon,children:I}),e.jsx("span",{className:s.default.questionText,style:null==o?void 0:o.questionText,children:m||"Ask question to get response"})]}),e.jsx("p",{className:s.default.answerLabel,style:null==o?void 0:o.answerLabel,children:"Me"}),e.jsx("div",{className:s.default.answerBox,style:null==o?void 0:o.answerBox,children:u?e.jsx("span",{className:s.default.loadingText,style:null===(x=null==o?void 0:o.loading)||void 0===x?void 0:x.text,children:"Generating..."}):d(h,f,N)})]}),p.length>0&&e.jsx(c,{extracts:p,customStyles:o,customIcon:y})]})]})};
2
2
  //# sourceMappingURL=RCACitationContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),n=require("react/jsx-runtime"),i=require("../../../../CitationRenderer/CitationRenderer.js"),e=require("../appmod-citation/icons/ChatBubbleIcon.js"),o=require("./RCACitationContent.js");exports.default=function(a){var r=a.title,s=a.citation,c=a.customStyles,l=a.customIcons,u=a.isLoading,p=void 0!==u&&u,d=(null==l?void 0:l.rcaCitationIcon)||n.jsx(e.ChatBubbleIcon,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),m=r+"⁠";return n.jsx(i.default,{inLineCitation:!0,citationTitle:m,citationIcon:n.jsx(n.Fragment,{}),citationId:"rca-".concat(s.citation_number),citationComponent:n.jsx(o.default,{citation:s,customStyles:c,customIcons:l,isLoading:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:t.__assign({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"}}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),n=require("../../../../CitationRenderer/CitationRenderer.js"),e=require("../appmod-citation/icons/ChatBubbleIcon.js"),i=require("./RCACitationContent.js");exports.default=({title:o,citation:a,customStyles:r,customIcons:s,isLoading:c=!1})=>{const l=(null==s?void 0:s.rcaCitationIcon)||t.jsx(e.ChatBubbleIcon,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),u=o+"⁠";return t.jsx(n.default,{inLineCitation:!0,citationTitle:u,citationIcon:t.jsx(t.Fragment,{}),citationId:`rca-${a.citation_number}`,citationComponent:t.jsx(i.default,{citation:a,customStyles:r,customIcons:s,isLoading:c}),chevronDownComponent:l,chevronUpComponent:l,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==r?void 0:r.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
2
2
  //# sourceMappingURL=RCACitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("@exuanbo/file-icons-js"),r=require("lucide-react"),s=require("../../../../UserStoryImport/lib/cn.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(n),l=!1;exports.default=function(n){var a=this,u=n.name,o=n.size,f=void 0===o?"12px":o,d=n.className,m=i.useState(d||""),h=m[0],x=m[1];return i.useEffect(function(){e.__awaiter(a,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,c.default.getClass(u,{array:!0})];case 1:return t=e.sent(),x(t.join(" ")),[2]}})})},[u]),i.useEffect(function(){if(!l){var e=document.createElement("style");e.innerHTML="\n .custom-file-icon::before {\n font-size: inherit !important;\n }\n ",document.head.appendChild(e),l=!0}},[]),u.includes(".txt")?t.jsx(r.File,{className:s.cn("w-3 h-3 mr-2 text-muted",d)}):u.includes(".pdf")?t.jsx(r.FileText,{className:s.cn("w-3 h-3 mr-2 text-destructive",d)}):t.jsx("span",e.__assign({className:"mt-0",style:{width:f,height:f,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top"}},{children:h?t.jsx("i",{className:s.cn("custom-file-icon",h,d),style:{fontSize:f,height:f,display:"inline-flex",alignItems:"center",lineHeight:1}}):t.jsx(r.File,{className:s.cn("text-muted",d),width:f,height:f})}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),i=require("@exuanbo/file-icons-js"),n=require("lucide-react"),s=require("../../../../UserStoryImport/lib/cn.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=r(i);let a=!1;exports.default=function({name:i,size:r="12px",className:l}){const[u,o]=t.useState(l||"");return t.useEffect(()=>{(async()=>{const e=await c.default.getClass(i,{array:!0});o(e.join(" "))})()},[i]),t.useEffect(()=>{if(!a){const e=document.createElement("style");e.innerHTML="\n .custom-file-icon::before {\n font-size: inherit !important;\n }\n ",document.head.appendChild(e),a=!0}},[]),i.includes(".txt")?e.jsx(n.File,{className:s.cn("w-3 h-3 mr-2 text-muted",l)}):i.includes(".pdf")?e.jsx(n.FileText,{className:s.cn("w-3 h-3 mr-2 text-destructive",l)}):e.jsx("span",{className:"mt-0",style:{width:r,height:r,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top"},children:u?e.jsx("i",{className:s.cn("custom-file-icon",u,l),style:{fontSize:r,height:r,display:"inline-flex",alignItems:"center",lineHeight:1}}):e.jsx(n.File,{className:s.cn("text-muted",l),width:r,height:r})})};
2
2
  //# sourceMappingURL=CustomFileIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("react-dom"),a=require("@monaco-editor/react"),l=require("./ReadFileCitationContent.module.css.js"),r=require("./icons/ExternalLinkIcon.js"),o=require("lucide-react"),s=require("./CustomFileIcon.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(i),d=u(a),h=function(e){return"number"==typeof e&&Number.isFinite(e)},f=function(e,n){return h(e)&&h(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},m=function(e,n,t,i){var a,l=e[0],r=e[1];if(!Number.isFinite(l)||!Number.isFinite(r))return null;if(r<l&&(l=(a=[r,l])[0],r=a[1]),h(t)&&h(i)){var o=Math.max(l,t),s=Math.min(r,i);if(o>s)return null;var u=o-t+1,c=s-t+1,d=Math.max(1,u),f=Math.min(n,c);return d>f?null:[d,f]}var m=Math.max(1,l),g=Math.min(n,r);return m>g?null:[m,g]},g=function(e,n,t,i){if(0===e.length)return!1;var a=f(t,i);return!!a&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(a.start>n||a.end>n||Math.abs(a.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<a.start||n>a.end})))},v={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)"},p={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},_={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"};exports.default=function(i){var a=i.citation,u=i.customStyles,x=i.customColors,b=i.customIcons,y=i.editorConfig,j=i.fileCallback,C=t.useMemo(function(){return e.__assign(e.__assign({},v),x)},[x]),N=t.useMemo(function(){return e.__assign(e.__assign({},p),y)},[y]),M=t.useState(!1),k=M[0],F=M[1],w=t.useRef(null),S=t.useRef(!1),O=a.customMetadata.content||"",L=a.customMetadata.highlighted_text,B=a.customMetadata.start_line,P=a.customMetadata.end_line,T=h(B)?B+1:B,q=t.useMemo(function(){if(!L)return{};try{var e=L.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),{}}},[L]),H=t.useMemo(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(O));){var i=e[1]||"javascript",a=e[2].trim(),l=e[3].trim();a&&l&&n.push({filePath:a,code:l,language:i})}return n},[O]),z=t.useCallback(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]),R=t.useMemo(function(){for(var e=function(e){var n=H[e],t=n.code.split("\n").length,i=z(n.filePath),a=g(i,t,T,P);if(i.map(function(e){return m(e,t,a?T:void 0,a?P:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<H.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[H,z,T,P]),E=R>=0,W=t.useCallback(function(e,n){var t=z(e),i=g(t,n,T,P);return t.map(function(e){return m(e,n,i?T:void 0,i?P:void 0)}).filter(function(e){return null!==e})},[z,T,P]),I=t.useCallback(function(e,n){var t=z(e);if(g(t,n,T,P)){var i=f(T,P);return i?t.map(function(e){var n=e[0],t=e[1],a=n<=t?[n,t]:[t,n],l=Math.max(a[0],i.start),r=Math.min(a[1],i.end);return l>r?null:[l,r]}).filter(function(e){return null!==e}):[]}return W(e,n)},[z,W,T,P]);t.useEffect(function(){if(E&&!S.current&&H.length>0&&(null==j?void 0:j.autoOpenFirstHighlighted)&&(null==j?void 0:j.onOpenFile)){var e=H[R],n=I(e.filePath,e.code.split("\n").length);S.current=!0;var t=setTimeout(function(){j.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[E,R,H,W,j]),t.useEffect(function(){S.current=!1},[O]),t.useEffect(function(){if(!(R<0)){var e=setTimeout(function(){var e;null===(e=w.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[R,L]);var D=t.useCallback(function(e,n){if(null==j?void 0:j.onOpenFile){var t=I(e,n);j.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[I,j]),G=t.useCallback(function(){(null==j?void 0:j.onExpandClick)?j.onExpandClick({blocks:H,highlightMap:q}):F(!0)},[j,H,q]),A=!!(null==j?void 0:j.onOpenFile),J=(null==b?void 0:b.readFileCitationIcon)||n.jsx(r.default,{style:{width:"14px",height:"14px"}}),V=t.useCallback(function(e,n,t,i){var a=[];if(t.forEach(function(e){var t=e[0],i=e[1];a.push({range:new n.Range(t,1,i,1),options:{isWholeLine:!0,className:l.default.yellowHighlightedLine,linesDecorationsClassName:l.default.yellowHighlightedLineDecoration}})}),a.length>0)try{e.createDecorationsCollection(a)}catch(e){console.warn("Failed to create decorations:",e)}var r=t[0];r&&requestAnimationFrame(function(){e.revealLineInCenter(r[0])}),i>0&&e.updateOptions({lineNumbers:function(e){return String(e+i)}})},[]),X=function(t){return H.map(function(i,a){var r,s,c,f=i.code.split("\n").length,v=z(i.filePath),p=g(v,f,T,P),x=v.map(function(e){return m(e,f,p?T:void 0,p?P:void 0)}).filter(function(e){return null!==e}),b=p&&h(T)?x.map(function(e){var n=e[0],t=e[1];return[n+T-1,t+T-1]}):x,y=x.length>0,j=a===R,M=t?600:N.maxHeight,k=(r=20*i.code.split("\n").length+16+4,Math.min(Math.max(r,N.minHeight),M)),F=i.filePath.split("/").pop(),S=p&&h(T)?T-1:0,O=S+f,L=String(Math.max(1,O)).length;return n.jsxs("div",e.__assign({ref:!t&&j?w:void 0,"data-highlighted":y?"true":void 0,"data-first-highlighted":j?"true":void 0,className:l.default.blockContainer,style:e.__assign({border:"1px solid ".concat(C.border)},null==u?void 0:u.blockContainer)},{children:[n.jsxs("div",e.__assign({className:l.default.header,style:e.__assign({backgroundColor:y?C.highlightBg:C.headerBg,borderBottom:"1px solid ".concat(C.border),color:y?C.highlightGutter:C.foreground},y?null==u?void 0:u.headerHighlighted:null==u?void 0:u.header)},{children:[n.jsxs("div",e.__assign({className:l.default.headerLeft},{children:[n.jsx("span",e.__assign({className:l.default.fileName,title:i.filePath,style:null==u?void 0:u.fileName,onClick:function(){return D(i.filePath,f)}},{children:F})),A&&n.jsx("button",e.__assign({className:l.default.openFileButton,onClick:function(){return D(i.filePath,f)},title:"Open in editor","aria-label":"Open ".concat(F," in editor"),style:null==u?void 0:u.openFileButton},{children:J}))]})),n.jsxs("div",e.__assign({className:l.default.headerRight},{children:[y&&n.jsx("span",e.__assign({className:l.default.lineRanges,style:null==u?void 0:u.lineRanges},{children:(c=b,c.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!t&&0===a&&n.jsx("button",e.__assign({className:l.default.expandButton,style:null==u?void 0:u.expandButton,onClick:G,title:"Expand","aria-label":"Expand code view"},{children:n.jsx(o.Maximize2,{size:13})}))]}))]})),n.jsx("div",e.__assign({className:l.default.editorWrapper,style:e.__assign({height:"".concat(k,"px"),backgroundColor:C.background},null==u?void 0:u.editorWrapper)},{children:n.jsx(d.default,{height:"100%",language:(s=i.language,_[s.toLowerCase()]||s),value:i.code,theme:N.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:N.fontSize,lineHeight:20,fontFamily:N.fontFamily,lineNumbers:S>0?function(e){return String(e+S)}:"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,L),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 V(e,n,x,S)},loading:n.jsx("div",e.__assign({className:l.default.editorLoading,style:{color:C.inactiveText}},{children:"Loading editor..."}))})}))]}),a)})};if(0===H.length)return n.jsx("div",e.__assign({className:l.default.emptyState,style:e.__assign({color:C.inactiveText},null==u?void 0:u.emptyState)},{children:"No code content available"}));var $=k?c.default.createPortal(n.jsx("div",e.__assign({className:l.default.modalOverlay,style:null==u?void 0:u.modalOverlay,onClick:function(e){e.target===e.currentTarget&&F(!1)}},{children:n.jsxs("div",e.__assign({className:l.default.modalContent,style:null==u?void 0:u.modalContent},{children:[n.jsxs("div",e.__assign({className:l.default.modalHeader,style:null==u?void 0:u.modalHeader},{children:[n.jsx("span",e.__assign({className:l.default.modalTitle,style:null==u?void 0:u.modalTitle},{children:1===H.length?n.jsxs("span",e.__assign({className:l.default.modalTitleContent},{children:[n.jsx(s.default,{name:H[0].filePath,size:"15px"}),n.jsx("span",e.__assign({className:l.default.modalTitleText},{children:H[0].filePath}))]})):"".concat(H.length," files")})),n.jsx("button",e.__assign({className:l.default.modalCloseButton,style:null==u?void 0:u.modalCloseButton,onClick:function(){return F(!1)},"aria-label":"Close expanded view"},{children:n.jsx(o.X,{size:16})}))]})),n.jsx("div",e.__assign({className:l.default.modalBody},{children:n.jsx("div",e.__assign({className:l.default.container,style:null==u?void 0:u.container},{children:X(!0)}))}))]}))})),document.body):null;return n.jsxs(n.Fragment,{children:[$,n.jsx("div",e.__assign({className:l.default.container,style:null==u?void 0:u.container},{children:X(!1)}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("react-dom"),n=require("@monaco-editor/react"),i=require("./ReadFileCitationContent.module.css.js"),a=require("./icons/ExternalLinkIcon.js"),r=require("lucide-react"),o=require("./CustomFileIcon.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=s(l),u=s(n);const c=e=>"number"==typeof e&&Number.isFinite(e),h=(e,t)=>c(e)&&c(t)?e<=0||t<e?null:{start:e,end:t,length:t-e+1}:null,m=(e,t,l,n)=>{let[i,a]=e;if(!Number.isFinite(i)||!Number.isFinite(a))return null;if(a<i&&([i,a]=[a,i]),c(l)&&c(n)){const e=Math.max(i,l),r=Math.min(a,n);if(e>r)return null;const o=e-l+1,s=r-l+1,d=Math.max(1,o),u=Math.min(t,s);return d>u?null:[d,u]}const r=Math.max(1,i),o=Math.min(t,a);return r>o?null:[r,o]},f=(e,t,l,n)=>{if(0===e.length)return!1;const i=h(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},g={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)"},p={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},v={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"};exports.default=({citation:l,customStyles:n,customColors:s,customIcons:x,editorConfig:b,fileCallback:y})=>{const j=t.useMemo(()=>({...g,...s}),[s]),C=t.useMemo(()=>({...p,...b}),[b]),[N,M]=t.useState(!1),k=t.useRef(null),F=t.useRef(!1),w=l.customMetadata.content||"",S=l.customMetadata.highlighted_text,O=l.customMetadata.start_line,L=l.customMetadata.end_line,B=c(O)?O+1:O,P=t.useMemo(()=>{if(!S)return{};try{let e=S.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),{}}},[S]),T=t.useMemo(()=>{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(w));){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},[w]),H=t.useCallback(e=>(P[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),[P]),q=t.useMemo(()=>{for(let e=0;e<T.length;e++){const t=T[e],l=t.code.split("\n").length,n=H(t.filePath),i=f(n,l,B,L);if(n.map(e=>m(e,l,i?B:void 0,i?L:void 0)).filter(e=>null!==e).length>0)return e}return-1},[T,H,B,L]),z=q>=0,R=t.useCallback((e,t)=>{const l=H(e),n=f(l,t,B,L);return l.map(e=>m(e,t,n?B:void 0,n?L:void 0)).filter(e=>null!==e)},[H,B,L]),E=t.useCallback((e,t)=>{const l=H(e);if(f(l,t,B,L)){const e=h(B,L);return e?l.map(([t,l])=>{const n=t<=l?[t,l]:[l,t],i=Math.max(n[0],e.start),a=Math.min(n[1],e.end);return i>a?null:[i,a]}).filter(e=>null!==e):[]}return R(e,t)},[H,R,B,L]);t.useEffect(()=>{if(z&&!F.current&&T.length>0&&(null==y?void 0:y.autoOpenFirstHighlighted)&&(null==y?void 0:y.onOpenFile)){const e=T[q],t=E(e.filePath,e.code.split("\n").length);F.current=!0;const l=setTimeout(()=>{y.onOpenFile({filePath:e.filePath,ranges:t.length>0?t:null})},300);return()=>clearTimeout(l)}},[z,q,T,R,y]),t.useEffect(()=>{F.current=!1},[w]),t.useEffect(()=>{if(q<0)return;const e=setTimeout(()=>{var e;null===(e=k.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return()=>clearTimeout(e)},[q,S]);const W=t.useCallback((e,t)=>{if(null==y?void 0:y.onOpenFile){const l=E(e,t);y.onOpenFile({filePath:e,ranges:l.length>0?l:null})}},[E,y]),$=t.useCallback(()=>{(null==y?void 0:y.onExpandClick)?y.onExpandClick({blocks:T,highlightMap:P}):M(!0)},[y,T,P]),I=!!(null==y?void 0:y.onOpenFile),_=(null==x?void 0:x.readFileCitationIcon)||e.jsx(a.default,{style:{width:"14px",height:"14px"}}),D=t.useCallback((e,t,l,n)=>{const a=[];if(l.forEach(([e,l])=>{a.push({range:new t.Range(e,1,l,1),options:{isWholeLine:!0,className:i.default.yellowHighlightedLine,linesDecorationsClassName:i.default.yellowHighlightedLineDecoration}})}),a.length>0)try{e.createDecorationsCollection(a)}catch(e){console.warn("Failed to create decorations:",e)}const r=l[0];r&&requestAnimationFrame(()=>{e.revealLineInCenter(r[0])}),n>0&&e.updateOptions({lineNumbers:e=>String(e+n)})},[]),G=t=>T.map((l,a)=>{const o=l.code.split("\n").length,s=H(l.filePath),d=f(s,o,B,L),h=s.map(e=>m(e,o,d?B:void 0,d?L:void 0)).filter(e=>null!==e),g=d&&c(B)?h.map(([e,t])=>[e+B-1,t+B-1]):h,p=h.length>0,x=a===q,b=t?600:C.maxHeight,y=(()=>{const e=20*l.code.split("\n").length+16+4;return Math.min(Math.max(e,C.minHeight),b)})(),N=l.filePath.split("/").pop(),M=d&&c(B)?B-1:0,F=M+o,w=String(Math.max(1,F)).length;return e.jsxs("div",{ref:!t&&x?k:void 0,"data-highlighted":p?"true":void 0,"data-first-highlighted":x?"true":void 0,className:i.default.blockContainer,style:{border:`1px solid ${j.border}`,...null==n?void 0:n.blockContainer},children:[e.jsxs("div",{className:i.default.header,style:{backgroundColor:p?j.highlightBg:j.headerBg,borderBottom:`1px solid ${j.border}`,color:p?j.highlightGutter:j.foreground,...p?null==n?void 0:n.headerHighlighted:null==n?void 0:n.header},children:[e.jsxs("div",{className:i.default.headerLeft,children:[e.jsx("span",{className:i.default.fileName,title:l.filePath,style:null==n?void 0:n.fileName,onClick:()=>W(l.filePath,o),children:N}),I&&e.jsx("button",{className:i.default.openFileButton,onClick:()=>W(l.filePath,o),title:"Open in editor","aria-label":`Open ${N} in editor`,style:null==n?void 0:n.openFileButton,children:_})]}),e.jsxs("div",{className:i.default.headerRight,children:[p&&e.jsx("span",{className:i.default.lineRanges,style:null==n?void 0:n.lineRanges,children:(O=g,O.map(([e,t])=>e===t?`L${e}`:`L${e}-${t}`).join(", "))}),!t&&0===a&&e.jsx("button",{className:i.default.expandButton,style:null==n?void 0:n.expandButton,onClick:$,title:"Expand","aria-label":"Expand code view",children:e.jsx(r.Maximize2,{size:13})})]})]}),e.jsx("div",{className:i.default.editorWrapper,style:{height:`${y}px`,backgroundColor:j.background,...null==n?void 0:n.editorWrapper},children:e.jsx(u.default,{height:"100%",language:(S=l.language,v[S.toLowerCase()]||S),value:l.code,theme:C.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:C.fontSize,lineHeight:20,fontFamily:C.fontFamily,lineNumbers:M>0?e=>String(e+M):"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,w),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)=>D(e,t,h,M),loading:e.jsx("div",{className:i.default.editorLoading,style:{color:j.inactiveText},children:"Loading editor..."})})})]},a);var S,O});if(0===T.length)return e.jsx("div",{className:i.default.emptyState,style:{color:j.inactiveText,...null==n?void 0:n.emptyState},children:"No code content available"});const A=N?d.default.createPortal(e.jsx("div",{className:i.default.modalOverlay,style:null==n?void 0:n.modalOverlay,onClick:e=>{e.target===e.currentTarget&&M(!1)},children:e.jsxs("div",{className:i.default.modalContent,style:null==n?void 0:n.modalContent,children:[e.jsxs("div",{className:i.default.modalHeader,style:null==n?void 0:n.modalHeader,children:[e.jsx("span",{className:i.default.modalTitle,style:null==n?void 0:n.modalTitle,children:1===T.length?e.jsxs("span",{className:i.default.modalTitleContent,children:[e.jsx(o.default,{name:T[0].filePath,size:"15px"}),e.jsx("span",{className:i.default.modalTitleText,children:T[0].filePath})]}):`${T.length} files`}),e.jsx("button",{className:i.default.modalCloseButton,style:null==n?void 0:n.modalCloseButton,onClick:()=>M(!1),"aria-label":"Close expanded view",children:e.jsx(r.X,{size:16})})]}),e.jsx("div",{className:i.default.modalBody,children:e.jsx("div",{className:i.default.container,style:null==n?void 0:n.container,children:G(!0)})})]})}),document.body):null;return e.jsxs(e.Fragment,{children:[A,e.jsx("div",{className:i.default.container,style:null==n?void 0:n.container,children:G(!1)})]})};
2
2
  //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("../../../../CitationRenderer/CitationRenderer.js"),n=require("./icons/FileCodeIcon.js"),o=require("./ReadFileCitationContent.js");exports.default=function(r){var a=r.title,l=r.citation,s=r.customStyles,c=r.customColors,u=r.customIcons,d=r.editorConfig,p=r.fileCallback,m=(null==u?void 0:u.readFileCitationIcon)||t.jsx(n.default,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),C=a+"⁠";return t.jsx(i.default,{inLineCitation:!0,citationTitle:C,citationId:"readfile-".concat(l.citation_number),citationIcon:t.jsx(t.Fragment,{}),citationComponent:t.jsx(o.default,{citation:l,customStyles:s,customColors:c,customIcons:u,editorConfig:d,fileCallback:p}),chevronDownComponent:m,chevronUpComponent:m,styles:{pillButton:e.__assign({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"}}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("./icons/FileCodeIcon.js"),n=require("./ReadFileCitationContent.js");exports.default=({title:o,citation:r,customStyles:a,customColors:l,customIcons:s,editorConfig:c,fileCallback:u})=>{const d=(null==s?void 0:s.readFileCitationIcon)||e.jsx(i.default,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),p=o+"⁠";return e.jsx(t.default,{inLineCitation:!0,citationTitle:p,citationId:`readfile-${r.citation_number}`,citationIcon:e.jsx(e.Fragment,{}),citationComponent:e.jsx(n.default,{citation:r,customStyles:a,customColors:l,customIcons:s,editorConfig:c,fileCallback:u}),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==a?void 0:a.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
2
2
  //# sourceMappingURL=ReadFileCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime");exports.default=function(r){var t=r.className,i=r.style;return s.jsxs("svg",e.__assign({className:t,style:i,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:[s.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),s.jsx("polyline",{points:"15 3 21 3 21 9"}),s.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({className:s,style:t})=>e.jsxs("svg",{className:s,style:t,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:[e.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),e.jsx("polyline",{points:"15 3 21 3 21 9"}),e.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]});
2
2
  //# sourceMappingURL=ExternalLinkIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime");exports.default=function(t){var r=t.className,i=t.style;return s.jsxs("svg",e.__assign({className:r,style:i,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:[s.jsx("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"}),s.jsx("polyline",{points:"14 2 14 8 20 8"}),s.jsx("path",{d:"m10 13-2 2 2 2"}),s.jsx("path",{d:"m14 17 2-2-2-2"})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({className:s,style:t})=>e.jsxs("svg",{className:s,style:t,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.jsx("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.jsx("polyline",{points:"14 2 14 8 20 8"}),e.jsx("path",{d:"m10 13-2 2 2 2"}),e.jsx("path",{d:"m14 17 2-2-2-2"})]});
2
2
  //# sourceMappingURL=FileCodeIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),i=require("../../../../CitationRenderer/CitationRenderer.js"),o=require("./StormeeContent.js"),n=function(){return e.jsx("div",t.__assign({className:"mb-3"},{children:e.jsx("img",{width:18,src:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",alt:"stormee citation"})}))};exports.StormeeCitationIcon=n,exports.default=function(a){var s,c,r,d,l,m=(null===(s=a.customIcons)||void 0===s?void 0:s.stormeeCitationIcon)||e.jsx(n,{}),u=(null===(c=a.customIcons)||void 0===c?void 0:c.stormeeBrainstormIcon)||"https://storymod-assests.pages.dev/brainstorm-cropped.gif";return e.jsx(i.default,{inLineCitation:!0,citationTitle:a.title,citationId:"stormee-citation-".concat(a.citation.citation_number),citationComponent:"audio_transcript"===a.citation.customMetadata.type&&e.jsx(o.default,{segments:a.citation.customMetadata.segments,gsUtilPath:a.citation.customMetadata.gs_util_url,contentName:a.citation.customMetadata.content_name||"",content:a.citation.customMetadata.content||"",highlighted_content:a.citation.customMetadata.highlighted_content||"",keywords:a.citation.customMetadata.keywords||[],relevanceScore:null===(r=a.citation.customMetadata)||void 0===r?void 0:r.relevance_score,brainStormIcon:u,customStyles:a.customStyles}),chevronDownComponent:m,chevronUpComponent:m,styles:{pillButton:t.__assign({margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",fontSize:"14px",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(d=a.customStyles)||void 0===d?void 0:d.pill),citationTitle:{marginRight:"4px"},citationContent:t.__assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(l=a.customStyles)||void 0===l?void 0:l.content)}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../../../CitationRenderer/CitationRenderer.js"),o=require("./StormeeContent.js");const i=()=>t.jsx("div",{className:"mb-3",children:t.jsx("img",{width:18,src:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",alt:"stormee citation"})});exports.StormeeCitationIcon=i,exports.default=n=>{var a,s,c,r,d;const l=(null===(a=n.customIcons)||void 0===a?void 0:a.stormeeCitationIcon)||t.jsx(i,{}),m=(null===(s=n.customIcons)||void 0===s?void 0:s.stormeeBrainstormIcon)||"https://storymod-assests.pages.dev/brainstorm-cropped.gif";return t.jsx(e.default,{inLineCitation:!0,citationTitle:n.title,citationId:`stormee-citation-${n.citation.citation_number}`,citationComponent:"audio_transcript"===n.citation.customMetadata.type&&t.jsx(o.default,{segments:n.citation.customMetadata.segments,gsUtilPath:n.citation.customMetadata.gs_util_url,contentName:n.citation.customMetadata.content_name||"",content:n.citation.customMetadata.content||"",highlighted_content:n.citation.customMetadata.highlighted_content||"",keywords:n.citation.customMetadata.keywords||[],relevanceScore:null===(c=n.citation.customMetadata)||void 0===c?void 0:c.relevance_score,brainStormIcon:m,customStyles:n.customStyles}),chevronDownComponent:l,chevronUpComponent:l,styles:{pillButton:{margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",fontSize:"14px",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none",...null===(r=n.customStyles)||void 0===r?void 0:r.pill},citationTitle:{marginRight:"4px"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(d=n.customStyles)||void 0===d?void 0:d.content}}})};
2
2
  //# sourceMappingURL=StormeeCitationRenderer.js.map