@viswa-test/test-citation 0.0.229 → 0.0.231

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (684) hide show
  1. package/README.md +284 -45
  2. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  3. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  4. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  5. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  6. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  7. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  8. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
  9. package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  10. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  11. package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  12. package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  13. package/dist/cjs/features/GptWebCitation/types.js +2 -0
  14. package/dist/cjs/features/GptWebCitation/types.js.map +1 -0
  15. package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +1 -1
  16. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
  17. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
  18. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
  19. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
  20. package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  24. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  25. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  28. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  29. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  31. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  41. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  44. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  45. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  48. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  49. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  51. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  52. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  53. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  54. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  55. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  56. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
  61. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
  62. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
  63. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
  64. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
  67. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
  68. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
  69. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
  70. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  76. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  77. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +2 -0
  118. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
  119. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
  120. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
  121. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  131. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  132. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  133. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  134. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  135. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  136. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  137. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  138. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  139. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  140. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  141. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  142. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  143. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  144. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  145. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  146. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  147. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  148. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  149. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  150. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  151. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  152. package/dist/cjs/features/RequirementAI/components/segment/segment-common.css.js +1 -1
  153. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  154. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +2 -0
  155. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
  156. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
  157. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
  158. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  159. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  160. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  161. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  162. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  163. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  164. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  165. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  166. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  167. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  168. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  169. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  170. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  171. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  172. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  173. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  174. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  175. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  176. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  177. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  178. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  179. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  180. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  181. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  182. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  183. package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  184. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  185. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  186. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  187. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  188. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  189. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  190. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +2 -0
  191. package/dist/cjs/features/RequirementAI/icons/CDIcon.js.map +1 -0
  192. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  193. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  194. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  195. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  196. package/dist/cjs/features/RequirementAI/icons/Illustration.svg.js +2 -0
  197. package/dist/cjs/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
  198. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  199. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  200. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  201. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  202. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  203. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  204. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  205. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  206. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  207. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  208. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  209. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  210. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  211. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  212. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  213. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  214. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  215. package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  216. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  217. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  218. package/dist/cjs/features/RequirementAI/utils/css.utils.js +1 -1
  219. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  220. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  221. package/dist/cjs/features/RequirementAI/utils/json-helper.js +1 -1
  222. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  223. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  224. package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
  225. package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  226. package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  227. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  228. package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  229. package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  230. package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  231. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  232. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  233. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  234. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  235. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  236. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  237. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  238. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  239. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  240. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  241. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  242. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  243. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  244. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  245. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  246. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  247. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  248. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  249. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  250. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  251. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  252. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  253. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  254. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  255. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  256. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  257. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  258. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  259. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  260. package/dist/cjs/features/UserStoryImport/components/usePanelResize.js +1 -1
  261. package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  262. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  263. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  264. package/dist/cjs/features/UserStoryImport/index.js +1 -1
  265. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  266. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  267. package/dist/cjs/features/UserStoryImport/lib/cn.js +1 -1
  268. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  269. package/dist/cjs/index.js +1 -1
  270. package/dist/cjs/service/redlineService.js +2 -0
  271. package/dist/cjs/service/redlineService.js.map +1 -0
  272. package/dist/cjs/utils/tagHelper.js +2 -0
  273. package/dist/cjs/utils/tagHelper.js.map +1 -0
  274. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  275. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  276. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  277. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  278. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  279. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  280. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  281. package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  282. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  283. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  284. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  285. package/dist/features/GptWebCitation/types.js +2 -0
  286. package/dist/features/GptWebCitation/types.js.map +1 -0
  287. package/dist/features/GptWebCitation/utils/citationData.utils.js +1 -1
  288. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
  289. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
  290. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
  291. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
  292. package/dist/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  293. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  294. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  295. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  296. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  297. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  298. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  299. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  300. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  301. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  302. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  303. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  304. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  305. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  306. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  307. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  308. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  309. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  310. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  311. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  312. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  313. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
  314. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  315. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  316. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  317. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  318. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  319. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  320. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  321. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  322. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  323. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  324. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  325. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  326. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  327. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  328. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  329. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  330. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  331. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  332. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  333. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
  334. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
  335. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
  336. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
  337. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  338. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
  339. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
  340. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
  341. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
  342. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
  343. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  344. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  345. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  346. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  347. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  348. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  349. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  350. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  351. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  352. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  353. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  354. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  355. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  356. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  357. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  358. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  359. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  360. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  361. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  362. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  363. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  364. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  365. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  366. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  367. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  368. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  369. package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
  370. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  371. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  372. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  373. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  374. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  375. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  376. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  377. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  378. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  379. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  380. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  381. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  382. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  383. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  384. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  385. package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  386. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  387. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  388. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  389. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  390. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  391. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +2 -0
  392. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
  393. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
  394. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
  395. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  396. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  397. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  398. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  399. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  400. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  401. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  402. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  403. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  404. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  405. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  406. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  407. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  408. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  409. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  410. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  411. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  412. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  413. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  414. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  415. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  416. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  417. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  418. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  419. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  420. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  421. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  422. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  423. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  424. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  425. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  426. package/dist/features/RequirementAI/components/segment/segment-common.css.js +1 -1
  427. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  428. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +2 -0
  429. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
  430. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
  431. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
  432. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  433. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  434. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  435. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  436. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  437. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  438. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  439. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  440. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  441. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  442. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  443. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  444. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  445. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  446. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  447. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  448. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  449. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  450. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  451. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  452. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  453. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  454. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  455. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  456. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  457. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  458. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  459. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  460. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  461. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  462. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  463. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  464. package/dist/features/RequirementAI/icons/CDIcon.js +2 -0
  465. package/dist/features/RequirementAI/icons/CDIcon.js.map +1 -0
  466. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  467. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  468. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  469. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  470. package/dist/features/RequirementAI/icons/Illustration.svg.js +2 -0
  471. package/dist/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
  472. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  473. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  474. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  475. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  476. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  477. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  478. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  479. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  480. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  481. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  482. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  483. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  484. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  485. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  486. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  487. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  488. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  489. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  490. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  491. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  492. package/dist/features/RequirementAI/utils/css.utils.js +1 -1
  493. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  494. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  495. package/dist/features/RequirementAI/utils/json-helper.js +1 -1
  496. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  497. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  498. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  499. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  500. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  501. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  502. package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  503. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  504. package/dist/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  505. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  506. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  507. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  508. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  509. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  510. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  511. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  512. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  513. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  514. package/dist/features/UserStoryImport/components/Header.js +1 -1
  515. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  516. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  517. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  518. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  519. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  520. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  521. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  522. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  523. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  524. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  525. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  526. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  527. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  528. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  529. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  530. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  531. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  532. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  533. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  534. package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
  535. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  536. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  537. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  538. package/dist/features/UserStoryImport/index.js +1 -1
  539. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  540. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  541. package/dist/features/UserStoryImport/lib/cn.js +1 -1
  542. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  543. package/dist/index.js +1 -1
  544. package/dist/service/redlineService.js +2 -0
  545. package/dist/service/redlineService.js.map +1 -0
  546. package/dist/types/src/Background.d.ts +7 -0
  547. package/dist/types/src/Background.d.ts.map +1 -0
  548. package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
  549. package/dist/types/src/CommonConstants/CommonConstants.d.ts +1365 -0
  550. package/dist/types/src/CommonConstants/CommonConstants.d.ts.map +1 -1
  551. package/dist/types/src/DeviationSummaryTest.d.ts +2 -0
  552. package/dist/types/src/DeviationSummaryTest.d.ts.map +1 -0
  553. package/dist/types/src/RedlineEditorTest.d.ts +3 -0
  554. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -0
  555. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  556. package/dist/types/src/constants/deviationData.d.ts +887 -0
  557. package/dist/types/src/constants/deviationData.d.ts.map +1 -0
  558. package/dist/types/src/constants/treeData.d.ts +732 -0
  559. package/dist/types/src/constants/treeData.d.ts.map +1 -0
  560. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  561. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +5 -0
  562. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  563. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +9 -1
  564. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
  565. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
  566. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
  567. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
  568. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
  569. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
  570. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
  571. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +10 -0
  572. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
  573. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +9 -1
  574. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
  575. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +3 -1
  576. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -1
  577. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +12 -1
  578. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -1
  579. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +1 -1
  580. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -1
  581. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -1
  582. package/dist/types/src/features/GptWebCitation/types.d.ts +313 -20
  583. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
  584. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +2 -0
  585. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -1
  586. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +10 -0
  587. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -0
  588. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts +6 -0
  589. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +1 -0
  590. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +2 -0
  591. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -1
  592. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +1 -1
  593. package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.d.ts.map +1 -1
  594. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +156 -3
  595. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  596. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +2 -1
  597. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  598. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +1 -4
  599. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  600. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts +44 -0
  601. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts.map +1 -0
  602. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  603. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +4 -3
  604. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  605. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts +35 -0
  606. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts.map +1 -0
  607. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +25 -0
  608. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -0
  609. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts +23 -0
  610. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts.map +1 -0
  611. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +25 -0
  612. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -0
  613. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.d.ts.map +1 -1
  614. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map +1 -1
  615. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +9 -1
  616. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  617. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts +8 -0
  618. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts.map +1 -0
  619. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts +29 -0
  620. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts.map +1 -0
  621. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +8 -3
  622. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  623. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/BlockedPopup.d.ts +8 -0
  624. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/BlockedPopup.d.ts.map +1 -0
  625. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +44 -4
  626. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  627. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +25 -0
  628. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -0
  629. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +17 -3
  630. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  631. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +35 -2
  632. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  633. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  634. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts +12 -0
  635. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts.map +1 -0
  636. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts +6 -0
  637. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts.map +1 -0
  638. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts +1 -0
  639. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map +1 -1
  640. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts +15 -0
  641. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts.map +1 -0
  642. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +7 -1
  643. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  644. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts +4 -1
  645. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts.map +1 -1
  646. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +14 -1
  647. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  648. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts +11 -0
  649. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts.map +1 -0
  650. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts +10 -0
  651. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts.map +1 -0
  652. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +2 -1
  653. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  654. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts +4 -1
  655. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts.map +1 -1
  656. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +17 -2
  657. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
  658. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +10 -0
  659. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  660. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +4 -1
  661. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  662. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -12
  663. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  664. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +20 -0
  665. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
  666. package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts.map +1 -1
  667. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +2 -2
  668. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
  669. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +1 -0
  670. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
  671. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
  672. package/dist/types/src/index.d.ts +3 -2
  673. package/dist/types/src/index.d.ts.map +1 -1
  674. package/dist/types/src/service/redlineService.d.ts +33 -0
  675. package/dist/types/src/service/redlineService.d.ts.map +1 -0
  676. package/dist/types/src/utils/tagHelper.d.ts +5 -0
  677. package/dist/types/src/utils/tagHelper.d.ts.map +1 -0
  678. package/dist/utils/tagHelper.js +2 -0
  679. package/dist/utils/tagHelper.js.map +1 -0
  680. package/package.json +9 -6
  681. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  682. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
  683. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  684. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{__assign as 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",{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,c,s,r,m;const d=(null===(a=n.customIcons)||void 0===a?void 0:a.stormeeCitationIcon)||t(i,{}),l=(null===(c=n.customIcons)||void 0===c?void 0:c.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===(s=n.citation.customMetadata)||void 0===s?void 0:s.relevance_score,brainStormIcon:l,customStyles:n.customStyles}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:{margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",fontSize:"14px",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none",...null===(r=n.customStyles)||void 0===r?void 0:r.pill},citationTitle:{marginRight:"4px"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(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 l,{memo as i,useState as n,useCallback as a,useEffect as s}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 p}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{AudioPlayProvider as h}from"../audio-citation/store/autoplay.wavefrom.js";const v=i(({brainStormIcon:i="https://storymod-assests.pages.dev/brainstorm-cropped.gif",themeColor:v,segments:y,gsUtilPath:g,contentName:f,content:N,keywords:S,relevanceScore:T,highlighted_content:C,customStyles:x})=>{var I,k,w,P;const[R,U]=n(0),[j,A]=n(0),{queryClient:b,useGetSignedUrlQuery:E,useGetSignedUrlMutation:W,useExtractAudioPeaksMutation:_,useExtractAudioPeaksQuery:L,useGetVideoSignedUrlQuery:M,useGetVideoSignedUrlMutation:Q}=p().apiCachingConfig,D=["getSignedUrl",g],G=["extractAudioPeaks",g],{data:q}=E(g,D),{data:V}=L(g,G),{mutate:z,isPending:H}=W(g),{mutate:O,isPending:F}=_(g),B=a(e=>{U(e)},[]);s(()=>{g&&(b.getQueryData(D)||null==z||z({gsUtilPath:g}),b.getQueryData(G)||null==O||O({gsUtilPath:g}))},[g]);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(l.isValidElement(e)){const t=e,i={...n,...t.props.style};return l.cloneElement(t,{style:i})}return t("span",{style:n,children:e})};return e("div",{className:r.container,style:null==x?void 0:x.container,children:[e("div",{className:r.header,style:null==x?void 0:x.header,children:[e("div",{className:r.headerLeft,style:null==x?void 0:x.headerLeft,children:[J(i,r.headerIcon,null!==(I=null==x?void 0:x.bsIcon)&&void 0!==I?I:null==x?void 0:x.headerIcon),t("h2",{className:r.headerTitle,style:null==x?void 0:x.headerTitle,children:"Stormee.ai"})]}),d(T,!0,null==x?void 0:x.confidenceDisplay)]}),e("div",{className:r.contentRow,style:null==x?void 0:x.contentRow,children:[e("div",{className:r.leftColumn,style:null==x?void 0:x.leftColumn,children:[H||F?e("div",{className:r.loader,style:null==x?void 0:x.loader,children:[t(c,{size:48,thickness:4}),t("span",{className:r.loaderText,style:null==x?void 0:x.loaderText,children:"Loading audio peaks..."})]}):q&&V&&t(h,{children:t(m,{colorCode:v,audio_file_name:q,matchedSegments:y,peaks:null!==(k=V.peaks)&&void 0!==k?k:[],duration:null!==(w=V.duration)&&void 0!==w?w:0,chevronIndex:j,setChevronIndex:A,onTimeUpdate:B,currentAudioTime:R,showOnlyMatched:!0,customStyles:null==x?void 0:x.waveform})}),e("div",{className:r.transcriptCard,style:null==x?void 0:x.transcriptCard,children:[e("div",{className:r.transcriptHeader,style:null==x?void 0:x.transcriptHeader,children:[J(i,r.transcriptIcon,null!==(P=null==x?void 0:x.bsIcon)&&void 0!==P?P:null==x?void 0:x.transcriptIcon),t("div",{className:r.transcriptTitle,style:null==x?void 0:x.transcriptTitle,children:"STORMEE'S TRANSCRIPT"})]}),t("div",{className:r.segmentList,style:null==x?void 0:x.segmentList,children:y.map((l,i)=>t("div",{className:r.segment,style:null==x?void 0:x.segment,children:e("div",{className:r.segmentRow,style:null==x?void 0:x.segmentRow,children:[t("span",{className:r.timestamp,style:null==x?void 0:x.timestamp,children:u(l.start_time)}),t("div",{className:r.segmentTextWrapper,style:null==x?void 0:x.segmentTextWrapper,children:t("p",{className:r.segmentText,style:null==x?void 0:x.segmentText,children:l.text})})]})},i))})]})]}),t(o,{title:f,content:N,highlight:null!=C?C:"",keyTakeaway:S,brainStormIcon:i,customStyles:x})]})]})});export{v 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 e}from"react/jsx-runtime";import n from"react";import s from"./GradientButton.module.css.js";const o=({brainStormIcon:o="https://storymod-assests.pages.dev/brainstorm-cropped.gif",customStyles:l})=>t("button",{className:s.button,style:null==l?void 0:l.gradientButton,children:e("span",{className:s.content,style:null==l?void 0:l.gradientContent,children:[(()=>{if("string"==typeof o)return t("img",{loading:"lazy",src:o,className:s.icon,alt:"Brainstorm icon",style:null==l?void 0:l.bsIcon});if(n.isValidElement(o)){const t=o;return n.cloneElement(t,{style:{...null==l?void 0:l.bsIcon,...t.props.style}})}return t("span",{style:null==l?void 0:l.bsIcon,children:o})})(),t("span",{className:s.label,style:null==l?void 0:l.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 l}from"react/jsx-runtime";import a from"react-markdown";import t from"./GradientButton.js";import r from"./ProblemStatementCard.module.css.js";const n=({title:n,content:o,highlight:s,keyTakeaway:i,className:c,brainStormIcon:m,customStyles:d})=>(console.log("content:::",o),e("div",{className:`${r.card} ${null!=c?c:""}`,style:null==d?void 0:d.problemCard,children:[e("div",{className:r.header,style:null==d?void 0:d.problemHeader,children:[l(t,{customStyles:d,brainStormIcon:m}),l("div",{className:r.titleWrapper,style:null==d?void 0:d.problemTitleWrapper,children:l("h2",{className:r.title,style:null==d?void 0:d.problemTitle,children:n})})]}),l("div",{className:r.contentWrapper,style:null==d?void 0:d.contentWrapper,children:l("p",{className:r.content,style:null==d?void 0:d.problemContent,children:l(a,{className:r.markdown,children:o.replace(/\\n/g,"\n")})})}),l("div",{className:r.takeawayContainer,style:null==d?void 0:d.takeawayContainer,children:i.map((e,a)=>l("span",{className:`${r.takeaway} \n ${0===a?r.firstTakeaway:""}`,style:null==d?void 0:d.takeawayPill,children:e},`${a}-${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:o=16})=>t("svg",{width:o,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 o from"./ImagePreviewDialog.module.css.js";const i=({open:i,handleClose:a,CloseIcon:c,src:r,styles:n})=>e(s,{maxWidth:"lg",onClose:a,open:i,children:l("div",{className:o.container,style:null==n?void 0:n.container,children:[l("div",{className:o.header,style:null==n?void 0:n.header,children:[e("h1",{className:o.title,style:null==n?void 0:n.title,children:"Image Preview"}),e("div",{className:o.closeIconWrapper,style:null==n?void 0:n.closeIconWrapper,onClick:a,children:e(c,{className:o.closeIcon,style:null==n?void 0:n.closeIcon})})]}),e("img",{src:r,alt:"Preview",className:o.image,style:null==n?void 0:n.image})]})});export{i 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 r from"./WebCitationIcon.js";import t from"./Webcitation.module.css.js";const n=({label:n,url:l,customStyles:i,customIcons:s})=>{const a=(null==s?void 0:s.webCitationIcon)||e(r,{});return o("a",{className:t.link,style:null==i?void 0:i.headerLink,target:"_blank",rel:"noopener noreferrer",href:l,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 l=()=>C("div",{children:i("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("g",{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",{id:"clip0_3025_73390",children:C("rect",{width:"24",height:"24",fill:"white"})})})]})});export{l 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",{className:"p-4 border rounded-lg bg-white mt-2",style:null==s?void 0:s.content,children:[t("p",{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:{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 l}from"react/jsx-runtime";import{CircularProgress as i}from"@mui/material";import{SquareArrowOutUpRight as o}from"lucide-react";import{useState as t,useEffect as r}from"react";import s from"./WebCitationWithImageContent.module.css.js";import{useRequirementAI as n}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./ImagePreviewDialog.js";import d from"./FullScreenIcon.js";const c=c=>{var m,u,v,g,h,y,p,f,S,k,L,I,N,P,C;const{queryClient:U,useGetSignedUrlQuery:b,useGetSignedUrlMutation:F}=n().apiCachingConfig,W=["getSignedUrl",c.gsUtilPath],{data:j}=b(c.gsUtilPath,W),{mutate:w,isPending:x}=F(c.gsUtilPath),[D,q]=t(!1),R=(null===(m=c.customIcons)||void 0===m?void 0:m.FullScreenIcon)||e(d,{});return r(()=>{if(!c.gsUtilPath)return void console.error("error","Error","Please provide valid gsUtilPath.");U.getQueryData(W)||x||w({gsUtilPath:c.gsUtilPath})},[c.gsUtilPath,U,W,w,x]),l("div",{className:s.container,style:null===(u=c.customStyles)||void 0===u?void 0:u.content,children:[e("div",{className:s.header,style:null===(v=c.customStyles)||void 0===v?void 0:v.header,children:e("div",{className:s.headerLeft,style:null===(g=c.customStyles)||void 0===g?void 0:g.headerLeft,children:e("a",{className:s.headerLink,style:null===(h=c.customStyles)||void 0===h?void 0:h.headerLink,target:"_blank",rel:"noopener noreferrer",href:c.url,children:c.label})})}),x?l("div",{className:s.loadingContainer,style:null===(y=c.customStyles)||void 0===y?void 0:y.loadingContainer,children:[e(i,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),e("span",{className:s.loadingLabel,style:null===(p=c.customStyles)||void 0===p?void 0:p.loadingLabel,children:"Loading Image..."})]}):j&&l("div",{className:s.imageWrapper,style:null===(f=c.customStyles)||void 0===f?void 0:f.imageWrapper,children:[e("img",{src:j,alt:"images",className:s.image,style:null===(S=c.customStyles)||void 0===S?void 0:S.image,onError:e=>{e.target.src="path/to/fallback-image.png",console.error("Failed to load image from signed URL")}}),e("div",{className:s.fullscreenButton,style:null===(k=c.customStyles)||void 0===k?void 0:k.fullscreenButton,onClick:()=>q(!0),children:R}),e(a,{open:D,handleClose:()=>q(!1),src:j,CloseIcon:null==c?void 0:c.PreviewDialogCloseIcon,styles:null===(L=c.customStyles)||void 0===L?void 0:L.previewDialog})]}),e("div",{className:s.footer,style:null===(I=c.customStyles)||void 0===I?void 0:I.footer,children:l("div",{className:s.footerInner,style:null===(N=c.customStyles)||void 0===N?void 0:N.footerText,children:[e("span",{children:"Open link in new tab to read in detail"}),l("a",{className:s.visitLink,style:null===(P=c.customStyles)||void 0===P?void 0:P.footerLink,href:c.url,target:"_blank",rel:"noopener noreferrer",children:[e("span",{children:"Visit Link"}),e(o,{className:s.visitLinkIcon,style:null===(C=c.customStyles)||void 0===C?void 0:C.visitLinkIcon})]})]})})]})};export{c 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:{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:{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 f=function(f){var h,S,R,g,q,P,w,B,b,N,A,j,D,k,E,U,x,W,T=f.loadingPartialRequirements,z=f.localUserStory,F=f.setLocalUserStory,I=f.onCraFlowDiffAgentAction,L=f.disableEditing,H=f.isCraflow,M=void 0===H||H,V=f.onCraAccept,G=f.onCraReject,J=l(!1),K=J[0],O=J[1],Q=l(""),X=Q[0],Y=Q[1],Z=y(),$=Z.customStyles;Z.segmentComponentConfig,o(function(){L&&O(!1)},[L]),o(function(){var e;Y(null===(e=null==z?void 0:z[0])||void 0===e?void 0:e.value)},[z]);if(T)return t("div",e({className:m.skeletonWrapper,style:null===(h=null==$?void 0:$.PartialRequirementContentStyles)||void 0===h?void 0:h.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 _=!X||""===X.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:K?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===(b=null==$?void 0:$.PartialRequirementContentStyles)||void 0===b?void 0:b.btnDivider}),t(p,e({title:_?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e({},null===(N=null==$?void 0:$.PartialRequirementContentStyles)||void 0===N?void 0:N.headerTooltip)}}},{children:t("span",{children:t("button",e({className:m.saveBtn,style:e(e(e({},null===(A=null==$?void 0:$.PartialRequirementContentStyles)||void 0===A?void 0:A.actionBtn),null===(j=null==$?void 0:$.PartialRequirementContentStyles)||void 0===j?void 0:j.saveBtn),{opacity:_?.5:1,cursor:_?"not-allowed":"pointer"}),onClick:function(){_||(F(function(t){var i=e(e({},t[0]),{value:v(X)});return null==I||I("accept",[i]),[i]}),O(!1))},disabled:_},{children:t(a,{size:16})}))})})),t("button",e({className:m.cancelBtn,style:e(e({},null===(D=null==$?void 0:$.PartialRequirementContentStyles)||void 0===D?void 0:D.actionBtn),null===(k=null==$?void 0:$.PartialRequirementContentStyles)||void 0===k?void 0:k.cancelBtn),onClick:function(){var e;Y(null===(e=null==z?void 0:z[0])||void 0===e?void 0:e.value),O(!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||O(!0)},disabled:L,"aria-label":"Edit requirement"},{children:t(r,{size:16})}))})}))})),t("div",K?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==z?void 0:z[0])||void 0===U?void 0:U.value)||"")||""),handleUpdateState:function(e,t){Y(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==z?void 0:z[0])||void 0===W?void 0:W.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:z,setCraUserStory:F,onCraFlowDiffAgentAction:I,displayActionButtons:!K},isCraflow:M,onCraAccept:V,onCraReject:G,customStyles:null==$?void 0:$.UserStoryWithCitationCustomStyles})}))]}))};export{f as PartialRequirementContent,f as default};
1
+ import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as l,useEffect as n}from"react";import{Pencil as o,Save as r,X as a}from"lucide-react";import{preprocessUserStoryForEdit as d,formatMarkdown as s,postprocessUserStoryAfterEdit as u}from"../../utils/user-story.utils.js";import v from"../userstory-with-citation/UserStoryWithCitation.js";import c from"./PartialRequirementContent.module.css.js";import{Tooltip as m}from"@mui/material";import{useRequirementAI as p}from"../RequirementAIWrapper/RequirementAIWrapper.js";import y from"../RichTextEditor/RichTextEditor.js";const C=({loadingPartialRequirements:C,localUserStory:h,setLocalUserStory:S,onCraFlowDiffAgentAction:R,disableEditing:g,isCraflow:q=!0,onCraAccept:f,onCraReject:P,CDNeededInChip:w})=>{var B,N,b,D,A,j,k,E,U,x,W,I,T,z,F,L,H,M;const[V,G]=l(!1),[J,K]=l(""),{customStyles:O,segmentComponentConfig:Q}=p();n(()=>{g&&G(!1)},[g]),n(()=>{var e;K(null===(e=null==h?void 0:h[0])||void 0===e?void 0:e.value)},[h]);if(C)return e("div",{className:c.skeletonWrapper,style:null===(B=null==O?void 0:O.PartialRequirementContentStyles)||void 0===B?void 0:B.skeletonWrapper,children:[1,2,3,4,5].map(t=>{var i;return e("div",{className:c.skeletonLine,style:null===(i=null==O?void 0:O.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},t)})});const X=!J||""===J.trim();return t("div",{className:c.wrapper,style:null===(N=null==O?void 0:O.PartialRequirementContentStyles)||void 0===N?void 0:N.wrapper,children:[e("div",{className:c.actionBar,style:null===(b=null==O?void 0:O.PartialRequirementContentStyles)||void 0===b?void 0:b.actionBar,children:V?t(i,{children:[t("span",{className:c.editingBadge,style:null===(k=null==O?void 0:O.PartialRequirementContentStyles)||void 0===k?void 0:k.editingBadge,children:[e("span",{className:c.editingDot,style:null===(E=null==O?void 0:O.PartialRequirementContentStyles)||void 0===E?void 0:E.editingDot}),"Editing"]}),e("div",{className:c.btnDivider,style:null===(U=null==O?void 0:O.PartialRequirementContentStyles)||void 0===U?void 0:U.btnDivider}),e(m,{title:X?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:{...null===(x=null==O?void 0:O.PartialRequirementContentStyles)||void 0===x?void 0:x.headerTooltip}}},children:e("span",{children:e("button",{className:c.saveBtn,style:{...null===(W=null==O?void 0:O.PartialRequirementContentStyles)||void 0===W?void 0:W.actionBtn,...null===(I=null==O?void 0:O.PartialRequirementContentStyles)||void 0===I?void 0:I.saveBtn,opacity:X?.5:1,cursor:X?"not-allowed":"pointer"},onClick:()=>{X||(S(e=>{const t={...e[0],value:u(J)};return null==R||R("accept",[t]),[t]}),G(!1))},disabled:X,children:e(r,{size:16})})})}),e("button",{className:c.cancelBtn,style:{...null===(T=null==O?void 0:O.PartialRequirementContentStyles)||void 0===T?void 0:T.actionBtn,...null===(z=null==O?void 0:O.PartialRequirementContentStyles)||void 0===z?void 0:z.cancelBtn},onClick:()=>{var e;K(null===(e=null==h?void 0:h[0])||void 0===e?void 0:e.value),G(!1)},title:"Discard changes","aria-label":"Discard changes",children:e(a,{size:16})})]}):e(m,{title:g?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:{...null===(D=null==O?void 0:O.PartialRequirementContentStyles)||void 0===D?void 0:D.headerTooltip}}},children:e("span",{children:e("button",{className:c.editBtn,style:{...null===(A=null==O?void 0:O.PartialRequirementContentStyles)||void 0===A?void 0:A.actionBtn,...null===(j=null==O?void 0:O.PartialRequirementContentStyles)||void 0===j?void 0:j.editBtn,opacity:g?.5:1,cursor:g?"not-allowed":"pointer"},onClick:()=>{g||G(!0)},disabled:g,"aria-label":"Edit requirement",children:e(o,{size:16})})})})}),e("div",V?{className:c.editorContainer,style:null===(F=null==O?void 0:O.PartialRequirementContentStyles)||void 0===F?void 0:F.editorContainer,children:e(y,{minHeight:"100%",height:"100%",type:"string",value:d(s((null===(L=null==h?void 0:h[0])||void 0===L?void 0:L.value)||"")||""),handleUpdateState:(e,t)=>{K(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}:{className:c.viewContainer,style:null===(H=null==O?void 0:O.PartialRequirementContentStyles)||void 0===H?void 0:H.viewContainer,children:e(v,{message:s((null===(M=null==h?void 0:h[0])||void 0===M?void 0:M.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:h,setCraUserStory:S,onCraFlowDiffAgentAction:R,displayActionButtons:!V},isCraflow:q,onCraAccept:f,onCraReject:P,customStyles:null==O?void 0:O.UserStoryWithCitationCustomStyles,CDNeededInChip:w})})]})};export{C as PartialRequirementContent,C 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 o}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as n,ChevronDown as r,Check as t,SquareArrowOutUpRight as a,Loader2 as s}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import u from"../../icons/CognitiveDecision.js";import{Tooltip as p}from"@mui/material";function m({isDefaultOpen:m,processItemId:v,isCompleted:g,mode:h,msg:y,type:f,id:C,aiReason:x,text:b,headerText:D,decisionStrength:N,statusUi:T,panelRef:I,onHandleSend:S,onRedirectClick:k,gapType:R,isGenerating:j=!1,customStyles:B,customIcons:W,cognitiveDecisionHeaders:P}){const[H,$]=l(m),A=(null==W?void 0:W.highConfidence)||e(u,{}),O=()=>{"cra"===h?null==S||S(`Discuss ambiguities on ${b}`,C):null==S||S(`Deep Dive into ${R} ${D}: ${b}`,C)};return i("div",{className:[d.outerWrapper,j?d.outerWrapperDisabled:""].join(" "),style:{...null==B?void 0:B.redirectionOuterWrapper,...j?null==B?void 0:B.redirectionOuterWrapperDisabled:{}},children:[i("div",{className:[d.card,j?d.cardDisabled:d.cardInteractive].join(" "),style:{...null==B?void 0:B.redirectionCard,...j?null==B?void 0:B.redirectionCardDisabled:null==B?void 0:B.redirectionCardInteractive},children:[i("div",{className:d.leftSide,style:null==B?void 0:B.redirectionLeftSide,children:[e(p,{title:D+" "+b,placement:"top",slotProps:{tooltip:{sx:{...null==B?void 0:B.headerTooltip}}},children:i("span",{className:d.textBlock,style:null==B?void 0:B.redirectionTextBlock,children:[D&&i("span",{className:d.headerText,style:null==B?void 0:B.redirectionHeaderText,children:[D,b?" ":""]}),b]})}),i("span",{onClick:e=>{e.stopPropagation(),j||$(!H)},className:[d.reasoningToggle,j?d.reasoningToggleDisabled:d.reasoningToggleActive].join(" "),style:{...null==B?void 0:B.reasoningToggle,...j?null==B?void 0:B.reasoningToggleDisabled:null==B?void 0:B.reasoningToggleActive},children:[A,e(H?n:r,{className:d.chevronIcon,style:null==B?void 0:B.chevronIcon})]})]}),g?e("div",{className:d.completeTickWrapper,style:null==B?void 0:B.completeTickWrapper,children:e(t,{color:(null==B?void 0:B.checkColor)||"green"})}):i(o,{children:["risk-gap"===h&&i("div",{className:d.rightSide,style:null==B?void 0:B.redirectionRightSide,children:[e("button",{disabled:j,className:[d.fixButton,j?d.fixButtonDisabled:""].join(" "),style:{...null==B?void 0:B.redirectionFixButton,...j?null==B?void 0:B.fixButtonDisabled:{}},onClick:e=>{e.stopPropagation(),j||O()},children:"Fix"}),e(a,{onClick:j?void 0:()=>{j||null==k||k({type:f,id:C,aiReason:x,msg:y,meta:{headerText:D,decisionStrength:N,text:b}})},size:18,className:[j?d.redirectIconDisabled:d.redirectIcon].join(" "),style:{...j?null==B?void 0:B.redirectIconDisabled:null==B?void 0:B.redirectIcon}})]}),"cra"===h&&!m&&e("div",{className:d.rightSide,style:null==B?void 0:B.redirectionRightSide,children:v===C?e("div",{className:d.loaderWrapper,style:null==B?void 0:B.loaderWrapper,children:e(s,{size:16,className:d.loaderIcon,color:"grey",style:{animation:"spin 1s linear infinite",...null==B?void 0:B.loaderIcon}})}):e("button",{className:[d.clarifyButton].join(" "),style:{color:j?"grey":"",...null==B?void 0:B.redirectionClarifyButton},disabled:j,onClick:e=>{e.stopPropagation(),O()},children:"Clarify"})})]})]}),H&&e(c,{label:"cra"===h?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==x?void 0:x.Reasoning)||"",gap:(null==x?void 0:x.Gap)||"",relevance_score:Number(null==x?void 0:x.Confidence_score),explanation:(null==x?void 0:x.explanation)||""},onSelectProceed:O,customStyles:null==B?void 0:B.aiReasoningStyles,customIcons:W,cognitiveDecisionHeaders:P})]})}export{m as CustomChatCrRedirection};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__rest as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useMemo as i,useEffect as a,Children as l,isValidElement as c}from"react";import{capitalize as d}from"lodash";import{GapFilterContentWrapper as s}from"./GapFilterContentWrapper.js";import{GapFilterItem as u}from"./GapFilterItem.js";import{CustomChatCrRedirection as g}from"./CustomChatCrRedirection.js";import{SirenIcon as p,WarningIcon as m,SupportIcon as f}from"./gapFilterSvgs.js";import v from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";var C=["critical","recommendation","warning"];function b(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function y(e){return l.toArray(e).filter(function(e){return c(e)}).filter(function(e){var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(function(e){var o,r,n=e.props,i=n.children,a=t(n,["children"]),l={};Object.keys(a).forEach(function(e){e.startsWith("data-")||(l[e]=a[e])});var c,d,s=(c=a,d={},Object.keys(c).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=c[e])}),d),u=a["decision-strength"],g=a["data-is-completed"];return{text:i,headerText:a.headertext,tags:a.tags,dataAttrs:s,decisionStrength:u,attrs:l,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:a.score,isCompleted:g,pendingCount:a.pendingcount,question:a.question,components:a.components,showFix:null!==(o=a.showfix)&&void 0!==o&&o,showRedirect:null!==(r=a.showredirect)&&void 0!==r&&r}})}var h={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}},x=function(t){var l=t.isDefaultOpen,c=t.processItemId,x=t.mode;t.node;var S=t.children,k=t.type,I=t.supportedmodes,R=void 0===I?"":I,A=t["decision-strength"],F=void 0===A?"":A,B=t.pendingdata,T=void 0===B?"":B,w=t.isGeneratingGap,G=void 0!==w&&w,D=t.selectedGapItemId,N=void 0===D?"":D,j=t.onItemSelect,E=t.onHandleSend,W=t.onModeAction,H=t.msg,O=t.panelRef,U=t.getAccordionState,q=t.setAccordionState,z=t.registerGapFilterBlockCount,L=t.getShowGapReviewButtonType,M=t.customStyles,_=t.customIcons,J=t.cognitiveDecisionHeaders,$=t.onRedirectClick,K=k,P=b(F),Q=n(function(){var e,t=null!==(e=null==U?void 0:U(K))&&void 0!==e?e:"";return"true"!==l||t?t:K}),V=Q[0],X=Q[1],Y=function(e){X(e),null==q||q(K,e)},Z=y(S),ee=i(function(){return Z.reduce(function(e,t){var o,r,n,i=null!==(o=t.tags)&&void 0!==o?o:"Uncategorized",a=null!==(n=null===(r=t.dataAttrs)||void 0===r?void 0:r.categoryid)&&void 0!==n?n:"1",l=e.find(function(e){return e.categoryName===i});return l||(l={categoryName:i,categoryId:a,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[])},[Z]),te={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:o(p,{}),label:"risk-gap"===x?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:o(m,{}),label:"risk-gap"===x?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:o(f,{}),label:"risk-gap"===x?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:o(f,{}),label:"",decisionStrength:""}},oe=i(function(){return e=K,C.includes(e)?{labelColor:te[K].labelColor,badgeBackgroundColor:te[K].badgeBackgroundColor,badgeTextColor:te[K].badgeTextColor,label:te[K].label,decisionStrength:P||te[K].decisionStrength}:{labelColor:te.default.labelColor,badgeBackgroundColor:te.default.badgeBackgroundColor,badgeTextColor:te.default.badgeTextColor,label:d(K),decisionStrength:P||""};var e},[K,P]);a(function(){null==z||z(K,Z.length)},[K,Z.length,z]);var re=function(t,o,r){if(void 0===r&&(r={}),!G){var n="".concat(ee[t].categoryId,"-").concat(o);null==j||j(n);var i=e(e({},ee[t].items[o].dataAttrs),r);null==W||W(R,i)}};return L&&L(),o(s,e({mode:x,type:K,config:oe,count:Z.length,handleReviewClick:function(){Z.length>0&&Y(K)},openAccordion:V,onAccordionChange:function(e){Y(V===e?"":e)},shouldShowReviewButton:!1,pendingData:T,customStyles:M},{children:ee.map(function(t,n){return r("div",e({className:v.categoryGroup,style:null==M?void 0:M.categoryGroup},{children:["gapfilteritem"===t.type&&"Uncategorized"!==t.categoryName&&o("p",e({className:v.categoryLabel,style:null==M?void 0:M.categoryLabel},{children:t.categoryName})),t.items.map(function(r,i){var a,l,d,s,p=r.attrs||{},m=null===(a=r.dataAttrs)||void 0===a?void 0:a["cognitive-reasoning"],f=p.id||(null===(l=r.dataAttrs)||void 0===l?void 0:l.id)||"",C="I"===f[0]?"UI_REF":"CHAT_REF",b=null===(d=null==H?void 0:H.contextAwareAgentReasoning)||void 0===d?void 0:d[m],y=r.isCompleted,S="true"===p.isDefaultOpen||"true"===p.isdefaultopen;return"gapfilteritem"===r.type?o("div",e({className:[v.gapFilterItemWrapper,"Uncategorized"!==t.categoryName?v.gapFilterItemWrapperIndented:""].join(" "),style:null==M?void 0:M.blockContainer},{children:o(u,{isDefaultOpen:S,isCompleted:y,mode:x,index:i,isSelected:N==="".concat(t.categoryId,"-").concat(i),onClick:function(){return re(n,i)},onFixClick:function(){return re(n,i,{triggerFrom:"fix"})},onRedirect:function(){return re(n,i,{triggerFrom:"redirect"})},item:r,isGenerating:G,aiReason:b,panelRef:null!=O?O:{current:null},id:m,customStyles:M,customIcons:_,cognitiveDecisionHeaders:J})}),i):o("div",e({className:v.crRedirectionGroup,style:null==M?void 0:M.crRedirectionGroup},{children:o("div",e({className:v.crRedirectionInner,style:null==M?void 0:M.crRedirectionInner},{children:o(g,{isDefaultOpen:S,processItemId:c,isCompleted:y,mode:x,msg:H,type:C,text:r.text,headerText:r.headerText,decisionStrength:r.decisionStrength,id:f,gapType:K,onHandleSend:E,isGenerating:G,aiReason:b,onRedirectClick:$,statusUi:null!==(s=h[K])&&void 0!==s?s:h.recommendation,panelRef:null!=O?O:{current:null},customStyles:M,customIcons:_,cognitiveDecisionHeaders:J})}))}),i)})]}),"".concat(t.categoryName,"-").concat(n))})}))};export{x as GapFilterBlock,b as normalizeDecisionStrength};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as o,useMemo as r,useEffect as i,Children as n,isValidElement as a}from"react";import{capitalize as l}from"lodash";import{GapFilterContentWrapper as d}from"./GapFilterContentWrapper.js";import{GapFilterItem as c}from"./GapFilterItem.js";import{CustomChatCrRedirection as s}from"./CustomChatCrRedirection.js";import{SirenIcon as g,WarningIcon as u,SupportIcon as p}from"./gapFilterSvgs.js";import m from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";const C=["critical","recommendation","warning"];function b(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function f(e){return n.toArray(e).filter(e=>a(e)).filter(e=>{var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(e=>{var t,o;const{children:r,...i}=e.props,n={};Object.keys(i).forEach(e=>{e.startsWith("data-")||(n[e]=i[e])});const a=function(e){const t={};return Object.keys(e).forEach(o=>{o.startsWith("data-")&&(t[o.replace(/^data-/,"")]=e[o])}),t}(i),l=i["decision-strength"],d=i["data-is-completed"];return{text:r,headerText:i.headertext,tags:i.tags,dataAttrs:a,decisionStrength:l,attrs:n,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:i.score,isCompleted:d,pendingCount:i.pendingcount,question:i.question,components:i.components,showFix:null!==(t=i.showfix)&&void 0!==t&&t,showRedirect:null!==(o=i.showredirect)&&void 0!==o&&o}})}const y={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}},h=({isDefaultOpen:n,processItemId:a,mode:h,node:v,children:x,type:S,supportedmodes:k="","decision-strength":I="",pendingdata:R="",isGeneratingGap:A=!1,selectedGapItemId:F="",onItemSelect:B,onHandleSend:T,onModeAction:w,msg:G,panelRef:D,getAccordionState:N,setAccordionState:j,registerGapFilterBlockCount:E,getShowGapReviewButtonType:W,customStyles:$,customIcons:H,cognitiveDecisionHeaders:O,onRedirectClick:U})=>{const q=S,z=b(I),[L,M]=o(()=>{var e;const t=null!==(e=null==N?void 0:N(q))&&void 0!==e?e:"";return"true"!==n||t?t:q}),_=e=>{M(e),null==j||j(q,e)},J=f(x),K=r(()=>J.reduce((e,t)=>{var o,r,i;const n=null!==(o=t.tags)&&void 0!==o?o:"Uncategorized",a=null!==(i=null===(r=t.dataAttrs)||void 0===r?void 0:r.categoryid)&&void 0!==i?i:"1";let l=e.find(e=>e.categoryName===n);return l||(l={categoryName:n,categoryId:a,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[]),[J]),P={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:e(g,{}),label:"risk-gap"===h?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:e(u,{}),label:"risk-gap"===h?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:e(p,{}),label:"risk-gap"===h?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:e(p,{}),label:"",decisionStrength:""}},Q=r(()=>{return e=q,C.includes(e)?{labelColor:P[q].labelColor,badgeBackgroundColor:P[q].badgeBackgroundColor,badgeTextColor:P[q].badgeTextColor,label:P[q].label,decisionStrength:z||P[q].decisionStrength}:{labelColor:P.default.labelColor,badgeBackgroundColor:P.default.badgeBackgroundColor,badgeTextColor:P.default.badgeTextColor,label:l(q),decisionStrength:z||""};var e},[q,z]);i(()=>{null==E||E(q,J.length)},[q,J.length,E]);const V=(e,t,o={})=>{if(A)return;const r=`${K[e].categoryId}-${t}`;null==B||B(r);const i={...K[e].items[t].dataAttrs,...o};null==w||w(k,i)};return W&&W(),e(d,{mode:h,type:q,config:Q,count:J.length,handleReviewClick:()=>{J.length>0&&_(q)},openAccordion:L,onAccordionChange:e=>{_(L===e?"":e)},shouldShowReviewButton:!1,pendingData:R,customStyles:$,children:K.map((o,r)=>t("div",{className:m.categoryGroup,style:null==$?void 0:$.categoryGroup,children:["gapfilteritem"===o.type&&"Uncategorized"!==o.categoryName&&e("p",{className:m.categoryLabel,style:null==$?void 0:$.categoryLabel,children:o.categoryName}),o.items.map((t,i)=>{var n,l,d,g;const u=t.attrs||{},p=null===(n=t.dataAttrs)||void 0===n?void 0:n["cognitive-reasoning"],C=u.id||(null===(l=t.dataAttrs)||void 0===l?void 0:l.id)||"",b="I"===C[0]?"UI_REF":"CHAT_REF",f=null===(d=null==G?void 0:G.contextAwareAgentReasoning)||void 0===d?void 0:d[p],v=t.isCompleted,x="true"===u.isDefaultOpen||"true"===u.isdefaultopen;return"gapfilteritem"===t.type?e("div",{className:[m.gapFilterItemWrapper,"Uncategorized"!==o.categoryName?m.gapFilterItemWrapperIndented:""].join(" "),style:null==$?void 0:$.blockContainer,children:e(c,{isDefaultOpen:x,isCompleted:v,mode:h,index:i,isSelected:F===`${o.categoryId}-${i}`,onClick:()=>V(r,i),onFixClick:()=>V(r,i,{triggerFrom:"fix"}),onRedirect:()=>V(r,i,{triggerFrom:"redirect"}),item:t,isGenerating:A,aiReason:f,panelRef:null!=D?D:{current:null},id:p,customStyles:$,customIcons:H,cognitiveDecisionHeaders:O})},i):e("div",{className:m.crRedirectionGroup,style:null==$?void 0:$.crRedirectionGroup,children:e("div",{className:m.crRedirectionInner,style:null==$?void 0:$.crRedirectionInner,children:e(s,{isDefaultOpen:x,processItemId:a,isCompleted:v,mode:h,msg:G,type:b,text:t.text,headerText:t.headerText,decisionStrength:t.decisionStrength,id:C,gapType:q,onHandleSend:T,isGenerating:A,aiReason:f,onRedirectClick:U,statusUi:null!==(g=y[q])&&void 0!==g?g:y.recommendation,panelRef:null!=D?D:{current:null},customStyles:$,customIcons:H,cognitiveDecisionHeaders:O})})},i)})]},`${o.categoryName}-${r}`))})};export{h as GapFilterBlock,b as normalizeDecisionStrength};
2
2
  //# sourceMappingURL=GapFilterBlock.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{Accordion as i,AccordionItem as o,AccordionTrigger as l,AccordionContent as t}from"../../shared/Accordian.js";import{Sparkles as c}from"lucide-react";import a from"./GapFilterContentWrapper.module.css.js";var d=function(d){var s=d.mode,g=d.type,u=d.config,m=d.count,h=d.openAccordion,v=d.children,p=d.shouldShowReviewButton,y=void 0!==p&&p,C=d.onAccordionChange;d.handleReviewClick;var f=d.pendingData,N=d.customStyles,b=function(){switch(g){case"critical":return null==N?void 0:N.triggerLabelCritical;case"warning":return null==N?void 0:N.triggerLabelWarning;case"recommendation":return null==N?void 0:N.triggerLabelRecommendation;default:return{}}};return n(i,e({type:"single",collapsible:!0,className:a.accordion,value:h,onValueChange:function(e){return C(e)},style:null==N?void 0:N.accordion},{children:r(o,e({value:g,className:a.accordionItem,style:null==N?void 0:N.accordionItem},{children:[n(l,e({chevronPosition:"end",className:a.accordionTrigger,hideChevron:y,style:null==N?void 0:N.accordionTrigger},{children:r("div",e({className:a.triggerInner,style:null==N?void 0:N.triggerInner},{children:[r("div",e({className:a.triggerLeft,style:null==N?void 0:N.triggerLeft},{children:[r("p",e({className:a.triggerLabel,style:e({color:u.labelColor},b())},{children:[u.label,r("span",e({className:a.triggerLabelCount,style:b()},{children:["(",m,")"]}))]})),f.length>0&&r("span",e({className:a.triggerPending,style:null==N?void 0:N.triggerPending},{children:["(",f,")"]}))]})),"risk-gap"===s&&n("div",e({className:a.triggerRight,style:null==N?void 0:N.triggerRight},{children:r("p",e({className:a.decisionStrengthBadge,style:e({backgroundColor:u.badgeBackgroundColor,color:u.badgeTextColor},function(){switch(g){case"critical":return null==N?void 0:N.decisionStrengthBadgeCritical;case"warning":return null==N?void 0:N.decisionStrengthBadgeWarning;case"recommendation":return null==N?void 0:N.decisionStrengthBadgeRecommendation;default:return{}}}())},{children:[n(c,{className:a.decisionStrengthIcon,style:null==N?void 0:N.decisionStrengthIcon}),u.decisionStrength]}))}))]}))})),n(t,e({className:a.accordionContent,style:null==N?void 0:N.accordionContent},{children:n("div",e({className:a.accordionContentInner,style:null==N?void 0:N.accordionContentInner},{children:v}))}))]}))}))};export{d as GapFilterContentWrapper};
1
+ import{jsx as e,jsxs as n}from"react/jsx-runtime";import{Accordion as r,AccordionItem as i,AccordionTrigger as l,AccordionContent as o}from"../../shared/Accordian.js";import{Sparkles as t}from"lucide-react";import c from"./GapFilterContentWrapper.module.css.js";const a=({mode:a,type:d,config:s,count:g,openAccordion:u,children:m,shouldShowReviewButton:h=!1,onAccordionChange:v,handleReviewClick:p,pendingData:y,customStyles:C})=>{const N=()=>{switch(d){case"critical":return null==C?void 0:C.triggerLabelCritical;case"warning":return null==C?void 0:C.triggerLabelWarning;case"recommendation":return null==C?void 0:C.triggerLabelRecommendation;default:return{}}};return e(r,{type:"single",collapsible:!0,className:c.accordion,value:u,onValueChange:e=>v(e),style:null==C?void 0:C.accordion,children:n(i,{value:d,className:c.accordionItem,style:null==C?void 0:C.accordionItem,children:[e(l,{chevronPosition:"end",className:c.accordionTrigger,hideChevron:h,style:null==C?void 0:C.accordionTrigger,children:n("div",{className:c.triggerInner,style:null==C?void 0:C.triggerInner,children:[n("div",{className:c.triggerLeft,style:null==C?void 0:C.triggerLeft,children:[n("p",{className:c.triggerLabel,style:{color:s.labelColor,...N()},children:[s.label,n("span",{className:c.triggerLabelCount,style:N(),children:["(",g,")"]})]}),y.length>0&&n("span",{className:c.triggerPending,style:null==C?void 0:C.triggerPending,children:["(",y,")"]})]}),"risk-gap"===a&&e("div",{className:c.triggerRight,style:null==C?void 0:C.triggerRight,children:n("p",{className:c.decisionStrengthBadge,style:{backgroundColor:s.badgeBackgroundColor,color:s.badgeTextColor,...(()=>{switch(d){case"critical":return null==C?void 0:C.decisionStrengthBadgeCritical;case"warning":return null==C?void 0:C.decisionStrengthBadgeWarning;case"recommendation":return null==C?void 0:C.decisionStrengthBadgeRecommendation;default:return{}}})()},children:[e(t,{className:c.decisionStrengthIcon,style:null==C?void 0:C.decisionStrengthIcon}),s.decisionStrength]})})]})}),e(o,{className:c.accordionContent,style:null==C?void 0:C.accordionContent,children:e("div",{className:c.accordionContentInner,style:null==C?void 0:C.accordionContentInner,children:m})})]})})};export{a as GapFilterContentWrapper};
2
2
  //# sourceMappingURL=GapFilterContentWrapper.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{SquareArrowOutUpRight as t,ChevronUp as n,ChevronDown as l}from"lucide-react";import{useState as a,useMemo as s}from"react";import{Tooltip as r}from"@mui/material";import c from"./GapFilterItem.module.css.js";import d from"../ai-reasoning/AiReasoningCitationContent.js";import m from"../../icons/CognitiveDecision.js";var u=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:c.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:c.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:c.scoreBadgeLow}},p=function(p){var v=p.isDefaultOpen;p.isCompleted;var g=p.mode,f=p.index,h=p.isSelected,x=p.onClick,N=p.item,C=p.onFixClick,y=p.onRedirect,R=p.aiReason;p.panelRef;var T=p.id,b=p.isGenerating,S=void 0!==b&&b,w=p.customStyles,B=p.customIcons,k=p.cognitiveDecisionHeaders,I=a(v),D=I[0],j=I[1],H=(null==B?void 0:B.highConfidence)||o(m,{});s(function(){return N.components?N.components.split("||"):[]},[N.components]);var G=s(function(){return N.score&&isNaN(parseInt(N.score))?0:N.score?parseInt(N.score):0},[N.score]),q=u(G);return o("div",e({className:c.outerWrapper,onClick:x,style:null==w?void 0:w.itemOuterWrapper},{children:i("div",e({className:c.innerCard,style:null==w?void 0:w.itemInnerCard},{children:[i("div",e({className:c.contentBlock,style:null==w?void 0:w.contentBlock},{children:[i("div",e({className:c.topRow,style:null==w?void 0:w.itemTopRow},{children:[o("div",e({className:[c.questionText,h?c.questionTextSelected:c.questionTextDefault].join(" "),style:e(e({},null==w?void 0:w.itemQuestionText),h?null==w?void 0:w.itemQuestionTextSelected:null==w?void 0:w.itemQuestionTextDefault)},{children:o(r,e({title:N.question||"",placement:"top"},{children:o("span",{className:c.questionSpan,style:null==w?void 0:w.itemQuestionSpan})}))})),i("div",e({className:c.actionsRow,style:null==w?void 0:w.itemActionsRow},{children:[G>0&&o("div",e({className:[c.scoreBadge,q.className].join(" "),style:e(e(e(e({},null==w?void 0:w.itemScoreBadge),G>90?null==w?void 0:w.itemScoreBadgeHigh:{}),G>=70&&G<=90?null==w?void 0:w.itemScoreBadgeMedium:{}),G<70?null==w?void 0:w.itemScoreBadgeLow:{})},{children:"".concat(G,"%")})),N.showFix&&o("button",e({className:c.fixButton,onClick:function(e){e.stopPropagation(),C()},style:null==w?void 0:w.itemFixButton},{children:"Fix"})),N.showRedirect&&o(t,{color:"#3b82f6",size:14,className:c.redirectIcon,onClick:function(e){e.stopPropagation(),y()},style:null==w?void 0:w.itemRedirectIcon})]}))]})),i("div",e({className:[c.bottomRow,h?c.bottomRowSelected:c.bottomRowDefault].join(" "),style:e(e({},null==w?void 0:w.itemBottomRow),h?null==w?void 0:w.bottomRowSelected:null==w?void 0:w.bottomRowDefault)},{children:[i("span",e({className:c.gapTextSpan,style:null==w?void 0:w.itemGapText},{children:[(null==N?void 0:N.headerText)?o("span",e({className:c.gapHeaderText,style:null==w?void 0:w.itemGapHeaderText},{children:N.headerText})):i("span",e({className:c.gapHeaderText,style:null==w?void 0:w.itemGapHeaderText},{children:["Gap ",f+1,"."]}))," ",N.text]})),T&&i("span",e({onClick:function(e){e.stopPropagation(),S||j(!D)},className:[c.reasoningToggle,S?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:null==w?void 0:w.itemReasoningToggle},{children:[H,o(D?n:l,{className:c.chevronIcon,style:null==w?void 0:w.chevronIcon})]}))]}))]})),D&&o(d,{label:"cra"===g?"Clarify":"Select this option",aiReason:{id:"1",reason:R.Reasoning||"",gap:R.Gap||"",relevance_score:Number(R.Confidence_score),explanation:R.explanation||""},onSelectProceed:C,customStyles:null==w?void 0:w.aiReasoningStyles,customIcons:B,cognitiveDecisionHeaders:k})]}))}))};export{p as GapFilterItem,u as getScoreColorStyles};
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import{SquareArrowOutUpRight as i,ChevronUp as t,ChevronDown as l}from"lucide-react";import{useState as n,useMemo as s}from"react";import{Tooltip as a}from"@mui/material";import c from"./GapFilterItem.module.css.js";import r from"../ai-reasoning/AiReasoningCitationContent.js";import d from"../../icons/CognitiveDecision.js";const m=e=>e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:c.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:c.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:c.scoreBadgeLow},u=({isDefaultOpen:u,isCompleted:p,mode:v,index:g,isSelected:f,onClick:h,item:x,onFixClick:N,onRedirect:C,aiReason:R,panelRef:y,id:T,isGenerating:b=!1,customStyles:S,customIcons:w,cognitiveDecisionHeaders:B})=>{const[k,I]=n(u),D=(null==w?void 0:w.highConfidence)||e(d,{});s(()=>x.components?x.components.split("||"):[],[x.components]);const j=s(()=>x.score&&isNaN(parseInt(x.score))?0:x.score?parseInt(x.score):0,[x.score]),H=m(j);return e("div",{className:c.outerWrapper,onClick:h,style:null==S?void 0:S.itemOuterWrapper,children:o("div",{className:c.innerCard,style:null==S?void 0:S.itemInnerCard,children:[o("div",{className:c.contentBlock,style:null==S?void 0:S.contentBlock,children:[o("div",{className:c.topRow,style:null==S?void 0:S.itemTopRow,children:[e("div",{className:[c.questionText,f?c.questionTextSelected:c.questionTextDefault].join(" "),style:{...null==S?void 0:S.itemQuestionText,...f?null==S?void 0:S.itemQuestionTextSelected:null==S?void 0:S.itemQuestionTextDefault},children:e(a,{title:x.question||"",placement:"top",children:e("span",{className:c.questionSpan,style:null==S?void 0:S.itemQuestionSpan})})}),o("div",{className:c.actionsRow,style:null==S?void 0:S.itemActionsRow,children:[j>0&&e("div",{className:[c.scoreBadge,H.className].join(" "),style:{...null==S?void 0:S.itemScoreBadge,...j>90?null==S?void 0:S.itemScoreBadgeHigh:{},...j>=70&&j<=90?null==S?void 0:S.itemScoreBadgeMedium:{},...j<70?null==S?void 0:S.itemScoreBadgeLow:{}},children:`${j}%`}),x.showFix&&e("button",{className:c.fixButton,onClick:e=>{e.stopPropagation(),N()},style:null==S?void 0:S.itemFixButton,children:"Fix"}),x.showRedirect&&e(i,{color:"#3b82f6",size:14,className:c.redirectIcon,onClick:e=>{e.stopPropagation(),C()},style:null==S?void 0:S.itemRedirectIcon})]})]}),o("div",{className:[c.bottomRow,f?c.bottomRowSelected:c.bottomRowDefault].join(" "),style:f?{...null==S?void 0:S.itemBottomRow,...null==S?void 0:S.bottomRowSelected}:{...null==S?void 0:S.itemBottomRow,...null==S?void 0:S.bottomRowDefault},children:[o("span",{className:c.gapTextSpan,style:null==S?void 0:S.itemGapText,children:[(null==x?void 0:x.headerText)?e("span",{className:c.gapHeaderText,style:null==S?void 0:S.itemGapHeaderText,children:x.headerText}):o("span",{className:c.gapHeaderText,style:null==S?void 0:S.itemGapHeaderText,children:["Gap ",g+1,"."]})," ",x.text]}),T&&o("span",{onClick:e=>{e.stopPropagation(),b||I(!k)},className:[c.reasoningToggle,b?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:null==S?void 0:S.itemReasoningToggle,children:[D,e(k?t:l,{className:c.chevronIcon,style:null==S?void 0:S.chevronIcon})]})]})]}),k&&e(r,{label:"cra"===v?"Clarify":"Select this option",aiReason:{id:"1",reason:R.Reasoning||"",gap:R.Gap||"",relevance_score:Number(R.Confidence_score),explanation:R.explanation||""},onSelectProceed:N,customStyles:null==S?void 0:S.aiReasoningStyles,customIcons:w,cognitiveDecisionHeaders:B})]})})};export{u as GapFilterItem,m as getScoreColorStyles};
2
2
  //# sourceMappingURL=GapFilterItem.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as i}from"tslib";import{jsx as C,jsxs as t}from"react/jsx-runtime";var e=function(t){var e=t.width,h=void 0===e?12:e,r=t.height;return C("div",{children:C("svg",i({xmlns:"http://www.w3.org/2000/svg",width:h,height:void 0===r?12:r,viewBox:"0 0 12 12",fill:"none"},{children:C("path",{d:"M2.57129 9.58112H3.87643C4.0466 9.58112 4.21573 9.60137 4.38069 9.64187L5.75973 9.97698C6.05896 10.0499 6.37068 10.057 6.67302 9.99825L8.19778 9.7016C8.60056 9.62314 8.97108 9.43027 9.26146 9.1478L10.3402 8.0984C10.6483 7.79922 10.6483 7.31376 10.3402 7.01408C10.0629 6.74426 9.62365 6.71389 9.30985 6.9427L8.05259 7.85997C7.87253 7.99159 7.65344 8.06246 7.42811 8.06246H6.21404L6.98682 8.06243C7.42239 8.06243 7.77522 7.71921 7.77522 7.2955V7.14212C7.77522 6.79029 7.52907 6.48352 7.17833 6.39848L5.98559 6.10842C5.79148 6.06134 5.59269 6.03754 5.39286 6.03754C4.91045 6.03754 4.03724 6.43695 4.03724 6.43695L2.57129 7.04999M0.571289 6.83754L0.571289 9.73754C0.571289 10.0176 0.571289 10.1576 0.625786 10.2645C0.673722 10.3586 0.750213 10.4351 0.844294 10.483C0.951249 10.5375 1.09126 10.5375 1.37129 10.5375H1.77129C2.05131 10.5375 2.19133 10.5375 2.29828 10.483C2.39237 10.4351 2.46886 10.3586 2.51679 10.2645C2.57129 10.1576 2.57129 10.0176 2.57129 9.73754V6.83754C2.57129 6.55752 2.57129 6.41751 2.51679 6.31055C2.46886 6.21647 2.39237 6.13998 2.29828 6.09204C2.19133 6.03755 2.05132 6.03754 1.77129 6.03754H1.37129C1.09126 6.03754 0.95125 6.03754 0.844294 6.09204C0.750213 6.13998 0.673723 6.21647 0.625786 6.31055C0.571289 6.4175 0.571289 6.55752 0.571289 6.83754ZM8.16697 1.33367C7.86857 0.709244 7.18058 0.378438 6.51151 0.697732C5.84243 1.01703 5.55739 1.77424 5.83752 2.43896C6.01064 2.84977 6.50666 3.64755 6.86033 4.19706C6.99101 4.4001 7.05635 4.50162 7.15179 4.56101C7.23364 4.61195 7.33612 4.63941 7.43248 4.63622C7.54483 4.63251 7.65217 4.57726 7.86686 4.46676C8.44791 4.1677 9.27636 3.72482 9.6317 3.45561C10.2067 3.02 10.3491 2.21933 9.91862 1.61067C9.48816 1.002 8.73762 0.942105 8.16697 1.33367Z",stroke:"#15803D","stroke-width":"1.14286","stroke-linecap":"round","stroke-linejoin":"round"})}))})},h=function(e){var h=e.width,r=void 0===h?12:h,l=e.height;return C("div",{children:t("svg",i({xmlns:"http://www.w3.org/2000/svg",width:r,height:void 0===l?12:l,viewBox:"0 0 12 12",fill:"none"},{children:[C("g",i({"clip-path":"url(#clip0_1100_58099)"},{children:C("path",{d:"M1.7278 9.80469C1.7278 10.0417 1.91932 10.2333 2.15638 10.2333H9.84388C10.0809 10.2333 10.2724 10.0417 10.2724 9.80469V6.68415C10.2724 4.32433 8.35995 2.41183 6.00013 2.41183C3.64031 2.41183 1.7278 4.32433 1.7278 6.68415V9.80469ZM2.69209 6.68415C2.69209 4.85737 4.17334 3.37612 6.00013 3.37612C7.82691 3.37612 9.30816 4.85737 9.30816 6.68415V9.26897H4.5537V6.97879C4.5537 6.90513 4.49343 6.84487 4.41977 6.84487H3.83048C3.75682 6.84487 3.69655 6.90513 3.69655 6.97879V9.26897H2.69209V6.68415ZM2.04789 3.30246L2.57825 2.7721C2.61977 2.73058 2.61977 2.66228 2.57825 2.62076L1.66888 1.71138C1.64874 1.69144 1.62155 1.68026 1.59321 1.68026C1.56487 1.68026 1.53767 1.69144 1.51754 1.71138L0.98718 2.24174C0.96724 2.26188 0.956055 2.28907 0.956055 2.31741C0.956055 2.34575 0.96724 2.37294 0.98718 2.39308L1.89655 3.30246C1.93807 3.34397 2.00504 3.34397 2.04789 3.30246ZM11.0158 2.24174L10.4854 1.71138C10.4653 1.69144 10.4381 1.68026 10.4097 1.68026C10.3814 1.68026 10.3542 1.69144 10.3341 1.71138L9.42468 2.62076C9.40474 2.6409 9.39355 2.66809 9.39355 2.69643C9.39355 2.72477 9.40474 2.75196 9.42468 2.7721L9.95504 3.30246C9.99656 3.34397 10.0649 3.34397 10.1064 3.30246L11.0158 2.39308C11.0573 2.35022 11.0573 2.28326 11.0158 2.24174ZM10.2858 11.0904H1.71441C1.47736 11.0904 1.28584 11.2819 1.28584 11.519V11.8404C1.28584 11.8993 1.33405 11.9475 1.39298 11.9475H10.6073C10.6662 11.9475 10.7144 11.8993 10.7144 11.8404V11.519C10.7144 11.2819 10.5229 11.0904 10.2858 11.0904ZM5.62513 1.55469H6.37513C6.43405 1.55469 6.48227 1.50647 6.48227 1.44754V0.16183C6.48227 0.102902 6.43405 0.0546875 6.37513 0.0546875H5.62513C5.5662 0.0546875 5.51798 0.102902 5.51798 0.16183V1.44754C5.51798 1.50647 5.5662 1.55469 5.62513 1.55469Z",fill:"#B91C1C"})})),C("defs",{children:C("clipPath",i({id:"clip0_1100_58099"},{children:C("rect",{width:"12",height:"12",fill:"white"})}))})]}))})},r=function(e){var h=e.width,r=void 0===h?12:h,l=e.height;return t("svg",i({xmlns:"http://www.w3.org/2000/svg",width:r,height:void 0===l?12:l,viewBox:"0 0 12 12",fill:"none"},{children:[C("g",i({"clip-path":"url(#clip0_1100_58115)"},{children:C("path",{d:"M5.99988 4.49816V6.49816M5.99988 8.49816H6.00488M5.30754 1.94402L1.19509 9.04733C0.966991 9.44133 0.85294 9.63833 0.869797 9.80001C0.884499 9.94103 0.958384 10.0692 1.07306 10.1526C1.20454 10.2482 1.43217 10.2482 1.88744 10.2482H10.1123C10.5676 10.2482 10.7952 10.2482 10.9267 10.1526C11.0414 10.0692 11.1153 9.94103 11.13 9.80001C11.1468 9.63833 11.0328 9.44133 10.8047 9.04733L6.69222 1.94402C6.46493 1.55144 6.35129 1.35515 6.20303 1.28922C6.0737 1.23172 5.92606 1.23172 5.79673 1.28922C5.64846 1.35515 5.53482 1.55144 5.30754 1.94402Z",stroke:"#A16207","stroke-width":"1.14286","stroke-linecap":"round","stroke-linejoin":"round"})})),C("defs",{children:C("clipPath",i({id:"clip0_1100_58115"},{children:C("rect",{width:"12",height:"12",fill:"white"})}))})]}))};export{h as SirenIcon,e as SupportIcon,r as WarningIcon};
1
+ import{jsx as C,jsxs as i}from"react/jsx-runtime";const h=({width:i=12,height:h=12})=>C("div",{children:C("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:h,viewBox:"0 0 12 12",fill:"none",children:C("path",{d:"M2.57129 9.58112H3.87643C4.0466 9.58112 4.21573 9.60137 4.38069 9.64187L5.75973 9.97698C6.05896 10.0499 6.37068 10.057 6.67302 9.99825L8.19778 9.7016C8.60056 9.62314 8.97108 9.43027 9.26146 9.1478L10.3402 8.0984C10.6483 7.79922 10.6483 7.31376 10.3402 7.01408C10.0629 6.74426 9.62365 6.71389 9.30985 6.9427L8.05259 7.85997C7.87253 7.99159 7.65344 8.06246 7.42811 8.06246H6.21404L6.98682 8.06243C7.42239 8.06243 7.77522 7.71921 7.77522 7.2955V7.14212C7.77522 6.79029 7.52907 6.48352 7.17833 6.39848L5.98559 6.10842C5.79148 6.06134 5.59269 6.03754 5.39286 6.03754C4.91045 6.03754 4.03724 6.43695 4.03724 6.43695L2.57129 7.04999M0.571289 6.83754L0.571289 9.73754C0.571289 10.0176 0.571289 10.1576 0.625786 10.2645C0.673722 10.3586 0.750213 10.4351 0.844294 10.483C0.951249 10.5375 1.09126 10.5375 1.37129 10.5375H1.77129C2.05131 10.5375 2.19133 10.5375 2.29828 10.483C2.39237 10.4351 2.46886 10.3586 2.51679 10.2645C2.57129 10.1576 2.57129 10.0176 2.57129 9.73754V6.83754C2.57129 6.55752 2.57129 6.41751 2.51679 6.31055C2.46886 6.21647 2.39237 6.13998 2.29828 6.09204C2.19133 6.03755 2.05132 6.03754 1.77129 6.03754H1.37129C1.09126 6.03754 0.95125 6.03754 0.844294 6.09204C0.750213 6.13998 0.673723 6.21647 0.625786 6.31055C0.571289 6.4175 0.571289 6.55752 0.571289 6.83754ZM8.16697 1.33367C7.86857 0.709244 7.18058 0.378438 6.51151 0.697732C5.84243 1.01703 5.55739 1.77424 5.83752 2.43896C6.01064 2.84977 6.50666 3.64755 6.86033 4.19706C6.99101 4.4001 7.05635 4.50162 7.15179 4.56101C7.23364 4.61195 7.33612 4.63941 7.43248 4.63622C7.54483 4.63251 7.65217 4.57726 7.86686 4.46676C8.44791 4.1677 9.27636 3.72482 9.6317 3.45561C10.2067 3.02 10.3491 2.21933 9.91862 1.61067C9.48816 1.002 8.73762 0.942105 8.16697 1.33367Z",stroke:"#15803D","stroke-width":"1.14286","stroke-linecap":"round","stroke-linejoin":"round"})})}),t=({width:h=12,height:t=12})=>C("div",{children:i("svg",{xmlns:"http://www.w3.org/2000/svg",width:h,height:t,viewBox:"0 0 12 12",fill:"none",children:[C("g",{"clip-path":"url(#clip0_1100_58099)",children:C("path",{d:"M1.7278 9.80469C1.7278 10.0417 1.91932 10.2333 2.15638 10.2333H9.84388C10.0809 10.2333 10.2724 10.0417 10.2724 9.80469V6.68415C10.2724 4.32433 8.35995 2.41183 6.00013 2.41183C3.64031 2.41183 1.7278 4.32433 1.7278 6.68415V9.80469ZM2.69209 6.68415C2.69209 4.85737 4.17334 3.37612 6.00013 3.37612C7.82691 3.37612 9.30816 4.85737 9.30816 6.68415V9.26897H4.5537V6.97879C4.5537 6.90513 4.49343 6.84487 4.41977 6.84487H3.83048C3.75682 6.84487 3.69655 6.90513 3.69655 6.97879V9.26897H2.69209V6.68415ZM2.04789 3.30246L2.57825 2.7721C2.61977 2.73058 2.61977 2.66228 2.57825 2.62076L1.66888 1.71138C1.64874 1.69144 1.62155 1.68026 1.59321 1.68026C1.56487 1.68026 1.53767 1.69144 1.51754 1.71138L0.98718 2.24174C0.96724 2.26188 0.956055 2.28907 0.956055 2.31741C0.956055 2.34575 0.96724 2.37294 0.98718 2.39308L1.89655 3.30246C1.93807 3.34397 2.00504 3.34397 2.04789 3.30246ZM11.0158 2.24174L10.4854 1.71138C10.4653 1.69144 10.4381 1.68026 10.4097 1.68026C10.3814 1.68026 10.3542 1.69144 10.3341 1.71138L9.42468 2.62076C9.40474 2.6409 9.39355 2.66809 9.39355 2.69643C9.39355 2.72477 9.40474 2.75196 9.42468 2.7721L9.95504 3.30246C9.99656 3.34397 10.0649 3.34397 10.1064 3.30246L11.0158 2.39308C11.0573 2.35022 11.0573 2.28326 11.0158 2.24174ZM10.2858 11.0904H1.71441C1.47736 11.0904 1.28584 11.2819 1.28584 11.519V11.8404C1.28584 11.8993 1.33405 11.9475 1.39298 11.9475H10.6073C10.6662 11.9475 10.7144 11.8993 10.7144 11.8404V11.519C10.7144 11.2819 10.5229 11.0904 10.2858 11.0904ZM5.62513 1.55469H6.37513C6.43405 1.55469 6.48227 1.50647 6.48227 1.44754V0.16183C6.48227 0.102902 6.43405 0.0546875 6.37513 0.0546875H5.62513C5.5662 0.0546875 5.51798 0.102902 5.51798 0.16183V1.44754C5.51798 1.50647 5.5662 1.55469 5.62513 1.55469Z",fill:"#B91C1C"})}),C("defs",{children:C("clipPath",{id:"clip0_1100_58099",children:C("rect",{width:"12",height:"12",fill:"white"})})})]})}),e=({width:h=12,height:t=12})=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:h,height:t,viewBox:"0 0 12 12",fill:"none",children:[C("g",{"clip-path":"url(#clip0_1100_58115)",children:C("path",{d:"M5.99988 4.49816V6.49816M5.99988 8.49816H6.00488M5.30754 1.94402L1.19509 9.04733C0.966991 9.44133 0.85294 9.63833 0.869797 9.80001C0.884499 9.94103 0.958384 10.0692 1.07306 10.1526C1.20454 10.2482 1.43217 10.2482 1.88744 10.2482H10.1123C10.5676 10.2482 10.7952 10.2482 10.9267 10.1526C11.0414 10.0692 11.1153 9.94103 11.13 9.80001C11.1468 9.63833 11.0328 9.44133 10.8047 9.04733L6.69222 1.94402C6.46493 1.55144 6.35129 1.35515 6.20303 1.28922C6.0737 1.23172 5.92606 1.23172 5.79673 1.28922C5.64846 1.35515 5.53482 1.55144 5.30754 1.94402Z",stroke:"#A16207","stroke-width":"1.14286","stroke-linecap":"round","stroke-linejoin":"round"})}),C("defs",{children:C("clipPath",{id:"clip0_1100_58115",children:C("rect",{width:"12",height:"12",fill:"white"})})})]});export{t as SirenIcon,h as SupportIcon,e as WarningIcon};
2
2
  //# sourceMappingURL=gapFilterSvgs.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as l,jsx as a}from"react/jsx-runtime";import t from"./segment.module.css.js";import{X as c}from"lucide-react";var n=function(n){var r=n.label,m=n.segmentExampleComponent,o=n.customStyles,s=n.handleCancelExample;return l("div",e({className:"".concat(t.exampleWrapper),style:e({},null==o?void 0:o.exampleWrapper)},{children:[a("div",e({className:"".concat(t.exampleHeaderText," ").concat(t.uppercase),style:e({},null==o?void 0:o.exampleHeaderText)},{children:"{".concat(r,"}")})),l("div",e({className:"".concat(t.exampleContainer),style:e({},null==o?void 0:o.exampleContainer)},{children:[l("div",e({className:"".concat(t.exampleHeader),style:e({},null==o?void 0:o.exampleHeader)},{children:[a("p",e({className:"".concat(t.exampleHeaderText),style:e({},null==o?void 0:o.exampleHeaderText)},{children:"Example: "})),a("button",e({className:"".concat(t.cancelButton),onClick:s,style:e({},null==o?void 0:o.cancelButton)},{children:a(c,{size:16})}))]})),null!=m?m:a("p",e({className:"".concat(t.exampleHeaderText),style:e({},null==o?void 0:o.exampleHeaderText)},{children:"No example available..."}))]}))]}))};export{n as default};
1
+ import{jsxs as e,jsx as l}from"react/jsx-runtime";import a from"./segment.module.css.js";import{X as m}from"lucide-react";const t=({label:t,segmentExampleComponent:n,customStyles:s,handleCancelExample:r})=>e("div",{className:`${a.exampleWrapper}`,style:{...null==s?void 0:s.exampleWrapper},children:[l("div",{className:`${a.exampleHeaderText} ${a.uppercase}`,style:{...null==s?void 0:s.exampleHeaderText},children:`{${t}}`}),e("div",{className:`${a.exampleContainer}`,style:{...null==s?void 0:s.exampleContainer},children:[e("div",{className:`${a.exampleHeader}`,style:{...null==s?void 0:s.exampleHeader},children:[l("p",{className:`${a.exampleHeaderText}`,style:{...null==s?void 0:s.exampleHeaderText},children:"Example: "}),l("button",{className:`${a.cancelButton}`,onClick:r,style:{...null==s?void 0:s.cancelButton},children:l(m,{size:16})})]}),null!=n?n:l("p",{className:`${a.exampleHeaderText}`,style:{...null==s?void 0:s.exampleHeaderText},children:"No example available..."})]})]});export{t as default};
2
2
  //# sourceMappingURL=ExampleComponentWrapper.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as n,__generator as t}from"tslib";import{jsxs as o,jsx as a,Fragment as i}from"react/jsx-runtime";import l,{useContext as r,useMemo as s}from"react";import{ArrowUpRight as d,X as c}from"lucide-react";import{cn as m}from"../../../UserStoryImport/lib/cn.js";import u from"./segment.module.css.js";import p from"./ExampleComponentWrapper.js";import g from"../ai-reasoning/AiReasoningCitationContent.js";import v from"./SegmentLoader.js";import"./segment-common.css.js";import{MarkdownStateContext as f}from"../../store/markdown-context.js";import h from"@mui/material/Dialog";import y from"@mui/material/IconButton";var b=function(b){var C,S=b.id,x=void 0===S?"Segment":S,E=b.label,w=b.children,I=b.segmentUUID;b.decisionStrength;var j=b.aiReason,L=b.customStyles,N=b.customIcons,B=b.aiReasoningCitationCustomStyles,R=b.segmentExampleComponent,U=b.handleViewGlossary,W=b.isUpdatedSegment,k=b.onOpen,A=r(f),V=A.citationsMetadata,G=A.updateCitationsMetadata;console.log("citation metadata ",V);var M=l.useState(!1),z=M[0],D=M[1],T=s(function(){return V.get(I)},[V,I]),O=s(function(){return(null==T?void 0:T.open)||!1},[T]),q=s(function(){return T&&"loading"===T.state},[T]),F=function(){return n(void 0,void 0,void 0,function(){var n;return t(this,function(t){switch(t.label){case 0:if(n=!O,D(!1),console.log("citation metadata::",n,j),!n||(null==j?void 0:j.reason))return[3,5];G(I,function(t){if(t){var o=e({},t);return o.state="loading",o}return{open:n,state:"loading"}}),t.label=1;case 1:return t.trys.push([1,,3,4]),console.log("citation metadata:: onopen"),[4,null==k?void 0:k()];case 2:return t.sent(),[3,4];case 3:return G(I,function(t){if(t){var o=e({},t);return o.state="ready",o.open=n,o}return{open:n,state:"ready"}}),[7];case 4:return[3,6];case 5:console.log("citation metadata:: else block"),G(I,function(t){if(t){var o=e({},t);return o.open=n,o}return{open:n,state:q?"loading":"ready"}}),t.label=6;case 6:return[2]}})})};return o("div",e({className:"".concat(u.segmentWrapper),style:e(e({},null==L?void 0:L.segmentWrapper),{display:"inline-flex",verticalAlign:"middle"})},{children:[o("div",e({className:"segment-".concat(x,"-container segmentContainer ").concat(W?"updatedSegmentContainer":""),style:e({},null==L?void 0:L.container)},{children:[a("span",e({className:"segment-".concat(x," segmentLabel ").concat(W?"updatedSegmentLabel":""),style:e({},null==L?void 0:L.label)},{children:W?w:E})),a("button",e({className:"".concat(u.segmentExplanationButtonContainer),style:e({},null==L?void 0:L.buttonContainer),onClick:F},{children:a(d,{className:m(W&&u.updatedChevronIcon,u.cheveronIcon),style:e({},null==L?void 0:L.cheveronIcon)})}))]})),O&&a(h,e({open:!0,onClose:F,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"xl",container:document.getElementById("#root")},{children:o("div",e({style:{minWidth:"50vw",paddingLeft:16,paddingRight:16,paddingTop:24,paddingBottom:24}},{children:[o("div",e({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16}},{children:[a("span",e({className:"segmentLabel ".concat(W?"updatedSegmentLabel":""),style:{fontSize:18,fontWeight:600}},{children:W?"SEGMENT VALUE":E})),a(y,e({"aria-label":"close",onClick:F,sx:function(e){return{position:"absolute",right:8,top:8,color:e.palette.grey[500]}}},{children:a(c,{size:24})}))]})),q?a(v,{customStyles:null==L?void 0:L.loadingSkeleton}):o(i,{children:[z&&!W&&a("div",e({style:{marginBottom:16}},{children:a(p,{label:null!=E?E:"",segmentExampleComponent:R,customStyles:e(e({},null==L?void 0:L.segmentExample),{exampleContainer:e(e({},null===(C=null==L?void 0:L.segmentExample)||void 0===C?void 0:C.exampleContainer),{width:"100%"})}),handleCancelExample:function(){D(!1)}})})),W&&a("div",e({style:{marginBottom:16}},{children:a("div",e({className:"segment-".concat(x,"-container segmentContainer updatedSegmentContainer"),style:e({},null==L?void 0:L.container)},{children:a("span",e({className:"segment-".concat(x," segmentLabel updatedSegmentLabel"),style:e({},null==L?void 0:L.label)},{children:w}))}))})),a("div",{children:a(g,{aiReason:j,customStyles:e(e({},B),{aiReasoningContent:e(e({},null==B?void 0:B.aiReasoningContent),{headerBar:{width:"auto"}}),aiReasoningAccordion:{header:{width:"auto"}}}),customIcons:N,isSegmentExplanation:!0,handleViewGlossary:U?function(){G(I,function(n){if(n){var t=e({},n);return t.open=!1,t}return{open:!1,state:q?"loading":"ready"}}),null==U||U(x)}:void 0,handleViewExample:R?function(){D(!0)}:void 0,isUpdatedSegment:W})})]})]}))}))]}))};export{b as default};
1
+ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{useContext as a,useMemo as i}from"react";import{ArrowUpRight as l,X as s}from"lucide-react";import{cn as r}from"../../../UserStoryImport/lib/cn.js";import d from"./segment.module.css.js";import m from"./ExampleComponentWrapper.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import p from"./SegmentLoader.js";import"./segment-common.css.js";import{MarkdownStateContext as g}from"../../store/markdown-context.js";import u from"@mui/material/Dialog";import h from"@mui/material/IconButton";const y=({id:y="Segment",label:v,children:f,segmentUUID:C,decisionStrength:b=80,aiReason:S,customStyles:x,customIcons:E,aiReasoningCitationCustomStyles:w,segmentExampleComponent:I,handleViewGlossary:j,isUpdatedSegment:L,onOpen:N})=>{var $;const{citationsMetadata:B,updateCitationsMetadata:R}=a(g),[U,W]=o.useState(!1),k=i(()=>B.get(C),[B,C]),A=i(()=>(null==k?void 0:k.open)||!1,[k]),V=i(()=>k&&"loading"===k.state,[k]),G=async()=>{const e=!A;if(W(!1),console.log("citation metadata::",e,S),e&&!(null==S?void 0:S.reason)){R(C,t=>{if(t){const e={...t};return e.state="loading",e}return{open:e,state:"loading"}});try{console.log("citation metadata:: onopen"),await(null==N?void 0:N())}finally{R(C,t=>{if(t){const n={...t};return n.state="ready",n.open=e,n}return{open:e,state:"ready"}})}}else console.log("citation metadata:: else block"),R(C,t=>{if(t){const n={...t};return n.open=e,n}return{open:e,state:V?"loading":"ready"}})};return e("div",{className:`segment-wrapper-${y} ${d.segmentWrapper}`,style:{...null==x?void 0:x.segmentWrapper,display:"inline-flex",verticalAlign:"middle"},children:[e("div",{className:`segment-${y}-container segmentContainer ${L?"updatedSegmentContainer":""}`,style:{...null==x?void 0:x.container},children:[t("span",{className:`segment-${y} segmentLabel ${L?"updatedSegmentLabel":""}`,style:{...null==x?void 0:x.label},children:L?f:v}),t("button",{className:`${d.segmentExplanationButtonContainer}`,style:{...null==x?void 0:x.buttonContainer},onClick:G,children:t(l,{className:r(L&&d.updatedChevronIcon,d.cheveronIcon),style:{...null==x?void 0:x.cheveronIcon}})})]}),A&&t(u,{open:!0,onClose:G,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"xl",container:document.getElementById("#root"),children:e("div",{style:{minWidth:"50vw",paddingLeft:16,paddingRight:16,paddingTop:24,paddingBottom:24},children:[e("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16},children:[t("span",{className:"segmentLabel "+(L?"updatedSegmentLabel":""),style:{fontSize:18,fontWeight:600},children:L?"SEGMENT VALUE":v}),t(h,{"aria-label":"close",onClick:G,sx:e=>({position:"absolute",right:8,top:8,color:e.palette.grey[500]}),children:t(s,{size:24})})]}),V?t(p,{customStyles:null==x?void 0:x.loadingSkeleton}):e(n,{children:[U&&!L&&t("div",{style:{marginBottom:16},children:t(m,{label:null!=v?v:"",segmentExampleComponent:I,customStyles:{...null==x?void 0:x.segmentExample,exampleContainer:{...null===($=null==x?void 0:x.segmentExample)||void 0===$?void 0:$.exampleContainer,width:"100%"}},handleCancelExample:()=>{W(!1)}})}),L&&t("div",{style:{marginBottom:16},children:t("div",{className:`segment-${y}-container segmentContainer updatedSegmentContainer`,style:{...null==x?void 0:x.container},children:t("span",{className:`segment-${y} segmentLabel updatedSegmentLabel`,style:{...null==x?void 0:x.label},children:f})})}),t("div",{children:t(c,{aiReason:S,customStyles:{...w,aiReasoningContent:{...null==w?void 0:w.aiReasoningContent,headerBar:{width:"auto"}},aiReasoningAccordion:{header:{width:"auto"}}},customIcons:E,isSegmentExplanation:!0,handleViewGlossary:j?()=>{R(C,e=>{if(e){const t={...e};return t.open=!1,t}return{open:!1,state:V?"loading":"ready"}}),null==j||j(y)}:void 0,handleViewExample:I?()=>{W(!0)}:void 0,isUpdatedSegment:L})})]})]})})]})};export{y as default};
2
2
  //# sourceMappingURL=Segment.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as l}from"tslib";import{jsx as e,jsxs as n}from"react/jsx-runtime";import t from"./segment.module.css.js";var o=function(o){var a=o.customStyles;return e("div",l({className:t.loaderWrapper,style:null==a?void 0:a.wrapper},{children:n("div",l({className:t.loaderContainer,style:null==a?void 0:a.container},{children:[n("div",l({className:t.loaderHeader,style:null==a?void 0:a.header},{children:[e("div",{className:"".concat(t.skeleton," ").concat(t.title),style:null==a?void 0:a.titleSkeleton}),e("div",{className:"".concat(t.skeleton," ").concat(t.icon),style:null==a?void 0:a.iconSkeleton})]})),e("div",{className:"".concat(t.skeleton," ").concat(t.lineFull),style:null==a?void 0:a.lineFull}),e("div",{className:"".concat(t.skeleton," ").concat(t.line90),style:null==a?void 0:a.line90}),e("div",{className:"".concat(t.skeleton," ").concat(t.line75),style:null==a?void 0:a.line75}),e("div",{className:"".concat(t.skeleton," ").concat(t.line60),style:null==a?void 0:a.line60})]}))}))};export{o as default};
1
+ import{jsx as l,jsxs as e}from"react/jsx-runtime";import s from"./segment.module.css.js";const i=({customStyles:i})=>l("div",{className:s.loaderWrapper,style:null==i?void 0:i.wrapper,children:e("div",{className:s.loaderContainer,style:null==i?void 0:i.container,children:[e("div",{className:s.loaderHeader,style:null==i?void 0:i.header,children:[l("div",{className:`${s.skeleton} ${s.title}`,style:null==i?void 0:i.titleSkeleton}),l("div",{className:`${s.skeleton} ${s.icon}`,style:null==i?void 0:i.iconSkeleton})]}),l("div",{className:`${s.skeleton} ${s.lineFull}`,style:null==i?void 0:i.lineFull}),l("div",{className:`${s.skeleton} ${s.line90}`,style:null==i?void 0:i.line90}),l("div",{className:`${s.skeleton} ${s.line75}`,style:null==i?void 0:i.line75}),l("div",{className:`${s.skeleton} ${s.line60}`,style:null==i?void 0:i.line60})]})});export{i as default};
2
2
  //# sourceMappingURL=SegmentLoader.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as n,__generator as t}from"tslib";import{jsx as o}from"react/jsx-runtime";import l from"./Segment.js";import i from"dompurify";var d=function(d){var a,s,r,u,m,v,g,c,p,S,h,f,b,x=d.id,y=d.children,C=d.props,_=d.segmentComponentConfig,I=d.customStyles,U=d.customIcons,D=d.extractText,w=d.isUpdatedSegment,E=void 0!==w&&w,F=(null==C?void 0:C.id)||"Segment",L=(null==C?void 0:C.decisionstrength)||"80",k=_||{},R=k.segmentDataList,j=k.getSegmentExampleComponent,G=k.handleViewGlossary,O=k.upadatedSegmentDataList,T=k.handleFetchUpdatedSegmentDetails,V=k.handleFetchSegmentDetails,W=E?null==O?void 0:O.find(function(e){return String(e.segment_id)===String(F)}):null==R?void 0:R.find(function(e){return String(e.segment_id)===String(F)});console.log("meee work",W,E,R,O);var z={id:F,reason:null!==(a=null==W?void 0:W.reason)&&void 0!==a?a:"",gap:null!==(s=null==W?void 0:W.gap)&&void 0!==s?s:"",explanation:null!==(r=null==W?void 0:W.explanation)&&void 0!==r?r:"",relevance_score:null!==(u=null==W?void 0:W.relevance_score)&&void 0!==u?u:0,isOpen:!1},H=void 0,M=D(y),q=C["data-table"],A="";if(q&&!E)try{A=decodeURIComponent(atob(q))}catch(e){console.error("Failed to decode data-table for segment",F,e)}var B=i.sanitize(A);return W||!V||E||null==V||V(F),F&&W&&j&&!E&&(H=q?o(function(){return o("div",{dangerouslySetInnerHTML:{__html:B}})},{}):j(F,M,W.segment_type)),o(l,e({id:F,segmentUUID:x,label:null!==(m=null==W?void 0:W.label)&&void 0!==m?m:null==W?void 0:W.segment_name,decisionStrength:L,aiReason:z,customIcons:U,aiReasoningCitationCustomStyles:I,segmentExampleComponent:H,handleViewGlossary:G,customStyles:{segmentWrapper:null===(v=null==I?void 0:I.segment)||void 0===v?void 0:v.segmentWrapper,container:null===(g=null==I?void 0:I.segment)||void 0===g?void 0:g.container,label:null===(c=null==I?void 0:I.segment)||void 0===c?void 0:c.label,decisionStrength:null===(p=null==I?void 0:I.segment)||void 0===p?void 0:p.decisionStrength,buttonContainer:null===(S=null==I?void 0:I.segment)||void 0===S?void 0:S.buttonContainer,cheveronIcon:null===(h=null==I?void 0:I.segment)||void 0===h?void 0:h.cheveronIcon,segmentExample:null===(f=null==I?void 0:I.segment)||void 0===f?void 0:f.segmentExample,loadingSkeleton:null===(b=null==I?void 0:I.segment)||void 0===b?void 0:b.SegmentLoadingSkeletonStyles},isUpdatedSegment:E,onOpen:function(){return n(void 0,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return W||!E?[3,2]:(console.log("citation metadata:: handleFetchUpdatedSegmentDetails"),[4,null==T?void 0:T(F)]);case 1:e.sent(),e.label=2;case 2:return[2]}})})}},{children:y}),F)};export{d as default};
1
+ import{jsx as e}from"react/jsx-runtime";import n from"./Segment.js";import t from"dompurify";const l=({id:l,children:o,props:i,segmentComponentConfig:d,customStyles:a,customIcons:s,extractText:m,isUpdatedSegment:r=!1})=>{var g,u,v,c,p,S,h,y,f,x,b,C,_;const I=(null==i?void 0:i.id)||"Segment",U=(null==i?void 0:i.decisionstrength)||"80",{segmentDataList:D,getSegmentExampleComponent:E,handleViewGlossary:F,upadatedSegmentDataList:L,handleFetchUpdatedSegmentDetails:w,handleFetchSegmentDetails:R}=d||{},j=r?null==L?void 0:L.find(e=>String(e.segment_id)===String(I)):null==D?void 0:D.find(e=>String(e.segment_id)===String(I)),k={id:I,reason:null!==(g=null==j?void 0:j.reason)&&void 0!==g?g:"",gap:null!==(u=null==j?void 0:j.gap)&&void 0!==u?u:"",explanation:null!==(v=null==j?void 0:j.explanation)&&void 0!==v?v:"",relevance_score:null!==(c=null==j?void 0:j.relevance_score)&&void 0!==c?c:0,isOpen:!1};let G;const O=m(o),T=i["data-table"];let V="";if(T&&!r)try{V=decodeURIComponent(atob(T))}catch(e){console.error("Failed to decode data-table for segment",I,e)}const W=t.sanitize(V),z=()=>e("div",{dangerouslySetInnerHTML:{__html:W}});return j||!R||r||null==R||R(I),I&&j&&E&&!r&&(G=T?e(z,{}):E(I,O,j.segment_type)),e(n,{id:I,segmentUUID:l,label:null!==(p=null==j?void 0:j.label)&&void 0!==p?p:null==j?void 0:j.segment_name,decisionStrength:U,aiReason:k,customIcons:s,aiReasoningCitationCustomStyles:a,segmentExampleComponent:G,handleViewGlossary:F,customStyles:{segmentWrapper:null===(S=null==a?void 0:a.segment)||void 0===S?void 0:S.segmentWrapper,container:null===(h=null==a?void 0:a.segment)||void 0===h?void 0:h.container,label:null===(y=null==a?void 0:a.segment)||void 0===y?void 0:y.label,decisionStrength:null===(f=null==a?void 0:a.segment)||void 0===f?void 0:f.decisionStrength,buttonContainer:null===(x=null==a?void 0:a.segment)||void 0===x?void 0:x.buttonContainer,cheveronIcon:null===(b=null==a?void 0:a.segment)||void 0===b?void 0:b.cheveronIcon,segmentExample:null===(C=null==a?void 0:a.segment)||void 0===C?void 0:C.segmentExample,loadingSkeleton:null===(_=null==a?void 0:a.segment)||void 0===_?void 0:_.SegmentLoadingSkeletonStyles},isUpdatedSegment:r,onOpen:async()=>{!j&&r&&(console.log("citation metadata:: handleFetchUpdatedSegmentDetails"),await(null==w?void 0:w(I)))},children:o},I)};export{l as default};
2
2
  //# sourceMappingURL=SegmentWrapper.js.map
@@ -1,2 +1,2 @@
1
- var e=".segmentContainer{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:fit-content}.updatedSegmentContainer{align-items:start;background-color:#f0fdf4;border:1px solid #bbf7d0;color:#16a34a}.segmentLabel{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.updatedSegmentLabel{color:#16a34a}.glow{box-shadow:0 4px 12px #deea611a}";!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&t.setAttribute("nonce",n),t.appendChild(document.createTextNode(e));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(t)}();export{e as default};
1
+ var e=".segmentContainer{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:fit-content}.updatedSegmentContainer{align-items:start;background-color:#f0fdf4;border:1px solid #bbf7d0;color:#16a34a}.segmentLabel{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.updatedSegmentLabel{color:#16a34a}.glow{box-shadow:0 0 20px rgba(127,28,227,.778)}";!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&t.setAttribute("nonce",n),t.appendChild(document.createTextNode(e));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(t)}();export{e as default};
2
2
  //# sourceMappingURL=segment-common.css.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsxs as n,jsx as e,Fragment as i}from"react/jsx-runtime";import{useState as r,useRef as l}from"react";import t from"../../icons/BigEnoughIcon.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import{useRequirementAI as s}from"../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./BigEnoughPanel.module.css.js";var u=function(u){var d,p,v,g,m=u.customIcons,f=u.customStyles,h=u.currentUserStory,_=u.panelStyles,b=u.showPanel,y=void 0!==b&&b;s().searchQueryList;var S=r(!!y),P=S[0],k=S[1],w=l(null);return n("div",o({onClick:function(o){return o.stopPropagation()}},{children:[!y&&e("button",o({ref:w,className:a.developerEffortButton,style:null==_?void 0:_.buttonStyle,onClick:function(o){o.stopPropagation(),k(function(o){return!o})}},{children:e(t,{color:null==_?void 0:_.iconColor,size:null==_?void 0:_.iconSize})})),P&&n(i,{children:[e("div",{className:null==a?void 0:a.backdrop,style:y?null==_?void 0:_.showPanelBackdropStyles:null==_?void 0:_.backdropStyle,onClick:function(o){o.stopPropagation(),k(!1)},onWheel:function(o){return o.stopPropagation()}}),e("div",o({className:"".concat(a.dropdown," ").concat(y?a.showPanelDropdown:""),style:o(o({},null==_?void 0:_.dropdownStyle),y?null==_?void 0:_.showPanelDropdownStyle:{})},{children:e(c,{cognitiveDecisionHeaders:{mainHeader:"Feature Implementation Score - ".concat((null==h?void 0:h.big_enough)||0)},big_enough_block:null===(d=h.big_enough_decision_factors)||void 0===d?void 0:d.big_enough_block,aiReason:{relevance_score:(null===(p=null==h?void 0:h.big_enough_decision_factors)||void 0===p?void 0:p.relevance_score)||0,reason:(null===(v=null==h?void 0:h.big_enough_decision_factors)||void 0===v?void 0:v.score_reason)||"",gap:(null===(g=null==h?void 0:h.big_enough_decision_factors)||void 0===g?void 0:g.gap)||"",id:"big-enough-cd"},customIcons:m,customStyles:f})}))]})]}))};export{u as BigEnoughPanel};
1
+ import{jsxs as o,jsx as e,Fragment as n}from"react/jsx-runtime";import{useState as i,useRef as l}from"react";import r from"../../icons/BigEnoughIcon.js";import t from"../ai-reasoning/AiReasoningCitationContent.js";import{useRequirementAI as s}from"../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./BigEnoughPanel.module.css.js";const c=({customIcons:c,customStyles:d,currentUserStory:u,panelStyles:p,showPanel:g=!1})=>{var v,m,_,h;s();const[b,f]=i(!!g),y=l(null);return o("div",{onClick:o=>o.stopPropagation(),children:[!g&&e("button",{ref:y,className:a.developerEffortButton,style:null==p?void 0:p.buttonStyle,onClick:o=>{o.stopPropagation(),f(o=>!o)},children:e(r,{color:null==p?void 0:p.iconColor,size:null==p?void 0:p.iconSize})}),b&&o(n,{children:[e("div",{className:null==a?void 0:a.backdrop,style:g?null==p?void 0:p.showPanelBackdropStyles:null==p?void 0:p.backdropStyle,onClick:o=>{o.stopPropagation(),f(!1)},onWheel:o=>o.stopPropagation()}),e("div",{className:`${a.dropdown} ${g?a.showPanelDropdown:""}`,style:{...null==p?void 0:p.dropdownStyle,...g?null==p?void 0:p.showPanelDropdownStyle:{}},children:e(t,{cognitiveDecisionHeaders:{mainHeader:`Feature Implementation Score - ${(null==u?void 0:u.big_enough)||0}`},big_enough_block:null===(v=u.big_enough_decision_factors)||void 0===v?void 0:v.big_enough_block,aiReason:{relevance_score:(null===(m=null==u?void 0:u.big_enough_decision_factors)||void 0===m?void 0:m.relevance_score)||0,reason:(null===(_=null==u?void 0:u.big_enough_decision_factors)||void 0===_?void 0:_.score_reason)||"",gap:(null===(h=null==u?void 0:u.big_enough_decision_factors)||void 0===h?void 0:h.gap)||"",id:"big-enough-cd"},customIcons:c,customStyles:d})})]})]})};export{c as BigEnoughPanel};
2
2
  //# sourceMappingURL=BigEnoughPanel.js.map
@@ -0,0 +1,2 @@
1
+ import{jsxs as o,jsx as n,Fragment as e}from"react/jsx-runtime";import{useState as l,useRef as t}from"react";import i from"../ai-reasoning/AiReasoningCitationContent.js";import r from"./CompletionPanel.module.css.js";import s from"../../icons/CDIcon.js";const c=({customIcons:c,customStyles:a,currentUserStory:d,panelStyles:p,showPanel:m=!1,children:u,onToggleStateChange:v})=>{var g,y,h,f;const[S,_]=l(!!m),C=t(null),P=o=>{o.stopPropagation(),_(o=>{const n=!o;return null==v||v(n),n})};return o("div",{className:r.triggerWrapper,style:null==p?void 0:p.triggerWrapperStyle,onClick:o=>o.stopPropagation(),children:[!m&&n(e,{children:u?n("div",{className:r.completionButton,style:null==p?void 0:p.completionButtonStyle,onClick:P,children:u}):n("button",{ref:C,className:r.completionIconButton,style:null==p?void 0:p.completionIconButtonStyle,onClick:P,children:n(s,{})})}),S&&o(e,{children:[n("div",{className:r.backdrop,style:null==p?void 0:p.backdropStyle,onClick:o=>{o.stopPropagation(),_(!1),null==v||v(!1)},onWheel:o=>o.stopPropagation()}),n("div",{className:`${r.dropdown} ${m?r.showPanelDropdown:""}`,style:{...null==p?void 0:p.dropdownStyle,...m?null==p?void 0:p.showPanelDropdownStyle:{}},children:n(i,{aiReason:{explanation:(null===(g=d.completion_decision_factors)||void 0===g?void 0:g.explanation)||"",relevance_score:(null===(y=d.completion_decision_factors)||void 0===y?void 0:y.relevance_score)||0,reason:(null===(h=d.completion_decision_factors)||void 0===h?void 0:h.score_reason)||"",gap:(null===(f=d.completion_decision_factors)||void 0===f?void 0:f.gap)||"",id:"completion-cd"},customIcons:c,customStyles:a})})]})]})};export{c as CompletionPanel,c as default};
2
+ //# sourceMappingURL=CompletionPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompletionPanel.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e={completionButton:"CompletionPanel-module_completionButton__ORlGC",triggerWrapper:"CompletionPanel-module_triggerWrapper__PdQj6",chevron:"CompletionPanel-module_chevron__XDcBW",backdrop:"CompletionPanel-module_backdrop__DP382",dropdown:"CompletionPanel-module_dropdown__7iQ-8",showPanelDropdown:"CompletionPanel-module_showPanelDropdown__LhOPy",completionIconButton:"CompletionPanel-module_completionIconButton__sI9MX"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".CompletionPanel-module_completionButton__ORlGC{align-items:center;cursor:pointer;display:inline-flex;gap:4px}.CompletionPanel-module_triggerWrapper__PdQj6{align-items:center;display:inline-flex;position:relative}.CompletionPanel-module_chevron__XDcBW{color:#64748b;flex-shrink:0;transition:transform .2s ease}.CompletionPanel-module_backdrop__DP382{inset:0;position:fixed;z-index:999}.CompletionPanel-module_dropdown__7iQ-8{background:#fff;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 4px 12px #0f172a14,0 2px 4px #0f172a0a;left:0;max-width:660px;min-width:660px;overflow:hidden;position:absolute;top:calc(100% + 6px);width:660px;z-index:1000}.CompletionPanel-module_showPanelDropdown__LhOPy{left:0;max-width:100%;position:relative;top:0;width:100%}.CompletionPanel-module_completionIconButton__sI9MX{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;gap:4px;height:28px;justify-content:center;min-width:28px;padding:0}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
2
+ //# sourceMappingURL=CompletionPanel.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompletionPanel.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import{Info as r}from"lucide-react";import{v4 as i}from"uuid";import{Tooltip as o}from"@mui/material";import l from"./ReplaceLearnedTags.module.css.js";function n(n){for(var a,c=[],m=/<learned>(.*?)<\/learned>/g,p=0,s=0;null!==(a=m.exec(n));){a[0];var u=a[1],d=a.index;d>p&&c.push(t("span",{children:n.slice(p,d)},"text-pre-".concat(s++))),c.push(t(o,e({title:u,placement:"top"},{children:t(r,{size:16,className:l.linkText})}),"tooltip-".concat(i()))),p=m.lastIndex}return p<(null==n?void 0:n.length)&&c.push(t("span",{children:n.slice(p)},"text-post-".concat(s++))),c}export{n as replaceLearnedTagsWithInfo};
1
+ import{jsx as e}from"react/jsx-runtime";import{Info as t}from"lucide-react";import{v4 as r}from"uuid";import{Tooltip as l}from"@mui/material";import i from"./ReplaceLearnedTags.module.css.js";function n(n){const o=[],s=/<learned>(.*?)<\/learned>/g;let p,c=0,m=0;for(;null!==(p=s.exec(n));){const[a,u]=p,d=p.index;d>c&&o.push(e("span",{children:n.slice(c,d)},"text-pre-"+m++)),o.push(e(l,{title:u,placement:"top",children:e(t,{size:16,className:i.linkText})},`tooltip-${r()}`)),c=s.lastIndex}return c<(null==n?void 0:n.length)&&o.push(e("span",{children:n.slice(c)},"text-post-"+m++)),o}export{n as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=ReplaceLearnedTags.js.map