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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  10. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  11. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  12. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  13. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  14. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  15. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  16. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  17. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  18. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  19. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  20. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  25. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  28. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  29. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  31. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  41. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  44. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  45. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  48. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  49. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  51. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  52. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  53. package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +1 -1
  54. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  55. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  56. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  61. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  62. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  63. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  64. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  118. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  119. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  120. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  121. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  131. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  132. package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  133. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  134. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  135. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  136. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  137. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  138. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  139. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
  140. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  141. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  142. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  143. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  144. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  145. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  146. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  147. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  148. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  149. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  150. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  151. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  152. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  153. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  154. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  155. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  156. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  157. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  158. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  159. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  160. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  161. package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  162. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  163. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  164. package/dist/cjs/features/RequirementAI/utils/css.utils.js +1 -1
  165. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  166. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  167. package/dist/cjs/features/RequirementAI/utils/json-helper.js +1 -1
  168. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  169. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  170. package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
  171. package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  172. package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  173. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  174. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  175. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  176. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  177. package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  178. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  179. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  180. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  181. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  182. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  183. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  184. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  185. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  186. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  187. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  188. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  189. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  190. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  191. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  192. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  193. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  194. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  195. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  196. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  197. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  198. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  199. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  200. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  201. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  202. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  203. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  204. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  205. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  206. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  207. package/dist/cjs/features/UserStoryImport/components/usePanelResize.js +1 -1
  208. package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  209. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  210. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  211. package/dist/cjs/features/UserStoryImport/index.js +1 -1
  212. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  213. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  214. package/dist/cjs/features/UserStoryImport/lib/cn.js +1 -1
  215. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  216. package/dist/cjs/index.js +1 -1
  217. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  218. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  219. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  220. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  221. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  222. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  223. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  224. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  225. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  226. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  227. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  228. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  229. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  230. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  231. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  232. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  233. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  234. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  235. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  236. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  237. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  238. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
  239. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  240. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  241. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  242. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  243. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  244. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  245. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  246. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  247. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  248. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  249. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  250. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  251. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  252. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  253. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  254. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  255. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  256. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  257. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  258. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  259. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  260. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  261. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  262. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  263. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  264. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  265. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  266. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  267. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  268. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  269. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  270. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  271. package/dist/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +1 -1
  272. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  273. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  274. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  275. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  276. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  277. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  278. package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
  279. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  280. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  281. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  282. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  283. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  284. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  285. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  286. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  287. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  288. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  289. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  290. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  291. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  292. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  293. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  294. package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  295. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  296. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  297. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  298. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  299. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  300. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  301. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  302. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  303. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  304. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  305. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  306. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  307. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  308. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  309. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  310. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  311. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  312. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  313. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  314. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  315. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  316. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  317. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  318. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  319. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  320. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  321. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  322. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  323. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  324. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  325. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  326. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  327. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  328. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  329. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  330. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  331. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  332. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  333. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  334. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  335. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  336. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  337. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  338. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  339. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  340. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  341. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  342. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  343. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  344. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  345. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  346. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  347. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  348. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  349. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  350. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  351. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  352. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  353. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  354. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  355. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  356. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  357. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  358. package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
  359. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  360. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  361. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  362. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  363. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  364. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  365. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  366. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  367. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  368. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  369. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  370. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  371. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  372. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  373. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  374. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  375. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  376. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  377. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  378. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  379. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  380. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  381. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  382. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  383. package/dist/features/RequirementAI/utils/css.utils.js +1 -1
  384. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  385. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  386. package/dist/features/RequirementAI/utils/json-helper.js +1 -1
  387. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  388. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  389. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  390. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  391. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  392. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  393. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  394. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  395. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  396. package/dist/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  397. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  398. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  399. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  400. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  401. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  402. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  403. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  404. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  405. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  406. package/dist/features/UserStoryImport/components/Header.js +1 -1
  407. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  408. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  409. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  410. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  411. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  412. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  413. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  414. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  415. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  416. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  417. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  418. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  419. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  420. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  421. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  422. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  423. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  424. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  425. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  426. package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
  427. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  428. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  429. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  430. package/dist/features/UserStoryImport/index.js +1 -1
  431. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  432. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  433. package/dist/features/UserStoryImport/lib/cn.js +1 -1
  434. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  435. package/dist/index.js +1 -1
  436. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +11 -2
  437. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  438. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),i=require("./CitationRenderer.module.css.js"),o=new Map;exports.collapseAllCitations=function(){o.clear()},exports.collapseCitationsByIds=function(t){t.forEach(function(t){return o.delete(t)})},exports.default=function(a){var r=a.inLineCitation,s=a.citationTitle,l=a.citationId,c=a.citationIcon,u=a.chevronUpComponent,p=a.chevronDownComponent,d=a.additionalCallbackForPillButton,f=a.citationComponent,v=a.styles,C=void 0===v?{}:v,x=a.isOpen,g=a.onToggle,_=a.defaultExpanded,h=void 0!==_&&_,m=void 0!==x,j=l||s,y=n.useState(function(){return j&&o.has(j)?o.get(j):h}),q=y[0],B=y[1],P=m?x:q;return e.jsxs(e.Fragment,{children:[e.jsxs("span",t.__assign({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),d&&d(),g?g():m||B(function(t){var e=!t;return j&&o.set(j,e),e})}(t)},className:i.default.pillButton,style:C.pillButton},{children:[c,e.jsx("span",t.__assign({style:C.citationTitle},{children:s})),r&&(P?u:p)]})),r&&P&&e.jsx("div",t.__assign({className:i.default.citationWrapper,style:C.citationWrapper},{children:e.jsx("div",t.__assign({className:i.default.citationContent,style:C.citationContent,onClick:function(t){return t.stopPropagation()}},{children:f}))}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react"),n=require("./CitationRenderer.module.css.js");const i=new Map;exports.collapseAllCitations=()=>{i.clear()},exports.collapseCitationsByIds=t=>{t.forEach(t=>i.delete(t))},exports.default=({inLineCitation:a,citationTitle:o,citationId:s,citationIcon:l,chevronUpComponent:r,chevronDownComponent:c,additionalCallbackForPillButton:p,citationComponent:d,styles:u={},isOpen:j,onToggle:C,defaultExpanded:x=!1})=>{const g=void 0!==j,h=s||o,[m,f]=e.useState(()=>h&&i.has(h)?i.get(h):x),v=g?j:m;return t.jsxs(t.Fragment,{children:[t.jsxs("span",Object.assign({onClick:t=>(t=>{t.preventDefault(),t.stopPropagation(),p&&p(),C?C():g||f(t=>{const e=!t;return h&&i.set(h,e),e})})(t),className:n.default.pillButton,style:u.pillButton},{children:[l,t.jsx("span",Object.assign({style:u.citationTitle},{children:o})),a&&(v?r:c)]})),a&&v&&t.jsx("div",Object.assign({className:n.default.citationWrapper,style:u.citationWrapper},{children:t.jsx("div",Object.assign({className:n.default.citationContent,style:u.citationContent,onClick:t=>t.stopPropagation()},{children:d}))}))]})};
2
2
  //# sourceMappingURL=CitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),n=require("./CustomPopover.module.css.js"),s=require("react-dom");exports.default=function(o){var a=o.anchorEl,i=o.open,c=o.onClose,l=o.children,u=o.customStyles,d=void 0===u?{}:u,f=o.backdropContainerId,p=t.useRef(null),v=t.useRef(c);t.useEffect(function(){var e=p.current;if(e&&i){var r=!0,t=new ResizeObserver(function(e){var t;r?r=!1:null===(t=v.current)||void 0===t||t.call(v)});return t.observe(e),function(){t.disconnect()}}},[i]);var m=document.getElementById(String(f));if(!i||!a)return null;var b=a.getBoundingClientRect();return r.jsxs(r.Fragment,{children:[m?s.createPortal(r.jsx("div",{ref:p,onClick:c,className:n.default["containerized-backdrop"],style:e.__assign({},d.backdrop)}),m):r.jsx("div",{ref:p,onClick:c,className:n.default.backdrop,style:e.__assign({},d.backdrop)}),r.jsx("div",e.__assign({className:n.default.popup,style:e.__assign({top:b.bottom+15,left:b.left-700},d.popup)},{children:l}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("./CustomPopover.module.css.js"),s=require("react-dom");exports.default=({anchorEl:n,open:c,onClose:o,children:l,customStyles:a={},backdropContainerId:u})=>{const i=t.useRef(null),d=t.useRef(o);t.useEffect(()=>{const e=i.current;if(!e||!c)return;let t=!0;const r=new ResizeObserver(e=>{var r;t?t=!1:null===(r=d.current)||void 0===r||r.call(d)});return r.observe(e),()=>{r.disconnect()}},[c]);const p=document.getElementById(String(u));if(!c||!n)return null;const f=n.getBoundingClientRect();return e.jsxs(e.Fragment,{children:[p?s.createPortal(e.jsx("div",{ref:i,onClick:o,className:r.default["containerized-backdrop"],style:Object.assign({},a.backdrop)}),p):e.jsx("div",{ref:i,onClick:o,className:r.default.backdrop,style:Object.assign({},a.backdrop)}),e.jsx("div",Object.assign({className:r.default.popup,style:Object.assign({top:f.bottom+15,left:f.left-700},a.popup)},{children:l}))]})};
2
2
  //# sourceMappingURL=CustomPopover.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),o=require("./components/StoryNode/StoryNode.js"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),l=require("./GapRiskSidebar.module.css.js"),t=n.createContext(null),d=function(){var e=n.useContext(t);if(!e)throw new Error("GapRiskSidebar compound components must be used within <GapRiskSidebar.Root>");return e},r=function(e){return{title:e.title,artifactTitleID:e.artifactTitleID,id:e.id,display_items:e.gap_items||e.risk_items||{critical:[],warning:[],recommendation:[]},sub_feature:(e.sub_feature||[]).map(r)}};var u=Object.assign(function(s){var o,l,d=s.storyDetails,r=s.type,u=s.isSidebarExpanded,c=s.onToggleSidebar,v=s.defaultExpanded,g=void 0===v||v,p=s.onClickStoryNodeCallback,_=s.isProcessingGapItems,S=s.onClickAiReasoning,m=s.handleFixRisk,y=s.handleHighlightGapContent,b=s.customStyles,h=s.customIcons,C=s.sidebarWidth,I=s.headerTitle,f=s.onSelectStory,x=s.children,k=function(){try{return a.useRequirementAI()}catch(e){return null}}(),N=n.useState(g),j=N[0],G=N[1],R=void 0!==u,T=R?u:j,W=n.useCallback(function(e){var i="function"==typeof e?e(T):e;R?null==c||c(i):G(i)},[R,T,c]),q=n.useMemo(function(){var i,n,s,o,a,l,t,d,r,u,c,v,g;return e.__assign(e.__assign(e.__assign({},null===(i=null==k?void 0:k.customStyles)||void 0===i?void 0:i.gapSidebar),b),{gapRiskSidebar:e.__assign(e.__assign({},null===(s=null===(n=null==k?void 0:k.customStyles)||void 0===n?void 0:n.gapSidebar)||void 0===s?void 0:s.gapRiskSidebar),null==b?void 0:b.gapRiskSidebar),noGapsFound:e.__assign(e.__assign({},null===(a=null===(o=null==k?void 0:k.customStyles)||void 0===o?void 0:o.gapSidebar)||void 0===a?void 0:a.noGapsFound),null==b?void 0:b.noGapsFound),storyNode:e.__assign(e.__assign({},null===(t=null===(l=null==k?void 0:k.customStyles)||void 0===l?void 0:l.gapSidebar)||void 0===t?void 0:t.storyNode),null==b?void 0:b.storyNode),riskSidebarCategorySection:e.__assign(e.__assign({},null===(r=null===(d=null==k?void 0:k.customStyles)||void 0===d?void 0:d.gapSidebar)||void 0===r?void 0:r.riskSidebarCategorySection),null==b?void 0:b.riskSidebarCategorySection),riskCategorySection:e.__assign(e.__assign({},null===(c=null===(u=null==k?void 0:k.customStyles)||void 0===u?void 0:u.gapSidebar)||void 0===c?void 0:c.riskCategorySection),null==b?void 0:b.riskCategorySection),gapItem:e.__assign(e.__assign({},null===(g=null===(v=null==k?void 0:k.customStyles)||void 0===v?void 0:v.gapSidebar)||void 0===g?void 0:g.gapItem),null==b?void 0:b.gapItem)})},[null===(o=null==k?void 0:k.customStyles)||void 0===o?void 0:o.gapSidebar,b]),E=n.useMemo(function(){var i,n,s,o,a,l;return{icons:e.__assign(e.__assign({},null===(n=null===(i=null==k?void 0:k.customIcons)||void 0===i?void 0:i.gapSidebarIcons)||void 0===n?void 0:n.icons),null==h?void 0:h.icons),iconSizes:e.__assign(e.__assign({},null===(o=null===(s=null==k?void 0:k.customIcons)||void 0===s?void 0:s.gapSidebarIcons)||void 0===o?void 0:o.iconSizes),null==h?void 0:h.iconSizes),iconColors:e.__assign(e.__assign({},null===(l=null===(a=null==k?void 0:k.customIcons)||void 0===a?void 0:a.gapSidebarIcons)||void 0===l?void 0:l.iconColors),null==h?void 0:h.iconColors)}},[null===(l=null==k?void 0:k.customIcons)||void 0===l?void 0:l.gapSidebarIcons,h]),F={isSidebarExpanded:T,setIsSidebarExpanded:W,storyDetails:d,type:r,isProcessingGapItems:_,onClickStoryNodeCallback:p,onClickAiReasoning:S,handleFixRisk:m,handleHighlightGapContent:y,mergedStyles:q,mergedIcons:E,sidebarWidth:C,headerTitle:I,onSelectStory:f};return i.jsx(t.Provider,e.__assign({value:F},{children:x}))},{Panel:function(a){var t,u,c,v,g=a.className,p=void 0===g?"":g,_=a.style,S=d(),m=S.isSidebarExpanded,y=S.storyDetails,b=S.type,h=S.isProcessingGapItems,C=S.onClickStoryNodeCallback,I=S.onClickAiReasoning,f=S.handleFixRisk,x=S.handleHighlightGapContent,k=S.mergedStyles,N=S.mergedIcons,j=S.sidebarWidth,G=void 0===j?320:j,R=S.headerTitle,T=void 0===R?"Generated User Stories":R,W=S.onSelectStory,q=k.gapRiskSidebar,E=(null===(t=N.icons)||void 0===t?void 0:t.menuIcon)||s.Menu,F=n.useMemo(function(){return y.map(r)},[y]),w="number"==typeof G?"".concat(G,"px"):G;return i.jsx("div",e.__assign({className:"".concat(l.default.sidebarContainer," ").concat(m?l.default.sidebarExpanded:l.default.sidebarCollapsed," ").concat(p),style:e.__assign(e.__assign(e.__assign(e.__assign({},m?{width:w,minWidth:w}:{}),null==q?void 0:q.container),m?{}:null==q?void 0:q.containerCollapsed),_)},{children:i.jsxs("div",e.__assign({className:l.default.sidebarInnerWrapper,style:e.__assign({minWidth:w},null==q?void 0:q.innerWrapper)},{children:[i.jsxs("div",e.__assign({className:l.default.header,style:null==q?void 0:q.header},{children:[i.jsx(E,{className:l.default.headerMenuIcon,style:e.__assign({color:null===(u=N.iconColors)||void 0===u?void 0:u.menuIcon,width:null===(c=N.iconSizes)||void 0===c?void 0:c.menuIcon,height:null===(v=N.iconSizes)||void 0===v?void 0:v.menuIcon},null==q?void 0:q.headerMenuIcon)}),i.jsx("h2",e.__assign({className:l.default.headerTitle,style:null==q?void 0:q.headerTitle},{children:T}))]})),i.jsx("div",e.__assign({className:l.default.storyList,style:null==q?void 0:q.storyList},{children:F.map(function(n){return i.jsx("div",e.__assign({className:l.default.storyItemWrapper,style:null==q?void 0:q.storyItemWrapper},{children:i.jsx(o.default,{story:n,onClickStoryNodeCallback:C,type:b,isProcessingGapItems:h,onClickAiReasoning:I,handleFixRisk:f,handleHighlightGapContent:x,customStyles:k,customIcons:N,onSelectStory:W})}),n.artifactTitleID)})}))]}))}))},Toggle:function(n){var o=n.OpenIcon,a=n.CloseIcon,t=n.className,r=void 0===t?"":t,u=d(),c=u.isSidebarExpanded,v=u.setIsSidebarExpanded,g=o||s.SidebarOpenIcon,p=a||s.SidebarCloseIcon;return i.jsx("div",e.__assign({className:"".concat(l.default.sidebarToggleWrapper," ").concat(r)},{children:i.jsx("button",e.__assign({onClick:function(){return v(function(e){return!e})},className:l.default.sidebarToggleBtn,"aria-label":c?"Collapse sidebar":"Expand sidebar",type:"button"},{children:c?i.jsx(p,{}):i.jsx(g,{})}))}))}});exports.NoGapsFound=function(n){var o=n.styles,a=n.CheckCircleIcon,t=n.iconColor,d=n.iconSize,r=a||s.CheckCircle2;return i.jsxs("div",e.__assign({className:l.default.noGapsContainer,style:null==o?void 0:o.container},{children:[i.jsx("p",e.__assign({className:l.default.noGapsText,style:null==o?void 0:o.text},{children:"No Gaps Found"})),i.jsx(r,{className:l.default.noGapsIcon,style:e.__assign({color:t,width:d,height:d},null==o?void 0:o.icon)})]}))},exports.default=u,exports.useGapRiskSidebar=d;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react"),s=require("lucide-react"),n=require("./components/StoryNode/StoryNode.js"),o=require("../RequirementAIWrapper/RequirementAIWrapper.js"),t=require("./GapRiskSidebar.module.css.js");const l=i.createContext(null),a=()=>{const e=i.useContext(l);if(!e)throw new Error("GapRiskSidebar compound components must be used within <GapRiskSidebar.Root>");return e},d=e=>({title:e.title,artifactTitleID:e.artifactTitleID,id:e.id,display_items:e.gap_items||e.risk_items||{critical:[],warning:[],recommendation:[]},sub_feature:(e.sub_feature||[]).map(d)});const r=Object.assign(({storyDetails:s,type:n,isSidebarExpanded:t,onToggleSidebar:a,defaultExpanded:d=!0,onClickStoryNodeCallback:r,isProcessingGapItems:c,onClickAiReasoning:u,handleFixRisk:v,handleHighlightGapContent:g,customStyles:b,customIcons:p,sidebarWidth:S,headerTitle:m,onSelectStory:j,children:y})=>{var h,O;const C=function(){try{return o.useRequirementAI()}catch(e){return null}}(),[I,x]=i.useState(d),k=void 0!==t,f=k?t:I,N=i.useCallback(e=>{const i="function"==typeof e?e(f):e;k?null==a||a(i):x(i)},[k,f,a]),G=i.useMemo(()=>{var e,i,s,n,o,t,l,a,d,r,c,u,v;return Object.assign(Object.assign(Object.assign({},null===(e=null==C?void 0:C.customStyles)||void 0===e?void 0:e.gapSidebar),b),{gapRiskSidebar:Object.assign(Object.assign({},null===(s=null===(i=null==C?void 0:C.customStyles)||void 0===i?void 0:i.gapSidebar)||void 0===s?void 0:s.gapRiskSidebar),null==b?void 0:b.gapRiskSidebar),noGapsFound:Object.assign(Object.assign({},null===(o=null===(n=null==C?void 0:C.customStyles)||void 0===n?void 0:n.gapSidebar)||void 0===o?void 0:o.noGapsFound),null==b?void 0:b.noGapsFound),storyNode:Object.assign(Object.assign({},null===(l=null===(t=null==C?void 0:C.customStyles)||void 0===t?void 0:t.gapSidebar)||void 0===l?void 0:l.storyNode),null==b?void 0:b.storyNode),riskSidebarCategorySection:Object.assign(Object.assign({},null===(d=null===(a=null==C?void 0:C.customStyles)||void 0===a?void 0:a.gapSidebar)||void 0===d?void 0:d.riskSidebarCategorySection),null==b?void 0:b.riskSidebarCategorySection),riskCategorySection:Object.assign(Object.assign({},null===(c=null===(r=null==C?void 0:C.customStyles)||void 0===r?void 0:r.gapSidebar)||void 0===c?void 0:c.riskCategorySection),null==b?void 0:b.riskCategorySection),gapItem:Object.assign(Object.assign({},null===(v=null===(u=null==C?void 0:C.customStyles)||void 0===u?void 0:u.gapSidebar)||void 0===v?void 0:v.gapItem),null==b?void 0:b.gapItem)})},[null===(h=null==C?void 0:C.customStyles)||void 0===h?void 0:h.gapSidebar,b]),R=i.useMemo(()=>{var e,i,s,n,o,t;return{icons:Object.assign(Object.assign({},null===(i=null===(e=null==C?void 0:C.customIcons)||void 0===e?void 0:e.gapSidebarIcons)||void 0===i?void 0:i.icons),null==p?void 0:p.icons),iconSizes:Object.assign(Object.assign({},null===(n=null===(s=null==C?void 0:C.customIcons)||void 0===s?void 0:s.gapSidebarIcons)||void 0===n?void 0:n.iconSizes),null==p?void 0:p.iconSizes),iconColors:Object.assign(Object.assign({},null===(t=null===(o=null==C?void 0:C.customIcons)||void 0===o?void 0:o.gapSidebarIcons)||void 0===t?void 0:t.iconColors),null==p?void 0:p.iconColors)}},[null===(O=null==C?void 0:C.customIcons)||void 0===O?void 0:O.gapSidebarIcons,p]),T={isSidebarExpanded:f,setIsSidebarExpanded:N,storyDetails:s,type:n,isProcessingGapItems:c,onClickStoryNodeCallback:r,onClickAiReasoning:u,handleFixRisk:v,handleHighlightGapContent:g,mergedStyles:G,mergedIcons:R,sidebarWidth:S,headerTitle:m,onSelectStory:j};return e.jsx(l.Provider,Object.assign({value:T},{children:y}))},{Panel:({className:o="",style:l})=>{var r,c,u,v;const{isSidebarExpanded:g,storyDetails:b,type:p,isProcessingGapItems:S,onClickStoryNodeCallback:m,onClickAiReasoning:j,handleFixRisk:y,handleHighlightGapContent:h,mergedStyles:O,mergedIcons:C,sidebarWidth:I=320,headerTitle:x="Generated User Stories",onSelectStory:k}=a(),f=O.gapRiskSidebar,N=(null===(r=C.icons)||void 0===r?void 0:r.menuIcon)||s.Menu,G=i.useMemo(()=>b.map(d),[b]),R="number"==typeof I?`${I}px`:I;return e.jsx("div",Object.assign({className:`${t.default.sidebarContainer} ${g?t.default.sidebarExpanded:t.default.sidebarCollapsed} ${o}`,style:Object.assign(Object.assign(Object.assign(Object.assign({},g?{width:R,minWidth:R}:{}),null==f?void 0:f.container),g?{}:null==f?void 0:f.containerCollapsed),l)},{children:e.jsxs("div",Object.assign({className:t.default.sidebarInnerWrapper,style:Object.assign({minWidth:R},null==f?void 0:f.innerWrapper)},{children:[e.jsxs("div",Object.assign({className:t.default.header,style:null==f?void 0:f.header},{children:[e.jsx(N,{className:t.default.headerMenuIcon,style:Object.assign({color:null===(c=C.iconColors)||void 0===c?void 0:c.menuIcon,width:null===(u=C.iconSizes)||void 0===u?void 0:u.menuIcon,height:null===(v=C.iconSizes)||void 0===v?void 0:v.menuIcon},null==f?void 0:f.headerMenuIcon)}),e.jsx("h2",Object.assign({className:t.default.headerTitle,style:null==f?void 0:f.headerTitle},{children:x}))]})),e.jsx("div",Object.assign({className:t.default.storyList,style:null==f?void 0:f.storyList},{children:G.map(i=>e.jsx("div",Object.assign({className:t.default.storyItemWrapper,style:null==f?void 0:f.storyItemWrapper},{children:e.jsx(n.default,{story:i,onClickStoryNodeCallback:m,type:p,isProcessingGapItems:S,onClickAiReasoning:j,handleFixRisk:y,handleHighlightGapContent:h,customStyles:O,customIcons:C,onSelectStory:k})}),i.artifactTitleID))}))]}))}))},Toggle:({OpenIcon:i,CloseIcon:n,className:o=""})=>{const{isSidebarExpanded:l,setIsSidebarExpanded:d}=a(),r=i||s.SidebarOpenIcon,c=n||s.SidebarCloseIcon;return e.jsx("div",Object.assign({className:`${t.default.sidebarToggleWrapper} ${o}`},{children:e.jsx("button",Object.assign({onClick:()=>d(e=>!e),className:t.default.sidebarToggleBtn,"aria-label":l?"Collapse sidebar":"Expand sidebar",type:"button"},{children:l?e.jsx(c,{}):e.jsx(r,{})}))}))}});exports.NoGapsFound=({styles:i,CheckCircleIcon:n,iconColor:o,iconSize:l})=>{const a=n||s.CheckCircle2;return e.jsxs("div",Object.assign({className:t.default.noGapsContainer,style:null==i?void 0:i.container},{children:[e.jsx("p",Object.assign({className:t.default.noGapsText,style:null==i?void 0:i.text},{children:"No Gaps Found"})),e.jsx(a,{className:t.default.noGapsIcon,style:Object.assign({color:o,width:l,height:l},null==i?void 0:i.icon)})]}))},exports.default=r,exports.useGapRiskSidebar=a;
2
2
  //# sourceMappingURL=GapRiskSidebar.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react/jsx-runtime"),o=require("react"),i=require("@mui/material"),l=require("../../../../icons/AiReasoningIcon.js"),s=require("lucide-react"),t=require("../../../ai-reasoning/AiReasoningCitationContent.js"),a=require("./GapItem.module.css.js"),c=require("../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(r){var d,u,v,g,h,_,x,S,y,m,f,I,p,C,k,j,R,N,w,L,q,A,z,T,b,B=r.item;r.index,r.title;var M=r.isProcessingGapItems,H=r.type,D=r.onClickAiReasoning,E=r.handleFixRisk,P=r.handleHighlightGapContent,G=r.customStyles,F=r.customIcons,U=o.useState(!1),W=U[0],O=U[1],J=o.useState(!1),K=J[0],Q=J[1],V=o.useState(!1),X=V[0],Y=V[1],Z=function(){try{return c.useRequirementAI()}catch(n){return null}}(),$=null==G?void 0:G.gapItem,nn="gap_id"in B?B.gap_id:B.risk_id,en="gap_name"in B?B.gap_name:B.risk_name;o.useEffect(function(){"completed"===(null==B?void 0:B.status)&&O(!1)},[null==B?void 0:B.status]),o.useEffect(function(){M||O(!1)},[M]);var on=o.useMemo(function(){return{id:nn,reason:B.reason||"",relevance_score:Number(B.decision_strength.replace("%","")),gap:B.gap||"",explanation:B.explanation||""}},[B]),ln=(null===(d=null==F?void 0:F.icons)||void 0===d?void 0:d.checkIcon)||s.Check,sn=(null===(u=null==F?void 0:F.icons)||void 0===u?void 0:u.loaderIcon)||s.Loader,tn=(null===(v=null==F?void 0:F.icons)||void 0===v?void 0:v.externalLinkIcon)||s.ExternalLink,an=(null===(g=null==F?void 0:F.icons)||void 0===g?void 0:g.aiReasoningIcon)||l.default,cn=(null===(h=null==F?void 0:F.icons)||void 0===h?void 0:h.chevronUpIcon)||s.ChevronUp,rn=(null===(_=null==F?void 0:F.icons)||void 0===_?void 0:_.chevronDownIcon)||s.ChevronDown,dn=(null==$?void 0:$.fixButtonText)||"Fix";return e.jsx(i.Tooltip,n.__assign({title:en,arrow:!1!==(null==$?void 0:$.tooltipArrow)},{children:e.jsxs("div",n.__assign({className:"".concat(a.default.container," ").concat(X?a.default.containerHovered:""),style:n.__assign(n.__assign({},null==$?void 0:$.container),X?null==$?void 0:$.containerHover:{}),onMouseEnter:function(){return Y(!0)},onMouseLeave:function(){return Y(!1)}},{children:[e.jsxs("div",n.__assign({className:a.default.topRow,style:null==$?void 0:$.topRow},{children:[e.jsxs("div",n.__assign({className:a.default.contentArea,style:null==$?void 0:$.contentArea},{children:[e.jsxs("p",n.__assign({className:a.default.itemText},{children:[e.jsxs("span",n.__assign({className:a.default.idText,style:null==$?void 0:$.idText},{children:[H,"-",nn]})),e.jsx("span",n.__assign({className:a.default.nameText,style:null==$?void 0:$.nameText},{children:en}))]})),e.jsxs("span",n.__assign({onClick:function(){null==D||D(),Q(!K)},className:a.default.aiReasoningToggle,style:null==$?void 0:$.aiReasoningToggle},{children:[e.jsx(an,{}),K?e.jsx(cn,{className:a.default.chevronIcon,style:n.__assign({color:null===(x=null==F?void 0:F.iconColors)||void 0===x?void 0:x.chevronIcon,width:null===(S=null==F?void 0:F.iconSizes)||void 0===S?void 0:S.chevronIcon,height:null===(y=null==F?void 0:F.iconSizes)||void 0===y?void 0:y.chevronIcon},null==$?void 0:$.aiReasoningChevron)}):e.jsx(rn,{className:a.default.chevronIcon,style:n.__assign({color:null===(m=null==F?void 0:F.iconColors)||void 0===m?void 0:m.chevronIcon,width:null===(f=null==F?void 0:F.iconSizes)||void 0===f?void 0:f.chevronIcon,height:null===(I=null==F?void 0:F.iconSizes)||void 0===I?void 0:I.chevronIcon},null==$?void 0:$.aiReasoningChevron)})]}))]})),e.jsxs("div",n.__assign({className:a.default.actionsContainer,style:null==$?void 0:$.actionsContainer},{children:[W?e.jsx(sn,{className:a.default.loaderIcon,style:n.__assign({color:null===(p=null==F?void 0:F.iconColors)||void 0===p?void 0:p.loaderIcon,width:null===(C=null==F?void 0:F.iconSizes)||void 0===C?void 0:C.loaderIcon,height:null===(k=null==F?void 0:F.iconSizes)||void 0===k?void 0:k.loaderIcon},null==$?void 0:$.loaderIcon)}):"in-progress"===B.status?e.jsx("button",n.__assign({onClick:function(){return E(B)},disabled:M,className:"".concat(a.default.fixButton," ").concat(M?a.default.fixButtonDisabled:""),style:n.__assign(n.__assign({},null==$?void 0:$.fixButton),M?null==$?void 0:$.fixButtonDisabled:{})},{children:dn})):e.jsx(ln,{className:a.default.checkIcon,style:n.__assign({color:null===(j=null==F?void 0:F.iconColors)||void 0===j?void 0:j.checkIcon,width:null===(R=null==F?void 0:F.iconSizes)||void 0===R?void 0:R.checkIcon,height:null===(N=null==F?void 0:F.iconSizes)||void 0===N?void 0:N.checkIcon},null==$?void 0:$.checkIcon)}),e.jsx("button",n.__assign({className:a.default.externalLinkButton,onClick:function(){return P(B)},style:null==$?void 0:$.externalLinkButton},{children:e.jsx(tn,{className:"".concat(a.default.externalLinkIcon," ").concat(X?a.default.externalLinkIconHovered:""),style:{color:X?(null===(w=null==F?void 0:F.iconColors)||void 0===w?void 0:w.externalLinkIconHover)||(null===(L=null==F?void 0:F.iconColors)||void 0===L?void 0:L.externalLinkIcon):null===(q=null==F?void 0:F.iconColors)||void 0===q?void 0:q.externalLinkIcon,width:null===(A=null==F?void 0:F.iconSizes)||void 0===A?void 0:A.externalLinkIcon,height:null===(z=null==F?void 0:F.iconSizes)||void 0===z?void 0:z.externalLinkIcon}})}))]}))]})),K&&e.jsx("div",n.__assign({className:a.default.aiReasoningContent,style:null==$?void 0:$.aiReasoningContent},{children:e.jsx(t.default,{aiReason:on,scenario:"riskSideBar",customStyles:(null===(b=null===(T=null==Z?void 0:Z.customStyles)||void 0===T?void 0:T.userStoryScreenStyles)||void 0===b?void 0:b.userStoryContentStyles)?{aiReasoningPill:Z.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningPill,aiReasoningMarkdown:Z.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningMarkdown,aiReasoningAccordion:Z.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningAccordion,aiReasoningContent:Z.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningContent}:void 0})}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react"),o=require("@mui/material"),i=require("../../../../icons/AiReasoningIcon.js"),l=require("lucide-react"),s=require("../../../ai-reasoning/AiReasoningCitationContent.js"),t=require("./GapItem.module.css.js"),a=require("../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({item:c,index:d,title:r,isProcessingGapItems:u,type:v,onClickAiReasoning:g,handleFixRisk:h,handleHighlightGapContent:x,customStyles:S,customIcons:j})=>{var y,m,I,f,p,C,k,b,R,O,N,w,L,q,A,z,_,T,B,M,$,H,D,E,P;const[G,F]=n.useState(!1),[U,W]=n.useState(!1),[J,K]=n.useState(!1),Q=function(){try{return a.useRequirementAI()}catch(e){return null}}(),V=null==S?void 0:S.gapItem,X="gap_id"in c?c.gap_id:c.risk_id,Y="gap_name"in c?c.gap_name:c.risk_name;n.useEffect(()=>{"completed"===(null==c?void 0:c.status)&&F(!1)},[null==c?void 0:c.status]),n.useEffect(()=>{u||F(!1)},[u]);const Z=n.useMemo(()=>({id:X,reason:c.reason||"",relevance_score:Number(c.decision_strength.replace("%","")),gap:c.gap||"",explanation:c.explanation||""}),[c]),ee=(null===(y=null==j?void 0:j.icons)||void 0===y?void 0:y.checkIcon)||l.Check,ne=(null===(m=null==j?void 0:j.icons)||void 0===m?void 0:m.loaderIcon)||l.Loader,oe=(null===(I=null==j?void 0:j.icons)||void 0===I?void 0:I.externalLinkIcon)||l.ExternalLink,ie=(null===(f=null==j?void 0:j.icons)||void 0===f?void 0:f.aiReasoningIcon)||i.default,le=(null===(p=null==j?void 0:j.icons)||void 0===p?void 0:p.chevronUpIcon)||l.ChevronUp,se=(null===(C=null==j?void 0:j.icons)||void 0===C?void 0:C.chevronDownIcon)||l.ChevronDown,te=(null==V?void 0:V.fixButtonText)||"Fix";return e.jsx(o.Tooltip,Object.assign({title:Y,arrow:!1!==(null==V?void 0:V.tooltipArrow)},{children:e.jsxs("div",Object.assign({className:`${t.default.container} ${J?t.default.containerHovered:""}`,style:Object.assign(Object.assign({},null==V?void 0:V.container),J?null==V?void 0:V.containerHover:{}),onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1)},{children:[e.jsxs("div",Object.assign({className:t.default.topRow,style:null==V?void 0:V.topRow},{children:[e.jsxs("div",Object.assign({className:t.default.contentArea,style:null==V?void 0:V.contentArea},{children:[e.jsxs("p",Object.assign({className:t.default.itemText},{children:[e.jsxs("span",Object.assign({className:t.default.idText,style:null==V?void 0:V.idText},{children:[v,"-",X]})),e.jsx("span",Object.assign({className:t.default.nameText,style:null==V?void 0:V.nameText},{children:Y}))]})),e.jsxs("span",Object.assign({onClick:()=>{null==g||g(),W(!U)},className:t.default.aiReasoningToggle,style:null==V?void 0:V.aiReasoningToggle},{children:[e.jsx(ie,{}),U?e.jsx(le,{className:t.default.chevronIcon,style:Object.assign({color:null===(k=null==j?void 0:j.iconColors)||void 0===k?void 0:k.chevronIcon,width:null===(b=null==j?void 0:j.iconSizes)||void 0===b?void 0:b.chevronIcon,height:null===(R=null==j?void 0:j.iconSizes)||void 0===R?void 0:R.chevronIcon},null==V?void 0:V.aiReasoningChevron)}):e.jsx(se,{className:t.default.chevronIcon,style:Object.assign({color:null===(O=null==j?void 0:j.iconColors)||void 0===O?void 0:O.chevronIcon,width:null===(N=null==j?void 0:j.iconSizes)||void 0===N?void 0:N.chevronIcon,height:null===(w=null==j?void 0:j.iconSizes)||void 0===w?void 0:w.chevronIcon},null==V?void 0:V.aiReasoningChevron)})]}))]})),e.jsxs("div",Object.assign({className:t.default.actionsContainer,style:null==V?void 0:V.actionsContainer},{children:[G?e.jsx(ne,{className:t.default.loaderIcon,style:Object.assign({color:null===(L=null==j?void 0:j.iconColors)||void 0===L?void 0:L.loaderIcon,width:null===(q=null==j?void 0:j.iconSizes)||void 0===q?void 0:q.loaderIcon,height:null===(A=null==j?void 0:j.iconSizes)||void 0===A?void 0:A.loaderIcon},null==V?void 0:V.loaderIcon)}):"in-progress"===c.status?e.jsx("button",Object.assign({onClick:()=>h(c),disabled:u,className:`${t.default.fixButton} ${u?t.default.fixButtonDisabled:""}`,style:Object.assign(Object.assign({},null==V?void 0:V.fixButton),u?null==V?void 0:V.fixButtonDisabled:{})},{children:te})):e.jsx(ee,{className:t.default.checkIcon,style:Object.assign({color:null===(z=null==j?void 0:j.iconColors)||void 0===z?void 0:z.checkIcon,width:null===(_=null==j?void 0:j.iconSizes)||void 0===_?void 0:_.checkIcon,height:null===(T=null==j?void 0:j.iconSizes)||void 0===T?void 0:T.checkIcon},null==V?void 0:V.checkIcon)}),e.jsx("button",Object.assign({className:t.default.externalLinkButton,onClick:()=>x(c),style:null==V?void 0:V.externalLinkButton},{children:e.jsx(oe,{className:`${t.default.externalLinkIcon} ${J?t.default.externalLinkIconHovered:""}`,style:{color:J?(null===(B=null==j?void 0:j.iconColors)||void 0===B?void 0:B.externalLinkIconHover)||(null===(M=null==j?void 0:j.iconColors)||void 0===M?void 0:M.externalLinkIcon):null===($=null==j?void 0:j.iconColors)||void 0===$?void 0:$.externalLinkIcon,width:null===(H=null==j?void 0:j.iconSizes)||void 0===H?void 0:H.externalLinkIcon,height:null===(D=null==j?void 0:j.iconSizes)||void 0===D?void 0:D.externalLinkIcon}})}))]}))]})),U&&e.jsx("div",Object.assign({className:t.default.aiReasoningContent,style:null==V?void 0:V.aiReasoningContent},{children:e.jsx(s.default,{aiReason:Z,scenario:"riskSideBar",customStyles:(null===(P=null===(E=null==Q?void 0:Q.customStyles)||void 0===E?void 0:E.userStoryScreenStyles)||void 0===P?void 0:P.userStoryContentStyles)?{aiReasoningPill:Q.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningPill,aiReasoningMarkdown:Q.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningMarkdown,aiReasoningAccordion:Q.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningAccordion,aiReasoningContent:Q.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningContent}:void 0})}))]}))}))};
2
2
  //# sourceMappingURL=GapItem.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),s=require("lucide-react"),i=require("../GapItem/GapItem.js"),a=require("./RiskCategorySection.module.css.js");exports.default=function(o){var l,u,c,d,r=o.title,g=o.items,v=o.badgeColorClass,h=o.defaultOpen,_=void 0!==h&&h,f=o.type,m=o.isProcessingGapItems,p=o.onClickAiReasoning,x=o.handleFixRisk,y=o.handleHighlightGapContent,B=o.customStyles,j=o.customIcons,C=t.useState(_),I=C[0],S=C[1],N=t.useState(!1),k=N[0],G=N[1],q=null==B?void 0:B.riskCategorySection,R=(null===(l=null==j?void 0:j.icons)||void 0===l?void 0:l.chevronUpIcon)||s.ChevronUp;if(0===g.length)return null;var b={Critical:null==q?void 0:q.criticalBadge,Warning:null==q?void 0:q.warningBadge,Suggestion:null==q?void 0:q.suggestionBadge}[r],A={critical:a.default.statusBadgeCritical,warning:a.default.statusBadgeWarning,suggestion:a.default.statusBadgeSuggestion}[v]||"";return n.jsxs("div",e.__assign({className:a.default.container,style:null==q?void 0:q.container},{children:[n.jsxs("button",e.__assign({onClick:function(){return S(!I)},className:"".concat(a.default.headerButton," ").concat(I?a.default.headerButtonOpen:""),style:e.__assign(e.__assign(e.__assign({},null==q?void 0:q.headerButton),k?null==q?void 0:q.headerButtonHover:{}),I?null==q?void 0:q.headerButtonOpen:{}),onMouseEnter:function(){return G(!0)},onMouseLeave:function(){return G(!1)}},{children:[n.jsxs("div",e.__assign({className:a.default.badgeGroup},{children:[n.jsx("span",e.__assign({className:"".concat(a.default.statusBadge," ").concat(A),style:e.__assign(e.__assign({},null==q?void 0:q.statusBadge),b)},{children:r})),n.jsxs("span",e.__assign({className:a.default.countBadge,style:null==q?void 0:q.countBadge},{children:["(",g.length,")"]}))]})),n.jsx(R,{className:"".concat(a.default.chevronIcon," ").concat(I?"":a.default.chevronRotated),style:e.__assign({color:null===(u=null==j?void 0:j.iconColors)||void 0===u?void 0:u.chevronIcon,width:null===(c=null==j?void 0:j.iconSizes)||void 0===c?void 0:c.chevronIcon,height:null===(d=null==j?void 0:j.iconSizes)||void 0===d?void 0:d.chevronIcon},null==q?void 0:q.chevronIcon)})]})),n.jsx("div",e.__assign({className:"".concat(a.default.contentArea," ").concat(I?"":a.default.contentHidden),style:null==q?void 0:q.contentArea},{children:g.length>0?g.map(function(e,t){return n.jsx(i.default,{item:e,index:t,title:r,type:f,isProcessingGapItems:m,onClickAiReasoning:p,handleFixRisk:x,handleHighlightGapContent:y,customStyles:B,customIcons:j},t)}):n.jsx("p",e.__assign({className:a.default.emptyText,style:null==q?void 0:q.emptyText},{children:"No items found."}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),s=require("../GapItem/GapItem.js"),i=require("./RiskCategorySection.module.css.js");exports.default=({title:l,items:a,badgeColorClass:o,defaultOpen:d=!1,type:c,isProcessingGapItems:u,onClickAiReasoning:r,handleFixRisk:g,handleHighlightGapContent:v,customStyles:h,customIcons:j})=>{var m,p,f,b;const[x,O]=t.useState(d),[y,B]=t.useState(!1),C=null==h?void 0:h.riskCategorySection,I=(null===(m=null==j?void 0:j.icons)||void 0===m?void 0:m.chevronUpIcon)||n.ChevronUp;if(0===a.length)return null;const S={Critical:null==C?void 0:C.criticalBadge,Warning:null==C?void 0:C.warningBadge,Suggestion:null==C?void 0:C.suggestionBadge}[l],N={critical:i.default.statusBadgeCritical,warning:i.default.statusBadgeWarning,suggestion:i.default.statusBadgeSuggestion}[o]||"";return e.jsxs("div",Object.assign({className:i.default.container,style:null==C?void 0:C.container},{children:[e.jsxs("button",Object.assign({onClick:()=>O(!x),className:`${i.default.headerButton} ${x?i.default.headerButtonOpen:""}`,style:Object.assign(Object.assign(Object.assign({},null==C?void 0:C.headerButton),y?null==C?void 0:C.headerButtonHover:{}),x?null==C?void 0:C.headerButtonOpen:{}),onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1)},{children:[e.jsxs("div",Object.assign({className:i.default.badgeGroup},{children:[e.jsx("span",Object.assign({className:`${i.default.statusBadge} ${N}`,style:Object.assign(Object.assign({},null==C?void 0:C.statusBadge),S)},{children:l})),e.jsxs("span",Object.assign({className:i.default.countBadge,style:null==C?void 0:C.countBadge},{children:["(",a.length,")"]}))]})),e.jsx(I,{className:`${i.default.chevronIcon} ${x?"":i.default.chevronRotated}`,style:Object.assign({color:null===(p=null==j?void 0:j.iconColors)||void 0===p?void 0:p.chevronIcon,width:null===(f=null==j?void 0:j.iconSizes)||void 0===f?void 0:f.chevronIcon,height:null===(b=null==j?void 0:j.iconSizes)||void 0===b?void 0:b.chevronIcon},null==C?void 0:C.chevronIcon)})]})),e.jsx("div",Object.assign({className:`${i.default.contentArea} ${x?"":i.default.contentHidden}`,style:null==C?void 0:C.contentArea},{children:a.length>0?a.map((t,n)=>e.jsx(s.default,{item:t,index:n,title:l,type:c,isProcessingGapItems:u,onClickAiReasoning:r,handleFixRisk:g,handleHighlightGapContent:v,customStyles:h,customIcons:j},n)):e.jsx("p",Object.assign({className:i.default.emptyText,style:null==C?void 0:C.emptyText},{children:"No items found."}))}))]}))};
2
2
  //# sourceMappingURL=RiskCategorySection.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("./RiskSidebarCategorySection.module.css.js");exports.default=function(t){var l=t.title,n=t.length,a=t.badgeColorClass,r=t.customStyles,u=null==r?void 0:r.riskSidebarCategorySection,d={Critical:null==u?void 0:u.criticalBadge,Warning:null==u?void 0:u.warningBadge,JAS:null==u?void 0:u.suggestionBadge,Suggestion:null==u?void 0:u.suggestionBadge}[l],g={critical:s.default.critical,warning:s.default.warning,suggestion:s.default.suggestion}[a]||"";return i.jsxs("div",e.__assign({className:"".concat(s.default.badge," ").concat(g),style:e.__assign(e.__assign({},null==u?void 0:u.badge),d)},{children:[i.jsx("span",e.__assign({style:null==u?void 0:u.countText},{children:n})),i.jsx("span",e.__assign({style:null==u?void 0:u.titleText},{children:l}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("./RiskSidebarCategorySection.module.css.js");exports.default=({title:s,length:t,badgeColorClass:l,customStyles:n})=>{const a=null==n?void 0:n.riskSidebarCategorySection,r={Critical:null==a?void 0:a.criticalBadge,Warning:null==a?void 0:a.warningBadge,JAS:null==a?void 0:a.suggestionBadge,Suggestion:null==a?void 0:a.suggestionBadge}[s],d={critical:i.default.critical,warning:i.default.warning,suggestion:i.default.suggestion}[l]||"";return e.jsxs("div",Object.assign({className:`${i.default.badge} ${d}`,style:Object.assign(Object.assign({},null==a?void 0:a.badge),r)},{children:[e.jsx("span",Object.assign({style:null==a?void 0:a.countText},{children:t})),e.jsx("span",Object.assign({style:null==a?void 0:a.titleText},{children:s}))]}))};
2
2
  //# sourceMappingURL=RiskSidebarCategorySection.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),l=require("lucide-react"),o=require("@mui/material"),s=require("uuid"),t=require("../RiskSidebarCategorySection/RiskSidebarCategorySection.js"),a=require("../RiskCategorySection/RiskCategorySection.js"),d=require("./StoryNode.module.css.js"),r=function(i){var e,n,l,o,s,t,a,d=(null===(n=null===(e=i.display_items)||void 0===e?void 0:e.critical)||void 0===n?void 0:n.length)||0,c=(null===(o=null===(l=i.display_items)||void 0===l?void 0:l.warning)||void 0===o?void 0:o.length)||0,u=(null===(t=null===(s=i.display_items)||void 0===s?void 0:s.recommendation)||void 0===t?void 0:t.length)||0;if((null===(a=i.sub_feature)||void 0===a?void 0:a.length)>0)for(var v=0,g=i.sub_feature;v<g.length;v++){var m=g[v],h=r(m);d+=h.critical,c+=h.warning,u+=h.recommendation}return{critical:d,warning:c,recommendation:u}};function c(n,t,a,r){for(var c,u=[],v=/<learned>(.*?)<\/learned>/g,g=0,m=0,h=t||l.Info;null!==(c=v.exec(n));){c[0];var p=c[1],y=c.index;y>g&&u.push(e.jsx("span",{children:n.slice(g,y)},"text-pre-".concat(m++))),u.push(e.jsx(o.Tooltip,i.__assign({title:p,placement:"top"},{children:e.jsx(h,{size:r||16,className:d.default.infoIcon,style:{color:a,width:r,height:r}})}),"tooltip-".concat(s.v4()))),g=v.lastIndex}return g<(null==n?void 0:n.length)&&u.push(e.jsx("span",{children:n.slice(g)},"text-post-".concat(m++))),u}var u=function(s){var v,g,m,h,p,y,_,f,C,x,I,S,j,k,b,w,N,R,G,q,z,F,W,A,P=s.story,H=s.depth,L=void 0===H?0:H,M=s.onClickStoryNodeCallback,T=s.type,O=s.isProcessingGapItems,B=s.onClickAiReasoning,D=s.handleFixRisk,E=s.handleHighlightGapContent,J=s.customStyles,K=s.customIcons,Q=s.onSelectStory,U=s.rootArtifactId,V=void 0===U?P.id:U,X=n.useState(0===L),Y=X[0],Z=X[1],$=n.useState(!1),ii=$[0],ei=$[1],ni=null==J?void 0:J.storyNode,li=(null===(v=null==K?void 0:K.icons)||void 0===v?void 0:v.bookmarkIcon)||l.Bookmark,oi=(null===(g=null==K?void 0:K.icons)||void 0===g?void 0:g.chevronDownIcon)||l.ChevronDown,si=(null===(m=null==K?void 0:K.icons)||void 0===m?void 0:m.chevronRightIcon)||l.ChevronRight,ti=n.useMemo(function(){return P.display_items.critical.length>0?"Critical":P.display_items.warning.length>0?"Warning":P.display_items.recommendation.length>0?"Suggestion":null},[P.display_items,T]),ai=n.useMemo(function(){return r(P)},[P]),di=0===((null===(p=null===(h=P.display_items)||void 0===h?void 0:h.critical)||void 0===p?void 0:p.length)||0)+((null===(_=null===(y=P.display_items)||void 0===y?void 0:y.warning)||void 0===_?void 0:_.length)||0)+((null===(C=null===(f=P.display_items)||void 0===f?void 0:f.recommendation)||void 0===C?void 0:C.length)||0);return e.jsxs("div",i.__assign({className:"".concat(d.default.container," ").concat(L>0?d.default.nestedContainer:""),style:i.__assign(i.__assign({},null==ni?void 0:ni.container),L>0?null==ni?void 0:ni.nestedContainer:{})},{children:[e.jsxs("div",i.__assign({onClick:function(){Z(!Y),null==M||M(),null==Q||Q(V)},className:d.default.headerRow,style:i.__assign(i.__assign({},null==ni?void 0:ni.headerRow),ii?null==ni?void 0:ni.headerRowHover:{}),onMouseEnter:function(){return ei(!0)},onMouseLeave:function(){return ei(!1)}},{children:[e.jsx("div",i.__assign({className:d.default.chevronWrapper,style:null==ni?void 0:ni.chevronWrapper},{children:Y?e.jsx(oi,{className:d.default.chevronIcon,style:{color:null===(x=null==K?void 0:K.iconColors)||void 0===x?void 0:x.chevronIcon,width:null===(I=null==K?void 0:K.iconSizes)||void 0===I?void 0:I.chevronIcon,height:null===(S=null==K?void 0:K.iconSizes)||void 0===S?void 0:S.chevronIcon}}):e.jsx(si,{className:d.default.chevronIcon,style:{color:null===(j=null==K?void 0:K.iconColors)||void 0===j?void 0:j.chevronIcon,width:null===(k=null==K?void 0:K.iconSizes)||void 0===k?void 0:k.chevronIcon,height:null===(b=null==K?void 0:K.iconSizes)||void 0===b?void 0:b.chevronIcon}})})),e.jsxs("div",i.__assign({className:d.default.headerContent,style:null==ni?void 0:ni.headerContent},{children:[e.jsxs("div",i.__assign({className:d.default.artifactIdRow,style:null==ni?void 0:ni.artifactIdRow},{children:[e.jsx(li,{className:d.default.bookmarkIcon,style:{color:null===(w=null==K?void 0:K.iconColors)||void 0===w?void 0:w.bookmarkIcon,width:null===(N=null==K?void 0:K.iconSizes)||void 0===N?void 0:N.bookmarkIcon,height:null===(R=null==K?void 0:K.iconSizes)||void 0===R?void 0:R.bookmarkIcon}}),e.jsx("span",i.__assign({style:null==ni?void 0:ni.artifactIdText},{children:P.artifactTitleID}))]})),e.jsx(o.Tooltip,i.__assign({title:c(P.title,null===(G=null==K?void 0:K.icons)||void 0===G?void 0:G.infoIcon,null===(q=null==K?void 0:K.iconColors)||void 0===q?void 0:q.infoIcon,null===(z=null==K?void 0:K.iconSizes)||void 0===z?void 0:z.infoIcon),arrow:!0},{children:e.jsx("h3",i.__assign({className:d.default.title,style:i.__assign(i.__assign({},null==ni?void 0:ni.title),ii?null==ni?void 0:ni.titleHover:{})},{children:c(P.title,null===(F=null==K?void 0:K.icons)||void 0===F?void 0:F.infoIcon,null===(W=null==K?void 0:K.iconColors)||void 0===W?void 0:W.infoIcon,null===(A=null==K?void 0:K.iconSizes)||void 0===A?void 0:A.infoIcon)}))})),!Y&&e.jsx("div",i.__assign({className:d.default.collapsedSummary,style:null==ni?void 0:ni.collapsedSummary},{children:(0===L||ai.critical+ai.warning+ai.recommendation>0)&&e.jsxs(e.Fragment,{children:[e.jsx("span",i.__assign({className:d.default.summaryLabel,style:null==ni?void 0:ni.summaryLabel},{children:"Gap"===T?"Gaps : ":"Risks : "})),e.jsxs("div",i.__assign({className:d.default.summaryBadgesContainer,style:null==ni?void 0:ni.summaryBadgesContainer},{children:[ai.critical>0&&e.jsx(t.default,{title:"Critical",length:ai.critical,badgeColorClass:"critical",customStyles:J}),ai.warning>0&&e.jsx(t.default,{title:"Warning",length:ai.warning,badgeColorClass:"warning",customStyles:J}),ai.recommendation>0&&e.jsx(t.default,{title:"JAS",length:ai.recommendation,badgeColorClass:"suggestion",customStyles:J})]}))]})}))]}))]})),Y&&e.jsxs("div",i.__assign({className:d.default.expandedContent,style:null==ni?void 0:ni.expandedContent},{children:[e.jsx("div",i.__assign({className:d.default.expandedInnerPadding,style:null==ni?void 0:ni.expandedInnerPadding},{children:di?L>0&&e.jsx("span",i.__assign({className:d.default.summaryLabel,style:null==ni?void 0:ni.summaryLabel},{children:"Gaps: No Gaps Found"})):e.jsxs("div",i.__assign({className:d.default.itemsContainer,style:null==ni?void 0:ni.itemsContainer},{children:[e.jsx(a.default,{title:"Critical",items:P.display_items.critical,badgeColorClass:"critical",defaultOpen:"Critical"===ti,type:T,isProcessingGapItems:O,onClickAiReasoning:B,handleFixRisk:D,handleHighlightGapContent:E,customStyles:J,customIcons:K}),e.jsx(a.default,{title:"Warning",items:P.display_items.warning,badgeColorClass:"warning",defaultOpen:"Warning"===ti,type:T,isProcessingGapItems:O,onClickAiReasoning:B,handleFixRisk:D,handleHighlightGapContent:E,customStyles:J,customIcons:K}),e.jsx(a.default,{title:"Suggestion",items:P.display_items.recommendation,badgeColorClass:"suggestion",defaultOpen:"Suggestion"===ti,type:T,isProcessingGapItems:O,onClickAiReasoning:B,handleFixRisk:D,handleHighlightGapContent:E,customStyles:J,customIcons:K})]}))})),P.sub_feature&&P.sub_feature.length>0&&e.jsx("div",i.__assign({className:d.default.subFeaturesWrapper,style:null==ni?void 0:ni.subFeaturesWrapper},{children:P.sub_feature.map(function(i,n){return e.jsx(u,{story:i,depth:L+1,onClickStoryNodeCallback:M,type:T,isProcessingGapItems:O,onClickAiReasoning:B,handleFixRisk:D,handleHighlightGapContent:E,customStyles:J,customIcons:K,onSelectStory:Q,rootArtifactId:V},n)})}))]}))]}))};exports.default=u,exports.replaceLearnedTagsWithInfo=c;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),l=require("@mui/material"),o=require("uuid"),s=require("../RiskSidebarCategorySection/RiskSidebarCategorySection.js"),t=require("../RiskCategorySection/RiskCategorySection.js"),a=require("./StoryNode.module.css.js");const d=e=>{var i,n,l,o,s,t,a;let c=(null===(n=null===(i=e.display_items)||void 0===i?void 0:i.critical)||void 0===n?void 0:n.length)||0,r=(null===(o=null===(l=e.display_items)||void 0===l?void 0:l.warning)||void 0===o?void 0:o.length)||0,u=(null===(t=null===(s=e.display_items)||void 0===s?void 0:s.recommendation)||void 0===t?void 0:t.length)||0;if((null===(a=e.sub_feature)||void 0===a?void 0:a.length)>0)for(const i of e.sub_feature){const e=d(i);c+=e.critical,r+=e.warning,u+=e.recommendation}return{critical:c,warning:r,recommendation:u}};function c(i,s,t,d){const c=[],r=/<learned>(.*?)<\/learned>/g;let u,v=0,g=0;const m=s||n.Info;for(;null!==(u=r.exec(i));){const[n,s]=u,h=u.index;h>v&&c.push(e.jsx("span",{children:i.slice(v,h)},"text-pre-"+g++)),c.push(e.jsx(l.Tooltip,Object.assign({title:s,placement:"top"},{children:e.jsx(m,{size:d||16,className:a.default.infoIcon,style:{color:t,width:d,height:d}})}),`tooltip-${o.v4()}`)),v=r.lastIndex}return v<(null==i?void 0:i.length)&&c.push(e.jsx("span",{children:i.slice(v)},"text-post-"+g++)),c}const r=({story:o,depth:u=0,onClickStoryNodeCallback:v,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f,onSelectStory:C,rootArtifactId:b=o.id})=>{var x,I,S,k,O,w,N,R,_,G,z,F,W,q,A,P,H,L,M,T,B,D,$,E;const[J,K]=i.useState(0===u),[Q,U]=i.useState(!1),V=null==j?void 0:j.storyNode,X=(null===(x=null==f?void 0:f.icons)||void 0===x?void 0:x.bookmarkIcon)||n.Bookmark,Y=(null===(I=null==f?void 0:f.icons)||void 0===I?void 0:I.chevronDownIcon)||n.ChevronDown,Z=(null===(S=null==f?void 0:f.icons)||void 0===S?void 0:S.chevronRightIcon)||n.ChevronRight,ee=i.useMemo(()=>o.display_items.critical.length>0?"Critical":o.display_items.warning.length>0?"Warning":o.display_items.recommendation.length>0?"Suggestion":null,[o.display_items,g]),ie=i.useMemo(()=>d(o),[o]),ne=0===((null===(O=null===(k=o.display_items)||void 0===k?void 0:k.critical)||void 0===O?void 0:O.length)||0)+((null===(N=null===(w=o.display_items)||void 0===w?void 0:w.warning)||void 0===N?void 0:N.length)||0)+((null===(_=null===(R=o.display_items)||void 0===R?void 0:R.recommendation)||void 0===_?void 0:_.length)||0);return e.jsxs("div",Object.assign({className:`${a.default.container} ${u>0?a.default.nestedContainer:""}`,style:Object.assign(Object.assign({},null==V?void 0:V.container),u>0?null==V?void 0:V.nestedContainer:{})},{children:[e.jsxs("div",Object.assign({onClick:()=>{K(!J),null==v||v(),null==C||C(b)},className:a.default.headerRow,style:Object.assign(Object.assign({},null==V?void 0:V.headerRow),Q?null==V?void 0:V.headerRowHover:{}),onMouseEnter:()=>U(!0),onMouseLeave:()=>U(!1)},{children:[e.jsx("div",Object.assign({className:a.default.chevronWrapper,style:null==V?void 0:V.chevronWrapper},{children:J?e.jsx(Y,{className:a.default.chevronIcon,style:{color:null===(G=null==f?void 0:f.iconColors)||void 0===G?void 0:G.chevronIcon,width:null===(z=null==f?void 0:f.iconSizes)||void 0===z?void 0:z.chevronIcon,height:null===(F=null==f?void 0:f.iconSizes)||void 0===F?void 0:F.chevronIcon}}):e.jsx(Z,{className:a.default.chevronIcon,style:{color:null===(W=null==f?void 0:f.iconColors)||void 0===W?void 0:W.chevronIcon,width:null===(q=null==f?void 0:f.iconSizes)||void 0===q?void 0:q.chevronIcon,height:null===(A=null==f?void 0:f.iconSizes)||void 0===A?void 0:A.chevronIcon}})})),e.jsxs("div",Object.assign({className:a.default.headerContent,style:null==V?void 0:V.headerContent},{children:[e.jsxs("div",Object.assign({className:a.default.artifactIdRow,style:null==V?void 0:V.artifactIdRow},{children:[e.jsx(X,{className:a.default.bookmarkIcon,style:{color:null===(P=null==f?void 0:f.iconColors)||void 0===P?void 0:P.bookmarkIcon,width:null===(H=null==f?void 0:f.iconSizes)||void 0===H?void 0:H.bookmarkIcon,height:null===(L=null==f?void 0:f.iconSizes)||void 0===L?void 0:L.bookmarkIcon}}),e.jsx("span",Object.assign({style:null==V?void 0:V.artifactIdText},{children:o.artifactTitleID}))]})),e.jsx(l.Tooltip,Object.assign({title:c(o.title,null===(M=null==f?void 0:f.icons)||void 0===M?void 0:M.infoIcon,null===(T=null==f?void 0:f.iconColors)||void 0===T?void 0:T.infoIcon,null===(B=null==f?void 0:f.iconSizes)||void 0===B?void 0:B.infoIcon),arrow:!0},{children:e.jsx("h3",Object.assign({className:a.default.title,style:Object.assign(Object.assign({},null==V?void 0:V.title),Q?null==V?void 0:V.titleHover:{})},{children:c(o.title,null===(D=null==f?void 0:f.icons)||void 0===D?void 0:D.infoIcon,null===($=null==f?void 0:f.iconColors)||void 0===$?void 0:$.infoIcon,null===(E=null==f?void 0:f.iconSizes)||void 0===E?void 0:E.infoIcon)}))})),!J&&e.jsx("div",Object.assign({className:a.default.collapsedSummary,style:null==V?void 0:V.collapsedSummary},{children:(0===u||ie.critical+ie.warning+ie.recommendation>0)&&e.jsxs(e.Fragment,{children:[e.jsx("span",Object.assign({className:a.default.summaryLabel,style:null==V?void 0:V.summaryLabel},{children:"Gap"===g?"Gaps : ":"Risks : "})),e.jsxs("div",Object.assign({className:a.default.summaryBadgesContainer,style:null==V?void 0:V.summaryBadgesContainer},{children:[ie.critical>0&&e.jsx(s.default,{title:"Critical",length:ie.critical,badgeColorClass:"critical",customStyles:j}),ie.warning>0&&e.jsx(s.default,{title:"Warning",length:ie.warning,badgeColorClass:"warning",customStyles:j}),ie.recommendation>0&&e.jsx(s.default,{title:"JAS",length:ie.recommendation,badgeColorClass:"suggestion",customStyles:j})]}))]})}))]}))]})),J&&e.jsxs("div",Object.assign({className:a.default.expandedContent,style:null==V?void 0:V.expandedContent},{children:[e.jsx("div",Object.assign({className:a.default.expandedInnerPadding,style:null==V?void 0:V.expandedInnerPadding},{children:ne?u>0&&e.jsx("span",Object.assign({className:a.default.summaryLabel,style:null==V?void 0:V.summaryLabel},{children:"Gaps: No Gaps Found"})):e.jsxs("div",Object.assign({className:a.default.itemsContainer,style:null==V?void 0:V.itemsContainer},{children:[e.jsx(t.default,{title:"Critical",items:o.display_items.critical,badgeColorClass:"critical",defaultOpen:"Critical"===ee,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f}),e.jsx(t.default,{title:"Warning",items:o.display_items.warning,badgeColorClass:"warning",defaultOpen:"Warning"===ee,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f}),e.jsx(t.default,{title:"Suggestion",items:o.display_items.recommendation,badgeColorClass:"suggestion",defaultOpen:"Suggestion"===ee,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f})]}))})),o.sub_feature&&o.sub_feature.length>0&&e.jsx("div",Object.assign({className:a.default.subFeaturesWrapper,style:null==V?void 0:V.subFeaturesWrapper},{children:o.sub_feature.map((i,n)=>e.jsx(r,{story:i,depth:u+1,onClickStoryNodeCallback:v,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f,onSelectStory:C,rootArtifactId:b},n))}))]}))]}))};exports.default=r,exports.replaceLearnedTagsWithInfo=c;
2
2
  //# sourceMappingURL=StoryNode.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=function(t,a){var n;return{title:t.title,artifactTitleID:a,gap_items:{critical:[],warning:[],recommendation:[]},id:t.artifactId,sub_feature:(null!==(n=t.sub_features)&&void 0!==n?n:[]).map(function(t,n){var s="".concat(a,"-").concat(String.fromCharCode(65+n));return i(t,s)})}},a=function(i,n){return t.__assign(t.__assign({},i),{gap_items:{critical:i.gap_items.critical.map(function(i){return i.gap_id===n?t.__assign(t.__assign({},i),{status:"completed"}):t.__assign({},i)}),warning:i.gap_items.warning.map(function(i){return i.gap_id===n?t.__assign(t.__assign({},i),{status:"completed"}):t.__assign({},i)}),recommendation:i.gap_items.recommendation.map(function(i){return i.gap_id===n?t.__assign(t.__assign({},i),{status:"completed"}):t.__assign({},i)})},sub_feature:i.sub_feature.map(function(t){return a(t,n)})})};exports.buildStoryWithGap=function(a,n,s){var e=a.map(function(t,a){return i(t,s[a])});return Object.keys(n.gap_items).forEach(function(i){n.gap_items[i].forEach(function(a){!function(i,a,n){var s,e=function(t){if(t.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};var i=t.indexOf("/");return-1===i?{isArtifactLevel:!1,storyId:t,subId:"null"}:{isArtifactLevel:!1,storyId:t.substring(0,i),subId:t.substring(i+1)}}(n.user_story_id),r=e.isArtifactLevel,u=e.storyId,_=e.subId;if(r)i.length>0?i[0].gap_items[a].push(t.__assign({},n)):console.warn("[buildStoryWithGap] No stories available for artifact-level gap:",n.user_story_id);else{var o=i.findIndex(function(t){return t.id===u}),c=i[o];if(c){var g=c.sub_feature.findIndex(function(t){return t.id===_}),d="null"===_.toLowerCase()?c:null===(s=c.sub_feature)||void 0===s?void 0:s[g];d?d.gap_items[a].push(t.__assign({},n)):console.warn("[buildStoryWithGap] Target story/sub-feature not found:",{storyId:u,subId:_})}}}(e,i,a)})}),e},exports.updateGapInRawData=function(i,a){return{gap_items:{critical:i.gap_items.critical.map(function(i){return i.gap_id===a?t.__assign(t.__assign({},i),{status:"completed"}):t.__assign({},i)}),warning:i.gap_items.warning.map(function(i){return i.gap_id===a?t.__assign(t.__assign({},i),{status:"completed"}):t.__assign({},i)}),recommendation:i.gap_items.recommendation.map(function(i){return i.gap_id===a?t.__assign(t.__assign({},i),{status:"completed"}):t.__assign({},i)})}}},exports.updateGapStory=a;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=(s,e)=>{var a;return{title:s.title,artifactTitleID:e,gap_items:{critical:[],warning:[],recommendation:[]},id:s.artifactId,sub_feature:(null!==(a=s.sub_features)&&void 0!==a?a:[]).map((s,a)=>{const i=`${e}-${String.fromCharCode(65+a)}`;return t(s,i)})}},s=(t,e)=>Object.assign(Object.assign({},t),{gap_items:{critical:t.gap_items.critical.map(t=>t.gap_id===e?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t)),warning:t.gap_items.warning.map(t=>t.gap_id===e?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t)),recommendation:t.gap_items.recommendation.map(t=>t.gap_id===e?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t))},sub_feature:t.sub_feature.map(t=>s(t,e))});exports.buildStoryWithGap=(s,e,a)=>{const i=s.map((s,e)=>t(s,a[e]));return Object.keys(e.gap_items).forEach(t=>{e.gap_items[t].forEach(s=>{((t,s,e)=>{var a;const{isArtifactLevel:i,storyId:r,subId:n}=(t=>{if(t.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};const s=t.indexOf("/");return-1===s?{isArtifactLevel:!1,storyId:t,subId:"null"}:{isArtifactLevel:!1,storyId:t.substring(0,s),subId:t.substring(s+1)}})(e.user_story_id);if(i)return void(t.length>0?t[0].gap_items[s].push(Object.assign({},e)):console.warn("[buildStoryWithGap] No stories available for artifact-level gap:",e.user_story_id));const c=t.findIndex(t=>t.id===r),o=t[c];if(!o)return;const g=o.sub_feature.findIndex(t=>t.id===n),d="null"===n.toLowerCase()?o:null===(a=o.sub_feature)||void 0===a?void 0:a[g];d?d.gap_items[s].push(Object.assign({},e)):console.warn("[buildStoryWithGap] Target story/sub-feature not found:",{storyId:r,subId:n})})(i,t,s)})}),i},exports.updateGapInRawData=(t,s)=>({gap_items:{critical:t.gap_items.critical.map(t=>t.gap_id===s?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t)),warning:t.gap_items.warning.map(t=>t.gap_id===s?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t)),recommendation:t.gap_items.recommendation.map(t=>t.gap_id===s?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t))}}),exports.updateGapStory=s;
2
2
  //# sourceMappingURL=buildStoryWithGap.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),t=function(i,s){var r;return{title:i.title,artifactTitleID:s,risk_items:{critical:[],warning:[],recommendation:[]},id:i.artifactId,sub_feature:(null!==(r=i.sub_features)&&void 0!==r?r:[]).map(function(i,r){var n="".concat(s,"-").concat(String.fromCharCode(65+r));return t(i,n)})}},s=function(t,r){return i.__assign(i.__assign({},t),{risk_items:{critical:t.risk_items.critical.map(function(t){return t.risk_id===r?i.__assign(i.__assign({},t),{status:"completed"}):i.__assign({},t)}),warning:t.risk_items.warning.map(function(t){return t.risk_id===r?i.__assign(i.__assign({},t),{status:"completed"}):i.__assign({},t)}),recommendation:t.risk_items.recommendation.map(function(t){return t.risk_id===r?i.__assign(i.__assign({},t),{status:"completed"}):i.__assign({},t)})},sub_feature:t.sub_feature.map(function(i){return s(i,r)})})};exports.buildStoryWithRisk=function(s,r,n){var e=s.map(function(i,s){return t(i,n[s])});return Object.keys(r.risk_items).forEach(function(t){r.risk_items[t].forEach(function(s){!function(t,s,r){var n,e=function(i){if(i.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};var t=i.indexOf("/");return-1===t?{isArtifactLevel:!1,storyId:i,subId:"null"}:{isArtifactLevel:!1,storyId:i.substring(0,t),subId:i.substring(t+1)}}(r.user_story_id),a=e.isArtifactLevel,u=e.storyId,_=e.subId;if(a)t.length>0?t[0].risk_items[s].push(i.__assign({},r)):console.warn("[buildStoryWithRisk] No stories available for artifact-level risk:",r.user_story_id);else{var o=t.findIndex(function(i){return i.id===u}),c=t[o];if(c){var d=c.sub_feature.findIndex(function(i){return i.id===_}),f="null"===_.toLowerCase()?c:null===(n=c.sub_feature)||void 0===n?void 0:n[d];f?f.risk_items[s].push(i.__assign({},r)):console.warn("[buildStoryWithRisk] Target story/sub-feature not found:",{storyId:u,subId:_})}}}(e,t,s)})}),e},exports.updateRiskInRawData=function(t,s){return{risk_items:{critical:t.risk_items.critical.map(function(t){return t.risk_id===s?i.__assign(i.__assign({},t),{status:"completed"}):i.__assign({},t)}),warning:t.risk_items.warning.map(function(t){return t.risk_id===s?i.__assign(i.__assign({},t),{status:"completed"}):i.__assign({},t)}),recommendation:t.risk_items.recommendation.map(function(t){return t.risk_id===s?i.__assign(i.__assign({},t),{status:"completed"}):i.__assign({},t)})}}},exports.updateStory=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const s=(t,i)=>{var e;return{title:t.title,artifactTitleID:i,risk_items:{critical:[],warning:[],recommendation:[]},id:t.artifactId,sub_feature:(null!==(e=t.sub_features)&&void 0!==e?e:[]).map((t,e)=>{const r=`${i}-${String.fromCharCode(65+e)}`;return s(t,r)})}},t=(s,i)=>Object.assign(Object.assign({},s),{risk_items:{critical:s.risk_items.critical.map(s=>s.risk_id===i?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s)),warning:s.risk_items.warning.map(s=>s.risk_id===i?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s)),recommendation:s.risk_items.recommendation.map(s=>s.risk_id===i?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s))},sub_feature:s.sub_feature.map(s=>t(s,i))});exports.buildStoryWithRisk=(t,i,e)=>{const r=t.map((t,i)=>s(t,e[i]));return Object.keys(i.risk_items).forEach(s=>{i.risk_items[s].forEach(t=>{((s,t,i)=>{var e;const{isArtifactLevel:r,storyId:a,subId:n}=(s=>{if(s.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};const t=s.indexOf("/");return-1===t?{isArtifactLevel:!1,storyId:s,subId:"null"}:{isArtifactLevel:!1,storyId:s.substring(0,t),subId:s.substring(t+1)}})(i.user_story_id);if(r)return void(s.length>0?s[0].risk_items[t].push(Object.assign({},i)):console.warn("[buildStoryWithRisk] No stories available for artifact-level risk:",i.user_story_id));const c=s.findIndex(s=>s.id===a),o=s[c];if(!o)return;const d=o.sub_feature.findIndex(s=>s.id===n),u="null"===n.toLowerCase()?o:null===(e=o.sub_feature)||void 0===e?void 0:e[d];u?u.risk_items[t].push(Object.assign({},i)):console.warn("[buildStoryWithRisk] Target story/sub-feature not found:",{storyId:a,subId:n})})(r,s,t)})}),r},exports.updateRiskInRawData=(s,t)=>({risk_items:{critical:s.risk_items.critical.map(s=>s.risk_id===t?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s)),warning:s.risk_items.warning.map(s=>s.risk_id===t?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s)),recommendation:s.risk_items.recommendation.map(s=>s.risk_id===t?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s))}}),exports.updateStory=t;
2
2
  //# sourceMappingURL=buildStoryWithRisk.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("@mui/material"),t=require("./RecommendationBlock.module.css.js");exports.default=function(i){var l=i.label,n=i.customStyles;return r.jsx("span",e.__assign({className:t.default.recommendationBlockContainer,style:null==n?void 0:n.container},{children:r.jsx(s.Tooltip,e.__assign({title:l},{children:r.jsx("span",{children:"RECOMMENDATION"})}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("@mui/material"),t=require("./RecommendationBlock.module.css.js");exports.default=({label:r,customStyles:i})=>e.jsx("span",Object.assign({className:t.default.recommendationBlockContainer,style:null==i?void 0:i.container},{children:e.jsx(s.Tooltip,Object.assign({title:r},{children:e.jsx("span",{children:"RECOMMENDATION"})}))}));
2
2
  //# sourceMappingURL=RecommendationBlock.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),r=require("../../store/ref.context.js");exports.SectionStatus=void 0,(e=exports.SectionStatus||(exports.SectionStatus={})).WAITING="waiting",e.IN_PROGRESS="in_progress",e.GENERATED="generated",e.FAILED="failed",e.GENERATE="generate",e.APPROVED="approved";var o=i.createContext(null);exports.default=function(e){var s=e.children,a=e.userStory,u=e.setUserStory,c=e.aiReasoning,g=e.setAiReasoning,f=e.citations,d=e.setCitations,l=e.apiCachingConfig,C=e.customStyles,h=e.customIcons,p=e.searchQueryList,S=e.searchQueryReasoningIdList,m=e.citationConfig,v=e.chatHistory,R=e.chatCitationConfigs,x=e.gptCitationConfigs,y=e.diffEditConfig,I=e.aiReasoningAccordionOpenStates,A=e.persistedDataFiles,E=e.inlineUpdateComponentConfig,_=e.segmentComponentConfig,q=e.sectionStatusConfig,N=e.customSectionConfig,b=i.useState(0),P=b[0],j=b[1],D=i.useMemo(function(){if(0===a.length||0===c.length)return Array(a.length).fill(0);var e=Array.from({length:a.length},function(){return[]});return c.forEach(function(t){var n=Number(t.relevance_score);if(!(isNaN(n)||n<=0)){var i="ai_reasoning$".concat(t.id),r=a.findIndex(function(e){var t;return e.value.includes(i)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(function(e){return e.value.includes(i)}))});-1!==r&&e[r].push(n)}}),e.map(function(e){return 0===e.length?0:Math.round(e.reduce(function(e,t){return e+t},0)/e.length)})},[a,c]),L=i.useCallback(function(e){var t,n=a.findIndex(function(t){return t.artifactId===e});return-1===n?0:null!==(t=D[n])&&void 0!==t?t:0},[a,D]);return n.jsx(o.Provider,t.__assign({value:{chatHistory:v,userStory:a,setUserStory:u,aiReasoning:c,setAiReasoning:g,citations:f,setCitations:d,apiCachingConfig:l,customStyles:C,customIcons:h,searchQueryList:p,searchQueryReasoningIdList:S,citationConfig:m,getAvgScoreForStory:L,chatCitationConfigs:R,gptCitationConfigs:x,diffEditConfig:y,aiReasoningAccordionOpenStates:I,persistedDataFiles:A,currentHighlightIndex:P,setCurrentHighlightIndex:j,inlineUpdateComponentConfig:E,segmentComponentConfig:_,sectionStatusConfig:q,customSectionConfig:N}},{children:n.jsx(r.RefProvider,{children:s})}))},exports.useRequirementAI=function(){var e=i.useContext(o);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react/jsx-runtime"),n=require("react"),i=require("../../store/ref.context.js");exports.SectionStatus=void 0,(e=exports.SectionStatus||(exports.SectionStatus={})).WAITING="waiting",e.IN_PROGRESS="in_progress",e.GENERATED="generated",e.FAILED="failed",e.GENERATE="generate",e.APPROVED="approved";const o=n.createContext(null);exports.default=({children:e,userStory:s,setUserStory:r,aiReasoning:a,setAiReasoning:c,citations:u,setCitations:g,apiCachingConfig:d,customStyles:l,customIcons:f,searchQueryList:C,searchQueryReasoningIdList:h,citationConfig:p,chatHistory:S,chatCitationConfigs:m,gptCitationConfigs:R,diffEditConfig:v,aiReasoningAccordionOpenStates:x,persistedDataFiles:y,inlineUpdateComponentConfig:I,segmentComponentConfig:A,sectionStatusConfig:E,customSectionConfig:N})=>{const[_,b]=n.useState(0),j=n.useMemo(()=>{if(0===s.length||0===a.length)return Array(s.length).fill(0);const e=Array.from({length:s.length},()=>[]);return a.forEach(t=>{const n=Number(t.relevance_score);if(isNaN(n)||n<=0)return;const i=`ai_reasoning$${t.id}`,o=s.findIndex(e=>{var t;return e.value.includes(i)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(e=>e.value.includes(i)))});-1!==o&&e[o].push(n)}),e.map(e=>0===e.length?0:Math.round(e.reduce((e,t)=>e+t,0)/e.length))},[s,a]),q=n.useCallback(e=>{var t;const n=s.findIndex(t=>t.artifactId===e);return-1===n?0:null!==(t=j[n])&&void 0!==t?t:0},[s,j]);return t.jsx(o.Provider,Object.assign({value:{chatHistory:S,userStory:s,setUserStory:r,aiReasoning:a,setAiReasoning:c,citations:u,setCitations:g,apiCachingConfig:d,customStyles:l,customIcons:f,searchQueryList:C,searchQueryReasoningIdList:h,citationConfig:p,getAvgScoreForStory:q,chatCitationConfigs:m,gptCitationConfigs:R,diffEditConfig:v,aiReasoningAccordionOpenStates:x,persistedDataFiles:y,currentHighlightIndex:_,setCurrentHighlightIndex:b,inlineUpdateComponentConfig:I,segmentComponentConfig:A,sectionStatusConfig:E,customSectionConfig:N}},{children:t.jsx(i.RefProvider,{children:e})}))},exports.useRequirementAI=()=>{const e=n.useContext(o);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
2
2
  //# sourceMappingURL=RequirementAIWrapper.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),r=require("@lexical/react/LexicalComposer"),n=require("@lexical/react/LexicalHistoryPlugin"),o=require("@lexical/react/LexicalOnChangePlugin"),l=require("@lexical/react/LexicalTabIndentationPlugin"),a=require("@lexical/list"),u=require("@lexical/react/LexicalListPlugin"),s=require("@lexical/react/LexicalLinkPlugin"),c=require("@lexical/link"),d=require("@lexical/rich-text"),g=require("@lexical/react/LexicalTablePlugin"),x=require("@lexical/table"),f=require("lexical");require("./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js");var p=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("./components/EditorContainer/EditorContainer.js"),h=require("./components/EditorToolbar/EditorToolbar.js"),C=require("./plugins/LayoutPlugin.js"),v=require("./theme/theme.js");require("./theme/theme.css.js"),require("./Editor.css.js");var q=require("./components/Context/ContextMenu.js"),j=require("@lexical/mark"),N=require("./plugins/CommentPlugin/HTMLNode.js"),y=require("./constants/editorConfig.js"),T=require("./plugins/InitialHtml.js"),b=require("./plugins/InsertNode.js"),S=require("./plugins/DeleteNode.js"),L=require("./plugins/HighlightNode.js"),_=require("@lexical/react/LexicalComposerContext");function P(e){console.log(e)}function I(){var e=_.useLexicalComposerContext()[0];return i.useEffect(function(){var t=function(e){for(var t=e;t;){if("delete"===t.getType())return!0;t=t.getParent()}return!1};return e.registerCommand(f.KEY_DOWN_COMMAND,function(e){if("Backspace"!==e.key&&"Delete"!==e.key)return!1;var i=f.$getSelection();if(!f.$isRangeSelection(i))return!1;if(i.getNodes().some(function(e){return t(e)}))return e.preventDefault(),!0;if(i.isCollapsed()){var r=i.anchor.getNode();if(t(r))return e.preventDefault(),!0;if("Backspace"===e.key){var n=r.getPreviousSibling();if(0===i.anchor.offset&&"delete"===(null==n?void 0:n.getType()))return e.preventDefault(),!0}if("Delete"===e.key){var o=r.getNextSibling(),l=r.getTextContent().length;if(i.anchor.offset===l&&"delete"===(null==o?void 0:o.getType()))return e.preventDefault(),!0}}return!1},f.COMMAND_PRIORITY_CRITICAL)},[e]),null}exports.default=function(_){var R,E,k,B=_.minHeight,D=_.height,H=_.placeholder,M=_.onFocus,O=_.onBlur,A=_.onChange,w=_.onToolbarButtonClick,$=_.toolbarConfig,F=void 0===$?y.DEFAULT_TOOLBAR_CONFIG:$,W=_.editorRef,Y=_.editorState,V=_.initialString,G=_.customToolbar,K=_.plugins;_.nodes,_.dynamicHeight,_.artifactContext,_.commentsPanelState;var Q=_.mode,U=_.doNotShowBorderInViewMode,X=i.useRef(null),z={namespace:"MyEditor",theme:v.default,onError:P,nodes:[f.TextNode,a.ListNode,a.ListItemNode,c.LinkNode,d.QuoteNode,d.HeadingNode,x.TableNode,x.TableRowNode,x.TableCellNode,j.MarkNode,N.default,b.InsertNode,S.DeleteNode,L.HighlightSpanNode,L.HighlightButtonNode],editorState:Y},J=i.useState(null),Z=J[0],ee=J[1],te=i.useState(!1),ie=te[0],re=te[1],ne=p.useRequirementAI().customStyles,oe=function(e){var t;null===(t=W.current)||void 0===t||t.update(function(){var t=f.$getSelection();f.$isRangeSelection(t)&&t.getNodes().forEach(function(t){f.$isTextNode(t)&&t.setStyle("color: ".concat(e))})})};return document.getElementById("lexical_editor_wrapper"),t.jsxs(t.Fragment,{children:[(null===(R=null==ne?void 0:ne.textEditorStyles)||void 0===R?void 0:R.themeStyles)&&t.jsx("style",{children:null===(E=null==ne?void 0:ne.textEditorStyles)||void 0===E?void 0:E.themeStyles}),t.jsxs("div",e.__assign({ref:X,className:"w-full lexical_editor_wrapper ".concat(U&&"readOnly"===Q?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:function(e){var t;e.preventDefault(),null===(t=W.current)||void 0===t||t.update(function(){var t=f.$getSelection();f.$isRangeSelection(t)&&!t.isCollapsed()?(re(!0),ee({x:e.clientX,y:e.clientY})):(re(!1),ee(null))})},style:e.__assign({minHeight:B,height:D},null===(k=null==ne?void 0:ne.textEditorStyles)||void 0===k?void 0:k.textArea)},{children:[t.jsxs(r.LexicalComposer,e.__assign({initialConfig:z},{children:[" ","edit"===Q&&t.jsx(I,{}),"edit"===Q&&t.jsx(h.default,{onToolbarButtonClick:w,editorWrapperRef:X,toolbarConfig:F,customToolbar:G,editorRef:W}),t.jsx(m.default,{placeholder:H}),t.jsx(l.TabIndentationPlugin,{}),t.jsx(n.HistoryPlugin,{}),t.jsx(u.ListPlugin,{}),t.jsx(s.LinkPlugin,{}),t.jsx(g.TablePlugin,{}),t.jsx(C.LayoutPlugin,{onFocus:M,onBlur:O,editorRef:W}),t.jsx(o.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(e,t,i){A&&A(e,t,i)}}),V&&t.jsx(T.InitialHtml,{initialValue:V.value,initialFormat:V.type,mode:Q}),K&&K]})),Z&&ie&&"edit"===Q&&t.jsx(q.default,{position:Z,options:[{label:"Change Color to Red",action:function(){return oe("red")}},{label:"Change Color to Blue",action:function(){return oe("blue")}}],onClose:function(){ee(null)}})]}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),i=require("@lexical/react/LexicalComposer"),r=require("@lexical/react/LexicalHistoryPlugin"),o=require("@lexical/react/LexicalOnChangePlugin"),l=require("@lexical/react/LexicalTabIndentationPlugin"),n=require("@lexical/list"),a=require("@lexical/react/LexicalListPlugin"),s=require("@lexical/react/LexicalLinkPlugin"),u=require("@lexical/link"),c=require("@lexical/rich-text"),d=require("@lexical/react/LexicalTablePlugin"),g=require("@lexical/table"),x=require("lexical");require("./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js");var p=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("./components/EditorContainer/EditorContainer.js"),m=require("./components/EditorToolbar/EditorToolbar.js"),h=require("./plugins/LayoutPlugin.js"),C=require("./theme/theme.js");require("./theme/theme.css.js"),require("./Editor.css.js");var j=require("./components/Context/ContextMenu.js"),q=require("@lexical/mark"),b=require("./plugins/CommentPlugin/HTMLNode.js"),N=require("./constants/editorConfig.js"),v=require("./plugins/InitialHtml.js"),y=require("./plugins/InsertNode.js"),T=require("./plugins/DeleteNode.js"),S=require("./plugins/HighlightNode.js"),L=require("@lexical/react/LexicalComposerContext");function P(e){console.log(e)}function I(){const[e]=L.useLexicalComposerContext();return t.useEffect(()=>{const t=e=>{let t=e;for(;t;){if("delete"===t.getType())return!0;t=t.getParent()}return!1};return e.registerCommand(x.KEY_DOWN_COMMAND,e=>{if("Backspace"!==e.key&&"Delete"!==e.key)return!1;const i=x.$getSelection();if(!x.$isRangeSelection(i))return!1;if(i.getNodes().some(e=>t(e)))return e.preventDefault(),!0;if(i.isCollapsed()){const r=i.anchor.getNode();if(t(r))return e.preventDefault(),!0;if("Backspace"===e.key){const t=r.getPreviousSibling();if(0===i.anchor.offset&&"delete"===(null==t?void 0:t.getType()))return e.preventDefault(),!0}if("Delete"===e.key){const t=r.getNextSibling(),o=r.getTextContent().length;if(i.anchor.offset===o&&"delete"===(null==t?void 0:t.getType()))return e.preventDefault(),!0}}return!1},x.COMMAND_PRIORITY_CRITICAL)},[e]),null}exports.default=function({minHeight:L,height:R,placeholder:_,onFocus:E,onBlur:k,onChange:O,onToolbarButtonClick:B,toolbarConfig:D=N.DEFAULT_TOOLBAR_CONFIG,editorRef:H,editorState:M,initialString:A,customToolbar:w,plugins:$,nodes:F,dynamicHeight:W,artifactContext:Y,commentsPanelState:V,mode:G,doNotShowBorderInViewMode:K}){var Q,U,X;const z=t.useRef(null),J={namespace:"MyEditor",theme:C.default,onError:P,nodes:[x.TextNode,n.ListNode,n.ListItemNode,u.LinkNode,c.QuoteNode,c.HeadingNode,g.TableNode,g.TableRowNode,g.TableCellNode,q.MarkNode,b.default,y.InsertNode,T.DeleteNode,S.HighlightSpanNode,S.HighlightButtonNode],editorState:M},[Z,ee]=t.useState(null),[te,ie]=t.useState(!1),{customStyles:re}=p.useRequirementAI(),oe=e=>{var t;null===(t=H.current)||void 0===t||t.update(()=>{const t=x.$getSelection();x.$isRangeSelection(t)&&t.getNodes().forEach(t=>{x.$isTextNode(t)&&t.setStyle(`color: ${e}`)})})};return document.getElementById("lexical_editor_wrapper"),e.jsxs(e.Fragment,{children:[(null===(Q=null==re?void 0:re.textEditorStyles)||void 0===Q?void 0:Q.themeStyles)&&e.jsx("style",{children:null===(U=null==re?void 0:re.textEditorStyles)||void 0===U?void 0:U.themeStyles}),e.jsxs("div",Object.assign({ref:z,className:"w-full lexical_editor_wrapper "+(K&&"readOnly"===G?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:e=>{var t;e.preventDefault(),null===(t=H.current)||void 0===t||t.update(()=>{const t=x.$getSelection();x.$isRangeSelection(t)&&!t.isCollapsed()?(ie(!0),ee({x:e.clientX,y:e.clientY})):(ie(!1),ee(null))})},style:Object.assign({minHeight:L,height:R},null===(X=null==re?void 0:re.textEditorStyles)||void 0===X?void 0:X.textArea)},{children:[e.jsxs(i.LexicalComposer,Object.assign({initialConfig:J},{children:[" ","edit"===G&&e.jsx(I,{}),"edit"===G&&e.jsx(m.default,{onToolbarButtonClick:B,editorWrapperRef:z,toolbarConfig:D,customToolbar:w,editorRef:H}),e.jsx(f.default,{placeholder:_}),e.jsx(l.TabIndentationPlugin,{}),e.jsx(r.HistoryPlugin,{}),e.jsx(a.ListPlugin,{}),e.jsx(s.LinkPlugin,{}),e.jsx(d.TablePlugin,{}),e.jsx(h.LayoutPlugin,{onFocus:E,onBlur:k,editorRef:H}),e.jsx(o.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:(e,t,i)=>{O&&O(e,t,i)}}),A&&e.jsx(v.InitialHtml,{initialValue:A.value,initialFormat:A.type,mode:G}),$&&$]})),Z&&te&&"edit"===G&&e.jsx(j.default,{position:Z,options:[{label:"Change Color to Red",action:()=>oe("red")},{label:"Change Color to Blue",action:()=>oe("blue")}],onClose:()=>{ee(null)}})]}))]})};
2
2
  //# sourceMappingURL=Editor.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),r=require("react");exports.default=function(t){var o=t.options;t.position;var i=t.onClose;return r.useEffect(function(){var e=function(){return i()};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}},[i]),n.jsx("div",e.__assign({style:{position:"absolute",top:0,left:0,backgroundColor:"white",border:"1px solid #ccc",borderRadius:"4px",boxShadow:"0px 2px 5px rgba(0,0,0,0.2)",zIndex:1e3}},{children:o.map(function(r,t){return n.jsx("button",e.__assign({style:{display:"block",padding:"8px 12px",background:"none",border:"none",textAlign:"left",width:"100%",cursor:"pointer"},onClick:function(){r.action(),i()}},{children:r.label}),t)})}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");exports.default=({options:o,position:r,onClose:n})=>(t.useEffect(()=>{const e=()=>n();return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n]),e.jsx("div",Object.assign({style:{position:"absolute",top:0,left:0,backgroundColor:"white",border:"1px solid #ccc",borderRadius:"4px",boxShadow:"0px 2px 5px rgba(0,0,0,0.2)",zIndex:1e3}},{children:o.map((t,o)=>e.jsx("button",Object.assign({style:{display:"block",padding:"8px 12px",background:"none",border:"none",textAlign:"left",width:"100%",cursor:"pointer"},onClick:()=>{t.action(),n()}},{children:t.label}),o))})));
2
2
  //# sourceMappingURL=ContextMenu.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("@lexical/react/LexicalContentEditable"),l=require("@lexical/react/LexicalErrorBoundary"),t=require("@lexical/react/LexicalRichTextPlugin"),a=require("../EditorPlaceholder/EditorPlaceholder.js");require("./EditorContainer.css.js");exports.default=function(c){var n=c.placeholder;return r.jsx("div",e.__assign({className:"lexical_editor_container"},{children:r.jsx(t.RichTextPlugin,{contentEditable:r.jsx(i.ContentEditable,{className:"lexical_editor_content",id:"lexical_editor_content"}),placeholder:n?function(){return r.jsx(a.default,{placeholder:n})}:null,ErrorBoundary:l.LexicalErrorBoundary})}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@lexical/react/LexicalContentEditable"),l=require("@lexical/react/LexicalErrorBoundary"),i=require("@lexical/react/LexicalRichTextPlugin"),t=require("../EditorPlaceholder/EditorPlaceholder.js");require("./EditorContainer.css.js");exports.default=({placeholder:a})=>e.jsx("div",Object.assign({className:"lexical_editor_container"},{children:e.jsx(i.RichTextPlugin,{contentEditable:e.jsx(r.ContentEditable,{className:"lexical_editor_content",id:"lexical_editor_content"}),placeholder:a?()=>e.jsx(t.default,{placeholder:a}):null,ErrorBoundary:l.LexicalErrorBoundary})}));
2
2
  //# sourceMappingURL=EditorContainer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");require("./EditorPlaceholder.css.js");exports.default=function(s){var i=s.placeholder;return r.jsx("div",e.__assign({className:"lexical_editor_placeholder"},{children:i}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./EditorPlaceholder.css.js");exports.default=({placeholder:r})=>e.jsx("div",Object.assign({className:"lexical_editor_placeholder"},{children:r}));
2
2
  //# sourceMappingURL=EditorPlaceholder.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),o=require("react"),r=require("lexical"),i=require("@lexical/selection"),n=require("@lexical/rich-text"),a=require("@lexical/list"),l=require("@lexical/react/LexicalComposerContext"),s=require("@lexical/utils"),u=require("@lexical/link"),c=require("@lexical/code"),d=require("./components/ToolbarButton/ToolbarButton.js"),g=require("./components/ToolbarDivider/ToolbarDivider.js"),f=require("./components/UndoRedo/UndoRedo.js");require("./EditorToolbar.css.js");var p=require("../../constants/objects.js"),v=require("../../utils/getSelectedNode.js"),C=require("../Icons/Icon.js"),T=require("../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(S){var _;S.editorWrapperRef;var m=S.onToolbarButtonClick,x=S.toolbarConfig,N=S.customToolbar;S.editorRef;var R=l.useLexicalComposerContext()[0],$=o.useState(p.ACTIVE_FORMATS),y=$[0],b=$[1],q=o.useState("15px");q[0];var A=q[1],h=o.useState("Arial");h[0];var M=h[1],O=o.useState("");O[0];var I=O[1],j=o.useState(!1),k=j[0],L=j[1],E=o.useState("paragraph"),D=E[0],F=E[1],B=o.useState(null);B[0];var P=B[1],U=o.useState("");U[0];var K=U[1],G=o.useState(!1),V=G[0],W=G[1],z=o.useState(!1),H=z[0],Y=z[1],w=o.useRef(null),Q=T.useRequirementAI().customStyles,X=o.useCallback(function(){var t,o=r.$getSelection();if(r.$isRangeSelection(o)){var l=o.anchor.getNode(),d="root"===l.getKey()?l:l.getTopLevelElementOrThrow(),g=d.getKey();if(null!==R.getElementByKey(g))if(P(g),a.$isListNode(d)){var f=s.$getNearestNodeOfType(l,a.ListNode),C=f?f.getTag():d.getTag();F(C)}else{C=n.$isHeadingNode(d)?d.getTag():d.getType();F(C),c.$isCodeNode(d)&&K(d.getLanguage()||c.getDefaultCodeLanguage())}Object.keys(p.ACTIVE_FORMATS).forEach(function(t){o.hasFormat(t)?b(function(o){var r;return e.__assign(e.__assign({},o),((r={})[t]=!0,r))}):b(function(o){var r;return e.__assign(e.__assign({},o),((r={})[t]=!1,r))})});var T=v.getSelectedNode(o),S=T.getParent();u.$isLinkNode(S)||u.$isLinkNode(T)?L(!0):L(!1),A(i.$getSelectionStyleValueForProperty(o,"font-size","15px")),M(i.$getSelectionStyleValueForProperty(o,"font-family","Arial"));var _=null===(t=o.anchor.getNode().getParent())||void 0===t?void 0:t.getFormatType();I(_)}},[R]);o.useEffect(function(){return s.mergeRegister(R.registerUpdateListener(function(e){e.editorState.read(function(){X()})}),R.registerCommand(r.CAN_UNDO_COMMAND,function(e){return W(e),!1},r.COMMAND_PRIORITY_CRITICAL),R.registerCommand(r.CAN_REDO_COMMAND,function(e){return Y(e),!1},r.COMMAND_PRIORITY_CRITICAL))},[R,X]);var J=o.useCallback(function(e,t){R.dispatchCommand(r.FORMAT_TEXT_COMMAND,t)},[R]);o.useCallback(function(e,t){["left","center","right","justify"].includes(t)&&R.dispatchCommand(r.FORMAT_ELEMENT_COMMAND,t)},[R]),o.useCallback(function(e,t){R.update(function(){var e,o=r.$getSelection();r.$isRangeSelection(o)&&i.$patchStyleText(o,((e={})["font-size"]=t,e))})},[R]);return o.useCallback(function(e,t){var o;"h1"!==t&&"h2"!==t&&"h3"!==t||D!==(o=t)&&R.update(function(){var e=r.$getSelection();r.$isRangeSelection(e)&&i.$setBlocksType(e,function(){return n.$createHeadingNode(o)})}),"paragraph"===t&&"paragraph"!==D&&R.update(function(){var e=r.$getSelection();r.$isRangeSelection(e)&&i.$setBlocksType(e,function(){return r.$createParagraphNode()})}),"quote"===t&&"quote"!==D&&R.update(function(){var e=r.$getSelection();r.$isRangeSelection(e)&&i.$setBlocksType(e,function(){return n.$createQuoteNode()})})},[R,D]),o.useCallback(function(e,t){R.update(function(){var e,o=r.$getSelection();r.$isRangeSelection(o)&&i.$patchStyleText(o,((e={})["font-family"]=t,e))})},[R]),o.useCallback(function(){k?R.dispatchCommand(u.TOGGLE_LINK_COMMAND,null):R.dispatchCommand(u.TOGGLE_LINK_COMMAND,"https://")},[R,k]),t.jsxs("div",e.__assign({className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:w,style:e.__assign({},null===(_=null==Q?void 0:Q.textEditorStyles)||void 0===_?void 0:_.tooltextArea)},{children:[(null==x?void 0:x.undoRedo.display)&&t.jsx(f.UndoRedo,{canUndo:V,canRedo:H}),(null==x?void 0:x.inline.display)&&t.jsxs(t.Fragment,{children:[x.inline.options.map(function(e){var o;return t.jsx(d.default,{toolbarItem:e,active:y[e],onClick:J,icon:t.jsx(C.Icon,{icon:e,iconColors:null===(o=null==Q?void 0:Q.textEditorStyles)||void 0===o?void 0:o.toolIconColors}),onToolbarButtonClick:m},e)}),t.jsx(g.ToolbarDivider,{})]}),N&&N]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),o=require("lexical"),a=require("@lexical/selection"),i=require("@lexical/rich-text"),r=require("@lexical/list"),l=require("@lexical/react/LexicalComposerContext"),s=require("@lexical/utils"),n=require("@lexical/link"),c=require("@lexical/code"),u=require("./components/ToolbarButton/ToolbarButton.js"),d=require("./components/ToolbarDivider/ToolbarDivider.js"),g=require("./components/UndoRedo/UndoRedo.js");require("./EditorToolbar.css.js");var p=require("../../constants/objects.js"),C=require("../../utils/getSelectedNode.js"),T=require("../Icons/Icon.js"),S=require("../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({editorWrapperRef:m,onToolbarButtonClick:x,toolbarConfig:N,customToolbar:b,editorRef:R})=>{var O;const[$]=l.useLexicalComposerContext(),[y,j]=t.useState(p.ACTIVE_FORMATS),[f,A]=t.useState("15px"),[_,h]=t.useState("Arial"),[q,v]=t.useState(""),[M,I]=t.useState(!1),[k,L]=t.useState("paragraph"),[E,D]=t.useState(null),[F,B]=t.useState(""),[P,U]=t.useState(!1),[K,G]=t.useState(!1),V=t.useRef(null),{customStyles:W}=S.useRequirementAI(),z=t.useCallback(()=>{var e;const t=o.$getSelection();if(o.$isRangeSelection(t)){const o=t.anchor.getNode(),l="root"===o.getKey()?o:o.getTopLevelElementOrThrow(),u=l.getKey();if(null!==$.getElementByKey(u))if(D(u),r.$isListNode(l)){const e=s.$getNearestNodeOfType(o,r.ListNode),t=e?e.getTag():l.getTag();L(t)}else{const e=i.$isHeadingNode(l)?l.getTag():l.getType();L(e),c.$isCodeNode(l)&&B(l.getLanguage()||c.getDefaultCodeLanguage())}Object.keys(p.ACTIVE_FORMATS).forEach(e=>{t.hasFormat(e)?j(t=>Object.assign(Object.assign({},t),{[e]:!0})):j(t=>Object.assign(Object.assign({},t),{[e]:!1}))});const d=C.getSelectedNode(t),g=d.getParent();n.$isLinkNode(g)||n.$isLinkNode(d)?I(!0):I(!1),A(a.$getSelectionStyleValueForProperty(t,"font-size","15px")),h(a.$getSelectionStyleValueForProperty(t,"font-family","Arial"));const T=null===(e=t.anchor.getNode().getParent())||void 0===e?void 0:e.getFormatType();v(T)}},[$]);t.useEffect(()=>s.mergeRegister($.registerUpdateListener(({editorState:e})=>{e.read(()=>{z()})}),$.registerCommand(o.CAN_UNDO_COMMAND,e=>(U(e),!1),o.COMMAND_PRIORITY_CRITICAL),$.registerCommand(o.CAN_REDO_COMMAND,e=>(G(e),!1),o.COMMAND_PRIORITY_CRITICAL)),[$,z]);const H=t.useCallback((e,t)=>{$.dispatchCommand(o.FORMAT_TEXT_COMMAND,t)},[$]);t.useCallback((e,t)=>{["left","center","right","justify"].includes(t)&&$.dispatchCommand(o.FORMAT_ELEMENT_COMMAND,t)},[$]),t.useCallback((e,t)=>{$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$patchStyleText(e,{"font-size":t})})},[$]);return t.useCallback((e,t)=>{var r;"h1"!==t&&"h2"!==t&&"h3"!==t||k!==(r=t)&&$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>i.$createHeadingNode(r))}),"paragraph"===t&&"paragraph"!==k&&$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>o.$createParagraphNode())}),"quote"===t&&"quote"!==k&&$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>i.$createQuoteNode())})},[$,k]),t.useCallback((e,t)=>{$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$patchStyleText(e,{"font-family":t})})},[$]),t.useCallback(()=>{M?$.dispatchCommand(n.TOGGLE_LINK_COMMAND,null):$.dispatchCommand(n.TOGGLE_LINK_COMMAND,"https://")},[$,M]),e.jsxs("div",Object.assign({className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:V,style:Object.assign({},null===(O=null==W?void 0:W.textEditorStyles)||void 0===O?void 0:O.tooltextArea)},{children:[(null==N?void 0:N.undoRedo.display)&&e.jsx(g.UndoRedo,{canUndo:P,canRedo:K}),(null==N?void 0:N.inline.display)&&e.jsxs(e.Fragment,{children:[N.inline.options.map(t=>{var o;return e.jsx(u.default,{toolbarItem:t,active:y[t],onClick:H,icon:e.jsx(T.Icon,{icon:t,iconColors:null===(o=null==W?void 0:W.textEditorStyles)||void 0===o?void 0:o.toolIconColors}),onToolbarButtonClick:x},t)}),e.jsx(d.ToolbarDivider,{})]}),b&&b]}))};
2
2
  //# sourceMappingURL=EditorToolbar.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),o=require("react");require("./ToolbarButton.css.js");var r=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(i){var n,l,u,s,a=i.toolbarItem,d=i.active,c=i.onClick,v=i.icon,_=i.disabled,b=i.onToolbarButtonClick,x=r.useRequirementAI().customStyles,q=o.useState(!1),f=q[0],m=q[1],p=d?null===(n=null==x?void 0:x.textEditorStyles)||void 0===n?void 0:n.activeToolButton:null===(l=null==x?void 0:x.textEditorStyles)||void 0===l?void 0:l.toolbarButton,y=null===(u=null==x?void 0:x.textEditorStyles)||void 0===u?void 0:u.toolbarButtonHover,B=null===(s=null==x?void 0:x.textEditorStyles)||void 0===s?void 0:s.toolbarButtonDisabled,S=t.__assign(t.__assign(t.__assign({},p),f&&!_?y:{}),_?B:{});return e.jsx("button",t.__assign({className:"lexical_editor_toolbar_button ".concat(d?"lexical_editor_toolbar_button__active":""),onClick:function(t){return function(t,e){c(t,e),b&&b()}(t,a)},disabled:_,style:S,onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},{children:v}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react");require("./ToolbarButton.css.js");var o=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({toolbarItem:l,active:i,onClick:r,icon:n,disabled:s,onToolbarButtonClick:u})=>{var a,d,c,v;const{customStyles:b}=o.useRequirementAI(),[x,_]=e.useState(!1),j=i?null===(a=null==b?void 0:b.textEditorStyles)||void 0===a?void 0:a.activeToolButton:null===(d=null==b?void 0:b.textEditorStyles)||void 0===d?void 0:d.toolbarButton,m=null===(c=null==b?void 0:b.textEditorStyles)||void 0===c?void 0:c.toolbarButtonHover,p=null===(v=null==b?void 0:b.textEditorStyles)||void 0===v?void 0:v.toolbarButtonDisabled,q=Object.assign(Object.assign(Object.assign({},j),x&&!s?m:{}),s?p:{});return t.jsx("button",Object.assign({className:"lexical_editor_toolbar_button "+(i?"lexical_editor_toolbar_button__active":""),onClick:t=>((t,e)=>{r(t,e),u&&u()})(t,l),disabled:s,style:q,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1)},{children:n}))};
2
2
  //# sourceMappingURL=ToolbarButton.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./ToolbarDivider.css.js");exports.ToolbarDivider=function(){return e.jsx("div",{className:"lexical-editor_toolbar_divider"})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./ToolbarDivider.css.js");exports.ToolbarDivider=()=>e.jsx("div",{className:"lexical-editor_toolbar_divider"});
2
2
  //# sourceMappingURL=ToolbarDivider.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react/jsx-runtime"),e=require("@lexical/react/LexicalComposerContext"),r=require("lexical"),i=require("lucide-react"),l=require("../ToolbarButton/ToolbarButton.js"),n=require("../ToolbarDivider/ToolbarDivider.js"),t=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.UndoRedo=function(d){var u,s,a,c,v=d.canUndo,x=d.canRedo,m=d.onToolbarButtonClick,C=e.useLexicalComposerContext()[0],j=t.useRequirementAI().customStyles;return o.jsxs(o.Fragment,{children:[o.jsx(l.default,{icon:o.jsx(i.Undo2,{color:null===(s=null===(u=null==j?void 0:j.textEditorStyles)||void 0===u?void 0:u.toolIconColors)||void 0===s?void 0:s.undoIcon,className:"w-4 h-4"}),disabled:!v,onClick:function(){null==m||m(),C.dispatchCommand(r.UNDO_COMMAND,void 0)}}),o.jsx(l.default,{icon:o.jsx(i.Redo2,{color:null===(c=null===(a=null==j?void 0:j.textEditorStyles)||void 0===a?void 0:a.toolIconColors)||void 0===c?void 0:c.redoIcon,className:"w-4 h-4"}),disabled:!x,onClick:function(){null==m||m(),C.dispatchCommand(r.REDO_COMMAND,void 0)}}),o.jsx(n.ToolbarDivider,{})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react/jsx-runtime"),e=require("@lexical/react/LexicalComposerContext"),r=require("lexical"),l=require("lucide-react"),i=require("../ToolbarButton/ToolbarButton.js"),t=require("../ToolbarDivider/ToolbarDivider.js"),d=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.UndoRedo=({canUndo:n,canRedo:s,onToolbarButtonClick:a})=>{var u,c,v,x;const[m]=e.useLexicalComposerContext(),{customStyles:C}=d.useRequirementAI();return o.jsxs(o.Fragment,{children:[o.jsx(i.default,{icon:o.jsx(l.Undo2,{color:null===(c=null===(u=null==C?void 0:C.textEditorStyles)||void 0===u?void 0:u.toolIconColors)||void 0===c?void 0:c.undoIcon,className:"w-4 h-4"}),disabled:!n,onClick:()=>{null==a||a(),m.dispatchCommand(r.UNDO_COMMAND,void 0)}}),o.jsx(i.default,{icon:o.jsx(l.Redo2,{color:null===(x=null===(v=null==C?void 0:C.textEditorStyles)||void 0===v?void 0:v.toolIconColors)||void 0===x?void 0:x.redoIcon,className:"w-4 h-4"}),disabled:!s,onClick:()=>{null==a||a(),m.dispatchCommand(r.REDO_COMMAND,void 0)}}),o.jsx(t.ToolbarDivider,{})]})};
2
2
  //# sourceMappingURL=UndoRedo.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("tslib"),e=require("react/jsx-runtime"),t=require("react").memo(function(t){var i=t.icon,n=t.iconColors,r=t.width,h=void 0===r?18:r,o=t.height,w=void 0===o?18:o,l=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.17867 11.9825L11.6744 4.48681M12.1888 8.67557L14.0259 6.8384C15.3247 5.53965 15.3247 3.43397 14.0259 2.13522C12.7272 0.836477 10.6215 0.836477 9.32277 2.13522L7.48559 3.9724M8.51441 12.3499L6.67723 14.1871C5.37849 15.4858 3.2728 15.4858 1.97406 14.1871C0.675314 12.8884 0.675314 10.7827 1.97406 9.48393L3.81124 7.64675",stroke:"#2B2E31"})})),x=e.jsxs("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"2",y:"2",width:"12",height:"12",stroke:"#2B2E31",fill:"none"}),e.jsx("line",{x1:"2",y1:"6",x2:"14",y2:"6",stroke:"#2B2E31"}),e.jsx("line",{x1:"2",y1:"10",x2:"14",y2:"10",stroke:"#2B2E31"}),e.jsx("line",{x1:"6",y1:"2",x2:"6",y2:"14",stroke:"#2B2E31"}),e.jsx("line",{x1:"10",y1:"2",x2:"10",y2:"14",stroke:"#2B2E31"})]})),g=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5.99998 4H15M5.99998 12H15M5.99998 8H15M2.99998 5.5V2H2.5L1.5 3M2.99998 5.5H1.5M2.99998 5.5H4.5M4.49998 13H1.5C1.5 13 1.77682 12.2232 2.5 11.5C3.22318 10.7768 4 9.5 3 9C2 8.5 1 10 1 10",stroke:"#2B2E31"})})),d=e.jsxs("svg",s.__assign({fill:"#000000",width:h,height:w,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"5.94",y:"6.42",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"11.71",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"16.99",width:"18.06",height:"1.75"}),e.jsx("circle",{cx:"1.85",cy:"7.29",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"12.58",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"17.87",r:"1.52"})]})),C=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M8 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V8M5.5 10.5L7 9M15 1L8 8",stroke:"#2B2E31"})})),c=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 8L7 8C9.20914 8 11 7.20914 11 5C11 2.79086 9.5 2 8 2L5 2C4.44772 2 4 2.44772 4 3L4 7.98578L7 7.98578C11 8 12.5 8.77664 12.5 10.9858C12.5 13.1949 10.7091 14 8.5 14L5 14C4.44772 14 4 13.5523 4 13L4 8Z",stroke:(null==n?void 0:n.boldIcon)||"#2B2E31",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})),a=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M9 3L7 13M9 3H7M9 3L11 3M7 13H9M7 13H5",stroke:"#2B2E31",strokeLinejoin:"round"})})),L=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 4.34494C11.2142 3.61887 10.6861 2.98052 9.95116 2.5606C7.58847 1.21067 4.56562 2.39989 4.56767 5.04366C4.56925 7.07499 6.39082 7.42492 8.15689 8.00308M4.5 11.6549C4.78581 12.381 5.31389 13.0193 6.04884 13.4392C8.40908 14.7878 11.4296 13.6036 11.4323 10.9625C11.4327 10.6022 11.3549 10.2836 11.2157 10M8.15689 8.00308H13.5M8.15689 8.00308H2.5",stroke:"#2B2E31",strokeLinejoin:"round"})})),v=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 2V8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8V2M4 14H12",stroke:"#2B2E31",strokeLinejoin:"round"})})),M=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M2.5 12H13.5M4 8H12",stroke:"#2B2E31"})})),j=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H7.39999M1 8H15",stroke:"#2B2E31"})})),p=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M8.60001 12H15M1 8H15",stroke:"#2B2E31"})})),_=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H15M1 8H15",stroke:"#2B2E31"})})),u=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2 11L8.25223 5L14 11",stroke:"#2B2E31"})})),B=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M14 5L7.74778 11L2 5",stroke:"#2B2E31"})})),k=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1.5 7L6.5 12L15 4",stroke:"#2B2E31"})})),H=e.jsxs("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("g",s.__assign({clipPath:"url(#clip0_37_1104)"},{children:e.jsx("path",{d:"M12.1887 8.67557L14.0259 6.83839C15.3246 5.53965 15.3246 3.43397 14.0259 2.13522C12.7271 0.836475 10.6215 0.836475 9.32271 2.13522L7.48553 3.9724M8.51435 12.3499L6.67717 14.1871C5.37843 15.4858 3.27274 15.4858 1.974 14.1871C0.675254 12.8884 0.675254 10.7827 1.974 9.48393L3.81118 7.64675M10.4999 12.5V15M5.49994 0.790009V2.9724M0.973999 5.5H3.474M12.5259 10.5L15.0259 10.5",stroke:"#2B2E31"})})),e.jsx("defs",{children:e.jsx("clipPath",s.__assign({id:"clip0_37_1104"},{children:e.jsx("rect",{width:"16",height:"16",fill:"white"})}))})]})),f=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2.5 13L8.25 7.75M14 2.5L8.25 7.75M8.25 7.75L2.5 2.5M8.25 7.75L14 13",stroke:"#2B2E31"})})),m=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.5 11.913L1 7.56367L4.5 3.56522M11.5 11.913L15 7.56367L11.5 3.56522M10 2L6 14",stroke:(null==n?void 0:n.codeIcon)||"#2B2E31"})})),E=e.jsx("svg",s.__assign({fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M 16.5860 52.2461 C 17.7579 52.2461 18.5548 51.6367 19.9610 50.3711 L 28.0704 43.1758 L 43.0938 43.1758 C 50.0783 43.1758 53.8280 39.3086 53.8280 32.4414 L 53.8280 14.4883 C 53.8280 7.6211 50.0783 3.7539 43.0938 3.7539 L 12.9064 3.7539 C 5.9454 3.7539 2.1720 7.5976 2.1720 14.4883 L 2.1720 32.4414 C 2.1720 39.3320 5.9454 43.1758 12.9064 43.1758 L 14.0313 43.1758 L 14.0313 49.2695 C 14.0313 51.0742 14.9688 52.2461 16.5860 52.2461 Z M 17.5469 47.9570 L 17.5469 41.1602 C 17.5469 39.8945 17.0782 39.4023 15.7891 39.4023 L 12.9298 39.4023 C 8.1720 39.4023 5.9454 36.9883 5.9454 32.4180 L 5.9454 14.4883 C 5.9454 9.9180 8.1720 7.5273 12.9298 7.5273 L 43.0938 7.5273 C 47.8280 7.5273 50.0548 9.9180 50.0548 14.4883 L 50.0548 32.4180 C 50.0548 36.9883 47.8280 39.4023 43.0938 39.4023 L 27.9064 39.4023 C 26.6173 39.4023 25.9376 39.5898 25.0469 40.5039 Z M 17.2423 22.3633 C 17.2423 24.9414 18.8360 26.9336 21.4142 26.9336 C 22.3516 26.9336 23.2891 26.7695 23.8751 26.0430 L 24.0626 26.0430 C 23.2188 27.8945 21.5079 29.0898 20.0313 29.4649 C 19.1876 29.6992 18.9298 30.0742 18.9298 30.6133 C 18.9298 31.1992 19.3985 31.6445 20.0548 31.6445 C 22.3516 31.6445 26.9220 28.9258 26.9220 23.2071 C 26.9220 20.1367 24.9298 17.7695 22.0001 17.7695 C 19.2813 17.7695 17.2423 19.6680 17.2423 22.3633 Z M 29.4298 22.3633 C 29.4298 24.9414 31.0235 26.9336 33.6016 26.9336 C 34.5391 26.9336 35.4766 26.7695 36.0626 26.0430 L 36.2501 26.0430 C 35.4064 27.8945 33.6954 29.0898 32.2188 29.4649 C 31.3751 29.6992 31.1173 30.0742 31.1173 30.6133 C 31.1173 31.1992 31.5860 31.6445 32.2423 31.6445 C 34.5391 31.6445 39.1329 28.9258 39.1329 23.2071 C 39.1329 20.1367 37.1173 17.7695 34.1876 17.7695 C 31.4688 17.7695 29.4298 19.6680 29.4298 22.3633 Z"})})),y=e.jsx("svg",s.__assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 7H15C17.7614 7 20 9.23857 20 12C20 14.7614 17.7614 17 15 17H8.00001M4 7L7 4M4 7L7 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),Z=e.jsx("svg",s.__assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),V=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5 8L9 12M5 8L1 12M5 8L1 4M5 8L9 4M14.5 5.15056H11.5C11.5 5.15056 12 4.15057 13 3.65057C14 3.15057 14.2938 1.79744 13 1.15057C11.7062 0.503693 11 2.15057 11 2.15057",stroke:"#2B2E31"})})),b=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 13.1506L11.0528 12.927L10.691 13.6506H11.5V13.1506ZM12.7764 11.2034C12.19 11.4965 11.7617 11.9293 11.4846 12.2757C11.3446 12.4507 11.2392 12.6086 11.1679 12.7245C11.1322 12.7825 11.1048 12.8304 11.0856 12.8651C11.0761 12.8824 11.0686 12.8965 11.0631 12.9069C11.0603 12.9122 11.0581 12.9165 11.0564 12.9198C11.0556 12.9215 11.0548 12.9229 11.0542 12.9241C11.0539 12.9247 11.0536 12.9252 11.0534 12.9257C11.0533 12.926 11.0532 12.9262 11.0531 12.9264C11.053 12.9265 11.0529 12.9266 11.0529 12.9267C11.0529 12.9268 11.0528 12.927 11.5 13.1506C11.9472 13.3742 11.9471 13.3743 11.9471 13.3744C11.9471 13.3745 11.947 13.3746 11.947 13.3747C11.9469 13.3748 11.9468 13.3749 11.9468 13.375C11.9467 13.3753 11.9466 13.3754 11.9465 13.3756C11.9464 13.3758 11.9464 13.3758 11.9465 13.3755C11.9468 13.3751 11.9475 13.3737 11.9486 13.3715C11.951 13.367 11.9552 13.3591 11.9612 13.3482C11.9733 13.3262 11.9928 13.2921 12.0196 13.2486C12.0733 13.1613 12.1554 13.0379 12.2654 12.9004C12.4883 12.6218 12.81 12.3046 13.2236 12.0978L12.7764 11.2034ZM11.5 13.6506H14.5V12.6506H11.5V13.6506ZM13.2236 12.0978C13.8609 11.7791 14.307 11.1716 14.3587 10.4937C14.413 9.78149 14.0258 9.10443 13.2236 8.70335L12.7764 9.59778C13.268 9.84358 13.3807 10.1665 13.3616 10.4176C13.3399 10.703 13.1391 11.022 12.7764 11.2034L13.2236 12.0978ZM13.2236 8.70335C12.7995 8.49129 12.3898 8.45443 12.0179 8.54949C11.658 8.64148 11.3741 8.84627 11.1652 9.05054C10.9556 9.25558 10.8016 9.47946 10.7016 9.64642C10.6509 9.73116 10.6121 9.8044 10.5855 9.85784C10.5721 9.88463 10.5617 9.90664 10.5542 9.92288C10.5504 9.931 10.5474 9.9377 10.5451 9.94284C10.544 9.94541 10.543 9.94759 10.5423 9.94938C10.5419 9.95027 10.5415 9.95106 10.5412 9.95175C10.5411 9.95209 10.5409 9.95241 10.5408 9.9527C10.5408 9.95285 10.5407 9.95305 10.5406 9.95312C10.5406 9.95332 10.5405 9.9535 11 10.1506C11.4595 10.3476 11.4595 10.3478 11.4594 10.348C11.4594 10.348 11.4593 10.3482 11.4592 10.3483C11.4592 10.3485 11.4591 10.3486 11.459 10.3488C11.4589 10.3491 11.4588 10.3493 11.4588 10.3494C11.4587 10.3496 11.4588 10.3494 11.459 10.3489C11.4595 10.3478 11.4606 10.3454 11.4623 10.3416C11.4658 10.334 11.4718 10.3213 11.4803 10.3043C11.4973 10.2702 11.5238 10.2198 11.5595 10.1603C11.6323 10.0387 11.7358 9.89126 11.8645 9.76544C11.9939 9.63885 12.1291 9.55321 12.2655 9.51834C12.3899 9.48655 12.5536 9.4864 12.7764 9.59778L13.2236 8.70335ZM4.64645 8.35355L8.64645 12.3536L9.35355 11.6464L5.35355 7.64645L4.64645 8.35355ZM1.35355 12.3536L5.35355 8.35355L4.64645 7.64645L0.646447 11.6464L1.35355 12.3536ZM5.35355 7.64645L1.35355 3.64645L0.646447 4.35355L4.64645 8.35355L5.35355 7.64645ZM5.35355 8.35355L9.35355 4.35355L8.64645 3.64645L4.64645 7.64645L5.35355 8.35355Z",fill:"#2B2E31"})}));switch(i){case"link":return l;case"list-ordered":return g;case"list-unordered":return d;case"edit-link":return C;case"bold":return c;case"italic":return a;case"strikethrough":return L;case"underline":return v;case"center":return M;case"left":return j;case"right":return p;case"justify":return _;case"arrow-up":return u;case"arrow-down":return B;case"confirm":return k;case"remove":return H;case"cancel":return f;case"code":return m;case"quote":return E;case"undo":return y;case"redo":return Z;case"superscript":return V;case"subscript":return b;case"table":return x;default:return null}});t.displayName="Icon",exports.Icon=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");const s=require("react").memo(({icon:s,iconColors:t,width:i=18,height:n=18})=>{const r=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.17867 11.9825L11.6744 4.48681M12.1888 8.67557L14.0259 6.8384C15.3247 5.53965 15.3247 3.43397 14.0259 2.13522C12.7272 0.836477 10.6215 0.836477 9.32277 2.13522L7.48559 3.9724M8.51441 12.3499L6.67723 14.1871C5.37849 15.4858 3.2728 15.4858 1.97406 14.1871C0.675314 12.8884 0.675314 10.7827 1.97406 9.48393L3.81124 7.64675",stroke:"#2B2E31"})})),h=e.jsxs("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"2",y:"2",width:"12",height:"12",stroke:"#2B2E31",fill:"none"}),e.jsx("line",{x1:"2",y1:"6",x2:"14",y2:"6",stroke:"#2B2E31"}),e.jsx("line",{x1:"2",y1:"10",x2:"14",y2:"10",stroke:"#2B2E31"}),e.jsx("line",{x1:"6",y1:"2",x2:"6",y2:"14",stroke:"#2B2E31"}),e.jsx("line",{x1:"10",y1:"2",x2:"10",y2:"14",stroke:"#2B2E31"})]})),o=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5.99998 4H15M5.99998 12H15M5.99998 8H15M2.99998 5.5V2H2.5L1.5 3M2.99998 5.5H1.5M2.99998 5.5H4.5M4.49998 13H1.5C1.5 13 1.77682 12.2232 2.5 11.5C3.22318 10.7768 4 9.5 3 9C2 8.5 1 10 1 10",stroke:"#2B2E31"})})),w=e.jsxs("svg",Object.assign({fill:"#000000",width:i,height:n,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"5.94",y:"6.42",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"11.71",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"16.99",width:"18.06",height:"1.75"}),e.jsx("circle",{cx:"1.85",cy:"7.29",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"12.58",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"17.87",r:"1.52"})]})),l=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M8 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V8M5.5 10.5L7 9M15 1L8 8",stroke:"#2B2E31"})})),x=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 8L7 8C9.20914 8 11 7.20914 11 5C11 2.79086 9.5 2 8 2L5 2C4.44772 2 4 2.44772 4 3L4 7.98578L7 7.98578C11 8 12.5 8.77664 12.5 10.9858C12.5 13.1949 10.7091 14 8.5 14L5 14C4.44772 14 4 13.5523 4 13L4 8Z",stroke:(null==t?void 0:t.boldIcon)||"#2B2E31",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})),g=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M9 3L7 13M9 3H7M9 3L11 3M7 13H9M7 13H5",stroke:"#2B2E31",strokeLinejoin:"round"})})),c=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 4.34494C11.2142 3.61887 10.6861 2.98052 9.95116 2.5606C7.58847 1.21067 4.56562 2.39989 4.56767 5.04366C4.56925 7.07499 6.39082 7.42492 8.15689 8.00308M4.5 11.6549C4.78581 12.381 5.31389 13.0193 6.04884 13.4392C8.40908 14.7878 11.4296 13.6036 11.4323 10.9625C11.4327 10.6022 11.3549 10.2836 11.2157 10M8.15689 8.00308H13.5M8.15689 8.00308H2.5",stroke:"#2B2E31",strokeLinejoin:"round"})})),C=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 2V8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8V2M4 14H12",stroke:"#2B2E31",strokeLinejoin:"round"})})),d=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M2.5 12H13.5M4 8H12",stroke:"#2B2E31"})})),j=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H7.39999M1 8H15",stroke:"#2B2E31"})})),L=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M8.60001 12H15M1 8H15",stroke:"#2B2E31"})})),a=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H15M1 8H15",stroke:"#2B2E31"})})),M=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2 11L8.25223 5L14 11",stroke:"#2B2E31"})})),v=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M14 5L7.74778 11L2 5",stroke:"#2B2E31"})})),p=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1.5 7L6.5 12L15 4",stroke:"#2B2E31"})})),u=e.jsxs("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("g",Object.assign({clipPath:"url(#clip0_37_1104)"},{children:e.jsx("path",{d:"M12.1887 8.67557L14.0259 6.83839C15.3246 5.53965 15.3246 3.43397 14.0259 2.13522C12.7271 0.836475 10.6215 0.836475 9.32271 2.13522L7.48553 3.9724M8.51435 12.3499L6.67717 14.1871C5.37843 15.4858 3.27274 15.4858 1.974 14.1871C0.675254 12.8884 0.675254 10.7827 1.974 9.48393L3.81118 7.64675M10.4999 12.5V15M5.49994 0.790009V2.9724M0.973999 5.5H3.474M12.5259 10.5L15.0259 10.5",stroke:"#2B2E31"})})),e.jsx("defs",{children:e.jsx("clipPath",Object.assign({id:"clip0_37_1104"},{children:e.jsx("rect",{width:"16",height:"16",fill:"white"})}))})]})),B=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2.5 13L8.25 7.75M14 2.5L8.25 7.75M8.25 7.75L2.5 2.5M8.25 7.75L14 13",stroke:"#2B2E31"})})),k=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.5 11.913L1 7.56367L4.5 3.56522M11.5 11.913L15 7.56367L11.5 3.56522M10 2L6 14",stroke:(null==t?void 0:t.codeIcon)||"#2B2E31"})})),H=e.jsx("svg",Object.assign({fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M 16.5860 52.2461 C 17.7579 52.2461 18.5548 51.6367 19.9610 50.3711 L 28.0704 43.1758 L 43.0938 43.1758 C 50.0783 43.1758 53.8280 39.3086 53.8280 32.4414 L 53.8280 14.4883 C 53.8280 7.6211 50.0783 3.7539 43.0938 3.7539 L 12.9064 3.7539 C 5.9454 3.7539 2.1720 7.5976 2.1720 14.4883 L 2.1720 32.4414 C 2.1720 39.3320 5.9454 43.1758 12.9064 43.1758 L 14.0313 43.1758 L 14.0313 49.2695 C 14.0313 51.0742 14.9688 52.2461 16.5860 52.2461 Z M 17.5469 47.9570 L 17.5469 41.1602 C 17.5469 39.8945 17.0782 39.4023 15.7891 39.4023 L 12.9298 39.4023 C 8.1720 39.4023 5.9454 36.9883 5.9454 32.4180 L 5.9454 14.4883 C 5.9454 9.9180 8.1720 7.5273 12.9298 7.5273 L 43.0938 7.5273 C 47.8280 7.5273 50.0548 9.9180 50.0548 14.4883 L 50.0548 32.4180 C 50.0548 36.9883 47.8280 39.4023 43.0938 39.4023 L 27.9064 39.4023 C 26.6173 39.4023 25.9376 39.5898 25.0469 40.5039 Z M 17.2423 22.3633 C 17.2423 24.9414 18.8360 26.9336 21.4142 26.9336 C 22.3516 26.9336 23.2891 26.7695 23.8751 26.0430 L 24.0626 26.0430 C 23.2188 27.8945 21.5079 29.0898 20.0313 29.4649 C 19.1876 29.6992 18.9298 30.0742 18.9298 30.6133 C 18.9298 31.1992 19.3985 31.6445 20.0548 31.6445 C 22.3516 31.6445 26.9220 28.9258 26.9220 23.2071 C 26.9220 20.1367 24.9298 17.7695 22.0001 17.7695 C 19.2813 17.7695 17.2423 19.6680 17.2423 22.3633 Z M 29.4298 22.3633 C 29.4298 24.9414 31.0235 26.9336 33.6016 26.9336 C 34.5391 26.9336 35.4766 26.7695 36.0626 26.0430 L 36.2501 26.0430 C 35.4064 27.8945 33.6954 29.0898 32.2188 29.4649 C 31.3751 29.6992 31.1173 30.0742 31.1173 30.6133 C 31.1173 31.1992 31.5860 31.6445 32.2423 31.6445 C 34.5391 31.6445 39.1329 28.9258 39.1329 23.2071 C 39.1329 20.1367 37.1173 17.7695 34.1876 17.7695 C 31.4688 17.7695 29.4298 19.6680 29.4298 22.3633 Z"})})),f=e.jsx("svg",Object.assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 7H15C17.7614 7 20 9.23857 20 12C20 14.7614 17.7614 17 15 17H8.00001M4 7L7 4M4 7L7 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),b=e.jsx("svg",Object.assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),m=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5 8L9 12M5 8L1 12M5 8L1 4M5 8L9 4M14.5 5.15056H11.5C11.5 5.15056 12 4.15057 13 3.65057C14 3.15057 14.2938 1.79744 13 1.15057C11.7062 0.503693 11 2.15057 11 2.15057",stroke:"#2B2E31"})})),O=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 13.1506L11.0528 12.927L10.691 13.6506H11.5V13.1506ZM12.7764 11.2034C12.19 11.4965 11.7617 11.9293 11.4846 12.2757C11.3446 12.4507 11.2392 12.6086 11.1679 12.7245C11.1322 12.7825 11.1048 12.8304 11.0856 12.8651C11.0761 12.8824 11.0686 12.8965 11.0631 12.9069C11.0603 12.9122 11.0581 12.9165 11.0564 12.9198C11.0556 12.9215 11.0548 12.9229 11.0542 12.9241C11.0539 12.9247 11.0536 12.9252 11.0534 12.9257C11.0533 12.926 11.0532 12.9262 11.0531 12.9264C11.053 12.9265 11.0529 12.9266 11.0529 12.9267C11.0529 12.9268 11.0528 12.927 11.5 13.1506C11.9472 13.3742 11.9471 13.3743 11.9471 13.3744C11.9471 13.3745 11.947 13.3746 11.947 13.3747C11.9469 13.3748 11.9468 13.3749 11.9468 13.375C11.9467 13.3753 11.9466 13.3754 11.9465 13.3756C11.9464 13.3758 11.9464 13.3758 11.9465 13.3755C11.9468 13.3751 11.9475 13.3737 11.9486 13.3715C11.951 13.367 11.9552 13.3591 11.9612 13.3482C11.9733 13.3262 11.9928 13.2921 12.0196 13.2486C12.0733 13.1613 12.1554 13.0379 12.2654 12.9004C12.4883 12.6218 12.81 12.3046 13.2236 12.0978L12.7764 11.2034ZM11.5 13.6506H14.5V12.6506H11.5V13.6506ZM13.2236 12.0978C13.8609 11.7791 14.307 11.1716 14.3587 10.4937C14.413 9.78149 14.0258 9.10443 13.2236 8.70335L12.7764 9.59778C13.268 9.84358 13.3807 10.1665 13.3616 10.4176C13.3399 10.703 13.1391 11.022 12.7764 11.2034L13.2236 12.0978ZM13.2236 8.70335C12.7995 8.49129 12.3898 8.45443 12.0179 8.54949C11.658 8.64148 11.3741 8.84627 11.1652 9.05054C10.9556 9.25558 10.8016 9.47946 10.7016 9.64642C10.6509 9.73116 10.6121 9.8044 10.5855 9.85784C10.5721 9.88463 10.5617 9.90664 10.5542 9.92288C10.5504 9.931 10.5474 9.9377 10.5451 9.94284C10.544 9.94541 10.543 9.94759 10.5423 9.94938C10.5419 9.95027 10.5415 9.95106 10.5412 9.95175C10.5411 9.95209 10.5409 9.95241 10.5408 9.9527C10.5408 9.95285 10.5407 9.95305 10.5406 9.95312C10.5406 9.95332 10.5405 9.9535 11 10.1506C11.4595 10.3476 11.4595 10.3478 11.4594 10.348C11.4594 10.348 11.4593 10.3482 11.4592 10.3483C11.4592 10.3485 11.4591 10.3486 11.459 10.3488C11.4589 10.3491 11.4588 10.3493 11.4588 10.3494C11.4587 10.3496 11.4588 10.3494 11.459 10.3489C11.4595 10.3478 11.4606 10.3454 11.4623 10.3416C11.4658 10.334 11.4718 10.3213 11.4803 10.3043C11.4973 10.2702 11.5238 10.2198 11.5595 10.1603C11.6323 10.0387 11.7358 9.89126 11.8645 9.76544C11.9939 9.63885 12.1291 9.55321 12.2655 9.51834C12.3899 9.48655 12.5536 9.4864 12.7764 9.59778L13.2236 8.70335ZM4.64645 8.35355L8.64645 12.3536L9.35355 11.6464L5.35355 7.64645L4.64645 8.35355ZM1.35355 12.3536L5.35355 8.35355L4.64645 7.64645L0.646447 11.6464L1.35355 12.3536ZM5.35355 7.64645L1.35355 3.64645L0.646447 4.35355L4.64645 8.35355L5.35355 7.64645ZM5.35355 8.35355L9.35355 4.35355L8.64645 3.64645L4.64645 7.64645L5.35355 8.35355Z",fill:"#2B2E31"})}));switch(s){case"link":return r;case"list-ordered":return o;case"list-unordered":return w;case"edit-link":return l;case"bold":return x;case"italic":return g;case"strikethrough":return c;case"underline":return C;case"center":return d;case"left":return j;case"right":return L;case"justify":return a;case"arrow-up":return M;case"arrow-down":return v;case"confirm":return p;case"remove":return u;case"cancel":return B;case"code":return k;case"quote":return H;case"undo":return f;case"redo":return b;case"superscript":return m;case"subscript":return O;case"table":return h;default:return null}});s.displayName="Icon",exports.Icon=s;
2
2
  //# sourceMappingURL=Icon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l,e=["bold","code"],a=[{label:"8px",value:"8px"},{label:"9px",value:"9px"},{label:"10px",value:"10px"},{label:"11px",value:"11px"},{label:"12px",value:"12px"},{label:"15px",value:"15px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"18px",value:"18px"},{label:"20px",value:"20px"},{label:"24px",value:"24px"},{label:"28px",value:"28px"},{label:"32px",value:"32px"},{label:"36px",value:"36px"},{label:"40px",value:"40px"},{label:"48px",value:"48px"},{label:"56px",value:"56px"},{label:"64px",value:"64px"},{label:"72px",value:"72px"},{label:"80px",value:"80px"},{label:"96px",value:"96px"}],p=[{label:"Arial",value:"Arial"},{label:"Verdana",value:"Verdana"},{label:"Courier New",value:"Courier New"},{label:"Georgia",value:"Georgia"},{label:"Impact",value:"Impact"}],x=[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"}],u=[{label:"Normal",value:"paragraph"},{label:"Quote",value:"quote"},{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"}];exports.BLOCK_TYPE=void 0,(l=exports.BLOCK_TYPE||(exports.BLOCK_TYPE={})).code="Code Block",l.h1="Heading 1",l.h2="Heading 2",l.h3="Heading 3",l.h4="Heading 4",l.h5="Heading 5",l.h6="Heading 6",l.paragraph="Normal",l.quote="Quote";var i={inline:{display:!0,options:e},type:{display:!0,options:u},fontSize:{display:!0,options:a},undoRedo:{display:!0},fontFamily:{display:!0,options:p},align:{display:!0,options:x},list:{display:!0},link:{display:!0},table:{display:!0}};exports.DEFAULT_BLOCK_TYPE_OPTIONS=u,exports.DEFAULT_FONT_FAMILY_OPTIONS=p,exports.DEFAULT_FONT_SIZE_OPTIONS=a,exports.DEFAULT_INLINE_CONFIG=e,exports.DEFAULT_TEXT_ALIGN_OPTIONS=x,exports.DEFAULT_TOOLBAR_CONFIG=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const l=["bold","code"],e=[{label:"8px",value:"8px"},{label:"9px",value:"9px"},{label:"10px",value:"10px"},{label:"11px",value:"11px"},{label:"12px",value:"12px"},{label:"15px",value:"15px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"18px",value:"18px"},{label:"20px",value:"20px"},{label:"24px",value:"24px"},{label:"28px",value:"28px"},{label:"32px",value:"32px"},{label:"36px",value:"36px"},{label:"40px",value:"40px"},{label:"48px",value:"48px"},{label:"56px",value:"56px"},{label:"64px",value:"64px"},{label:"72px",value:"72px"},{label:"80px",value:"80px"},{label:"96px",value:"96px"}],a=[{label:"Arial",value:"Arial"},{label:"Verdana",value:"Verdana"},{label:"Courier New",value:"Courier New"},{label:"Georgia",value:"Georgia"},{label:"Impact",value:"Impact"}],p=[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"}],x=[{label:"Normal",value:"paragraph"},{label:"Quote",value:"quote"},{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"}];var u;exports.BLOCK_TYPE=void 0,(u=exports.BLOCK_TYPE||(exports.BLOCK_TYPE={})).code="Code Block",u.h1="Heading 1",u.h2="Heading 2",u.h3="Heading 3",u.h4="Heading 4",u.h5="Heading 5",u.h6="Heading 6",u.paragraph="Normal",u.quote="Quote";const o={inline:{display:!0,options:l},type:{display:!0,options:x},fontSize:{display:!0,options:e},undoRedo:{display:!0},fontFamily:{display:!0,options:a},align:{display:!0,options:p},list:{display:!0},link:{display:!0},table:{display:!0}};exports.DEFAULT_BLOCK_TYPE_OPTIONS=x,exports.DEFAULT_FONT_FAMILY_OPTIONS=a,exports.DEFAULT_FONT_SIZE_OPTIONS=e,exports.DEFAULT_INLINE_CONFIG=l,exports.DEFAULT_TEXT_ALIGN_OPTIONS=p,exports.DEFAULT_TOOLBAR_CONFIG=o;
2
2
  //# sourceMappingURL=editorConfig.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),n=function(n){function r(t,e){var r=n.call(this,e)||this;return r.__htmlContent=t,r}return t.__extends(r,n),r.getType=function(){return"html"},r.prototype.decorate=function(){return e.jsx("div",{dangerouslySetInnerHTML:{__html:this.__htmlContent}})},r.clone=function(t){return new r(t.__htmlContent,t.__key)},r.prototype.createDOM=function(){var t=document.createElement("div");return t.innerHTML=this.__htmlContent,t},r.prototype.updateDOM=function(t,e){return t.__htmlContent!==this.__htmlContent&&(e.innerHTML=this.__htmlContent),!1},r.prototype.exportJSON=function(){return{type:"html",version:1,htmlContent:this.__htmlContent}},r.importJSON=function(t){return new r(t.htmlContent)},r}(require("lexical").DecoratorNode);exports.default=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("lexical");class n extends e.DecoratorNode{static getType(){return"html"}decorate(){return t.jsx("div",{dangerouslySetInnerHTML:{__html:this.__htmlContent}})}static clone(t){return new n(t.__htmlContent,t.__key)}constructor(t,e){super(e),this.__htmlContent=t}createDOM(){const t=document.createElement("div");return t.innerHTML=this.__htmlContent,t}updateDOM(t,e){return t.__htmlContent!==this.__htmlContent&&(e.innerHTML=this.__htmlContent),!1}exportJSON(){return{type:"html",version:1,htmlContent:this.__htmlContent}}static importJSON(t){const{htmlContent:e}=t;return new n(e)}}exports.default=n;
2
2
  //# sourceMappingURL=HTMLNode.js.map