@e-llm-studio/requirement-ai 0.0.238 → 0.0.240

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 (486) hide show
  1. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  10. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  11. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  12. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  13. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  14. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  15. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  16. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  17. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  18. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  19. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  20. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  25. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  26. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  27. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  28. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  29. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  30. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  31. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js +2 -0
  41. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js.map +1 -0
  42. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  44. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  45. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  48. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  49. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  51. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  52. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  53. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  54. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  55. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  56. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  61. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  62. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  63. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  64. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  118. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  119. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  120. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  121. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  131. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  132. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  133. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  134. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  135. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  136. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  137. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  138. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  139. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  140. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  141. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  142. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  143. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  144. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  145. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  146. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  147. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  148. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  149. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
  150. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  151. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  152. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  153. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  154. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  155. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  156. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  157. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  158. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  159. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  160. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  161. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  162. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  163. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  164. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  165. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  166. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  167. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  168. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  169. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  170. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  171. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  172. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  173. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  174. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  175. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  176. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  177. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  178. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  179. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  180. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  181. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  182. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  183. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  184. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  185. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  186. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  187. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  188. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  189. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  190. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  191. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  192. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  193. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  194. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  195. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  196. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  197. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  198. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  199. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  200. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  201. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  202. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  203. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  204. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  205. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  206. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  207. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  208. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  209. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  210. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  211. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  212. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  213. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  214. package/dist/cjs/index.js +1 -1
  215. package/dist/cjs/service/redlineService.js +2 -0
  216. package/dist/cjs/service/redlineService.js.map +1 -0
  217. package/dist/cjs/utils/tagHelper.js +2 -0
  218. package/dist/cjs/utils/tagHelper.js.map +1 -0
  219. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  220. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  221. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  222. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  223. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  224. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  225. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  226. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  227. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  228. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  229. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  230. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  231. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  232. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  233. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  234. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  235. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  236. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  237. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  238. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  239. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  240. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  241. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  242. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  243. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  244. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  245. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  246. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  247. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  248. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  249. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  250. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  251. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  252. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  253. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  254. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  255. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  256. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  257. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  258. package/dist/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js +2 -0
  259. package/dist/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js.map +1 -0
  260. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  261. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  262. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  263. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  264. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  265. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  266. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  267. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  268. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  269. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  270. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  271. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  272. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  273. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  274. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  275. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  276. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  277. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  278. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  279. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  280. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  281. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  282. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  283. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  284. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  285. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  286. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  287. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  288. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  289. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  290. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  291. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  292. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  293. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  294. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  295. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  296. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  297. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  298. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  299. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  300. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  301. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  302. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  303. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  304. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  305. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  306. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  307. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  308. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  309. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  310. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  311. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  312. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  313. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  314. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  315. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  316. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  317. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  318. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  319. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  320. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  321. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  322. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  323. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  324. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  325. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  326. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  327. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  328. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  329. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  330. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  331. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  332. package/dist/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
  333. package/dist/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
  334. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  335. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  336. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  337. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  338. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  339. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  340. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  341. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  342. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  343. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  344. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  345. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  346. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  347. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  348. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  349. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  350. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  351. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  352. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  353. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  354. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  355. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  356. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  357. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  358. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  359. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  360. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  361. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  362. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  363. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  364. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  365. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  366. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  367. package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
  368. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  369. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  370. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  371. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  372. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  373. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  374. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  375. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  376. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  377. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  378. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  379. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  380. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  381. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  382. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  383. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  384. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  385. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  386. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  387. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  388. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  389. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  390. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  391. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  392. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  393. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  394. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  395. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  396. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  397. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  398. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  399. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  400. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  401. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  402. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  403. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  404. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  405. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  406. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  407. package/dist/features/UserStoryImport/components/Header.js +1 -1
  408. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  409. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  410. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  411. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  412. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  413. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  414. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  415. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  416. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  417. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  418. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  419. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  420. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  421. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  422. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  423. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  424. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  425. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  426. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  427. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  428. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  429. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  430. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  431. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  432. package/dist/index.js +1 -1
  433. package/dist/service/redlineService.js +2 -0
  434. package/dist/service/redlineService.js.map +1 -0
  435. package/dist/types/src/App.d.ts.map +1 -1
  436. package/dist/types/src/RedlineEditorTest.d.ts +3 -0
  437. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -0
  438. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  439. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +40 -1
  440. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  441. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +2 -1
  442. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  443. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +1 -4
  444. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  445. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  446. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +4 -3
  447. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  448. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts +35 -0
  449. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts.map +1 -0
  450. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +26 -0
  451. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -0
  452. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts +23 -0
  453. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts.map +1 -0
  454. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +26 -0
  455. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -0
  456. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +1 -0
  457. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  458. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +9 -4
  459. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  460. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +45 -11
  461. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  462. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.d.ts +7 -0
  463. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.d.ts.map +1 -0
  464. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +25 -0
  465. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -0
  466. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +15 -3
  467. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  468. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +9 -2
  469. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  470. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +4 -0
  471. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  472. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts +11 -0
  473. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts.map +1 -0
  474. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +3 -1
  475. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  476. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -13
  477. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  478. package/dist/types/src/index.d.ts +2 -0
  479. package/dist/types/src/index.d.ts.map +1 -1
  480. package/dist/types/src/service/redlineService.d.ts +33 -0
  481. package/dist/types/src/service/redlineService.d.ts.map +1 -0
  482. package/dist/types/src/utils/tagHelper.d.ts +5 -0
  483. package/dist/types/src/utils/tagHelper.d.ts.map +1 -0
  484. package/dist/utils/tagHelper.js +2 -0
  485. package/dist/utils/tagHelper.js.map +1 -0
  486. package/package.json +17 -1
@@ -1,2 +1,2 @@
1
- import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const r=({title:r,citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p})=>{const d=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:r+"⁠",citationId:`readfile-${a.citation_number}`,citationIcon:t(i,{}),citationComponent:t(e,{citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:Object.assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==l?void 0:l.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
1
+ import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const r=({title:r,citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p})=>{const d=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:r+"⁠",citationId:`readfile-${a.citation_number}`,citationIcon:t(i,{}),citationComponent:t(e,{citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:{fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none",...null==l?void 0:l.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
2
2
  //# sourceMappingURL=ReadFileCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";const s=({className:s,style:o})=>e("svg",Object.assign({className:s,style:o,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),t("polyline",{points:"15 3 21 3 21 9"}),t("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}));export{s as default};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";const o=({className:o,style:s})=>e("svg",{className:o,style:s,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),t("polyline",{points:"15 3 21 3 21 9"}),t("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]});export{o as default};
2
2
  //# sourceMappingURL=ExternalLinkIcon.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as t,jsx as e}from"react/jsx-runtime";const s=({className:s,style:o})=>t("svg",Object.assign({className:s,style:o,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[e("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("path",{d:"m10 13-2 2 2 2"}),e("path",{d:"m14 17 2-2-2-2"})]}));export{s as default};
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";const o=({className:o,style:s})=>t("svg",{className:o,style:s,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("path",{d:"m10 13-2 2 2 2"}),e("path",{d:"m14 17 2-2-2-2"})]});export{o as default};
2
2
  //# sourceMappingURL=FileCodeIcon.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as t}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import e from"./StormeeContent.js";const i=()=>t("div",Object.assign({className:"mb-3"},{children:t("img",{width:18,src:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",alt:"stormee citation"})})),n=n=>{var a,s,c,r,m;const d=(null===(a=n.customIcons)||void 0===a?void 0:a.stormeeCitationIcon)||t(i,{}),l=(null===(s=n.customIcons)||void 0===s?void 0:s.stormeeBrainstormIcon)||"https://storymod-assests.pages.dev/brainstorm-cropped.gif";return t(o,{inLineCitation:!0,citationTitle:n.title,citationId:`stormee-citation-${n.citation.citation_number}`,citationComponent:"audio_transcript"===n.citation.customMetadata.type&&t(e,{segments:n.citation.customMetadata.segments,gsUtilPath:n.citation.customMetadata.gs_util_url,contentName:n.citation.customMetadata.content_name||"",content:n.citation.customMetadata.content||"",highlighted_content:n.citation.customMetadata.highlighted_content||"",keywords:n.citation.customMetadata.keywords||[],relevanceScore:null===(c=n.citation.customMetadata)||void 0===c?void 0:c.relevance_score,brainStormIcon:l,customStyles:n.customStyles}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:Object.assign({margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",fontSize:"14px",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(r=n.customStyles)||void 0===r?void 0:r.pill),citationTitle:{marginRight:"4px"},citationContent:Object.assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(m=n.customStyles)||void 0===m?void 0:m.content)}})};export{i as StormeeCitationIcon,n as default};
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{jsxs as e,jsx as t}from"react/jsx-runtime";import s,{memo as i,useState as n,useCallback as a,useEffect as l}from"react";import r from"./StormeeContent.module.css.js";import o from"./components/ProblemStatementCard.js";import{renderCitationAIConfidenceDisplay as d}from"../../../shared/CitationAIConfidenceDisplay.js";import{CircularProgress as c}from"@mui/material";import m from"../audio-citation/searchwaveform.js";import{formatTime as u}from"../audio-citation/SearchWaveFromWrapper.js";import{useRequirementAI as g}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{AudioPlayProvider as p}from"../audio-citation/store/autoplay.wavefrom.js";const h=i(({brainStormIcon:i="https://storymod-assests.pages.dev/brainstorm-cropped.gif",themeColor:h,segments:v,gsUtilPath:y,contentName:j,content:b,keywords:f,relevanceScore:O,highlighted_content:N,customStyles:S})=>{var T,C,x,I;const[k,w]=n(0),[P,R]=n(0),{queryClient:U,useGetSignedUrlQuery:A,useGetSignedUrlMutation:E,useExtractAudioPeaksMutation:W,useExtractAudioPeaksQuery:_,useGetVideoSignedUrlQuery:L,useGetVideoSignedUrlMutation:M}=g().apiCachingConfig,Q=["getSignedUrl",y],D=["extractAudioPeaks",y],{data:G}=A(y,Q),{data:q}=_(y,D),{mutate:V,isPending:z}=E(y),{mutate:H,isPending:F}=W(y),B=a(e=>{w(e)},[]);l(()=>{y&&(U.getQueryData(Q)||null==V||V({gsUtilPath:y}),U.getQueryData(D)||null==H||H({gsUtilPath:y}))},[y]);const J=(e,i,n)=>{if("string"==typeof e)return t("img",{loading:"lazy",alt:"brain_storm_icon",src:e,className:i,style:n});if(s.isValidElement(e)){const t=e,i=Object.assign(Object.assign({},n),t.props.style);return s.cloneElement(t,{style:i})}return t("span",Object.assign({style:n},{children:e}))};return e("div",Object.assign({className:r.container,style:null==S?void 0:S.container},{children:[e("div",Object.assign({className:r.header,style:null==S?void 0:S.header},{children:[e("div",Object.assign({className:r.headerLeft,style:null==S?void 0:S.headerLeft},{children:[J(i,r.headerIcon,null!==(T=null==S?void 0:S.bsIcon)&&void 0!==T?T:null==S?void 0:S.headerIcon),t("h2",Object.assign({className:r.headerTitle,style:null==S?void 0:S.headerTitle},{children:"Stormee.ai"}))]})),d(O,!0,null==S?void 0:S.confidenceDisplay)]})),e("div",Object.assign({className:r.contentRow,style:null==S?void 0:S.contentRow},{children:[e("div",Object.assign({className:r.leftColumn,style:null==S?void 0:S.leftColumn},{children:[z||F?e("div",Object.assign({className:r.loader,style:null==S?void 0:S.loader},{children:[t(c,{size:48,thickness:4}),t("span",Object.assign({className:r.loaderText,style:null==S?void 0:S.loaderText},{children:"Loading audio peaks..."}))]})):G&&q&&t(p,{children:t(m,{colorCode:h,audio_file_name:G,matchedSegments:v,peaks:null!==(C=q.peaks)&&void 0!==C?C:[],duration:null!==(x=q.duration)&&void 0!==x?x:0,chevronIndex:P,setChevronIndex:R,onTimeUpdate:B,currentAudioTime:k,showOnlyMatched:!0,customStyles:null==S?void 0:S.waveform})}),e("div",Object.assign({className:r.transcriptCard,style:null==S?void 0:S.transcriptCard},{children:[e("div",Object.assign({className:r.transcriptHeader,style:null==S?void 0:S.transcriptHeader},{children:[J(i,r.transcriptIcon,null!==(I=null==S?void 0:S.bsIcon)&&void 0!==I?I:null==S?void 0:S.transcriptIcon),t("div",Object.assign({className:r.transcriptTitle,style:null==S?void 0:S.transcriptTitle},{children:"STORMEE'S TRANSCRIPT"}))]})),t("div",Object.assign({className:r.segmentList,style:null==S?void 0:S.segmentList},{children:v.map((s,i)=>t("div",Object.assign({className:r.segment,style:null==S?void 0:S.segment},{children:e("div",Object.assign({className:r.segmentRow,style:null==S?void 0:S.segmentRow},{children:[t("span",Object.assign({className:r.timestamp,style:null==S?void 0:S.timestamp},{children:u(s.start_time)})),t("div",Object.assign({className:r.segmentTextWrapper,style:null==S?void 0:S.segmentTextWrapper},{children:t("p",Object.assign({className:r.segmentText,style:null==S?void 0:S.segmentText},{children:s.text}))}))]}))}),i))}))]}))]})),t(o,{title:j,content:b,highlight:null!=N?N:"",keyTakeaway:f,brainStormIcon:i,customStyles:S})]}))]}))});export{h as default};
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{jsx as t,jsxs as s}from"react/jsx-runtime";import e from"react";import n from"./GradientButton.module.css.js";const o=({brainStormIcon:o="https://storymod-assests.pages.dev/brainstorm-cropped.gif",customStyles:a})=>t("button",Object.assign({className:n.button,style:null==a?void 0:a.gradientButton},{children:s("span",Object.assign({className:n.content,style:null==a?void 0:a.gradientContent},{children:[(()=>{if("string"==typeof o)return t("img",{loading:"lazy",src:o,className:n.icon,alt:"Brainstorm icon",style:null==a?void 0:a.bsIcon});if(e.isValidElement(o)){const t=o;return e.cloneElement(t,{style:Object.assign(Object.assign({},null==a?void 0:a.bsIcon),t.props.style)})}return t("span",Object.assign({style:null==a?void 0:a.bsIcon},{children:o}))})(),t("span",Object.assign({className:n.label,style:null==a?void 0:a.gradientButtonLabel},{children:"Extracted from Key Takeaways"}))]}))}));export{o as default};
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{jsxs as e,jsx as a}from"react/jsx-runtime";import t from"react-markdown";import l from"./GradientButton.js";import s from"./ProblemStatementCard.module.css.js";const n=({title:n,content:r,highlight:i,keyTakeaway:o,className:c,brainStormIcon:m,customStyles:d})=>(console.log("content:::",r),e("div",Object.assign({className:`${s.card} ${null!=c?c:""}`,style:null==d?void 0:d.problemCard},{children:[e("div",Object.assign({className:s.header,style:null==d?void 0:d.problemHeader},{children:[a(l,{customStyles:d,brainStormIcon:m}),a("div",Object.assign({className:s.titleWrapper,style:null==d?void 0:d.problemTitleWrapper},{children:a("h2",Object.assign({className:s.title,style:null==d?void 0:d.problemTitle},{children:n}))}))]})),a("div",Object.assign({className:s.contentWrapper,style:null==d?void 0:d.contentWrapper},{children:a("p",Object.assign({className:s.content,style:null==d?void 0:d.problemContent},{children:a(t,Object.assign({className:s.markdown},{children:r.replace(/\\n/g,"\n")}))}))})),a("div",Object.assign({className:s.takeawayContainer,style:null==d?void 0:d.takeawayContainer},{children:o.map((e,t)=>a("span",Object.assign({className:`${s.takeaway} \n ${0===t?s.firstTakeaway:""}`,style:null==d?void 0:d.takeawayPill},{children:e}),`${t}-${e}`))}))]})));export{n as default};
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{jsx as t}from"react/jsx-runtime";const e=({height:e=16,width:i=16})=>t("svg",Object.assign({width:i,height:e,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M3 0.5H2.9C2.05992 0.5 1.63988 0.5 1.31901 0.66349C1.03677 0.8073 0.8073 1.03677 0.66349 1.31901C0.5 1.63988 0.5 2.05992 0.5 2.9V3M3 9.5H2.9C2.05992 9.5 1.63988 9.5 1.31901 9.33651C1.03677 9.1927 0.8073 8.96323 0.66349 8.68099C0.5 8.36012 0.5 7.94008 0.5 7.1V7M9.5 3V2.9C9.5 2.05992 9.5 1.63988 9.33651 1.31901C9.1927 1.03677 8.96323 0.8073 8.68099 0.66349C8.36012 0.5 7.94008 0.5 7.1 0.5H7M9.5 7V7.1C9.5 7.94008 9.5 8.36012 9.33651 8.68099C9.1927 8.96323 8.96323 9.1927 8.68099 9.33651C8.36012 9.5 7.94008 9.5 7.1 9.5H7",stroke:"#141414","stroke-linecap":"round","stroke-linejoin":"round"})}));export{e as default};
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{jsx as e,jsxs as l}from"react/jsx-runtime";import{Dialog as s}from"@mui/material";import i from"./ImagePreviewDialog.module.css.js";const a=({open:a,handleClose:o,CloseIcon:c,src:n,styles:t})=>e(s,Object.assign({maxWidth:"lg",onClose:o,open:a},{children:l("div",Object.assign({className:i.container,style:null==t?void 0:t.container},{children:[l("div",Object.assign({className:i.header,style:null==t?void 0:t.header},{children:[e("h1",Object.assign({className:i.title,style:null==t?void 0:t.title},{children:"Image Preview"})),e("div",Object.assign({className:i.closeIconWrapper,style:null==t?void 0:t.closeIconWrapper,onClick:o},{children:e(c,{className:i.closeIcon,style:null==t?void 0:t.closeIcon})}))]})),e("img",{src:n,alt:"Preview",className:i.image,style:null==t?void 0:t.image})]}))}));export{a as default};
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{jsx as e,jsxs as o}from"react/jsx-runtime";import t from"./WebCitationIcon.js";import r from"./Webcitation.module.css.js";const n=({label:n,url:s,customStyles:i,customIcons:l})=>{const a=(null==l?void 0:l.webCitationIcon)||e(t,{});return o("a",Object.assign({className:r.link,style:null==i?void 0:i.headerLink,target:"_blank",rel:"noopener noreferrer",href:s},{children:[n,a]}))};export{n as default};
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{jsx as C,jsxs as i}from"react/jsx-runtime";const t=()=>C("div",{children:i("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[i("g",Object.assign({clipPath:"url(#clip0_3025_73390)"},{children:[C("path",{d:"M13.82 14.0039H9.66C9.56 13.3439 9.5 12.6839 9.5 12.0039C9.5 11.3239 9.56 10.6539 9.66 10.0039H14.34C14.43 10.6539 14.5 11.3239 14.5 12.0039C14.5 12.5039 14.46 13.0039 14.4 13.4639C15 12.9639 15.72 12.5739 16.5 12.3239V12.0039C16.5 11.3239 16.44 10.6639 16.36 10.0039H19.74C19.9 10.6439 20 11.3139 20 12.0039V12.1839C20.7 12.3539 21.35 12.6339 21.95 13.0039C22 12.6839 22 12.3439 22 12.0039C22 6.50391 17.5 2.00391 12 2.00391C6.47 2.00391 2 6.50391 2 12.0039C2 17.5039 6.5 22.0039 12 22.0039C12.34 22.0039 12.68 22.0039 13 21.9539C12.59 21.2939 12.29 20.5539 12.13 19.7539C12.09 19.8239 12.05 19.8939 12 19.9639C11.17 18.7639 10.5 17.4339 10.09 16.0039H12.5C12.81 15.2539 13.26 14.5839 13.82 14.0039ZM18.92 8.00391H15.97C15.6565 6.76552 15.1931 5.57001 14.59 4.44391C16.43 5.07391 17.96 6.34391 18.92 8.00391ZM12 4.03391C12.83 5.23391 13.5 6.57391 13.91 8.00391H10.09C10.5 6.57391 11.17 5.23391 12 4.03391ZM4.26 14.0039C4.1 13.3639 4 12.6939 4 12.0039C4 11.3139 4.1 10.6439 4.26 10.0039H7.64C7.56 10.6639 7.5 11.3239 7.5 12.0039C7.5 12.6839 7.56 13.3439 7.64 14.0039H4.26ZM5.08 16.0039H8C8.35 17.2539 8.8 18.4539 9.4 19.5639C7.57827 18.9362 6.04429 17.6721 5.08 16.0039ZM8 8.00391H5.08C6.03864 6.33094 7.57466 5.06515 9.4 4.44391C8.8 5.55391 8.35 6.75391 8 8.00391Z",fill:"#5C75F4"}),C("path",{d:"M16.01 14.9539C14.8502 14.9539 13.91 15.8941 13.91 17.0539C13.9121 18.1852 14.8099 19.1115 15.9405 19.1489L14.61 21.9539H16.01L17.9074 17.9539C18.0416 17.6709 18.1026 17.365 18.11 17.0539C18.11 15.8941 17.1698 14.9539 16.01 14.9539ZM21.61 14.9539C20.4502 14.9539 19.51 15.8941 19.51 17.0539C19.5121 18.1852 20.4099 19.1115 21.5405 19.1489L20.21 21.9539H21.61L23.5074 17.9539C23.6416 17.6709 23.7026 17.365 23.71 17.0539C23.71 15.8941 22.7698 14.9539 21.61 14.9539Z",fill:"#5C75F4"})]})),C("defs",{children:C("clipPath",Object.assign({id:"clip0_3025_73390"},{children:C("rect",{width:"24",height:"24",fill:"white"})}))})]}))});export{t as default};
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{jsx as t,jsxs as o}from"react/jsx-runtime";import e from"./WebCitationIcon.js";import n from"./WebCitation.js";import i from"../../../../CitationRenderer/CitationRenderer.js";const r=({label:r,url:l,customStyles:s,customIcons:a})=>{const c=(null==a?void 0:a.webCitationIcon)||t(e,{});return t(i,{inLineCitation:!0,citationTitle:r,chevronDownComponent:c,chevronUpComponent:c,citationComponent:o("div",Object.assign({className:"p-4 border rounded-lg bg-white mt-2",style:null==s?void 0:s.content},{children:[t("p",Object.assign({className:"text-sm text-gray-600 mb-2",style:null==s?void 0:s.footerText},{children:"Source Link:"})),t(n,{label:r,url:l,customStyles:s,customIcons:a})]})),styles:{pillButton:Object.assign({margin:"0px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==s?void 0:s.pill)}})};export{r as default};
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{jsx as e,jsxs as i}from"react/jsx-runtime";import{CircularProgress as l}from"@mui/material";import{SquareArrowOutUpRight as t}from"lucide-react";import{useState as s,useEffect as o}from"react";import r from"./WebCitationWithImageContent.module.css.js";import{useRequirementAI as n}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./ImagePreviewDialog.js";import c from"./FullScreenIcon.js";const d=d=>{var m,u,g,v,h,y,p,f,b,S,j,k,L,I,N;const{queryClient:P,useGetSignedUrlQuery:C,useGetSignedUrlMutation:O}=n().apiCachingConfig,U=["getSignedUrl",d.gsUtilPath],{data:F}=C(d.gsUtilPath,U),{mutate:W,isPending:w}=O(d.gsUtilPath),[x,D]=s(!1),q=(null===(m=d.customIcons)||void 0===m?void 0:m.FullScreenIcon)||e(c,{});return o(()=>{if(!d.gsUtilPath)return void console.error("error","Error","Please provide valid gsUtilPath.");P.getQueryData(U)||w||W({gsUtilPath:d.gsUtilPath})},[d.gsUtilPath,P,U,W,w]),i("div",Object.assign({className:r.container,style:null===(u=d.customStyles)||void 0===u?void 0:u.content},{children:[e("div",Object.assign({className:r.header,style:null===(g=d.customStyles)||void 0===g?void 0:g.header},{children:e("div",Object.assign({className:r.headerLeft,style:null===(v=d.customStyles)||void 0===v?void 0:v.headerLeft},{children:e("a",Object.assign({className:r.headerLink,style:null===(h=d.customStyles)||void 0===h?void 0:h.headerLink,target:"_blank",rel:"noopener noreferrer",href:d.url},{children:d.label}))}))})),w?i("div",Object.assign({className:r.loadingContainer,style:null===(y=d.customStyles)||void 0===y?void 0:y.loadingContainer},{children:[e(l,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),e("span",Object.assign({className:r.loadingLabel,style:null===(p=d.customStyles)||void 0===p?void 0:p.loadingLabel},{children:"Loading Image..."}))]})):F&&i("div",Object.assign({className:r.imageWrapper,style:null===(f=d.customStyles)||void 0===f?void 0:f.imageWrapper},{children:[e("img",{src:F,alt:"images",className:r.image,style:null===(b=d.customStyles)||void 0===b?void 0:b.image,onError:e=>{e.target.src="path/to/fallback-image.png",console.error("Failed to load image from signed URL")}}),e("div",Object.assign({className:r.fullscreenButton,style:null===(S=d.customStyles)||void 0===S?void 0:S.fullscreenButton,onClick:()=>D(!0)},{children:q})),e(a,{open:x,handleClose:()=>D(!1),src:F,CloseIcon:null==d?void 0:d.PreviewDialogCloseIcon,styles:null===(j=d.customStyles)||void 0===j?void 0:j.previewDialog})]})),e("div",Object.assign({className:r.footer,style:null===(k=d.customStyles)||void 0===k?void 0:k.footer},{children:i("div",Object.assign({className:r.footerInner,style:null===(L=d.customStyles)||void 0===L?void 0:L.footerText},{children:[e("span",{children:"Open link in new tab to read in detail"}),i("a",Object.assign({className:r.visitLink,style:null===(I=d.customStyles)||void 0===I?void 0:I.footerLink,href:d.url,target:"_blank",rel:"noopener noreferrer"},{children:[e("span",{children:"Visit Link"}),e(t,{className:r.visitLinkIcon,style:null===(N=d.customStyles)||void 0===N?void 0:N.visitLinkIcon})]}))]}))}))]}))};export{d as default};
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{jsx as t}from"react/jsx-runtime";import o from"./WebCitationWithImageContent.js";import i from"./WebCitationIcon.js";import n from"../../../../CitationRenderer/CitationRenderer.js";const e=({title:e,citation:a,customStyles:r,customIcons:l})=>{var c,s,d,u;const p=(null==l?void 0:l.webCitationIcon)||t(i,{});return t(n,{inLineCitation:!0,citationTitle:e,citationId:`web-citation-${a.citation_number}`,chevronDownComponent:p,chevronUpComponent:p,citationComponent:t(o,{gsUtilPath:(null===(c=a.customMetadata)||void 0===c?void 0:c.screenshot_url)||(null===(s=a.customMetadata)||void 0===s?void 0:s.gs_util_url)||"",relevanceScore:null===(d=a.customMetadata)||void 0===d?void 0:d.relevance_score,url:(null===(u=a.customMetadata)||void 0===u?void 0:u.link)||"",label:e,PreviewDialogCloseIcon:()=>t("span",{children:"X"}),customStyles:r,customIcons:l}),styles:{pillButton:Object.assign({margin:"0px 10px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==r?void 0:r.pill),citationContent:Object.assign({width:"100%",background:"transparent",marginTop:"10px"},null==r?void 0:r.content)}})};export{e as default};
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{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as n,useEffect as l}from"react";import{Pencil as o,Save as a,X as s}from"lucide-react";import{preprocessUserStoryForEdit as r,formatMarkdown as d,postprocessUserStoryAfterEdit as c}from"../../utils/user-story.utils.js";import u from"../userstory-with-citation/UserStoryWithCitation.js";import v from"./PartialRequirementContent.module.css.js";import{Tooltip as m}from"@mui/material";import{useRequirementAI as p}from"../RequirementAIWrapper/RequirementAIWrapper.js";import g from"../RichTextEditor/RichTextEditor.js";const y=({loadingPartialRequirements:y,localUserStory:C,setLocalUserStory:b,onCraFlowDiffAgentAction:h,disableEditing:j,isCraflow:S=!0,onCraAccept:R,onCraReject:O,CDNeededInChip:q})=>{var f,P,w,B,N,D,A,k,E,U,x,W,I,T,z,F,L,H;const[M,V]=n(!1),[G,J]=n(""),{customStyles:K,segmentComponentConfig:Q}=p();l(()=>{j&&V(!1)},[j]),l(()=>{var e;J(null===(e=null==C?void 0:C[0])||void 0===e?void 0:e.value)},[C]);if(y)return e("div",Object.assign({className:v.skeletonWrapper,style:null===(f=null==K?void 0:K.PartialRequirementContentStyles)||void 0===f?void 0:f.skeletonWrapper},{children:[1,2,3,4,5].map(t=>{var i;return e("div",{className:v.skeletonLine,style:null===(i=null==K?void 0:K.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},t)})}));const X=!G||""===G.trim();return t("div",Object.assign({className:v.wrapper,style:null===(P=null==K?void 0:K.PartialRequirementContentStyles)||void 0===P?void 0:P.wrapper},{children:[e("div",Object.assign({className:v.actionBar,style:null===(w=null==K?void 0:K.PartialRequirementContentStyles)||void 0===w?void 0:w.actionBar},{children:M?t(i,{children:[t("span",Object.assign({className:v.editingBadge,style:null===(A=null==K?void 0:K.PartialRequirementContentStyles)||void 0===A?void 0:A.editingBadge},{children:[e("span",{className:v.editingDot,style:null===(k=null==K?void 0:K.PartialRequirementContentStyles)||void 0===k?void 0:k.editingDot}),"Editing"]})),e("div",{className:v.btnDivider,style:null===(E=null==K?void 0:K.PartialRequirementContentStyles)||void 0===E?void 0:E.btnDivider}),e(m,Object.assign({title:X?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:Object.assign({},null===(U=null==K?void 0:K.PartialRequirementContentStyles)||void 0===U?void 0:U.headerTooltip)}}},{children:e("span",{children:e("button",Object.assign({className:v.saveBtn,style:Object.assign(Object.assign(Object.assign({},null===(x=null==K?void 0:K.PartialRequirementContentStyles)||void 0===x?void 0:x.actionBtn),null===(W=null==K?void 0:K.PartialRequirementContentStyles)||void 0===W?void 0:W.saveBtn),{opacity:X?.5:1,cursor:X?"not-allowed":"pointer"}),onClick:()=>{X||(b(e=>{const t=Object.assign(Object.assign({},e[0]),{value:c(G)});return null==h||h("accept",[t]),[t]}),V(!1))},disabled:X},{children:e(a,{size:16})}))})})),e("button",Object.assign({className:v.cancelBtn,style:Object.assign(Object.assign({},null===(I=null==K?void 0:K.PartialRequirementContentStyles)||void 0===I?void 0:I.actionBtn),null===(T=null==K?void 0:K.PartialRequirementContentStyles)||void 0===T?void 0:T.cancelBtn),onClick:()=>{var e;J(null===(e=null==C?void 0:C[0])||void 0===e?void 0:e.value),V(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:e(s,{size:16})}))]}):e(m,Object.assign({title:j?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:Object.assign({},null===(B=null==K?void 0:K.PartialRequirementContentStyles)||void 0===B?void 0:B.headerTooltip)}}},{children:e("span",{children:e("button",Object.assign({className:v.editBtn,style:Object.assign(Object.assign(Object.assign({},null===(N=null==K?void 0:K.PartialRequirementContentStyles)||void 0===N?void 0:N.actionBtn),null===(D=null==K?void 0:K.PartialRequirementContentStyles)||void 0===D?void 0:D.editBtn),{opacity:j?.5:1,cursor:j?"not-allowed":"pointer"}),onClick:()=>{j||V(!0)},disabled:j,"aria-label":"Edit requirement"},{children:e(o,{size:16})}))})}))})),e("div",M?Object.assign({className:v.editorContainer,style:null===(z=null==K?void 0:K.PartialRequirementContentStyles)||void 0===z?void 0:z.editorContainer},{children:e(g,{minHeight:"100%",height:"100%",type:"string",value:r(d((null===(F=null==C?void 0:C[0])||void 0===F?void 0:F.value)||"")||""),handleUpdateState:(e,t)=>{J(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):Object.assign({className:v.viewContainer,style:null===(L=null==K?void 0:K.PartialRequirementContentStyles)||void 0===L?void 0:L.viewContainer},{children:e(u,{message:d((null===(H=null==C?void 0:C[0])||void 0===H?void 0:H.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:C,setCraUserStory:b,onCraFlowDiffAgentAction:h,displayActionButtons:!M},isCraflow:S,onCraAccept:R,onCraReject:O,customStyles:null==K?void 0:K.UserStoryWithCitationCustomStyles,CDNeededInChip:q})}))]}))};export{y as PartialRequirementContent,y as default};
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{jsx as e,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronUp as s,ChevronDown as l,Check as t,SquareArrowOutUpRight as a,Loader2 as r}from"lucide-react";import c from"./CustomChatCrRedirection.module.css.js";import d from"../ai-reasoning/AiReasoningCitationContent.js";import g from"../../icons/CognitiveDecision.js";import{Tooltip as u}from"@mui/material";function p({isDefaultOpen:p,processItemId:m,isCompleted:v,mode:b,msg:j,type:h,id:O,aiReason:y,text:f,headerText:C,decisionStrength:x,statusUi:D,panelRef:N,onHandleSend:T,onRedirectClick:I,gapType:S,isGenerating:k=!1,customStyles:R,customIcons:B,cognitiveDecisionHeaders:W}){const[P,H]=o(p),$=(null==B?void 0:B.highConfidence)||e(g,{}),A=()=>{"cra"===b?null==T||T(`Discuss ambiguities on ${f}`,O):null==T||T(`Deep Dive into ${S} ${C}: ${f}`,O)};return i("div",Object.assign({className:[c.outerWrapper,k?c.outerWrapperDisabled:""].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.redirectionOuterWrapper),k?null==R?void 0:R.redirectionOuterWrapperDisabled:{})},{children:[i("div",Object.assign({className:[c.card,k?c.cardDisabled:c.cardInteractive].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.redirectionCard),k?null==R?void 0:R.redirectionCardDisabled:null==R?void 0:R.redirectionCardInteractive)},{children:[i("div",Object.assign({className:c.leftSide,style:null==R?void 0:R.redirectionLeftSide},{children:[e(u,Object.assign({title:C+" "+f,placement:"top",slotProps:{tooltip:{sx:Object.assign({},null==R?void 0:R.headerTooltip)}}},{children:i("span",Object.assign({className:c.textBlock,style:null==R?void 0:R.redirectionTextBlock},{children:[C&&i("span",Object.assign({className:c.headerText,style:null==R?void 0:R.redirectionHeaderText},{children:[C,f?" ":""]})),f]}))})),i("span",Object.assign({onClick:e=>{e.stopPropagation(),k||H(!P)},className:[c.reasoningToggle,k?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.reasoningToggle),k?null==R?void 0:R.reasoningToggleDisabled:null==R?void 0:R.reasoningToggleActive)},{children:[$,e(P?s:l,{className:c.chevronIcon,style:null==R?void 0:R.chevronIcon})]}))]})),v?e("div",Object.assign({className:c.completeTickWrapper,style:null==R?void 0:R.completeTickWrapper},{children:e(t,{color:(null==R?void 0:R.checkColor)||"green"})})):i(n,{children:["risk-gap"===b&&i("div",Object.assign({className:c.rightSide,style:null==R?void 0:R.redirectionRightSide},{children:[e("button",Object.assign({disabled:k,className:[c.fixButton,k?c.fixButtonDisabled:""].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.redirectionFixButton),k?null==R?void 0:R.fixButtonDisabled:{}),onClick:e=>{e.stopPropagation(),k||A()}},{children:"Fix"})),e(a,{onClick:k?void 0:()=>{k||null==I||I({type:h,id:O,aiReason:y,msg:j,meta:{headerText:C,decisionStrength:x,text:f}})},size:18,className:[k?c.redirectIconDisabled:c.redirectIcon].join(" "),style:Object.assign({},k?null==R?void 0:R.redirectIconDisabled:null==R?void 0:R.redirectIcon)})]})),"cra"===b&&!p&&e("div",Object.assign({className:c.rightSide,style:null==R?void 0:R.redirectionRightSide},{children:m===O?e("div",Object.assign({className:c.loaderWrapper,style:null==R?void 0:R.loaderWrapper},{children:e(r,{size:16,className:c.loaderIcon,color:"grey",style:Object.assign({animation:"spin 1s linear infinite"},null==R?void 0:R.loaderIcon)})})):e("button",Object.assign({className:[c.clarifyButton].join(" "),style:Object.assign({color:k?"grey":""},null==R?void 0:R.redirectionClarifyButton),disabled:k,onClick:e=>{e.stopPropagation(),A()}},{children:"Clarify"}))}))]})]})),P&&e(d,{label:"cra"===b?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==y?void 0:y.Reasoning)||"",gap:(null==y?void 0:y.Gap)||"",relevance_score:Number(null==y?void 0:y.Confidence_score),explanation:(null==y?void 0:y.explanation)||""},onSelectProceed:A,customStyles:null==R?void 0:R.aiReasoningStyles,customIcons:B,cognitiveDecisionHeaders:W})]}))}export{p as CustomChatCrRedirection};
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{__rest as e}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useState as r,useMemo as i,useEffect as n,Children as a,isValidElement as l}from"react";import{capitalize as c}from"lodash";import{GapFilterContentWrapper as d}from"./GapFilterContentWrapper.js";import{GapFilterItem as s}from"./GapFilterItem.js";import{CustomChatCrRedirection as g}from"./CustomChatCrRedirection.js";import{SirenIcon as u,WarningIcon as p,SupportIcon as m}from"./gapFilterSvgs.js";import b from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";const C=["critical","recommendation","warning"];function f(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function y(t){return a.toArray(t).filter(e=>l(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(t=>{var o,r;const i=t.props,{children:n}=i,a=e(i,["children"]),l={};Object.keys(a).forEach(e=>{e.startsWith("data-")||(l[e]=a[e])});const c=function(e){const t={};return Object.keys(e).forEach(o=>{o.startsWith("data-")&&(t[o.replace(/^data-/,"")]=e[o])}),t}(a),d=a["decision-strength"],s=a["data-is-completed"];return{text:n,headerText:a.headertext,tags:a.tags,dataAttrs:c,decisionStrength:d,attrs:l,type:"gapfilteritem"===t.type?"gapfilteritem":"crredirection",score:a.score,isCompleted:s,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}})}const 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]"}},v=({isDefaultOpen:e,processItemId:a,mode:l,node:v,children:x,type:S,supportedmodes:k="","decision-strength":I="",pendingdata:R="",isGeneratingGap:j=!1,selectedGapItemId:A="",onItemSelect:F,onHandleSend:B,onModeAction:T,msg:w,panelRef:G,getAccordionState:O,setAccordionState:D,registerGapFilterBlockCount:N,getShowGapReviewButtonType:E,customStyles:W,customIcons:$,cognitiveDecisionHeaders:H,onRedirectClick:U})=>{const q=S,z=f(I),[L,M]=r(()=>{var t;const o=null!==(t=null==O?void 0:O(q))&&void 0!==t?t:"";return"true"!==e||o?o:q}),_=e=>{M(e),null==D||D(q,e)},J=y(x),K=i(()=>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:t(u,{}),label:"risk-gap"===l?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:t(p,{}),label:"risk-gap"===l?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:t(m,{}),label:"risk-gap"===l?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:t(m,{}),label:"",decisionStrength:""}},Q=i(()=>{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:c(q),decisionStrength:z||""};var e},[q,z]);n(()=>{null==N||N(q,J.length)},[q,J.length,N]);const V=(e,t,o={})=>{if(j)return;const r=`${K[e].categoryId}-${t}`;null==F||F(r);const i=Object.assign(Object.assign({},K[e].items[t].dataAttrs),o);null==T||T(k,i)};return E&&E(),t(d,Object.assign({mode:l,type:q,config:Q,count:J.length,handleReviewClick:()=>{J.length>0&&_(q)},openAccordion:L,onAccordionChange:e=>{_(L===e?"":e)},shouldShowReviewButton:!1,pendingData:R,customStyles:W},{children:K.map((e,r)=>o("div",Object.assign({className:b.categoryGroup,style:null==W?void 0:W.categoryGroup},{children:["gapfilteritem"===e.type&&"Uncategorized"!==e.categoryName&&t("p",Object.assign({className:b.categoryLabel,style:null==W?void 0:W.categoryLabel},{children:e.categoryName})),e.items.map((o,i)=>{var n,c,d,u;const p=o.attrs||{},m=null===(n=o.dataAttrs)||void 0===n?void 0:n["cognitive-reasoning"],C=p.id||(null===(c=o.dataAttrs)||void 0===c?void 0:c.id)||"",f="I"===C[0]?"UI_REF":"CHAT_REF",y=null===(d=null==w?void 0:w.contextAwareAgentReasoning)||void 0===d?void 0:d[m],v=o.isCompleted,x="true"===p.isDefaultOpen||"true"===p.isdefaultopen;return"gapfilteritem"===o.type?t("div",Object.assign({className:[b.gapFilterItemWrapper,"Uncategorized"!==e.categoryName?b.gapFilterItemWrapperIndented:""].join(" "),style:null==W?void 0:W.blockContainer},{children:t(s,{isDefaultOpen:x,isCompleted:v,mode:l,index:i,isSelected:A===`${e.categoryId}-${i}`,onClick:()=>V(r,i),onFixClick:()=>V(r,i,{triggerFrom:"fix"}),onRedirect:()=>V(r,i,{triggerFrom:"redirect"}),item:o,isGenerating:j,aiReason:y,panelRef:null!=G?G:{current:null},id:m,customStyles:W,customIcons:$,cognitiveDecisionHeaders:H})}),i):t("div",Object.assign({className:b.crRedirectionGroup,style:null==W?void 0:W.crRedirectionGroup},{children:t("div",Object.assign({className:b.crRedirectionInner,style:null==W?void 0:W.crRedirectionInner},{children:t(g,{isDefaultOpen:x,processItemId:a,isCompleted:v,mode:l,msg:w,type:f,text:o.text,headerText:o.headerText,decisionStrength:o.decisionStrength,id:C,gapType:q,onHandleSend:B,isGenerating:j,aiReason:y,onRedirectClick:U,statusUi:null!==(u=h[q])&&void 0!==u?u:h.recommendation,panelRef:null!=G?G:{current:null},customStyles:W,customIcons:$,cognitiveDecisionHeaders:H})}))}),i)})]}),`${e.categoryName}-${r}`))}))};export{v as GapFilterBlock,f 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{jsx as e,jsxs as n}from"react/jsx-runtime";import{Accordion as i,AccordionItem as r,AccordionTrigger as t,AccordionContent as c}from"../../shared/Accordian.js";import{Sparkles as l}from"lucide-react";import o from"./GapFilterContentWrapper.module.css.js";const a=({mode:a,type:s,config:d,count:g,openAccordion:u,children:m,shouldShowReviewButton:h=!1,onAccordionChange:v,handleReviewClick:b,pendingData:p,customStyles:j})=>{const y=()=>{switch(s){case"critical":return null==j?void 0:j.triggerLabelCritical;case"warning":return null==j?void 0:j.triggerLabelWarning;case"recommendation":return null==j?void 0:j.triggerLabelRecommendation;default:return{}}};return e(i,Object.assign({type:"single",collapsible:!0,className:o.accordion,value:u,onValueChange:e=>v(e),style:null==j?void 0:j.accordion},{children:n(r,Object.assign({value:s,className:o.accordionItem,style:null==j?void 0:j.accordionItem},{children:[e(t,Object.assign({chevronPosition:"end",className:o.accordionTrigger,hideChevron:h,style:null==j?void 0:j.accordionTrigger},{children:n("div",Object.assign({className:o.triggerInner,style:null==j?void 0:j.triggerInner},{children:[n("div",Object.assign({className:o.triggerLeft,style:null==j?void 0:j.triggerLeft},{children:[n("p",Object.assign({className:o.triggerLabel,style:Object.assign({color:d.labelColor},y())},{children:[d.label,n("span",Object.assign({className:o.triggerLabelCount,style:y()},{children:["(",g,")"]}))]})),p.length>0&&n("span",Object.assign({className:o.triggerPending,style:null==j?void 0:j.triggerPending},{children:["(",p,")"]}))]})),"risk-gap"===a&&e("div",Object.assign({className:o.triggerRight,style:null==j?void 0:j.triggerRight},{children:n("p",Object.assign({className:o.decisionStrengthBadge,style:Object.assign({backgroundColor:d.badgeBackgroundColor,color:d.badgeTextColor},(()=>{switch(s){case"critical":return null==j?void 0:j.decisionStrengthBadgeCritical;case"warning":return null==j?void 0:j.decisionStrengthBadgeWarning;case"recommendation":return null==j?void 0:j.decisionStrengthBadgeRecommendation;default:return{}}})())},{children:[e(l,{className:o.decisionStrengthIcon,style:null==j?void 0:j.decisionStrengthIcon}),d.decisionStrength]}))}))]}))})),e(c,Object.assign({className:o.accordionContent,style:null==j?void 0:j.accordionContent},{children:e("div",Object.assign({className:o.accordionContentInner,style:null==j?void 0:j.accordionContentInner},{children:m}))}))]}))}))};export{a 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{jsx as e,jsxs as o}from"react/jsx-runtime";import{SquareArrowOutUpRight as i,ChevronUp as t,ChevronDown as s}from"lucide-react";import{useState as n,useMemo as a}from"react";import{Tooltip as l}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},g=({isDefaultOpen:g,isCompleted:u,mode:p,index:v,isSelected:b,onClick:j,item:f,onFixClick:O,onRedirect:h,aiReason:x,panelRef:N,id:C,isGenerating:R=!1,customStyles:y,customIcons:T,cognitiveDecisionHeaders:S})=>{const[w,B]=n(g),k=(null==T?void 0:T.highConfidence)||e(d,{});a(()=>f.components?f.components.split("||"):[],[f.components]);const I=a(()=>f.score&&isNaN(parseInt(f.score))?0:f.score?parseInt(f.score):0,[f.score]),D=m(I);return e("div",Object.assign({className:c.outerWrapper,onClick:j,style:null==y?void 0:y.itemOuterWrapper},{children:o("div",Object.assign({className:c.innerCard,style:null==y?void 0:y.itemInnerCard},{children:[o("div",Object.assign({className:c.contentBlock,style:null==y?void 0:y.contentBlock},{children:[o("div",Object.assign({className:c.topRow,style:null==y?void 0:y.itemTopRow},{children:[e("div",Object.assign({className:[c.questionText,b?c.questionTextSelected:c.questionTextDefault].join(" "),style:Object.assign(Object.assign({},null==y?void 0:y.itemQuestionText),b?null==y?void 0:y.itemQuestionTextSelected:null==y?void 0:y.itemQuestionTextDefault)},{children:e(l,Object.assign({title:f.question||"",placement:"top"},{children:e("span",{className:c.questionSpan,style:null==y?void 0:y.itemQuestionSpan})}))})),o("div",Object.assign({className:c.actionsRow,style:null==y?void 0:y.itemActionsRow},{children:[I>0&&e("div",Object.assign({className:[c.scoreBadge,D.className].join(" "),style:Object.assign(Object.assign(Object.assign(Object.assign({},null==y?void 0:y.itemScoreBadge),I>90?null==y?void 0:y.itemScoreBadgeHigh:{}),I>=70&&I<=90?null==y?void 0:y.itemScoreBadgeMedium:{}),I<70?null==y?void 0:y.itemScoreBadgeLow:{})},{children:`${I}%`})),f.showFix&&e("button",Object.assign({className:c.fixButton,onClick:e=>{e.stopPropagation(),O()},style:null==y?void 0:y.itemFixButton},{children:"Fix"})),f.showRedirect&&e(i,{color:"#3b82f6",size:14,className:c.redirectIcon,onClick:e=>{e.stopPropagation(),h()},style:null==y?void 0:y.itemRedirectIcon})]}))]})),o("div",Object.assign({className:[c.bottomRow,b?c.bottomRowSelected:c.bottomRowDefault].join(" "),style:b?Object.assign(Object.assign({},null==y?void 0:y.itemBottomRow),null==y?void 0:y.bottomRowSelected):Object.assign(Object.assign({},null==y?void 0:y.itemBottomRow),null==y?void 0:y.bottomRowDefault)},{children:[o("span",Object.assign({className:c.gapTextSpan,style:null==y?void 0:y.itemGapText},{children:[(null==f?void 0:f.headerText)?e("span",Object.assign({className:c.gapHeaderText,style:null==y?void 0:y.itemGapHeaderText},{children:f.headerText})):o("span",Object.assign({className:c.gapHeaderText,style:null==y?void 0:y.itemGapHeaderText},{children:["Gap ",v+1,"."]}))," ",f.text]})),C&&o("span",Object.assign({onClick:e=>{e.stopPropagation(),R||B(!w)},className:[c.reasoningToggle,R?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:null==y?void 0:y.itemReasoningToggle},{children:[k,e(w?t:s,{className:c.chevronIcon,style:null==y?void 0:y.chevronIcon})]}))]}))]})),w&&e(r,{label:"cra"===p?"Clarify":"Select this option",aiReason:{id:"1",reason:x.Reasoning||"",gap:x.Gap||"",relevance_score:Number(x.Confidence_score),explanation:x.explanation||""},onSelectProceed:O,customStyles:null==y?void 0:y.aiReasoningStyles,customIcons:T,cognitiveDecisionHeaders:S})]}))}))};export{g as GapFilterItem,m 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{jsx as C,jsxs as i}from"react/jsx-runtime";const t=({width:i=12,height:t=12})=>C("div",{children:C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:i,height:t,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"})}))}),e=({width:t=12,height:e=12})=>C("div",{children:i("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:"0 0 12 12",fill:"none"},{children:[C("g",Object.assign({"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",Object.assign({id:"clip0_1100_58099"},{children:C("rect",{width:"12",height:"12",fill:"white"})}))})]}))}),h=({width:t=12,height:e=12})=>i("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:"0 0 12 12",fill:"none"},{children:[C("g",Object.assign({"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",Object.assign({id:"clip0_1100_58115"},{children:C("rect",{width:"12",height:"12",fill:"white"})}))})]}));export{e as SirenIcon,t as SupportIcon,h 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{__awaiter as e}from"tslib";import{jsx as l,jsxs as t}from"react/jsx-runtime";import{useState as n,useEffect as s,useMemo as i}from"react";import o from"@mui/material/Dialog";import a from"@mui/material/DialogTitle";import c from"@mui/material/DialogContent";import m from"@mui/material/DialogActions";import r from"@mui/material/IconButton";import d from"@mui/material/Radio";import{X as u,Info as b}from"lucide-react";import p from"./deleteSegmentDialog.module.css.js";const g=[{key:"this-segment",label:"This segment"},{key:"all-occurrences",label:"All occurrences of this segment"}],y=({open:y,onHide:h,onDelete:v,customDeleteStyles:f,customDeleteIcons:j})=>{const[O,N]=n(null),[k,D]=n(!1),C=(null==j?void 0:j.closeIcon)||l(u,{size:20}),x=(null==j?void 0:j.infoIcon)||l(b,{className:p.infoIcon});s(()=>{y&&(N(null),D(!1))},[y]);const B=i(()=>g.map(e=>Object.assign(Object.assign({},e),{label:"all-occurrences"===e.key?`${e.label}`:e.label})),[]),T=!O||k;return t(o,Object.assign({open:y,onClose:h,maxWidth:!1,PaperProps:{className:p.paper,style:null==f?void 0:f.paper}},{children:[t(a,Object.assign({className:p.title,style:null==f?void 0:f.title},{children:[l("span",Object.assign({className:p.titleText,style:null==f?void 0:f.titleText},{children:"Delete Segment"})),l(r,Object.assign({"aria-label":"close",onClick:h,className:p.closeButton,style:null==f?void 0:f.closeButton},{children:C}))]})),t(c,Object.assign({className:p.content,style:null==f?void 0:f.content},{children:[l("p",Object.assign({className:p.subtitle,style:null==f?void 0:f.subtitle},{children:"Choose what you'd like to delete."})),l("div",Object.assign({className:p.optionsContainer,style:null==f?void 0:f.optionsContainer},{children:B.map(e=>{const n=O===e.key;return t("label",Object.assign({htmlFor:`delete-segment-${e.key}`,className:`${p.optionLabel} ${n?p.optionSelected:""}`,style:Object.assign(Object.assign({},null==f?void 0:f.optionLabel),n?null==f?void 0:f.optionSelected:{})},{children:[l(d,{inputProps:{id:`delete-segment-${e.key}`},name:"delete-segment-scope",value:e.key,checked:n,onChange:()=>N(e.key),className:p.radio}),l("span",Object.assign({className:p.optionText,style:null==f?void 0:f.optionText},{children:e.label}))]}),e.key)})})),t("div",Object.assign({className:p.infoRow,style:null==f?void 0:f.infoRow},{children:[x,l("span",Object.assign({className:p.infoText,style:null==f?void 0:f.infoText},{children:"This action permanently deletes the selected segment(s) and cannot be undone."}))]}))]})),t(m,Object.assign({className:p.actions,style:null==f?void 0:f.actions},{children:[l("button",Object.assign({onClick:h,disabled:k,className:p.cancelButton,style:null==f?void 0:f.cancelButton},{children:"Cancel"})),t("button",Object.assign({onClick:()=>e(void 0,void 0,void 0,function*(){if(O){D(!0);try{yield v(O),h()}finally{D(!1)}}}),disabled:T,className:`${p.deleteButton} ${T?p.deleteButtonDisabled:""}`,style:Object.assign(Object.assign({},null==f?void 0:f.deleteButton),T?null==f?void 0:f.deleteButtonDisabled:{})},{children:[k&&l("span",{className:p.spinner}),"Delete segment"]}))]}))]}))};export{y as default};
1
+ import{jsx as e,jsxs as l}from"react/jsx-runtime";import{useState as t,useEffect as o,useMemo as n}from"react";import i from"@mui/material/Dialog";import s from"@mui/material/DialogTitle";import a from"@mui/material/DialogContent";import c from"@mui/material/DialogActions";import m from"@mui/material/IconButton";import r from"@mui/material/Radio";import{X as d,Info as u}from"lucide-react";import p from"./deleteSegmentDialog.module.css.js";const y=[{key:"this-segment",label:"This segment"},{key:"all-occurrences",label:"All occurrences of this segment"}],h=({open:h,onHide:v,onDelete:f,customDeleteStyles:b,customDeleteIcons:N})=>{const[g,k]=t(null),[D,C]=t(!1),x=(null==N?void 0:N.closeIcon)||e(d,{size:20}),B=(null==N?void 0:N.infoIcon)||e(u,{className:p.infoIcon});o(()=>{h&&(k(null),C(!1))},[h]);const T=n(()=>y.map(e=>({...e,label:"all-occurrences"===e.key?`${e.label}`:e.label})),[]),$=!g||D;return l(i,{open:h,onClose:v,maxWidth:!1,PaperProps:{className:p.paper,style:null==b?void 0:b.paper},children:[l(s,{className:p.title,style:null==b?void 0:b.title,children:[e("span",{className:p.titleText,style:null==b?void 0:b.titleText,children:"Delete Segment"}),e(m,{"aria-label":"close",onClick:v,className:p.closeButton,style:null==b?void 0:b.closeButton,children:x})]}),l(a,{className:p.content,style:null==b?void 0:b.content,children:[e("p",{className:p.subtitle,style:null==b?void 0:b.subtitle,children:"Choose what you'd like to delete."}),e("div",{className:p.optionsContainer,style:null==b?void 0:b.optionsContainer,children:T.map(t=>{const o=g===t.key;return l("label",{htmlFor:`delete-segment-${t.key}`,className:`${p.optionLabel} ${o?p.optionSelected:""}`,style:{...null==b?void 0:b.optionLabel,...o?null==b?void 0:b.optionSelected:{}},children:[e(r,{inputProps:{id:`delete-segment-${t.key}`},name:"delete-segment-scope",value:t.key,checked:o,onChange:()=>k(t.key),className:p.radio}),e("span",{className:p.optionText,style:null==b?void 0:b.optionText,children:t.label})]},t.key)})}),l("div",{className:p.infoRow,style:null==b?void 0:b.infoRow,children:[B,e("span",{className:p.infoText,style:null==b?void 0:b.infoText,children:"This action permanently deletes the selected segment(s) and cannot be undone."})]})]}),l(c,{className:p.actions,style:null==b?void 0:b.actions,children:[e("button",{onClick:v,disabled:D,className:p.cancelButton,style:null==b?void 0:b.cancelButton,children:"Cancel"}),l("button",{onClick:async()=>{if(g){C(!0);try{await f(g),v()}finally{C(!1)}}},disabled:$,className:`${p.deleteButton} ${$?p.deleteButtonDisabled:""}`,style:{...null==b?void 0:b.deleteButton,...$?null==b?void 0:b.deleteButtonDisabled:{}},children:[D&&e("span",{className:p.spinner}),"Delete segment"]})]})]})};export{h as default};
2
2
  //# sourceMappingURL=DeleteSegmentsDialog.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as e}from"tslib";import{jsx as t,jsxs as l}from"react/jsx-runtime";import{useState as s,useEffect as i}from"react";import n from"@mui/material/Dialog";import o from"@mui/material/DialogTitle";import a from"@mui/material/DialogContent";import c from"@mui/material/DialogActions";import r from"@mui/material/IconButton";import{X as m}from"lucide-react";import u from"./deleteSegmentDialog.module.css.js";import d from"./segment.module.css.js";const p=({open:p,onHide:g,onConfirm:b,customStyles:h,customIcons:f})=>{const[y,j]=s(!1),v=(null==f?void 0:f.closeIcon)||t(m,{size:20});i(()=>{p&&j(!1)},[p]);return l(n,Object.assign({open:p,onClose:g,maxWidth:!1,PaperProps:{className:u.paper,style:null==h?void 0:h.paper}},{children:[l(o,Object.assign({className:u.title,style:null==h?void 0:h.title},{children:[t("span",Object.assign({className:u.titleText,style:null==h?void 0:h.titleText},{children:"Rename this segment everywhere?"})),t(r,Object.assign({"aria-label":"close",onClick:g,className:u.closeButton,style:null==h?void 0:h.closeButton},{children:v}))]})),t(a,Object.assign({className:u.content,style:null==h?void 0:h.content},{children:l("p",Object.assign({className:u.subtitle,style:Object.assign({marginBottom:"24px",color:"#475569"},null==h?void 0:h.subtitle)},{children:["Renaming this segment will update its name across all ",t("strong",{children:"occurrences"})," where it is used. Do you want to continue?"]}))})),l(c,Object.assign({className:u.actions,style:null==h?void 0:h.actions},{children:[t("button",Object.assign({onClick:g,disabled:y,className:u.cancelButton,style:null==h?void 0:h.cancelButton},{children:"Cancel"})),l("button",Object.assign({onClick:()=>e(void 0,void 0,void 0,function*(){j(!0);try{yield b(),g()}catch(e){console.error("Failed to rename segment:",e)}finally{j(!1)}}),disabled:y,className:d.renameButton,style:Object.assign({},null==h?void 0:h.renameButton)},{children:[y&&t("span",{className:u.spinner}),"Rename segment"]}))]}))]}))};export{p as default};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as l,useEffect as o}from"react";import n from"@mui/material/Dialog";import i from"@mui/material/DialogTitle";import s from"@mui/material/DialogContent";import a from"@mui/material/DialogActions";import r from"@mui/material/IconButton";import{X as m}from"lucide-react";import c from"./deleteSegmentDialog.module.css.js";import u from"./segment.module.css.js";const d=({open:d,onHide:p,onConfirm:h,customStyles:y,customIcons:g})=>{const[f,v]=l(!1),N=(null==g?void 0:g.closeIcon)||e(m,{size:20});o(()=>{d&&v(!1)},[d]);return t(n,{open:d,onClose:p,maxWidth:!1,PaperProps:{className:c.paper,style:null==y?void 0:y.paper},children:[t(i,{className:c.title,style:null==y?void 0:y.title,children:[e("span",{className:c.titleText,style:null==y?void 0:y.titleText,children:"Rename this segment everywhere?"}),e(r,{"aria-label":"close",onClick:p,className:c.closeButton,style:null==y?void 0:y.closeButton,children:N})]}),e(s,{className:c.content,style:null==y?void 0:y.content,children:t("p",{className:c.subtitle,style:{marginBottom:"24px",color:"#475569",...null==y?void 0:y.subtitle},children:["Renaming this segment will update its name across all ",e("strong",{children:"occurrences"})," where it is used. Do you want to continue?"]})}),t(a,{className:c.actions,style:null==y?void 0:y.actions,children:[e("button",{onClick:p,disabled:f,className:c.cancelButton,style:null==y?void 0:y.cancelButton,children:"Cancel"}),t("button",{onClick:async()=>{v(!0);try{await h(),p()}catch(e){console.error("Failed to rename segment:",e)}finally{v(!1)}},disabled:f,className:u.renameButton,style:{...null==y?void 0:y.renameButton},children:[f&&e("span",{className:c.spinner}),"Rename segment"]})]})]})};export{d as default};
2
2
  //# sourceMappingURL=EditSegmentDialog.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as a}from"react/jsx-runtime";import l from"./segment.module.css.js";import{X as s}from"lucide-react";const t=({label:t,segmentExampleComponent:n,customStyles:i,handleCancelExample:c})=>e("div",Object.assign({className:`${l.exampleWrapper}`,style:Object.assign({},null==i?void 0:i.exampleWrapper)},{children:[a("div",Object.assign({className:`${l.exampleHeaderText} ${l.uppercase}`,style:Object.assign({},null==i?void 0:i.exampleHeaderText)},{children:`{${t}}`})),e("div",Object.assign({className:`${l.exampleContainer}`,style:Object.assign({},null==i?void 0:i.exampleContainer)},{children:[e("div",Object.assign({className:`${l.exampleHeader}`,style:Object.assign({},null==i?void 0:i.exampleHeader)},{children:[a("p",Object.assign({className:`${l.exampleHeaderText}`,style:Object.assign({},null==i?void 0:i.exampleHeaderText)},{children:"Example: "})),a("button",Object.assign({className:`${l.cancelButton}`,onClick:c,style:Object.assign({},null==i?void 0:i.cancelButton)},{children:a(s,{size:16})}))]})),null!=n?n:a("p",Object.assign({className:`${l.exampleHeaderText}`,style:Object.assign({},null==i?void 0:i.exampleHeaderText)},{children:"No example available..."}))]}))]}));export{t 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{__awaiter as e}from"tslib";import{jsx as t,jsxs as n,Fragment as i}from"react/jsx-runtime";import s,{useContext as o,useMemo as a}from"react";import{Pencil as l,Check as c,X as r,ArrowUpRight as d,Trash2 as m}from"lucide-react";import{cn as g}from"../../../UserStoryImport/lib/cn.js";import p from"./segment.module.css.js";import u from"./deleteSegmentDialog.module.css.js";import b from"./ExampleComponentWrapper.js";import j from"../ai-reasoning/AiReasoningCitationContent.js";import v from"./SegmentLoader.js";import"./segment-common.css.js";import{MarkdownStateContext as y}from"../../store/markdown-context.js";import h from"@mui/material/Dialog";import O from"@mui/material/IconButton";import f from"./DeleteSegmentsDialog.js";import C from"@mui/material/Tooltip";import S from"./EditSegmentDialog.js";const x=({id:x="Segment",label:I,children:E,segmentUUID:D,decisionStrength:N=80,aiReason:k,customStyles:w,customIcons:B,aiReasoningCitationCustomStyles:$,segmentExampleComponent:z,handleViewGlossary:L,isUpdatedSegment:W,onOpen:A,onDelete:R,onEdit:U,customDeleteStyles:M,customDeleteIcons:T,enabledSegmentActions:G})=>{var V,F;const{citationsMetadata:H,updateCitationsMetadata:K}=o(y),[q,J]=s.useState(!1),[P,Q]=s.useState(!1),[X,Y]=s.useState(!1),[Z,_]=s.useState(""),[ee,te]=s.useState(!1),{prefix:ne,inner:ie}=a(()=>(e=>{const t=e.match(/^(.*?)\s*\{([^}]+)\}\s*$/);return!t||t.length<3?{prefix:"",inner:e}:{prefix:t[1].trim(),inner:t[2].trim()}})(null!=I?I:""),[I]);s.useEffect(()=>{X||_(ie)},[X,ie]);const se=()=>e(void 0,void 0,void 0,function*(){if(U){const e=Z.toLowerCase();yield U(e)}Y(!1),te(!1)}),oe=()=>Y(!1),ae=(null==T?void 0:T.editIcon)||t(l,{size:14}),le=(null==T?void 0:T.checkIcon)||t(c,{size:16,color:"#16A34A"}),ce=(null==T?void 0:T.crossIcon)||t(r,{size:16,color:"#DC2626"}),re=a(()=>H.get(D),[H,D]),de=a(()=>(null==re?void 0:re.open)||!1,[re]),me=a(()=>re&&"loading"===re.state,[re]),ge=()=>e(void 0,void 0,void 0,function*(){const e=!de;if(J(!1),console.log("citation metadata::",e,k),e&&!(null==k?void 0:k.reason)){K(D,t=>{if(t){const e=Object.assign({},t);return e.state="loading",e}return{open:e,state:"loading"}});try{console.log("citation metadata:: onopen"),yield null==A?void 0:A()}finally{K(D,t=>{if(t){const n=Object.assign({},t);return n.state="ready",n.open=e,n}return{open:e,state:"ready"}})}}else console.log("citation metadata:: else block"),K(D,t=>{if(t){const n=Object.assign({},t);return n.open=e,n}return{open:e,state:me?"loading":"ready"}})});return n("div",Object.assign({className:`segment-wrapper-${x} ${p.segmentWrapper}`,style:Object.assign(Object.assign({},null==w?void 0:w.segmentWrapper),{display:"inline-flex",verticalAlign:"middle"})},{children:[n("div",Object.assign({className:`segment-${x}-container segmentContainer ${W?"updatedSegmentContainer":""}`,style:Object.assign({},null==w?void 0:w.container)},{children:[t("span",Object.assign({className:`segment-${x} segmentLabel ${W?"updatedSegmentLabel":""}`,style:Object.assign({},null==w?void 0:w.label)},{children:W?E:I})),t("button",Object.assign({className:`${p.segmentExplanationButtonContainer}`,style:Object.assign({},null==w?void 0:w.buttonContainer),onClick:ge},{children:t(d,{className:g(W&&p.updatedChevronIcon,p.cheveronIcon),style:Object.assign({},null==w?void 0:w.cheveronIcon)})}))]})),de&&t(h,Object.assign({open:!0,onClose:ge,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"xl",container:document.getElementById("#root")},{children:n("div",Object.assign({style:{minWidth:"50vw",paddingLeft:16,paddingRight:16,paddingTop:24,paddingBottom:24}},{children:[n("div",Object.assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16}},{children:[n("div",X?Object.assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[ne&&t("span",Object.assign({className:"segmentLabel",style:Object.assign({fontSize:18,fontWeight:600},null==w?void 0:w.label)},{children:ne})),n("div",Object.assign({className:p.editInputWrapper,style:null==w?void 0:w.editInputWrapper},{children:[t("input",{value:Z,onChange:e=>_(e.target.value),className:p.editInput,style:Object.assign(Object.assign({},null==w?void 0:w.editInput),{color:(null===(V=null==w?void 0:w.label)||void 0===V?void 0:V.color)?String(w.label.color):"#3B82F6",textTransform:"uppercase"}),autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&se(),"Escape"===e.key&&oe()}}),t(O,Object.assign({onClick:()=>{Z!==ie?(K(D,e=>e?Object.assign(Object.assign({},e),{open:!1}):{open:!1,state:me?"loading":"ready"}),te(!0)):Y(!1)},size:"small",style:null==w?void 0:w.editCheckIcon},{children:le})),t(O,Object.assign({onClick:oe,size:"small",style:null==w?void 0:w.editCrossIcon},{children:ce}))]}))]}):Object.assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[t("span",Object.assign({className:"segmentLabel",style:Object.assign({fontSize:18,fontWeight:600},null==w?void 0:w.label)},{children:null!=I?I:"SEGMENT NAME"})),(null==G?void 0:G.includes("edit"))&&t(C,Object.assign({title:"Edit segment",placement:"top",arrow:!0},{children:t("button",Object.assign({onClick:()=>Y(!0),className:p.headerEditButton,style:null==w?void 0:w.editIconButton},{children:ae}))}))]})),n("div",Object.assign({style:Object.assign({display:"flex",alignItems:"center",gap:"6px",flexShrink:0},null==w?void 0:w.headerActionsContainer)},{children:[(null==G?void 0:G.includes("delete"))&&t(C,Object.assign({title:"Delete segment",placement:"top",arrow:!0},{children:n("button",Object.assign({onClick:()=>{J(!1),Q(!0),K(D,e=>{if(e){const t=Object.assign({},e);return t.open=!1,t}return{open:!1,state:me?"loading":"ready"}})},className:u.headerDeleteButton},{children:[t(m,{size:14}),"Delete"]}))})),t(O,Object.assign({"aria-label":"close",onClick:ge,sx:e=>({padding:"4px",color:e.palette.grey[500]})},{children:t(r,{size:20})}))]}))]})),me?t(v,{customStyles:null==w?void 0:w.loadingSkeleton}):n(i,{children:[q&&!W&&t("div",Object.assign({style:{marginBottom:16}},{children:t(b,{label:null!=I?I:"",segmentExampleComponent:z,customStyles:Object.assign(Object.assign({},null==w?void 0:w.segmentExample),{exampleContainer:Object.assign(Object.assign({},null===(F=null==w?void 0:w.segmentExample)||void 0===F?void 0:F.exampleContainer),{width:"100%"})}),handleCancelExample:()=>{J(!1)}})})),W&&t("div",Object.assign({style:{marginBottom:16}},{children:t("div",Object.assign({className:`segment-${x}-container segmentContainer updatedSegmentContainer`,style:Object.assign({},null==w?void 0:w.container)},{children:t("span",Object.assign({className:`segment-${x} segmentLabel updatedSegmentLabel`,style:Object.assign({},null==w?void 0:w.label)},{children:E}))}))})),t("div",{children:t(j,{aiReason:k,customStyles:Object.assign(Object.assign({},$),{aiReasoningContent:Object.assign(Object.assign({},null==$?void 0:$.aiReasoningContent),{headerBar:{width:"auto"}}),aiReasoningAccordion:{header:{width:"auto"}}}),customIcons:B,isSegmentExplanation:!0,handleViewGlossary:L?()=>{K(D,e=>{if(e){const t=Object.assign({},e);return t.open=!1,t}return{open:!1,state:me?"loading":"ready"}}),null==L||L(x)}:void 0,handleViewExample:z?()=>{J(!0)}:void 0,isUpdatedSegment:W})})]})]}))})),t(f,{open:P,onHide:()=>{Q(!1)},customDeleteStyles:M,customDeleteIcons:T,onDelete:t=>e(void 0,void 0,void 0,function*(){yield null==R?void 0:R(t)})}),t(S,{open:ee,onHide:()=>{te(!1),Y(!1)},customStyles:M,customIcons:T,onConfirm:se})]}))};export{x as default};
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import l,{useContext as o,useMemo as i}from"react";import{Pencil as a,Check as s,X as r,ArrowUpRight as d,Trash2 as c}from"lucide-react";import{cn as m}from"../../../UserStoryImport/lib/cn.js";import p from"./segment.module.css.js";import u from"./deleteSegmentDialog.module.css.js";import g from"./ExampleComponentWrapper.js";import y from"../ai-reasoning/AiReasoningCitationContent.js";import h from"./SegmentLoader.js";import"./segment-common.css.js";import{MarkdownStateContext as v}from"../../store/markdown-context.js";import f from"@mui/material/Dialog";import C from"@mui/material/IconButton";import S from"./DeleteSegmentsDialog.js";import x from"@mui/material/Tooltip";import b from"./EditSegmentDialog.js";const I=({id:I="Segment",label:E,children:w,segmentUUID:D,decisionStrength:N=80,aiReason:k,customStyles:j,customIcons:B,aiReasoningCitationCustomStyles:$,segmentExampleComponent:z,handleViewGlossary:L,isUpdatedSegment:W,onOpen:A,onDelete:R,onEdit:U,customDeleteStyles:M,customDeleteIcons:T,enabledSegmentActions:G})=>{var V,F;const{citationsMetadata:H,updateCitationsMetadata:K}=o(v),[O,q]=l.useState(!1),[J,P]=l.useState(!1),[Q,X]=l.useState(!1),[Y,Z]=l.useState(""),[_,ee]=l.useState(!1),{prefix:te,inner:ne}=i(()=>(e=>{const t=e.match(/^(.*?)\s*\{([^}]+)\}\s*$/);return!t||t.length<3?{prefix:"",inner:e}:{prefix:t[1].trim(),inner:t[2].trim()}})(null!=E?E:""),[E]);l.useEffect(()=>{Q||Z(ne)},[Q,ne]);const le=async()=>{if(U){const e=Y.toLowerCase();await U(e)}X(!1),ee(!1)},oe=()=>X(!1),ie=(null==T?void 0:T.editIcon)||e(a,{size:14}),ae=(null==T?void 0:T.checkIcon)||e(s,{size:16,color:"#16A34A"}),se=(null==T?void 0:T.crossIcon)||e(r,{size:16,color:"#DC2626"}),re=i(()=>H.get(D),[H,D]),de=i(()=>(null==re?void 0:re.open)||!1,[re]),ce=i(()=>re&&"loading"===re.state,[re]),me=async()=>{const e=!de;if(q(!1),console.log("citation metadata::",e,k),e&&!(null==k?void 0:k.reason)){K(D,t=>{if(t){const e={...t};return e.state="loading",e}return{open:e,state:"loading"}});try{console.log("citation metadata:: onopen"),await(null==A?void 0:A())}finally{K(D,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"),K(D,t=>{if(t){const n={...t};return n.open=e,n}return{open:e,state:ce?"loading":"ready"}})};return t("div",{className:`segment-wrapper-${I} ${p.segmentWrapper}`,style:{...null==j?void 0:j.segmentWrapper,display:"inline-flex",verticalAlign:"middle"},children:[t("div",{className:`segment-${I}-container segmentContainer ${W?"updatedSegmentContainer":""}`,style:{...null==j?void 0:j.container},children:[e("span",{className:`segment-${I} segmentLabel ${W?"updatedSegmentLabel":""}`,style:{...null==j?void 0:j.label},children:W?w:E}),e("button",{className:`${p.segmentExplanationButtonContainer}`,style:{...null==j?void 0:j.buttonContainer},onClick:me,children:e(d,{className:m(W&&p.updatedChevronIcon,p.cheveronIcon),style:{...null==j?void 0:j.cheveronIcon}})})]}),de&&e(f,{open:!0,onClose:me,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"xl",container:document.getElementById("#root"),children:t("div",{style:{minWidth:"50vw",paddingLeft:16,paddingRight:16,paddingTop:24,paddingBottom:24},children:[t("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16},children:[t("div",Q?{style:{display:"flex",alignItems:"center",gap:"8px"},children:[te&&e("span",{className:"segmentLabel",style:{fontSize:18,fontWeight:600,...null==j?void 0:j.label},children:te}),t("div",{className:p.editInputWrapper,style:null==j?void 0:j.editInputWrapper,children:[e("input",{value:Y,onChange:e=>Z(e.target.value),className:p.editInput,style:{...null==j?void 0:j.editInput,color:(null===(V=null==j?void 0:j.label)||void 0===V?void 0:V.color)?String(j.label.color):"#3B82F6",textTransform:"uppercase"},autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&le(),"Escape"===e.key&&oe()}}),e(C,{onClick:()=>{Y!==ne?(K(D,e=>e?{...e,open:!1}:{open:!1,state:ce?"loading":"ready"}),ee(!0)):X(!1)},size:"small",style:null==j?void 0:j.editCheckIcon,children:ae}),e(C,{onClick:oe,size:"small",style:null==j?void 0:j.editCrossIcon,children:se})]})]}:{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e("span",{className:"segmentLabel",style:{fontSize:18,fontWeight:600,...null==j?void 0:j.label},children:null!=E?E:"SEGMENT NAME"}),(null==G?void 0:G.includes("edit"))&&e(x,{title:"Edit segment",placement:"top",arrow:!0,children:e("button",{onClick:()=>X(!0),className:p.headerEditButton,style:null==j?void 0:j.editIconButton,children:ie})})]}),t("div",{style:{display:"flex",alignItems:"center",gap:"6px",flexShrink:0,...null==j?void 0:j.headerActionsContainer},children:[(null==G?void 0:G.includes("delete"))&&e(x,{title:"Delete segment",placement:"top",arrow:!0,children:t("button",{onClick:()=>{q(!1),P(!0),K(D,e=>{if(e){const t={...e};return t.open=!1,t}return{open:!1,state:ce?"loading":"ready"}})},className:u.headerDeleteButton,children:[e(c,{size:14}),"Delete"]})}),e(C,{"aria-label":"close",onClick:me,sx:e=>({padding:"4px",color:e.palette.grey[500]}),children:e(r,{size:20})})]})]}),ce?e(h,{customStyles:null==j?void 0:j.loadingSkeleton}):t(n,{children:[O&&!W&&e("div",{style:{marginBottom:16},children:e(g,{label:null!=E?E:"",segmentExampleComponent:z,customStyles:{...null==j?void 0:j.segmentExample,exampleContainer:{...null===(F=null==j?void 0:j.segmentExample)||void 0===F?void 0:F.exampleContainer,width:"100%"}},handleCancelExample:()=>{q(!1)}})}),W&&e("div",{style:{marginBottom:16},children:e("div",{className:`segment-${I}-container segmentContainer updatedSegmentContainer`,style:{...null==j?void 0:j.container},children:e("span",{className:`segment-${I} segmentLabel updatedSegmentLabel`,style:{...null==j?void 0:j.label},children:w})})}),e("div",{children:e(y,{aiReason:k,customStyles:{...$,aiReasoningContent:{...null==$?void 0:$.aiReasoningContent,headerBar:{width:"auto"}},aiReasoningAccordion:{header:{width:"auto"}}},customIcons:B,isSegmentExplanation:!0,handleViewGlossary:L?()=>{K(D,e=>{if(e){const t={...e};return t.open=!1,t}return{open:!1,state:ce?"loading":"ready"}}),null==L||L(I)}:void 0,handleViewExample:z?()=>{q(!0)}:void 0,isUpdatedSegment:W})})]})]})}),e(S,{open:J,onHide:()=>{P(!1)},customDeleteStyles:M,customDeleteIcons:T,onDelete:async e=>{await(null==R?void 0:R(e))}}),e(b,{open:_,onHide:()=>{ee(!1),X(!1)},customStyles:M,customIcons:T,onConfirm:le})]})};export{I as default};
2
2
  //# sourceMappingURL=Segment.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as l}from"react/jsx-runtime";import s from"./segment.module.css.js";const i=({customStyles:i})=>e("div",Object.assign({className:s.loaderWrapper,style:null==i?void 0:i.wrapper},{children:l("div",Object.assign({className:s.loaderContainer,style:null==i?void 0:i.container},{children:[l("div",Object.assign({className:s.loaderHeader,style:null==i?void 0:i.header},{children:[e("div",{className:`${s.skeleton} ${s.title}`,style:null==i?void 0:i.titleSkeleton}),e("div",{className:`${s.skeleton} ${s.icon}`,style:null==i?void 0:i.iconSkeleton})]})),e("div",{className:`${s.skeleton} ${s.lineFull}`,style:null==i?void 0:i.lineFull}),e("div",{className:`${s.skeleton} ${s.line90}`,style:null==i?void 0:i.line90}),e("div",{className:`${s.skeleton} ${s.line75}`,style:null==i?void 0:i.line75}),e("div",{className:`${s.skeleton} ${s.line60}`,style:null==i?void 0:i.line60})]}))}));export{i 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{__awaiter as e}from"tslib";import{jsx as n}from"react/jsx-runtime";import t from"./Segment.js";import o from"dompurify";const l=({id:l,children:i,props:d,segmentComponentConfig:s,customStyles:a,customIcons:u,extractText:v,isUpdatedSegment:r=!1,blockId:m,customDeleteStyles:g,customDeleteIcons:c})=>{var p,S,h,I,b,C,f,y,D,x,_,j,E,O,U,W,k,A,F;const L=(null==d?void 0:d.id)||"Segment",R=(null==d?void 0:d.decisionstrength)||"80",{segmentDataList:w,getSegmentExampleComponent:B,handleViewGlossary:G,upadatedSegmentDataList:T,handleFetchUpdatedSegmentDetails:V,handleFetchSegmentDetails:z,handleDeleteSegment:H,handleEditSegment:M,enabledSegmentActions:q}=s||{},J=r?null==T?void 0:T.find(e=>{var n;return String(e.segment_id)===String(null===(n=null==L?void 0:L.split("-"))||void 0===n?void 0:n[0])}):null==w?void 0:w.find(e=>{var n;return String(e.segment_id)===String(null===(n=null==L?void 0:L.split("-"))||void 0===n?void 0:n[0])}),K={id:L,reason:null!==(p=null==J?void 0:J.reason)&&void 0!==p?p:"",gap:null!==(S=null==J?void 0:J.gap)&&void 0!==S?S:"",explanation:null!==(h=null==J?void 0:J.explanation)&&void 0!==h?h:"",relevance_score:null!==(I=null==J?void 0:J.relevance_score)&&void 0!==I?I:0,isOpen:!1};let N;const P=v(i),Q=d["data-table"];let X="";if(Q&&!r)try{X=decodeURIComponent(atob(Q))}catch(e){console.error("Failed to decode data-table for segment",L,e)}const Y=o.sanitize(X),Z=()=>n("div",{dangerouslySetInnerHTML:{__html:Y}});return J||!z||r||null==z||z(L),L&&J&&B&&!r&&(N=Q?n(Z,{}):B(L,P,J.segment_type)),n(t,Object.assign({id:L,segmentUUID:l,label:null!==(b=null==J?void 0:J.label)&&void 0!==b?b:null==J?void 0:J.segment_name,decisionStrength:R,aiReason:K,customIcons:u,aiReasoningCitationCustomStyles:a,segmentExampleComponent:N,handleViewGlossary:G,customStyles:{segmentWrapper:null===(C=null==a?void 0:a.segment)||void 0===C?void 0:C.segmentWrapper,container:null===(f=null==a?void 0:a.segment)||void 0===f?void 0:f.container,label:null===(y=null==a?void 0:a.segment)||void 0===y?void 0:y.label,decisionStrength:null===(D=null==a?void 0:a.segment)||void 0===D?void 0:D.decisionStrength,buttonContainer:null===(x=null==a?void 0:a.segment)||void 0===x?void 0:x.buttonContainer,cheveronIcon:null===(_=null==a?void 0:a.segment)||void 0===_?void 0:_.cheveronIcon,segmentExample:null===(j=null==a?void 0:a.segment)||void 0===j?void 0:j.segmentExample,loadingSkeleton:null===(E=null==a?void 0:a.segment)||void 0===E?void 0:E.SegmentLoadingSkeletonStyles,editInputWrapper:null===(O=null==a?void 0:a.segment)||void 0===O?void 0:O.editInputWrapper,editInput:null===(U=null==a?void 0:a.segment)||void 0===U?void 0:U.editInput,editCheckIcon:null===(W=null==a?void 0:a.segment)||void 0===W?void 0:W.editCheckIcon,editCrossIcon:null===(k=null==a?void 0:a.segment)||void 0===k?void 0:k.editCrossIcon,headerActionsContainer:null===(A=null==a?void 0:a.segment)||void 0===A?void 0:A.headerActionsContainer,editIconButton:null===(F=null==a?void 0:a.segment)||void 0===F?void 0:F.editIconButton},isUpdatedSegment:r,onOpen:()=>e(void 0,void 0,void 0,function*(){!J&&r&&(console.log("citation metadata:: handleFetchUpdatedSegmentDetails"),yield null==V?void 0:V(L))}),onDelete:e=>{if(console.log("SegmentWrapper: onDelete",e,Object.assign(Object.assign({},J),{segment_uuid:L}),m),J)return null==H?void 0:H(e,Object.assign(Object.assign({},J),{segment_uuid:L}),m)},onEdit:e=>{if(console.log("SegmentWrapper: onEdit",J,e),J&&M)return null==M?void 0:M(J,e)},customDeleteStyles:g,customDeleteIcons:c,enabledSegmentActions:q},{children:i}),L)};export{l as default};
1
+ import{jsx as e}from"react/jsx-runtime";import n from"./Segment.js";import t from"dompurify";const o=({id:o,children:l,props:i,segmentComponentConfig:d,customStyles:s,customIcons:a,extractText:u,isUpdatedSegment:r=!1,blockId:v,customDeleteStyles:m,customDeleteIcons:g})=>{var c,p,S,h,I,C,y,D,b,f,x,_,E,U,W,k,A,F,L;const w=(null==i?void 0:i.id)||"Segment",R=(null==i?void 0:i.decisionstrength)||"80",{segmentDataList:j,getSegmentExampleComponent:B,handleViewGlossary:G,upadatedSegmentDataList:O,handleFetchUpdatedSegmentDetails:T,handleFetchSegmentDetails:V,handleDeleteSegment:z,handleEditSegment:H,enabledSegmentActions:M}=d||{},q=r?null==O?void 0:O.find(e=>{var n;return String(e.segment_id)===String(null===(n=null==w?void 0:w.split("-"))||void 0===n?void 0:n[0])}):null==j?void 0:j.find(e=>{var n;return String(e.segment_id)===String(null===(n=null==w?void 0:w.split("-"))||void 0===n?void 0:n[0])}),J={id:w,reason:null!==(c=null==q?void 0:q.reason)&&void 0!==c?c:"",gap:null!==(p=null==q?void 0:q.gap)&&void 0!==p?p:"",explanation:null!==(S=null==q?void 0:q.explanation)&&void 0!==S?S:"",relevance_score:null!==(h=null==q?void 0:q.relevance_score)&&void 0!==h?h:0,isOpen:!1};let K;const N=u(l),P=i["data-table"];let Q="";if(P&&!r)try{Q=decodeURIComponent(atob(P))}catch(e){console.error("Failed to decode data-table for segment",w,e)}const X=t.sanitize(Q),Y=()=>e("div",{dangerouslySetInnerHTML:{__html:X}});return q||!V||r||null==V||V(w),w&&q&&B&&!r&&(K=P?e(Y,{}):B(w,N,q.segment_type)),e(n,{id:w,segmentUUID:o,label:null!==(I=null==q?void 0:q.label)&&void 0!==I?I:null==q?void 0:q.segment_name,decisionStrength:R,aiReason:J,customIcons:a,aiReasoningCitationCustomStyles:s,segmentExampleComponent:K,handleViewGlossary:G,customStyles:{segmentWrapper:null===(C=null==s?void 0:s.segment)||void 0===C?void 0:C.segmentWrapper,container:null===(y=null==s?void 0:s.segment)||void 0===y?void 0:y.container,label:null===(D=null==s?void 0:s.segment)||void 0===D?void 0:D.label,decisionStrength:null===(b=null==s?void 0:s.segment)||void 0===b?void 0:b.decisionStrength,buttonContainer:null===(f=null==s?void 0:s.segment)||void 0===f?void 0:f.buttonContainer,cheveronIcon:null===(x=null==s?void 0:s.segment)||void 0===x?void 0:x.cheveronIcon,segmentExample:null===(_=null==s?void 0:s.segment)||void 0===_?void 0:_.segmentExample,loadingSkeleton:null===(E=null==s?void 0:s.segment)||void 0===E?void 0:E.SegmentLoadingSkeletonStyles,editInputWrapper:null===(U=null==s?void 0:s.segment)||void 0===U?void 0:U.editInputWrapper,editInput:null===(W=null==s?void 0:s.segment)||void 0===W?void 0:W.editInput,editCheckIcon:null===(k=null==s?void 0:s.segment)||void 0===k?void 0:k.editCheckIcon,editCrossIcon:null===(A=null==s?void 0:s.segment)||void 0===A?void 0:A.editCrossIcon,headerActionsContainer:null===(F=null==s?void 0:s.segment)||void 0===F?void 0:F.headerActionsContainer,editIconButton:null===(L=null==s?void 0:s.segment)||void 0===L?void 0:L.editIconButton},isUpdatedSegment:r,onOpen:async()=>{!q&&r&&(console.log("citation metadata:: handleFetchUpdatedSegmentDetails"),await(null==T?void 0:T(w)))},onDelete:e=>{if(console.log("SegmentWrapper: onDelete",e,{...q,segment_uuid:w},v),q)return null==z?void 0:z(e,{...q,segment_uuid:w},v)},onEdit:e=>{if(console.log("SegmentWrapper: onEdit",q,e),q&&H)return null==H?void 0:H(q,e)},customDeleteStyles:m,customDeleteIcons:g,enabledSegmentActions:M,children:l},w)};export{o as default};
2
2
  //# sourceMappingURL=SegmentWrapper.js.map