@e-llm-studio/requirement-ai 0.0.250 → 0.0.251

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 (445) hide show
  1. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  10. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  11. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  12. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  13. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  14. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  15. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  16. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  17. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  18. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  19. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  20. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  25. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  28. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  29. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  31. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  41. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  44. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  45. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  48. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  49. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  51. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  52. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  53. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  54. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  55. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  56. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  61. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  62. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  63. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  64. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  118. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  119. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  120. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  121. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  126. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  127. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  128. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  129. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  130. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  131. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  132. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  133. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
  134. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  135. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  136. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  137. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  138. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  139. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  140. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  141. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  142. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  143. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  144. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  145. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  146. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  147. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  148. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  149. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  150. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  151. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  152. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  153. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  154. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  155. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  156. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  157. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  158. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  159. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  160. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  161. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  162. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  163. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  164. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  165. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  166. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  167. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  168. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  169. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  170. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  171. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  172. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  173. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  174. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  175. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  176. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  177. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  178. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  179. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  180. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  181. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  182. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  183. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  184. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  185. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  186. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  187. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  188. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  189. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  190. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  191. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  192. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  193. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  194. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  195. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  196. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  197. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  198. package/dist/cjs/index.js +1 -1
  199. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  200. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  201. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  202. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  203. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  204. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  205. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  206. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  207. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  208. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  209. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  210. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  211. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  212. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  213. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  214. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  215. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  216. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  217. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  218. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  219. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  220. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  221. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  222. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  223. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  224. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  225. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  226. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  227. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  228. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  229. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  230. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  231. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  232. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  233. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  234. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  235. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  236. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  237. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  238. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  239. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  240. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  241. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  242. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  243. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  244. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  245. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  246. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  247. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  248. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  249. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  250. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  251. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  252. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  253. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  254. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  255. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  256. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  257. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  258. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  259. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  260. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  261. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  262. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  263. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  264. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  265. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  266. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  267. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  268. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  269. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  270. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  271. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  272. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  273. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  274. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  275. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  276. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  277. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  278. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  279. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  280. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  281. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  282. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  283. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  284. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  285. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  286. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  287. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  288. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  289. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  290. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  291. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  292. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  293. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  294. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  295. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  296. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  297. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  298. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  299. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  300. package/dist/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
  301. package/dist/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
  302. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  303. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  304. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  305. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  306. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  307. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  308. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  309. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  310. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  311. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  312. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  313. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  314. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  315. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  316. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  317. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  318. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  319. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  320. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  321. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  322. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  323. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  324. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  325. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  326. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  327. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  328. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  329. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  330. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  331. package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
  332. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  333. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  334. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  335. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  336. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  337. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  338. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  339. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  340. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  341. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  342. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  343. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  344. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  345. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  346. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  347. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  348. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  349. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  350. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  351. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  352. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  353. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  354. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  355. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  356. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  357. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  358. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  359. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  360. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  361. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  362. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  363. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  364. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  365. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  366. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  367. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  368. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  369. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  370. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  371. package/dist/features/UserStoryImport/components/Header.js +1 -1
  372. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  373. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  374. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  375. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  376. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  377. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  378. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  379. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  380. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  381. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  382. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  383. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  384. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  385. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  386. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  387. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  388. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  389. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  390. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  391. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  392. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  393. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  394. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  395. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  396. package/dist/index.js +1 -1
  397. package/dist/types/src/App.d.ts.map +1 -1
  398. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  399. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +1 -50
  400. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  401. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +1 -2
  402. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  403. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +4 -1
  404. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  405. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  406. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +3 -4
  407. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  408. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +0 -1
  409. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  410. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts +0 -8
  411. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -1
  412. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +4 -9
  413. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  414. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +11 -45
  415. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  416. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts +13 -17
  417. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts.map +1 -1
  418. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +5 -29
  419. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  420. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +2 -17
  421. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  422. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
  423. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +2 -3
  424. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
  425. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +1 -1
  426. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
  427. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +0 -4
  428. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
  429. package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts +1 -2
  430. package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -1
  431. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +1 -7
  432. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  433. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +1 -4
  434. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  435. package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts +1 -1
  436. package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts.map +1 -1
  437. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +0 -2
  438. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  439. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +13 -24
  440. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  441. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +1 -7
  442. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -1
  443. package/dist/types/src/index.d.ts +0 -3
  444. package/dist/types/src/index.d.ts.map +1 -1
  445. package/package.json +1 -24
@@ -1,2 +1,2 @@
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:o,citationTitle:a,citationId:s,citationIcon:l,chevronUpComponent:r,chevronDownComponent:c,additionalCallbackForPillButton:p,citationComponent:d,styles:u={},isOpen:C,onToggle:x,defaultExpanded:h=!1})=>{const m=void 0!==C,f=s||a,[j,v]=e.useState(()=>f&&i.has(f)?i.get(f):h),y=m?C:j;return t.jsxs(t.Fragment,{children:[t.jsxs("span",{onClick:t=>(t=>{t.preventDefault(),t.stopPropagation(),p&&p(),x?x():m||v(t=>{const e=!t;return f&&i.set(f,e),e})})(t),className:n.default.pillButton,style:u.pillButton,children:[l,t.jsx("span",{style:u.citationTitle,children:a}),o&&(y?r:c)]}),o&&y&&t.jsx("div",{className:n.default.citationWrapper,style:u.citationWrapper,children:t.jsx("div",{className:n.default.citationContent,style:u.citationContent,onClick:t=>t.stopPropagation(),children:d})})]})};
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("react/jsx-runtime"),r=require("react"),t=require("./CustomPopover.module.css.js"),o=require("react-dom");exports.default=({anchorEl:s,open:n,onClose:c,children:l,customStyles:u={},backdropContainerId:a})=>{const d=r.useRef(null),i=r.useRef(c);r.useEffect(()=>{const e=d.current;if(!e||!n)return;let r=!0;const t=new ResizeObserver(e=>{var t;r?r=!1:null===(t=i.current)||void 0===t||t.call(i)});return t.observe(e),()=>{t.disconnect()}},[n]);const p=document.getElementById(String(a));if(!n||!s)return null;const f=s.getBoundingClientRect();return e.jsxs(e.Fragment,{children:[p?o.createPortal(e.jsx("div",{ref:d,onClick:c,className:t.default["containerized-backdrop"],style:{...u.backdrop}}),p):e.jsx("div",{ref:d,onClick:c,className:t.default.backdrop,style:{...u.backdrop}}),e.jsx("div",{className:t.default.popup,style:{top:f.bottom+15,left:f.left,...u.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("react/jsx-runtime"),i=require("react"),o=require("lucide-react"),l=require("./components/StoryNode/StoryNode.js"),n=require("../RequirementAIWrapper/RequirementAIWrapper.js"),s=require("./GapRiskSidebar.module.css.js");const d=i.createContext(null),t=()=>{const e=i.useContext(d);if(!e)throw new Error("GapRiskSidebar compound components must be used within <GapRiskSidebar.Root>");return e},a=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(a)});const r=Object.assign(({storyDetails:o,type:l,isSidebarExpanded:s,onToggleSidebar:t,defaultExpanded:a=!0,onClickStoryNodeCallback:r,isProcessingGapItems:u,onClickAiReasoning:c,handleFixRisk:v,handleHighlightGapContent:p,customStyles:S,customIcons:m,sidebarWidth:y,headerTitle:g,onSelectStory:b,children:h})=>{var C,I;const x=function(){try{return n.useRequirementAI()}catch(e){return null}}(),[k,f]=i.useState(a),N=void 0!==s,j=N?s:k,G=i.useCallback(e=>{const i="function"==typeof e?e(j):e;N?null==t||t(i):f(i)},[N,j,t]),R=i.useMemo(()=>{var e,i,o,l,n,s,d,t,a,r,u,c,v;return{...null===(e=null==x?void 0:x.customStyles)||void 0===e?void 0:e.gapSidebar,...S,gapRiskSidebar:{...null===(o=null===(i=null==x?void 0:x.customStyles)||void 0===i?void 0:i.gapSidebar)||void 0===o?void 0:o.gapRiskSidebar,...null==S?void 0:S.gapRiskSidebar},noGapsFound:{...null===(n=null===(l=null==x?void 0:x.customStyles)||void 0===l?void 0:l.gapSidebar)||void 0===n?void 0:n.noGapsFound,...null==S?void 0:S.noGapsFound},storyNode:{...null===(d=null===(s=null==x?void 0:x.customStyles)||void 0===s?void 0:s.gapSidebar)||void 0===d?void 0:d.storyNode,...null==S?void 0:S.storyNode},riskSidebarCategorySection:{...null===(a=null===(t=null==x?void 0:x.customStyles)||void 0===t?void 0:t.gapSidebar)||void 0===a?void 0:a.riskSidebarCategorySection,...null==S?void 0:S.riskSidebarCategorySection},riskCategorySection:{...null===(u=null===(r=null==x?void 0:x.customStyles)||void 0===r?void 0:r.gapSidebar)||void 0===u?void 0:u.riskCategorySection,...null==S?void 0:S.riskCategorySection},gapItem:{...null===(v=null===(c=null==x?void 0:x.customStyles)||void 0===c?void 0:c.gapSidebar)||void 0===v?void 0:v.gapItem,...null==S?void 0:S.gapItem}}},[null===(C=null==x?void 0:x.customStyles)||void 0===C?void 0:C.gapSidebar,S]),T=i.useMemo(()=>{var e,i,o,l,n,s;return{icons:{...null===(i=null===(e=null==x?void 0:x.customIcons)||void 0===e?void 0:e.gapSidebarIcons)||void 0===i?void 0:i.icons,...null==m?void 0:m.icons},iconSizes:{...null===(l=null===(o=null==x?void 0:x.customIcons)||void 0===o?void 0:o.gapSidebarIcons)||void 0===l?void 0:l.iconSizes,...null==m?void 0:m.iconSizes},iconColors:{...null===(s=null===(n=null==x?void 0:x.customIcons)||void 0===n?void 0:n.gapSidebarIcons)||void 0===s?void 0:s.iconColors,...null==m?void 0:m.iconColors}}},[null===(I=null==x?void 0:x.customIcons)||void 0===I?void 0:I.gapSidebarIcons,m]),W={isSidebarExpanded:j,setIsSidebarExpanded:G,storyDetails:o,type:l,isProcessingGapItems:u,onClickStoryNodeCallback:r,onClickAiReasoning:c,handleFixRisk:v,handleHighlightGapContent:p,mergedStyles:R,mergedIcons:T,sidebarWidth:y,headerTitle:g,onSelectStory:b};return e.jsx(d.Provider,{value:W,children:h})},{Panel:({className:n="",style:d})=>{var r,u,c,v;const{isSidebarExpanded:p,storyDetails:S,type:m,isProcessingGapItems:y,onClickStoryNodeCallback:g,onClickAiReasoning:b,handleFixRisk:h,handleHighlightGapContent:C,mergedStyles:I,mergedIcons:x,sidebarWidth:k=320,headerTitle:f="Generated User Stories",onSelectStory:N}=t(),j=I.gapRiskSidebar,G=(null===(r=x.icons)||void 0===r?void 0:r.menuIcon)||o.Menu,R=i.useMemo(()=>S.map(a),[S]),T="number"==typeof k?`${k}px`:k;return e.jsx("div",{className:`${s.default.sidebarContainer} ${p?s.default.sidebarExpanded:s.default.sidebarCollapsed} ${n}`,style:{...p?{width:T,minWidth:T}:{},...null==j?void 0:j.container,...p?{}:null==j?void 0:j.containerCollapsed,...d},children:e.jsxs("div",{className:s.default.sidebarInnerWrapper,style:{minWidth:T,...null==j?void 0:j.innerWrapper},children:[e.jsxs("div",{className:s.default.header,style:null==j?void 0:j.header,children:[e.jsx(G,{className:s.default.headerMenuIcon,style:{color:null===(u=x.iconColors)||void 0===u?void 0:u.menuIcon,width:null===(c=x.iconSizes)||void 0===c?void 0:c.menuIcon,height:null===(v=x.iconSizes)||void 0===v?void 0:v.menuIcon,...null==j?void 0:j.headerMenuIcon}}),e.jsx("h2",{className:s.default.headerTitle,style:null==j?void 0:j.headerTitle,children:f})]}),e.jsx("div",{className:s.default.storyList,style:null==j?void 0:j.storyList,children:R.map(i=>e.jsx("div",{className:s.default.storyItemWrapper,style:null==j?void 0:j.storyItemWrapper,children:e.jsx(l.default,{story:i,onClickStoryNodeCallback:g,type:m,isProcessingGapItems:y,onClickAiReasoning:b,handleFixRisk:h,handleHighlightGapContent:C,customStyles:I,customIcons:x,onSelectStory:N})},i.artifactTitleID))})]})})},Toggle:({OpenIcon:i,CloseIcon:l,className:n=""})=>{const{isSidebarExpanded:d,setIsSidebarExpanded:a}=t(),r=i||o.SidebarOpenIcon,u=l||o.SidebarCloseIcon;return e.jsx("div",{className:`${s.default.sidebarToggleWrapper} ${n}`,children:e.jsx("button",{onClick:()=>a(e=>!e),className:s.default.sidebarToggleBtn,"aria-label":d?"Collapse sidebar":"Expand sidebar",type:"button",children:d?e.jsx(u,{}):e.jsx(r,{})})})}});exports.NoGapsFound=({styles:i,CheckCircleIcon:l,iconColor:n,iconSize:d})=>{const t=l||o.CheckCircle2;return e.jsxs("div",{className:s.default.noGapsContainer,style:null==i?void 0:i.container,children:[e.jsx("p",{className:s.default.noGapsText,style:null==i?void 0:i.text,children:"No Gaps Found"}),e.jsx(t,{className:s.default.noGapsIcon,style:{color:n,width:d,height:d,...null==i?void 0:i.icon}})]})},exports.default=r,exports.useGapRiskSidebar=t;
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 e=require("react/jsx-runtime"),n=require("react"),o=require("@mui/material"),l=require("../../../../icons/AiReasoningIcon.js"),i=require("lucide-react"),t=require("../../../ai-reasoning/AiReasoningCitationContent.js"),s=require("./GapItem.module.css.js"),a=require("../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({item:d,index:c,title:r,isProcessingGapItems:u,type:v,onClickAiReasoning:h,handleFixRisk:x,handleHighlightGapContent:S,customStyles:y,customIcons:m})=>{var g,I,f,p,C,k,j,R,N,w,L,q,A,z,_,T,B,b,M,$,H,D,E,P,G;const[F,U]=n.useState(!1),[W,O]=n.useState(!1),[J,K]=n.useState(!1),Q=function(){try{return a.useRequirementAI()}catch(e){return null}}(),V=null==y?void 0:y.gapItem,X="gap_id"in d?d.gap_id:d.risk_id,Y="gap_name"in d?d.gap_name:d.risk_name;n.useEffect(()=>{"completed"===(null==d?void 0:d.status)&&U(!1)},[null==d?void 0:d.status]),n.useEffect(()=>{u||U(!1)},[u]);const Z=n.useMemo(()=>({id:X,reason:d.reason||"",relevance_score:Number(d.decision_strength.replace("%","")),gap:d.gap||"",explanation:d.explanation||""}),[d]),ee=(null===(g=null==m?void 0:m.icons)||void 0===g?void 0:g.checkIcon)||i.Check,ne=(null===(I=null==m?void 0:m.icons)||void 0===I?void 0:I.loaderIcon)||i.Loader,oe=(null===(f=null==m?void 0:m.icons)||void 0===f?void 0:f.externalLinkIcon)||i.ExternalLink,le=(null===(p=null==m?void 0:m.icons)||void 0===p?void 0:p.aiReasoningIcon)||l.default,ie=(null===(C=null==m?void 0:m.icons)||void 0===C?void 0:C.chevronUpIcon)||i.ChevronUp,te=(null===(k=null==m?void 0:m.icons)||void 0===k?void 0:k.chevronDownIcon)||i.ChevronDown,se=(null==V?void 0:V.fixButtonText)||"Fix";return e.jsx(o.Tooltip,{title:Y,arrow:!1!==(null==V?void 0:V.tooltipArrow),children:e.jsxs("div",{className:`${s.default.container} ${J?s.default.containerHovered:""}`,style:{...null==V?void 0:V.container,...J?null==V?void 0:V.containerHover:{}},onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1),children:[e.jsxs("div",{className:s.default.topRow,style:null==V?void 0:V.topRow,children:[e.jsxs("div",{className:s.default.contentArea,style:null==V?void 0:V.contentArea,children:[e.jsxs("p",{className:s.default.itemText,children:[e.jsxs("span",{className:s.default.idText,style:null==V?void 0:V.idText,children:[v,"-",X]}),e.jsx("span",{className:s.default.nameText,style:null==V?void 0:V.nameText,children:Y})]}),e.jsxs("span",{onClick:()=>{null==h||h(),O(!W)},className:s.default.aiReasoningToggle,style:null==V?void 0:V.aiReasoningToggle,children:[e.jsx(le,{}),W?e.jsx(ie,{className:s.default.chevronIcon,style:{color:null===(j=null==m?void 0:m.iconColors)||void 0===j?void 0:j.chevronIcon,width:null===(R=null==m?void 0:m.iconSizes)||void 0===R?void 0:R.chevronIcon,height:null===(N=null==m?void 0:m.iconSizes)||void 0===N?void 0:N.chevronIcon,...null==V?void 0:V.aiReasoningChevron}}):e.jsx(te,{className:s.default.chevronIcon,style:{color:null===(w=null==m?void 0:m.iconColors)||void 0===w?void 0:w.chevronIcon,width:null===(L=null==m?void 0:m.iconSizes)||void 0===L?void 0:L.chevronIcon,height:null===(q=null==m?void 0:m.iconSizes)||void 0===q?void 0:q.chevronIcon,...null==V?void 0:V.aiReasoningChevron}})]})]}),e.jsxs("div",{className:s.default.actionsContainer,style:null==V?void 0:V.actionsContainer,children:[F?e.jsx(ne,{className:s.default.loaderIcon,style:{color:null===(A=null==m?void 0:m.iconColors)||void 0===A?void 0:A.loaderIcon,width:null===(z=null==m?void 0:m.iconSizes)||void 0===z?void 0:z.loaderIcon,height:null===(_=null==m?void 0:m.iconSizes)||void 0===_?void 0:_.loaderIcon,...null==V?void 0:V.loaderIcon}}):"in-progress"===d.status?e.jsx("button",{onClick:()=>x(d),disabled:u,className:`${s.default.fixButton} ${u?s.default.fixButtonDisabled:""}`,style:{...null==V?void 0:V.fixButton,...u?null==V?void 0:V.fixButtonDisabled:{}},children:se}):e.jsx(ee,{className:s.default.checkIcon,style:{color:null===(T=null==m?void 0:m.iconColors)||void 0===T?void 0:T.checkIcon,width:null===(B=null==m?void 0:m.iconSizes)||void 0===B?void 0:B.checkIcon,height:null===(b=null==m?void 0:m.iconSizes)||void 0===b?void 0:b.checkIcon,...null==V?void 0:V.checkIcon}}),e.jsx("button",{className:s.default.externalLinkButton,onClick:()=>S(d),style:null==V?void 0:V.externalLinkButton,children:e.jsx(oe,{className:`${s.default.externalLinkIcon} ${J?s.default.externalLinkIconHovered:""}`,style:{color:J?(null===(M=null==m?void 0:m.iconColors)||void 0===M?void 0:M.externalLinkIconHover)||(null===($=null==m?void 0:m.iconColors)||void 0===$?void 0:$.externalLinkIcon):null===(H=null==m?void 0:m.iconColors)||void 0===H?void 0:H.externalLinkIcon,width:null===(D=null==m?void 0:m.iconSizes)||void 0===D?void 0:D.externalLinkIcon,height:null===(E=null==m?void 0:m.iconSizes)||void 0===E?void 0:E.externalLinkIcon}})})]})]}),W&&e.jsx("div",{className:s.default.aiReasoningContent,style:null==V?void 0:V.aiReasoningContent,children:e.jsx(t.default,{aiReason:Z,scenario:"riskSideBar",customStyles:(null===(G=null===(P=null==Q?void 0:Q.customStyles)||void 0===P?void 0:P.userStoryScreenStyles)||void 0===G?void 0:G.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})})]})})};
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("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),l=require("../GapItem/GapItem.js"),i=require("./RiskCategorySection.module.css.js");exports.default=({title:o,items:s,badgeColorClass:a,defaultOpen:d=!1,type:u,isProcessingGapItems:c,onClickAiReasoning:r,handleFixRisk:v,handleHighlightGapContent:g,customStyles:h,customIcons:m})=>{var p,f,x,y;const[B,j]=t.useState(d),[C,I]=t.useState(!1),S=null==h?void 0:h.riskCategorySection,N=(null===(p=null==m?void 0:m.icons)||void 0===p?void 0:p.chevronUpIcon)||n.ChevronUp;if(0===s.length)return null;const $={Critical:null==S?void 0:S.criticalBadge,Warning:null==S?void 0:S.warningBadge,Suggestion:null==S?void 0:S.suggestionBadge}[o],k={critical:i.default.statusBadgeCritical,warning:i.default.statusBadgeWarning,suggestion:i.default.statusBadgeSuggestion}[a]||"";return e.jsxs("div",{className:i.default.container,style:null==S?void 0:S.container,children:[e.jsxs("button",{onClick:()=>j(!B),className:`${i.default.headerButton} ${B?i.default.headerButtonOpen:""}`,style:{...null==S?void 0:S.headerButton,...C?null==S?void 0:S.headerButtonHover:{},...B?null==S?void 0:S.headerButtonOpen:{}},onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),children:[e.jsxs("div",{className:i.default.badgeGroup,children:[e.jsx("span",{className:`${i.default.statusBadge} ${k}`,style:{...null==S?void 0:S.statusBadge,...$},children:o}),e.jsxs("span",{className:i.default.countBadge,style:null==S?void 0:S.countBadge,children:["(",s.length,")"]})]}),e.jsx(N,{className:`${i.default.chevronIcon} ${B?"":i.default.chevronRotated}`,style:{color:null===(f=null==m?void 0:m.iconColors)||void 0===f?void 0:f.chevronIcon,width:null===(x=null==m?void 0:m.iconSizes)||void 0===x?void 0:x.chevronIcon,height:null===(y=null==m?void 0:m.iconSizes)||void 0===y?void 0:y.chevronIcon,...null==S?void 0:S.chevronIcon}})]}),e.jsx("div",{className:`${i.default.contentArea} ${B?"":i.default.contentHidden}`,style:null==S?void 0:S.contentArea,children:s.length>0?s.map((t,n)=>e.jsx(l.default,{item:t,index:n,title:o,type:u,isProcessingGapItems:c,onClickAiReasoning:r,handleFixRisk:v,handleHighlightGapContent:g,customStyles:h,customIcons:m},n)):e.jsx("p",{className:i.default.emptyText,style:null==S?void 0:S.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("react/jsx-runtime"),i=require("./RiskSidebarCategorySection.module.css.js");exports.default=({title:l,length:t,badgeColorClass:s,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}[l],d={critical:i.default.critical,warning:i.default.warning,suggestion:i.default.suggestion}[s]||"";return e.jsxs("div",{className:`${i.default.badge} ${d}`,style:{...null==a?void 0:a.badge,...r},children:[e.jsx("span",{style:null==a?void 0:a.countText,children:t}),e.jsx("span",{style:null==a?void 0:a.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 e=require("react/jsx-runtime"),i=require("react"),l=require("lucide-react"),o=require("@mui/material"),n=require("uuid"),t=require("../RiskSidebarCategorySection/RiskSidebarCategorySection.js"),s=require("../RiskCategorySection/RiskCategorySection.js"),a=require("./StoryNode.module.css.js");const d=e=>{var i,l,o,n,t,s,a;let r=(null===(l=null===(i=e.display_items)||void 0===i?void 0:i.critical)||void 0===l?void 0:l.length)||0,c=(null===(n=null===(o=e.display_items)||void 0===o?void 0:o.warning)||void 0===n?void 0:n.length)||0,u=(null===(s=null===(t=e.display_items)||void 0===t?void 0:t.recommendation)||void 0===s?void 0:s.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);r+=e.critical,c+=e.warning,u+=e.recommendation}return{critical:r,warning:c,recommendation:u}};function r(i,t,s,d){const r=[],c=/<learned>(.*?)<\/learned>/g;let u,v=0,m=0;const h=t||l.Info;for(;null!==(u=c.exec(i));){const[l,t]=u,g=u.index;g>v&&r.push(e.jsx("span",{children:i.slice(v,g)},"text-pre-"+m++)),r.push(e.jsx(o.Tooltip,{title:t,placement:"top",children:e.jsx(h,{size:d||16,className:a.default.infoIcon,style:{color:s,width:d,height:d}})},`tooltip-${n.v4()}`)),v=c.lastIndex}return v<(null==i?void 0:i.length)&&r.push(e.jsx("span",{children:i.slice(v)},"text-post-"+m++)),r}const c=({story:n,depth:u=0,onClickStoryNodeCallback:v,type:m,isProcessingGapItems:h,onClickAiReasoning:g,handleFixRisk:p,handleHighlightGapContent:y,customStyles:f,customIcons:C,onSelectStory:x,rootArtifactId:I=n.id})=>{var S,j,k,b,w,N,R,_,G,z,F,W,q,A,P,H,L,M,T,O,B,D,$,E;const[J,K]=i.useState(0===u),[Q,U]=i.useState(!1),V=null==f?void 0:f.storyNode,X=(null===(S=null==C?void 0:C.icons)||void 0===S?void 0:S.bookmarkIcon)||l.Bookmark,Y=(null===(j=null==C?void 0:C.icons)||void 0===j?void 0:j.chevronDownIcon)||l.ChevronDown,Z=(null===(k=null==C?void 0:C.icons)||void 0===k?void 0:k.chevronRightIcon)||l.ChevronRight,ee=i.useMemo(()=>n.display_items.critical.length>0?"Critical":n.display_items.warning.length>0?"Warning":n.display_items.recommendation.length>0?"Suggestion":null,[n.display_items,m]),ie=i.useMemo(()=>d(n),[n]),le=0===((null===(w=null===(b=n.display_items)||void 0===b?void 0:b.critical)||void 0===w?void 0:w.length)||0)+((null===(R=null===(N=n.display_items)||void 0===N?void 0:N.warning)||void 0===R?void 0:R.length)||0)+((null===(G=null===(_=n.display_items)||void 0===_?void 0:_.recommendation)||void 0===G?void 0:G.length)||0);return e.jsxs("div",{className:`${a.default.container} ${u>0?a.default.nestedContainer:""}`,style:{...null==V?void 0:V.container,...u>0?null==V?void 0:V.nestedContainer:{}},children:[e.jsxs("div",{onClick:()=>{K(!J),null==v||v(),null==x||x(I)},className:a.default.headerRow,style:{...null==V?void 0:V.headerRow,...Q?null==V?void 0:V.headerRowHover:{}},onMouseEnter:()=>U(!0),onMouseLeave:()=>U(!1),children:[e.jsx("div",{className:a.default.chevronWrapper,style:null==V?void 0:V.chevronWrapper,children:J?e.jsx(Y,{className:a.default.chevronIcon,style:{color:null===(z=null==C?void 0:C.iconColors)||void 0===z?void 0:z.chevronIcon,width:null===(F=null==C?void 0:C.iconSizes)||void 0===F?void 0:F.chevronIcon,height:null===(W=null==C?void 0:C.iconSizes)||void 0===W?void 0:W.chevronIcon}}):e.jsx(Z,{className:a.default.chevronIcon,style:{color:null===(q=null==C?void 0:C.iconColors)||void 0===q?void 0:q.chevronIcon,width:null===(A=null==C?void 0:C.iconSizes)||void 0===A?void 0:A.chevronIcon,height:null===(P=null==C?void 0:C.iconSizes)||void 0===P?void 0:P.chevronIcon}})}),e.jsxs("div",{className:a.default.headerContent,style:null==V?void 0:V.headerContent,children:[e.jsxs("div",{className:a.default.artifactIdRow,style:null==V?void 0:V.artifactIdRow,children:[e.jsx(X,{className:a.default.bookmarkIcon,style:{color:null===(H=null==C?void 0:C.iconColors)||void 0===H?void 0:H.bookmarkIcon,width:null===(L=null==C?void 0:C.iconSizes)||void 0===L?void 0:L.bookmarkIcon,height:null===(M=null==C?void 0:C.iconSizes)||void 0===M?void 0:M.bookmarkIcon}}),e.jsx("span",{style:null==V?void 0:V.artifactIdText,children:n.artifactTitleID})]}),e.jsx(o.Tooltip,{title:r(n.title,null===(T=null==C?void 0:C.icons)||void 0===T?void 0:T.infoIcon,null===(O=null==C?void 0:C.iconColors)||void 0===O?void 0:O.infoIcon,null===(B=null==C?void 0:C.iconSizes)||void 0===B?void 0:B.infoIcon),arrow:!0,children:e.jsx("h3",{className:a.default.title,style:{...null==V?void 0:V.title,...Q?null==V?void 0:V.titleHover:{}},children:r(n.title,null===(D=null==C?void 0:C.icons)||void 0===D?void 0:D.infoIcon,null===($=null==C?void 0:C.iconColors)||void 0===$?void 0:$.infoIcon,null===(E=null==C?void 0:C.iconSizes)||void 0===E?void 0:E.infoIcon)})}),!J&&e.jsx("div",{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",{className:a.default.summaryLabel,style:null==V?void 0:V.summaryLabel,children:"Gap"===m?"Gaps : ":"Risks : "}),e.jsxs("div",{className:a.default.summaryBadgesContainer,style:null==V?void 0:V.summaryBadgesContainer,children:[ie.critical>0&&e.jsx(t.default,{title:"Critical",length:ie.critical,badgeColorClass:"critical",customStyles:f}),ie.warning>0&&e.jsx(t.default,{title:"Warning",length:ie.warning,badgeColorClass:"warning",customStyles:f}),ie.recommendation>0&&e.jsx(t.default,{title:"JAS",length:ie.recommendation,badgeColorClass:"suggestion",customStyles:f})]})]})})]})]}),J&&e.jsxs("div",{className:a.default.expandedContent,style:null==V?void 0:V.expandedContent,children:[e.jsx("div",{className:a.default.expandedInnerPadding,style:null==V?void 0:V.expandedInnerPadding,children:le?u>0&&e.jsx("span",{className:a.default.summaryLabel,style:null==V?void 0:V.summaryLabel,children:"Gaps: No Gaps Found"}):e.jsxs("div",{className:a.default.itemsContainer,style:null==V?void 0:V.itemsContainer,children:[e.jsx(s.default,{title:"Critical",items:n.display_items.critical,badgeColorClass:"critical",defaultOpen:"Critical"===ee,type:m,isProcessingGapItems:h,onClickAiReasoning:g,handleFixRisk:p,handleHighlightGapContent:y,customStyles:f,customIcons:C}),e.jsx(s.default,{title:"Warning",items:n.display_items.warning,badgeColorClass:"warning",defaultOpen:"Warning"===ee,type:m,isProcessingGapItems:h,onClickAiReasoning:g,handleFixRisk:p,handleHighlightGapContent:y,customStyles:f,customIcons:C}),e.jsx(s.default,{title:"Suggestion",items:n.display_items.recommendation,badgeColorClass:"suggestion",defaultOpen:"Suggestion"===ee,type:m,isProcessingGapItems:h,onClickAiReasoning:g,handleFixRisk:p,handleHighlightGapContent:y,customStyles:f,customIcons:C})]})}),n.sub_feature&&n.sub_feature.length>0&&e.jsx("div",{className:a.default.subFeaturesWrapper,style:null==V?void 0:V.subFeaturesWrapper,children:n.sub_feature.map((i,l)=>e.jsx(c,{story:i,depth:u+1,onClickStoryNodeCallback:v,type:m,isProcessingGapItems:h,onClickAiReasoning:g,handleFixRisk:p,handleHighlightGapContent:y,customStyles:f,customIcons:C,onSelectStory:x,rootArtifactId:I},l))})]})]})};exports.default=c,exports.replaceLearnedTagsWithInfo=r;
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});const t=(e,a)=>{var i;return{title:e.title,artifactTitleID:a,gap_items:{critical:[],warning:[],recommendation:[]},id:e.artifactId,sub_feature:(null!==(i=e.sub_features)&&void 0!==i?i:[]).map((e,i)=>{const r=`${a}-${String.fromCharCode(65+i)}`;return t(e,r)})}},e=(t,a)=>({...t,gap_items:{critical:t.gap_items.critical.map(t=>t.gap_id===a?{...t,status:"completed"}:{...t}),warning:t.gap_items.warning.map(t=>t.gap_id===a?{...t,status:"completed"}:{...t}),recommendation:t.gap_items.recommendation.map(t=>t.gap_id===a?{...t,status:"completed"}:{...t})},sub_feature:t.sub_feature.map(t=>e(t,a))});exports.buildStoryWithGap=(e,a,i)=>{const r=e.map((e,a)=>t(e,i[a]));return Object.keys(a.gap_items).forEach(t=>{a.gap_items[t].forEach(e=>{((t,e,a)=>{var i;const{isArtifactLevel:r,storyId:s,subId:o}=(t=>{if(t.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};const e=t.indexOf("/");return-1===e?{isArtifactLevel:!1,storyId:t,subId:"null"}:{isArtifactLevel:!1,storyId:t.substring(0,e),subId:t.substring(e+1)}})(a.user_story_id);if(r)return void(t.length>0?t[0].gap_items[e].push({...a}):console.warn("[buildStoryWithGap] No stories available for artifact-level gap:",a.user_story_id));const n=t.findIndex(t=>t.id===s),d=t[n];if(!d)return;const u=d.sub_feature.findIndex(t=>t.id===o),p="null"===o.toLowerCase()?d:null===(i=d.sub_feature)||void 0===i?void 0:i[u];p?p.gap_items[e].push({...a}):console.warn("[buildStoryWithGap] Target story/sub-feature not found:",{storyId:s,subId:o})})(r,t,e)})}),r},exports.updateGapInRawData=(t,e)=>({gap_items:{critical:t.gap_items.critical.map(t=>t.gap_id===e?{...t,status:"completed"}:{...t}),warning:t.gap_items.warning.map(t=>t.gap_id===e?{...t,status:"completed"}:{...t}),recommendation:t.gap_items.recommendation.map(t=>t.gap_id===e?{...t,status:"completed"}:{...t})}}),exports.updateGapStory=e;
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});const t=(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((i,r)=>{const e=`${s}-${String.fromCharCode(65+r)}`;return t(i,e)})}},i=(t,s)=>({...t,risk_items:{critical:t.risk_items.critical.map(t=>t.risk_id===s?{...t,status:"completed"}:{...t}),warning:t.risk_items.warning.map(t=>t.risk_id===s?{...t,status:"completed"}:{...t}),recommendation:t.risk_items.recommendation.map(t=>t.risk_id===s?{...t,status:"completed"}:{...t})},sub_feature:t.sub_feature.map(t=>i(t,s))});exports.buildStoryWithRisk=(i,s,r)=>{const e=i.map((i,s)=>t(i,r[s]));return Object.keys(s.risk_items).forEach(t=>{s.risk_items[t].forEach(i=>{((t,i,s)=>{var r;const{isArtifactLevel:e,storyId:a,subId:o}=(t=>{if(t.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};const i=t.indexOf("/");return-1===i?{isArtifactLevel:!1,storyId:t,subId:"null"}:{isArtifactLevel:!1,storyId:t.substring(0,i),subId:t.substring(i+1)}})(s.user_story_id);if(e)return void(t.length>0?t[0].risk_items[i].push({...s}):console.warn("[buildStoryWithRisk] No stories available for artifact-level risk:",s.user_story_id));const n=t.findIndex(t=>t.id===a),d=t[n];if(!d)return;const u=d.sub_feature.findIndex(t=>t.id===o),c="null"===o.toLowerCase()?d:null===(r=d.sub_feature)||void 0===r?void 0:r[u];c?c.risk_items[i].push({...s}):console.warn("[buildStoryWithRisk] Target story/sub-feature not found:",{storyId:a,subId:o})})(e,t,i)})}),e},exports.updateRiskInRawData=(t,i)=>({risk_items:{critical:t.risk_items.critical.map(t=>t.risk_id===i?{...t,status:"completed"}:{...t}),warning:t.risk_items.warning.map(t=>t.risk_id===i?{...t,status:"completed"}:{...t}),recommendation:t.risk_items.recommendation.map(t=>t.risk_id===i?{...t,status:"completed"}:{...t})}}),exports.updateStory=i;
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("react/jsx-runtime"),r=require("@mui/material"),t=require("./RecommendationBlock.module.css.js");exports.default=({label:l,customStyles:s})=>e.jsx("span",{className:t.default.recommendationBlockContainer,style:null==s?void 0:s.container,children:e.jsx(r.Tooltip,{title:l,children:e.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=require("react/jsx-runtime"),t=require("react"),n=require("../../store/ref.context.js");require("../UserStoryCard/cws/CwsEvent.js");var i,o=require("../UserStoryCard/cws/CwsEventProvider.js"),r=require("react-hot-toast");exports.SectionStatus=void 0,(i=exports.SectionStatus||(exports.SectionStatus={})).WAITING="waiting",i.IN_PROGRESS="in_progress",i.GENERATED="generated",i.FAILED="failed",i.GENERATE="generate",i.APPROVED="approved";const s=t.createContext(null),a="user-story-lib";exports.ToasterId=a,exports.default=({children:i,userStory:u,setUserStory:l,aiReasoning:d,setAiReasoning:c,citations:g,setCitations:C,apiCachingConfig:f,customStyles:p,customIcons:h,searchQueryList:v,searchQueryReasoningIdList:m,citationConfig:S,chatHistory:I,chatCitationConfigs:R,gptCitationConfigs:x,diffEditConfig:y,aiReasoningAccordionOpenStates:E,persistedDataFiles:A,inlineUpdateComponentConfig:b,segmentComponentConfig:j,onEditBlocked:w,inlineManualComponentConfig:P,redlineConfig:q,sectionStatusConfig:D,customSectionConfig:U,updateRedlineDataParent:N,redlineCollaborativeConfig:T})=>{const[_,k]=t.useState(0),[F,L]=t.useState(""),M=t.useMemo(()=>{if(0===u.length||0===d.length)return Array(u.length).fill(0);const e=Array.from({length:u.length},()=>[]);return d.forEach(t=>{const n=Number(t.relevance_score);if(isNaN(n)||n<=0)return;const i=`ai_reasoning$${t.id}`,o=u.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))},[u,d]),O=t.useCallback(e=>{var t;const n=u.findIndex(t=>t.artifactId===e);return-1===n?0:null!==(t=M[n])&&void 0!==t?t:0},[u,M]);return e.jsxs(s.Provider,{value:{chatHistory:I,userStory:u,setUserStory:l,aiReasoning:d,setAiReasoning:c,citations:g,setCitations:C,apiCachingConfig:f,customStyles:p,customIcons:h,searchQueryList:v,searchQueryReasoningIdList:m,citationConfig:S,getAvgScoreForStory:O,chatCitationConfigs:R,gptCitationConfigs:x,diffEditConfig:y,aiReasoningAccordionOpenStates:E,persistedDataFiles:A,currentHighlightIndex:_,setCurrentHighlightIndex:k,inlineUpdateComponentConfig:b,segmentComponentConfig:j,onEditBlocked:w,inlineManualComponentConfig:P,redlineConfig:q,redlineDcoumentId:F,setRedlineDocumentId:L,sectionStatusConfig:D,customSectionConfig:U,updateRedlineDataParent:N,redlineCollaborativeConfig:T},children:[e.jsx(r.Toaster,{position:"top-right",toasterId:a}),(null==T?void 0:T.initiateCollaborativeFlow)?e.jsx(o.default,{applicationId:null==T?void 0:T.modeId,baseUrl:null==T?void 0:T.cwsBaseUrl,authToken:null==T?void 0:T.authToken,children:e.jsx(n.RefProvider,{children:i})}):e.jsx(n.RefProvider,{children:i})]})},exports.useRequirementAI=()=>{const e=t.useContext(s);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("react/jsx-runtime"),t=require("react"),i=require("@lexical/react/LexicalComposer"),n=require("@lexical/react/LexicalHistoryPlugin"),r=require("@lexical/react/LexicalOnChangePlugin"),l=require("@lexical/react/LexicalTabIndentationPlugin"),o=require("@lexical/list"),a=require("@lexical/react/LexicalListPlugin"),u=require("@lexical/react/LexicalLinkPlugin"),s=require("@lexical/link"),d=require("@lexical/rich-text"),c=require("@lexical/react/LexicalTablePlugin"),g=require("@lexical/table"),p=require("lexical");require("./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js");var x=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 N=require("./components/Context/ContextMenu.js"),q=require("@lexical/mark"),j=require("./plugins/CommentPlugin/HTMLNode.js"),v=require("./constants/editorConfig.js"),S=require("./plugins/InitialHtml.js"),T=require("./plugins/InsertNode.js"),y=require("./plugins/DeleteNode.js"),b=require("./plugins/HighlightNode.js"),L=require("@lexical/react/LexicalComposerContext"),P=require("./plugins/UpdateNode.js"),I=require("./plugins/ManualNode.js"),E=require("./plugins/PreservedNode.js"),R=require("./plugins/InvisibleNode.js");function _(e){console.log(e)}function B({onEditBlocked:e}){const[i]=L.useLexicalComposerContext();return t.useEffect(()=>{const t=e=>{let t=e;for(;t;){if(["preserved","insert","delete"].includes(t.getType()))return t;if(["update","manual"].includes(t.getType())&&t.getStatus()&&"pending"===t.getStatus())return t;t=t.getParent()}return!1};function n(e){let t=e;for(;t;){if((t instanceof P.UpdateNode||t instanceof I.ManualNode)&&"pending"===t.getStatus())return t.getId();t=t.getParent()}return null}return i.registerCommand(p.KEY_DOWN_COMMAND,i=>{const r=p.$getSelection();if(!p.$isRangeSelection(r))return!1;const l=r.getNodes().find(e=>!!t(e));if(l)return i.preventDefault(),null==e||e(n(l)||""),!0;if(r.isCollapsed()){const l=r.anchor.getNode(),o=t(l);if(o){const t=o?n(o):"";return null==e||e(t||""),i.preventDefault(),!0}if("Backspace"===i.key){const t=l.getPreviousSibling(),o=t&&(["delete","insert","preserved"].includes(t.getType())||["update","manual"].includes(t.getType())&&t.getStatus()&&"pending"===t.getStatus())?t:null;if(0===r.anchor.offset&&o)return null==e||e(n(o)||""),i.preventDefault(),!0}else if("Delete"===i.key){const t=l.getNextSibling(),o=t&&(["delete","insert","preserved"].includes(t.getType())||["update","manual"].includes(t.getType())&&t.getStatus()&&"pending"===t.getStatus())?t:null,a=l.getTextContent().length;if(r.anchor.offset===a&&o)return null==e||e(n(o)||""),i.preventDefault(),!0}}return!1},p.COMMAND_PRIORITY_CRITICAL)},[i]),null}exports.default=function({minHeight:L,height:M,placeholder:k,onFocus:H,onBlur:D,onChange:O,onToolbarButtonClick:A,toolbarConfig:w=v.DEFAULT_TOOLBAR_CONFIG,editorRef:$,editorState:F,initialString:U,customToolbar:W,plugins:Y,nodes:V,dynamicHeight:G,artifactContext:K,commentsPanelState:Q,mode:X,doNotShowBorderInViewMode:z,onEditBlocked:J}){var Z,ee,te;const ie=t.useRef(null),ne={namespace:"MyEditor",theme:C.default,onError:_,nodes:[p.TextNode,o.ListNode,o.ListItemNode,s.LinkNode,d.QuoteNode,d.HeadingNode,g.TableNode,g.TableRowNode,g.TableCellNode,q.MarkNode,j.default,T.InsertNode,y.DeleteNode,P.UpdateNode,E.PreservedNode,I.ManualNode,R.InvisibleNode,b.HighlightSpanNode,b.HighlightButtonNode],editorState:F},[re,le]=t.useState(null),[oe,ae]=t.useState(!1),{customStyles:ue}=x.useRequirementAI(),se=e=>{var t;null===(t=$.current)||void 0===t||t.update(()=>{const t=p.$getSelection();p.$isRangeSelection(t)&&t.getNodes().forEach(t=>{p.$isTextNode(t)&&t.setStyle(`color: ${e}`)})})};return document.getElementById("lexical_editor_wrapper"),e.jsxs(e.Fragment,{children:[(null===(Z=null==ue?void 0:ue.textEditorStyles)||void 0===Z?void 0:Z.themeStyles)&&e.jsx("style",{children:null===(ee=null==ue?void 0:ue.textEditorStyles)||void 0===ee?void 0:ee.themeStyles}),e.jsxs("div",{ref:ie,className:"w-full lexical_editor_wrapper "+(z&&"readOnly"===X?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:e=>{var t;e.preventDefault(),null===(t=$.current)||void 0===t||t.update(()=>{const t=p.$getSelection();p.$isRangeSelection(t)&&!t.isCollapsed()?(ae(!0),le({x:e.clientX,y:e.clientY})):(ae(!1),le(null))})},style:{minHeight:L,height:M,...null===(te=null==ue?void 0:ue.textEditorStyles)||void 0===te?void 0:te.textArea},children:[e.jsxs(i.LexicalComposer,{initialConfig:ne,children:[" ","edit"===X&&e.jsx(B,{onEditBlocked:J}),"edit"===X&&e.jsx(m.default,{onToolbarButtonClick:A,editorWrapperRef:ie,toolbarConfig:w,customToolbar:W,editorRef:$}),e.jsx(f.default,{placeholder:k}),e.jsx(l.TabIndentationPlugin,{}),e.jsx(n.HistoryPlugin,{}),e.jsx(a.ListPlugin,{}),e.jsx(u.LinkPlugin,{}),e.jsx(c.TablePlugin,{}),e.jsx(h.LayoutPlugin,{onFocus:H,onBlur:D,editorRef:$}),e.jsx(r.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:(e,t,i)=>{O&&O(e,t,i)}}),U&&e.jsx(S.InitialHtml,{initialValue:U.value,initialFormat:U.type,mode:X}),Y&&Y]}),re&&oe&&"edit"===X&&e.jsx(N.default,{position:re,options:[{label:"Change Color to Red",action:()=>se("red")},{label:"Change Color to Blue",action:()=>se("blue")}],onClose:()=>{le(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("react/jsx-runtime"),o=require("react");exports.default=({options:t,position:r,onClose:n})=>(o.useEffect(()=>{const e=()=>n();return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n]),e.jsx("div",{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:t.map((o,t)=>e.jsx("button",{style:{display:"block",padding:"8px 12px",background:"none",border:"none",textAlign:"left",width:"100%",cursor:"pointer"},onClick:()=>{o.action(),n()},children:o.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("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",{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})});
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("react/jsx-runtime");require("./EditorPlaceholder.css.js");exports.default=({placeholder:r})=>e.jsx("div",{className:"lexical_editor_placeholder",children:r});
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("react/jsx-runtime"),t=require("react"),o=require("lexical"),a=require("@lexical/selection"),r=require("@lexical/rich-text"),i=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:R,editorRef:$})=>{var y;const[f]=l.useLexicalComposerContext(),[A,_]=t.useState(p.ACTIVE_FORMATS),[b,h]=t.useState("15px"),[q,v]=t.useState("Arial"),[M,O]=t.useState(""),[I,j]=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!==f.getElementByKey(u))if(D(u),i.$isListNode(l)){const e=s.$getNearestNodeOfType(o,i.ListNode),t=e?e.getTag():l.getTag();L(t)}else{const e=r.$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)?_(t=>({...t,[e]:!0})):_(t=>({...t,[e]:!1}))});const d=C.getSelectedNode(t),g=d.getParent();n.$isLinkNode(g)||n.$isLinkNode(d)?j(!0):j(!1),h(a.$getSelectionStyleValueForProperty(t,"font-size","15px")),v(a.$getSelectionStyleValueForProperty(t,"font-family","Arial"));const T=null===(e=t.anchor.getNode().getParent())||void 0===e?void 0:e.getFormatType();O(T)}},[f]);t.useEffect(()=>s.mergeRegister(f.registerUpdateListener(({editorState:e})=>{e.read(()=>{z()})}),f.registerCommand(o.CAN_UNDO_COMMAND,e=>(U(e),!1),o.COMMAND_PRIORITY_CRITICAL),f.registerCommand(o.CAN_REDO_COMMAND,e=>(G(e),!1),o.COMMAND_PRIORITY_CRITICAL)),[f,z]);const H=t.useCallback((e,t)=>{f.dispatchCommand(o.FORMAT_TEXT_COMMAND,t)},[f]);t.useCallback((e,t)=>{["left","center","right","justify"].includes(t)&&f.dispatchCommand(o.FORMAT_ELEMENT_COMMAND,t)},[f]),t.useCallback((e,t)=>{f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$patchStyleText(e,{"font-size":t})})},[f]);return t.useCallback((e,t)=>{var i;"h1"!==t&&"h2"!==t&&"h3"!==t||k!==(i=t)&&f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>r.$createHeadingNode(i))}),"paragraph"===t&&"paragraph"!==k&&f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>o.$createParagraphNode())}),"quote"===t&&"quote"!==k&&f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>r.$createQuoteNode())})},[f,k]),t.useCallback((e,t)=>{f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$patchStyleText(e,{"font-family":t})})},[f]),t.useCallback(()=>{I?f.dispatchCommand(n.TOGGLE_LINK_COMMAND,null):f.dispatchCommand(n.TOGGLE_LINK_COMMAND,"https://")},[f,I]),e.jsxs("div",{className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:V,style:{...null===(y=null==W?void 0:W.textEditorStyles)||void 0===y?void 0:y.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:A[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,{})]}),R&&R]})};
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("react/jsx-runtime"),e=require("react");require("./ToolbarButton.css.js");var o=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({toolbarItem:l,active:r,onClick:i,icon:u,disabled:n,onToolbarButtonClick:a})=>{var s,d,v,c;const{customStyles:b}=o.useRequirementAI(),[x,_]=e.useState(!1),m=r?null===(s=null==b?void 0:b.textEditorStyles)||void 0===s?void 0:s.activeToolButton:null===(d=null==b?void 0:b.textEditorStyles)||void 0===d?void 0:d.toolbarButton,p=null===(v=null==b?void 0:b.textEditorStyles)||void 0===v?void 0:v.toolbarButtonHover,q=null===(c=null==b?void 0:b.textEditorStyles)||void 0===c?void 0:c.toolbarButtonDisabled,y={...m,...x&&!n?p:{},...n?q:{}};return t.jsx("button",{className:"lexical_editor_toolbar_button "+(r?"lexical_editor_toolbar_button__active":""),onClick:t=>((t,e)=>{i(t,e),a&&a()})(t,l),disabled:n,style:y,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:u})};
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");const t=require("react").memo(({icon:t,iconColors:s,width:i=18,height:r=18})=>{const h=e.jsx("svg",{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"})}),n=e.jsxs("svg",{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",{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",{fill:"#000000",width:i,height:r,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",{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",{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==s?void 0:s.boldIcon)||"#2B2E31",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),C=e.jsx("svg",{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"})}),d=e.jsx("svg",{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"})}),g=e.jsx("svg",{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"})}),c=e.jsx("svg",{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"})}),L=e.jsx("svg",{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"})}),M=e.jsx("svg",{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"})}),v=e.jsx("svg",{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"})}),j=e.jsx("svg",{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"})}),p=e.jsx("svg",{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"})}),a=e.jsx("svg",{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",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("g",{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",{id:"clip0_37_1104",children:e.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),B=e.jsx("svg",{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",{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==s?void 0:s.codeIcon)||"#2B2E31"})}),H=e.jsx("svg",{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",{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"})}),m=e.jsx("svg",{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"})}),E=e.jsx("svg",{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"})}),y=e.jsx("svg",{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(t){case"link":return h;case"list-ordered":return o;case"list-unordered":return w;case"edit-link":return l;case"bold":return x;case"italic":return C;case"strikethrough":return d;case"underline":return g;case"center":return c;case"left":return L;case"right":return M;case"justify":return v;case"arrow-up":return j;case"arrow-down":return p;case"confirm":return a;case"remove":return u;case"cancel":return B;case"code":return k;case"quote":return H;case"undo":return f;case"redo":return m;case"superscript":return E;case"subscript":return y;case"table":return n;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 e=require("lexical");class t extends e.ElementNode{static getType(){return"delete"}static clone(e){return new t(e.__key)}constructor(e){super(e)}createDOM(){const e=document.createElement("del");return e.className="PlaygroundEditorTheme__delete-node",e.contentEditable="false",e}exportDOM(){return{element:document.createElement("del")}}updateDOM(){return!1}static importDOM(){return{del:()=>({conversion:r,priority:1})}}static importJSON(e){return new t}exportJSON(){return{...super.exportJSON(),type:"delete",version:1}}isInline(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canMergeWith(){return!1}}function r(e){return{node:new t}}exports.DeleteNode=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lexical");class t extends e.ElementNode{static getType(){return"delete"}static clone(e){return new t(e.__reviewId,e.__key)}constructor(e=crypto.randomUUID(),t){super(t),this.__reviewId=e}createDOM(){const e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",e.contentEditable="false",e}exportDOM(){const e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",{element:e}}updateDOM(){return!1}static importDOM(){return{del:()=>({conversion:r,priority:1})}}static importJSON(e){return new t(e.reviewId)}exportJSON(){return Object.assign(Object.assign({},super.exportJSON()),{type:"delete",version:1,reviewId:this.__reviewId})}isInline(){return!0}canBeEmpty(){return!1}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canMergeWith(){return!1}}function r(e){const r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}exports.DeleteNode=t;
2
2
  //# sourceMappingURL=DeleteNode.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lexical");class i extends t.ElementNode{static getType(){return"highlight-span"}static clone(t){return new i(t.__highlightId,t.__highlightColor,t.__key)}constructor(t,i=null,h){super(h),this.__highlightId=t,this.__highlightColor=i}createDOM(){return this.createHighlightElement()}exportDOM(){return{element:this.createHighlightElement()}}createHighlightElement(){const t=document.createElement("span");return t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightColor&&t.setAttribute("highlight-color",this.__highlightColor),t}updateDOM(t,i){return t.__highlightId!==this.__highlightId&&i.setAttribute("highlight-id",this.__highlightId),t.__highlightColor!==this.__highlightColor&&(null===this.__highlightColor?i.removeAttribute("highlight-color"):i.setAttribute("highlight-color",this.__highlightColor)),!1}static importDOM(){return{span:t=>t.hasAttribute("highlight-id")?{conversion:h,priority:1}:null}}static importJSON(t){const h=new i(t.highlightId,t.highlightColor);return h.setFormat(t.format),h.setIndent(t.indent),h.setDirection(t.direction),h}exportJSON(){return{...super.exportJSON(),type:"highlight-span",version:1,highlightId:this.__highlightId,highlightColor:this.__highlightColor}}isInline(){return!0}}function h(t){return{node:new i(t.getAttribute("highlight-id")||"",t.getAttribute("highlight-color"))}}class e extends t.ElementNode{static getType(){return"highlight-button"}static clone(t){return new e(t.__highlightId,t.__highlightType,t.__key)}constructor(t=null,i=null,h){super(h),this.__highlightId=t,this.__highlightType=i}createDOM(t){const i=this.createHighlightButtonElement(),h=t.theme.highlightButton;return"string"==typeof h&&(i.className=h),i.contentEditable="false",i}exportDOM(){return{element:this.createHighlightButtonElement()}}createHighlightButtonElement(){const t=document.createElement("button");return t.setAttribute("action","highlight"),null!==this.__highlightId&&t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightType&&t.setAttribute("highlight-type",this.__highlightType),t}updateDOM(){return!1}static importDOM(){return{button:t=>"highlight"!==t.getAttribute("action")?null:{conversion:g,priority:1}}}static importJSON(t){const i=new e(t.highlightId,t.highlightType);return i.setFormat(t.format),i.setIndent(t.indent),i.setDirection(t.direction),i}exportJSON(){return{...super.exportJSON(),type:"highlight-button",version:1,highlightId:this.__highlightId,highlightType:this.__highlightType}}isInline(){return!0}}function g(t){return{node:new e(t.getAttribute("highlight-id"),t.getAttribute("highlight-type"))}}exports.HighlightButtonNode=e,exports.HighlightSpanNode=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lexical");class i extends t.ElementNode{static getType(){return"highlight-span"}static clone(t){return new i(t.__highlightId,t.__highlightColor,t.__key)}constructor(t,i=null,h){super(h),this.__highlightId=t,this.__highlightColor=i}createDOM(){return this.createHighlightElement()}exportDOM(){return{element:this.createHighlightElement()}}createHighlightElement(){const t=document.createElement("span");return t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightColor&&t.setAttribute("highlight-color",this.__highlightColor),t}updateDOM(t,i){return t.__highlightId!==this.__highlightId&&i.setAttribute("highlight-id",this.__highlightId),t.__highlightColor!==this.__highlightColor&&(null===this.__highlightColor?i.removeAttribute("highlight-color"):i.setAttribute("highlight-color",this.__highlightColor)),!1}static importDOM(){return{span:t=>t.hasAttribute("highlight-id")?{conversion:h,priority:1}:null}}static importJSON(t){const h=new i(t.highlightId,t.highlightColor);return h.setFormat(t.format),h.setIndent(t.indent),h.setDirection(t.direction),h}exportJSON(){return Object.assign(Object.assign({},super.exportJSON()),{type:"highlight-span",version:1,highlightId:this.__highlightId,highlightColor:this.__highlightColor})}isInline(){return!0}}function h(t){return{node:new i(t.getAttribute("highlight-id")||"",t.getAttribute("highlight-color"))}}class e extends t.ElementNode{static getType(){return"highlight-button"}static clone(t){return new e(t.__highlightId,t.__highlightType,t.__key)}constructor(t=null,i=null,h){super(h),this.__highlightId=t,this.__highlightType=i}createDOM(t){const i=this.createHighlightButtonElement(),h=t.theme.highlightButton;return"string"==typeof h&&(i.className=h),i.contentEditable="false",i}exportDOM(){return{element:this.createHighlightButtonElement()}}createHighlightButtonElement(){const t=document.createElement("button");return t.setAttribute("action","highlight"),null!==this.__highlightId&&t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightType&&t.setAttribute("highlight-type",this.__highlightType),t}updateDOM(){return!1}static importDOM(){return{button:t=>"highlight"!==t.getAttribute("action")?null:{conversion:g,priority:1}}}static importJSON(t){const i=new e(t.highlightId,t.highlightType);return i.setFormat(t.format),i.setIndent(t.indent),i.setDirection(t.direction),i}exportJSON(){return Object.assign(Object.assign({},super.exportJSON()),{type:"highlight-button",version:1,highlightId:this.__highlightId,highlightType:this.__highlightType})}isInline(){return!0}}function g(t){return{node:new e(t.getAttribute("highlight-id"),t.getAttribute("highlight-type"))}}exports.HighlightButtonNode=e,exports.HighlightSpanNode=i;
2
2
  //# sourceMappingURL=HighlightNode.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@lexical/react/LexicalComposerContext"),t=require("@lexical/html"),a=require("lexical"),o=require("showdown"),i=require("../../../../../../utils/tagHelper.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=l(o);exports.InitialHtml=({initialValue:o,initialFormat:l,mode:n})=>{const[u]=r.useLexicalComposerContext();return e.useEffect(()=>{if(o){if(o=(()=>{let e=i.escapeTagIds(o,["manual","upt"]);return["del","ins","preserved","manual","upt"].forEach(r=>{e=i.splitTagAcrossParagraphs(e,r)}),e})(),l&&"html"!==l){var e=new s.default.Converter;o=e.makeHtml(o)}u.update(()=>{const e=a.$getRoot();e.clear();const r=(new DOMParser).parseFromString(o||"","text/html");t.$generateNodesFromDOM(u,r).forEach(r=>{try{a.$isParagraphNode(r)&&r.setFormat("justify"),e.append(r)}catch(e){console.error("Error appending node to root: ",e)}})})}},[o,u]),e.useEffect(()=>{u.setEditable("edit"===n)},[u,n]),null};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@lexical/react/LexicalComposerContext"),r=require("@lexical/html"),o=require("lexical");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(require("showdown"));exports.InitialHtml=({initialValue:a,initialFormat:l,mode:n})=>{const[s]=t.useLexicalComposerContext();return e.useEffect(()=>{if(a){if(l&&"html"!==l){var e=new i.default.Converter;a=e.makeHtml(a)}s.update(()=>{const e=o.$getRoot();e.clear();const t=(new DOMParser).parseFromString(a||"","text/html");r.$generateNodesFromDOM(s,t).forEach(t=>{try{o.$isParagraphNode(t)&&t.setFormat("justify"),e.append(t)}catch(e){console.error("Error appending node to root: ",e)}})})}},[a,s]),e.useEffect(()=>{s.setEditable("edit"===n)},[s,n]),null};
2
2
  //# sourceMappingURL=InitialHtml.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lexical");class t extends e.ElementNode{static getType(){return"insert"}static clone(e){return new t(e.__key)}constructor(e){super(e)}createDOM(){const e=document.createElement("ins");return e.className="PlaygroundEditorTheme__insert-node",e.contentEditable="false",e}exportDOM(){return{element:document.createElement("ins")}}updateDOM(e,t,r){return!1}static importDOM(){return{ins:()=>({conversion:r,priority:1})}}static importJSON(e){return new t}exportJSON(){return{...super.exportJSON(),type:"insert",version:1}}isInline(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canMergeWith(){return!1}}function r(e){return{node:new t}}exports.InsertNode=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lexical");class t extends e.ElementNode{static getType(){return"insert"}static clone(e){return new t(e.__reviewId,e.__key)}constructor(e=crypto.randomUUID(),t){super(t),this.__reviewId=e}createDOM(){const e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",e}exportDOM(){const e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",{element:e}}updateDOM(e,t,r){return e.__reviewId!==this.__reviewId}static importDOM(){return{ins:()=>({conversion:r,priority:1})}}static importJSON(e){const r=new t(e.reviewId);return r.setFormat(e.format),r.setIndent(e.indent),r.setDirection(e.direction),r}exportJSON(){return Object.assign(Object.assign({},super.exportJSON()),{type:"insert",version:1,reviewId:this.__reviewId})}isInline(){return!0}}function r(e){const r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}exports.InsertNode=t;
2
2
  //# sourceMappingURL=InsertNode.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__highlight-button{display:none}.PlaygroundEditorTheme__insert-node{background-color:#8cbeff;text-decoration:none}.PlaygroundEditorTheme__delete-node{background-color:#fff;text-decoration:line-through;text-decoration-color:#dc2626}[class^=PlaygroundEditorTheme__update-node]>.PlaygroundEditorTheme__insert-node{background-color:#f3e8ff}.PlaygroundEditorTheme__manual-node-accepted,[class^=PlaygroundEditorTheme__manual-node]>.PlaygroundEditorTheme__insert-node{background-color:#8cbeff}.PlaygroundEditorTheme__manual-node-rejected{background-color:#fff;text-decoration:underline;text-decoration-color:red}.PlaygroundEditorTheme__update-node-accepted{background-color:#f3e8ff;-webkit-box-decoration-break:clone;box-decoration-break:clone;display:inline}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}(),exports.default=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__delete-node{text-decoration:var(--delete-node-text-decoration,line-through);text-decoration-color:var(--delete-node-decoration-color,#dc2626);text-decoration-thickness:var(--delete-node-decoration-thickness,2px)}.PlaygroundEditorTheme__insert-node{background-color:var(--insert-node-bg,#dbeafe);border-radius:var(--insert-node-border-radius,2px);color:var(--insert-node-color,#1e3a8a);padding:var(--insert-node-padding,1px 2px);text-decoration:var(--insert-node-text-decoration,none)}.PlaygroundEditorTheme__highlight-button{display:none}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}(),exports.default=e;
2
2
  //# sourceMappingURL=theme.css.js.map