@e-llm-studio/requirement-ai 0.0.224 → 0.0.225

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 (438) 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/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  19. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  20. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  25. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  28. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  29. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  31. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  41. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  44. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  45. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  48. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  49. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  51. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  52. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  53. package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +1 -1
  54. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  55. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  56. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  61. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  62. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  63. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  64. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  118. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  119. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  120. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  121. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  131. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  132. package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  133. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  134. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  135. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  136. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  137. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  138. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  139. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
  140. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  141. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  142. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  143. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  144. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  145. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  146. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  147. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  148. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  149. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  150. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  151. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  152. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  153. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  154. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  155. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  156. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  157. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  158. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  159. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  160. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  161. package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  162. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  163. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  164. package/dist/cjs/features/RequirementAI/utils/css.utils.js +1 -1
  165. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  166. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  167. package/dist/cjs/features/RequirementAI/utils/json-helper.js +1 -1
  168. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  169. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  170. package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
  171. package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  172. package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  173. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  174. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  175. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  176. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  177. package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  178. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  179. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  180. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  181. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  182. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  183. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  184. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  185. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  186. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  187. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  188. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  189. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  190. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  191. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  192. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  193. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  194. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  195. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  196. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  197. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  198. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  199. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  200. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  201. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  202. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  203. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  204. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  205. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  206. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  207. package/dist/cjs/features/UserStoryImport/components/usePanelResize.js +1 -1
  208. package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.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/index.js +1 -1
  212. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  213. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  214. package/dist/cjs/features/UserStoryImport/lib/cn.js +1 -1
  215. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  216. package/dist/cjs/index.js +1 -1
  217. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  218. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  219. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  220. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  221. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  222. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  223. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  224. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  225. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  226. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  227. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  228. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  229. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  230. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  231. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  232. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  233. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  234. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  235. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.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/constants/editorConfig.js +1 -1
  238. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
  239. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  240. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  241. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  242. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  243. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  244. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  245. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  246. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  247. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  248. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  249. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  250. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  251. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  252. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  253. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  254. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  255. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  256. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  257. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  258. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  259. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  260. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  261. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  262. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  263. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  264. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  265. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  266. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  267. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  268. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  269. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  270. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  271. package/dist/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +1 -1
  272. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  273. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  274. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  275. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  276. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  277. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  278. package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
  279. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  280. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  281. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  282. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  283. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  284. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  285. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  286. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  287. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  288. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  289. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  290. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  291. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  292. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  293. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  294. package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  295. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  296. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  297. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  298. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  299. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  300. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  301. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  302. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  303. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  304. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  305. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  306. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  307. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  308. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  309. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  310. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  311. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  312. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  313. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  314. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  315. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  316. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  317. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  318. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  319. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  320. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  321. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  322. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  323. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  324. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  325. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  326. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  327. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  328. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  329. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  330. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  331. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  332. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  333. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  334. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  335. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  336. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  337. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  338. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  339. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  340. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  341. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  342. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  343. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  344. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  345. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  346. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  347. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  348. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  349. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  350. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  351. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  352. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  353. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  354. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  355. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  356. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  357. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  358. package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
  359. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  360. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  361. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  362. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  363. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  364. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  365. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  366. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  367. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  368. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  369. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  370. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  371. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  372. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  373. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  374. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  375. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  376. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  377. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  378. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  379. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  380. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  381. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  382. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  383. package/dist/features/RequirementAI/utils/css.utils.js +1 -1
  384. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  385. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  386. package/dist/features/RequirementAI/utils/json-helper.js +1 -1
  387. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  388. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  389. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  390. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  391. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  392. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  393. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  394. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  395. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  396. package/dist/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  397. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  398. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  399. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  400. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  401. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  402. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  403. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  404. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  405. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  406. package/dist/features/UserStoryImport/components/Header.js +1 -1
  407. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  408. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  409. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  410. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  411. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  412. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  413. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  414. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  415. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  416. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  417. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  418. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  419. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  420. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  421. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  422. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  423. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  424. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  425. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  426. package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
  427. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  428. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  429. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  430. package/dist/features/UserStoryImport/index.js +1 -1
  431. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  432. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  433. package/dist/features/UserStoryImport/lib/cn.js +1 -1
  434. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  435. package/dist/index.js +1 -1
  436. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +11 -2
  437. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  438. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useState as r,useEffect as o}from"react";import l from"./FileCitationContent.module.css.js";import{useRequirementAI as n}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{renderCitationAIConfidenceDisplay as a}from"../../../shared/CitationAIConfidenceDisplay.js";var s=function(s){var d,c,u,p,m,v,f=n().apiCachingConfig,h=f.queryClient,y=f.useGetSignedUrlQuery,g=f.useGetSignedUrlMutation,U=["getSignedUrl",s.gsUtilPath],C=y(s.gsUtilPath,U).data,S=g(s.gsUtilPath),w=S.mutate,P=S.isPending,k=r(null),W=k[0],j=k[1],N=r(null),b=N[0],x=N[1];o(function(){import("@react-pdf-viewer/core").then(function(e){j({Worker:e.Worker,Viewer:e.Viewer})}).catch(function(){x("@react-pdf-viewer/core is not installed. Run: npm install @react-pdf-viewer/core")})},[]),o(function(){s.gsUtilPath?h.getQueryData(U)||P||w({gsUtilPath:s.gsUtilPath}):console.error("error","Error","Please provide valid gsUtilPath.")},[s.gsUtilPath,h,U,P]);return t("div",e({className:l.bookCitationContentContainer,style:null===(d=s.customStyles)||void 0===d?void 0:d.container},{children:[t("div",e({className:l.header,style:null===(c=s.customStyles)||void 0===c?void 0:c.header},{children:[i("h2",e({className:l.title,style:null===(u=s.customStyles)||void 0===u?void 0:u.title},{children:s.title})),a(s.relevanceScore,!0,null===(p=s.customStyles)||void 0===p?void 0:p.confidenceDisplay)]})),i("div",e({className:l.previewContainer,style:null===(m=s.customStyles)||void 0===m?void 0:m.previewContainer},{children:"book_citation_pdf"===s.fileType&&i("div",e({className:l.pdfWrapper,style:null===(v=s.customStyles)||void 0===v?void 0:v.pdfWrapper},{children:!P&&C&&function(t){var r;if(b)return i("div",e({style:e({color:"red",fontSize:"12px"},null===(r=s.customStyles)||void 0===r?void 0:r.errorText)},{children:b}));if(!W)return i("div",{children:"Loading PDF viewer..."});var o=W.Worker,l=W.Viewer;return i(o,e({workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js"},{children:i(l,{fileUrl:t})}))}(C)}))}))]}))};export{s as default};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as i,useEffect as r}from"react";import s from"./FileCitationContent.module.css.js";import{useRequirementAI as l}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{renderCitationAIConfidenceDisplay as o}from"../../../shared/CitationAIConfidenceDisplay.js";const n=n=>{var a,d,c,u,p,v;const{queryClient:m,useGetSignedUrlQuery:g,useGetSignedUrlMutation:h}=l().apiCachingConfig,f=["getSignedUrl",n.gsUtilPath],{data:y}=g(n.gsUtilPath,f),{mutate:j,isPending:U}=h(n.gsUtilPath),[C,S]=i(null),[b,w]=i(null);r(()=>{import("@react-pdf-viewer/core").then(e=>{S({Worker:e.Worker,Viewer:e.Viewer})}).catch(()=>{w("@react-pdf-viewer/core is not installed. Run: npm install @react-pdf-viewer/core")})},[]),r(()=>{if(!n.gsUtilPath)return void console.error("error","Error","Please provide valid gsUtilPath.");m.getQueryData(f)||U||j({gsUtilPath:n.gsUtilPath})},[n.gsUtilPath,m,f,U]);return e("div",Object.assign({className:s.bookCitationContentContainer,style:null===(a=n.customStyles)||void 0===a?void 0:a.container},{children:[e("div",Object.assign({className:s.header,style:null===(d=n.customStyles)||void 0===d?void 0:d.header},{children:[t("h2",Object.assign({className:s.title,style:null===(c=n.customStyles)||void 0===c?void 0:c.title},{children:n.title})),o(n.relevanceScore,!0,null===(u=n.customStyles)||void 0===u?void 0:u.confidenceDisplay)]})),t("div",Object.assign({className:s.previewContainer,style:null===(p=n.customStyles)||void 0===p?void 0:p.previewContainer},{children:"book_citation_pdf"===n.fileType&&t("div",Object.assign({className:s.pdfWrapper,style:null===(v=n.customStyles)||void 0===v?void 0:v.pdfWrapper},{children:!U&&y&&(e=>{var i;if(b)return t("div",Object.assign({style:Object.assign({color:"red",fontSize:"12px"},null===(i=n.customStyles)||void 0===i?void 0:i.errorText)},{children:b}));if(!C)return t("div",{children:"Loading PDF viewer..."});const{Worker:r,Viewer:s}=C;return t(r,Object.assign({workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js"},{children:t(s,{fileUrl:e})}))})(y)}))}))]}))};export{n as default};
2
2
  //# sourceMappingURL=FileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as o}from"react/jsx-runtime";import i from"../../../../CitationRenderer/CitationRenderer.js";import n from"./FileCitationContent.js";import e from"./DocumentCitationIcon.js";var a=function(a){var c,l,r,d,m,s,u,p,f=(null===(c=a.customIcons)||void 0===c?void 0:c.fileCitationIcon)||o(e,{});return o(i,{inLineCitation:!0,citationTitle:a.title,citationId:"file-citation-".concat(a.citation.citation_number),citationComponent:o(n,{title:"book_citation_doc"===a.citation.customMetadata.type||"book_citation_pdf"===a.citation.customMetadata.type?"".concat(null!==(r=null===(l=a.citation.customMetadata)||void 0===l?void 0:l.file_name)&&void 0!==r?r:""):"",gsUtilPath:"book_citation_doc"===a.citation.customMetadata.type||"book_citation_pdf"===a.citation.customMetadata.type?null===(d=a.citation.customMetadata)||void 0===d?void 0:d.gcs_upload_url:"",fileType:null===(m=a.citation.customMetadata)||void 0===m?void 0:m.type,relevanceScore:null===(s=a.citation.customMetadata)||void 0===s?void 0:s.relevance_score,customStyles:a.customStyles}),chevronDownComponent:f,chevronUpComponent:f,styles:{pillButton:t({fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none"},null===(u=a.customStyles)||void 0===u?void 0:u.pill),citationContent:t({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(p=a.customStyles)||void 0===p?void 0:p.content)}})};export{a as default};
1
+ import{jsx as t}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import i from"./FileCitationContent.js";import n from"./DocumentCitationIcon.js";const e=e=>{var a,c,l,r,d,s,m,u;const p=(null===(a=e.customIcons)||void 0===a?void 0:a.fileCitationIcon)||t(n,{});return t(o,{inLineCitation:!0,citationTitle:e.title,citationId:`file-citation-${e.citation.citation_number}`,citationComponent:t(i,{title:"book_citation_doc"===e.citation.customMetadata.type||"book_citation_pdf"===e.citation.customMetadata.type?`${null!==(l=null===(c=e.citation.customMetadata)||void 0===c?void 0:c.file_name)&&void 0!==l?l:""}`:"",gsUtilPath:"book_citation_doc"===e.citation.customMetadata.type||"book_citation_pdf"===e.citation.customMetadata.type?null===(r=e.citation.customMetadata)||void 0===r?void 0:r.gcs_upload_url:"",fileType:null===(d=e.citation.customMetadata)||void 0===d?void 0:d.type,relevanceScore:null===(s=e.citation.customMetadata)||void 0===s?void 0:s.relevance_score,customStyles:e.customStyles}),chevronDownComponent:p,chevronUpComponent:p,styles:{pillButton:Object.assign({fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none"},null===(m=e.customStyles)||void 0===m?void 0:m.pill),citationContent:Object.assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(u=e.customStyles)||void 0===u?void 0:u.content)}})};export{e as default};
2
2
  //# sourceMappingURL=FileCitationRender.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"../web-citation/WebCitationIcon.js";import e from"./GptWebcitationPanel.js";var r=function(r){var c,a,l,p=(null===(c=r.customIcons)||void 0===c?void 0:c.webCitationIcon)||i(o,{});return i(n,{inLineCitation:!0,citationTitle:r.title,citationId:"gpt-web-citation-".concat(r.citation.citation_number),citationComponent:i(e,{citation:r.citation,content:r.content}),chevronDownComponent:p,chevronUpComponent:p,styles:{pillButton:t({margin:"0px",padding:"0px",fontSize:"14px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(a=r.customStyles)||void 0===a?void 0:a.pill),citationContent:t({width:"100%",background:"transparent",color:"black",minHeight:"10px",height:"fit-content"},null===(l=r.customStyles)||void 0===l?void 0:l.content)}})};export{r as default};
1
+ import{jsx as t}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import i from"../web-citation/WebCitationIcon.js";import o from"./GptWebcitationPanel.js";const e=e=>{var c,r,a;const l=(null===(c=e.customIcons)||void 0===c?void 0:c.webCitationIcon)||t(i,{});return t(n,{inLineCitation:!0,citationTitle:e.title,citationId:`gpt-web-citation-${e.citation.citation_number}`,citationComponent:t(o,{citation:e.citation,content:e.content}),chevronDownComponent:l,chevronUpComponent:l,styles:{pillButton: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=e.customStyles)||void 0===r?void 0:r.pill),citationContent:Object.assign({width:"100%",background:"transparent",color:"black",minHeight:"10px",height:"fit-content"},null===(a=e.customStyles)||void 0===a?void 0:a.content)}})};export{e as default};
2
2
  //# sourceMappingURL=GptWebCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as t,__generator as i,__assign as o}from"tslib";import{jsx as n}from"react/jsx-runtime";import{CitationType as e,GptWebCitation as a}from"@e-llm-studio/citation";import{useState as r,useMemo as l,useEffect as u}from"react";import{ChevronDown as c,ChevronUp as d,Maximize2 as s,X as p,ExternalLink as v}from"lucide-react";import{useRequirementAI as m}from"../../RequirementAIWrapper/RequirementAIWrapper.js";var f={MaximizeIcon:s,ExternalLinkIcon:v},C=function(v){var C,b,h=v.citation,g=v.content,w=r(),x=w[0],W=w[1],I=null===(C=null==h?void 0:h.customMetadata)||void 0===C?void 0:C.value,T=(null==I?void 0:I.paraphrase)||(null==I?void 0:I.label)||"Web Citation";var U=l(function(){return"Source: Web Citation > ".concat(T)},[T]),y=l(function(){return function(t){if(t)try{var i=new URL(t).hostname.replace(/^www\./i,""),o=i.split(".")[0];return o?o.charAt(0).toUpperCase()+o.slice(1):i}catch(t){return}}(null==I?void 0:I.citationUrl)},[null==I?void 0:I.citationUrl]),G=r(!0),M=G[0],P=G[1],E=r("pending"),z=E[0],A=E[1],B=M,L=m().apiCachingConfig,R=L.getGptWebCitation,S=L.gptWebCitationPartialPayload,_=((null===(b=m().citationConfig)||void 0===b?void 0:b.gptWeb)||{}).displayMode,j={item:{text:"",dataSource:(null==I?void 0:I.text)||"",paraphrase:(null==I?void 0:I.paraphrase)||""},headerTitle:(null==I?void 0:I.label)||"",index:0,iconsConfig:{ChevronDownIcon:c,ChevronUpIcon:d,MaximizeIcon:s,CloseIcon:p}},q=function(){return t(void 0,void 0,void 0,function(){var t,n,e,a;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),P(!0),t=o(o({},S),{citationId:null==I?void 0:I.citation_uuid,citationUrl:null==I?void 0:I.citationUrl,content:g||(null==I?void 0:I.text),citationType:null==I?void 0:I.citationType,citatioNumber:Number(null===(a=null==h?void 0:h.customMetadata)||void 0===a?void 0:a.citation_number)}),console.log("Generating GPT-Web Citation with payload:",t),[4,null==R?void 0:R(t)];case 1:return n=i.sent(),W(null==n?void 0:n.data),A("success"),[3,3];case 2:return e=i.sent(),A("error"),console.error("Error in GPT-Web Citation",e),[3,3];case 3:return[2]}})})};u(function(){_!==e.GPT&&(_!==e.GPT_WEB||B)&&q()},[_,B]);return n(a,{gptCitation:j,defaultCitationUrl:(null==I?void 0:I.citationUrl)||"",citationType:_||"web",webCitationData:x,sourceLabel:U,learnedFrom:y,showWebCitation:B,webCitationStatus:z,onGenerateWebCitation:q,onToggleCitationView:function(){M?P(!1):q()},showExpandImageButton:!0,showGptMaximizeButton:!0,iconsConfig:f,isFixedHeight:!1})};export{C as default};
1
+ import{__awaiter as t}from"tslib";import{jsx as i}from"react/jsx-runtime";import{CitationType as o,GptWebCitation as n}from"@e-llm-studio/citation";import{useState as e,useMemo as a,useEffect as l}from"react";import{ChevronDown as r,ChevronUp as c,Maximize2 as d,X as u,ExternalLink as s}from"lucide-react";import{useRequirementAI as p}from"../../RequirementAIWrapper/RequirementAIWrapper.js";const v={MaximizeIcon:d,ExternalLinkIcon:s},m=({citation:s,content:m})=>{var C,b;const[g,h]=e(),f=null===(C=null==s?void 0:s.customMetadata)||void 0===C?void 0:C.value,w=(null==f?void 0:f.paraphrase)||(null==f?void 0:f.label)||"Web Citation";const x=a(()=>`Source: Web Citation > ${w}`,[w]),W=a(()=>function(t){if(t)try{const i=new URL(t).hostname.replace(/^www\./i,""),o=i.split(".")[0];return o?o.charAt(0).toUpperCase()+o.slice(1):i}catch(t){return}}(null==f?void 0:f.citationUrl),[null==f?void 0:f.citationUrl]),[I,y]=e(!0),[T,U]=e("pending"),G=I,{getGptWebCitation:M,gptWebCitationPartialPayload:P}=p().apiCachingConfig,{displayMode:j}=(null===(b=p().citationConfig)||void 0===b?void 0:b.gptWeb)||{},E={item:{text:"",dataSource:(null==f?void 0:f.text)||"",paraphrase:(null==f?void 0:f.paraphrase)||""},headerTitle:(null==f?void 0:f.label)||"",index:0,iconsConfig:{ChevronDownIcon:r,ChevronUpIcon:c,MaximizeIcon:d,CloseIcon:u}},z=()=>t(void 0,void 0,void 0,function*(){var t;try{y(!0);const i=Object.assign(Object.assign({},P),{citationId:null==f?void 0:f.citation_uuid,citationUrl:null==f?void 0:f.citationUrl,content:m||(null==f?void 0:f.text),citationType:null==f?void 0:f.citationType,citatioNumber:Number(null===(t=null==s?void 0:s.customMetadata)||void 0===t?void 0:t.citation_number)});console.log("Generating GPT-Web Citation with payload:",i);const o=yield null==M?void 0:M(i);h(null==o?void 0:o.data),U("success")}catch(t){U("error"),console.error("Error in GPT-Web Citation",t)}});l(()=>{j!==o.GPT&&(j!==o.GPT_WEB||G)&&z()},[j,G]);return i(n,{gptCitation:E,defaultCitationUrl:(null==f?void 0:f.citationUrl)||"",citationType:j||"web",webCitationData:g,sourceLabel:x,learnedFrom:W,showWebCitation:G,webCitationStatus:T,onGenerateWebCitation:z,onToggleCitationView:()=>{I?y(!1):z()},showExpandImageButton:!0,showGptMaximizeButton:!0,iconsConfig:v,isFixedHeight:!1})};export{m as default};
2
2
  //# sourceMappingURL=GptWebcitationPanel.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useEffect as l}from"react";import{CircularProgress as r}from"@mui/material";import s from"./ImageCitationContent.module.css.js";import{renderCitationAIConfidenceDisplay as a}from"../../../shared/CitationAIConfidenceDisplay.js";import{useRequirementAI as o}from"../../RequirementAIWrapper/RequirementAIWrapper.js";var n=function(n){var d,c,m,u,g,p,h,v=o().apiCachingConfig,y=v.queryClient,f=v.useGetSignedUrlQuery,U=v.useGetSignedUrlMutation,S=["getSignedUrl",n.gsUtilPath],C=f(n.gsUtilPath,S).data,P=U(n.gsUtilPath),I=P.mutate,N=P.isPending;return l(function(){n.gsUtilPath?y.getQueryData(S)||I({gsUtilPath:n.gsUtilPath}):console.error("Error -> ImageCitationContent: gsUtilPath is required to fetch signed URL")},[n.gsUtilPath]),t("div",e({className:s.container,style:null===(d=n.customStyles)||void 0===d?void 0:d.container},{children:[t("div",e({className:s.header,style:null===(c=n.customStyles)||void 0===c?void 0:c.header},{children:[i("h2",e({className:s.title,style:null===(m=n.customStyles)||void 0===m?void 0:m.title},{children:"Visual Reference"})),a(n.relevanceScore,!0,null===(u=n.customStyles)||void 0===u?void 0:u.confidenceDisplay)]})),N?t("div",e({className:s.loadingWrapper,style:null===(g=n.customStyles)||void 0===g?void 0:g.loadingWrapper},{children:[i(r,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),i("span",e({className:s.loadingText,style:null===(p=n.customStyles)||void 0===p?void 0:p.loadingText},{children:"Loading Image..."}))]})):C&&i("img",{className:s.image,src:C,alt:"images",style:null===(h=n.customStyles)||void 0===h?void 0:h.image})]}))};export{n as default};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useEffect as i}from"react";import{CircularProgress as s}from"@mui/material";import a from"./ImageCitationContent.module.css.js";import{renderCitationAIConfidenceDisplay as l}from"../../../shared/CitationAIConfidenceDisplay.js";import{useRequirementAI as r}from"../../RequirementAIWrapper/RequirementAIWrapper.js";const o=o=>{var n,c,d,m,g,u,h;const{queryClient:p,useGetSignedUrlQuery:v,useGetSignedUrlMutation:y}=r().apiCachingConfig,f=["getSignedUrl",o.gsUtilPath],{data:U}=v(o.gsUtilPath,f),{mutate:S,isPending:C}=y(o.gsUtilPath);return i(()=>{if(!o.gsUtilPath)return void console.error("Error -> ImageCitationContent: gsUtilPath is required to fetch signed URL");p.getQueryData(f)||S({gsUtilPath:o.gsUtilPath})},[o.gsUtilPath]),e("div",Object.assign({className:a.container,style:null===(n=o.customStyles)||void 0===n?void 0:n.container},{children:[e("div",Object.assign({className:a.header,style:null===(c=o.customStyles)||void 0===c?void 0:c.header},{children:[t("h2",Object.assign({className:a.title,style:null===(d=o.customStyles)||void 0===d?void 0:d.title},{children:"Visual Reference"})),l(o.relevanceScore,!0,null===(m=o.customStyles)||void 0===m?void 0:m.confidenceDisplay)]})),C?e("div",Object.assign({className:a.loadingWrapper,style:null===(g=o.customStyles)||void 0===g?void 0:g.loadingWrapper},{children:[t(s,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),t("span",Object.assign({className:a.loadingText,style:null===(u=o.customStyles)||void 0===u?void 0:u.loadingText},{children:"Loading Image..."}))]})):U&&t("img",{className:a.image,src:U,alt:"images",style:null===(h=o.customStyles)||void 0===h?void 0:h.image})]}))};export{o as default};
2
2
  //# sourceMappingURL=ImageCitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as C}from"tslib";import{jsx as t}from"react/jsx-runtime";var i=function(i){return t("div",C({className:"mb-2"},{children:t("svg",C({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M18 15.0001V19.0001C18 19.5501 17.55 20.0001 17 20.0001H5C4.45 20.0001 4 19.5501 4 19.0001V7.00015C4 6.45015 4.45 6.00015 5 6.00015H8.02C8.57 6.00015 9.02 5.55015 9.02 5.00015C9.02 4.45015 8.57 4.00015 8.02 4.00015H4C2.9 4.00015 2 4.90015 2 6.00015V20.0001C2 21.1001 2.9 22.0001 4 22.0001H18C19.1 22.0001 20 21.1001 20 20.0001V15.0001C20 14.4501 19.55 14.0001 19 14.0001C18.45 14.0001 18 14.4501 18 15.0001ZM15.5 18.0001H6.52C6.1 18.0001 5.87 17.5201 6.13 17.1901L7.87 14.9601C7.9161 14.9011 7.97486 14.8532 8.04195 14.82C8.10903 14.7867 8.18273 14.769 8.2576 14.768C8.33247 14.7671 8.4066 14.7829 8.47452 14.8144C8.54243 14.846 8.6024 14.8923 8.65 14.9501L10.21 16.8301L12.56 13.8101C12.76 13.5501 13.16 13.5501 13.35 13.8201L15.9 17.2101C16.15 17.5301 15.91 18.0001 15.5 18.0001ZM19.3 8.89015C19.78 8.12015 20.05 7.22015 19.99 6.23015C19.86 4.08015 18.15 2.26015 16.02 2.03015C15.3894 1.95679 14.7504 2.01768 14.145 2.20883C13.5397 2.39999 12.9816 2.71707 12.5075 3.13925C12.0333 3.56142 11.6539 4.07914 11.3941 4.65839C11.1343 5.23764 11 5.8653 11 6.50015C11 8.99015 13.01 11.0001 15.49 11.0001C16.37 11.0001 17.19 10.7401 17.88 10.3001L20.29 12.7101C20.68 13.1001 21.32 13.1001 21.71 12.7101C22.1 12.3201 22.1 11.6801 21.71 11.2901L19.3 8.89015ZM15.5 9.00015C14.837 9.00015 14.2011 8.73675 13.7322 8.26791C13.2634 7.79907 13 7.16319 13 6.50015C13 5.8371 13.2634 5.20122 13.7322 4.73238C14.2011 4.26354 14.837 4.00015 15.5 4.00015C16.163 4.00015 16.7989 4.26354 17.2678 4.73238C17.7366 5.20122 18 5.8371 18 6.50015C18 7.16319 17.7366 7.79907 17.2678 8.26791C16.7989 8.73675 16.163 9.00015 15.5 9.00015Z",fill:"#5C75F4"})}))}))};export{i as default};
1
+ import{jsx as C}from"react/jsx-runtime";const t=t=>C("div",Object.assign({className:"mb-2"},{children:C("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:C("path",{d:"M18 15.0001V19.0001C18 19.5501 17.55 20.0001 17 20.0001H5C4.45 20.0001 4 19.5501 4 19.0001V7.00015C4 6.45015 4.45 6.00015 5 6.00015H8.02C8.57 6.00015 9.02 5.55015 9.02 5.00015C9.02 4.45015 8.57 4.00015 8.02 4.00015H4C2.9 4.00015 2 4.90015 2 6.00015V20.0001C2 21.1001 2.9 22.0001 4 22.0001H18C19.1 22.0001 20 21.1001 20 20.0001V15.0001C20 14.4501 19.55 14.0001 19 14.0001C18.45 14.0001 18 14.4501 18 15.0001ZM15.5 18.0001H6.52C6.1 18.0001 5.87 17.5201 6.13 17.1901L7.87 14.9601C7.9161 14.9011 7.97486 14.8532 8.04195 14.82C8.10903 14.7867 8.18273 14.769 8.2576 14.768C8.33247 14.7671 8.4066 14.7829 8.47452 14.8144C8.54243 14.846 8.6024 14.8923 8.65 14.9501L10.21 16.8301L12.56 13.8101C12.76 13.5501 13.16 13.5501 13.35 13.8201L15.9 17.2101C16.15 17.5301 15.91 18.0001 15.5 18.0001ZM19.3 8.89015C19.78 8.12015 20.05 7.22015 19.99 6.23015C19.86 4.08015 18.15 2.26015 16.02 2.03015C15.3894 1.95679 14.7504 2.01768 14.145 2.20883C13.5397 2.39999 12.9816 2.71707 12.5075 3.13925C12.0333 3.56142 11.6539 4.07914 11.3941 4.65839C11.1343 5.23764 11 5.8653 11 6.50015C11 8.99015 13.01 11.0001 15.49 11.0001C16.37 11.0001 17.19 10.7401 17.88 10.3001L20.29 12.7101C20.68 13.1001 21.32 13.1001 21.71 12.7101C22.1 12.3201 22.1 11.6801 21.71 11.2901L19.3 8.89015ZM15.5 9.00015C14.837 9.00015 14.2011 8.73675 13.7322 8.26791C13.2634 7.79907 13 7.16319 13 6.50015C13 5.8371 13.2634 5.20122 13.7322 4.73238C14.2011 4.26354 14.837 4.00015 15.5 4.00015C16.163 4.00015 16.7989 4.26354 17.2678 4.73238C17.7366 5.20122 18 5.8371 18 6.50015C18 7.16319 17.7366 7.79907 17.2678 8.26791C16.7989 8.73675 16.163 9.00015 15.5 9.00015Z",fill:"#5C75F4"})}))}));export{t as default};
2
2
  //# sourceMappingURL=ImageCitationIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as i}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import n from"./ImageCitationContent.js";import e from"./ImageCitationIcon.js";var a=function(a){var r,c,l,m,s=(null===(r=a.customIcons)||void 0===r?void 0:r.imageCitationIcon)||i(e,{});return i(o,{inLineCitation:!0,citationTitle:a.title,citationId:"image-citation-".concat(a.citation.citation_number),citationComponent:i(n,{gsUtilPath:"image_citation"===a.citation.customMetadata.type?a.citation.customMetadata.gs_util_url:"",relevanceScore:null===(c=a.citation.customMetadata)||void 0===c?void 0:c.relevance_score,customStyles:a.customStyles}),chevronDownComponent:s,chevronUpComponent:s,styles:{pillButton:t({margin:"0px",padding:"0px",fontSize:"14px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(l=a.customStyles)||void 0===l?void 0:l.pill),citationContent:t({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(m=a.customStyles)||void 0===m?void 0:m.content)}})};export{a as default};
1
+ import{jsx as t}from"react/jsx-runtime";import i from"../../../../CitationRenderer/CitationRenderer.js";import o from"./ImageCitationContent.js";import n from"./ImageCitationIcon.js";const e=e=>{var a,c,r,l;const s=(null===(a=e.customIcons)||void 0===a?void 0:a.imageCitationIcon)||t(n,{});return t(i,{inLineCitation:!0,citationTitle:e.title,citationId:`image-citation-${e.citation.citation_number}`,citationComponent:t(o,{gsUtilPath:"image_citation"===e.citation.customMetadata.type?e.citation.customMetadata.gs_util_url:"",relevanceScore:null===(c=e.citation.customMetadata)||void 0===c?void 0:c.relevance_score,customStyles:e.customStyles}),chevronDownComponent: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=e.customStyles)||void 0===r?void 0:r.pill),citationContent:Object.assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(l=e.customStyles)||void 0===l?void 0:l.content)}})};export{e as default};
2
2
  //# sourceMappingURL=ImageCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as a}from"react/jsx-runtime";import{NotebookIcon as l,MessageCircleIcon as i}from"lucide-react";import s,{useRef as o}from"react";import{AppModIcon as r}from"../appmod-citation/icons/AppmodIcon.js";import{DEFAULT_HIGHLIGHT_THEME as c}from"../appmod-citation/types.js";import d from"./RCACitationContent.module.css.js";import{renderAIConfidenceDisplay as u}from"../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js";var m=function(l,i,o){if(!i||!l.includes(i))return l;var r=l.split(i),d={backgroundColor:c.background,color:c.text,padding:"2px 3px",borderRadius:"2px"};return n(a,{children:r.map(function(a,l){return t(s.Fragment,{children:[a,l<r.length-1&&n("span",e({style:e(e({},d),o)},{children:i}))]},l)})})},v=function(a){var i=a.extracts,s=a.customStyles,o=a.customIcon;return i&&0!==i.length?t("div",e({className:d.extractPanel,style:null==s?void 0:s.extractPanel},{children:[t("div",e({className:d.extractPanelHeader,style:null==s?void 0:s.extractPanelHeader},{children:[n("span",e({style:null==s?void 0:s.extractPanelHeaderIcon},{children:o||n(l,{className:d.extractPanelHeaderIcon})})),n("span",e({className:d.extractPanelHeaderTitle,style:null==s?void 0:s.extractPanelHeaderTitle},{children:"Extracted from Requirement Finalization"}))]})),n("div",e({className:d.extractList,style:null==s?void 0:s.extractList},{children:i.map(function(a,l){return t("div",e({className:d.extractItem,style:null==s?void 0:s.extractItem},{children:[n("p",e({className:d.extractSubheading,style:null==s?void 0:s.extractSubheading},{children:a.subheading})),n("p",e({className:d.extractContent,style:null==s?void 0:s.extractContent},{children:a.content}))]}),l)})}))]})):null},h=function(a){var s,c=a.citation,h=a.customStyles,p=a.customIcons,x=a.isLoading,y=void 0!==x&&x,g=o(null),N=c.customMetadata.assistant_answer||"",f=c.customMetadata.assistant_question||"",I=c.customMetadata.assistant_answer_highlight_content,P=c.customMetadata.relevance_score,C=c.customMetadata.requirement_plan_extract||[],b=(null==p?void 0:p.rcaNotebookIcon)||n(l,{className:d.headerIcon}),q=(null==p?void 0:p.rcaMessageIcon)||n(i,{className:d.conversationPanelHeaderIcon}),H=(null==p?void 0:p.rcaQuestionIcon)||n(r,{className:d.questionIcon}),T=(null==h?void 0:h.highlight)?{backgroundColor:h.highlight.background,color:h.highlight.text}:void 0;return t("div",e({ref:g,className:d.container,style:null==h?void 0:h.container},{children:[t("div",e({className:d.header,style:null==h?void 0:h.header},{children:[t("div",e({className:d.headerLeft,style:null==h?void 0:h.headerLeft},{children:[n("span",e({style:null==h?void 0:h.headerIcon},{children:b})),n("span",e({className:d.headerTitle,style:null==h?void 0:h.headerTitle},{children:"Requirement Clarification"}))]})),u(P,null==h?void 0:h.confidenceDisplay)]})),t("div",e({className:d.rcaContainer,style:null==h?void 0:h.rcaContainer},{children:[t("div",e({className:d.conversationPanel,style:null==h?void 0:h.conversationPanel},{children:[t("div",e({className:d.conversationPanelHeader,style:null==h?void 0:h.conversationPanelHeader},{children:[n("span",e({style:null==h?void 0:h.conversationPanelHeaderIcon},{children:q})),n("span",e({className:d.conversationPanelHeaderTitle,style:null==h?void 0:h.conversationPanelHeaderTitle},{children:"User Conversation"}))]})),t("div",e({className:d.questionRow,style:null==h?void 0:h.questionRow},{children:[n("span",e({style:null==h?void 0:h.questionIcon},{children:H})),n("span",e({className:d.questionText,style:null==h?void 0:h.questionText},{children:f||"Ask question to get response"}))]})),n("p",e({className:d.answerLabel,style:null==h?void 0:h.answerLabel},{children:"Me"})),n("div",e({className:d.answerBox,style:null==h?void 0:h.answerBox},{children:y?n("span",e({className:d.loadingText,style:null===(s=null==h?void 0:h.loading)||void 0===s?void 0:s.text},{children:"Generating..."})):m(N,I,T)}))]})),C.length>0&&n(v,{extracts:C,customStyles:h,customIcon:b})]}))]}))};export{h as default};
1
+ import{jsx as e,jsxs as n,Fragment as a}from"react/jsx-runtime";import{NotebookIcon as t,MessageCircleIcon as s}from"lucide-react";import l,{useRef as i}from"react";import{AppModIcon as c}from"../appmod-citation/icons/AppmodIcon.js";import{DEFAULT_HIGHLIGHT_THEME as o}from"../appmod-citation/types.js";import r from"./RCACitationContent.module.css.js";import{renderAIConfidenceDisplay as d}from"../../../../RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js";const u=(t,s,i)=>{if(!s||!t.includes(s))return t;const c=t.split(s),r={backgroundColor:o.background,color:o.text,padding:"2px 3px",borderRadius:"2px"};return e(a,{children:c.map((a,t)=>n(l.Fragment,{children:[a,t<c.length-1&&e("span",Object.assign({style:Object.assign(Object.assign({},r),i)},{children:s}))]},t))})},m=({extracts:a,customStyles:s,customIcon:l})=>a&&0!==a.length?n("div",Object.assign({className:r.extractPanel,style:null==s?void 0:s.extractPanel},{children:[n("div",Object.assign({className:r.extractPanelHeader,style:null==s?void 0:s.extractPanelHeader},{children:[e("span",Object.assign({style:null==s?void 0:s.extractPanelHeaderIcon},{children:l||e(t,{className:r.extractPanelHeaderIcon})})),e("span",Object.assign({className:r.extractPanelHeaderTitle,style:null==s?void 0:s.extractPanelHeaderTitle},{children:"Extracted from Requirement Finalization"}))]})),e("div",Object.assign({className:r.extractList,style:null==s?void 0:s.extractList},{children:a.map((a,t)=>n("div",Object.assign({className:r.extractItem,style:null==s?void 0:s.extractItem},{children:[e("p",Object.assign({className:r.extractSubheading,style:null==s?void 0:s.extractSubheading},{children:a.subheading})),e("p",Object.assign({className:r.extractContent,style:null==s?void 0:s.extractContent},{children:a.content}))]}),t))}))]})):null,v=({citation:a,customStyles:l,customIcons:o,isLoading:v=!1})=>{var g;const h=i(null),p=a.customMetadata.assistant_answer||"",b=a.customMetadata.assistant_question||"",x=a.customMetadata.assistant_answer_highlight_content,j=a.customMetadata.relevance_score,y=a.customMetadata.requirement_plan_extract||[],O=(null==o?void 0:o.rcaNotebookIcon)||e(t,{className:r.headerIcon}),N=(null==o?void 0:o.rcaMessageIcon)||e(s,{className:r.conversationPanelHeaderIcon}),I=(null==o?void 0:o.rcaQuestionIcon)||e(c,{className:r.questionIcon}),f=(null==l?void 0:l.highlight)?{backgroundColor:l.highlight.background,color:l.highlight.text}:void 0;return n("div",Object.assign({ref:h,className:r.container,style:null==l?void 0:l.container},{children:[n("div",Object.assign({className:r.header,style:null==l?void 0:l.header},{children:[n("div",Object.assign({className:r.headerLeft,style:null==l?void 0:l.headerLeft},{children:[e("span",Object.assign({style:null==l?void 0:l.headerIcon},{children:O})),e("span",Object.assign({className:r.headerTitle,style:null==l?void 0:l.headerTitle},{children:"Requirement Clarification"}))]})),d(j,null==l?void 0:l.confidenceDisplay)]})),n("div",Object.assign({className:r.rcaContainer,style:null==l?void 0:l.rcaContainer},{children:[n("div",Object.assign({className:r.conversationPanel,style:null==l?void 0:l.conversationPanel},{children:[n("div",Object.assign({className:r.conversationPanelHeader,style:null==l?void 0:l.conversationPanelHeader},{children:[e("span",Object.assign({style:null==l?void 0:l.conversationPanelHeaderIcon},{children:N})),e("span",Object.assign({className:r.conversationPanelHeaderTitle,style:null==l?void 0:l.conversationPanelHeaderTitle},{children:"User Conversation"}))]})),n("div",Object.assign({className:r.questionRow,style:null==l?void 0:l.questionRow},{children:[e("span",Object.assign({style:null==l?void 0:l.questionIcon},{children:I})),e("span",Object.assign({className:r.questionText,style:null==l?void 0:l.questionText},{children:b||"Ask question to get response"}))]})),e("p",Object.assign({className:r.answerLabel,style:null==l?void 0:l.answerLabel},{children:"Me"})),e("div",Object.assign({className:r.answerBox,style:null==l?void 0:l.answerBox},{children:v?e("span",Object.assign({className:r.loadingText,style:null===(g=null==l?void 0:l.loading)||void 0===g?void 0:g.text},{children:"Generating..."})):u(p,x,f)}))]})),y.length>0&&e(m,{extracts:y,customStyles:l,customIcon:O})]}))]}))};export{v as default};
2
2
  //# sourceMappingURL=RCACitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as n,Fragment as i}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import{ChatBubbleIcon as e}from"../appmod-citation/icons/ChatBubbleIcon.js";import a from"./RCACitationContent.js";var r=function(r){var c=r.title,l=r.citation,s=r.customStyles,p=r.customIcons,m=r.isLoading,d=void 0!==m&&m,u=(null==p?void 0:p.rcaCitationIcon)||n(e,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return n(o,{inLineCitation:!0,citationTitle:c+"⁠",citationIcon:n(i,{}),citationId:"rca-".concat(l.citation_number),citationComponent:n(a,{citation:l,customStyles:s,customIcons:p,isLoading:d}),chevronDownComponent:u,chevronUpComponent:u,styles:{pillButton:t({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
1
+ import{jsx as t,Fragment as n}from"react/jsx-runtime";import i from"../../../../CitationRenderer/CitationRenderer.js";import{ChatBubbleIcon as o}from"../appmod-citation/icons/ChatBubbleIcon.js";import e from"./RCACitationContent.js";const a=({title:a,citation:r,customStyles:c,customIcons:s,isLoading:l=!1})=>{const p=(null==s?void 0:s.rcaCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(i,{inLineCitation:!0,citationTitle:a+"⁠",citationIcon:t(n,{}),citationId:`rca-${r.citation_number}`,citationComponent:t(e,{citation:r,customStyles:c,customIcons:s,isLoading:l}),chevronDownComponent:p,chevronUpComponent:p,styles:{pillButton:Object.assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==c?void 0:c.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{a as default};
2
2
  //# sourceMappingURL=RCACitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as t,__generator as i}from"tslib";import{jsx as n}from"react/jsx-runtime";import{useState as r,useEffect as s}from"react";import a from"@exuanbo/file-icons-js";import{File as o,FileText as c}from"lucide-react";import{cn as l}from"../../../../UserStoryImport/lib/cn.js";var m=!1;function f(f){var u=this,d=f.name,h=f.size,p=void 0===h?"12px":h,x=f.className,v=r(x||""),g=v[0],y=v[1];return s(function(){t(u,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,a.getClass(d,{array:!0})];case 1:return e=t.sent(),y(e.join(" ")),[2]}})})},[d]),s(function(){if(!m){var e=document.createElement("style");e.innerHTML="\n .custom-file-icon::before {\n font-size: inherit !important;\n }\n ",document.head.appendChild(e),m=!0}},[]),d.includes(".txt")?n(o,{className:l("w-3 h-3 mr-2 text-muted",x)}):d.includes(".pdf")?n(c,{className:l("w-3 h-3 mr-2 text-destructive",x)}):n("span",e({className:"mt-0",style:{width:p,height:p,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top"}},{children:g?n("i",{className:l("custom-file-icon",g,x),style:{fontSize:p,height:p,display:"inline-flex",alignItems:"center",lineHeight:1}}):n(o,{className:l("text-muted",x),width:p,height:p})}))}export{f as default};
1
+ import{__awaiter as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import{useState as i,useEffect as n}from"react";import s from"@exuanbo/file-icons-js";import{File as o,FileText as r}from"lucide-react";import{cn as l}from"../../../../UserStoryImport/lib/cn.js";let m=!1;function a({name:a,size:c="12px",className:d}){const[f,p]=i(d||"");return n(()=>{(()=>{e(this,void 0,void 0,function*(){const e=yield s.getClass(a,{array:!0});p(e.join(" "))})})()},[a]),n(()=>{if(!m){const e=document.createElement("style");e.innerHTML="\n .custom-file-icon::before {\n font-size: inherit !important;\n }\n ",document.head.appendChild(e),m=!0}},[]),a.includes(".txt")?t(o,{className:l("w-3 h-3 mr-2 text-muted",d)}):a.includes(".pdf")?t(r,{className:l("w-3 h-3 mr-2 text-destructive",d)}):t("span",Object.assign({className:"mt-0",style:{width:c,height:c,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top"}},{children:f?t("i",{className:l("custom-file-icon",f,d),style:{fontSize:c,height:c,display:"inline-flex",alignItems:"center",lineHeight:1}}):t(o,{className:l("text-muted",d),width:c,height:c})}))}export{a as default};
2
2
  //# sourceMappingURL=CustomFileIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useMemo as r,useState as l,useRef as o,useCallback as a,useEffect as c}from"react";import u from"react-dom";import s from"@monaco-editor/react";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as m,Maximize2 as f}from"lucide-react";import v from"./CustomFileIcon.js";var g=function(e){return"number"==typeof e&&Number.isFinite(e)},p=function(e,n){return g(e)&&g(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},y=function(e,n,t,i){var r,l=e[0],o=e[1];if(!Number.isFinite(l)||!Number.isFinite(o))return null;if(o<l&&(l=(r=[o,l])[0],o=r[1]),g(t)&&g(i)){var a=Math.max(l,t),c=Math.min(o,i);if(a>c)return null;var u=a-t+1,s=c-t+1,d=Math.max(1,u),h=Math.min(n,s);return d>h?null:[d,h]}var m=Math.max(1,l),f=Math.min(n,o);return m>f?null:[m,f]},b=function(e,n,t,i){if(0===e.length)return!1;var r=p(t,i);return!!r&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(r.start>n||r.end>n||Math.abs(r.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<r.start||n>r.end})))},N={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},x={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},C={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},F=function(F){var M=F.citation,k=F.customStyles,w=F.customColors,S=F.customIcons,L=F.editorConfig,O=F.fileCallback,B=r(function(){return e(e({},N),w)},[w]),j=r(function(){return e(e({},x),L)},[L]),P=l(!1),T=P[0],H=P[1],z=o(null),R=o(!1),W=M.customMetadata.content||"",I=M.customMetadata.highlighted_text,E=M.customMetadata.start_line,_=M.customMetadata.end_line,D=g(E)?E+1:E,q=r(function(){if(!I)return{};try{var e=I.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[I]),G=r(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(W));){var i=e[1]||"javascript",r=e[2].trim(),l=e[3].trim();r&&l&&n.push({filePath:r,code:l,language:i})}return n},[W]),A=a(function(e){return(q[e]||[]).map(function(e){var n=e.split("-").map(function(e){return Number(e.trim())}),t=n[0],i=n.length>1?n[1]:t;return Number.isFinite(t)&&Number.isFinite(i)?[t,i]:null}).filter(function(e){return null!==e})},[q]),J=r(function(){for(var e=function(e){var n=G[e],t=n.code.split("\n").length,i=A(n.filePath),r=b(i,t,D,_);if(i.map(function(e){return y(e,t,r?D:void 0,r?_:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<G.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[G,A,D,_]),V=J>=0,$=a(function(e,n){var t=A(e),i=b(t,n,D,_);return t.map(function(e){return y(e,n,i?D:void 0,i?_:void 0)}).filter(function(e){return null!==e})},[A,D,_]),K=a(function(e,n){var t=A(e);if(b(t,n,D,_)){var i=p(D,_);return i?t.map(function(e){var n=e[0],t=e[1],r=n<=t?[n,t]:[t,n],l=Math.max(r[0],i.start),o=Math.min(r[1],i.end);return l>o?null:[l,o]}).filter(function(e){return null!==e}):[]}return $(e,n)},[A,$,D,_]);c(function(){if(V&&!R.current&&G.length>0&&(null==O?void 0:O.autoOpenFirstHighlighted)&&(null==O?void 0:O.onOpenFile)){var e=G[J],n=K(e.filePath,e.code.split("\n").length);R.current=!0;var t=setTimeout(function(){O.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[V,J,G,$,O]),c(function(){R.current=!1},[W]),c(function(){if(!(J<0)){var e=setTimeout(function(){var e;null===(e=z.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[J,I]);var Q=a(function(e,n){if(null==O?void 0:O.onOpenFile){var t=K(e,n);O.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[K,O]),U=a(function(){(null==O?void 0:O.onExpandClick)?O.onExpandClick({blocks:G,highlightMap:q}):H(!0)},[O,G,q]),X=!!(null==O?void 0:O.onOpenFile),Y=(null==S?void 0:S.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),Z=a(function(e,n,t,i){var r=[];if(t.forEach(function(e){var t=e[0],i=e[1];r.push({range:new n.Range(t,1,i,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),r.length>0)try{e.createDecorationsCollection(r)}catch(e){console.warn("Failed to create decorations:",e)}var l=t[0];l&&requestAnimationFrame(function(){e.revealLineInCenter(l[0])}),i>0&&e.updateOptions({lineNumbers:function(e){return String(e+i)}})},[]),ee=function(i){return G.map(function(r,l){var o,a,c,u=r.code.split("\n").length,h=A(r.filePath),m=b(h,u,D,_),v=h.map(function(e){return y(e,u,m?D:void 0,m?_:void 0)}).filter(function(e){return null!==e}),p=m&&g(D)?v.map(function(e){var n=e[0],t=e[1];return[n+D-1,t+D-1]}):v,N=v.length>0,x=l===J,F=i?600:j.maxHeight,M=(o=20*r.code.split("\n").length+16+4,Math.min(Math.max(o,j.minHeight),F)),w=r.filePath.split("/").pop(),S=m&&g(D)?D-1:0,L=S+u,O=String(Math.max(1,L)).length;return t("div",e({ref:!i&&x?z:void 0,"data-highlighted":N?"true":void 0,"data-first-highlighted":x?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(B.border)},null==k?void 0:k.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:N?B.highlightBg:B.headerBg,borderBottom:"1px solid ".concat(B.border),color:N?B.highlightGutter:B.foreground},N?null==k?void 0:k.headerHighlighted:null==k?void 0:k.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:r.filePath,style:null==k?void 0:k.fileName,onClick:function(){return Q(r.filePath,u)}},{children:w})),X&&n("button",e({className:d.openFileButton,onClick:function(){return Q(r.filePath,u)},title:"Open in editor","aria-label":"Open ".concat(w," in editor"),style:null==k?void 0:k.openFileButton},{children:Y}))]})),t("div",e({className:d.headerRight},{children:[N&&n("span",e({className:d.lineRanges,style:null==k?void 0:k.lineRanges},{children:(c=p,c.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!i&&0===l&&n("button",e({className:d.expandButton,style:null==k?void 0:k.expandButton,onClick:U,title:"Expand","aria-label":"Expand code view"},{children:n(f,{size:13})}))]}))]})),n("div",e({className:d.editorWrapper,style:e({height:"".concat(M,"px"),backgroundColor:B.background},null==k?void 0:k.editorWrapper)},{children:n(s,{height:"100%",language:(a=r.language,C[a.toLowerCase()]||a),value:r.code,theme:j.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:j.fontSize,lineHeight:20,fontFamily:j.fontFamily,lineNumbers:S>0?function(e){return String(e+S)}:"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,O),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},onMount:function(e,n){return Z(e,n,v,S)},loading:n("div",e({className:d.editorLoading,style:{color:B.inactiveText}},{children:"Loading editor..."}))})}))]}),l)})};if(0===G.length)return n("div",e({className:d.emptyState,style:e({color:B.inactiveText},null==k?void 0:k.emptyState)},{children:"No code content available"}));var ne=T?u.createPortal(n("div",e({className:d.modalOverlay,style:null==k?void 0:k.modalOverlay,onClick:function(e){e.target===e.currentTarget&&H(!1)}},{children:t("div",e({className:d.modalContent,style:null==k?void 0:k.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==k?void 0:k.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==k?void 0:k.modalTitle},{children:1===G.length?t("span",e({className:d.modalTitleContent},{children:[n(v,{name:G[0].filePath,size:"15px"}),n("span",e({className:d.modalTitleText},{children:G[0].filePath}))]})):"".concat(G.length," files")})),n("button",e({className:d.modalCloseButton,style:null==k?void 0:k.modalCloseButton,onClick:function(){return H(!1)},"aria-label":"Close expanded view"},{children:n(m,{size:16})}))]})),n("div",e({className:d.modalBody},{children:n("div",e({className:d.container,style:null==k?void 0:k.container},{children:ee(!0)}))}))]}))})),document.body):null;return t(i,{children:[ne,n("div",e({className:d.container,style:null==k?void 0:k.container},{children:ee(!1)}))]})};export{F as default};
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{useMemo as i,useState as l,useRef as a,useCallback as o,useEffect as r}from"react";import s from"react-dom";import c from"@monaco-editor/react";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as u,Maximize2 as m}from"lucide-react";import g from"./CustomFileIcon.js";const p=e=>"number"==typeof e&&Number.isFinite(e),b=(e,t)=>p(e)&&p(t)?e<=0||t<e?null:{start:e,end:t,length:t-e+1}:null,v=(e,t,n,i)=>{let[l,a]=e;if(!Number.isFinite(l)||!Number.isFinite(a))return null;if(a<l&&([l,a]=[a,l]),p(n)&&p(i)){const e=Math.max(l,n),o=Math.min(a,i);if(e>o)return null;const r=e-n+1,s=o-n+1,c=Math.max(1,r),d=Math.min(t,s);return c>d?null:[c,d]}const o=Math.max(1,l),r=Math.min(t,a);return o>r?null:[o,r]},f=(e,t,n,i)=>{if(0===e.length)return!1;const l=b(n,i);if(!l)return!1;if(e.some(([e,n])=>e>t||n>t))return!0;if(l.start>t||l.end>t)return!0;if(Math.abs(l.length-t)<=1){return!e.every(([e,t])=>t<l.start||e>l.end)}return!1},y={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},O={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},j={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},N=({citation:N,customStyles:x,customColors:C,customIcons:F,editorConfig:M,fileCallback:k})=>{const w=i(()=>Object.assign(Object.assign({},y),C),[C]),S=i(()=>Object.assign(Object.assign({},O),M),[M]),[L,B]=l(!1),P=a(null),T=a(!1),H=N.customMetadata.content||"",z=N.customMetadata.highlighted_text,R=N.customMetadata.start_line,W=N.customMetadata.end_line,$=p(R)?R+1:R,I=i(()=>{if(!z)return{};try{let e=z.trim();return e.startsWith("```")&&(e=e.replace(/^```\w*\n?/,""),e=e.replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[z]),E=i(()=>{const e=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;let n;for(;null!==(n=t.exec(H));){const t=n[1]||"javascript",i=n[2].trim(),l=n[3].trim();i&&l&&e.push({filePath:i,code:l,language:t})}return e},[H]),_=o(e=>(I[e]||[]).map(e=>{const t=e.split("-").map(e=>Number(e.trim())),n=t[0],i=t.length>1?t[1]:n;return Number.isFinite(n)&&Number.isFinite(i)?[n,i]:null}).filter(e=>null!==e),[I]),D=i(()=>{for(let e=0;e<E.length;e++){const t=E[e],n=t.code.split("\n").length,i=_(t.filePath),l=f(i,n,$,W);if(i.map(e=>v(e,n,l?$:void 0,l?W:void 0)).filter(e=>null!==e).length>0)return e}return-1},[E,_,$,W]),q=D>=0,G=o((e,t)=>{const n=_(e),i=f(n,t,$,W);return n.map(e=>v(e,t,i?$:void 0,i?W:void 0)).filter(e=>null!==e)},[_,$,W]),A=o((e,t)=>{const n=_(e);if(f(n,t,$,W)){const e=b($,W);return e?n.map(([t,n])=>{const i=t<=n?[t,n]:[n,t],l=Math.max(i[0],e.start),a=Math.min(i[1],e.end);return l>a?null:[l,a]}).filter(e=>null!==e):[]}return G(e,t)},[_,G,$,W]);r(()=>{if(q&&!T.current&&E.length>0&&(null==k?void 0:k.autoOpenFirstHighlighted)&&(null==k?void 0:k.onOpenFile)){const e=E[D],t=A(e.filePath,e.code.split("\n").length);T.current=!0;const n=setTimeout(()=>{k.onOpenFile({filePath:e.filePath,ranges:t.length>0?t:null})},300);return()=>clearTimeout(n)}},[q,D,E,G,k]),r(()=>{T.current=!1},[H]),r(()=>{if(D<0)return;const e=setTimeout(()=>{var e;null===(e=P.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return()=>clearTimeout(e)},[D,z]);const J=o((e,t)=>{if(null==k?void 0:k.onOpenFile){const n=A(e,t);k.onOpenFile({filePath:e,ranges:n.length>0?n:null})}},[A,k]),V=o(()=>{(null==k?void 0:k.onExpandClick)?k.onExpandClick({blocks:E,highlightMap:I}):B(!0)},[k,E,I]),K=!!(null==k?void 0:k.onOpenFile),Q=(null==F?void 0:F.readFileCitationIcon)||e(h,{style:{width:"14px",height:"14px"}}),U=o((e,t,n,i)=>{const l=[];if(n.forEach(([e,n])=>{l.push({range:new t.Range(e,1,n,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),l.length>0)try{e.createDecorationsCollection(l)}catch(e){console.warn("Failed to create decorations:",e)}const a=n[0];a&&requestAnimationFrame(()=>{e.revealLineInCenter(a[0])}),i>0&&e.updateOptions({lineNumbers:e=>String(e+i)})},[]),X=n=>E.map((i,l)=>{const a=i.code.split("\n").length,o=_(i.filePath),r=f(o,a,$,W),s=o.map(e=>v(e,a,r?$:void 0,r?W:void 0)).filter(e=>null!==e),h=r&&p($)?s.map(([e,t])=>[e+$-1,t+$-1]):s,u=s.length>0,g=l===D,b=n?600:S.maxHeight,y=(()=>{const e=20*i.code.split("\n").length+16+4;return Math.min(Math.max(e,S.minHeight),b)})(),O=i.filePath.split("/").pop(),N=r&&p($)?$-1:0,C=N+a,F=String(Math.max(1,C)).length;return t("div",Object.assign({ref:!n&&g?P:void 0,"data-highlighted":u?"true":void 0,"data-first-highlighted":g?"true":void 0,className:d.blockContainer,style:Object.assign({border:`1px solid ${w.border}`},null==x?void 0:x.blockContainer)},{children:[t("div",Object.assign({className:d.header,style:Object.assign({backgroundColor:u?w.highlightBg:w.headerBg,borderBottom:`1px solid ${w.border}`,color:u?w.highlightGutter:w.foreground},u?null==x?void 0:x.headerHighlighted:null==x?void 0:x.header)},{children:[t("div",Object.assign({className:d.headerLeft},{children:[e("span",Object.assign({className:d.fileName,title:i.filePath,style:null==x?void 0:x.fileName,onClick:()=>J(i.filePath,a)},{children:O})),K&&e("button",Object.assign({className:d.openFileButton,onClick:()=>J(i.filePath,a),title:"Open in editor","aria-label":`Open ${O} in editor`,style:null==x?void 0:x.openFileButton},{children:Q}))]})),t("div",Object.assign({className:d.headerRight},{children:[u&&e("span",Object.assign({className:d.lineRanges,style:null==x?void 0:x.lineRanges},{children:(k=h,k.map(([e,t])=>e===t?`L${e}`:`L${e}-${t}`).join(", "))})),!n&&0===l&&e("button",Object.assign({className:d.expandButton,style:null==x?void 0:x.expandButton,onClick:V,title:"Expand","aria-label":"Expand code view"},{children:e(m,{size:13})}))]}))]})),e("div",Object.assign({className:d.editorWrapper,style:Object.assign({height:`${y}px`,backgroundColor:w.background},null==x?void 0:x.editorWrapper)},{children:e(c,{height:"100%",language:(M=i.language,j[M.toLowerCase()]||M),value:i.code,theme:S.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:S.fontSize,lineHeight:20,fontFamily:S.fontFamily,lineNumbers:N>0?e=>String(e+N):"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,F),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},onMount:(e,t)=>U(e,t,s,N),loading:e("div",Object.assign({className:d.editorLoading,style:{color:w.inactiveText}},{children:"Loading editor..."}))})}))]}),l);var M,k});if(0===E.length)return e("div",Object.assign({className:d.emptyState,style:Object.assign({color:w.inactiveText},null==x?void 0:x.emptyState)},{children:"No code content available"}));const Y=L?s.createPortal(e("div",Object.assign({className:d.modalOverlay,style:null==x?void 0:x.modalOverlay,onClick:e=>{e.target===e.currentTarget&&B(!1)}},{children:t("div",Object.assign({className:d.modalContent,style:null==x?void 0:x.modalContent},{children:[t("div",Object.assign({className:d.modalHeader,style:null==x?void 0:x.modalHeader},{children:[e("span",Object.assign({className:d.modalTitle,style:null==x?void 0:x.modalTitle},{children:1===E.length?t("span",Object.assign({className:d.modalTitleContent},{children:[e(g,{name:E[0].filePath,size:"15px"}),e("span",Object.assign({className:d.modalTitleText},{children:E[0].filePath}))]})):`${E.length} files`})),e("button",Object.assign({className:d.modalCloseButton,style:null==x?void 0:x.modalCloseButton,onClick:()=>B(!1),"aria-label":"Close expanded view"},{children:e(u,{size:16})}))]})),e("div",Object.assign({className:d.modalBody},{children:e("div",Object.assign({className:d.container,style:null==x?void 0:x.container},{children:X(!0)}))}))]}))})),document.body):null;return t(n,{children:[Y,e("div",Object.assign({className:d.container,style:null==x?void 0:x.container},{children:X(!1)}))]})};export{N as default};
2
2
  //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as i,Fragment as o}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import e from"./icons/FileCodeIcon.js";import r from"./ReadFileCitationContent.js";var a=function(a){var l=a.title,c=a.citation,s=a.customStyles,m=a.customColors,p=a.customIcons,d=a.editorConfig,u=a.fileCallback,C=(null==p?void 0:p.readFileCitationIcon)||i(e,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return i(n,{inLineCitation:!0,citationTitle:l+"⁠",citationId:"readfile-".concat(c.citation_number),citationIcon:i(o,{}),citationComponent:i(r,{citation:c,customStyles:s,customColors:m,customIcons:p,editorConfig:d,fileCallback:u}),chevronDownComponent:C,chevronUpComponent:C,styles:{pillButton:t({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==s?void 0:s.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{a as default};
1
+ import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const r=({title:r,citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p})=>{const d=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:r+"⁠",citationId:`readfile-${a.citation_number}`,citationIcon:t(i,{}),citationComponent:t(e,{citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:Object.assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==l?void 0:l.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
2
2
  //# sourceMappingURL=ReadFileCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";var o=function(o){var i=o.className,n=o.style;return e("svg",t({className:i,style:n,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[r("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),r("polyline",{points:"15 3 21 3 21 9"}),r("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}))};export{o as default};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";const s=({className:s,style:o})=>e("svg",Object.assign({className:s,style:o,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),t("polyline",{points:"15 3 21 3 21 9"}),t("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}));export{s as default};
2
2
  //# sourceMappingURL=ExternalLinkIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as r,jsx as e}from"react/jsx-runtime";var o=function(o){var s=o.className,a=o.style;return r("svg",t({className:s,style:a,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[e("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("path",{d:"m10 13-2 2 2 2"}),e("path",{d:"m14 17 2-2-2-2"})]}))};export{o as default};
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";const s=({className:s,style:o})=>t("svg",Object.assign({className:s,style:o,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[e("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("path",{d:"m10 13-2 2 2 2"}),e("path",{d:"m14 17 2-2-2-2"})]}));export{s as default};
2
2
  //# sourceMappingURL=FileCodeIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as o}from"react/jsx-runtime";import i from"../../../../CitationRenderer/CitationRenderer.js";import n from"./StormeeContent.js";var e=function(){return o("div",t({className:"mb-3"},{children:o("img",{width:18,src:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",alt:"stormee citation"})}))},a=function(a){var c,s,r,m,d,l=(null===(c=a.customIcons)||void 0===c?void 0:c.stormeeCitationIcon)||o(e,{}),u=(null===(s=a.customIcons)||void 0===s?void 0:s.stormeeBrainstormIcon)||"https://storymod-assests.pages.dev/brainstorm-cropped.gif";return o(i,{inLineCitation:!0,citationTitle:a.title,citationId:"stormee-citation-".concat(a.citation.citation_number),citationComponent:"audio_transcript"===a.citation.customMetadata.type&&o(n,{segments:a.citation.customMetadata.segments,gsUtilPath:a.citation.customMetadata.gs_util_url,contentName:a.citation.customMetadata.content_name||"",content:a.citation.customMetadata.content||"",highlighted_content:a.citation.customMetadata.highlighted_content||"",keywords:a.citation.customMetadata.keywords||[],relevanceScore:null===(r=a.citation.customMetadata)||void 0===r?void 0:r.relevance_score,brainStormIcon:u,customStyles:a.customStyles}),chevronDownComponent:l,chevronUpComponent:l,styles:{pillButton:t({margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",fontSize:"14px",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(m=a.customStyles)||void 0===m?void 0:m.pill),citationTitle:{marginRight:"4px"},citationContent:t({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(d=a.customStyles)||void 0===d?void 0:d.content)}})};export{e as StormeeCitationIcon,a as default};
1
+ import{jsx as t}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import e from"./StormeeContent.js";const i=()=>t("div",Object.assign({className:"mb-3"},{children:t("img",{width:18,src:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",alt:"stormee citation"})})),n=n=>{var a,s,c,r,m;const d=(null===(a=n.customIcons)||void 0===a?void 0:a.stormeeCitationIcon)||t(i,{}),l=(null===(s=n.customIcons)||void 0===s?void 0:s.stormeeBrainstormIcon)||"https://storymod-assests.pages.dev/brainstorm-cropped.gif";return t(o,{inLineCitation:!0,citationTitle:n.title,citationId:`stormee-citation-${n.citation.citation_number}`,citationComponent:"audio_transcript"===n.citation.customMetadata.type&&t(e,{segments:n.citation.customMetadata.segments,gsUtilPath:n.citation.customMetadata.gs_util_url,contentName:n.citation.customMetadata.content_name||"",content:n.citation.customMetadata.content||"",highlighted_content:n.citation.customMetadata.highlighted_content||"",keywords:n.citation.customMetadata.keywords||[],relevanceScore:null===(c=n.citation.customMetadata)||void 0===c?void 0:c.relevance_score,brainStormIcon:l,customStyles:n.customStyles}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:Object.assign({margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",fontSize:"14px",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(r=n.customStyles)||void 0===r?void 0:r.pill),citationTitle:{marginRight:"4px"},citationContent:Object.assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(m=n.customStyles)||void 0===m?void 0:m.content)}})};export{i as StormeeCitationIcon,n as default};
2
2
  //# sourceMappingURL=StormeeCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as t,jsx as i}from"react/jsx-runtime";import n,{memo as l,useState as r,useCallback as a,useEffect as s}from"react";import o from"./StormeeContent.module.css.js";import d from"./components/ProblemStatementCard.js";import{renderCitationAIConfidenceDisplay as c}from"../../../shared/CitationAIConfidenceDisplay.js";import{CircularProgress as m}from"@mui/material";import u from"../audio-citation/searchwaveform.js";import{formatTime as v}from"../audio-citation/SearchWaveFromWrapper.js";import{useRequirementAI as p}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{AudioPlayProvider as h}from"../audio-citation/store/autoplay.wavefrom.js";var y=l(function(l){var y,g,f,N,S=l.brainStormIcon,T=void 0===S?"https://storymod-assests.pages.dev/brainstorm-cropped.gif":S,C=l.themeColor,x=l.segments,I=l.gsUtilPath,k=l.contentName,w=l.content,P=l.keywords,R=l.relevanceScore,U=l.highlighted_content,b=l.customStyles,j=r(0),A=j[0],E=j[1],W=r(0),_=W[0],L=W[1],M=p().apiCachingConfig,Q=M.queryClient,D=M.useGetSignedUrlQuery,G=M.useGetSignedUrlMutation,q=M.useExtractAudioPeaksMutation,V=M.useExtractAudioPeaksQuery;M.useGetVideoSignedUrlQuery,M.useGetVideoSignedUrlMutation;var z=["getSignedUrl",I],H=["extractAudioPeaks",I],O=D(I,z).data,F=V(I,H).data,B=G(I),J=B.mutate,K=B.isPending,X=q(I),Y=X.mutate,Z=X.isPending,$=a(function(e){E(e)},[]);s(function(){I&&(Q.getQueryData(z)||null==J||J({gsUtilPath:I}),Q.getQueryData(H)||null==Y||Y({gsUtilPath:I}))},[I]);var ee=function(t,l,r){if("string"==typeof t)return i("img",{loading:"lazy",alt:"brain_storm_icon",src:t,className:l,style:r});if(n.isValidElement(t)){var a=t,s=e(e({},r),a.props.style);return n.cloneElement(a,{style:s})}return i("span",e({style:r},{children:t}))};return t("div",e({className:o.container,style:null==b?void 0:b.container},{children:[t("div",e({className:o.header,style:null==b?void 0:b.header},{children:[t("div",e({className:o.headerLeft,style:null==b?void 0:b.headerLeft},{children:[ee(T,o.headerIcon,null!==(y=null==b?void 0:b.bsIcon)&&void 0!==y?y:null==b?void 0:b.headerIcon),i("h2",e({className:o.headerTitle,style:null==b?void 0:b.headerTitle},{children:"Stormee.ai"}))]})),c(R,!0,null==b?void 0:b.confidenceDisplay)]})),t("div",e({className:o.contentRow,style:null==b?void 0:b.contentRow},{children:[t("div",e({className:o.leftColumn,style:null==b?void 0:b.leftColumn},{children:[K||Z?t("div",e({className:o.loader,style:null==b?void 0:b.loader},{children:[i(m,{size:48,thickness:4}),i("span",e({className:o.loaderText,style:null==b?void 0:b.loaderText},{children:"Loading audio peaks..."}))]})):O&&F&&i(h,{children:i(u,{colorCode:C,audio_file_name:O,matchedSegments:x,peaks:null!==(g=F.peaks)&&void 0!==g?g:[],duration:null!==(f=F.duration)&&void 0!==f?f:0,chevronIndex:_,setChevronIndex:L,onTimeUpdate:$,currentAudioTime:A,showOnlyMatched:!0,customStyles:null==b?void 0:b.waveform})}),t("div",e({className:o.transcriptCard,style:null==b?void 0:b.transcriptCard},{children:[t("div",e({className:o.transcriptHeader,style:null==b?void 0:b.transcriptHeader},{children:[ee(T,o.transcriptIcon,null!==(N=null==b?void 0:b.bsIcon)&&void 0!==N?N:null==b?void 0:b.transcriptIcon),i("div",e({className:o.transcriptTitle,style:null==b?void 0:b.transcriptTitle},{children:"STORMEE'S TRANSCRIPT"}))]})),i("div",e({className:o.segmentList,style:null==b?void 0:b.segmentList},{children:x.map(function(n,l){return i("div",e({className:o.segment,style:null==b?void 0:b.segment},{children:t("div",e({className:o.segmentRow,style:null==b?void 0:b.segmentRow},{children:[i("span",e({className:o.timestamp,style:null==b?void 0:b.timestamp},{children:v(n.start_time)})),i("div",e({className:o.segmentTextWrapper,style:null==b?void 0:b.segmentTextWrapper},{children:i("p",e({className:o.segmentText,style:null==b?void 0:b.segmentText},{children:n.text}))}))]}))}),l)})}))]}))]})),i(d,{title:k,content:w,highlight:null!=U?U:"",keyTakeaway:P,brainStormIcon:T,customStyles:b})]}))]}))});export{y as default};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import s,{memo as i,useState as n,useCallback as a,useEffect as l}from"react";import r from"./StormeeContent.module.css.js";import o from"./components/ProblemStatementCard.js";import{renderCitationAIConfidenceDisplay as d}from"../../../shared/CitationAIConfidenceDisplay.js";import{CircularProgress as c}from"@mui/material";import m from"../audio-citation/searchwaveform.js";import{formatTime as u}from"../audio-citation/SearchWaveFromWrapper.js";import{useRequirementAI as g}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{AudioPlayProvider as p}from"../audio-citation/store/autoplay.wavefrom.js";const h=i(({brainStormIcon:i="https://storymod-assests.pages.dev/brainstorm-cropped.gif",themeColor:h,segments:v,gsUtilPath:y,contentName:j,content:b,keywords:f,relevanceScore:O,highlighted_content:N,customStyles:S})=>{var T,C,x,I;const[k,w]=n(0),[P,R]=n(0),{queryClient:U,useGetSignedUrlQuery:A,useGetSignedUrlMutation:E,useExtractAudioPeaksMutation:W,useExtractAudioPeaksQuery:_,useGetVideoSignedUrlQuery:L,useGetVideoSignedUrlMutation:M}=g().apiCachingConfig,Q=["getSignedUrl",y],D=["extractAudioPeaks",y],{data:G}=A(y,Q),{data:q}=_(y,D),{mutate:V,isPending:z}=E(y),{mutate:H,isPending:F}=W(y),B=a(e=>{w(e)},[]);l(()=>{y&&(U.getQueryData(Q)||null==V||V({gsUtilPath:y}),U.getQueryData(D)||null==H||H({gsUtilPath:y}))},[y]);const J=(e,i,n)=>{if("string"==typeof e)return t("img",{loading:"lazy",alt:"brain_storm_icon",src:e,className:i,style:n});if(s.isValidElement(e)){const t=e,i=Object.assign(Object.assign({},n),t.props.style);return s.cloneElement(t,{style:i})}return t("span",Object.assign({style:n},{children:e}))};return e("div",Object.assign({className:r.container,style:null==S?void 0:S.container},{children:[e("div",Object.assign({className:r.header,style:null==S?void 0:S.header},{children:[e("div",Object.assign({className:r.headerLeft,style:null==S?void 0:S.headerLeft},{children:[J(i,r.headerIcon,null!==(T=null==S?void 0:S.bsIcon)&&void 0!==T?T:null==S?void 0:S.headerIcon),t("h2",Object.assign({className:r.headerTitle,style:null==S?void 0:S.headerTitle},{children:"Stormee.ai"}))]})),d(O,!0,null==S?void 0:S.confidenceDisplay)]})),e("div",Object.assign({className:r.contentRow,style:null==S?void 0:S.contentRow},{children:[e("div",Object.assign({className:r.leftColumn,style:null==S?void 0:S.leftColumn},{children:[z||F?e("div",Object.assign({className:r.loader,style:null==S?void 0:S.loader},{children:[t(c,{size:48,thickness:4}),t("span",Object.assign({className:r.loaderText,style:null==S?void 0:S.loaderText},{children:"Loading audio peaks..."}))]})):G&&q&&t(p,{children:t(m,{colorCode:h,audio_file_name:G,matchedSegments:v,peaks:null!==(C=q.peaks)&&void 0!==C?C:[],duration:null!==(x=q.duration)&&void 0!==x?x:0,chevronIndex:P,setChevronIndex:R,onTimeUpdate:B,currentAudioTime:k,showOnlyMatched:!0,customStyles:null==S?void 0:S.waveform})}),e("div",Object.assign({className:r.transcriptCard,style:null==S?void 0:S.transcriptCard},{children:[e("div",Object.assign({className:r.transcriptHeader,style:null==S?void 0:S.transcriptHeader},{children:[J(i,r.transcriptIcon,null!==(I=null==S?void 0:S.bsIcon)&&void 0!==I?I:null==S?void 0:S.transcriptIcon),t("div",Object.assign({className:r.transcriptTitle,style:null==S?void 0:S.transcriptTitle},{children:"STORMEE'S TRANSCRIPT"}))]})),t("div",Object.assign({className:r.segmentList,style:null==S?void 0:S.segmentList},{children:v.map((s,i)=>t("div",Object.assign({className:r.segment,style:null==S?void 0:S.segment},{children:e("div",Object.assign({className:r.segmentRow,style:null==S?void 0:S.segmentRow},{children:[t("span",Object.assign({className:r.timestamp,style:null==S?void 0:S.timestamp},{children:u(s.start_time)})),t("div",Object.assign({className:r.segmentTextWrapper,style:null==S?void 0:S.segmentTextWrapper},{children:t("p",Object.assign({className:r.segmentText,style:null==S?void 0:S.segmentText},{children:s.text}))}))]}))}),i))}))]}))]})),t(o,{title:j,content:b,highlight:null!=N?N:"",keyTakeaway:f,brainStormIcon:i,customStyles:S})]}))]}))});export{h as default};
2
2
  //# sourceMappingURL=StormeeContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as n,jsxs as e}from"react/jsx-runtime";import o from"react";import r from"./GradientButton.module.css.js";var s=function(s){var l=s.brainStormIcon,a=void 0===l?"https://storymod-assests.pages.dev/brainstorm-cropped.gif":l,i=s.customStyles;return n("button",t({className:r.button,style:null==i?void 0:i.gradientButton},{children:e("span",t({className:r.content,style:null==i?void 0:i.gradientContent},{children:[function(){if("string"==typeof a)return n("img",{loading:"lazy",src:a,className:r.icon,alt:"Brainstorm icon",style:null==i?void 0:i.bsIcon});if(o.isValidElement(a)){var e=a;return o.cloneElement(e,{style:t(t({},null==i?void 0:i.bsIcon),e.props.style)})}return n("span",t({style:null==i?void 0:i.bsIcon},{children:a}))}(),n("span",t({className:r.label,style:null==i?void 0:i.gradientButtonLabel},{children:"Extracted from Key Takeaways"}))]}))}))};export{s as default};
1
+ import{jsx as t,jsxs as s}from"react/jsx-runtime";import e from"react";import n from"./GradientButton.module.css.js";const o=({brainStormIcon:o="https://storymod-assests.pages.dev/brainstorm-cropped.gif",customStyles:a})=>t("button",Object.assign({className:n.button,style:null==a?void 0:a.gradientButton},{children:s("span",Object.assign({className:n.content,style:null==a?void 0:a.gradientContent},{children:[(()=>{if("string"==typeof o)return t("img",{loading:"lazy",src:o,className:n.icon,alt:"Brainstorm icon",style:null==a?void 0:a.bsIcon});if(e.isValidElement(o)){const t=o;return e.cloneElement(t,{style:Object.assign(Object.assign({},null==a?void 0:a.bsIcon),t.props.style)})}return t("span",Object.assign({style:null==a?void 0:a.bsIcon},{children:o}))})(),t("span",Object.assign({className:n.label,style:null==a?void 0:a.gradientButtonLabel},{children:"Extracted from Key Takeaways"}))]}))}));export{o as default};
2
2
  //# sourceMappingURL=GradientButton.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as a,jsx as t}from"react/jsx-runtime";import l from"react-markdown";import n from"./GradientButton.js";import r from"./ProblemStatementCard.module.css.js";var o=function(o){var c=o.title,i=o.content;o.highlight;var s=o.keyTakeaway,m=o.className,d=o.brainStormIcon,p=o.customStyles;return console.log("content:::",i),a("div",e({className:"".concat(r.card," ").concat(null!=m?m:""),style:null==p?void 0:p.problemCard},{children:[a("div",e({className:r.header,style:null==p?void 0:p.problemHeader},{children:[t(n,{customStyles:p,brainStormIcon:d}),t("div",e({className:r.titleWrapper,style:null==p?void 0:p.problemTitleWrapper},{children:t("h2",e({className:r.title,style:null==p?void 0:p.problemTitle},{children:c}))}))]})),t("div",e({className:r.contentWrapper,style:null==p?void 0:p.contentWrapper},{children:t("p",e({className:r.content,style:null==p?void 0:p.problemContent},{children:t(l,e({className:r.markdown},{children:i.replace(/\\n/g,"\n")}))}))})),t("div",e({className:r.takeawayContainer,style:null==p?void 0:p.takeawayContainer},{children:s.map(function(a,l){return t("span",e({className:"".concat(r.takeaway," \n ").concat(0===l?r.firstTakeaway:""),style:null==p?void 0:p.takeawayPill},{children:a}),"".concat(l,"-").concat(a))})}))]}))};export{o as default};
1
+ import{jsxs as e,jsx as a}from"react/jsx-runtime";import t from"react-markdown";import l from"./GradientButton.js";import s from"./ProblemStatementCard.module.css.js";const n=({title:n,content:r,highlight:i,keyTakeaway:o,className:c,brainStormIcon:m,customStyles:d})=>(console.log("content:::",r),e("div",Object.assign({className:`${s.card} ${null!=c?c:""}`,style:null==d?void 0:d.problemCard},{children:[e("div",Object.assign({className:s.header,style:null==d?void 0:d.problemHeader},{children:[a(l,{customStyles:d,brainStormIcon:m}),a("div",Object.assign({className:s.titleWrapper,style:null==d?void 0:d.problemTitleWrapper},{children:a("h2",Object.assign({className:s.title,style:null==d?void 0:d.problemTitle},{children:n}))}))]})),a("div",Object.assign({className:s.contentWrapper,style:null==d?void 0:d.contentWrapper},{children:a("p",Object.assign({className:s.content,style:null==d?void 0:d.problemContent},{children:a(t,Object.assign({className:s.markdown},{children:r.replace(/\\n/g,"\n")}))}))})),a("div",Object.assign({className:s.takeawayContainer,style:null==d?void 0:d.takeawayContainer},{children:o.map((e,t)=>a("span",Object.assign({className:`${s.takeaway} \n ${0===t?s.firstTakeaway:""}`,style:null==d?void 0:d.takeawayPill},{children:e}),`${t}-${e}`))}))]})));export{n as default};
2
2
  //# sourceMappingURL=ProblemStatementCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as r}from"react/jsx-runtime";var i=function(i){var o=i.height,e=void 0===o?16:o,n=i.width;return r("svg",t({width:void 0===n?16:n,height:e,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r("path",{d:"M3 0.5H2.9C2.05992 0.5 1.63988 0.5 1.31901 0.66349C1.03677 0.8073 0.8073 1.03677 0.66349 1.31901C0.5 1.63988 0.5 2.05992 0.5 2.9V3M3 9.5H2.9C2.05992 9.5 1.63988 9.5 1.31901 9.33651C1.03677 9.1927 0.8073 8.96323 0.66349 8.68099C0.5 8.36012 0.5 7.94008 0.5 7.1V7M9.5 3V2.9C9.5 2.05992 9.5 1.63988 9.33651 1.31901C9.1927 1.03677 8.96323 0.8073 8.68099 0.66349C8.36012 0.5 7.94008 0.5 7.1 0.5H7M9.5 7V7.1C9.5 7.94008 9.5 8.36012 9.33651 8.68099C9.1927 8.96323 8.96323 9.1927 8.68099 9.33651C8.36012 9.5 7.94008 9.5 7.1 9.5H7",stroke:"#141414","stroke-linecap":"round","stroke-linejoin":"round"})}))};export{i as default};
1
+ import{jsx as t}from"react/jsx-runtime";const e=({height:e=16,width:i=16})=>t("svg",Object.assign({width:i,height:e,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M3 0.5H2.9C2.05992 0.5 1.63988 0.5 1.31901 0.66349C1.03677 0.8073 0.8073 1.03677 0.66349 1.31901C0.5 1.63988 0.5 2.05992 0.5 2.9V3M3 9.5H2.9C2.05992 9.5 1.63988 9.5 1.31901 9.33651C1.03677 9.1927 0.8073 8.96323 0.66349 8.68099C0.5 8.36012 0.5 7.94008 0.5 7.1V7M9.5 3V2.9C9.5 2.05992 9.5 1.63988 9.33651 1.31901C9.1927 1.03677 8.96323 0.8073 8.68099 0.66349C8.36012 0.5 7.94008 0.5 7.1 0.5H7M9.5 7V7.1C9.5 7.94008 9.5 8.36012 9.33651 8.68099C9.1927 8.96323 8.96323 9.1927 8.68099 9.33651C8.36012 9.5 7.94008 9.5 7.1 9.5H7",stroke:"#141414","stroke-linecap":"round","stroke-linejoin":"round"})}));export{e as default};
2
2
  //# sourceMappingURL=FullScreenIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as l,jsxs as i}from"react/jsx-runtime";import{Dialog as o}from"@mui/material";import s from"./ImagePreviewDialog.module.css.js";var r=function(r){var a=r.open,n=r.handleClose,c=r.CloseIcon,t=r.src,m=r.styles;return l(o,e({maxWidth:"lg",onClose:n,open:a},{children:i("div",e({className:s.container,style:null==m?void 0:m.container},{children:[i("div",e({className:s.header,style:null==m?void 0:m.header},{children:[l("h1",e({className:s.title,style:null==m?void 0:m.title},{children:"Image Preview"})),l("div",e({className:s.closeIconWrapper,style:null==m?void 0:m.closeIconWrapper,onClick:n},{children:l(c,{className:s.closeIcon,style:null==m?void 0:m.closeIcon})}))]})),l("img",{src:t,alt:"Preview",className:s.image,style:null==m?void 0:m.image})]}))}))};export{r as default};
1
+ import{jsx as e,jsxs as l}from"react/jsx-runtime";import{Dialog as s}from"@mui/material";import i from"./ImagePreviewDialog.module.css.js";const a=({open:a,handleClose:o,CloseIcon:c,src:n,styles:t})=>e(s,Object.assign({maxWidth:"lg",onClose:o,open:a},{children:l("div",Object.assign({className:i.container,style:null==t?void 0:t.container},{children:[l("div",Object.assign({className:i.header,style:null==t?void 0:t.header},{children:[e("h1",Object.assign({className:i.title,style:null==t?void 0:t.title},{children:"Image Preview"})),e("div",Object.assign({className:i.closeIconWrapper,style:null==t?void 0:t.closeIconWrapper,onClick:o},{children:e(c,{className:i.closeIcon,style:null==t?void 0:t.closeIcon})}))]})),e("img",{src:n,alt:"Preview",className:i.image,style:null==t?void 0:t.image})]}))}));export{a as default};
2
2
  //# sourceMappingURL=ImagePreviewDialog.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";import{jsx as e,jsxs as o}from"react/jsx-runtime";import t from"./WebCitationIcon.js";import n from"./Webcitation.module.css.js";var i=function(i){var l=i.label,a=i.url,s=i.customStyles,m=i.customIcons,c=(null==m?void 0:m.webCitationIcon)||e(t,{});return o("a",r({className:n.link,style:null==s?void 0:s.headerLink,target:"_blank",rel:"noopener noreferrer",href:a},{children:[l,c]}))};export{i as default};
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import t from"./WebCitationIcon.js";import r from"./Webcitation.module.css.js";const n=({label:n,url:s,customStyles:i,customIcons:l})=>{const a=(null==l?void 0:l.webCitationIcon)||e(t,{});return o("a",Object.assign({className:r.link,style:null==i?void 0:i.headerLink,target:"_blank",rel:"noopener noreferrer",href:s},{children:[n,a]}))};export{n as default};
2
2
  //# sourceMappingURL=WebCitation.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as C}from"tslib";import{jsx as i,jsxs as l}from"react/jsx-runtime";var t=function(){return i("div",{children:l("svg",C({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[l("g",C({clipPath:"url(#clip0_3025_73390)"},{children:[i("path",{d:"M13.82 14.0039H9.66C9.56 13.3439 9.5 12.6839 9.5 12.0039C9.5 11.3239 9.56 10.6539 9.66 10.0039H14.34C14.43 10.6539 14.5 11.3239 14.5 12.0039C14.5 12.5039 14.46 13.0039 14.4 13.4639C15 12.9639 15.72 12.5739 16.5 12.3239V12.0039C16.5 11.3239 16.44 10.6639 16.36 10.0039H19.74C19.9 10.6439 20 11.3139 20 12.0039V12.1839C20.7 12.3539 21.35 12.6339 21.95 13.0039C22 12.6839 22 12.3439 22 12.0039C22 6.50391 17.5 2.00391 12 2.00391C6.47 2.00391 2 6.50391 2 12.0039C2 17.5039 6.5 22.0039 12 22.0039C12.34 22.0039 12.68 22.0039 13 21.9539C12.59 21.2939 12.29 20.5539 12.13 19.7539C12.09 19.8239 12.05 19.8939 12 19.9639C11.17 18.7639 10.5 17.4339 10.09 16.0039H12.5C12.81 15.2539 13.26 14.5839 13.82 14.0039ZM18.92 8.00391H15.97C15.6565 6.76552 15.1931 5.57001 14.59 4.44391C16.43 5.07391 17.96 6.34391 18.92 8.00391ZM12 4.03391C12.83 5.23391 13.5 6.57391 13.91 8.00391H10.09C10.5 6.57391 11.17 5.23391 12 4.03391ZM4.26 14.0039C4.1 13.3639 4 12.6939 4 12.0039C4 11.3139 4.1 10.6439 4.26 10.0039H7.64C7.56 10.6639 7.5 11.3239 7.5 12.0039C7.5 12.6839 7.56 13.3439 7.64 14.0039H4.26ZM5.08 16.0039H8C8.35 17.2539 8.8 18.4539 9.4 19.5639C7.57827 18.9362 6.04429 17.6721 5.08 16.0039ZM8 8.00391H5.08C6.03864 6.33094 7.57466 5.06515 9.4 4.44391C8.8 5.55391 8.35 6.75391 8 8.00391Z",fill:"#5C75F4"}),i("path",{d:"M16.01 14.9539C14.8502 14.9539 13.91 15.8941 13.91 17.0539C13.9121 18.1852 14.8099 19.1115 15.9405 19.1489L14.61 21.9539H16.01L17.9074 17.9539C18.0416 17.6709 18.1026 17.365 18.11 17.0539C18.11 15.8941 17.1698 14.9539 16.01 14.9539ZM21.61 14.9539C20.4502 14.9539 19.51 15.8941 19.51 17.0539C19.5121 18.1852 20.4099 19.1115 21.5405 19.1489L20.21 21.9539H21.61L23.5074 17.9539C23.6416 17.6709 23.7026 17.365 23.71 17.0539C23.71 15.8941 22.7698 14.9539 21.61 14.9539Z",fill:"#5C75F4"})]})),i("defs",{children:i("clipPath",C({id:"clip0_3025_73390"},{children:i("rect",{width:"24",height:"24",fill:"white"})}))})]}))})};export{t as default};
1
+ import{jsx as C,jsxs as i}from"react/jsx-runtime";const t=()=>C("div",{children:i("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[i("g",Object.assign({clipPath:"url(#clip0_3025_73390)"},{children:[C("path",{d:"M13.82 14.0039H9.66C9.56 13.3439 9.5 12.6839 9.5 12.0039C9.5 11.3239 9.56 10.6539 9.66 10.0039H14.34C14.43 10.6539 14.5 11.3239 14.5 12.0039C14.5 12.5039 14.46 13.0039 14.4 13.4639C15 12.9639 15.72 12.5739 16.5 12.3239V12.0039C16.5 11.3239 16.44 10.6639 16.36 10.0039H19.74C19.9 10.6439 20 11.3139 20 12.0039V12.1839C20.7 12.3539 21.35 12.6339 21.95 13.0039C22 12.6839 22 12.3439 22 12.0039C22 6.50391 17.5 2.00391 12 2.00391C6.47 2.00391 2 6.50391 2 12.0039C2 17.5039 6.5 22.0039 12 22.0039C12.34 22.0039 12.68 22.0039 13 21.9539C12.59 21.2939 12.29 20.5539 12.13 19.7539C12.09 19.8239 12.05 19.8939 12 19.9639C11.17 18.7639 10.5 17.4339 10.09 16.0039H12.5C12.81 15.2539 13.26 14.5839 13.82 14.0039ZM18.92 8.00391H15.97C15.6565 6.76552 15.1931 5.57001 14.59 4.44391C16.43 5.07391 17.96 6.34391 18.92 8.00391ZM12 4.03391C12.83 5.23391 13.5 6.57391 13.91 8.00391H10.09C10.5 6.57391 11.17 5.23391 12 4.03391ZM4.26 14.0039C4.1 13.3639 4 12.6939 4 12.0039C4 11.3139 4.1 10.6439 4.26 10.0039H7.64C7.56 10.6639 7.5 11.3239 7.5 12.0039C7.5 12.6839 7.56 13.3439 7.64 14.0039H4.26ZM5.08 16.0039H8C8.35 17.2539 8.8 18.4539 9.4 19.5639C7.57827 18.9362 6.04429 17.6721 5.08 16.0039ZM8 8.00391H5.08C6.03864 6.33094 7.57466 5.06515 9.4 4.44391C8.8 5.55391 8.35 6.75391 8 8.00391Z",fill:"#5C75F4"}),C("path",{d:"M16.01 14.9539C14.8502 14.9539 13.91 15.8941 13.91 17.0539C13.9121 18.1852 14.8099 19.1115 15.9405 19.1489L14.61 21.9539H16.01L17.9074 17.9539C18.0416 17.6709 18.1026 17.365 18.11 17.0539C18.11 15.8941 17.1698 14.9539 16.01 14.9539ZM21.61 14.9539C20.4502 14.9539 19.51 15.8941 19.51 17.0539C19.5121 18.1852 20.4099 19.1115 21.5405 19.1489L20.21 21.9539H21.61L23.5074 17.9539C23.6416 17.6709 23.7026 17.365 23.71 17.0539C23.71 15.8941 22.7698 14.9539 21.61 14.9539Z",fill:"#5C75F4"})]})),C("defs",{children:C("clipPath",Object.assign({id:"clip0_3025_73390"},{children:C("rect",{width:"24",height:"24",fill:"white"})}))})]}))});export{t as default};
2
2
  //# sourceMappingURL=WebCitationIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as o,jsxs as e}from"react/jsx-runtime";import i from"./WebCitationIcon.js";import n from"./WebCitation.js";import r from"../../../../CitationRenderer/CitationRenderer.js";var l=function(l){var a=l.label,s=l.url,m=l.customStyles,c=l.customIcons,p=(null==c?void 0:c.webCitationIcon)||o(i,{});return o(r,{inLineCitation:!0,citationTitle:a,chevronDownComponent:p,chevronUpComponent:p,citationComponent:e("div",t({className:"p-4 border rounded-lg bg-white mt-2",style:null==m?void 0:m.content},{children:[o("p",t({className:"text-sm text-gray-600 mb-2",style:null==m?void 0:m.footerText},{children:"Source Link:"})),o(n,{label:a,url:s,customStyles:m,customIcons:c})]})),styles:{pillButton:t({margin:"0px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==m?void 0:m.pill)}})};export{l as default};
1
+ import{jsx as t,jsxs as o}from"react/jsx-runtime";import e from"./WebCitationIcon.js";import n from"./WebCitation.js";import i from"../../../../CitationRenderer/CitationRenderer.js";const r=({label:r,url:l,customStyles:s,customIcons:a})=>{const c=(null==a?void 0:a.webCitationIcon)||t(e,{});return t(i,{inLineCitation:!0,citationTitle:r,chevronDownComponent:c,chevronUpComponent:c,citationComponent:o("div",Object.assign({className:"p-4 border rounded-lg bg-white mt-2",style:null==s?void 0:s.content},{children:[t("p",Object.assign({className:"text-sm text-gray-600 mb-2",style:null==s?void 0:s.footerText},{children:"Source Link:"})),t(n,{label:r,url:l,customStyles:s,customIcons:a})]})),styles:{pillButton:Object.assign({margin:"0px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==s?void 0:s.pill)}})};export{r as default};
2
2
  //# sourceMappingURL=WebCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as l,jsxs as i}from"react/jsx-runtime";import{CircularProgress as o}from"@mui/material";import{SquareArrowOutUpRight as t}from"lucide-react";import{useState as r,useEffect as n}from"react";import s from"./WebCitationWithImageContent.module.css.js";import{useRequirementAI as a}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import d from"./ImagePreviewDialog.js";import c from"./FullScreenIcon.js";var m=function(m){var u,v,g,h,f,p,y,S,k,L,I,N,P,C,U,b=a().apiCachingConfig,F=b.queryClient,W=b.useGetSignedUrlQuery,j=b.useGetSignedUrlMutation,w=["getSignedUrl",m.gsUtilPath],x=W(m.gsUtilPath,w).data,D=j(m.gsUtilPath),q=D.mutate,R=D.isPending,A=r(!1),B=A[0],E=A[1],G=(null===(u=m.customIcons)||void 0===u?void 0:u.FullScreenIcon)||l(c,{});return n(function(){m.gsUtilPath?F.getQueryData(w)||R||q({gsUtilPath:m.gsUtilPath}):console.error("error","Error","Please provide valid gsUtilPath.")},[m.gsUtilPath,F,w,q,R]),i("div",e({className:s.container,style:null===(v=m.customStyles)||void 0===v?void 0:v.content},{children:[l("div",e({className:s.header,style:null===(g=m.customStyles)||void 0===g?void 0:g.header},{children:l("div",e({className:s.headerLeft,style:null===(h=m.customStyles)||void 0===h?void 0:h.headerLeft},{children:l("a",e({className:s.headerLink,style:null===(f=m.customStyles)||void 0===f?void 0:f.headerLink,target:"_blank",rel:"noopener noreferrer",href:m.url},{children:m.label}))}))})),R?i("div",e({className:s.loadingContainer,style:null===(p=m.customStyles)||void 0===p?void 0:p.loadingContainer},{children:[l(o,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),l("span",e({className:s.loadingLabel,style:null===(y=m.customStyles)||void 0===y?void 0:y.loadingLabel},{children:"Loading Image..."}))]})):x&&i("div",e({className:s.imageWrapper,style:null===(S=m.customStyles)||void 0===S?void 0:S.imageWrapper},{children:[l("img",{src:x,alt:"images",className:s.image,style:null===(k=m.customStyles)||void 0===k?void 0:k.image,onError:function(e){e.target.src="path/to/fallback-image.png",console.error("Failed to load image from signed URL")}}),l("div",e({className:s.fullscreenButton,style:null===(L=m.customStyles)||void 0===L?void 0:L.fullscreenButton,onClick:function(){return E(!0)}},{children:G})),l(d,{open:B,handleClose:function(){return E(!1)},src:x,CloseIcon:null==m?void 0:m.PreviewDialogCloseIcon,styles:null===(I=m.customStyles)||void 0===I?void 0:I.previewDialog})]})),l("div",e({className:s.footer,style:null===(N=m.customStyles)||void 0===N?void 0:N.footer},{children:i("div",e({className:s.footerInner,style:null===(P=m.customStyles)||void 0===P?void 0:P.footerText},{children:[l("span",{children:"Open link in new tab to read in detail"}),i("a",e({className:s.visitLink,style:null===(C=m.customStyles)||void 0===C?void 0:C.footerLink,href:m.url,target:"_blank",rel:"noopener noreferrer"},{children:[l("span",{children:"Visit Link"}),l(t,{className:s.visitLinkIcon,style:null===(U=m.customStyles)||void 0===U?void 0:U.visitLinkIcon})]}))]}))}))]}))};export{m as default};
1
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";import{CircularProgress as l}from"@mui/material";import{SquareArrowOutUpRight as t}from"lucide-react";import{useState as s,useEffect as o}from"react";import r from"./WebCitationWithImageContent.module.css.js";import{useRequirementAI as n}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./ImagePreviewDialog.js";import c from"./FullScreenIcon.js";const d=d=>{var m,u,g,v,h,y,p,f,b,S,j,k,L,I,N;const{queryClient:P,useGetSignedUrlQuery:C,useGetSignedUrlMutation:O}=n().apiCachingConfig,U=["getSignedUrl",d.gsUtilPath],{data:F}=C(d.gsUtilPath,U),{mutate:W,isPending:w}=O(d.gsUtilPath),[x,D]=s(!1),q=(null===(m=d.customIcons)||void 0===m?void 0:m.FullScreenIcon)||e(c,{});return o(()=>{if(!d.gsUtilPath)return void console.error("error","Error","Please provide valid gsUtilPath.");P.getQueryData(U)||w||W({gsUtilPath:d.gsUtilPath})},[d.gsUtilPath,P,U,W,w]),i("div",Object.assign({className:r.container,style:null===(u=d.customStyles)||void 0===u?void 0:u.content},{children:[e("div",Object.assign({className:r.header,style:null===(g=d.customStyles)||void 0===g?void 0:g.header},{children:e("div",Object.assign({className:r.headerLeft,style:null===(v=d.customStyles)||void 0===v?void 0:v.headerLeft},{children:e("a",Object.assign({className:r.headerLink,style:null===(h=d.customStyles)||void 0===h?void 0:h.headerLink,target:"_blank",rel:"noopener noreferrer",href:d.url},{children:d.label}))}))})),w?i("div",Object.assign({className:r.loadingContainer,style:null===(y=d.customStyles)||void 0===y?void 0:y.loadingContainer},{children:[e(l,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),e("span",Object.assign({className:r.loadingLabel,style:null===(p=d.customStyles)||void 0===p?void 0:p.loadingLabel},{children:"Loading Image..."}))]})):F&&i("div",Object.assign({className:r.imageWrapper,style:null===(f=d.customStyles)||void 0===f?void 0:f.imageWrapper},{children:[e("img",{src:F,alt:"images",className:r.image,style:null===(b=d.customStyles)||void 0===b?void 0:b.image,onError:e=>{e.target.src="path/to/fallback-image.png",console.error("Failed to load image from signed URL")}}),e("div",Object.assign({className:r.fullscreenButton,style:null===(S=d.customStyles)||void 0===S?void 0:S.fullscreenButton,onClick:()=>D(!0)},{children:q})),e(a,{open:x,handleClose:()=>D(!1),src:F,CloseIcon:null==d?void 0:d.PreviewDialogCloseIcon,styles:null===(j=d.customStyles)||void 0===j?void 0:j.previewDialog})]})),e("div",Object.assign({className:r.footer,style:null===(k=d.customStyles)||void 0===k?void 0:k.footer},{children:i("div",Object.assign({className:r.footerInner,style:null===(L=d.customStyles)||void 0===L?void 0:L.footerText},{children:[e("span",{children:"Open link in new tab to read in detail"}),i("a",Object.assign({className:r.visitLink,style:null===(I=d.customStyles)||void 0===I?void 0:I.footerLink,href:d.url,target:"_blank",rel:"noopener noreferrer"},{children:[e("span",{children:"Visit Link"}),e(t,{className:r.visitLinkIcon,style:null===(N=d.customStyles)||void 0===N?void 0:N.visitLinkIcon})]}))]}))}))]}))};export{d as default};
2
2
  //# sourceMappingURL=WebCitationWithImageContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsx as o}from"react/jsx-runtime";import i from"./WebCitationWithImageContent.js";import n from"./WebCitationIcon.js";import e from"../../../../CitationRenderer/CitationRenderer.js";var r=function(r){var a,l,c,s,d=r.title,u=r.citation,m=r.customStyles,p=r.customIcons,v=(null==p?void 0:p.webCitationIcon)||o(n,{});return o(e,{inLineCitation:!0,citationTitle:d,citationId:"web-citation-".concat(u.citation_number),chevronDownComponent:v,chevronUpComponent:v,citationComponent:o(i,{gsUtilPath:(null===(a=u.customMetadata)||void 0===a?void 0:a.screenshot_url)||(null===(l=u.customMetadata)||void 0===l?void 0:l.gs_util_url)||"",relevanceScore:null===(c=u.customMetadata)||void 0===c?void 0:c.relevance_score,url:(null===(s=u.customMetadata)||void 0===s?void 0:s.link)||"",label:d,PreviewDialogCloseIcon:function(){return o("span",{children:"X"})},customStyles:m,customIcons:p}),styles:{pillButton:t({margin:"0px 10px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==m?void 0:m.pill),citationContent:t({width:"100%",background:"transparent",marginTop:"10px"},null==m?void 0:m.content)}})};export{r as default};
1
+ import{jsx as t}from"react/jsx-runtime";import o from"./WebCitationWithImageContent.js";import i from"./WebCitationIcon.js";import n from"../../../../CitationRenderer/CitationRenderer.js";const e=({title:e,citation:a,customStyles:r,customIcons:l})=>{var c,s,d,u;const p=(null==l?void 0:l.webCitationIcon)||t(i,{});return t(n,{inLineCitation:!0,citationTitle:e,citationId:`web-citation-${a.citation_number}`,chevronDownComponent:p,chevronUpComponent:p,citationComponent:t(o,{gsUtilPath:(null===(c=a.customMetadata)||void 0===c?void 0:c.screenshot_url)||(null===(s=a.customMetadata)||void 0===s?void 0:s.gs_util_url)||"",relevanceScore:null===(d=a.customMetadata)||void 0===d?void 0:d.relevance_score,url:(null===(u=a.customMetadata)||void 0===u?void 0:u.link)||"",label:e,PreviewDialogCloseIcon:()=>t("span",{children:"X"}),customStyles:r,customIcons:l}),styles:{pillButton:Object.assign({margin:"0px 10px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==r?void 0:r.pill),citationContent:Object.assign({width:"100%",background:"transparent",marginTop:"10px"},null==r?void 0:r.content)}})};export{e as default};
2
2
  //# sourceMappingURL=WebCitationWithImageRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as l,useEffect as o}from"react";import{Pencil as r,Save as a,X as d}from"lucide-react";import{preprocessUserStoryForEdit as s,formatMarkdown as u,postprocessUserStoryAfterEdit as v}from"../../utils/user-story.utils.js";import c from"../userstory-with-citation/UserStoryWithCitation.js";import m from"./PartialRequirementContent.module.css.js";import{Tooltip as p}from"@mui/material";import{useRequirementAI as y}from"../RequirementAIWrapper/RequirementAIWrapper.js";import C from"../RichTextEditor/RichTextEditor.js";var h=function(h){var f,S,R,g,q,P,w,B,N,b,D,A,j,k,E,U,x,W,I=h.loadingPartialRequirements,T=h.localUserStory,z=h.setLocalUserStory,F=h.onCraFlowDiffAgentAction,L=h.disableEditing,H=h.isCraflow,M=void 0===H||H,V=h.onCraAccept,G=h.onCraReject,J=h.CDNeededInChip,K=l(!1),O=K[0],Q=K[1],X=l(""),Y=X[0],Z=X[1],$=y(),_=$.customStyles;$.segmentComponentConfig,o(function(){L&&Q(!1)},[L]),o(function(){var e;Z(null===(e=null==T?void 0:T[0])||void 0===e?void 0:e.value)},[T]);if(I)return t("div",e({className:m.skeletonWrapper,style:null===(f=null==_?void 0:_.PartialRequirementContentStyles)||void 0===f?void 0:f.skeletonWrapper},{children:[1,2,3,4,5].map(function(e){var i;return t("div",{className:m.skeletonLine,style:null===(i=null==_?void 0:_.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},e)})}));var ee=!Y||""===Y.trim();return i("div",e({className:m.wrapper,style:null===(S=null==_?void 0:_.PartialRequirementContentStyles)||void 0===S?void 0:S.wrapper},{children:[t("div",e({className:m.actionBar,style:null===(R=null==_?void 0:_.PartialRequirementContentStyles)||void 0===R?void 0:R.actionBar},{children:O?i(n,{children:[i("span",e({className:m.editingBadge,style:null===(w=null==_?void 0:_.PartialRequirementContentStyles)||void 0===w?void 0:w.editingBadge},{children:[t("span",{className:m.editingDot,style:null===(B=null==_?void 0:_.PartialRequirementContentStyles)||void 0===B?void 0:B.editingDot}),"Editing"]})),t("div",{className:m.btnDivider,style:null===(N=null==_?void 0:_.PartialRequirementContentStyles)||void 0===N?void 0:N.btnDivider}),t(p,e({title:ee?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e({},null===(b=null==_?void 0:_.PartialRequirementContentStyles)||void 0===b?void 0:b.headerTooltip)}}},{children:t("span",{children:t("button",e({className:m.saveBtn,style:e(e(e({},null===(D=null==_?void 0:_.PartialRequirementContentStyles)||void 0===D?void 0:D.actionBtn),null===(A=null==_?void 0:_.PartialRequirementContentStyles)||void 0===A?void 0:A.saveBtn),{opacity:ee?.5:1,cursor:ee?"not-allowed":"pointer"}),onClick:function(){ee||(z(function(t){var i=e(e({},t[0]),{value:v(Y)});return null==F||F("accept",[i]),[i]}),Q(!1))},disabled:ee},{children:t(a,{size:16})}))})})),t("button",e({className:m.cancelBtn,style:e(e({},null===(j=null==_?void 0:_.PartialRequirementContentStyles)||void 0===j?void 0:j.actionBtn),null===(k=null==_?void 0:_.PartialRequirementContentStyles)||void 0===k?void 0:k.cancelBtn),onClick:function(){var e;Z(null===(e=null==T?void 0:T[0])||void 0===e?void 0:e.value),Q(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:t(d,{size:16})}))]}):t(p,e({title:L?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:e({},null===(g=null==_?void 0:_.PartialRequirementContentStyles)||void 0===g?void 0:g.headerTooltip)}}},{children:t("span",{children:t("button",e({className:m.editBtn,style:e(e(e({},null===(q=null==_?void 0:_.PartialRequirementContentStyles)||void 0===q?void 0:q.actionBtn),null===(P=null==_?void 0:_.PartialRequirementContentStyles)||void 0===P?void 0:P.editBtn),{opacity:L?.5:1,cursor:L?"not-allowed":"pointer"}),onClick:function(){L||Q(!0)},disabled:L,"aria-label":"Edit requirement"},{children:t(r,{size:16})}))})}))})),t("div",O?e({className:m.editorContainer,style:null===(E=null==_?void 0:_.PartialRequirementContentStyles)||void 0===E?void 0:E.editorContainer},{children:t(C,{minHeight:"100%",height:"100%",type:"string",value:s(u((null===(U=null==T?void 0:T[0])||void 0===U?void 0:U.value)||"")||""),handleUpdateState:function(e,t){Z(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):e({className:m.viewContainer,style:null===(x=null==_?void 0:_.PartialRequirementContentStyles)||void 0===x?void 0:x.viewContainer},{children:t(c,{message:u((null===(W=null==T?void 0:T[0])||void 0===W?void 0:W.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:T,setCraUserStory:z,onCraFlowDiffAgentAction:F,displayActionButtons:!O},isCraflow:M,onCraAccept:V,onCraReject:G,customStyles:null==_?void 0:_.UserStoryWithCitationCustomStyles,CDNeededInChip:J})}))]}))};export{h as PartialRequirementContent,h as default};
1
+ import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as n,useEffect as l}from"react";import{Pencil as o,Save as a,X as s}from"lucide-react";import{preprocessUserStoryForEdit as r,formatMarkdown as d,postprocessUserStoryAfterEdit as c}from"../../utils/user-story.utils.js";import u from"../userstory-with-citation/UserStoryWithCitation.js";import v from"./PartialRequirementContent.module.css.js";import{Tooltip as m}from"@mui/material";import{useRequirementAI as p}from"../RequirementAIWrapper/RequirementAIWrapper.js";import g from"../RichTextEditor/RichTextEditor.js";const y=({loadingPartialRequirements:y,localUserStory:C,setLocalUserStory:b,onCraFlowDiffAgentAction:h,disableEditing:j,isCraflow:S=!0,onCraAccept:R,onCraReject:O,CDNeededInChip:q})=>{var f,P,w,B,N,D,A,k,E,U,x,W,I,T,z,F,L,H;const[M,V]=n(!1),[G,J]=n(""),{customStyles:K,segmentComponentConfig:Q}=p();l(()=>{j&&V(!1)},[j]),l(()=>{var e;J(null===(e=null==C?void 0:C[0])||void 0===e?void 0:e.value)},[C]);if(y)return e("div",Object.assign({className:v.skeletonWrapper,style:null===(f=null==K?void 0:K.PartialRequirementContentStyles)||void 0===f?void 0:f.skeletonWrapper},{children:[1,2,3,4,5].map(t=>{var i;return e("div",{className:v.skeletonLine,style:null===(i=null==K?void 0:K.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},t)})}));const X=!G||""===G.trim();return t("div",Object.assign({className:v.wrapper,style:null===(P=null==K?void 0:K.PartialRequirementContentStyles)||void 0===P?void 0:P.wrapper},{children:[e("div",Object.assign({className:v.actionBar,style:null===(w=null==K?void 0:K.PartialRequirementContentStyles)||void 0===w?void 0:w.actionBar},{children:M?t(i,{children:[t("span",Object.assign({className:v.editingBadge,style:null===(A=null==K?void 0:K.PartialRequirementContentStyles)||void 0===A?void 0:A.editingBadge},{children:[e("span",{className:v.editingDot,style:null===(k=null==K?void 0:K.PartialRequirementContentStyles)||void 0===k?void 0:k.editingDot}),"Editing"]})),e("div",{className:v.btnDivider,style:null===(E=null==K?void 0:K.PartialRequirementContentStyles)||void 0===E?void 0:E.btnDivider}),e(m,Object.assign({title:X?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:Object.assign({},null===(U=null==K?void 0:K.PartialRequirementContentStyles)||void 0===U?void 0:U.headerTooltip)}}},{children:e("span",{children:e("button",Object.assign({className:v.saveBtn,style:Object.assign(Object.assign(Object.assign({},null===(x=null==K?void 0:K.PartialRequirementContentStyles)||void 0===x?void 0:x.actionBtn),null===(W=null==K?void 0:K.PartialRequirementContentStyles)||void 0===W?void 0:W.saveBtn),{opacity:X?.5:1,cursor:X?"not-allowed":"pointer"}),onClick:()=>{X||(b(e=>{const t=Object.assign(Object.assign({},e[0]),{value:c(G)});return null==h||h("accept",[t]),[t]}),V(!1))},disabled:X},{children:e(a,{size:16})}))})})),e("button",Object.assign({className:v.cancelBtn,style:Object.assign(Object.assign({},null===(I=null==K?void 0:K.PartialRequirementContentStyles)||void 0===I?void 0:I.actionBtn),null===(T=null==K?void 0:K.PartialRequirementContentStyles)||void 0===T?void 0:T.cancelBtn),onClick:()=>{var e;J(null===(e=null==C?void 0:C[0])||void 0===e?void 0:e.value),V(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:e(s,{size:16})}))]}):e(m,Object.assign({title:j?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:Object.assign({},null===(B=null==K?void 0:K.PartialRequirementContentStyles)||void 0===B?void 0:B.headerTooltip)}}},{children:e("span",{children:e("button",Object.assign({className:v.editBtn,style:Object.assign(Object.assign(Object.assign({},null===(N=null==K?void 0:K.PartialRequirementContentStyles)||void 0===N?void 0:N.actionBtn),null===(D=null==K?void 0:K.PartialRequirementContentStyles)||void 0===D?void 0:D.editBtn),{opacity:j?.5:1,cursor:j?"not-allowed":"pointer"}),onClick:()=>{j||V(!0)},disabled:j,"aria-label":"Edit requirement"},{children:e(o,{size:16})}))})}))})),e("div",M?Object.assign({className:v.editorContainer,style:null===(z=null==K?void 0:K.PartialRequirementContentStyles)||void 0===z?void 0:z.editorContainer},{children:e(g,{minHeight:"100%",height:"100%",type:"string",value:r(d((null===(F=null==C?void 0:C[0])||void 0===F?void 0:F.value)||"")||""),handleUpdateState:(e,t)=>{J(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):Object.assign({className:v.viewContainer,style:null===(L=null==K?void 0:K.PartialRequirementContentStyles)||void 0===L?void 0:L.viewContainer},{children:e(u,{message:d((null===(H=null==C?void 0:C[0])||void 0===H?void 0:H.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:C,setCraUserStory:b,onCraFlowDiffAgentAction:h,displayActionButtons:!M},isCraflow:S,onCraAccept:R,onCraReject:O,customStyles:null==K?void 0:K.UserStoryWithCitationCustomStyles,CDNeededInChip:q})}))]}))};export{y as PartialRequirementContent,y as default};
2
2
  //# sourceMappingURL=PartialRequirementContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as i,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as t,ChevronDown as r,Check as a,SquareArrowOutUpRight as c,Loader2 as s}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import u from"../ai-reasoning/AiReasoningCitationContent.js";import p from"../../icons/CognitiveDecision.js";import{Tooltip as m}from"@mui/material";function v(v){var g=v.isDefaultOpen,h=v.processItemId,f=v.isCompleted,y=v.mode,C=v.msg,b=v.type,x=v.id,D=v.aiReason,N=v.text,T=v.headerText,I=v.decisionStrength;v.statusUi,v.panelRef;var S=v.onHandleSend,k=v.onRedirectClick,R=v.gapType,j=v.isGenerating,B=void 0!==j&&j,W=v.customStyles,P=v.customIcons,H=v.cognitiveDecisionHeaders,A=l(g),O=A[0],z=A[1],F=(null==P?void 0:P.highConfidence)||i(p,{}),G=function(){"cra"===y?null==S||S("Discuss ambiguities on ".concat(N),x):null==S||S("Deep Dive into ".concat(R," ").concat(T,": ").concat(N),x)};return o("div",e({className:[d.outerWrapper,B?d.outerWrapperDisabled:""].join(" "),style:e(e({},null==W?void 0:W.redirectionOuterWrapper),B?null==W?void 0:W.redirectionOuterWrapperDisabled:{})},{children:[o("div",e({className:[d.card,B?d.cardDisabled:d.cardInteractive].join(" "),style:e(e({},null==W?void 0:W.redirectionCard),B?null==W?void 0:W.redirectionCardDisabled:null==W?void 0:W.redirectionCardInteractive)},{children:[o("div",e({className:d.leftSide,style:null==W?void 0:W.redirectionLeftSide},{children:[i(m,e({title:T+" "+N,placement:"top",slotProps:{tooltip:{sx:e({},null==W?void 0:W.headerTooltip)}}},{children:o("span",e({className:d.textBlock,style:null==W?void 0:W.redirectionTextBlock},{children:[T&&o("span",e({className:d.headerText,style:null==W?void 0:W.redirectionHeaderText},{children:[T,N?" ":""]})),N]}))})),o("span",e({onClick:function(e){e.stopPropagation(),B||z(!O)},className:[d.reasoningToggle,B?d.reasoningToggleDisabled:d.reasoningToggleActive].join(" "),style:e(e({},null==W?void 0:W.reasoningToggle),B?null==W?void 0:W.reasoningToggleDisabled:null==W?void 0:W.reasoningToggleActive)},{children:[F,i(O?t:r,{className:d.chevronIcon,style:null==W?void 0:W.chevronIcon})]}))]})),f?i("div",e({className:d.completeTickWrapper,style:null==W?void 0:W.completeTickWrapper},{children:i(a,{color:(null==W?void 0:W.checkColor)||"green"})})):o(n,{children:["risk-gap"===y&&o("div",e({className:d.rightSide,style:null==W?void 0:W.redirectionRightSide},{children:[i("button",e({disabled:B,className:[d.fixButton,B?d.fixButtonDisabled:""].join(" "),style:e(e({},null==W?void 0:W.redirectionFixButton),B?null==W?void 0:W.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),B||G()}},{children:"Fix"})),i(c,{onClick:B?void 0:function(){B||null==k||k({type:b,id:x,aiReason:D,msg:C,meta:{headerText:T,decisionStrength:I,text:N}})},size:18,className:[B?d.redirectIconDisabled:d.redirectIcon].join(" "),style:e({},B?null==W?void 0:W.redirectIconDisabled:null==W?void 0:W.redirectIcon)})]})),"cra"===y&&!g&&i("div",e({className:d.rightSide,style:null==W?void 0:W.redirectionRightSide},{children:h===x?i("div",e({className:d.loaderWrapper,style:null==W?void 0:W.loaderWrapper},{children:i(s,{size:16,className:d.loaderIcon,color:"grey",style:e({animation:"spin 1s linear infinite"},null==W?void 0:W.loaderIcon)})})):i("button",e({className:[d.clarifyButton].join(" "),style:e({color:B?"grey":""},null==W?void 0:W.redirectionClarifyButton),disabled:B,onClick:function(e){e.stopPropagation(),G()}},{children:"Clarify"}))}))]})]})),O&&i(u,{label:"cra"===y?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==D?void 0:D.Reasoning)||"",gap:(null==D?void 0:D.Gap)||"",relevance_score:Number(null==D?void 0:D.Confidence_score),explanation:(null==D?void 0:D.explanation)||""},onSelectProceed:G,customStyles:null==W?void 0:W.aiReasoningStyles,customIcons:P,cognitiveDecisionHeaders:H})]}))}export{v as CustomChatCrRedirection};
1
+ import{jsx as e,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronUp as s,ChevronDown as l,Check as t,SquareArrowOutUpRight as a,Loader2 as r}from"lucide-react";import c from"./CustomChatCrRedirection.module.css.js";import d from"../ai-reasoning/AiReasoningCitationContent.js";import g from"../../icons/CognitiveDecision.js";import{Tooltip as u}from"@mui/material";function p({isDefaultOpen:p,processItemId:m,isCompleted:v,mode:b,msg:j,type:h,id:O,aiReason:y,text:f,headerText:C,decisionStrength:x,statusUi:D,panelRef:N,onHandleSend:T,onRedirectClick:I,gapType:S,isGenerating:k=!1,customStyles:R,customIcons:B,cognitiveDecisionHeaders:W}){const[P,H]=o(p),$=(null==B?void 0:B.highConfidence)||e(g,{}),A=()=>{"cra"===b?null==T||T(`Discuss ambiguities on ${f}`,O):null==T||T(`Deep Dive into ${S} ${C}: ${f}`,O)};return i("div",Object.assign({className:[c.outerWrapper,k?c.outerWrapperDisabled:""].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.redirectionOuterWrapper),k?null==R?void 0:R.redirectionOuterWrapperDisabled:{})},{children:[i("div",Object.assign({className:[c.card,k?c.cardDisabled:c.cardInteractive].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.redirectionCard),k?null==R?void 0:R.redirectionCardDisabled:null==R?void 0:R.redirectionCardInteractive)},{children:[i("div",Object.assign({className:c.leftSide,style:null==R?void 0:R.redirectionLeftSide},{children:[e(u,Object.assign({title:C+" "+f,placement:"top",slotProps:{tooltip:{sx:Object.assign({},null==R?void 0:R.headerTooltip)}}},{children:i("span",Object.assign({className:c.textBlock,style:null==R?void 0:R.redirectionTextBlock},{children:[C&&i("span",Object.assign({className:c.headerText,style:null==R?void 0:R.redirectionHeaderText},{children:[C,f?" ":""]})),f]}))})),i("span",Object.assign({onClick:e=>{e.stopPropagation(),k||H(!P)},className:[c.reasoningToggle,k?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.reasoningToggle),k?null==R?void 0:R.reasoningToggleDisabled:null==R?void 0:R.reasoningToggleActive)},{children:[$,e(P?s:l,{className:c.chevronIcon,style:null==R?void 0:R.chevronIcon})]}))]})),v?e("div",Object.assign({className:c.completeTickWrapper,style:null==R?void 0:R.completeTickWrapper},{children:e(t,{color:(null==R?void 0:R.checkColor)||"green"})})):i(n,{children:["risk-gap"===b&&i("div",Object.assign({className:c.rightSide,style:null==R?void 0:R.redirectionRightSide},{children:[e("button",Object.assign({disabled:k,className:[c.fixButton,k?c.fixButtonDisabled:""].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.redirectionFixButton),k?null==R?void 0:R.fixButtonDisabled:{}),onClick:e=>{e.stopPropagation(),k||A()}},{children:"Fix"})),e(a,{onClick:k?void 0:()=>{k||null==I||I({type:h,id:O,aiReason:y,msg:j,meta:{headerText:C,decisionStrength:x,text:f}})},size:18,className:[k?c.redirectIconDisabled:c.redirectIcon].join(" "),style:Object.assign({},k?null==R?void 0:R.redirectIconDisabled:null==R?void 0:R.redirectIcon)})]})),"cra"===b&&!p&&e("div",Object.assign({className:c.rightSide,style:null==R?void 0:R.redirectionRightSide},{children:m===O?e("div",Object.assign({className:c.loaderWrapper,style:null==R?void 0:R.loaderWrapper},{children:e(r,{size:16,className:c.loaderIcon,color:"grey",style:Object.assign({animation:"spin 1s linear infinite"},null==R?void 0:R.loaderIcon)})})):e("button",Object.assign({className:[c.clarifyButton].join(" "),style:Object.assign({color:k?"grey":""},null==R?void 0:R.redirectionClarifyButton),disabled:k,onClick:e=>{e.stopPropagation(),A()}},{children:"Clarify"}))}))]})]})),P&&e(d,{label:"cra"===b?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==y?void 0:y.Reasoning)||"",gap:(null==y?void 0:y.Gap)||"",relevance_score:Number(null==y?void 0:y.Confidence_score),explanation:(null==y?void 0:y.explanation)||""},onSelectProceed:A,customStyles:null==R?void 0:R.aiReasoningStyles,customIcons:B,cognitiveDecisionHeaders:W})]}))}export{p as CustomChatCrRedirection};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.js.map