@e-llm-studio/requirement-ai 0.0.237 → 0.0.239

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 (491) hide show
  1. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  10. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  11. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  12. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  13. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  14. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  15. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  16. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  17. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  18. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  19. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  20. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  25. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  26. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  27. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  28. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  29. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  30. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  31. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js +2 -0
  41. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js.map +1 -0
  42. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  44. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  45. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  48. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  49. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  51. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  52. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  53. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  54. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  55. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  56. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  61. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  62. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  63. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  64. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  118. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  119. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  120. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  121. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  131. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  132. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  133. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  134. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  135. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  136. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  137. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  138. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  139. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  140. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  141. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  142. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  143. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  144. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  145. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  146. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  147. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  148. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  149. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
  150. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  151. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  152. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  153. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  154. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  155. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  156. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  157. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  158. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  159. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  160. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  161. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  162. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  163. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  164. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  165. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  166. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  167. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  168. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  169. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  170. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  171. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  172. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  173. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  174. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  175. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  176. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  177. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  178. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  179. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  180. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  181. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  182. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  183. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  184. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  185. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  186. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  187. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  188. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  189. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  190. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  191. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  192. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  193. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  194. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  195. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  196. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  197. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  198. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  199. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  200. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  201. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  202. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  203. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  204. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  205. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  206. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  207. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  208. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  209. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  210. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  211. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  212. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  213. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  214. package/dist/cjs/index.js +1 -1
  215. package/dist/cjs/service/redlineService.js +2 -0
  216. package/dist/cjs/service/redlineService.js.map +1 -0
  217. package/dist/cjs/utils/tagHelper.js +2 -0
  218. package/dist/cjs/utils/tagHelper.js.map +1 -0
  219. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  220. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  221. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  222. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  223. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  224. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  225. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  226. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  227. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  228. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  229. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  230. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  231. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  232. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  233. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  234. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  235. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  236. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  237. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  238. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  239. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  240. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  241. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  242. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  243. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  244. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  245. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  246. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  247. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  248. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  249. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  250. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  251. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  252. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  253. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  254. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  255. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  256. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  257. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  258. package/dist/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js +2 -0
  259. package/dist/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js.map +1 -0
  260. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  261. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  262. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  263. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  264. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  265. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  266. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  267. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  268. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  269. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  270. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  271. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  272. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  273. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  274. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  275. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  276. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  277. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  278. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  279. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  280. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  281. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  282. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  283. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  284. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  285. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  286. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  287. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  288. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  289. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  290. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  291. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  292. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  293. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  294. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  295. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  296. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  297. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  298. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  299. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  300. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  301. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  302. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  303. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  304. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  305. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  306. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  307. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  308. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  309. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  310. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  311. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  312. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  313. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  314. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  315. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  316. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  317. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  318. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  319. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  320. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  321. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  322. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  323. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  324. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  325. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  326. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  327. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  328. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  329. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  330. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  331. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  332. package/dist/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
  333. package/dist/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
  334. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  335. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  336. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  337. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  338. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  339. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  340. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  341. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  342. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  343. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  344. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  345. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  346. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  347. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  348. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  349. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  350. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  351. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  352. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  353. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  354. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  355. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  356. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  357. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  358. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  359. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  360. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  361. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  362. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  363. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  364. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  365. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  366. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  367. package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
  368. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  369. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  370. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  371. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  372. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  373. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  374. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  375. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  376. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  377. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  378. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  379. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  380. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  381. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  382. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  383. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  384. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  385. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  386. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  387. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  388. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  389. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  390. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  391. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  392. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  393. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  394. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  395. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  396. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  397. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  398. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  399. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  400. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  401. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  402. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  403. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  404. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  405. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  406. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  407. package/dist/features/UserStoryImport/components/Header.js +1 -1
  408. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  409. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  410. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  411. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  412. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  413. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  414. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  415. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  416. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  417. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  418. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  419. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  420. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  421. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  422. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  423. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  424. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  425. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  426. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  427. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  428. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  429. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  430. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  431. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  432. package/dist/index.js +1 -1
  433. package/dist/service/redlineService.js +2 -0
  434. package/dist/service/redlineService.js.map +1 -0
  435. package/dist/types/src/App.d.ts.map +1 -1
  436. package/dist/types/src/RedlineEditorTest.d.ts +3 -0
  437. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -0
  438. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  439. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +40 -1
  440. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  441. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +2 -1
  442. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  443. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +1 -4
  444. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  445. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  446. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +4 -3
  447. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  448. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts +35 -0
  449. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts.map +1 -0
  450. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +26 -0
  451. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -0
  452. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts +23 -0
  453. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts.map +1 -0
  454. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +26 -0
  455. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -0
  456. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +1 -0
  457. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  458. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +9 -4
  459. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  460. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +45 -11
  461. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  462. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.d.ts +7 -0
  463. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.d.ts.map +1 -0
  464. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +25 -0
  465. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -0
  466. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +15 -3
  467. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  468. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +9 -2
  469. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  470. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +2 -0
  471. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
  472. package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -1
  473. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +4 -0
  474. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  475. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts +11 -0
  476. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts.map +1 -0
  477. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +3 -1
  478. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  479. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -13
  480. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  481. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +2 -0
  482. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -1
  483. package/dist/types/src/index.d.ts +2 -0
  484. package/dist/types/src/index.d.ts.map +1 -1
  485. package/dist/types/src/service/redlineService.d.ts +33 -0
  486. package/dist/types/src/service/redlineService.d.ts.map +1 -0
  487. package/dist/types/src/utils/tagHelper.d.ts +5 -0
  488. package/dist/types/src/utils/tagHelper.d.ts.map +1 -0
  489. package/dist/utils/tagHelper.js +2 -0
  490. package/dist/utils/tagHelper.js.map +1 -0
  491. package/package.json +17 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("./CodeLinkHandler.module.css.js"),t=require("lucide-react"),i=require("@e-llm-studio/citation"),o=require("../types.js");exports.default=({href:a,children:r,codeLinkConfig:l,isHighlighted:s=!1,highlightTheme:d=o.DEFAULT_HIGHLIGHT_THEME,customStyles:c,customIcon:u})=>{var h,f;if(!a)return e.jsx("span",{children:r});const p=(e=>{try{const n=new URL(e,"http://example.com"),t=n.searchParams.get("startLine"),i=n.searchParams.get("endLine"),o=n.searchParams.get("validation");n.searchParams.delete("startLine"),n.searchParams.delete("endLine"),n.searchParams.delete("validation");const a=n.pathname+n.search;return{filePath:decodeURIComponent(a.replace(/^\//,"")),fullPath:decodeURIComponent(e),startLine:t,endLine:i,validation:o}}catch(n){return{filePath:e,fullPath:e,startLine:null,endLine:null,validation:null}}})(a),m="string"==typeof r?r.split("\n").length>1?"Generated Code":r:(null===(h=null==r?void 0:r.props)||void 0===h?void 0:h.children)||a||"Generated Code";if("vscode"===(null==l?void 0:l.mode)){const i=e=>{e.preventDefault(),(null==l?void 0:l.onCodeLinkClick)&&l.onCodeLinkClick({filePath:p.filePath,startLine:p.startLine,endLine:p.endLine,validation:p.validation})},o=s?{backgroundColor:d.linkBackground,borderColor:d.linkBorder}:void 0,h=s?{color:d.linkText}:void 0,f=s?{color:d.linkIconColor}:null==c?void 0:c.linkIcon,m=u||e.jsx(t.ExternalLinkIcon,{className:n.default.linkIcon,style:f});return e.jsx("a",Object.assign({href:a,title:a,onClick:i,className:n.default.linkContainer,style:null==c?void 0:c.link},{children:e.jsxs("span",Object.assign({className:n.default.linkWrapper,style:o},{children:[m,e.jsx("span",Object.assign({className:n.default.linkText,style:h},{children:r}))]}))}))}if("web"===(null==l?void 0:l.mode)&&l.webConfig){const n=(e=>{const n=/\.(\w+)$/.exec(e);return n?n[1]:"plaintext"})(p.filePath);return e.jsx(i.CodeCitation,{baseUrlForCodeRetrieval:l.baseUrlForCodeRetrieval||"",filepath:p.fullPath,assistantName:l.webConfig.assistantName,organizationName:l.webConfig.organizationName,userId:l.webConfig.userId,taskId:l.webConfig.taskId,repoUrl:l.webConfig.repoUrl,inLineCitation:!0,citationTitle:m,filename:"Generated Code"!==m?p.filePath:`.${n}`,fileSummarySectionTitle:"File Summary",citationContainerTitle:"Code Preview",showFileSummaryIButton:!0,showFullscreenIcon:!0,showThemeToggle:!0,isDarkModeEnabled:null===(f=l.webConfig.isDarkModeEnabled)||void 0===f||f,chevronUpComponent:l.webConfig.chevronUpComponent||e.jsx(t.ChevronUpIcon,{}),chevronDownComponent:l.webConfig.chevronDownComponent||e.jsx(t.ChevronDownIcon,{}),isHighlightingEnabled:!0,editorHeight:"95%",editorWidth:"100%",startIndex:p.startLine?Number(p.startLine):void 0,endIndex:p.endLine?Number(p.endLine):void 0,datasource:l.webConfig.datasource,styles:{pillButton:Object.assign({display:"inline-flex",alignItems:"center",fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"transparent",padding:"0px",fontSize:"13px",borderRadius:"9999px",cursor:"pointer",color:"#d63384",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},null==c?void 0:c.link),citationWrapper:{justifyContent:"flex-start",width:"100%"},citationContent:{width:"100%",height:"500px",backgroundColor:"#eff6ff",border:"1px solid #000",padding:"8px",borderRadius:"4px"},citationContainerTitle:{fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",justifyContent:"space-between",alignItems:"center",color:"#000",fontSize:"16px",fontWeight:"bold",marginBottom:"8px"}}})}return e.jsx("a",Object.assign({href:a,target:"_blank",rel:"noopener noreferrer",className:n.default.regularLink,style:null==c?void 0:c.link},{children:r}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("./CodeLinkHandler.module.css.js"),t=require("lucide-react"),i=require("@e-llm-studio/citation"),o=require("../types.js");exports.default=({href:a,children:r,codeLinkConfig:l,isHighlighted:s=!1,highlightTheme:d=o.DEFAULT_HIGHLIGHT_THEME,customStyles:c,customIcon:u})=>{var h,f;if(!a)return e.jsx("span",{children:r});const p=(e=>{try{const n=new URL(e,"http://example.com"),t=n.searchParams.get("startLine"),i=n.searchParams.get("endLine"),o=n.searchParams.get("validation");n.searchParams.delete("startLine"),n.searchParams.delete("endLine"),n.searchParams.delete("validation");const a=n.pathname+n.search;return{filePath:decodeURIComponent(a.replace(/^\//,"")),fullPath:decodeURIComponent(e),startLine:t,endLine:i,validation:o}}catch(n){return{filePath:e,fullPath:e,startLine:null,endLine:null,validation:null}}})(a),m="string"==typeof r?r.split("\n").length>1?"Generated Code":r:(null===(h=null==r?void 0:r.props)||void 0===h?void 0:h.children)||a||"Generated Code";if("vscode"===(null==l?void 0:l.mode)){const i=e=>{e.preventDefault(),(null==l?void 0:l.onCodeLinkClick)&&l.onCodeLinkClick({filePath:p.filePath,startLine:p.startLine,endLine:p.endLine,validation:p.validation})},o=s?{backgroundColor:d.linkBackground,borderColor:d.linkBorder}:void 0,h=s?{color:d.linkText}:void 0,f=s?{color:d.linkIconColor}:null==c?void 0:c.linkIcon,m=u||e.jsx(t.ExternalLinkIcon,{className:n.default.linkIcon,style:f});return e.jsx("a",{href:a,title:a,onClick:i,className:n.default.linkContainer,style:null==c?void 0:c.link,children:e.jsxs("span",{className:n.default.linkWrapper,style:o,children:[m,e.jsx("span",{className:n.default.linkText,style:h,children:r})]})})}if("web"===(null==l?void 0:l.mode)&&l.webConfig){const n=(e=>{const n=/\.(\w+)$/.exec(e);return n?n[1]:"plaintext"})(p.filePath);return e.jsx(i.CodeCitation,{baseUrlForCodeRetrieval:l.baseUrlForCodeRetrieval||"",filepath:p.fullPath,assistantName:l.webConfig.assistantName,organizationName:l.webConfig.organizationName,userId:l.webConfig.userId,taskId:l.webConfig.taskId,repoUrl:l.webConfig.repoUrl,inLineCitation:!0,citationTitle:m,filename:"Generated Code"!==m?p.filePath:`.${n}`,fileSummarySectionTitle:"File Summary",citationContainerTitle:"Code Preview",showFileSummaryIButton:!0,showFullscreenIcon:!0,showThemeToggle:!0,isDarkModeEnabled:null===(f=l.webConfig.isDarkModeEnabled)||void 0===f||f,chevronUpComponent:l.webConfig.chevronUpComponent||e.jsx(t.ChevronUpIcon,{}),chevronDownComponent:l.webConfig.chevronDownComponent||e.jsx(t.ChevronDownIcon,{}),isHighlightingEnabled:!0,editorHeight:"95%",editorWidth:"100%",startIndex:p.startLine?Number(p.startLine):void 0,endIndex:p.endLine?Number(p.endLine):void 0,datasource:l.webConfig.datasource,styles:{pillButton:{display:"inline-flex",alignItems:"center",fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"transparent",padding:"0px",fontSize:"13px",borderRadius:"9999px",cursor:"pointer",color:"#d63384",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal",...null==c?void 0:c.link},citationWrapper:{justifyContent:"flex-start",width:"100%"},citationContent:{width:"100%",height:"500px",backgroundColor:"#eff6ff",border:"1px solid #000",padding:"8px",borderRadius:"4px"},citationContainerTitle:{fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",justifyContent:"space-between",alignItems:"center",color:"#000",fontSize:"16px",fontWeight:"bold",marginBottom:"8px"}}})}return e.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:n.default.regularLink,style:null==c?void 0:c.link,children:r})};
2
2
  //# sourceMappingURL=CodeLinkHandler.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.AppModIcon=({className:r,style:o})=>e.jsxs("svg",Object.assign({className:r,style:o,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2 17L12 22L22 17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2 12L12 17L22 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.AppModIcon=({className:r,style:o})=>e.jsxs("svg",{className:r,style:o,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2 17L12 22L22 17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M2 12L12 17L22 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});
2
2
  //# sourceMappingURL=AppmodIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.ChatBubbleIcon=({className:s,style:t})=>e.jsx("svg",Object.assign({className:s,style:t,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.ChatBubbleIcon=({className:t,style:s})=>e.jsx("svg",{className:t,style:s,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})});
2
2
  //# sourceMappingURL=ChatBubbleIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.SparkleIcon=({className:s,style:t})=>e.jsx("svg",Object.assign({className:s,style:t,width:"12",height:"12",viewBox:"0 0 24 24",fill:"#3b82f6",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"})}));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.SparkleIcon=({className:s,style:t})=>e.jsx("svg",{className:s,style:t,width:"12",height:"12",viewBox:"0 0 24 24",fill:"#3b82f6",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"})});
2
2
  //# sourceMappingURL=SparkleIcon.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"),s=require("./searchwaveform.js"),a=require("./components/videoPlayer.js"),n=require("./utils/word-segment-util.js"),l=require("./components/SegmentByWordsViral.js"),d=require("./SearchWaveFromWrapper.module.css.js"),r=require("./icons/AudioLinesIcon.js"),o=require("./icons/VideoIcon.js"),u=require("@mui/material"),c=require("../../../shared/CitationAIConfidenceDisplay.js"),m=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),v=require("./store/autoplay.wavefrom.js");const g=e=>{const t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60),a=e=>String(e).padStart(2,"0");return`${a(t)}:${a(i)}:${s.toFixed(0)}`},f=i.memo(({title:f,segments:h,gsUtilPath:j,citationNumber:y,relevanceScore:p,customStyles:x})=>{const[S,b]=i.useState(0),[P,O]=i.useState(h.length>0),[w,A]=i.useState(!1),[q,N]=i.useState(!1),[C,U]=i.useState(""),[L,k]=i.useState(!0),[B,T]=i.useState("audio"),{queryClient:M,useGetSignedUrlQuery:$,useGetSignedUrlMutation:I,useExtractAudioPeaksMutation:W,useExtractAudioPeaksQuery:_,useGetVideoSignedUrlQuery:D,useGetVideoSignedUrlMutation:V}=m.useRequirementAI().apiCachingConfig,E=i.useRef(null),Q=j.replace(/\.wav$|\.mp3$/i,".mp4"),R=["getSignedUrl",j],G=["extractAudioPeaks",j],z=["getVideoSignedUrl",Q],{data:F}=$(j,R),{data:H}=_(j,G),{data:J}=D(Q,z),{mutate:K,isPending:X}=I(j),{mutate:Y,isPending:Z}=W(j),{mutate:ee}=V(Q),te=i.useCallback(e=>{b(e)},[]);i.useEffect(()=>{if(!j)return void console.error("Error -> SearchWaveformWrapper: gsUtilPath is required to fetch signed URL");const e=M.getQueryData(R),t=M.getQueryData(G),i=M.getQueryData(z);e||K({gsUtilPath:j}),t||Y({gsUtilPath:j}),i||ee({gsUtilPath:Q})},[j]),i.useEffect(()=>{J&&e.__awaiter(void 0,void 0,void 0,function*(){const e=yield fetch(J);U(e.ok?J:"")})},[J]);return t.jsx(v.AudioPlayProvider,{children:t.jsxs("div",Object.assign({className:d.default.wrapper,style:null==x?void 0:x.wrapper},{children:[t.jsxs("div",Object.assign({className:d.default.header,style:null==x?void 0:x.header},{children:[t.jsx("h2",Object.assign({className:d.default.title,style:null==x?void 0:x.title},{children:f||"Audio Snippet"})),c.renderCitationAIConfidenceDisplay(p,!0,null==x?void 0:x.confidenceDisplay)]})),t.jsxs("div",Object.assign({className:d.default.content,style:null==x?void 0:x.content},{children:["audio"!==B&&C?t.jsxs("div",Object.assign({className:d.default.videoSection,style:null==x?void 0:x.videoSection},{children:[L&&t.jsxs("div",Object.assign({className:d.default.videoLoader,style:null==x?void 0:x.videoLoader},{children:[t.jsx(u.CircularProgress,{size:40}),t.jsx("p",{children:"Loading video..."})]})),t.jsx("div",Object.assign({style:{visibility:L?"hidden":"visible",position:L?"absolute":"relative"}},{children:t.jsx(a.default,{videoSrc:C,currentTime:S,isWaveformPlaying:q,onBufferingStart:()=>{A(!0),q&&N(!1)},onBufferingEnd:()=>{A(!1)},onVideoPlayPause:e=>{E.current?e?q||E.current.togglePlayPause():q&&E.current.togglePlayPause():N(e)},className:"w-full aspect-video rounded-lg overflow-hidden shadow-lg mb-2",onVideoLoadingStateChange:e=>(e=>{k(e)})(e),isUrlPending:X,isPeaksPending:Z,signedUrl:F,AudioData:H,showOnlyMatched:P,wavesurferRef:E,handleAudioTimeUpdate:te,segments:h,setIsAudioPlaying:N,setShowOnlyMatched:O,customStyles:null==x?void 0:x.videoPlayer,waveformStyles:null==x?void 0:x.waveform},`video-${y}`)}))]})):t.jsx("div",Object.assign({className:d.default.audioSection,style:null==x?void 0:x.audioSection},{children:X||Z?t.jsxs("div",Object.assign({className:d.default.audioLoader,style:null==x?void 0:x.audioLoader},{children:[t.jsx(u.CircularProgress,{size:48}),t.jsx("span",{children:"Loading audio peaks..."})]})):F&&H&&t.jsx(s.default,{ref:E,audio_file_name:F,matchedSegments:h,peaks:H.peaks,duration:H.duration,setIsAudioPlaying:N,onTimeUpdate:te,currentAudioTime:S,showOnlyMatched:P,setShowOnlyMatched:O,customStyles:null==x?void 0:x.waveform},`audio-${y}`)})),t.jsxs("div",Object.assign({className:d.default.controls,style:null==x?void 0:x.controls},{children:[C&&t.jsxs("div",Object.assign({className:d.default.mediaToggle,style:null==x?void 0:x.mediaToggle},{children:[t.jsx("span",Object.assign({className:`\n ${d.default.mediaButton}\n ${"video"===B&&d.default.mediaButtonActive}\n `,style:"video"===B?null==x?void 0:x.mediaButtonActive:null==x?void 0:x.mediaButton,onClick:()=>T("video")},{children:t.jsx(o.default,{})})),t.jsx("span",Object.assign({className:`\n ${d.default.mediaButton}\n ${"audio"===B&&d.default.mediaButtonActive}\n `,style:"audio"===B?null==x?void 0:x.mediaButtonActive:null==x?void 0:x.mediaButton,onClick:()=>T("audio")},{children:t.jsx(r.default,{})}))]})),t.jsx("label",Object.assign({className:d.default.switchLabel,style:null==x?void 0:x.switchLabel},{children:t.jsx("span",{children:"play only matched segments"})}))]})),t.jsxs("div",Object.assign({className:d.default.transcript,style:null==x?void 0:x.transcriptContainer},{children:[t.jsx("div",Object.assign({className:d.default.transcriptHeader,style:null==x?void 0:x.transcriptHeader},{children:"Transcript"})),(e=>{const i=n.sortTopicsByCheckedStatus(e);return t.jsx("div",Object.assign({className:d.default.segmentList,style:null==x?void 0:x.segmentList},{children:null==i?void 0:i.map(e=>t.jsx("div",Object.assign({id:e.segment_id,className:d.default.segmentItem,style:null==x?void 0:x.transcriptSegment},{children:t.jsx(l.default,{content:e.text,startTime:g(e.start),endTime:g(e.end),words:e.words||[],currentTime:S,containerStyle:null==x?void 0:x.transcriptContainer,customStyles:null==x?void 0:x.segmentWords})}),e.segment_id))}))})(h)]}))]}))]}))})});exports.default=f,exports.formatTime=g;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),i=require("./searchwaveform.js"),s=require("./components/videoPlayer.js"),a=require("./utils/word-segment-util.js"),l=require("./components/SegmentByWordsViral.js"),d=require("./SearchWaveFromWrapper.module.css.js"),n=require("./icons/AudioLinesIcon.js"),r=require("./icons/VideoIcon.js"),o=require("@mui/material"),u=require("../../../shared/CitationAIConfidenceDisplay.js"),c=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("./store/autoplay.wavefrom.js");const v=e=>{const t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60),a=e=>String(e).padStart(2,"0");return`${a(t)}:${a(i)}:${s.toFixed(0)}`},g=t.memo(({title:g,segments:f,gsUtilPath:h,citationNumber:y,relevanceScore:p,customStyles:j})=>{const[x,S]=t.useState(0),[P,w]=t.useState(f.length>0),[A,N]=t.useState(!1),[q,C]=t.useState(!1),[U,L]=t.useState(""),[k,B]=t.useState(!0),[T,M]=t.useState("audio"),{queryClient:$,useGetSignedUrlQuery:b,useGetSignedUrlMutation:I,useExtractAudioPeaksMutation:W,useExtractAudioPeaksQuery:D,useGetVideoSignedUrlQuery:V,useGetVideoSignedUrlMutation:E}=c.useRequirementAI().apiCachingConfig,Q=t.useRef(null),R=h.replace(/\.wav$|\.mp3$/i,".mp4"),_=["getSignedUrl",h],O=["extractAudioPeaks",h],G=["getVideoSignedUrl",R],{data:z}=b(h,_),{data:F}=D(h,O),{data:H}=V(R,G),{mutate:J,isPending:K}=I(h),{mutate:X,isPending:Y}=W(h),{mutate:Z}=E(R),ee=t.useCallback(e=>{S(e)},[]);t.useEffect(()=>{if(!h)return void console.error("Error -> SearchWaveformWrapper: gsUtilPath is required to fetch signed URL");const e=$.getQueryData(_),t=$.getQueryData(O),i=$.getQueryData(G);e||J({gsUtilPath:h}),t||X({gsUtilPath:h}),i||Z({gsUtilPath:R})},[h]),t.useEffect(()=>{H&&(async()=>{const e=await fetch(H);L(e.ok?H:"")})()},[H]);return e.jsx(m.AudioPlayProvider,{children:e.jsxs("div",{className:d.default.wrapper,style:null==j?void 0:j.wrapper,children:[e.jsxs("div",{className:d.default.header,style:null==j?void 0:j.header,children:[e.jsx("h2",{className:d.default.title,style:null==j?void 0:j.title,children:g||"Audio Snippet"}),u.renderCitationAIConfidenceDisplay(p,!0,null==j?void 0:j.confidenceDisplay)]}),e.jsxs("div",{className:d.default.content,style:null==j?void 0:j.content,children:["audio"!==T&&U?e.jsxs("div",{className:d.default.videoSection,style:null==j?void 0:j.videoSection,children:[k&&e.jsxs("div",{className:d.default.videoLoader,style:null==j?void 0:j.videoLoader,children:[e.jsx(o.CircularProgress,{size:40}),e.jsx("p",{children:"Loading video..."})]}),e.jsx("div",{style:{visibility:k?"hidden":"visible",position:k?"absolute":"relative"},children:e.jsx(s.default,{videoSrc:U,currentTime:x,isWaveformPlaying:q,onBufferingStart:()=>{N(!0),q&&C(!1)},onBufferingEnd:()=>{N(!1)},onVideoPlayPause:e=>{Q.current?e?q||Q.current.togglePlayPause():q&&Q.current.togglePlayPause():C(e)},className:"w-full aspect-video rounded-lg overflow-hidden shadow-lg mb-2",onVideoLoadingStateChange:e=>(e=>{B(e)})(e),isUrlPending:K,isPeaksPending:Y,signedUrl:z,AudioData:F,showOnlyMatched:P,wavesurferRef:Q,handleAudioTimeUpdate:ee,segments:f,setIsAudioPlaying:C,setShowOnlyMatched:w,customStyles:null==j?void 0:j.videoPlayer,waveformStyles:null==j?void 0:j.waveform},`video-${y}`)})]}):e.jsx("div",{className:d.default.audioSection,style:null==j?void 0:j.audioSection,children:K||Y?e.jsxs("div",{className:d.default.audioLoader,style:null==j?void 0:j.audioLoader,children:[e.jsx(o.CircularProgress,{size:48}),e.jsx("span",{children:"Loading audio peaks..."})]}):z&&F&&e.jsx(i.default,{ref:Q,audio_file_name:z,matchedSegments:f,peaks:F.peaks,duration:F.duration,setIsAudioPlaying:C,onTimeUpdate:ee,currentAudioTime:x,showOnlyMatched:P,setShowOnlyMatched:w,customStyles:null==j?void 0:j.waveform},`audio-${y}`)}),e.jsxs("div",{className:d.default.controls,style:null==j?void 0:j.controls,children:[U&&e.jsxs("div",{className:d.default.mediaToggle,style:null==j?void 0:j.mediaToggle,children:[e.jsx("span",{className:`\n ${d.default.mediaButton}\n ${"video"===T&&d.default.mediaButtonActive}\n `,style:"video"===T?null==j?void 0:j.mediaButtonActive:null==j?void 0:j.mediaButton,onClick:()=>M("video"),children:e.jsx(r.default,{})}),e.jsx("span",{className:`\n ${d.default.mediaButton}\n ${"audio"===T&&d.default.mediaButtonActive}\n `,style:"audio"===T?null==j?void 0:j.mediaButtonActive:null==j?void 0:j.mediaButton,onClick:()=>M("audio"),children:e.jsx(n.default,{})})]}),e.jsx("label",{className:d.default.switchLabel,style:null==j?void 0:j.switchLabel,children:e.jsx("span",{children:"play only matched segments"})})]}),e.jsxs("div",{className:d.default.transcript,style:null==j?void 0:j.transcriptContainer,children:[e.jsx("div",{className:d.default.transcriptHeader,style:null==j?void 0:j.transcriptHeader,children:"Transcript"}),(t=>{const i=a.sortTopicsByCheckedStatus(t);return e.jsx("div",{className:d.default.segmentList,style:null==j?void 0:j.segmentList,children:null==i?void 0:i.map(t=>e.jsx("div",{id:t.segment_id,className:d.default.segmentItem,style:null==j?void 0:j.transcriptSegment,children:e.jsx(l.default,{content:t.text,startTime:v(t.start),endTime:v(t.end),words:t.words||[],currentTime:x,containerStyle:null==j?void 0:j.transcriptContainer,customStyles:null==j?void 0:j.segmentWords})},t.segment_id))})})(f)]})]})]})})});exports.default=g,exports.formatTime=v;
2
2
  //# sourceMappingURL=SearchWaveFromWrapper.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react"),i=require("./components/AudioCitationIcon.js"),o=require("./SearchWaveFromWrapper.js"),n=require("../../../../CitationRenderer/CitationRenderer.js");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=a(e);exports.default=e=>{var a,r,u,l,s,d,m;const p=(null===(a=e.customIcons)||void 0===a?void 0:a.waveformCitationIcon)||t.jsx(i.default,{});return t.jsx(n.default,{inLineCitation:!0,citationTitle:e.title,citationId:`audio-citation-${e.citation.citation_number}`,citationComponent:t.jsx(o.default,{citationNumber:e.citation.citation_number,gsUtilPath:"audio_transcript"===e.citation.customMetadata.type?null===(r=e.citation.customMetadata)||void 0===r?void 0:r.gs_util_url:"",relevanceScore:"audio_transcript"===e.citation.customMetadata.type?null===(u=e.citation.customMetadata)||void 0===u?void 0:u.relevance_score:0,title:"audio_transcript"===e.citation.customMetadata.type?null===(l=e.citation.customMetadata)||void 0===l?void 0:l.file_name:"",segments:"audio_transcript"===e.citation.customMetadata.type?null===(s=e.citation.customMetadata)||void 0===s?void 0:s.segments:[],customStyles:e.customStyles}),chevronDownComponent:(null==e?void 0:e.citationIcon)?c.default.createElement(e.citationIcon):p,chevronUpComponent:(null==e?void 0:e.citationIcon)?c.default.createElement(e.citationIcon):p,styles:{pillButton:Object.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===(d=e.customStyles)||void 0===d?void 0:d.pill),citationContent:Object.assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(m=e.customStyles)||void 0===m?void 0:m.content)}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react"),i=require("./components/AudioCitationIcon.js"),o=require("./SearchWaveFromWrapper.js"),n=require("../../../../CitationRenderer/CitationRenderer.js");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=a(e);exports.default=e=>{var a,r,u,l,d,s,m;const p=(null===(a=e.customIcons)||void 0===a?void 0:a.waveformCitationIcon)||t.jsx(i.default,{});return t.jsx(n.default,{inLineCitation:!0,citationTitle:e.title,citationId:`audio-citation-${e.citation.citation_number}`,citationComponent:t.jsx(o.default,{citationNumber:e.citation.citation_number,gsUtilPath:"audio_transcript"===e.citation.customMetadata.type?null===(r=e.citation.customMetadata)||void 0===r?void 0:r.gs_util_url:"",relevanceScore:"audio_transcript"===e.citation.customMetadata.type?null===(u=e.citation.customMetadata)||void 0===u?void 0:u.relevance_score:0,title:"audio_transcript"===e.citation.customMetadata.type?null===(l=e.citation.customMetadata)||void 0===l?void 0:l.file_name:"",segments:"audio_transcript"===e.citation.customMetadata.type?null===(d=e.citation.customMetadata)||void 0===d?void 0:d.segments:[],customStyles:e.customStyles}),chevronDownComponent:(null==e?void 0:e.citationIcon)?c.default.createElement(e.citationIcon):p,chevronUpComponent:(null==e?void 0:e.citationIcon)?c.default.createElement(e.citationIcon):p,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===(s=e.customStyles)||void 0===s?void 0:s.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(m=e.customStyles)||void 0===m?void 0:m.content}}})};
2
2
  //# sourceMappingURL=WaveformCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=s=>e.jsx("div",Object.assign({className:"mb-2"},{children:e.jsxs("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("path",{d:"M6.00012 4.5C6.00012 3.70435 6.31619 2.94129 6.8788 2.37868C7.44141 1.81607 8.20447 1.5 9.00012 1.5H14.3791C14.9757 1.50053 15.5476 1.73792 15.9691 2.16L20.3416 6.531C20.7631 6.9528 21 7.52468 21.0001 8.121V19.5C21.0001 20.2957 20.684 21.0587 20.1214 21.6213C19.5588 22.1839 18.7958 22.5 18.0001 22.5H10.4561L10.4562 21.063H11.6561L18.0001 21C18.3979 21 18.7795 20.842 19.0608 20.5607C19.3421 20.2794 19.5001 19.8978 19.5001 19.5V9H15.7501C15.1534 9 14.5811 8.76295 14.1591 8.34099C13.7372 7.91903 13.5001 7.34674 13.5001 6.75V3H9.00012C8.60229 3 8.22076 3.15804 7.93946 3.43934C7.65815 3.72064 7.50012 4.10218 7.50012 4.5V8.14383H6.00012V4.5ZM15.7501 7.5H19.1896L15.0001 3.3105V6.75C15.0001 6.94891 15.0791 7.13968 15.2198 7.28033C15.3604 7.42098 15.5512 7.5 15.7501 7.5Z",fill:"#5C75F4"}),e.jsx("path",{d:"M10.0691 14.3961V15.3008C10.0691 17.0495 8.65149 18.4672 6.90273 18.4672M3.73633 14.3961V15.3008C3.73633 17.0495 5.15398 18.4672 6.90273 18.4672M6.90273 18.4672V19.8242M5.09336 19.8242H8.71211M6.90273 16.6578C6.15327 16.6578 5.5457 16.0502 5.5457 15.3008V12.1344C5.5457 11.3849 6.15327 10.7773 6.90273 10.7773C7.6522 10.7773 8.25977 11.3849 8.25977 12.1344V15.3008C8.25977 16.0502 7.6522 16.6578 6.90273 16.6578Z",stroke:"#5C75F4","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("g",Object.assign({"clip-path":"url(#clip0_3025_73410)"},{children:e.jsx("path",{d:"M11.7012 13.7758L11.7012 14.9758M13.0512 14.0758V14.6758M14.4012 12.5758V16.1758M15.7512 11.6758V17.0758M17.1012 13.7758V14.9758",stroke:"#5C75F4","stroke-width":"0.837402","stroke-linecap":"round","stroke-linejoin":"round"})})),e.jsx("defs",{children:e.jsx("clipPath",Object.assign({id:"clip0_3025_73410"},{children:e.jsx("rect",{width:"7.2",height:"7.2",fill:"white",transform:"translate(10.8008 10.7773)"})}))})]}))}));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=t=>e.jsx("div",{className:"mb-2",children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M6.00012 4.5C6.00012 3.70435 6.31619 2.94129 6.8788 2.37868C7.44141 1.81607 8.20447 1.5 9.00012 1.5H14.3791C14.9757 1.50053 15.5476 1.73792 15.9691 2.16L20.3416 6.531C20.7631 6.9528 21 7.52468 21.0001 8.121V19.5C21.0001 20.2957 20.684 21.0587 20.1214 21.6213C19.5588 22.1839 18.7958 22.5 18.0001 22.5H10.4561L10.4562 21.063H11.6561L18.0001 21C18.3979 21 18.7795 20.842 19.0608 20.5607C19.3421 20.2794 19.5001 19.8978 19.5001 19.5V9H15.7501C15.1534 9 14.5811 8.76295 14.1591 8.34099C13.7372 7.91903 13.5001 7.34674 13.5001 6.75V3H9.00012C8.60229 3 8.22076 3.15804 7.93946 3.43934C7.65815 3.72064 7.50012 4.10218 7.50012 4.5V8.14383H6.00012V4.5ZM15.7501 7.5H19.1896L15.0001 3.3105V6.75C15.0001 6.94891 15.0791 7.13968 15.2198 7.28033C15.3604 7.42098 15.5512 7.5 15.7501 7.5Z",fill:"#5C75F4"}),e.jsx("path",{d:"M10.0691 14.3961V15.3008C10.0691 17.0495 8.65149 18.4672 6.90273 18.4672M3.73633 14.3961V15.3008C3.73633 17.0495 5.15398 18.4672 6.90273 18.4672M6.90273 18.4672V19.8242M5.09336 19.8242H8.71211M6.90273 16.6578C6.15327 16.6578 5.5457 16.0502 5.5457 15.3008V12.1344C5.5457 11.3849 6.15327 10.7773 6.90273 10.7773C7.6522 10.7773 8.25977 11.3849 8.25977 12.1344V15.3008C8.25977 16.0502 7.6522 16.6578 6.90273 16.6578Z",stroke:"#5C75F4","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("g",{"clip-path":"url(#clip0_3025_73410)",children:e.jsx("path",{d:"M11.7012 13.7758L11.7012 14.9758M13.0512 14.0758V14.6758M14.4012 12.5758V16.1758M15.7512 11.6758V17.0758M17.1012 13.7758V14.9758",stroke:"#5C75F4","stroke-width":"0.837402","stroke-linecap":"round","stroke-linejoin":"round"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_3025_73410",children:e.jsx("rect",{width:"7.2",height:"7.2",fill:"white",transform:"translate(10.8008 10.7773)"})})})]})});
2
2
  //# sourceMappingURL=AudioCitationIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("wavesurfer.js"),n=require("wavesurfer.js/dist/plugins/regions"),u=require("../store/autoplay.wavefrom.js"),s=require("./AudioTimeLineSlider.module.css.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=c(t),l=c(r),i=c(n);const o=t.forwardRef(({audio_file_name:r,matchedSegments:n,onTimeUpdate:c,peaks:o,duration:d,setIsAudioPlaying:f,setChevronIndex:g,chevronIndex:m=0,onToggleShowMatched:p,topicId:v,isVideoBuffering:h,playOnlyMatched:y=!0,showOnlyMatched:S,setShowOnlyMatched:j,customStyles:b},T)=>{const[x,k]=t.useState(!1),[R,w]=t.useState(!0),[_,O]=t.useState(!1),[P,C]=t.useState(!1),[M,N]=t.useState(!1),[$,I]=t.useState(!1),[E,q]=t.useState(0),[D,A]=t.useState(!1),[B,W]=t.useState("00:00:00"),[H,L]=t.useState("00:00:00"),[U,X]=t.useState(0),[z,F]=t.useState(!1),[G,V]=t.useState(0),[J,K]=t.useState("00:00:00"),Q=t.useRef(null),Y=t.useRef(!1),Z=t.useRef(null),ee=t.useRef(null),te=t.useRef(null),re=t.useRef(!1),ne=t.useRef(null),ue=t.useRef(null),se=t.useRef(0),ce=t.useRef(0),[ae,le]=t.useState(!1),{playTopicId:ie,resetTrigger:oe,pendingPlayRequest:de,setPendingPlayRequest:fe,triggerPlayForTopic:ge}=u.useAudioPlayPause(),me=t.useRef(null),pe=e=>{try{const[t,r,n,u]=e.split(":"),s=parseInt(t).toString().padStart(2,"0"),c=parseInt(r).toString().padStart(2,"0");return`${s}:${c}:${parseInt(n).toString().padStart(2,"0")}`}catch(e){console.log("Error converting formatTimeToHMS",e)}};t.useEffect(()=>{ae&&de===v&&(fe(null),setTimeout(()=>{ge(v)},100))},[ae,de,v]),t.useEffect(()=>{ae&&ie===v&&(me.current&&(me.current.click(),k(!0)),oe())},[ie,v,ae]),t.useEffect(()=>(le(!0),()=>{le(!1)}),[]),t.useEffect(()=>{if(!r||!Z.current||re.current)return;w(!0);const e=i.default.create(),t=l.default.create({container:Z.current,waveColor:"#D0D5DD",progressColor:"#ffffffff",cursorColor:"#ffffffff",barWidth:2,barRadius:3});return ee.current=t,te.current=t.registerPlugin(e),re.current=!0,t.on("decode",()=>{A(!0),he();const e=pe(ve(d));L(e||"00:00:00")}),t.on("ready",()=>{w(!1)}),t.on("play",()=>{k(!0),f&&f(!0)}),t.on("pause",()=>{k(!1),f&&f(!1)}),t.on("finish",()=>{k(!1),f&&f(!1),_&&(O(!1),C(!1),N(!0))}),t.on("seeking",()=>{S||_&&!P&&ye()}),t.on("error",()=>{w(!1)}),t.on("audioprocess",e=>{if(c&&c(e),!Y.current){X(e/d*100)}const t=pe(ve(e));W(t||"00:00:00"),ce.current=e}),()=>{ne.current&&clearTimeout(ne.current),ue.current,t.destroy(),re.current=!1,ee.current=null}},[r]),t.useEffect(()=>{ee.current&&(ee.current.setOptions({interact:!S}),x&&ee.current.pause(),S?(O(!0),se.current=0):ye(),p&&p(S))},[S]);const ve=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),u=Math.floor(e%1*1e3);return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}:${String(u).padStart(3,"0")}`},he=t.useCallback(()=>{te.current&&ee.current&&(te.current.clearRegions(),n.forEach((e,t)=>{te.current.addRegion({start:e.start_time,end:e.end_time,color:"#feef89",drag:!1,resize:!1,id:e.segment_id})}))},[n]),ye=t.useCallback(()=>{ee.current&&(O(!1),C(!1),N(!1),I(!1),ne.current&&(clearTimeout(ne.current),ne.current=null),ue.current&&(ee.current.un("audioprocess",ue.current),ue.current=null))},[]),Se=t.useCallback(e=>{!S&&ee.current&&(ee.current.seekTo(e/d),ee.current.play(),k(!0),f&&f(!0),W(pe(ve(e))),O(!1),C(!1),N(!1))},[S,d,f,ve,pe]),je=t.useRef(!1),be=t.useCallback(()=>{if(je.current)return;if(!ee.current||!n.length)return;je.current=!0,ee.current.pause();const e=se.current+1;if(console.log("Current segment:",se.current),console.log("Next index calculated:",e),console.log("Total segments:",n.length),e<n.length){const t=n[e];W(pe(ve(t.start_time))),g&&g(e),q(e),se.current=e;const r=S?0:2e3;ne.current=setTimeout(()=>{je.current=!1,setTimeout(()=>{if(!ee.current)return;ee.current.seekTo(t.start_time/d),ee.current.play();const e=t.end_time,r=t=>{var n;t>=e&&(null===(n=ee.current)||void 0===n||n.un("audioprocess",r),ue.current=null,be())};ue.current=r,ee.current.on("audioprocess",r)},100)},r)}else{if(console.log("End of cycle reached, resetting to index 0"),O(S),C(!0),N(!0),se.current=0,q(0),g&&g(0),n.length>0){const e=n[0];W(pe(ve(e.start_time))),ee.current.seekTo(e.start_time/d)}ee.current.isPlaying()&&ee.current.pause(),ne.current=setTimeout(()=>{je.current=!1,ee.current&&ee.current.isPlaying()&&ee.current.pause()},S?0:2e3)}},[n,d,g,ve,S]),Te=t.useCallback(()=>{if(!ee.current||!n.length)return;const e=se.current;if(e>=n.length)return O(S),void N(!0);const t=n[e];q(e),W(pe(ve(t.start_time))),g&&g(e),setTimeout(()=>{if(!ee.current)return;ee.current.seekTo(t.start_time/d),ee.current.play();const e=t.end_time,r=t=>{var n;t>=e&&(null===(n=ee.current)||void 0===n||n.un("audioprocess",r),ue.current=null,be())};ue.current=r,ee.current.on("audioprocess",r)},100)},[n,d,g,be,ve,S]),xe=t.useCallback(()=>{if(!ee.current||!n.length)return;ue.current&&(ee.current.un("audioprocess",ue.current),ue.current=null);const e=n[se.current];if(!e)return;const t=e.end_time,r=e=>{var n;e>=t&&(null===(n=ee.current)||void 0===n||n.un("audioprocess",r),ue.current=null,be())};ue.current=r,ee.current.on("audioprocess",r)},[n,be]),ke=t.useCallback(()=>{ee.current&&(S?x?(ee.current.pause(),C(!0)):P?(ee.current.play(),C(!1),xe()):M?(N(!1),se.current=0,Te()):Te():x?ee.current.pause():ee.current.play())},[x,S,P,M,Te,xe]),Re=t.useCallback(e=>{if(!ee.current||0===n.length)return;const t=x;let r;x&&(ee.current.pause(),C(!0)),ue.current&&(ee.current.un("audioprocess",ue.current),ue.current=null),r="next"===e?(E+1)%n.length:(E-1+n.length)%n.length,q(r),se.current=r;const u=n[r];ee.current.seekTo(u.start_time/d),g&&g(r),t&&S&&setTimeout(()=>{ee.current&&(ee.current.play(),C(!1),xe())},50)},[E,n,g,d,x,S,xe]),we=t.useCallback(e=>{ee.current&&(S||(_&&ye(),ee.current.seekTo(e/d)))},[d,_,ye,S]);t.useEffect(()=>{if(n.length>0&&void 0!==m&&ee.current&&!je.current){if(m===se.current)return;const e=x;ue.current&&(ee.current.un("audioprocess",ue.current),ue.current=null);const t=n[m];t&&(ee.current.seekTo(t.start_time/d),q(m),se.current=m,e&&S&&setTimeout(()=>{ee.current&&xe()},50))}},[m,d,n,S,x,xe]);const _e=t.useRef(!1);t.useEffect(()=>{h&&ee.current&&ee.current.isPlaying()&&(_e.current=!0,ee.current.pause(),_&&C(!0)),!h&&_e.current&&ee.current&&ee.current&&(ee.current.play(),_e.current=!1,_&&P&&(C(!1),xe()))},[h,_,P,xe]),a.default.useImperativeHandle(T,()=>({waveSurfer:ee.current,navigateSegments:Re,togglePlayPause:ke,getCurrentSegmentIndex:()=>E,setCurrentSegmentIndex:q,isPlayingSequence:()=>_,setPlayingSequence:e=>O(e),seekToTime:we,showOnlyMatched:S,setShowOnlyMatched:e=>j(e),handleIndividualSegmentPlay:Se,setPlaybackRate:e=>{ee.current&&ee.current.setPlaybackRate(e)}}),[ee.current,Re,ke,E,_,we,S,Se]);return e.jsx("div",Object.assign({className:s.default.container,style:null==b?void 0:b.container},{children:e.jsxs("div",Object.assign({className:s.default.inner,style:null==b?void 0:b.inner},{children:[e.jsx("div",Object.assign({className:s.default.waveformWrapper,style:null==b?void 0:b.waveformRow},{children:e.jsx("div",{ref:Z,className:s.default.waveform,style:null==b?void 0:b.waveform})})),e.jsx("div",Object.assign({className:s.default.timeWrapper,style:null==b?void 0:b.timeRow},{children:e.jsxs("div",Object.assign({className:s.default.timeText,style:null==b?void 0:b.timeText},{children:[e.jsx("span",{children:B}),e.jsx("span",{children:"/"}),e.jsx("span",{children:H})]}))})),e.jsx("div",Object.assign({className:s.default.sliderRow,style:null==b?void 0:b.sliderRow},{children:e.jsxs("div",Object.assign({className:`${s.default.slider} ${[s.default.sliderBase,S?s.default.sliderDisabled:s.default.sliderEnabled,s.default.sliderGroup].join(" ")}`,ref:Q,style:null==b?void 0:b.slider,onClick:S?void 0:e=>{var t;if(S)return;const r=null===(t=Q.current)||void 0===t?void 0:t.getBoundingClientRect();if(!r||!ee.current)return;const n=(e.clientX-r.left)/r.width*100,u=n/100*d;X(n),ee.current.seekTo(u/d),_&&ye()},onMouseMove:S?void 0:e=>{if(!S&&Q.current){const t=Q.current.getBoundingClientRect(),r=e.clientX-t.left;if(r>=0&&r<=t.width){const e=r/t.width*100;F(!0),V(r);const n=pe(ve(e/100*d));K(n||"00:00:00")}}},onMouseLeave:()=>{F(!1)},onMouseDown:S?void 0:()=>{S||(Y.current=!0)},onMouseUp:S?void 0:()=>{if(!S&&(Y.current=!1,ee.current)){const e=U/100*d;ee.current.seekTo(e/d),_&&ye()}}},{children:[e.jsx("div",Object.assign({className:s.default.track,style:null==b?void 0:b.sliderTrack},{children:e.jsx("div",{className:s.default.trackStripes,style:{backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 4px, #cbd5e1 4px, #cbd5e1 5px)"}})})),n.map((t,r)=>{const n=t.start_time/d*100,u=(t.end_time-t.start_time)/d*100,c=r===E&&y;return e.jsx("div",{className:`${s.default.segment} ${c?s.default.segmentActive:s.default.segmentInactive}`,style:{left:`${n}%`,width:`${u}%`,opacity:y&&!c?.3:1}},t.segment_id)}),e.jsx("div",{className:s.default.progress,style:Object.assign({width:`${U}%`},null==b?void 0:b.sliderProgress)}),e.jsx("div",Object.assign({className:s.default.thumb,style:Object.assign({left:`${U}%`},null==b?void 0:b.sliderThumb)},{children:e.jsx("div",{className:s.default.thumbDot,style:null==b?void 0:b.thumbDot})})),z&&!S&&e.jsx("div",Object.assign({className:s.default.tooltip,style:Object.assign({left:G},null==b?void 0:b.timeTooltip)},{children:J}))]}))}))]}))}))});o.displayName="AudioTimelineSlider",exports.default=o;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("wavesurfer.js"),n=require("wavesurfer.js/dist/plugins/regions"),u=require("../store/autoplay.wavefrom.js"),s=require("./AudioTimeLineSlider.module.css.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(t),a=c(r),i=c(n);const o=t.forwardRef(({audio_file_name:r,matchedSegments:n,onTimeUpdate:c,peaks:o,duration:d,setIsAudioPlaying:f,setChevronIndex:m,chevronIndex:p=0,onToggleShowMatched:g,topicId:v,isVideoBuffering:h,playOnlyMatched:y=!0,showOnlyMatched:S,setShowOnlyMatched:T,customStyles:x},k)=>{const[R,j]=t.useState(!1),[w,b]=t.useState(!0),[_,P]=t.useState(!1),[C,M]=t.useState(!1),[N,$]=t.useState(!1),[I,E]=t.useState(!1),[q,D]=t.useState(0),[O,A]=t.useState(!1),[B,W]=t.useState("00:00:00"),[H,L]=t.useState("00:00:00"),[U,X]=t.useState(0),[z,F]=t.useState(!1),[G,V]=t.useState(0),[J,K]=t.useState("00:00:00"),Q=t.useRef(null),Y=t.useRef(!1),Z=t.useRef(null),ee=t.useRef(null),te=t.useRef(null),re=t.useRef(!1),ne=t.useRef(null),ue=t.useRef(null),se=t.useRef(0),ce=t.useRef(0),[le,ae]=t.useState(!1),{playTopicId:ie,resetTrigger:oe,pendingPlayRequest:de,setPendingPlayRequest:fe,triggerPlayForTopic:me}=u.useAudioPlayPause(),pe=t.useRef(null),ge=e=>{try{const[t,r,n,u]=e.split(":"),s=parseInt(t).toString().padStart(2,"0"),c=parseInt(r).toString().padStart(2,"0");return`${s}:${c}:${parseInt(n).toString().padStart(2,"0")}`}catch(e){console.log("Error converting formatTimeToHMS",e)}};t.useEffect(()=>{le&&de===v&&(fe(null),setTimeout(()=>{me(v)},100))},[le,de,v]),t.useEffect(()=>{le&&ie===v&&(pe.current&&(pe.current.click(),j(!0)),oe())},[ie,v,le]),t.useEffect(()=>(ae(!0),()=>{ae(!1)}),[]),t.useEffect(()=>{if(!r||!Z.current||re.current)return;b(!0);const e=i.default.create(),t=a.default.create({container:Z.current,waveColor:"#D0D5DD",progressColor:"#ffffffff",cursorColor:"#ffffffff",barWidth:2,barRadius:3});return ee.current=t,te.current=t.registerPlugin(e),re.current=!0,t.on("decode",()=>{A(!0),he();const e=ge(ve(d));L(e||"00:00:00")}),t.on("ready",()=>{b(!1)}),t.on("play",()=>{j(!0),f&&f(!0)}),t.on("pause",()=>{j(!1),f&&f(!1)}),t.on("finish",()=>{j(!1),f&&f(!1),_&&(P(!1),M(!1),$(!0))}),t.on("seeking",()=>{S||_&&!C&&ye()}),t.on("error",()=>{b(!1)}),t.on("audioprocess",e=>{if(c&&c(e),!Y.current){X(e/d*100)}const t=ge(ve(e));W(t||"00:00:00"),ce.current=e}),()=>{ne.current&&clearTimeout(ne.current),ue.current,t.destroy(),re.current=!1,ee.current=null}},[r]),t.useEffect(()=>{ee.current&&(ee.current.setOptions({interact:!S}),R&&ee.current.pause(),S?(P(!0),se.current=0):ye(),g&&g(S))},[S]);const ve=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),u=Math.floor(e%1*1e3);return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}:${String(u).padStart(3,"0")}`},he=t.useCallback(()=>{te.current&&ee.current&&(te.current.clearRegions(),n.forEach((e,t)=>{te.current.addRegion({start:e.start_time,end:e.end_time,color:"#feef89",drag:!1,resize:!1,id:e.segment_id})}))},[n]),ye=t.useCallback(()=>{ee.current&&(P(!1),M(!1),$(!1),E(!1),ne.current&&(clearTimeout(ne.current),ne.current=null),ue.current&&(ee.current.un("audioprocess",ue.current),ue.current=null))},[]),Se=t.useCallback(e=>{!S&&ee.current&&(ee.current.seekTo(e/d),ee.current.play(),j(!0),f&&f(!0),W(ge(ve(e))),P(!1),M(!1),$(!1))},[S,d,f,ve,ge]),Te=t.useRef(!1),xe=t.useCallback(()=>{if(Te.current)return;if(!ee.current||!n.length)return;Te.current=!0,ee.current.pause();const e=se.current+1;if(console.log("Current segment:",se.current),console.log("Next index calculated:",e),console.log("Total segments:",n.length),e<n.length){const t=n[e];W(ge(ve(t.start_time))),m&&m(e),D(e),se.current=e;const r=S?0:2e3;ne.current=setTimeout(()=>{Te.current=!1,setTimeout(()=>{if(!ee.current)return;ee.current.seekTo(t.start_time/d),ee.current.play();const e=t.end_time,r=t=>{var n;t>=e&&(null===(n=ee.current)||void 0===n||n.un("audioprocess",r),ue.current=null,xe())};ue.current=r,ee.current.on("audioprocess",r)},100)},r)}else{if(console.log("End of cycle reached, resetting to index 0"),P(S),M(!0),$(!0),se.current=0,D(0),m&&m(0),n.length>0){const e=n[0];W(ge(ve(e.start_time))),ee.current.seekTo(e.start_time/d)}ee.current.isPlaying()&&ee.current.pause(),ne.current=setTimeout(()=>{Te.current=!1,ee.current&&ee.current.isPlaying()&&ee.current.pause()},S?0:2e3)}},[n,d,m,ve,S]),ke=t.useCallback(()=>{if(!ee.current||!n.length)return;const e=se.current;if(e>=n.length)return P(S),void $(!0);const t=n[e];D(e),W(ge(ve(t.start_time))),m&&m(e),setTimeout(()=>{if(!ee.current)return;ee.current.seekTo(t.start_time/d),ee.current.play();const e=t.end_time,r=t=>{var n;t>=e&&(null===(n=ee.current)||void 0===n||n.un("audioprocess",r),ue.current=null,xe())};ue.current=r,ee.current.on("audioprocess",r)},100)},[n,d,m,xe,ve,S]),Re=t.useCallback(()=>{if(!ee.current||!n.length)return;ue.current&&(ee.current.un("audioprocess",ue.current),ue.current=null);const e=n[se.current];if(!e)return;const t=e.end_time,r=e=>{var n;e>=t&&(null===(n=ee.current)||void 0===n||n.un("audioprocess",r),ue.current=null,xe())};ue.current=r,ee.current.on("audioprocess",r)},[n,xe]),je=t.useCallback(()=>{ee.current&&(S?R?(ee.current.pause(),M(!0)):C?(ee.current.play(),M(!1),Re()):N?($(!1),se.current=0,ke()):ke():R?ee.current.pause():ee.current.play())},[R,S,C,N,ke,Re]),we=t.useCallback(e=>{if(!ee.current||0===n.length)return;const t=R;let r;R&&(ee.current.pause(),M(!0)),ue.current&&(ee.current.un("audioprocess",ue.current),ue.current=null),r="next"===e?(q+1)%n.length:(q-1+n.length)%n.length,D(r),se.current=r;const u=n[r];ee.current.seekTo(u.start_time/d),m&&m(r),t&&S&&setTimeout(()=>{ee.current&&(ee.current.play(),M(!1),Re())},50)},[q,n,m,d,R,S,Re]),be=t.useCallback(e=>{ee.current&&(S||(_&&ye(),ee.current.seekTo(e/d)))},[d,_,ye,S]);t.useEffect(()=>{if(n.length>0&&void 0!==p&&ee.current&&!Te.current){if(p===se.current)return;const e=R;ue.current&&(ee.current.un("audioprocess",ue.current),ue.current=null);const t=n[p];t&&(ee.current.seekTo(t.start_time/d),D(p),se.current=p,e&&S&&setTimeout(()=>{ee.current&&Re()},50))}},[p,d,n,S,R,Re]);const _e=t.useRef(!1);t.useEffect(()=>{h&&ee.current&&ee.current.isPlaying()&&(_e.current=!0,ee.current.pause(),_&&M(!0)),!h&&_e.current&&ee.current&&ee.current&&(ee.current.play(),_e.current=!1,_&&C&&(M(!1),Re()))},[h,_,C,Re]),l.default.useImperativeHandle(k,()=>({waveSurfer:ee.current,navigateSegments:we,togglePlayPause:je,getCurrentSegmentIndex:()=>q,setCurrentSegmentIndex:D,isPlayingSequence:()=>_,setPlayingSequence:e=>P(e),seekToTime:be,showOnlyMatched:S,setShowOnlyMatched:e=>T(e),handleIndividualSegmentPlay:Se,setPlaybackRate:e=>{ee.current&&ee.current.setPlaybackRate(e)}}),[ee.current,we,je,q,_,be,S,Se]);return e.jsx("div",{className:s.default.container,style:null==x?void 0:x.container,children:e.jsxs("div",{className:s.default.inner,style:null==x?void 0:x.inner,children:[e.jsx("div",{className:s.default.waveformWrapper,style:null==x?void 0:x.waveformRow,children:e.jsx("div",{ref:Z,className:s.default.waveform,style:null==x?void 0:x.waveform})}),e.jsx("div",{className:s.default.timeWrapper,style:null==x?void 0:x.timeRow,children:e.jsxs("div",{className:s.default.timeText,style:null==x?void 0:x.timeText,children:[e.jsx("span",{children:B}),e.jsx("span",{children:"/"}),e.jsx("span",{children:H})]})}),e.jsx("div",{className:s.default.sliderRow,style:null==x?void 0:x.sliderRow,children:e.jsxs("div",{className:`${s.default.slider} ${[s.default.sliderBase,S?s.default.sliderDisabled:s.default.sliderEnabled,s.default.sliderGroup].join(" ")}`,ref:Q,style:null==x?void 0:x.slider,onClick:S?void 0:e=>{var t;if(S)return;const r=null===(t=Q.current)||void 0===t?void 0:t.getBoundingClientRect();if(!r||!ee.current)return;const n=(e.clientX-r.left)/r.width*100,u=n/100*d;X(n),ee.current.seekTo(u/d),_&&ye()},onMouseMove:S?void 0:e=>{if(!S&&Q.current){const t=Q.current.getBoundingClientRect(),r=e.clientX-t.left;if(r>=0&&r<=t.width){const e=r/t.width*100;F(!0),V(r);const n=ge(ve(e/100*d));K(n||"00:00:00")}}},onMouseLeave:()=>{F(!1)},onMouseDown:S?void 0:()=>{S||(Y.current=!0)},onMouseUp:S?void 0:()=>{if(!S&&(Y.current=!1,ee.current)){const e=U/100*d;ee.current.seekTo(e/d),_&&ye()}},children:[e.jsx("div",{className:s.default.track,style:null==x?void 0:x.sliderTrack,children:e.jsx("div",{className:s.default.trackStripes,style:{backgroundImage:"repeating-linear-gradient(45deg, transparent, transparent 4px, #cbd5e1 4px, #cbd5e1 5px)"}})}),n.map((t,r)=>{const n=t.start_time/d*100,u=(t.end_time-t.start_time)/d*100,c=r===q&&y;return e.jsx("div",{className:`${s.default.segment} ${c?s.default.segmentActive:s.default.segmentInactive}`,style:{left:`${n}%`,width:`${u}%`,opacity:y&&!c?.3:1}},t.segment_id)}),e.jsx("div",{className:s.default.progress,style:{width:`${U}%`,...null==x?void 0:x.sliderProgress}}),e.jsx("div",{className:s.default.thumb,style:{left:`${U}%`,...null==x?void 0:x.sliderThumb},children:e.jsx("div",{className:s.default.thumbDot,style:null==x?void 0:x.thumbDot})}),z&&!S&&e.jsx("div",{className:s.default.tooltip,style:{left:G,...null==x?void 0:x.timeTooltip},children:J})]})})]})})});o.displayName="AudioTimelineSlider",exports.default=o;
2
2
  //# sourceMappingURL=AudioTimeLineSlider.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("./SegmentByWordsViral.module.css.js");function r(e){if("number"==typeof e)return e;if(!e)return 0;const[t,n,r]=e.split(":");return 3600*parseInt(t)+60*parseInt(n)+parseFloat(r)}exports.default=s=>{const{startTime:i,endTime:l,words:o,currentTime:a,content:c,containerStyle:u,customStyles:d}=s,f=t.useRef([]),m=t.useRef(null),g=r(i),p=r(l),j=a>=g&&a<=p;t.useEffect(()=>{if(j){const e=o.findIndex(e=>a>=e.start&&a<=e.end);if(-1!==e&&f.current[e]){const t=f.current[e];if(t&&m.current){const e=m.current.getBoundingClientRect(),n=t.getBoundingClientRect(),r=n.top<e.top,s=n.bottom>e.bottom;(r||s)&&t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}}}},[a,o,j]);return e.jsx("div",Object.assign({className:n.default.segmentContainer,style:null==d?void 0:d.segmentContainer},{children:e.jsx("div",Object.assign({className:n.default.wrapper,style:null==d?void 0:d.wrapper},{children:e.jsx("div",Object.assign({className:n.default.segmentTextContainer,style:null==d?void 0:d.segmentTextContainer,ref:m},{children:o&&0!==o.length?o.map((t,r)=>{const s=a>=t.end;return e.jsxs("span",Object.assign({ref:e=>f.current[r]=e,className:n.default.word,style:Object.assign({fontWeight:s?"bold":"normal"},null==d?void 0:d.wordText)},{children:[t.text," "]}),r)}):e.jsx("span",Object.assign({className:n.default.word,style:null==d?void 0:d.word},{children:c}))}))}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("./SegmentByWordsViral.module.css.js");function r(e){if("number"==typeof e)return e;if(!e)return 0;const[t,n,r]=e.split(":");return 3600*parseInt(t)+60*parseInt(n)+parseFloat(r)}exports.default=s=>{const{startTime:l,endTime:o,words:i,currentTime:a,content:u,containerStyle:c,customStyles:d}=s,f=t.useRef([]),m=t.useRef(null),p=r(l),x=r(o),g=a>=p&&a<=x;t.useEffect(()=>{if(g){const e=i.findIndex(e=>a>=e.start&&a<=e.end);if(-1!==e&&f.current[e]){const t=f.current[e];if(t&&m.current){const e=m.current.getBoundingClientRect(),n=t.getBoundingClientRect(),r=n.top<e.top,s=n.bottom>e.bottom;(r||s)&&t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}}}},[a,i,g]);return e.jsx("div",{className:n.default.segmentContainer,style:null==d?void 0:d.segmentContainer,children:e.jsx("div",{className:n.default.wrapper,style:null==d?void 0:d.wrapper,children:e.jsx("div",{className:n.default.segmentTextContainer,style:null==d?void 0:d.segmentTextContainer,ref:m,children:i&&0!==i.length?i.map((t,r)=>{const s=a>=t.end;return e.jsxs("span",{ref:e=>f.current[r]=e,className:n.default.word,style:{fontWeight:s?"bold":"normal",...null==d?void 0:d.wordText},children:[t.text," "]},r)}):e.jsx("span",{className:n.default.word,style:null==d?void 0:d.word,children:u})})})})};
2
2
  //# sourceMappingURL=SegmentByWordsViral.js.map
@@ -1,2 +1,2 @@
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 s=require("./AudioTimeLineSlider.js"),o=require("../icons/MaximizeIcon.js"),t=require("../icons/MinimizeIcon.js"),i=require("../icons/PlayIcon.js"),r=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:g,onVideoPlayPause:p,videoType:j="video/mp4",className:y="",onVideoLoadingStateChange:m,isUrlPending:x,isPeaksPending:h,signedUrl:S,AudioData:b,showOnlyMatched:P,setShowOnlyMatched:O,wavesurferRef:k,segments:V,setIsAudioPlaying:I,handleAudioTimeUpdate:J,customStyles:q,waveformStyles:w})=>{var N,R;const B=l.useRef(null),C=l.useRef(null),M=l.useRef(null),T=l.useRef(!1),E=l.useRef(!1),[A,$]=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}),!B.current)return void console.warn("[VideoJS] videoRef is null");console.log("[VideoJS] Initializing player"),U(!0),null==m||m(!0);const e=c.default(B.current,{controls:!1,autoplay:!1,preload:"auto",fluid:!0,muted:!0,sources:[{src:n,type:j}]});return e.on("loadstart",()=>{console.log("[VideoJS] loadstart"),U(!0),null==m||m(!0)}),e.on("canplay",()=>{console.log("[VideoJS] canplay",{isVideoLoading:L,isBuffering:T.current}),L&&(console.log("[VideoJS] Video loading finished"),U(!1),null==m||m(!1)),T.current&&(console.log("[VideoJS] Buffering ended"),T.current=!1,setTimeout(()=>{console.log("[VideoJS] onBufferingEnd()"),g()},100))}),e.on("waiting",()=>{console.log("[VideoJS] waiting (buffering start)"),T.current||(T.current=!0,E.current=f,console.log("[VideoJS] Buffering started",{wasPlaying:E.current}),v())}),e.on("error",()=>{console.error("[VideoJS] Player error",e.error()),U(!1),null==m||m(!1)}),C.current=e,console.log("[VideoJS] Player ready"),()=>{var e;console.log("[VideoJS] Disposing player"),null===(e=C.current)||void 0===e||e.dispose(),C.current=null}},[n]),l.useEffect(()=>{if(!C.current)return;const e=C.current.currentTime();Math.abs(e-u)>.2&&C.current.currentTime(u)},[u]),l.useEffect(()=>{C.current&&!T.current&&(f&&C.current.paused()?C.current.play().catch(()=>{}):f||C.current.paused()||C.current.pause())},[f]),l.useEffect(()=>{var e,l,n;const s=parseFloat(_.replace("x",""));null===(e=C.current)||void 0===e||e.playbackRate(s),null===(n=null===(l=k.current)||void 0===l?void 0:l.setPlaybackRate)||void 0===n||n.call(l,s)},[_]);return e.jsxs("div",Object.assign({ref:M,className:`${d.default.container} ${y}`,style:null==q?void 0:q.container},{children:[e.jsx("video",{ref:B,className:`video-js vjs-big-play-centered ${d.default.video}`,style:null==q?void 0:q.video,playsInline:!0,muted:!0}),e.jsxs("div",Object.assign({className:`${d.default.controlsWrapper} ${F?d.default.visible:d.default.hidden}`,style:null==q?void 0:q.controlsWrapper},{children:[W&&e.jsxs("div",Object.assign({className:d.default.speedSelector,style:null==q?void 0:q.speedSelector},{children:[e.jsx("div",Object.assign({className:d.default.speedHeader,style:null==q?void 0:q.speedHeader},{children:"Playback Speed"})),["0.5x","1x","1.5x","2x"].map(l=>e.jsx("button",Object.assign({onClick:()=>(e=>{var l,n,s;z(e),D(!1);const o=parseFloat(e.replace("x",""));null===(l=C.current)||void 0===l||l.playbackRate(o),null===(s=null===(n=k.current)||void 0===n?void 0:n.setPlaybackRate)||void 0===s||s.call(n,o)})(l),className:d.default.speedItem,style:null==q?void 0:q.speedItem},{children:l}),l))]})),e.jsxs("div",Object.assign({className:d.default.controlBar,style:null==q?void 0:q.controlBar},{children:[e.jsx("div",{children:f?e.jsx("button",Object.assign({onClick:e=>{e.stopPropagation(),null==p||p(!1)},style:null==q?void 0:q.pauseIcon},{children:e.jsx(r.default,{})})):e.jsx("button",Object.assign({onClick:e=>{e.stopPropagation(),null==p||p(!0)},style:null==q?void 0:q.playIcon},{children:e.jsx(i.default,{})}))}),e.jsxs("div",Object.assign({className:d.default.rightControls,style:null==q?void 0:q.rightControls},{children:["1x"!==_?e.jsx("span",Object.assign({onClick:H},{children:_})):e.jsx("button",Object.assign({onClick:H,style:null==q?void 0:q.playBackSpeedIcon},{children:e.jsx(a.default,{})})),e.jsx("button",Object.assign({onClick:e=>{var l,n,s;e.stopPropagation(),M.current&&(A?null===(s=document.exitFullscreen)||void 0===s||s.call(document):null===(n=(l=M.current).requestFullscreen)||void 0===n||n.call(l))}},{children:A?e.jsx(t.default,{}):e.jsx(o.default,{})}))]}))]})),e.jsx("div",Object.assign({className:d.default.timeline,style:null==q?void 0:q.timeline},{children:x||h?e.jsx("div",Object.assign({className:d.default.loader,style:null==q?void 0:q.loader},{children:e.jsx("span",{children:"Loading audio-timeline peaks..."})})):S&&b&&e.jsx(s.default,{ref:k,audio_file_name:S,peaks:null!==(N=b.peaks)&&void 0!==N?N:[],duration:null!==(R=b.duration)&&void 0!==R?R:0,matchedSegments:V,showOnlyMatched:P,setShowOnlyMatched:O,setIsAudioPlaying:I,onTimeUpdate:J,onToggleShowMatched:()=>{},customStyles:w})}))]}))]}))};
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("react/jsx-runtime");exports.default=({height:t=24,width:s=24})=>e.jsx("div",{children:e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:s,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"})]}))});
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("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("div",{children:e.jsxs("svg",Object.assign({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"})]}))});
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("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("div",{children:e.jsxs("svg",Object.assign({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"})]}))});
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("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("div",{children:e.jsxs("svg",Object.assign({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"})]}))});
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("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("svg",Object.assign({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"})}));
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("react/jsx-runtime");exports.default=()=>C.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 12 12",fill:"none"},{children:[C.jsxs("g",Object.assign({"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",Object.assign({id:"clip0_3246_74403"},{children:C.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("react/jsx-runtime");exports.default=({height:t=24,width:r=24})=>e.jsx("div",{children:e.jsxs("svg",Object.assign({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"})]}))});
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("react/jsx-runtime"),t=require("react"),r=require("wavesurfer.js"),n=require("wavesurfer.js/dist/plugins/regions"),u=require("./searchwaveform.module.css.js"),s=require("./icons/PauseIcon.js"),c=require("./icons/PlayIcon.js"),l=require("./store/autoplay.wavefrom.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(t),o=a(r),d=a(n);const f=t.forwardRef(({audio_file_name:r,showOnlyMatched:n,setShowOnlyMatched:a,matchedSegments:f,onTimeUpdate:g,currentAudioTime:p,peaks:m,duration:v,setIsAudioPlaying:h,setChevronIndex:y,chevronIndex:j=0,onToggleShowMatched:S,topicId:b,isVideoBuffering:x,playOnlyMatched:T=!0,customStyles:w},k)=>{const[R,P]=t.useState(!1),[O,C]=t.useState(!0),[N,_]=t.useState(!1),[M,I]=t.useState(!1),[q,$]=t.useState(!1),[E,B]=t.useState(!1),[A,D]=t.useState(0),[F,W]=t.useState(!1),[z,H]=t.useState("00:00:00"),[L,U]=t.useState("00:00:00"),[X,V]=t.useState(0),[G,J]=t.useState(!1),[K,Q]=t.useState(0),[Y,Z]=t.useState("00:00:00"),ee=t.useRef(null),te=t.useRef(!1),re=t.useRef(null),ne=t.useRef(null),ue=t.useRef(null),se=t.useRef(!1),ce=t.useRef(null),le=t.useRef(null),ae=t.useRef(0),ie=t.useRef(0),[oe,de]=t.useState(!1),{playTopicId:fe,resetTrigger:ge,pendingPlayRequest:pe,setPendingPlayRequest:me,triggerPlayForTopic:ve}=l.useAudioPlayPause(),he=t.useRef(null),ye=e=>{try{const[t,r,n,u]=e.split(":"),s=parseInt(t).toString().padStart(2,"0"),c=parseInt(r).toString().padStart(2,"0");return`${s}:${c}:${parseInt(n).toString().padStart(2,"0")}`}catch(e){console.log("Error converting formatTimeToHMS",e)}};t.useEffect(()=>{null==a||a(T)},[T]),t.useEffect(()=>{oe&&pe===b&&(me(null),setTimeout(()=>{ve(b)},100))},[oe,pe,b]),t.useEffect(()=>{oe&&fe===b&&(he.current&&(he.current.click(),P(!0)),ge())},[fe,b,oe]),t.useEffect(()=>(de(!0),()=>{de(!1)}),[]),t.useEffect(()=>{if(!r||!re.current||se.current)return;C(!0);const e=d.default.create(),t=o.default.create({container:re.current,waveColor:"#D0D5DD",progressColor:"#9CA3AF",cursorColor:"#6B7280",barWidth:2,barRadius:3,height:64,normalize:!0,peaks:[new Float32Array(m)],duration:v,url:r});return ne.current=t,ue.current=t.registerPlugin(e),se.current=!0,t.on("decode",()=>{W(!0),Se();const e=ye(je(v));U(e||"00:00:00")}),t.on("ready",()=>{C(!1)}),t.on("play",()=>{P(!0),h&&h(!0)}),t.on("pause",()=>{P(!1),h&&h(!1)}),t.on("finish",()=>{P(!1),h&&h(!1),N&&(_(!1),I(!1),$(!0))}),t.on("seeking",()=>{n||N&&!M&&be()}),t.on("error",()=>{C(!1)}),t.on("audioprocess",e=>{if(g&&g(e),!te.current){V(e/v*100)}const t=ye(je(e));H(t||"00:00:00"),ie.current=e}),()=>{ce.current&&clearTimeout(ce.current),le.current,t.destroy(),se.current=!1,ne.current=null}},[r]),t.useEffect(()=>{ne.current&&(ne.current.setOptions({interact:!n}),R&&ne.current.pause(),n?(_(!0),ae.current=0):be(),S&&S(n))},[n]);const je=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),u=Math.floor(e%1*1e3);return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}:${String(u).padStart(3,"0")}`},Se=t.useCallback(()=>{ue.current&&ne.current&&(ue.current.clearRegions(),f.forEach((e,t)=>{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]),be=t.useCallback(()=>{ne.current&&(_(!1),I(!1),$(!1),B(!1),ce.current&&(clearTimeout(ce.current),ce.current=null),le.current&&(ne.current.un("audioprocess",le.current),le.current=null))},[]),xe=t.useCallback(e=>{!n&&ne.current&&(ne.current.seekTo(e/v),ne.current.play(),P(!0),h&&h(!0),H(ye(je(e))),_(!1),I(!1),$(!1))},[n,v,h,je,ye]),Te=t.useRef(!1),we=t.useCallback(()=>{if(Te.current)return;if(!ne.current||!f.length)return;Te.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 t=f[e];H(ye(je(t.start_time))),y&&y(e),D(e),ae.current=e;const r=n?0:2e3;ce.current=setTimeout(()=>{Te.current=!1,setTimeout(()=>{if(!ne.current)return;ne.current.seekTo(t.start_time/v),ne.current.play();const e=t.end_time,r=t=>{var n;t>=e&&(null===(n=ne.current)||void 0===n||n.un("audioprocess",r),le.current=null,we())};le.current=r,ne.current.on("audioprocess",r)},100)},r)}else{if(console.log("End of cycle reached, resetting to index 0"),_(n),I(!0),$(!0),ae.current=0,D(0),y&&y(0),f.length>0){const e=f[0];H(ye(je(e.start_time))),ne.current.seekTo(e.start_time/v)}ne.current.isPlaying()&&ne.current.pause(),ce.current=setTimeout(()=>{Te.current=!1,ne.current&&ne.current.isPlaying()&&ne.current.pause()},n?0:2e3)}},[f,v,y,je,n]),ke=t.useCallback(()=>{if(!ne.current||!f.length)return;const e=ae.current;if(e>=f.length)return _(n),void $(!0);const t=f[e];D(e),H(ye(je(t.start_time))),y&&y(e),setTimeout(()=>{if(!ne.current)return;ne.current.seekTo(t.start_time/v),ne.current.play();const e=t.end_time,r=t=>{var n;t>=e&&(null===(n=ne.current)||void 0===n||n.un("audioprocess",r),le.current=null,we())};le.current=r,ne.current.on("audioprocess",r)},100)},[f,v,y,we,je,n]),Re=t.useCallback(()=>{if(!ne.current||!f.length)return;le.current&&(ne.current.un("audioprocess",le.current),le.current=null);const e=f[ae.current];if(!e)return;const t=e.end_time,r=e=>{var n;e>=t&&(null===(n=ne.current)||void 0===n||n.un("audioprocess",r),le.current=null,we())};le.current=r,ne.current.on("audioprocess",r)},[f,we]),Pe=t.useCallback(()=>{ne.current&&(n?R?(ne.current.pause(),I(!0)):M?(ne.current.play(),I(!1),Re()):q?($(!1),ae.current=0,ke()):ke():R?ne.current.pause():ne.current.play())},[R,n,M,q,ke,Re]),Oe=t.useCallback(e=>{if(!ne.current||0===f.length)return;const t=R;let r;R&&(ne.current.pause(),I(!0)),le.current&&(ne.current.un("audioprocess",le.current),le.current=null),r="next"===e?(A+1)%f.length:(A-1+f.length)%f.length,D(r),ae.current=r;const u=f[r];ne.current.seekTo(u.start_time/v),y&&y(r),t&&n&&setTimeout(()=>{ne.current&&(ne.current.play(),I(!1),Re())},50)},[A,f,y,v,R,n,Re]),Ce=t.useCallback(e=>{ne.current&&(n||(N&&be(),ne.current.seekTo(e/v)))},[v,N,be,n]);t.useEffect(()=>{if(f.length>0&&void 0!==j&&ne.current&&!Te.current){if(j===ae.current)return;const e=R;le.current&&(ne.current.un("audioprocess",le.current),le.current=null);const t=f[j];t&&(ne.current.seekTo(t.start_time/v),D(j),ae.current=j,e&&n&&setTimeout(()=>{ne.current&&Re()},50))}},[j,v,f,n,R,Re]);const Ne=t.useRef(!1);t.useEffect(()=>{x&&ne.current&&ne.current.isPlaying()&&(Ne.current=!0,ne.current.pause(),N&&I(!0)),!x&&Ne.current&&ne.current&&ne.current&&(ne.current.play(),Ne.current=!1,N&&M&&(I(!1),Re()))},[x,N,M,Re]),i.default.useImperativeHandle(k,()=>({waveSurfer:ne.current,navigateSegments:Oe,togglePlayPause:Pe,getCurrentSegmentIndex:()=>A,setCurrentSegmentIndex:D,isPlayingSequence:()=>N,setPlayingSequence:e=>_(e),seekToTime:Ce,showOnlyMatched:n,setShowOnlyMatched:e=>null==a?void 0:a(e),handleIndividualSegmentPlay:xe}),[ne.current,Oe,Pe,A,N,Ce,n,xe]);return e.jsx("div",Object.assign({className:u.default.container,style:null==w?void 0:w.container},{children:e.jsxs("div",Object.assign({className:u.default.inner,style:null==w?void 0:w.inner},{children:[e.jsxs("div",Object.assign({className:u.default.waveformRow,style:null==w?void 0:w.waveformRow},{children:[e.jsx("div",Object.assign({className:u.default.playButtonWrapper,style:null==w?void 0:w.playButtonWrapper},{children:e.jsx("button",Object.assign({ref:he,onClick:Pe,className:u.default.playButton,style:null==w?void 0:w.playButton,title:R?"Pause":"Play",disabled:O},{children:O?e.jsx(e.Fragment,{children:"Loading..."}):R?e.jsx("div",Object.assign({className:u.default.icon,style:null==w?void 0:w.pauseIcon},{children:e.jsx(s.default,{})})):e.jsx("div",Object.assign({className:u.default.icon,style:null==w?void 0:w.playIcon},{children:e.jsx(c.default,{})}))}))})),e.jsx("div",{ref:re,className:u.default.waveform,style:null==w?void 0:w.waveform})]})),e.jsxs("div",Object.assign({className:u.default.sliderRow,style:null==w?void 0:w.sliderRow},{children:[e.jsx("div",{className:u.default.buttonSpacer,style:null==w?void 0:w.buttonSpacer}),e.jsxs("div",Object.assign({className:`${u.default.slider}\n ${u.default.group}\n ${n?u.default.disabled:u.default.interactive}`,ref:ee,style:null==w?void 0:w.slider,onClick:n?void 0:e=>{var t;if(n)return;const r=null===(t=ee.current)||void 0===t?void 0:t.getBoundingClientRect();if(!r||!ne.current)return;const u=(e.clientX-r.left)/r.width*100,s=u/100*v;V(u),ne.current.seekTo(s/v),N&&be()},onMouseMove:n?void 0:e=>{if(!n&&ee.current){const t=ee.current.getBoundingClientRect(),r=e.clientX-t.left;if(r>=0&&r<=t.width){const e=r/t.width*100;J(!0),Q(r);const n=ye(je(e/100*v));Z(n||"00:00:00")}}},onMouseLeave:()=>{J(!1)},onMouseDown:n?void 0:()=>{n||(te.current=!0)},onMouseUp:n?void 0:()=>{if(!n&&(te.current=!1,ne.current)){const e=X/100*v;ne.current.seekTo(e/v),N&&be()}}},{children:[e.jsx("div",{className:u.default.sliderTrack,style:null==w?void 0:w.sliderTrack}),e.jsx("div",{className:u.default.sliderProgress,style:Object.assign({width:`${X}%`},null==w?void 0:w.sliderProgress)}),e.jsx("div",{className:u.default.sliderThumb,style:Object.assign({left:`${X}%`},null==w?void 0:w.sliderThumb)}),G&&!n&&e.jsx("div",Object.assign({className:u.default.timeTooltip,style:Object.assign({left:K},null==w?void 0:w.timeTooltip)},{children:Y}))]}))]})),e.jsxs("div",Object.assign({className:u.default.timeRow,style:null==w?void 0:w.timeRow},{children:[e.jsx("div",{className:u.default.buttonSpacer,style:null==w?void 0:w.buttonSpacer}),e.jsxs("div",Object.assign({className:u.default.timeText,style:null==w?void 0:w.timeText},{children:[e.jsx("span",{children:z}),e.jsx("span",{children:"/"}),e.jsx("span",{children:L})]}))]}))]}))}))});f.displayName="SearchWaveform",exports.default=f;
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("react/jsx-runtime"),r=require("react");const t=r.createContext(void 0);exports.AudioPlayProvider=({children:u})=>{const[s,i]=r.useState(null),[n,a]=r.useState(null),[l,o]=r.useState(null);return e.jsx(t.Provider,Object.assign({value:{playTopicId:s,pendingPlayRequest:n,currentPlayingSpeakerId:l,triggerPlayForTopic:e=>i(e),setPendingPlayRequest:a,setCurrentPlayingSpeakerId:o,resetTrigger:()=>i(null)}},{children:u}))},exports.useAudioPlayPause=()=>{const e=r.useContext(t);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});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 s=(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:s,chevronUpComponent:s,styles:{pillButton:Object.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===(r=i.customStyles)||void 0===r?void 0:r.pill),citationContent:Object.assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(a=i.customStyles)||void 0===a?void 0:a.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"),e=require("react/jsx-runtime"),n=require("@e-llm-studio/citation"),i=require("dayjs"),o=require("../../../utils/helpers.js"),r=require("react");function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=l(i),s=l(r);const c=t=>{var e,n;return null!==(n=null!==(e=t.message)&&void 0!==e?e:t.content)&&void 0!==n?n:""},u=t=>{var e;return null!==(e=t.highlighted_text)&&void 0!==e?e:""},d=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n+=1){const i=t[n],o=e[n];if(i.role!==o.role)return!1;if(c(i)!==c(o))return!1;if(u(i)!==u(o))return!1;if((i.timeStamp?String(i.timeStamp):"")!==(o.timeStamp?String(o.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(""):s.default.isValidElement(t)?m(null===(e=t.props)||void 0===e?void 0:e.children):""};var p=r.memo(i=>{var l,s;const[m,p]=r.useState(0),h=r.useRef(null),v=r.useCallback(()=>{var t;null===(t=i.onCitationClick)||void 0===t||t.call(i,i.isTable)},[i.onCitationClick,i.isTable]),f=i.chatCitationProps,g=null!=f?f:{},{chatContainer:y,rootContainer:b}=g,C=t.__rest(g,["chatContainer","rootContainer"]),j=r.useRef(null),x=r.useRef([]);j.current&&d(j.current,i.chatHistory)||(j.current=i.chatHistory,x.current=i.chatHistory.map(t=>{const e=c(t),n=u(t);return Object.assign(Object.assign({},t),{message:o.stripHtmlAndMetadata(e),timeStamp:a.default(t.timeStamp),highlighted_text:o.stripHtmlAndMetadata(n)})}));const S=x.current,k=r.useMemo(()=>Object.assign({relevanceScore:100},b),[b]),w=r.useMemo(()=>Object.assign(Object.assign({summarizedTab:{chip:{show:!1,isActive:!1}},detailedTab:{chip:{isActive:!0}}},y),{chatData:S}),[y,S]),O=r.useMemo(()=>{var t,e;return{pillButton:Object.assign({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:Object.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]),A=r.useMemo(()=>e.jsx(n.ChatCitation,Object.assign({rootContainer:k,chatContainer:w},C)),[k,w]);r.useEffect(()=>{if(!m)return;const t=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${t}px`;const e=window.requestAnimationFrame(()=>{const t=h.current,e=null==t?void 0:t.querySelector(".lucide-maximize-2, svg[class*='maximize']"),n=null==e?void 0:e.parentElement;null==n||n.click()});return()=>{window.cancelAnimationFrame(e),document.body.style.overflow="auto",document.body.style.paddingRight="0px"}},[m]);const I=r.useCallback(t=>{t.preventDefault(),t.stopPropagation(),v(),p(t=>t+1)},[v]);return!0===i.openInFullscreenOnClick?e.jsxs(e.Fragment,{children:[e.jsx("span",Object.assign({onClick:I,style:O.pillButton,role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||I(t)}},{children:i.title})),m>0&&e.jsx("div",Object.assign({ref:h,"aria-hidden":"true",style:{position:"fixed",left:-1e4,top:-1e4,width:1,height:1,opacity:0,pointerEvents:"none",overflow:"hidden"}},{children:A}),m)]}):e.jsx("span",Object.assign({onClickCapture:v},{children:e.jsx(n.CitationRenderer,{inLineCitation:!0,citationTitle:i.title,chevronUpComponent:null===(l=i.customIcon)||void 0===l?void 0:l.chevronUp,chevronDownComponent:null===(s=i.customIcon)||void 0===s?void 0:s.chevronDown,citationComponent:A,styles:O})}))},(t,e)=>t.isTable===e.isTable&&(t.onCitationClick===e.onCitationClick&&(t.customIcon===e.customIcon&&(t.customStyles===e.customStyles&&(t.chatCitationProps===e.chatCitationProps&&(t.openInFullscreenOnClick===e.openInFullscreenOnClick&&(!!d(t.chatHistory,e.chatHistory)&&m(t.title)===m(e.title))))))));exports.default=p;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("@e-llm-studio/citation"),n=require("dayjs"),i=require("../../../utils/helpers.js"),o=require("react");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=r(n),a=r(o);const c=t=>{var e,n;return null!==(n=null!==(e=t.message)&&void 0!==e?e:t.content)&&void 0!==n?n:""},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 n=0;n<t.length;n+=1){const i=t[n],o=e[n];if(i.role!==o.role)return!1;if(c(i)!==c(o))return!1;if(s(i)!==s(o))return!1;if((i.timeStamp?String(i.timeStamp):"")!==(o.timeStamp?String(o.timeStamp):""))return!1}return!0},d=t=>{var e;return null==t?"":"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(d).join(""):a.default.isValidElement(t)?d(null===(e=t.props)||void 0===e?void 0:e.children):""};var m=o.memo(n=>{var r,a;const[d,m]=o.useState(0),p=o.useRef(null),h=o.useCallback(()=>{var t;null===(t=n.onCitationClick)||void 0===t||t.call(n,n.isTable)},[n.onCitationClick,n.isTable]),v=n.chatCitationProps,{chatContainer:f,rootContainer:y,...C}=null!=v?v:{},g=o.useRef(null),b=o.useRef([]);g.current&&u(g.current,n.chatHistory)||(g.current=n.chatHistory,b.current=n.chatHistory.map(t=>{const e=c(t),n=s(t);return{...t,message:i.stripHtmlAndMetadata(e),timeStamp:l.default(t.timeStamp),highlighted_text:i.stripHtmlAndMetadata(n)}}));const x=b.current,S=o.useMemo(()=>({relevanceScore:100,...y}),[y]),k=o.useMemo(()=>({summarizedTab:{chip:{show:!1,isActive:!1}},detailedTab:{chip:{isActive:!0}},...f,chatData:x}),[f,x]),w=o.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=n.customStyles)||void 0===t?void 0:t.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",color:"black",...null===(e=n.customStyles)||void 0===e?void 0:e.content}}},[n.customStyles]),j=o.useMemo(()=>t.jsx(e.ChatCitation,{rootContainer:S,chatContainer:k,...C}),[S,k]);o.useEffect(()=>{if(!d)return;const t=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${t}px`;const e=window.requestAnimationFrame(()=>{const t=p.current,e=null==t?void 0:t.querySelector(".lucide-maximize-2, svg[class*='maximize']"),n=null==e?void 0:e.parentElement;null==n||n.click()});return()=>{window.cancelAnimationFrame(e),document.body.style.overflow="auto",document.body.style.paddingRight="0px"}},[d]);const A=o.useCallback(t=>{t.preventDefault(),t.stopPropagation(),h(),m(t=>t+1)},[h]);return!0===n.openInFullscreenOnClick?t.jsxs(t.Fragment,{children:[t.jsx("span",{onClick:A,style:w.pillButton,role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||A(t)},children:n.title}),d>0&&t.jsx("div",{ref:p,"aria-hidden":"true",style:{position:"fixed",left:-1e4,top:-1e4,width:1,height:1,opacity:0,pointerEvents:"none",overflow:"hidden"},children:j},d)]}):t.jsx("span",{onClickCapture:h,children:t.jsx(e.CitationRenderer,{inLineCitation:!0,citationTitle:n.title,chevronUpComponent:null===(r=n.customIcon)||void 0===r?void 0:r.chevronUp,chevronDownComponent:null===(a=n.customIcon)||void 0===a?void 0:a.chevronDown,citationComponent:j,styles:w})})},(t,e)=>t.isTable===e.isTable&&(t.onCitationClick===e.onCitationClick&&(t.customIcon===e.customIcon&&(t.customStyles===e.customStyles&&(t.chatCitationProps===e.chatCitationProps&&(t.openInFullscreenOnClick===e.openInFullscreenOnClick&&(!!u(t.chatHistory,e.chatHistory)&&d(t.title)===d(e.title))))))));exports.default=m;
2
2
  //# sourceMappingURL=ChatCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("react/jsx-runtime");exports.default=e=>C.jsx("div",Object.assign({className:"mb-2"},{children:C.jsxs("svg",Object.assign({},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"})]}))}));
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("react/jsx-runtime"),t=require("react"),r=require("./FileCitationContent.module.css.js"),i=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),s=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=l=>{var a,o,c,d,u,f;const{queryClient:v,useGetSignedUrlQuery:p,useGetSignedUrlMutation:g}=i.useRequirementAI().apiCachingConfig,j=["getSignedUrl",l.gsUtilPath],{data:h}=p(l.gsUtilPath,j),{mutate:y,isPending:m}=g(l.gsUtilPath),[b,O]=t.useState(null),[P,x]=t.useState(null);t.useEffect(()=>{Promise.resolve().then(function(){return n(require("@react-pdf-viewer/core"))}).then(e=>{O({Worker:e.Worker,Viewer:e.Viewer})}).catch(()=>{x("@react-pdf-viewer/core is not installed. Run: npm install @react-pdf-viewer/core")})},[]),t.useEffect(()=>{if(!l.gsUtilPath)return void console.error("error","Error","Please provide valid gsUtilPath.");v.getQueryData(j)||m||y({gsUtilPath:l.gsUtilPath})},[l.gsUtilPath,v,j,m]);return e.jsxs("div",Object.assign({className:r.default.bookCitationContentContainer,style:null===(a=l.customStyles)||void 0===a?void 0:a.container},{children:[e.jsxs("div",Object.assign({className:r.default.header,style:null===(o=l.customStyles)||void 0===o?void 0:o.header},{children:[e.jsx("h2",Object.assign({className:r.default.title,style:null===(c=l.customStyles)||void 0===c?void 0:c.title},{children:l.title})),s.renderCitationAIConfidenceDisplay(l.relevanceScore,!0,null===(d=l.customStyles)||void 0===d?void 0:d.confidenceDisplay)]})),e.jsx("div",Object.assign({className:r.default.previewContainer,style:null===(u=l.customStyles)||void 0===u?void 0:u.previewContainer},{children:"book_citation_pdf"===l.fileType&&e.jsx("div",Object.assign({className:r.default.pdfWrapper,style:null===(f=l.customStyles)||void 0===f?void 0:f.pdfWrapper},{children:!m&&h&&(t=>{var r;if(P)return e.jsx("div",Object.assign({style:Object.assign({color:"red",fontSize:"12px"},null===(r=l.customStyles)||void 0===r?void 0:r.errorText)},{children:P}));if(!b)return e.jsx("div",{children:"Loading PDF viewer..."});const{Worker:i,Viewer:s}=b;return e.jsx(i,Object.assign({workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js"},{children:e.jsx(s,{fileUrl:t})}))})(h)}))}))]}))};
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("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,s,u,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===(s=n.citation.customMetadata)||void 0===s?void 0:s.relevance_score,customStyles:n.customStyles}),chevronDownComponent:m,chevronUpComponent:m,styles:{pillButton:Object.assign({fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none"},null===(u=n.customStyles)||void 0===u?void 0:u.pill),citationContent:Object.assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(p=n.customStyles)||void 0===p?void 0:p.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
@@ -1,2 +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:Object.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:Object.assign({width:"100%",background:"transparent",color:"black",minHeight:"10px",height:"fit-content"},null===(c=o.customStyles)||void 0===c?void 0:c.content)}})};
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
2
  //# sourceMappingURL=GptWebCitationRenderer.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("@e-llm-studio/citation"),o=require("react"),n=require("lucide-react"),a=require("../../RequirementAIWrapper/RequirementAIWrapper.js");const r={MaximizeIcon:n.Maximize2,ExternalLinkIcon:n.ExternalLink};exports.default=({citation:l,content:u})=>{var c,s;const[d,p]=o.useState(),v=null===(c=null==l?void 0:l.customMetadata)||void 0===c?void 0:c.value,C=(null==v?void 0:v.paraphrase)||(null==v?void 0:v.label)||"Web Citation";const b=o.useMemo(()=>`Source: Web Citation > ${C}`,[C]),m=o.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==v?void 0:v.citationUrl),[null==v?void 0:v.citationUrl]),[g,h]=o.useState(!0),[x,w]=o.useState("pending"),W=g,{getGptWebCitation:f,gptWebCitationPartialPayload:y}=a.useRequirementAI().apiCachingConfig,{displayMode:I}=(null===(s=a.useRequirementAI().citationConfig)||void 0===s?void 0:s.gptWeb)||{},M={item:{text:"",dataSource:(null==v?void 0:v.text)||"",paraphrase:(null==v?void 0:v.paraphrase)||""},headerTitle:(null==v?void 0:v.label)||"",index:0,iconsConfig:{ChevronDownIcon:n.ChevronDown,ChevronUpIcon:n.ChevronUp,MaximizeIcon:n.Maximize2,CloseIcon:n.X}},T=()=>t.__awaiter(void 0,void 0,void 0,function*(){var t;try{h(!0);const e=Object.assign(Object.assign({},y),{citationId:null==v?void 0:v.citation_uuid,citationUrl:null==v?void 0:v.citationUrl,content:u||(null==v?void 0:v.text),citationType:null==v?void 0:v.citationType,citatioNumber:Number(null===(t=null==l?void 0:l.customMetadata)||void 0===t?void 0:t.citation_number)});console.log("Generating GPT-Web Citation with payload:",e);const i=yield null==f?void 0:f(e);p(null==i?void 0:i.data),w("success")}catch(t){w("error"),console.error("Error in GPT-Web Citation",t)}});o.useEffect(()=>{I!==i.CitationType.GPT&&(I!==i.CitationType.GPT_WEB||W)&&T()},[I,W]);return e.jsx(i.GptWebCitation,{gptCitation:M,defaultCitationUrl:(null==v?void 0:v.citationUrl)||"",citationType:I||"web",webCitationData:d,sourceLabel:b,learnedFrom:m,showWebCitation:W,webCitationStatus:x,onGenerateWebCitation:T,onToggleCitationView:()=>{g?h(!1):T()},showExpandImageButton:!0,showGptMaximizeButton:!0,iconsConfig:r,isFixedHeight:!1})};
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
2
  //# sourceMappingURL=GptWebcitationPanel.js.map
@@ -1,2 +1,2 @@
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"),a=require("../../../shared/CitationAIConfidenceDisplay.js"),r=require("../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=l=>{var n,o,d,u,c,g,m;const{queryClient:v,useGetSignedUrlQuery:h,useGetSignedUrlMutation:y}=r.useRequirementAI().apiCachingConfig,f=["getSignedUrl",l.gsUtilPath],{data:j}=h(l.gsUtilPath,f),{mutate:p,isPending:x}=y(l.gsUtilPath);return t.useEffect(()=>{if(!l.gsUtilPath)return void console.error("Error -> ImageCitationContent: gsUtilPath is required to fetch signed URL");v.getQueryData(f)||p({gsUtilPath:l.gsUtilPath})},[l.gsUtilPath]),e.jsxs("div",Object.assign({className:s.default.container,style:null===(n=l.customStyles)||void 0===n?void 0:n.container},{children:[e.jsxs("div",Object.assign({className:s.default.header,style:null===(o=l.customStyles)||void 0===o?void 0:o.header},{children:[e.jsx("h2",Object.assign({className:s.default.title,style:null===(d=l.customStyles)||void 0===d?void 0:d.title},{children:"Visual Reference"})),a.renderCitationAIConfidenceDisplay(l.relevanceScore,!0,null===(u=l.customStyles)||void 0===u?void 0:u.confidenceDisplay)]})),x?e.jsxs("div",Object.assign({className:s.default.loadingWrapper,style:null===(c=l.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",Object.assign({className:s.default.loadingText,style:null===(g=l.customStyles)||void 0===g?void 0:g.loadingText},{children:"Loading Image..."}))]})):j&&e.jsx("img",{className:s.default.image,src:j,alt:"images",style:null===(m=l.customStyles)||void 0===m?void 0:m.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("react/jsx-runtime");exports.default=e=>C.jsx("div",Object.assign({className:"mb-2"},{children:C.jsx("svg",Object.assign({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"})}))}));
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