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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  10. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  11. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  12. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  13. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  14. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  15. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  16. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  17. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  18. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  19. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  20. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  25. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  28. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  29. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  31. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  41. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  44. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  45. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  48. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  49. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  51. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  52. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  53. package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +1 -1
  54. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  55. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  56. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  61. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  62. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  63. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  64. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  118. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  119. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  120. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  121. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  131. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  132. package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  133. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  134. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  135. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  136. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  137. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  138. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  139. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
  140. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  141. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  142. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  143. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  144. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  145. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  146. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  147. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  148. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  149. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  150. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  151. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  152. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  153. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  154. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  155. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  156. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  157. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  158. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  159. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  160. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  161. package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  162. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  163. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  164. package/dist/cjs/features/RequirementAI/utils/css.utils.js +1 -1
  165. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  166. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  167. package/dist/cjs/features/RequirementAI/utils/json-helper.js +1 -1
  168. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  169. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  170. package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
  171. package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  172. package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  173. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  174. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  175. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  176. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  177. package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  178. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  179. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  180. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  181. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  182. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  183. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  184. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  185. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  186. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  187. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  188. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  189. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  190. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  191. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  192. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  193. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  194. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  195. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  196. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  197. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  198. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  199. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  200. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  201. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  202. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  203. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  204. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  205. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  206. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  207. package/dist/cjs/features/UserStoryImport/components/usePanelResize.js +1 -1
  208. package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  209. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  210. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  211. package/dist/cjs/features/UserStoryImport/index.js +1 -1
  212. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  213. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  214. package/dist/cjs/features/UserStoryImport/lib/cn.js +1 -1
  215. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  216. package/dist/cjs/index.js +1 -1
  217. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  218. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  219. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  220. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  221. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  222. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  223. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  224. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  225. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  226. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  227. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  228. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  229. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  230. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  231. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  232. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  233. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  234. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  235. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  236. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  237. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  238. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
  239. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  240. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  241. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  242. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  243. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  244. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  245. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  246. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  247. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  248. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  249. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  250. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  251. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  252. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  253. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  254. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  255. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  256. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  257. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  258. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  259. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  260. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  261. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  262. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  263. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  264. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  265. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  266. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  267. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  268. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  269. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  270. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  271. package/dist/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +1 -1
  272. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  273. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  274. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  275. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  276. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  277. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  278. package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
  279. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  280. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  281. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  282. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  283. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  284. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  285. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  286. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  287. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  288. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  289. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  290. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  291. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  292. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  293. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  294. package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  295. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  296. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  297. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  298. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  299. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  300. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  301. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  302. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  303. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  304. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  305. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  306. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  307. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  308. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  309. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  310. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  311. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  312. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  313. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  314. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  315. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  316. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  317. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  318. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  319. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  320. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  321. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  322. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  323. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  324. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  325. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  326. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  327. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  328. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  329. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  330. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  331. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  332. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  333. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  334. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  335. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  336. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  337. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  338. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  339. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  340. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  341. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  342. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  343. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  344. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  345. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  346. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  347. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  348. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  349. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  350. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  351. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  352. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  353. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  354. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  355. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  356. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  357. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  358. package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
  359. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  360. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  361. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  362. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  363. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  364. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  365. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  366. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  367. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  368. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  369. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  370. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  371. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  372. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  373. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  374. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  375. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  376. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  377. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  378. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  379. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  380. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  381. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  382. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  383. package/dist/features/RequirementAI/utils/css.utils.js +1 -1
  384. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  385. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  386. package/dist/features/RequirementAI/utils/json-helper.js +1 -1
  387. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  388. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  389. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  390. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  391. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  392. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  393. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  394. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  395. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  396. package/dist/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  397. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  398. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  399. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  400. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  401. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  402. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  403. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  404. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  405. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  406. package/dist/features/UserStoryImport/components/Header.js +1 -1
  407. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  408. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  409. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  410. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  411. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  412. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  413. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  414. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  415. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  416. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  417. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  418. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  419. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  420. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  421. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  422. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  423. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  424. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  425. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  426. package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
  427. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  428. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  429. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  430. package/dist/features/UserStoryImport/index.js +1 -1
  431. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  432. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  433. package/dist/features/UserStoryImport/lib/cn.js +1 -1
  434. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  435. package/dist/index.js +1 -1
  436. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +11 -2
  437. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  438. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.replaceLearnedTagsWithInfo=function(n,t,i){if(!n)return[];for(var s,a=[],l=/<learned>(.*?)<\/learned>/g,c=0,o=0;null!==(s=l.exec(n));){var d=s[1],p=s.index;p>c&&a.push(r.jsx("span",{children:n.slice(c,p)},"learned-text-pre-".concat(o++)));var h=i?r.jsx(i,{size:16,className:"learned-tag-info-icon"}):r.jsx("span",e.__assign({style:{display:"inline-block",width:16,height:16,borderRadius:"50%",backgroundColor:"#3b82f6",color:"white",fontSize:11,textAlign:"center",lineHeight:"16px",margin:"0 2px",cursor:"help",fontWeight:600}},{children:"i"}));t?a.push(r.jsx(t,e.__assign({title:d.replace(/<[^>]*>?/gm,""),placement:"top"},{children:h}),"learned-tooltip-".concat(o++))):a.push(r.jsx("abbr",e.__assign({title:d,style:{textDecoration:"none",cursor:"help"}},{children:h}),"learned-abbr-".concat(o++))),c=l.lastIndex}return c<n.length&&a.push(r.jsx("span",{children:n.slice(c)},"learned-text-post-".concat(o++))),a};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.replaceLearnedTagsWithInfo=function(t,n,r){if(!t)return[];const s=[],i=/<learned>(.*?)<\/learned>/g;let l,a=0,c=0;for(;null!==(l=i.exec(t));){const[,o]=l,d=l.index;d>a&&s.push(e.jsx("span",{children:t.slice(a,d)},"learned-text-pre-"+c++));const p=r?e.jsx(r,{size:16,className:"learned-tag-info-icon"}):e.jsx("span",Object.assign({style:{display:"inline-block",width:16,height:16,borderRadius:"50%",backgroundColor:"#3b82f6",color:"white",fontSize:11,textAlign:"center",lineHeight:"16px",margin:"0 2px",cursor:"help",fontWeight:600}},{children:"i"}));n?s.push(e.jsx(n,Object.assign({title:o.replace(/<[^>]*>?/gm,""),placement:"top"},{children:p}),"learned-tooltip-"+c++)):s.push(e.jsx("abbr",Object.assign({title:o,style:{textDecoration:"none",cursor:"help"}},{children:p}),"learned-abbr-"+c++)),a=i.lastIndex}return a<t.length&&s.push(e.jsx("span",{children:t.slice(a)},"learned-text-post-"+c++)),s};
2
2
  //# sourceMappingURL=learned-tag.utils.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});function r(r,e){if(!r)return r;for(var t="",n=0;;){var a=r.indexOf("<gpt_citation_here ",n);if(-1===a){t+=r.slice(n);break}t+=r.slice(n,a);var i=r.indexOf(">",a);if(-1===i){t+=r.slice(a);break}var o=r.slice(a,i+1),c=o.indexOf("id="),s="";if(-1!==c){var l=c+3;for("\\"===o[l]&&l++,'"'!==o[l]&&"'"!==o[l]||l++;l<o.length&&/\d/.test(o[l]);)s+=o[l++]}if(s){var u="".concat(e,"<GPT_CITATION_ID>").concat(s);t+='<a href="gpt_citation$'.concat(u,'">Source</a>')}n=i+1}return t}function e(r,e){var t=function(e){for(var t,n=new RegExp("<".concat(e,">([\\s\\S]*?)<\\/").concat(e,">"),"gi"),a=[];null!==(t=n.exec(r));)a.push(t[1].trim());return a},n=t("domain"),a=t("paraphrase");return{citation_number:e,customMetadata:{type:"gpt_citation",data_sources:t("data_sources"),training_data_title:n,paraphrase:a}}}exports.extractBlockStreams=function(r){var e=[];try{for(var t="<BLOCK_STREAM_START>",n="<BLOCK_STREAM_END>",a=0;;){var i=r.indexOf(t,a);if(-1===i)break;var o=r.indexOf(n,i+20);if(-1===o)break;var c=r.slice(i+20,o).trim();e.push(JSON.parse(c)),a=o+18}}catch(r){console.error("Error in extracting blocks from stream",r)}finally{return e}},exports.extractDescription=function(r){try{var e=r.match(/<h2>\s*(?:<b>)?Description(?:<\/b>)?\s*<\/h2>\s*([\s\S]*?)(?=\s*<h2>|$)/i);if(e)return e[1].trim()}catch(r){}return null},exports.parseGptCitation=e,exports.processAIReasoningFromBlocks=function(t,n,a,i){var o=[],c="",s=[],l="";console.log("RAW INPUT",JSON.stringify(t),JSON.stringify(i));try{var u=function(t){return t.replace(/<a\s+(?:(table="true")\s+)?href=(\\"|")ai_reasoning\$(\d+)(\\"|")>([\s\S]*?)<\/a>/g,function(t,i,c,l,u,f){var v,p,d,h,g,_="".concat(l,"<BLOCK_NUMBER>").concat(n,"<STORY_NUMBER>").concat(a),b=function(r){var e=new Map,t="<gpt_citation ",n="</gpt_citation>",a=0;for(;;){var i=r.indexOf(t,a);if(-1===i)break;var o=r.indexOf(">",i);if(-1===o)break;var c=r.indexOf(n,o);if(-1===c)break;var s=r.slice(i,c+n.length),l=r.slice(i,o+1),u=l.indexOf("id=");if(-1!==u){var f=u+3;"\\"===l[f]&&f++,'"'!==l[f]&&"'"!==l[f]||f++;for(var v="";f<l.length&&/\d/.test(l[f]);)v+=l[f++];v&&e.set(v,s)}a=c+n.length}return e}(f);console.log("RAW INPUT",b);var m=f.match(/<reason(?:\s+source="([^"]*)")?>([\s\S]*?)<\/reason>/),x=f.match(/<gap(?:\s+source="([^"]*)")?>([\s\S]*?)<\/gap>/),O=f.match(/<relevance_score>([\s\S]*?)<\/relevance_score>/),S=(null===(v=null==m?void 0:m[2])||void 0===v?void 0:v.trim())||"",T=(null===(p=null==x?void 0:x[2])||void 0===p?void 0:p.trim())||"";return S=r(S,_),T=r(T,_),b.forEach(function(r,t){var n="".concat(_,"<GPT_CITATION_ID>").concat(t);s.push(e(r,n))}),o.push({id:_,reason:S,reasonSource:(null===(d=null==m?void 0:m[1])||void 0===d?void 0:d.trim())||"",gap:T,gapSource:(null===(h=null==x?void 0:x[1])||void 0===h?void 0:h.trim())||"",relevance_score:Number(null===(g=null==O?void 0:O[1])||void 0===g?void 0:g.trim())||0}),"<a ".concat(i?'table="true"':""," href=").concat(c,"ai_reasoning$").concat(_).concat(u,">Source</a>")})};c=u(t),i&&(l=u(i))}catch(r){console.error("Error in extracting AI Reasoning from this block:",t)}finally{return{outputText:c,reasonings:o,gpt_citation:s,processedDescription:l}}},exports.processUserStoryValue=function(r,e,t){var n=r.includes("<h1><b>Title</b></h1>\n\n")?r:t?"<h1><b>Title</b></h1>\n\n".concat(t," \n").concat(r):r;return n=n.includes("<h1><b>Requirement Type</b></h1>\n\n")?n:e?"<h1><b>Requirement Type</b></h1>\n\n".concat(e," \n").concat(n):n},exports.replaceGptCitation=r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});function e(e,t){if(!e)return e;let n="",r=0;for(;;){const o=e.indexOf("<gpt_citation_here ",r);if(-1===o){n+=e.slice(r);break}n+=e.slice(r,o);const i=e.indexOf(">",o);if(-1===i){n+=e.slice(o);break}const s=e.slice(o,i+1),c=s.indexOf("id=");let a="";if(-1!==c){let e=c+3;for("\\"===s[e]&&e++,'"'!==s[e]&&"'"!==s[e]||e++;e<s.length&&/\d/.test(s[e]);)a+=s[e++]}if(a){n+=`<a href="gpt_citation$${`${t}<GPT_CITATION_ID>${a}`}">Source</a>`}r=i+1}return n}function t(e,t){const n=t=>{const n=new RegExp(`<${t}>([\\s\\S]*?)<\\/${t}>`,"gi"),r=[];let o;for(;null!==(o=n.exec(e));)r.push(o[1].trim());return r},r=n("domain"),o=n("paraphrase");return{citation_number:t,customMetadata:{type:"gpt_citation",data_sources:n("data_sources"),training_data_title:r,paraphrase:o}}}exports.extractBlockStreams=e=>{const t=[];try{const n="<BLOCK_STREAM_START>",r="<BLOCK_STREAM_END>";let o=0;for(;;){const i=e.indexOf(n,o);if(-1===i)break;const s=e.indexOf(r,i+n.length);if(-1===s)break;const c=e.slice(i+n.length,s).trim();t.push(JSON.parse(c)),o=s+r.length}}catch(e){console.error("Error in extracting blocks from stream",e)}finally{return t}},exports.extractDescription=function(e){try{const t=/<h2>\s*(?:<b>)?Description(?:<\/b>)?\s*<\/h2>\s*([\s\S]*?)(?=\s*<h2>|$)/i,n=e.match(t);if(n)return n[1].trim()}catch(e){}return null},exports.parseGptCitation=t,exports.processAIReasoningFromBlocks=function(n,r,o,i){const s=[];let c="";const a=[];let l="";console.log("RAW INPUT",JSON.stringify(n),JSON.stringify(i));try{const u=n=>n.replace(/<a\s+(?:(table="true")\s+)?href=(\\"|")ai_reasoning\$(\d+)(\\"|")>([\s\S]*?)<\/a>/g,(n,i,c,l,u,p)=>{var f,d,h,g,_;const b=`${l}<BLOCK_NUMBER>${r}<STORY_NUMBER>${o}`,m=function(e){const t=new Map,n="<gpt_citation ",r="</gpt_citation>";let o=0;for(;;){const i=e.indexOf(n,o);if(-1===i)break;const s=e.indexOf(">",i);if(-1===s)break;const c=e.indexOf(r,s);if(-1===c)break;const a=e.slice(i,c+r.length),l=e.slice(i,s+1),u=l.indexOf("id=");if(-1!==u){let e=u+3;"\\"===l[e]&&e++,'"'!==l[e]&&"'"!==l[e]||e++;let n="";for(;e<l.length&&/\d/.test(l[e]);)n+=l[e++];n&&t.set(n,a)}o=c+r.length}return t}(p);console.log("RAW INPUT",m);const x=p.match(/<reason(?:\s+source="([^"]*)")?>([\s\S]*?)<\/reason>/),$=p.match(/<gap(?:\s+source="([^"]*)")?>([\s\S]*?)<\/gap>/),v=p.match(/<relevance_score>([\s\S]*?)<\/relevance_score>/);let O=(null===(f=null==x?void 0:x[2])||void 0===f?void 0:f.trim())||"",S=(null===(d=null==$?void 0:$[2])||void 0===d?void 0:d.trim())||"";O=e(O,b),S=e(S,b),m.forEach((e,n)=>{const r=`${b}<GPT_CITATION_ID>${n}`;a.push(t(e,r))}),s.push({id:b,reason:O,reasonSource:(null===(h=null==x?void 0:x[1])||void 0===h?void 0:h.trim())||"",gap:S,gapSource:(null===(g=null==$?void 0:$[1])||void 0===g?void 0:g.trim())||"",relevance_score:Number(null===(_=null==v?void 0:v[1])||void 0===_?void 0:_.trim())||0});return`<a ${i?'table="true"':""} href=${c}ai_reasoning$${b}${u}>Source</a>`});c=u(n),i&&(l=u(i))}catch(e){console.error("Error in extracting AI Reasoning from this block:",n)}finally{return{outputText:c,reasonings:s,gpt_citation:a,processedDescription:l}}},exports.processUserStoryValue=(e,t,n)=>{let r=e.includes("<h1><b>Title</b></h1>\n\n")?e:n?`<h1><b>Title</b></h1>\n\n${n} \n${e}`:e;return r=r.includes("<h1><b>Requirement Type</b></h1>\n\n")?r:t?`<h1><b>Requirement Type</b></h1>\n\n${t} \n${r}`:r,r},exports.replaceGptCitation=e;
2
2
  //# sourceMappingURL=proccess-stream.utils.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'")};exports.formatMarkdown=function(e){try{return e=null==e?void 0:e.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,function(e,t){var r=t.split("."),c=" ".repeat(r.length-1);return"".concat(c).concat(t,".")})}catch(e){console.error("Error in formatMarkdown",e)}},exports.postprocessUserStoryAfterEdit=function(t){console.log("postprocessUserStoryAfterEdit::input",t);var r=t.replace(/<del([^>]*?)data-review-id="([^"]*)"([^>]*)>([\s\S]*?)<\/del>([\s\S]*?)<ins([^>]*?)data-review-id="([^"]*)"([^>]*)>([\s\S]*?)<\/ins>/g,function(t,r,c,o,n,a,i,s,p,l){var d=e(c);if(d!==e(s))return t;var u="".concat(r).concat(o).replace(/\s+/g," ").trim(),f="".concat(i).concat(p).replace(/\s+/g," ").trim(),g=u?"<del ".concat(u,">").concat(n,"</del>"):"<del>".concat(n,"</del>"),v=f?"<ins ".concat(f,">").concat(l,"</ins>"):"<ins>".concat(l,"</ins>");return'<upt id="'.concat(decodeURIComponent(d),'">').concat(g).concat(a).concat(v,"</upt>")});return console.log("postprocessUserStoryAfterEdit::output",r),r},exports.preprocessUserStoryForEdit=function(e){var t=e.replace(/<upt\s+id="([^"]*)">([\s\S]*?)<\/upt>/g,function(e,t,r){var c=encodeURIComponent(t);return r.replace(/<del>/,'<del id="'.concat(c,'" data-review-id="').concat(c,'">')).replace(/<ins>/,'<ins id="'.concat(c,'" data-review-id="').concat(c,'">'))});return console.log("postprocessUserStoryAfterEdit::output",t),t},exports.replaceTitleSection=function(e,t){try{if(e){return e.replace(/\*\*Title\*\* ?: ([\s\S]*?)\n\n\*\*Description\*\*/,"**Title** : ".concat(t,"\n\n**Description**"))}}catch(t){return console.error("Error in replaceTitleSection:",t),e}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'");exports.formatMarkdown=function(e){try{return e=null==e?void 0:e.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,(e,r)=>{const t=r.split(".");return`${" ".repeat(t.length-1)}${r}.`})}catch(e){console.error("Error in formatMarkdown",e)}},exports.postprocessUserStoryAfterEdit=r=>{console.log("postprocessUserStoryAfterEdit::input",r);const t=r.replace(/<del([^>]*?)data-review-id="([^"]*)"([^>]*)>([\s\S]*?)<\/del>([\s\S]*?)<ins([^>]*?)data-review-id="([^"]*)"([^>]*)>([\s\S]*?)<\/ins>/g,(r,t,o,s,n,i,c,p,l,d)=>{const a=e(o);if(a!==e(p))return r;const u=`${t}${s}`.replace(/\s+/g," ").trim(),$=`${c}${l}`.replace(/\s+/g," ").trim(),g=u?`<del ${u}>${n}</del>`:`<del>${n}</del>`,S=$?`<ins ${$}>${d}</ins>`:`<ins>${d}</ins>`;return`<upt id="${decodeURIComponent(a)}">${g}${i}${S}</upt>`});return console.log("postprocessUserStoryAfterEdit::output",t),t},exports.preprocessUserStoryForEdit=e=>{const r=e.replace(/<upt\s+id="([^"]*)">([\s\S]*?)<\/upt>/g,(e,r,t)=>{const o=encodeURIComponent(r);return t.replace(/<del>/,`<del id="${o}" data-review-id="${o}">`).replace(/<ins>/,`<ins id="${o}" data-review-id="${o}">`)});return console.log("postprocessUserStoryAfterEdit::output",r),r},exports.replaceTitleSection=(e,r)=>{try{if(e){const t=/\*\*Title\*\* ?: ([\s\S]*?)\n\n\*\*Description\*\*/;return e.replace(t,`**Title** : ${r}\n\n**Description**`)}}catch(r){return console.error("Error in replaceTitleSection:",r),e}};
2
2
  //# sourceMappingURL=user-story.utils.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("react/jsx-runtime"),e=require("lucide-react"),t=require("../icons/MeetingHighlightsIcon.js"),a={thinkingBulbIcon:"https://storymod-assests.pages.dev/ThinkingBulbIcon.gif",brainStormIcon:"https://storymod-assests.pages.dev/brainstorm.gif",brainStormCropped:"https://storymod-assests.pages.dev/brainstorm-cropped.gif",stormeeCitationIcon:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",rcaCitationIcon:"https://storymod-assests.pages.dev/appmod-icon.svg"},i=["js","jsx","ts","tsx","py","java","kt","kts","scala","go","rs","c","h","cpp","cc","cxx","hpp","hh","cs","fs","vb","swift","m","mm","rb","php","pl","pm","r","jl","lua","dart","ex","exs","erl","hrl","clj","cljs","groovy","gvy","sh","bash","zsh","fish","ps1","sql","asm","s","f","f90","f95","nim","zig","ml","mli","hs","lhs","ada","adb","ads","v","sv","vhd","vhdl","sol","tf","tfvars"];exports.GetFileIcon=function(r,o){if(i.includes(r))return s.jsx(e.FileCode,{size:24,className:"h-5 w-5 text-emerald-600"});switch(null==r?void 0:r.toLowerCase()){case"mp3":case"wav":case"audio":return s.jsx(e.AudioLines,{className:"h-5 w-5 text-indigo-600",size:24});case"png":case"jpg":case"jpeg":case"image":case"heic":case"heif":return s.jsx(e.Image,{className:"h-5 w-5 text-purple-500",size:24});case"mp4":case"avi":case"mov":case"video":return s.jsx(e.Clapperboard,{className:"h-5 w-5 text-rose-500",size:24});case"pdf":return s.jsx(e.FileText,{className:"h-5 w-5 text-red-500",size:24});case"doc":case"docx":return s.jsx(e.FileText,{className:"h-5 w-5 text-blue-600",size:24});case"txt":return s.jsx(e.FileText,{className:"h-5 w-5 text-gray-600",size:24});case"json":if(null==o?void 0:o.startsWith("ST_"))return s.jsx("img",{src:a.stormeeCitationIcon,style:{mixBlendMode:"multiply"},className:"w-7 h-7"});if(null==o?void 0:o.startsWith("MH_"))return s.jsx(t.default,{});break;default:return s.jsx(e.FileText,{className:"h-5 w-5 text-yellow-600",size:24})}},exports.assetList=a,exports.getDisplayFileType=function(s,e){if("json"===(null==s?void 0:s.toLowerCase())){if(null==e?void 0:e.startsWith("ST_"))return"Stormee";if(null==e?void 0:e.startsWith("MH_"))return"Meeting Highlights"}return s};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("react/jsx-runtime"),e=require("lucide-react"),t=require("../icons/MeetingHighlightsIcon.js");const a={thinkingBulbIcon:"https://storymod-assests.pages.dev/ThinkingBulbIcon.gif",brainStormIcon:"https://storymod-assests.pages.dev/brainstorm.gif",brainStormCropped:"https://storymod-assests.pages.dev/brainstorm-cropped.gif",stormeeCitationIcon:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",rcaCitationIcon:"https://storymod-assests.pages.dev/appmod-icon.svg"},i=["js","jsx","ts","tsx","py","java","kt","kts","scala","go","rs","c","h","cpp","cc","cxx","hpp","hh","cs","fs","vb","swift","m","mm","rb","php","pl","pm","r","jl","lua","dart","ex","exs","erl","hrl","clj","cljs","groovy","gvy","sh","bash","zsh","fish","ps1","sql","asm","s","f","f90","f95","nim","zig","ml","mli","hs","lhs","ada","adb","ads","v","sv","vhd","vhdl","sol","tf","tfvars"];exports.GetFileIcon=(r,o)=>{if(i.includes(r))return s.jsx(e.FileCode,{size:24,className:"h-5 w-5 text-emerald-600"});switch(null==r?void 0:r.toLowerCase()){case"mp3":case"wav":case"audio":return s.jsx(e.AudioLines,{className:"h-5 w-5 text-indigo-600",size:24});case"png":case"jpg":case"jpeg":case"image":case"heic":case"heif":return s.jsx(e.Image,{className:"h-5 w-5 text-purple-500",size:24});case"mp4":case"avi":case"mov":case"video":return s.jsx(e.Clapperboard,{className:"h-5 w-5 text-rose-500",size:24});case"pdf":return s.jsx(e.FileText,{className:"h-5 w-5 text-red-500",size:24});case"doc":case"docx":return s.jsx(e.FileText,{className:"h-5 w-5 text-blue-600",size:24});case"txt":return s.jsx(e.FileText,{className:"h-5 w-5 text-gray-600",size:24});case"json":if(null==o?void 0:o.startsWith("ST_"))return s.jsx("img",{src:a.stormeeCitationIcon,style:{mixBlendMode:"multiply"},className:"w-7 h-7"});if(null==o?void 0:o.startsWith("MH_"))return s.jsx(t.default,{});break;default:return s.jsx(e.FileText,{className:"h-5 w-5 text-yellow-600",size:24})}},exports.assetList=a,exports.getDisplayFileType=(s,e)=>{if("json"===(null==s?void 0:s.toLowerCase())){if(null==e?void 0:e.startsWith("ST_"))return"Stormee";if(null==e?void 0:e.startsWith("MH_"))return"Meeting Highlights"}return s};
2
2
  //# sourceMappingURL=userStoryAttachedContext.utils.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("uuid"),t=function(e){if(!e)return[];return e.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(e){return e.trim()})};exports.cloneUserStories=function(e){return structuredClone(e)},exports.createUserStoriesForApproval=function(n){var r=function(n,o){var i=t(n.value).map(function(t){return{contentId:e.v4(),content:t,isApproved:!1}}),u={artifactId:n.artifactId,title:n.title,value:i,description:n.description,approval_status:o?void 0:"NOT_APPROVED",big_enough:null==n?void 0:n.big_enough,big_enough_decision_factors:null==n?void 0:n.big_enough_decision_factors,metadata:null==n?void 0:n.metadata,gapValue:null==n?void 0:n.gapValue,confidenceScore:null==n?void 0:n.confidenceScore,storyNumber:n.storyNumber,blockNumber:n.blockNumber,aiReasoning:null==n?void 0:n.aiReasoning,section:null==n?void 0:n.section};return n.sub_features&&n.sub_features.length>0&&(u.sub_features=n.sub_features.map(function(e){return r(e,!0)})),u};return n.map(function(e){return r(e,!1)})},exports.splitByHeaders=t,exports.transformApprovalToUserStory=function(e){var t=function(e){var n,r=Array.isArray(e.value)?e.value.map(function(e){return e.content}).join("\n\n"):e.value,o={artifactId:e.artifactId,title:e.title,description:e.description,value:r,big_enough:e.big_enough,big_enough_decision_factors:e.big_enough_decision_factors,metadata:null==e?void 0:e.metadata,gapValue:null==e?void 0:e.gapValue,confidenceScore:null==e?void 0:e.confidenceScore,storyNumber:e.storyNumber,blockNumber:e.blockNumber,aiReasoning:null==e?void 0:e.aiReasoning,section:null==e?void 0:e.section};return(null===(n=e.sub_features)||void 0===n?void 0:n.length)&&(o.sub_features=e.sub_features.map(t)),o};return e.map(t)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("uuid");const o=e=>{if(!e)return[];return e.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(e=>e.trim())};exports.cloneUserStories=e=>structuredClone(e),exports.createUserStoriesForApproval=t=>{const r=(t,i)=>{const n=o(t.value).map(o=>({contentId:e.v4(),content:o,isApproved:!1})),a={artifactId:t.artifactId,title:t.title,value:n,description:t.description,approval_status:i?void 0:"NOT_APPROVED",big_enough:null==t?void 0:t.big_enough,big_enough_decision_factors:null==t?void 0:t.big_enough_decision_factors,metadata:null==t?void 0:t.metadata,gapValue:null==t?void 0:t.gapValue,confidenceScore:null==t?void 0:t.confidenceScore,storyNumber:t.storyNumber,blockNumber:t.blockNumber,aiReasoning:null==t?void 0:t.aiReasoning,section:null==t?void 0:t.section};return t.sub_features&&t.sub_features.length>0&&(a.sub_features=t.sub_features.map(e=>r(e,!0))),a};return t.map(e=>r(e,!1))},exports.splitByHeaders=o,exports.transformApprovalToUserStory=e=>{const o=e=>{var t;const r=Array.isArray(e.value)?e.value.map(e=>e.content).join("\n\n"):e.value,i={artifactId:e.artifactId,title:e.title,description:e.description,value:r,big_enough:e.big_enough,big_enough_decision_factors:e.big_enough_decision_factors,metadata:null==e?void 0:e.metadata,gapValue:null==e?void 0:e.gapValue,confidenceScore:null==e?void 0:e.confidenceScore,storyNumber:e.storyNumber,blockNumber:e.blockNumber,aiReasoning:null==e?void 0:e.aiReasoning,section:null==e?void 0:e.section};return(null===(t=e.sub_features)||void 0===t?void 0:t.length)&&(i.sub_features=e.sub_features.map(o)),i};return e.map(o)};
2
2
  //# sourceMappingURL=userstory-approval-transform.utils.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib"),e=function(r,t){for(var u=0,n=r.value;u<n.length;u++){var s=n[u];if(!1===s.isApproved&&s.contentId!==t)return s.contentId}if(r.sub_features&&r.sub_features.length>0)for(var a=0,o=r.sub_features;a<o.length;a++){var i=o[a],f=e(i,t);if("NA"!==f)return f}return"NA"},t=function(e){var u=r.__assign(r.__assign({},e),{value:e.value.map(function(e){return r.__assign(r.__assign({},e),{isApproved:!0})}),approval_status:"APPROVED"});return e.sub_features&&e.sub_features.length>0&&(u.sub_features=e.sub_features.map(function(r){return t(r)})),u};exports.approveAllSegments=t,exports.areAllUserStoriesApproved=function(r){return r.every(function(r){return"APPROVED"===r.approval_status})},exports.getApprovalStatus=function(r){var e=0,t=0,u=function(r){for(var n=0,s=(null==r?void 0:r.value)||[];n<s.length;n++){if(s[n].isApproved?e++:t++,e>0&&t>0)return}if(null==r?void 0:r.sub_features)for(var a=0,o=r.sub_features;a<o.length;a++){var i=o[a];if(u(i),e>0&&t>0)return}};return u(r),e>0&&t>0?"IN_PROGRESS":e>0&&0===t?"APPROVED":"NOT_APPROVED"},exports.getFirstNonApprovedSegmentId=e,exports.getFirstUnapprovedStoryId=function(r,e){for(var t=0,u=r;t<u.length;t++){var n=u[t];if("APPROVED"!==n.approval_status&&n.artifactId!==e)return n.artifactId}return null};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=(t,r)=>{for(const e of t.value)if(!1===e.isApproved&&e.contentId!==r)return e.contentId;if(t.sub_features&&t.sub_features.length>0)for(const s of t.sub_features){const t=e(s,r);if("NA"!==t)return t}return"NA"},t=e=>{const r=Object.assign(Object.assign({},e),{value:e.value.map(e=>Object.assign(Object.assign({},e),{isApproved:!0})),approval_status:"APPROVED"});return e.sub_features&&e.sub_features.length>0&&(r.sub_features=e.sub_features.map(e=>t(e))),r};exports.approveAllSegments=t,exports.areAllUserStoriesApproved=e=>e.every(e=>"APPROVED"===e.approval_status),exports.getApprovalStatus=e=>{let t=0,r=0;const s=e=>{for(const s of(null==e?void 0:e.value)||[])if(s.isApproved?t++:r++,t>0&&r>0)return;if(null==e?void 0:e.sub_features)for(const o of e.sub_features)if(s(o),t>0&&r>0)return};return s(e),t>0&&r>0?"IN_PROGRESS":t>0&&0===r?"APPROVED":"NOT_APPROVED"},exports.getFirstNonApprovedSegmentId=e,exports.getFirstUnapprovedStoryId=(e,t)=>{for(const r of e)if("APPROVED"!==r.approval_status&&r.artifactId!==t)return r.artifactId;return null};
2
2
  //# sourceMappingURL=userstory-approval.utils.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),l=require("react/jsx-runtime"),s=require("./AIConfidenceDisplay.module.css.js"),n=require("./icons/RelevanceScoreIcon.js");exports.renderAIConfidenceDisplay=function(i,r){var o;return"number"!=typeof i||isNaN(i)?null:l.jsxs("div",e.__assign({className:s.default.container,style:null==r?void 0:r.container},{children:[l.jsx(n.default,{size:20,color:null===(o=null==r?void 0:r.icon)||void 0===o?void 0:o.color}),l.jsxs("span",e.__assign({className:s.default.label,style:null==r?void 0:r.label},{children:["AI Relevance: ",i,"%"]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("./AIConfidenceDisplay.module.css.js"),s=require("./icons/RelevanceScoreIcon.js");exports.renderAIConfidenceDisplay=(n,r)=>{var i;return"number"!=typeof n||isNaN(n)?null:e.jsxs("div",Object.assign({className:l.default.container,style:null==r?void 0:r.container},{children:[e.jsx(s.default,{size:20,color:null===(i=null==r?void 0:r.icon)||void 0===i?void 0:i.color}),e.jsxs("span",Object.assign({className:l.default.label,style:null==r?void 0:r.label},{children:["AI Relevance: ",n,"%"]}))]}))};
2
2
  //# sourceMappingURL=AIConfidenceDisplay.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),e=require("react/jsx-runtime");exports.default=function(s){return e.jsx("div",C.__assign({className:"mb-2"},{children:e.jsxs("svg",C.__assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("path",{d:"M20 19C20 19.7957 19.6839 20.5587 19.1213 21.1213C18.5587 21.6839 17.7956 22 17 22H7C6.20435 22 5.44129 21.6839 4.87868 21.1213C4.31607 20.5587 4 19.7957 4 19V5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2V4C6.73478 4 6.48043 4.10536 6.29289 4.29289C6.10536 4.48043 6 4.73478 6 5V19C6 19.2652 6.10536 19.5196 6.29289 19.7071C6.48043 19.8946 6.73478 20 7 20H17C17.2652 20 17.5196 19.8946 17.7071 19.7071C17.8946 19.5196 18 19.2652 18 19H20Z",fill:"#5C75F4"}),e.jsx("path",{d:"M7 2V4L14.4726 4V2L7 2Z",fill:"#5C75F4"}),e.jsx("path",{d:"M18 19H20V13H18V19Z",fill:"#5C75F4"}),e.jsx("path",{d:"M15.2209 5.47302C14.2942 5.47302 13.543 6.22424 13.543 7.15091C13.5446 8.05479 14.262 8.79491 15.1653 8.82483L14.1023 11.066H15.2209L16.7369 7.87C16.8441 7.6439 16.8928 7.39945 16.8988 7.15091C16.8988 6.22424 16.1476 5.47302 15.2209 5.47302ZM19.6953 5.47302C18.7686 5.47302 18.0174 6.22424 18.0174 7.15091C18.019 8.05479 18.7363 8.79491 19.6397 8.82483L18.5767 11.066H19.6953L21.2112 7.87C21.3185 7.6439 21.3672 7.39945 21.3731 7.15091C21.3731 6.22424 20.6219 5.47302 19.6953 5.47302Z",fill:"#5C75F4"}),e.jsx("path",{d:"M8.7984 15.5988H14.8447C15.0103 15.5988 15.1692 15.6646 15.2863 15.7817C15.4034 15.8988 15.4692 16.0577 15.4692 16.2233C15.4692 16.389 15.4034 16.5478 15.2863 16.665C15.1692 16.7821 15.0103 16.8479 14.8447 16.8479H8.7984C8.63275 16.8479 8.47389 16.7821 8.35676 16.665C8.23963 16.5478 8.17383 16.389 8.17383 16.2233C8.17383 16.0577 8.23963 15.8988 8.35676 15.7817C8.47389 15.6646 8.63275 15.5988 8.7984 15.5988ZM8.7984 13.1005H14.8447C15.0103 13.1005 15.1692 13.1663 15.2863 13.2834C15.4034 13.4005 15.4692 13.5594 15.4692 13.725C15.4692 13.8907 15.4034 14.0496 15.2863 14.1667C15.1692 14.2838 15.0103 14.3496 14.8447 14.3496H8.7984C8.63275 14.3496 8.47389 14.2838 8.35676 14.1667C8.23963 14.0496 8.17383 13.8907 8.17383 13.725C8.17383 13.5594 8.23963 13.4005 8.35676 13.2834C8.47389 13.1663 8.63275 13.1005 8.7984 13.1005ZM8.7984 10.3672L11.962 10.3672C12.1276 10.3672 12.2865 10.433 12.4036 10.5501C12.5208 10.6673 12.5866 10.8261 12.5866 10.9918C12.5866 11.1574 12.5208 11.3163 12.4036 11.4334C12.2865 11.5505 12.1276 11.6163 11.962 11.6163H8.7984C8.63275 11.6163 8.47389 11.5505 8.35676 11.4334C8.23963 11.3163 8.17383 11.1574 8.17383 10.9918C8.17383 10.8261 8.23963 10.6673 8.35676 10.5501C8.47389 10.433 8.63275 10.3672 8.7984 10.3672Z",fill:"#5C75F4"})]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("react/jsx-runtime");exports.default=e=>C.jsx("div",Object.assign({className:"mb-2"},{children:C.jsxs("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[C.jsx("path",{d:"M20 19C20 19.7957 19.6839 20.5587 19.1213 21.1213C18.5587 21.6839 17.7956 22 17 22H7C6.20435 22 5.44129 21.6839 4.87868 21.1213C4.31607 20.5587 4 19.7957 4 19V5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2V4C6.73478 4 6.48043 4.10536 6.29289 4.29289C6.10536 4.48043 6 4.73478 6 5V19C6 19.2652 6.10536 19.5196 6.29289 19.7071C6.48043 19.8946 6.73478 20 7 20H17C17.2652 20 17.5196 19.8946 17.7071 19.7071C17.8946 19.5196 18 19.2652 18 19H20Z",fill:"#5C75F4"}),C.jsx("path",{d:"M7 2V4L14.4726 4V2L7 2Z",fill:"#5C75F4"}),C.jsx("path",{d:"M18 19H20V13H18V19Z",fill:"#5C75F4"}),C.jsx("path",{d:"M15.2209 5.47302C14.2942 5.47302 13.543 6.22424 13.543 7.15091C13.5446 8.05479 14.262 8.79491 15.1653 8.82483L14.1023 11.066H15.2209L16.7369 7.87C16.8441 7.6439 16.8928 7.39945 16.8988 7.15091C16.8988 6.22424 16.1476 5.47302 15.2209 5.47302ZM19.6953 5.47302C18.7686 5.47302 18.0174 6.22424 18.0174 7.15091C18.019 8.05479 18.7363 8.79491 19.6397 8.82483L18.5767 11.066H19.6953L21.2112 7.87C21.3185 7.6439 21.3672 7.39945 21.3731 7.15091C21.3731 6.22424 20.6219 5.47302 19.6953 5.47302Z",fill:"#5C75F4"}),C.jsx("path",{d:"M8.7984 15.5988H14.8447C15.0103 15.5988 15.1692 15.6646 15.2863 15.7817C15.4034 15.8988 15.4692 16.0577 15.4692 16.2233C15.4692 16.389 15.4034 16.5478 15.2863 16.665C15.1692 16.7821 15.0103 16.8479 14.8447 16.8479H8.7984C8.63275 16.8479 8.47389 16.7821 8.35676 16.665C8.23963 16.5478 8.17383 16.389 8.17383 16.2233C8.17383 16.0577 8.23963 15.8988 8.35676 15.7817C8.47389 15.6646 8.63275 15.5988 8.7984 15.5988ZM8.7984 13.1005H14.8447C15.0103 13.1005 15.1692 13.1663 15.2863 13.2834C15.4034 13.4005 15.4692 13.5594 15.4692 13.725C15.4692 13.8907 15.4034 14.0496 15.2863 14.1667C15.1692 14.2838 15.0103 14.3496 14.8447 14.3496H8.7984C8.63275 14.3496 8.47389 14.2838 8.35676 14.1667C8.23963 14.0496 8.17383 13.8907 8.17383 13.725C8.17383 13.5594 8.23963 13.4005 8.35676 13.2834C8.47389 13.1663 8.63275 13.1005 8.7984 13.1005ZM8.7984 10.3672L11.962 10.3672C12.1276 10.3672 12.2865 10.433 12.4036 10.5501C12.5208 10.6673 12.5866 10.8261 12.5866 10.9918C12.5866 11.1574 12.5208 11.3163 12.4036 11.4334C12.2865 11.5505 12.1276 11.6163 11.962 11.6163H8.7984C8.63275 11.6163 8.47389 11.5505 8.35676 11.4334C8.23963 11.3163 8.17383 11.1574 8.17383 10.9918C8.17383 10.8261 8.23963 10.6673 8.35676 10.5501C8.47389 10.433 8.63275 10.3672 8.7984 10.3672Z",fill:"#5C75F4"})]}))}));
2
2
  //# sourceMappingURL=DocumentCitationIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.size,s=t.color,C=void 0===s?"currentColor":s;return r.jsxs("svg",e.__assign({width:i||15,height:i||15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[r.jsx("path",{d:"M9.2482 4.85862C9.18364 4.54279 8.73237 4.54279 8.66782 4.85862C8.27178 6.79626 6.75753 8.31052 4.81988 8.70656C4.50405 8.77111 4.50405 9.22238 4.81988 9.28693C6.75753 9.68297 8.27178 11.1972 8.66782 13.1349C8.73237 13.4507 9.18364 13.4507 9.2482 13.1349C9.64424 11.1972 11.1585 9.68297 13.0961 9.28693C13.412 9.22238 13.412 8.77111 13.0961 8.70656C11.1585 8.31052 9.64424 6.79626 9.2482 4.85862Z",fill:C}),r.jsx("path",{d:"M3.87303 1.72074C3.86876 1.69986 3.83892 1.69986 3.83465 1.72074C3.6131 2.80472 2.76598 3.65183 1.682 3.87339C1.66112 3.87766 1.66112 3.9075 1.682 3.91177C2.76598 4.13332 3.6131 4.98044 3.83465 6.06441C3.83892 6.0853 3.86876 6.0853 3.87303 6.06441C4.09459 4.98044 4.9417 4.13332 6.02568 3.91177C6.04656 3.9075 6.04656 3.87766 6.02568 3.87339C4.9417 3.65183 4.09459 2.80472 3.87303 1.72074Z",fill:C})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");exports.default=({size:t,color:C="currentColor"})=>e.jsxs("svg",Object.assign({width:t||15,height:t||15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("path",{d:"M9.2482 4.85862C9.18364 4.54279 8.73237 4.54279 8.66782 4.85862C8.27178 6.79626 6.75753 8.31052 4.81988 8.70656C4.50405 8.77111 4.50405 9.22238 4.81988 9.28693C6.75753 9.68297 8.27178 11.1972 8.66782 13.1349C8.73237 13.4507 9.18364 13.4507 9.2482 13.1349C9.64424 11.1972 11.1585 9.68297 13.0961 9.28693C13.412 9.22238 13.412 8.77111 13.0961 8.70656C11.1585 8.31052 9.64424 6.79626 9.2482 4.85862Z",fill:C}),e.jsx("path",{d:"M3.87303 1.72074C3.86876 1.69986 3.83892 1.69986 3.83465 1.72074C3.6131 2.80472 2.76598 3.65183 1.682 3.87339C1.66112 3.87766 1.66112 3.9075 1.682 3.91177C2.76598 4.13332 3.6131 4.98044 3.83465 6.06441C3.83892 6.0853 3.86876 6.0853 3.87303 6.06441C4.09459 4.98044 4.9417 4.13332 6.02568 3.91177C6.04656 3.9075 6.04656 3.87766 6.02568 3.87339C4.9417 3.65183 4.09459 2.80472 3.87303 1.72074Z",fill:C})]}));
2
2
  //# sourceMappingURL=RelevanceScoreIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=e.createContext(null);exports.USPContext=t,exports.useUSPContext=function(){var r=e.useContext(t);if(!r)throw new Error("UserStoryPicker compound components must be used within <UserStoryPicker>");return r};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");const t=e.createContext(null);exports.USPContext=t,exports.useUSPContext=function(){const r=e.useContext(t);if(!r)throw new Error("UserStoryPicker compound components must be used within <UserStoryPicker>");return r};
2
2
  //# sourceMappingURL=UserStoryPicker.context.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),r=require("react"),t=require("./UserStoryPicker.context.js"),i=require("./hooks/useUserStoryPickerState.js"),s=require("./hooks/useFilteredItems.js"),a=require("./hooks/useUSPData.js"),n=require("./UserStoryPicker.theme.js"),d=require("./lib/Tooltip.js");require("./user-story-picker.css.js");var c=require("./lib/cn.js"),l={},u={};exports.UserStoryPickerRoot=function(S){var v,j,P=S.userEmail,p=S.adapter,h=S.defaultView,f=void 0===h?"recent":h,g=S.defaultSort,M=void 0===g?"newest":g,m=S.defaultType,b=void 0===m?"All Types":m,y=S.defaultRepo,w=void 0===y?"allRepository":y,U=S.gitUrl,k=void 0===U?"":U,F=S.pageSize,C=void 0===F?4:F,I=S.theme,T=S.classNames,_=void 0===T?l:T,q=S.renderProps,x=void 0===q?u:q,L=S.onProceed,N=S.onStorySelect,E=S.onProjectSelect,R=S.onSearch,V=S.onViewChange,D=S.onSortChange,H=S.onShowMore,B=S.onViewMoreDescription,Q=S.onFavoriteToggle,W=S.hidePopUp,z=void 0!==W&&W,A=S.disableTooltip,O=void 0!==A&&A,G=S.tooltipClassName,J=S.children,K=S.mediaCacheHooks,X=S.showCitations,Y=void 0!==X&&X,Z=S.featureFlagWidgetMaker,$=void 0===Z||Z,ee=i.useUserStoryPickerState(f,M,b,w,C),oe=ee[0],re=ee[1];r.useEffect(function(){null==V||V(oe.viewMode)},[oe.viewMode,V]);var te=a.useUSPData(P,k,p.fetchProjects,p.fetchUserStories,oe.sortBy,oe.typeBy,oe.scopeRepo,oe.searchQuery,oe.sidebarSearchQuery,oe.selectedProjectId,Y),ie=te.projects,se=te.userStories,ae=te.hasMoreProjects,ne=te.hasMoreStories,de=te.loadMoreProjects,ce=te.loadMoreStories,le=te.isLoadingProjects,ue=te.isLoadingStories,Se=te.projectStories,ve=te.hasMoreProjectStories,je=te.loadMoreProjectStories,Pe=te.isLoadingProjectStories,pe=te.sidebarProjects,he=te.hasMoreSidebarProjects,fe=te.loadMoreSidebarProjects,ge=te.scopedUserStories,Me=te.toggleScopedUserStories,me=te.isLoadingSidebarProjects,be=te.favoriteStories,ye=te.hasMoreFavoriteStories,we=te.loadMoreFavoriteStories,Ue=te.isLoadingFavoriteStories,ke=te.updateFavorite,Fe=oe.selectedProjectId?ve:ne,Ce=oe.selectedProjectId?je:ce,Ie=oe.selectedProjectId?Pe:ue,Te=r.useMemo(function(){var e;return null!==(e=ie.find(function(e){return e.id===oe.selectedProjectId}))&&void 0!==e?e:null},[ie,oe.selectedProjectId]),_e=r.useMemo(function(){return Te?Se.map(function(o){return e.__assign(e.__assign({},o),{projectName:Te.name})}):Se},[Se,Te]),qe=r.useMemo(function(){var e;return null!==(e=(oe.selectedProjectId?_e:se).find(function(e){return e.user_story_id===oe.selectedStoryId}))&&void 0!==e?e:null},[oe.selectedProjectId,_e,se,oe.selectedStoryId]),xe=s.useFilteredItems(se,ie,oe,_e,be),Le=xe.filteredStories,Ne=xe.filteredProjects,Ee=xe.visibleStories,Re=xe.visibleProjects,Ve="favorites"===oe.viewMode?(null!==(v=null==Le?void 0:Le.length)&&void 0!==v?v:0)>(null!==(j=null==Ee?void 0:Ee.length)&&void 0!==j?j:0):Fe,De=r.useCallback(function(e,o){ke(e,o),null==Q||Q(e,o)},[ke,Q]),He=r.useMemo(function(){return{adapter:p,state:oe,dispatch:re,userStories:se,projects:ie,filteredStories:Le,filteredProjects:Ne,visibleStories:Ee,visibleProjects:Re,hasMoreStories:Ve,hasMoreProjects:ae,selectedStory:qe,selectedProject:Te,classNames:_,renderProps:x,mediaCacheHooks:K,showCitations:Y,featureFlagWidgetMaker:$,loadMoreProjects:de,loadMoreStories:Ce,isLoadingProjects:le,isLoadingStories:Ie,scopedUserStories:ge,toggleScopedUserStories:Me,sidebarProjects:pe,hasMoreSidebarProjects:he,loadMoreSidebarProjects:fe,isLoadingSidebarProjects:me,favoriteStories:be,hasMoreFavoriteStories:ye,loadMoreFavoriteStories:we,isLoadingFavoriteStories:Ue,onProceed:L,onStorySelect:N,onProjectSelect:E,onSearch:R,onViewChange:V,onSortChange:D,onShowMore:H,onViewMoreDescription:B,onFavoriteToggle:De,hidePopUp:z,disableTooltip:O,tooltipClassName:G}},[p,oe,re,se,ie,Le,Ne,Ee,Re,Fe,Ve,ae,qe,Te,_,x,de,Ce,le,Ie,pe,he,fe,me,be,ye,we,ge,Me,Ue,L,K,Y,$,N,E,R,V,D,H,B,De,z,O,G]),Be=r.useState(!1),Qe=Be[0],We=Be[1],ze=r.useRef(null);r.useEffect(function(){if(p.onHostEvent){var e=p.onHostEvent("cw-project-glow",function(){We(!0),ze.current&&clearTimeout(ze.current),ze.current=setTimeout(function(){We(!1)},3e3)});return function(){ze.current&&(clearTimeout(ze.current),ze.current=null),e&&e()}}},[p]);var Ae=["usp-root",_.root].filter(Boolean).join(" "),Oe=I?n.themeToStyle(I):void 0;return o.jsx(d.TooltipProvider,{children:o.jsx(t.USPContext.Provider,e.__assign({value:He},{children:o.jsx("div",e.__assign({className:c.cn(Ae,"rounded-lg flex-1 min-h-0 overflow-auto border-2 pt-2",Qe?"border-primary animate ease-in-out duration-500 mb-4":"transition-colors duration-500 border-transparent shadow-none"),style:Oe},{children:J}))}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react"),r=require("./UserStoryPicker.context.js"),t=require("./hooks/useUserStoryPickerState.js"),s=require("./hooks/useFilteredItems.js"),i=require("./hooks/useUSPData.js"),a=require("./UserStoryPicker.theme.js"),c=require("./lib/Tooltip.js");require("./user-story-picker.css.js");var l=require("./lib/cn.js");const d={},n={};exports.UserStoryPickerRoot=function({userEmail:u,adapter:S,defaultView:j="recent",defaultSort:P="newest",defaultType:p="All Types",defaultRepo:h="allRepository",gitUrl:v="",pageSize:g=4,theme:M,classNames:f=d,renderProps:m=n,onProceed:b,onStorySelect:y,onProjectSelect:w,onSearch:U,onViewChange:k,onSortChange:F,onShowMore:C,onViewMoreDescription:I,onFavoriteToggle:T,hidePopUp:q=!1,disableTooltip:x=!1,tooltipClassName:L,children:N,mediaCacheHooks:E,showCitations:O=!1,featureFlagWidgetMaker:R=!0}){var V,D;const[H,_]=t.useUserStoryPickerState(j,P,p,h,g);o.useEffect(()=>{null==k||k(H.viewMode)},[H.viewMode,k]);const{projects:B,userStories:Q,hasMoreProjects:W,hasMoreStories:z,loadMoreProjects:A,loadMoreStories:G,isLoadingProjects:J,isLoadingStories:K,projectStories:X,hasMoreProjectStories:Y,loadMoreProjectStories:Z,isLoadingProjectStories:$,sidebarProjects:ee,hasMoreSidebarProjects:oe,loadMoreSidebarProjects:re,scopedUserStories:te,toggleScopedUserStories:se,isLoadingSidebarProjects:ie,favoriteStories:ae,hasMoreFavoriteStories:ce,loadMoreFavoriteStories:le,isLoadingFavoriteStories:de,updateFavorite:ne}=i.useUSPData(u,v,S.fetchProjects,S.fetchUserStories,H.sortBy,H.typeBy,H.scopeRepo,H.searchQuery,H.sidebarSearchQuery,H.selectedProjectId,O),ue=H.selectedProjectId?Y:z,Se=H.selectedProjectId?Z:G,je=H.selectedProjectId?$:K,Pe=o.useMemo(()=>{var e;return null!==(e=B.find(e=>e.id===H.selectedProjectId))&&void 0!==e?e:null},[B,H.selectedProjectId]),pe=o.useMemo(()=>Pe?X.map(e=>Object.assign(Object.assign({},e),{projectName:Pe.name})):X,[X,Pe]),he=o.useMemo(()=>{var e;return null!==(e=(H.selectedProjectId?pe:Q).find(e=>e.user_story_id===H.selectedStoryId))&&void 0!==e?e:null},[H.selectedProjectId,pe,Q,H.selectedStoryId]),{filteredStories:ve,filteredProjects:ge,visibleStories:Me,visibleProjects:fe}=s.useFilteredItems(Q,B,H,pe,ae),me="favorites"===H.viewMode?(null!==(V=null==ve?void 0:ve.length)&&void 0!==V?V:0)>(null!==(D=null==Me?void 0:Me.length)&&void 0!==D?D:0):ue,be=o.useCallback((e,o)=>{ne(e,o),null==T||T(e,o)},[ne,T]),ye=o.useMemo(()=>({adapter:S,state:H,dispatch:_,userStories:Q,projects:B,filteredStories:ve,filteredProjects:ge,visibleStories:Me,visibleProjects:fe,hasMoreStories:me,hasMoreProjects:W,selectedStory:he,selectedProject:Pe,classNames:f,renderProps:m,mediaCacheHooks:E,showCitations:O,featureFlagWidgetMaker:R,loadMoreProjects:A,loadMoreStories:Se,isLoadingProjects:J,isLoadingStories:je,scopedUserStories:te,toggleScopedUserStories:se,sidebarProjects:ee,hasMoreSidebarProjects:oe,loadMoreSidebarProjects:re,isLoadingSidebarProjects:ie,favoriteStories:ae,hasMoreFavoriteStories:ce,loadMoreFavoriteStories:le,isLoadingFavoriteStories:de,onProceed:b,onStorySelect:y,onProjectSelect:w,onSearch:U,onViewChange:k,onSortChange:F,onShowMore:C,onViewMoreDescription:I,onFavoriteToggle:be,hidePopUp:q,disableTooltip:x,tooltipClassName:L}),[S,H,_,Q,B,ve,ge,Me,fe,ue,me,W,he,Pe,f,m,A,Se,J,je,ee,oe,re,ie,ae,ce,le,te,se,de,b,E,O,R,y,w,U,k,F,C,I,be,q,x,L]),[we,Ue]=o.useState(!1),ke=o.useRef(null);o.useEffect(()=>{if(!S.onHostEvent)return;const e=S.onHostEvent("cw-project-glow",()=>{Ue(!0),ke.current&&clearTimeout(ke.current),ke.current=setTimeout(()=>{Ue(!1)},3e3)});return()=>{ke.current&&(clearTimeout(ke.current),ke.current=null),e&&e()}},[S]);const Fe=["usp-root",f.root].filter(Boolean).join(" "),Ce=M?a.themeToStyle(M):void 0;return e.jsx(c.TooltipProvider,{children:e.jsx(r.USPContext.Provider,Object.assign({value:ye},{children:e.jsx("div",Object.assign({className:l.cn(Fe,"rounded-lg flex-1 min-h-0 overflow-auto border-2 pt-2",we?"border-primary animate ease-in-out duration-500 mb-4":"transition-colors duration-500 border-transparent shadow-none"),style:Ce},{children:N}))}))})};
2
2
  //# sourceMappingURL=UserStoryPicker.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib"),e={blue400:"#60a5fa",blue500:"#3b82f6",blue600:"#2563eb",blue700:"#1d4ed8",cyan400:"#22d3ee",cyan500:"#06b6d4",green400:"#4ade80",green500:"#22c55e",red400:"#f87171",red500:"#ef4444",amber400:"#fbbf24",amber500:"#f59e0b",purple400:"#c084fc",purple500:"#a855f7",purple600:"#9333ea",gray50:"#f9fafb",gray100:"#f3f4f6",gray200:"#e5e7eb",gray300:"#d1d5db",gray400:"#9ca3af",gray500:"#6b7280",gray600:"#4b5563",gray700:"#374151",gray800:"#1f2937",gray900:"#111827",neutral700:"#404040",neutral750:"#333333",neutral800:"#262626",neutral850:"#1f1f1f",neutral900:"#171717",neutral950:"#0a0a0a",white:"#ffffff",offWhite:"#f8f8f8",vscodeBlue:"#007fd4",vscodeDarkBg:"#1e1e1e",vscodeDarkCard:"#252526",vscodeDarkBorder:"#3c3c3c",vscodeDarkInput:"#3c3c3c",vscodeDarkMuted:"#858585"},o={colors:{background:"var(--vscode-editor-background, #1e1e1e)",foreground:"var(--vscode-editor-foreground, #cccccc)",border:"var(--vscode-panel-border, #3c3c3c)",cardBackground:"var(--vscode-editorWidget-background, #252526)",cardHoverBorder:"var(--vscode-focusBorder, #007fd4)",accent:"var(--vscode-focusBorder, #007fd4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #858585)",link:"var(--vscode-textLink-foreground, #3794ff)",inputBackground:"var(--vscode-input-background, #3c3c3c)",inputBorder:"var(--vscode-input-border, #3c3c3c)",inputForeground:"var(--vscode-input-foreground, #cccccc)",primaryBackground:"var(--vscode-button-background, #0e639c)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #1177bb)",badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #094771)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #2a2d2e)"}},d={colors:{background:"var(--vscode-editor-background, #ffffff)",foreground:"var(--vscode-editor-foreground, #1f1f1f)",border:"var(--vscode-panel-border, #e5e5e5)",cardBackground:"var(--vscode-editorWidget-background, #f8f8f8)",cardHoverBorder:"var(--vscode-focusBorder, #0078d4)",accent:"var(--vscode-focusBorder, #0078d4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #717171)",link:"var(--vscode-textLink-foreground, #006ab1)",inputBackground:"var(--vscode-input-background, #ffffff)",inputBorder:"var(--vscode-input-border, #cecece)",inputForeground:"var(--vscode-input-foreground, #1f1f1f)",primaryBackground:"var(--vscode-button-background, #0078d4)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #106ebe)",badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #0060c0)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #f0f0f0)",skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}},a={colors:{background:e.neutral900,foreground:e.gray200,border:e.neutral700,cardBackground:e.neutral850,cardHoverBorder:e.blue500,accent:e.blue500,accentForeground:e.white,muted:e.gray500,link:e.blue400,inputBackground:e.neutral800,inputBorder:e.neutral700,inputForeground:e.gray200,primaryBackground:e.blue600,primaryForeground:e.white,primaryHoverBackground:e.blue700,badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:e.blue700,sidebarActiveForeground:e.white,sidebarHoverBackground:e.neutral800}},u={colors:{background:e.white,foreground:e.gray900,border:e.gray200,cardBackground:e.gray50,cardHoverBorder:e.blue500,accent:e.blue600,accentForeground:e.white,muted:e.gray500,link:e.blue600,inputBackground:e.white,inputBorder:e.gray300,inputForeground:e.gray900,primaryBackground:e.blue600,primaryForeground:e.white,primaryHoverBackground:e.blue700,badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:e.blue600,sidebarActiveForeground:e.white,sidebarHoverBackground:e.gray100,skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}};exports.darkTheme=a,exports.lightTheme=u,exports.themeToStyle=function(e){var o=e.colors,d=e.radius,a=e.radiusLg,u=e.transition,c=e.fontSize,n=e.fontFamily;return r.__assign(r.__assign(r.__assign(r.__assign(r.__assign(r.__assign(r.__assign({"--usp-bg":o.background,"--usp-fg":o.foreground,"--usp-border":o.border,"--usp-card-bg":o.cardBackground,"--usp-card-hover-border":o.cardHoverBorder,"--usp-accent":o.accent,"--usp-primary-fg":o.accentForeground,"--usp-muted":o.muted,"--usp-link-fg":o.link,"--usp-input-bg":o.inputBackground,"--usp-input-border":o.inputBorder,"--usp-input-fg":o.inputForeground,"--usp-primary-bg":o.primaryBackground,"--usp-primary-hover-bg":o.primaryHoverBackground,"--usp-badge-bg":o.badgeBackground,"--usp-badge-fg":o.badgeForeground,"--usp-sidebar-active-bg":o.sidebarActiveBackground,"--usp-sidebar-active-fg":o.sidebarActiveForeground,"--usp-sidebar-hover-bg":o.sidebarHoverBackground},o.skeletonShimmerRgb&&{"--usp-skeleton-shimmer-rgb":o.skeletonShimmerRgb}),o.skeletonShimmerOpacity&&{"--usp-skeleton-shimmer-opacity":o.skeletonShimmerOpacity}),d&&{"--usp-radius":d}),a&&{"--usp-radius-lg":a}),u&&{"--usp-transition":u}),c&&{fontSize:c}),n&&{fontFamily:n})},exports.uspColorPalette=e,exports.uspVSCodeLightTheme=d,exports.vscodeTheme=o;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const r={blue400:"#60a5fa",blue500:"#3b82f6",blue600:"#2563eb",blue700:"#1d4ed8",cyan400:"#22d3ee",cyan500:"#06b6d4",green400:"#4ade80",green500:"#22c55e",red400:"#f87171",red500:"#ef4444",amber400:"#fbbf24",amber500:"#f59e0b",purple400:"#c084fc",purple500:"#a855f7",purple600:"#9333ea",gray50:"#f9fafb",gray100:"#f3f4f6",gray200:"#e5e7eb",gray300:"#d1d5db",gray400:"#9ca3af",gray500:"#6b7280",gray600:"#4b5563",gray700:"#374151",gray800:"#1f2937",gray900:"#111827",neutral700:"#404040",neutral750:"#333333",neutral800:"#262626",neutral850:"#1f1f1f",neutral900:"#171717",neutral950:"#0a0a0a",white:"#ffffff",offWhite:"#f8f8f8",vscodeBlue:"#007fd4",vscodeDarkBg:"#1e1e1e",vscodeDarkCard:"#252526",vscodeDarkBorder:"#3c3c3c",vscodeDarkInput:"#3c3c3c",vscodeDarkMuted:"#858585"},e={colors:{background:"var(--vscode-editor-background, #1e1e1e)",foreground:"var(--vscode-editor-foreground, #cccccc)",border:"var(--vscode-panel-border, #3c3c3c)",cardBackground:"var(--vscode-editorWidget-background, #252526)",cardHoverBorder:"var(--vscode-focusBorder, #007fd4)",accent:"var(--vscode-focusBorder, #007fd4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #858585)",link:"var(--vscode-textLink-foreground, #3794ff)",inputBackground:"var(--vscode-input-background, #3c3c3c)",inputBorder:"var(--vscode-input-border, #3c3c3c)",inputForeground:"var(--vscode-input-foreground, #cccccc)",primaryBackground:"var(--vscode-button-background, #0e639c)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #1177bb)",badgeBackground:r.blue600,badgeForeground:r.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #094771)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #2a2d2e)"}},o={colors:{background:"var(--vscode-editor-background, #ffffff)",foreground:"var(--vscode-editor-foreground, #1f1f1f)",border:"var(--vscode-panel-border, #e5e5e5)",cardBackground:"var(--vscode-editorWidget-background, #f8f8f8)",cardHoverBorder:"var(--vscode-focusBorder, #0078d4)",accent:"var(--vscode-focusBorder, #0078d4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #717171)",link:"var(--vscode-textLink-foreground, #006ab1)",inputBackground:"var(--vscode-input-background, #ffffff)",inputBorder:"var(--vscode-input-border, #cecece)",inputForeground:"var(--vscode-input-foreground, #1f1f1f)",primaryBackground:"var(--vscode-button-background, #0078d4)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #106ebe)",badgeBackground:r.blue600,badgeForeground:r.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #0060c0)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #f0f0f0)",skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}},d={colors:{background:r.neutral900,foreground:r.gray200,border:r.neutral700,cardBackground:r.neutral850,cardHoverBorder:r.blue500,accent:r.blue500,accentForeground:r.white,muted:r.gray500,link:r.blue400,inputBackground:r.neutral800,inputBorder:r.neutral700,inputForeground:r.gray200,primaryBackground:r.blue600,primaryForeground:r.white,primaryHoverBackground:r.blue700,badgeBackground:r.blue600,badgeForeground:r.white,sidebarActiveBackground:r.blue700,sidebarActiveForeground:r.white,sidebarHoverBackground:r.neutral800}},a={colors:{background:r.white,foreground:r.gray900,border:r.gray200,cardBackground:r.gray50,cardHoverBorder:r.blue500,accent:r.blue600,accentForeground:r.white,muted:r.gray500,link:r.blue600,inputBackground:r.white,inputBorder:r.gray300,inputForeground:r.gray900,primaryBackground:r.blue600,primaryForeground:r.white,primaryHoverBackground:r.blue700,badgeBackground:r.blue600,badgeForeground:r.white,sidebarActiveBackground:r.blue600,sidebarActiveForeground:r.white,sidebarHoverBackground:r.gray100,skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}};exports.darkTheme=d,exports.lightTheme=a,exports.themeToStyle=function(r){const{colors:e,radius:o,radiusLg:d,transition:a,fontSize:c,fontFamily:u}=r;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--usp-bg":e.background,"--usp-fg":e.foreground,"--usp-border":e.border,"--usp-card-bg":e.cardBackground,"--usp-card-hover-border":e.cardHoverBorder,"--usp-accent":e.accent,"--usp-primary-fg":e.accentForeground,"--usp-muted":e.muted,"--usp-link-fg":e.link,"--usp-input-bg":e.inputBackground,"--usp-input-border":e.inputBorder,"--usp-input-fg":e.inputForeground,"--usp-primary-bg":e.primaryBackground,"--usp-primary-hover-bg":e.primaryHoverBackground,"--usp-badge-bg":e.badgeBackground,"--usp-badge-fg":e.badgeForeground,"--usp-sidebar-active-bg":e.sidebarActiveBackground,"--usp-sidebar-active-fg":e.sidebarActiveForeground,"--usp-sidebar-hover-bg":e.sidebarHoverBackground},e.skeletonShimmerRgb&&{"--usp-skeleton-shimmer-rgb":e.skeletonShimmerRgb}),e.skeletonShimmerOpacity&&{"--usp-skeleton-shimmer-opacity":e.skeletonShimmerOpacity}),o&&{"--usp-radius":o}),d&&{"--usp-radius-lg":d}),a&&{"--usp-transition":a}),c&&{fontSize:c}),u&&{fontFamily:u})},exports.uspColorPalette=r,exports.uspVSCodeLightTheme=o,exports.vscodeTheme=e;
2
2
  //# sourceMappingURL=UserStoryPicker.theme.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),o=require("../UserStoryPicker.context.js"),t=require("./UserStoryScopeDropdown.js");function n(){return r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[r.jsx("path",{d:"m12 19-7-7 7-7"}),r.jsx("path",{d:"M19 12H5"})]}))}function a(){return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}exports.BackNav=function(l){var i,c=l.label,d=l.className,p=l.style,u=l.labelStyle;l.children;var v=o.useUSPContext(),j=v.state,_=v.dispatch,w=v.classNames,x=v.renderProps,k=v.selectedProject,h=v.onViewChange,y="project-detail"===j.viewMode,S="project-detail"===j.viewMode&&!j.selectedProjectId,b="favorites"===j.viewMode,g=s.useCallback(function(){return b?(_({type:"SHOW_RECENT_IN_SPLIT"}),_({type:"SET_VIEW",payload:"project-detail"}),void(null==h||h("project-detail"))):S?(_({type:"SELECT_PROJECT",payload:null}),void(null==h||h("projects"))):void("project-detail"===j.viewMode?(_({type:"SELECT_PROJECT",payload:null}),null==h||h("projects")):"projects"===j.viewMode&&(_({type:"SET_VIEW",payload:"recent"}),null==h||h("recent")))},[b,S,j.viewMode,_,h]),m=null!==(i=null!=c?c:b?"View Shortlisted Story":void 0)&&void 0!==i?i:S?"Recent User Stories":"project-detail"===j.viewMode&&k?k.name:"Projects",E=["usp-back-nav",w.backNav,d].filter(Boolean).join(" ");return r.jsxs("div",e.__assign({className:E,style:p},{children:[r.jsxs("div",e.__assign({className:"usp-back-nav__left"},{children:[r.jsx("button",e.__assign({type:"button",className:"usp-back-nav__arrow",onClick:g},{children:x.renderBackIcon?x.renderBackIcon():r.jsx(n,{})})),"project-detail"===j.viewMode&&!S&&r.jsx("span",e.__assign({className:"usp-back-nav__icon"},{children:x.renderFolderIcon?x.renderFolderIcon():r.jsx(a,{})})),r.jsx("span",e.__assign({className:"usp-back-nav__label",style:u},{children:m}))]})),y&&r.jsx(t.UserStoryScopeDropdown,{})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("../UserStoryPicker.context.js"),s=require("./UserStoryScopeDropdown.js");function o(){return e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[e.jsx("path",{d:"m12 19-7-7 7-7"}),e.jsx("path",{d:"M19 12H5"})]}))}function n(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:e.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}exports.BackNav=function({label:a,className:c,style:l,labelStyle:i,children:d}){var p;const{state:j,dispatch:u,classNames:v,renderProps:w,selectedProject:x,onViewChange:b}=r.useUSPContext(),k="project-detail"===j.viewMode,h="project-detail"===j.viewMode&&!j.selectedProjectId,y="favorites"===j.viewMode,_=t.useCallback(()=>y?(u({type:"SHOW_RECENT_IN_SPLIT"}),u({type:"SET_VIEW",payload:"project-detail"}),void(null==b||b("project-detail"))):h?(u({type:"SELECT_PROJECT",payload:null}),void(null==b||b("projects"))):void("project-detail"===j.viewMode?(u({type:"SELECT_PROJECT",payload:null}),null==b||b("projects")):"projects"===j.viewMode&&(u({type:"SET_VIEW",payload:"recent"}),null==b||b("recent"))),[y,h,j.viewMode,u,b]),S=null!==(p=null!=a?a:y?"View Shortlisted Story":void 0)&&void 0!==p?p:h?"Recent User Stories":"project-detail"===j.viewMode&&x?x.name:"Projects",g=["usp-back-nav",v.backNav,c].filter(Boolean).join(" ");return e.jsxs("div",Object.assign({className:g,style:l},{children:[e.jsxs("div",Object.assign({className:"usp-back-nav__left"},{children:[e.jsx("button",Object.assign({type:"button",className:"usp-back-nav__arrow",onClick:_},{children:w.renderBackIcon?w.renderBackIcon():e.jsx(o,{})})),"project-detail"===j.viewMode&&!h&&e.jsx("span",Object.assign({className:"usp-back-nav__icon"},{children:w.renderFolderIcon?w.renderFolderIcon():e.jsx(n,{})})),e.jsx("span",Object.assign({className:"usp-back-nav__label",style:i},{children:S}))]})),k&&e.jsx(s.UserStoryScopeDropdown,{})]}))};
2
2
  //# sourceMappingURL=BackNav.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),n=require("../UserStoryPicker.context.js");exports.Badge=function(s){var t=s.type,a=s.value,u=s.label,l=s.className,c=s.style,o=n.useUSPContext(),d=o.classNames,i=o.renderProps;if(i.renderBadge)return r.jsx(r.Fragment,{children:i.renderBadge(t,a)});var g=["usp-badge","new"===t&&"usp-badge--new","count"===t&&"usp-badge--count","new"===t&&d.badgeNew,"count"===t&&d.badgeCount,d.badge,l].filter(Boolean).join(" "),b=null!=u?u:"new"===t?"New":"".concat(null!=a?a:0," Artifacts");return r.jsx("span",e.__assign({className:g,style:c},{children:b}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../UserStoryPicker.context.js");exports.Badge=function({type:n,value:s,label:t,className:a,style:u}){const{classNames:c,renderProps:l}=r.useUSPContext();if(l.renderBadge)return e.jsx(e.Fragment,{children:l.renderBadge(n,s)});const o=["usp-badge","new"===n&&"usp-badge--new","count"===n&&"usp-badge--count","new"===n&&c.badgeNew,"count"===n&&c.badgeCount,c.badge,a].filter(Boolean).join(" "),d=null!=t?t:"new"===n?"New":`${null!=s?s:0} Artifacts`;return e.jsx("span",Object.assign({className:o,style:u},{children:d}))};
2
2
  //# sourceMappingURL=Badge.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("react"),r=require("../UserStoryPicker.context.js");function o(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:s.jsx("path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"})}))}function n(){return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"m15 9-6 6"}),s.jsx("path",{d:"m9 9 6 6"})]}))}exports.BrowseProjectsButton=function(i){var a=i.label,l=void 0===a?"Browse Projects":a,c=i.activeLabel,u=void 0===c?"Browse All Projects":c,p=i.className,d=i.style,j=r.useUSPContext(),w=j.state,x=j.dispatch,h=j.classNames,_=j.onViewChange,b="projects"===w.viewMode||"project-detail"===w.viewMode,v=t.useCallback(function(){b?(x({type:"SET_VIEW",payload:"recent"}),null==_||_("recent")):(x({type:"SET_VIEW",payload:"projects"}),null==_||_("projects"))},[b,x,_]),g=["usp-browse-btn",b&&"usp-browse-btn--active",h.browseToggle,p].filter(Boolean).join(" ");return s.jsxs("button",e.__assign({type:"button",className:g,style:d,onClick:v},{children:[s.jsx("span",e.__assign({className:"usp-browse-btn__icon"},{children:s.jsx(o,{})})),b?u:l,b&&s.jsx("span",e.__assign({className:"usp-browse-btn__close"},{children:s.jsx(n,{})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("react"),t=require("../UserStoryPicker.context.js");function r(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:e.jsx("path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"})}))}function o(){return e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m15 9-6 6"}),e.jsx("path",{d:"m9 9 6 6"})]}))}exports.BrowseProjectsButton=function({label:n="Browse Projects",activeLabel:c="Browse All Projects",className:a,style:i}){const{state:l,dispatch:u,classNames:j,onViewChange:p}=t.useUSPContext(),d="projects"===l.viewMode||"project-detail"===l.viewMode,w=s.useCallback(()=>{d?(u({type:"SET_VIEW",payload:"recent"}),null==p||p("recent")):(u({type:"SET_VIEW",payload:"projects"}),null==p||p("projects"))},[d,u,p]),x=["usp-browse-btn",d&&"usp-browse-btn--active",j.browseToggle,a].filter(Boolean).join(" ");return e.jsxs("button",Object.assign({type:"button",className:x,style:i,onClick:w},{children:[e.jsx("span",Object.assign({className:"usp-browse-btn__icon"},{children:e.jsx(r,{})})),d?c:n,d&&e.jsx("span",Object.assign({className:"usp-browse-btn__close"},{children:e.jsx(o,{})}))]}))};
2
2
  //# sourceMappingURL=BrowseProjectsButton.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("tslib"),e=require("react/jsx-runtime"),r=require("../UserStoryPicker.context.js"),t=require("./UserStoryCard.js"),a=require("./ProjectCard.js");function i(){return e.jsxs("div",s.__assign({className:"usp-skeleton-card"},{children:[e.jsxs("div",s.__assign({className:"usp-skeleton-card__header"},{children:[e.jsx("div",{className:"usp-skeleton usp-skeleton--bookmark"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--id"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--title"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--radio"})]})),e.jsxs("div",s.__assign({className:"usp-skeleton-card__project"},{children:[e.jsx("div",{className:"usp-skeleton usp-skeleton--folder"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--project-name"})]})),e.jsx("div",{className:"usp-skeleton usp-skeleton--desc-line"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--desc-line usp-skeleton--desc-line-short"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--date"})]}))}exports.CardGrid=function(n){var l=n.className,o=n.style,d=n.children,c=r.useUSPContext(),u=c.state,p=c.visibleStories,j=c.visibleProjects,m=c.classNames,_=c.renderProps,x=c.isLoadingStories,k=c.isLoadingProjects,v="projects"===u.viewMode,N=v?k:x,y=v?j:p,g=0===y.length,h=["usp-card-grid",g&&!N&&"usp-card-grid--empty",m.cardGrid,l].filter(Boolean).join(" ");return"function"==typeof d?e.jsx("div",s.__assign({className:h,style:o},{children:d(y,u.viewMode)})):d?e.jsx("div",s.__assign({className:h,style:o},{children:d})):N&&g?e.jsx("div",s.__assign({className:h,style:o},{children:Array.from({length:4}).map(function(s,r){return e.jsx(i,{},r)})})):g?e.jsx("div",s.__assign({className:h,style:o},{children:e.jsx("div",s.__assign({className:"usp-card-grid__empty-state"},{children:_.renderEmptyState?_.renderEmptyState(u.viewMode):"No ".concat(v?"projects":"user stories"," found")}))})):e.jsxs("div",s.__assign({className:h,style:o},{children:[" ",v?j.map(function(s){return e.jsx(a.ProjectCard,{project:s},s.id)}):p.map(function(s){return e.jsx(t.UserStoryCard,{story:s},s.user_story_id)}),N&&Array.from({length:4}).map(function(s,r){return e.jsx(i,{},"skel-".concat(r))})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("react/jsx-runtime"),e=require("../UserStoryPicker.context.js"),t=require("./UserStoryCard.js"),r=require("./ProjectCard.js");function a(){return s.jsxs("div",Object.assign({className:"usp-skeleton-card"},{children:[s.jsxs("div",Object.assign({className:"usp-skeleton-card__header"},{children:[s.jsx("div",{className:"usp-skeleton usp-skeleton--bookmark"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--id"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--title"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--radio"})]})),s.jsxs("div",Object.assign({className:"usp-skeleton-card__project"},{children:[s.jsx("div",{className:"usp-skeleton usp-skeleton--folder"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--project-name"})]})),s.jsx("div",{className:"usp-skeleton usp-skeleton--desc-line"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--desc-line usp-skeleton--desc-line-short"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--date"})]}))}exports.CardGrid=function({className:i,style:l,children:n}){const{state:o,visibleStories:c,visibleProjects:d,classNames:j,renderProps:p,isLoadingStories:u,isLoadingProjects:m}=e.useUSPContext(),x="projects"===o.viewMode,k=x?m:u,v=x?d:c,N=0===v.length,y=["usp-card-grid",N&&!k&&"usp-card-grid--empty",j.cardGrid,i].filter(Boolean).join(" ");return"function"==typeof n?s.jsx("div",Object.assign({className:y,style:l},{children:n(v,o.viewMode)})):n?s.jsx("div",Object.assign({className:y,style:l},{children:n})):k&&N?s.jsx("div",Object.assign({className:y,style:l},{children:Array.from({length:4}).map((e,t)=>s.jsx(a,{},t))})):N?s.jsx("div",Object.assign({className:y,style:l},{children:s.jsx("div",Object.assign({className:"usp-card-grid__empty-state"},{children:p.renderEmptyState?p.renderEmptyState(o.viewMode):`No ${x?"projects":"user stories"} found`}))})):s.jsxs("div",Object.assign({className:y,style:l},{children:[" ",x?d.map(e=>s.jsx(r.ProjectCard,{project:e},e.id)):c.map(e=>s.jsx(t.UserStoryCard,{story:e},e.user_story_id)),k&&Array.from({length:4}).map((e,t)=>s.jsx(a,{},`skel-${t}`))]}))};
2
2
  //# sourceMappingURL=CardGrid.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),n=require("../UserStoryPicker.context.js"),o=require("./UserStoryImportDialog.js");exports.CardProceedButton=function(s){var i=this,a=s.story,c=n.useUSPContext(),u=c.adapter,l=c.onProceed,d=c.hidePopUp,p=c.dispatch,_=c.classNames,h=c.renderProps,f=u.sendNotification,g=u.sendEvent,y=u.onProceedComplete,v=t.useState(!1),C=v[0],b=v[1],x=t.useState(!1),m=x[0],P=x[1],k=t.useCallback(function(e,r){null==f||f(e,r)},[f]),j=t.useCallback(function(r){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return(null==a?void 0:a.artifact_id)?(b(!0),[4,null==y?void 0:y({selectedStory:a,importChoice:r})]):(k("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error"),[2]);case 1:return e.sent(),k("You selected userStory ".concat(null==a?void 0:a.storyId,": ").concat(null==a?void 0:a.title),"info"),null==g||g({}),l(a),[2]}})})},[a,k,y,g,l]),w=t.useCallback(function(r){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return r.stopPropagation(),p({type:"SELECT_STORY",payload:a.user_story_id}),a.multi_user_story&&!d?(P(!0),[2]):[4,j("all")];case 1:return e.sent(),[2]}})})},[a,p,d,j]),S=t.useCallback(function(r){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return P(!1),[4,j(r)];case 1:return e.sent(),[2]}})})},[j]),B=t.useCallback(function(e){P(e)},[]);return r.jsxs(r.Fragment,{children:[h.renderCardProceedButton?h.renderCardProceedButton(a,w,C):r.jsx("button",e.__assign({type:"button",className:["usp-card__proceed-btn",_.cardProceedButton].filter(Boolean).join(" "),onClick:w,disabled:C},{children:C?r.jsxs(r.Fragment,{children:[r.jsxs("svg",e.__assign({className:"usp-card__proceed-btn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"13",height:"13"},{children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),r.jsx("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})),"Loading..."]}):"Proceed"})),r.jsx(o.UserStoryImportDialog,{open:m,onOpenChange:B,onConfirm:S})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),o=require("../UserStoryPicker.context.js"),s=require("./UserStoryImportDialog.js");exports.CardProceedButton=function({story:i}){const{adapter:n,onProceed:a,hidePopUp:l,dispatch:d,classNames:c,renderProps:u}=o.useUSPContext(),{sendNotification:p,sendEvent:h,onProceedComplete:y}=n,[_,C]=r.useState(!1),[v,b]=r.useState(!1),g=r.useCallback((e,t)=>{null==p||p(e,t)},[p]),x=r.useCallback(t=>e.__awaiter(this,void 0,void 0,function*(){(null==i?void 0:i.artifact_id)?(C(!0),yield null==y?void 0:y({selectedStory:i,importChoice:t}),g(`You selected userStory ${null==i?void 0:i.storyId}: ${null==i?void 0:i.title}`,"info"),null==h||h({}),a(i)):g("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error")}),[i,g,y,h,a]),j=r.useCallback(t=>e.__awaiter(this,void 0,void 0,function*(){t.stopPropagation(),d({type:"SELECT_STORY",payload:i.user_story_id}),!i.multi_user_story||l?yield x("all"):b(!0)}),[i,d,l,x]),m=r.useCallback(t=>e.__awaiter(this,void 0,void 0,function*(){b(!1),yield x(t)}),[x]),P=r.useCallback(e=>{b(e)},[]);return t.jsxs(t.Fragment,{children:[u.renderCardProceedButton?u.renderCardProceedButton(i,j,_):t.jsx("button",Object.assign({type:"button",className:["usp-card__proceed-btn",c.cardProceedButton].filter(Boolean).join(" "),onClick:j,disabled:_},{children:_?t.jsxs(t.Fragment,{children:[t.jsxs("svg",Object.assign({className:"usp-card__proceed-btn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"13",height:"13"},{children:[t.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),t.jsx("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})),"Loading..."]}):"Proceed"})),t.jsx(s.UserStoryImportDialog,{open:v,onOpenChange:P,onConfirm:m})]})};
2
2
  //# sourceMappingURL=CardProceedButton.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("../UserStoryPicker.context.js");exports.ContentArea=function(s){var n=s.className,a=s.style,i=s.children,o=["usp-content-area",t.useUSPContext().classNames.contentArea,n].filter(Boolean).join(" ");return r.jsx("div",e.__assign({className:o,style:a},{children:i}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../UserStoryPicker.context.js");exports.ContentArea=function({className:r,style:s,children:n}){const{classNames:a}=t.useUSPContext(),c=["usp-content-area",a.contentArea,r].filter(Boolean).join(" ");return e.jsx("div",Object.assign({className:c,style:s},{children:n}))};
2
2
  //# sourceMappingURL=ContentArea.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js");exports.Footer=function(t){var o=t.className,i=t.style,a=t.children,l=["usp-footer",s.useUSPContext().classNames.footer,o].filter(Boolean).join(" ");return r.jsx("div",e.__assign({className:l,style:i},{children:a}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../UserStoryPicker.context.js");exports.Footer=function({className:s,style:t,children:o}){const{classNames:c}=r.useUSPContext(),i=["usp-footer",c.footer,s].filter(Boolean).join(" ");return e.jsx("div",Object.assign({className:i,style:t},{children:o}))};
2
2
  //# sourceMappingURL=Footer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js"),a=require("../lib/adaptLabel.js");exports.Header=function(r){var l=r.title,i=r.subtitle,n=r.className,u=r.style,d=r.titleStyle,o=r.subtitleStyle,c=r.children,p=s.useUSPContext(),y=p.classNames,_=p.state;l=a.adaptLabel(l,_.typeBy),i=i?a.adaptLabel(i,_.typeBy):i;var h=["usp-header",y.header,n].filter(Boolean).join(" "),b=["usp-header__title",y.headerTitle].filter(Boolean).join(" "),j=["usp-header__subtitle",y.headerSubtitle].filter(Boolean).join(" ");return t.jsxs("div",e.__assign({className:h,style:u},{children:[t.jsx("h1",e.__assign({className:b,style:d},{children:l})),i&&t.jsx("p",e.__assign({className:j,style:o},{children:i})),c]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../UserStoryPicker.context.js"),s=require("../lib/adaptLabel.js");exports.Header=function({title:a,subtitle:l,className:r,style:i,titleStyle:n,subtitleStyle:c,children:o}){const{classNames:d,state:u}=t.useUSPContext();a=s.adaptLabel(a,u.typeBy),l=l?s.adaptLabel(l,u.typeBy):l;const j=["usp-header",d.header,r].filter(Boolean).join(" "),b=["usp-header__title",d.headerTitle].filter(Boolean).join(" "),p=["usp-header__subtitle",d.headerSubtitle].filter(Boolean).join(" ");return e.jsxs("div",Object.assign({className:j,style:i},{children:[e.jsx("h1",Object.assign({className:b,style:n},{children:a})),l&&e.jsx("p",Object.assign({className:p,style:c},{children:l})),o]}))};
2
2
  //# sourceMappingURL=Header.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js");exports.NavRow=function(t){var a=t.className,i=t.style,n=t.children,o=["usp-nav-row",s.useUSPContext().classNames.navRow,a].filter(Boolean).join(" ");return r.jsx("div",e.__assign({className:o,style:i},{children:n}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js");exports.NavRow=function({className:r,style:t,children:n}){const{classNames:o}=s.useUSPContext(),a=["usp-nav-row",o.navRow,r].filter(Boolean).join(" ");return e.jsx("div",Object.assign({className:a,style:t},{children:n}))};
2
2
  //# sourceMappingURL=NavRow.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),o=require("../UserStoryPicker.context.js"),n=require("./UserStoryImportDialog.js");exports.ProceedButton=function(s){var i=this,a=s.label,c=void 0===a?"Proceed":a,l=s.disableWhenNoSelection,u=void 0===l||l,d=s.className,p=s.style,h=o.useUSPContext(),_=h.selectedStory,f=h.classNames,v=h.onProceed,y=h.adapter,b=h.hidePopUp,g=h.dispatch,m=y.sendNotification,x=y.sendEvent,C=y.onProceedComplete,k=u&&!_,j=r.useState(!1),w=j[0],S=j[1],P=r.useState(!1),N=P[0],U=P[1],q=r.useCallback(function(e,t){null==m||m(e,t)},[m]),B=r.useCallback(function(t){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return(null==_?void 0:_.artifact_id)?(S(!0),[4,null==C?void 0:C({selectedStory:_,importChoice:t})]):(q("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error"),[2]);case 1:return e.sent(),q("You selected userStory ".concat(null==_?void 0:_.storyId,": ").concat(null==_?void 0:_.title),"info"),null==x||x({}),k||v(_),[2]}})})},[_,k,q,C,x,v]),I=r.useCallback(function(){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return k?[2]:(g({type:"SELECT_STORY",payload:_.user_story_id}),(null==_?void 0:_.multi_user_story)&&!b?(U(!0),[2]):[4,B("all")]);case 1:return e.sent(),[2]}})})},[_,k,b,B,g]),O=r.useCallback(function(e){U(e)},[]),E=r.useCallback(function(t){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return U(!1),[4,B(t)];case 1:return e.sent(),[2]}})})},[B]),L=["usp-proceed",k&&"usp-proceed--disabled",f.proceedButton,d].filter(Boolean).join(" ");return t.jsxs(t.Fragment,{children:[t.jsx("button",e.__assign({type:"button",className:L,style:p,onClick:I,disabled:k||w},{children:w?t.jsxs(t.Fragment,{children:[t.jsxs("svg",e.__assign({className:"usp-card__proceed-btn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"13",height:"13"},{children:[t.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),t.jsx("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})),"Loading..."]}):c})),t.jsx(n.UserStoryImportDialog,{open:N,onOpenChange:O,onConfirm:E})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),o=require("react"),r=require("../UserStoryPicker.context.js"),s=require("./UserStoryImportDialog.js");exports.ProceedButton=function({label:i="Proceed",disableWhenNoSelection:l=!0,className:n,style:a}){const{selectedStory:c,classNames:d,onProceed:u,adapter:p,hidePopUp:y,dispatch:h}=r.useUSPContext(),{sendNotification:b,sendEvent:v,onProceedComplete:_}=p,m=l&&!c,[x,g]=o.useState(!1),[j,C]=o.useState(!1),f=o.useCallback((e,t)=>{null==b||b(e,t)},[b]),k=o.useCallback(t=>e.__awaiter(this,void 0,void 0,function*(){(null==c?void 0:c.artifact_id)?(g(!0),yield null==_?void 0:_({selectedStory:c,importChoice:t}),f(`You selected userStory ${null==c?void 0:c.storyId}: ${null==c?void 0:c.title}`,"info"),null==v||v({}),m||u(c)):f("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error")}),[c,m,f,_,v,u]),S=o.useCallback(()=>e.__awaiter(this,void 0,void 0,function*(){m||(h({type:"SELECT_STORY",payload:c.user_story_id}),!(null==c?void 0:c.multi_user_story)||y?yield k("all"):C(!0))}),[c,m,y,k,h]),w=o.useCallback(e=>{C(e)},[]),P=o.useCallback(t=>e.__awaiter(this,void 0,void 0,function*(){C(!1),yield k(t)}),[k]),N=["usp-proceed",m&&"usp-proceed--disabled",d.proceedButton,n].filter(Boolean).join(" ");return t.jsxs(t.Fragment,{children:[t.jsx("button",Object.assign({type:"button",className:N,style:a,onClick:S,disabled:m||x},{children:x?t.jsxs(t.Fragment,{children:[t.jsxs("svg",Object.assign({className:"usp-card__proceed-btn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"13",height:"13"},{children:[t.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),t.jsx("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})),"Loading..."]}):i})),t.jsx(s.UserStoryImportDialog,{open:j,onOpenChange:w,onConfirm:P})]})};
2
2
  //# sourceMappingURL=ProceedButton.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),n=require("../UserStoryPicker.context.js");function a(){return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function t(){return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"})}))}function i(){return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function o(e){try{return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(r){return e}}exports.ProjectCard=function(l){var c,d,u=l.project,p=l.className,_=l.style,j=l.headerStyle,h=l.titleStyle,m=l.descriptionStyle,x=l.metaStyle,g=n.useUSPContext(),f=g.dispatch,v=g.classNames,y=g.renderProps,k=g.onProjectSelect,w=g.onViewMoreDescription,S=s.useState(!1),C=S[0],L=S[1],N=s.useCallback(function(e){e.stopPropagation(),L(function(e){return!e})},[]),b=C?u.description:(null!==(d=null===(c=u.description)||void 0===c?void 0:c.length)&&void 0!==d?d:0)>100?u.description.slice(0,100):u.description,B=u.description.length>100,P=s.useCallback(function(){f({type:"SELECT_PROJECT",payload:u.id}),null==k||k(u)},[f,u,k]);s.useCallback(function(e){e.stopPropagation(),null==w||w(u)},[w,u]);var A=["usp-card usp-card--project",v.card,p].filter(Boolean).join(" ");return y.renderProjectCard?r.jsx(r.Fragment,{children:y.renderProjectCard(u)}):r.jsxs("div",e.__assign({className:A,style:_,onClick:P,role:"button",tabIndex:0},{children:[r.jsxs("div",e.__assign({className:["usp-card__header",v.cardHeader].filter(Boolean).join(" "),style:j},{children:[r.jsx("span",e.__assign({className:"usp-card__icon"},{children:y.renderFolderIcon?y.renderFolderIcon():r.jsx(a,{})})),r.jsx("span",e.__assign({className:["usp-card__title",v.cardTitle].filter(Boolean).join(" "),style:h},{children:u.name})),r.jsxs("span",e.__assign({className:["usp-card__artifact-count",v.cardArtifactCount].filter(Boolean).join(" ")},{children:[r.jsx(i,{}),u.artifactCount," Artifacts"]}))]})),void 0!==u.summary&&r.jsxs("div",e.__assign({className:["usp-card__summary-label",v.cardSummaryLabel].filter(Boolean).join(" ")},{children:[y.renderSparkleIcon?y.renderSparkleIcon():r.jsx(t,{}),"Summary"]})),r.jsx("div",e.__assign({className:["usp-card-userstory-description",!u.description&&"usp-card__description--empty",v.cardDescription].filter(Boolean).join(" "),style:m},{children:u.description?r.jsxs(r.Fragment,{children:[b,B&&r.jsx("button",e.__assign({onClick:N,className:["usp-card-moreButton",v.cardViewMore].filter(Boolean).join(" "),"aria-label":C?"Show less":"Show more"},{children:C?"less":"..."}))]}):r.jsx("span",e.__assign({className:"usp-card__description--placeholder"},{children:"No Description available"}))})),r.jsx("div",e.__assign({className:"usp-card__meta",style:x},{children:r.jsxs("span",e.__assign({className:["usp-card__date",v.cardDate].filter(Boolean).join(" ")},{children:["Last Updated: ",o(u.lastUpdated)]}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),s=require("../UserStoryPicker.context.js");function t(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:e.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function a(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:e.jsx("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"})}))}function n(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:e.jsx("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function o(e){try{return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(r){return e}}exports.ProjectCard=function({project:i,className:c,style:l,headerStyle:d,titleStyle:u,descriptionStyle:p,metaStyle:j}){var h,m;const{dispatch:x,classNames:g,renderProps:b,onProjectSelect:v,onViewMoreDescription:y}=s.useUSPContext(),[f,_]=r.useState(!1),k=r.useCallback(e=>{e.stopPropagation(),_(e=>!e)},[]),w=f?i.description:(null!==(m=null===(h=i.description)||void 0===h?void 0:h.length)&&void 0!==m?m:0)>100?i.description.slice(0,100):i.description,S=i.description.length>100,C=r.useCallback(()=>{x({type:"SELECT_PROJECT",payload:i.id}),null==v||v(i)},[x,i,v]);r.useCallback(e=>{e.stopPropagation(),null==y||y(i)},[y,i]);const O=["usp-card usp-card--project",g.card,c].filter(Boolean).join(" ");return b.renderProjectCard?e.jsx(e.Fragment,{children:b.renderProjectCard(i)}):e.jsxs("div",Object.assign({className:O,style:l,onClick:C,role:"button",tabIndex:0},{children:[e.jsxs("div",Object.assign({className:["usp-card__header",g.cardHeader].filter(Boolean).join(" "),style:d},{children:[e.jsx("span",Object.assign({className:"usp-card__icon"},{children:b.renderFolderIcon?b.renderFolderIcon():e.jsx(t,{})})),e.jsx("span",Object.assign({className:["usp-card__title",g.cardTitle].filter(Boolean).join(" "),style:u},{children:i.name})),e.jsxs("span",Object.assign({className:["usp-card__artifact-count",g.cardArtifactCount].filter(Boolean).join(" ")},{children:[e.jsx(n,{}),i.artifactCount," Artifacts"]}))]})),void 0!==i.summary&&e.jsxs("div",Object.assign({className:["usp-card__summary-label",g.cardSummaryLabel].filter(Boolean).join(" ")},{children:[b.renderSparkleIcon?b.renderSparkleIcon():e.jsx(a,{}),"Summary"]})),e.jsx("div",Object.assign({className:["usp-card-userstory-description",!i.description&&"usp-card__description--empty",g.cardDescription].filter(Boolean).join(" "),style:p},{children:i.description?e.jsxs(e.Fragment,{children:[w,S&&e.jsx("button",Object.assign({onClick:k,className:["usp-card-moreButton",g.cardViewMore].filter(Boolean).join(" "),"aria-label":f?"Show less":"Show more"},{children:f?"less":"..."}))]}):e.jsx("span",Object.assign({className:"usp-card__description--placeholder"},{children:"No Description available"}))})),e.jsx("div",Object.assign({className:"usp-card__meta",style:j},{children:e.jsxs("span",Object.assign({className:["usp-card__date",g.cardDate].filter(Boolean).join(" ")},{children:["Last Updated: ",o(i.lastUpdated)]}))}))]}))};
2
2
  //# sourceMappingURL=ProjectCard.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("../lib/cn.js"),t=require("../lib/CustomTooltip.js");function n(n){var r=n.isCollapsed,l=n.onToggle,c=n.className,u=n.style;return s.jsx(t.default,e.__assign({content:r?"Open Sidebar":"Close Sidebar"},{children:s.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),l()},onMouseDown:function(e){return e.stopPropagation()},className:o.cn("fm-resize-toggle",r?"fm-resize-toggle--collapsed":"fm-resize-toggle--open",c),"aria-label":r?"Expand panel":"Collapse panel",style:u},{children:r?s.jsx(i,{className:"h-3.5 w-3.5 text-primary-foreground"}):s.jsx(a,{className:"h-3.5 w-3.5 text-primary-foreground"})}))}))}function r(o){var t=o.className;return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t},{children:[s.jsx("line",{x1:"9",y1:"5",x2:"9",y2:"19"}),s.jsx("line",{x1:"15",y1:"5",x2:"15",y2:"19"})]}))}function a(o){var t=o.className;return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t},{children:s.jsx("path",{d:"M15 18l-6-6 6-6"})}))}function i(o){var t=o.className;return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t},{children:s.jsx("path",{d:"M9 18l6-6-6-6"})}))}exports.ResizeHandle=function(t){var a=t.visualLeftWidth,i=t.isResizing,l=t.isLeftPanelCollapsed,c=t.onResizeStart,u=t.onToggle;return s.jsxs("div",e.__assign({className:o.cn("absolute top-0 bottom-0 z-10 group",!l&&"cursor-col-resize"),style:{left:l?0:"".concat(a,"%"),width:l?0:9,marginLeft:l?0:-4,pointerEvents:"auto"},onMouseDown:l?void 0:c},{children:[s.jsx("div",{className:o.cn("absolute left-1/2 top-0 bottom-0 -translate-x-1/2","transition-all duration-150",l&&"opacity-0 pointer-events-none",i?"w-[2px] bg-focus-border":"w-px bg-editor-widget-border group-hover:w-[2px] group-hover:bg-sash-hover-border")}),!l&&!i&&s.jsx("div",e.__assign({className:o.cn("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","pointer-events-none","opacity-0 group-hover:opacity-60 transition-opacity duration-200")},{children:s.jsx(r,{className:"h-4 w-4 text-description-foreground"})})),s.jsx(n,{isCollapsed:l,onToggle:u,className:"absolute transition-all duration-200",style:{left:l?2:"50%",top:6,transform:l?"translateY(0)":"translate(-100%, 0)",zIndex:20}})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../lib/cn.js"),t=require("../lib/CustomTooltip.js");function o({isCollapsed:o,onToggle:n,className:i,style:l}){return e.jsx(t.default,Object.assign({content:o?"Open Sidebar":"Close Sidebar"},{children:e.jsx("button",Object.assign({type:"button",onClick:e=>{e.stopPropagation(),n()},onMouseDown:e=>e.stopPropagation(),className:s.cn("fm-resize-toggle",o?"fm-resize-toggle--collapsed":"fm-resize-toggle--open",i),"aria-label":o?"Expand panel":"Collapse panel",style:l},{children:o?e.jsx(a,{className:"h-3.5 w-3.5 text-primary-foreground"}):e.jsx(r,{className:"h-3.5 w-3.5 text-primary-foreground"})}))}))}function n({className:s}){return e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:s},{children:[e.jsx("line",{x1:"9",y1:"5",x2:"9",y2:"19"}),e.jsx("line",{x1:"15",y1:"5",x2:"15",y2:"19"})]}))}function r({className:s}){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:s},{children:e.jsx("path",{d:"M15 18l-6-6 6-6"})}))}function a({className:s}){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:s},{children:e.jsx("path",{d:"M9 18l6-6-6-6"})}))}exports.ResizeHandle=function({visualLeftWidth:t,isResizing:r,isLeftPanelCollapsed:a,onResizeStart:i,onToggle:l}){return e.jsxs("div",Object.assign({className:s.cn("absolute top-0 bottom-0 z-10 group",!a&&"cursor-col-resize"),style:{left:a?0:`${t}%`,width:a?0:9,marginLeft:a?0:-4,pointerEvents:"auto"},onMouseDown:a?void 0:i},{children:[e.jsx("div",{className:s.cn("absolute left-1/2 top-0 bottom-0 -translate-x-1/2","transition-all duration-150",a&&"opacity-0 pointer-events-none",r?"w-[2px] bg-focus-border":"w-px bg-editor-widget-border group-hover:w-[2px] group-hover:bg-sash-hover-border")}),!a&&!r&&e.jsx("div",Object.assign({className:s.cn("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","pointer-events-none","opacity-0 group-hover:opacity-60 transition-opacity duration-200")},{children:e.jsx(n,{className:"h-4 w-4 text-description-foreground"})})),e.jsx(o,{isCollapsed:a,onToggle:l,className:"absolute transition-all duration-200",style:{left:a?2:"50%",top:6,transform:a?"translateY(0)":"translate(-100%, 0)",zIndex:20}})]}))};
2
2
  //# sourceMappingURL=ResizeHandle.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),r=require("react"),o=require("../UserStoryPicker.context.js");function n(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"m18 15-6-6-6 6"})}))}function t(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"m6 9 6 6 6-6"})}))}var l=[{value:"currentRepository",label:"Current Repository"},{value:"allRepository",label:"All Repositories"}];exports.ScopeDropdown=function(i){var u,a,c=i.options,p=void 0===c?l:c,d=i.className,_=i.style;i.labelStyle;var v=i.selectStyle,f=o.useUSPContext(),x=f.state,g=f.dispatch,j=f.classNames,m=f.renderProps,y=f.onScopeRepoChange,h=r.useState(!1),w=h[0],b=h[1],k=r.useRef(null),R=r.useCallback(function(e){g({type:"SET_SCOPE_REPO",payload:e}),null==y||y(e),b(!1)},[g,y]);if(r.useEffect(function(){function e(e){k.current&&!k.current.contains(e.target)&&b(!1)}return w&&document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[w]),m.renderScopeDropdown)return m.renderScopeDropdown(x.scopeRepo,R,p);var S=null!==(a=null===(u=p.find(function(e){return e.value===x.scopeRepo}))||void 0===u?void 0:u.label)&&void 0!==a?a:p[0].label,C=["usp-user-story-scope",j.scopeDropdown,d].filter(Boolean).join(" ");return s.jsxs("div",e.__assign({ref:k,className:[C,w&&"open"].filter(Boolean).join(" "),style:_},{children:[s.jsxs("button",e.__assign({type:"button",className:"usp-user-story-scope__trigger",style:v,onClick:function(){return b(function(e){return!e})}},{children:[s.jsx("span",e.__assign({className:"usp-user-story-scope__trigger-label"},{children:S})),s.jsx("span",e.__assign({className:"usp-user-story-scope__chevron"},{children:w?s.jsx(n,{}):s.jsx(t,{})}))," "]})),w&&s.jsx("ul",e.__assign({className:"usp-user-story-scope__menu",role:"listbox"},{children:p.map(function(r){return s.jsx("li",e.__assign({role:"option","aria-selected":x.scopeRepo===r.value,className:["usp-user-story-scope__option",x.scopeRepo===r.value&&"active"].filter(Boolean).join(" "),onClick:function(){return R(r.value)}},{children:r.label}),r.value)})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("react"),o=require("../UserStoryPicker.context.js");function r(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:e.jsx("path",{d:"m18 15-6-6-6 6"})}))}function t(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:e.jsx("path",{d:"m6 9 6 6 6-6"})}))}const n=[{value:"currentRepository",label:"Current Repository"},{value:"allRepository",label:"All Repositories"}];exports.ScopeDropdown=function({options:l=n,className:c,style:i,labelStyle:a,selectStyle:u}){var p,d;const{state:j,dispatch:v,classNames:x,renderProps:b,onScopeRepoChange:g}=o.useUSPContext(),[m,y]=s.useState(!1),h=s.useRef(null),f=s.useCallback(e=>{v({type:"SET_SCOPE_REPO",payload:e}),null==g||g(e),y(!1)},[v,g]);if(s.useEffect(()=>{function e(e){h.current&&!h.current.contains(e.target)&&y(!1)}return m&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[m]),b.renderScopeDropdown)return b.renderScopeDropdown(j.scopeRepo,f,l);const w=null!==(d=null===(p=l.find(e=>e.value===j.scopeRepo))||void 0===p?void 0:p.label)&&void 0!==d?d:l[0].label,_=["usp-user-story-scope",x.scopeDropdown,c].filter(Boolean).join(" ");return e.jsxs("div",Object.assign({ref:h,className:[_,m&&"open"].filter(Boolean).join(" "),style:i},{children:[e.jsxs("button",Object.assign({type:"button",className:"usp-user-story-scope__trigger",style:u,onClick:()=>y(e=>!e)},{children:[e.jsx("span",Object.assign({className:"usp-user-story-scope__trigger-label"},{children:w})),e.jsx("span",Object.assign({className:"usp-user-story-scope__chevron"},{children:m?e.jsx(r,{}):e.jsx(t,{})}))," "]})),m&&e.jsx("ul",Object.assign({className:"usp-user-story-scope__menu",role:"listbox"},{children:l.map(s=>e.jsx("li",Object.assign({role:"option","aria-selected":j.scopeRepo===s.value,className:["usp-user-story-scope__option",j.scopeRepo===s.value&&"active"].filter(Boolean).join(" "),onClick:()=>f(s.value)},{children:s.label}),s.value))}))]}))};
2
2
  //# sourceMappingURL=ScopeDropdown.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),a=require("../UserStoryPicker.context.js"),t=require("../lib/adaptLabel.js");function n(){return r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[r.jsx("circle",{cx:"11",cy:"11",r:"8"}),r.jsx("path",{d:"m21 21-4.3-4.3"})]}))}exports.SearchInput=function(c){var i=c.placeholder,o=void 0===i?"Search...":i,l=c.className,u=c.style,p=c.inputStyle,d=c.iconStyle,h=c.scope,y=void 0===h?"main":h,x=a.useUSPContext(),S=x.state,_=x.dispatch,j=x.classNames,v=x.renderProps,b=x.onSearch;o=t.adaptLabel(o,S.typeBy);var m=s.useCallback(function(e){var r=e.target.value;"sidebar"===y?_({type:"SET_SIDEBAR_SEARCH",payload:r}):(_({type:"SET_SEARCH",payload:r}),null==b||b(r))},[_,b,y]),g="sidebar"===y?S.sidebarSearchQuery:S.searchQuery,f=["usp-search__input",j.searchInput,l].filter(Boolean).join(" "),k=["usp-search__icon",j.searchIcon].filter(Boolean).join(" ");return r.jsxs("div",e.__assign({className:"usp-search",style:u},{children:[r.jsx("span",e.__assign({className:k,style:d},{children:v.renderSearchIcon?v.renderSearchIcon():r.jsx(n,{})})),r.jsx("input",{type:"text",className:f,style:p,placeholder:o,value:g,onChange:m})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),s=require("../UserStoryPicker.context.js"),t=require("../lib/adaptLabel.js");function a(){return e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("path",{d:"m21 21-4.3-4.3"})]}))}exports.SearchInput=function({placeholder:n="Search...",className:c,style:o,inputStyle:l,iconStyle:i,scope:u="main"}){const{state:p,dispatch:d,classNames:h,renderProps:y,onSearch:j}=s.useUSPContext();n=t.adaptLabel(n,p.typeBy);const x=r.useCallback(e=>{const r=e.target.value;"sidebar"===u?d({type:"SET_SIDEBAR_SEARCH",payload:r}):(d({type:"SET_SEARCH",payload:r}),null==j||j(r))},[d,j,u]),S="sidebar"===u?p.sidebarSearchQuery:p.searchQuery,b=["usp-search__input",h.searchInput,c].filter(Boolean).join(" "),m=["usp-search__icon",h.searchIcon].filter(Boolean).join(" ");return e.jsxs("div",Object.assign({className:"usp-search",style:o},{children:[e.jsx("span",Object.assign({className:m,style:i},{children:y.renderSearchIcon?y.renderSearchIcon():e.jsx(a,{})})),e.jsx("input",{type:"text",className:b,style:l,placeholder:n,value:S,onChange:x})]}))};
2
2
  //# sourceMappingURL=SearchInput.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js"),r=require("./UserStoryScopeDropdown.js"),t=require("../lib/adaptLabel.js");function o(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[n.jsx("path",{d:"m12 19-7-7 7-7"}),n.jsx("path",{d:"M19 12H5"})]}))}function i(){return n.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:n.jsx("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function a(){return n.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:n.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function l(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[n.jsx("circle",{cx:"12",cy:"12",r:"10"}),n.jsx("polyline",{points:"12 6 12 12 16 14"})]}))}exports.SectionHeading=function(c){var u=c.label,d=c.icon,x=c.className,j=c.style,p=c.iconStyle,g=c.labelStyle,h=c.showBackButton,_=c.onBack,w=s.useUSPContext(),k=w.classNames,f=w.state;u=t.adaptLabel(u,f.typeBy);var v="recent"===f.viewMode,y=["usp-section-heading",k.sectionHeading,x].filter(Boolean).join(" "),m=function(e){if("string"==typeof e)switch(e){case"bookmark":return n.jsx(i,{});case"folder":return n.jsx(a,{});case"recent":return n.jsx(l,{});default:return null}return null!=e?e:null}(d);return n.jsxs("div",e.__assign({className:y,style:j},{children:[n.jsxs("div",e.__assign({className:["usp-section-heading__left",k.sectionHeadingLeft].filter(Boolean).join(" ")},{children:[h&&n.jsx("button",e.__assign({type:"button",className:"usp-section-heading__back",onClick:_},{children:n.jsx(o,{})})),m&&n.jsx("span",e.__assign({className:["usp-section-heading__icon",k.sectionHeadingLeft].filter(Boolean).join(" "),style:p},{children:m})),n.jsx("span",e.__assign({style:g},{children:u}))]})),v&&n.jsx(r.UserStoryScopeDropdown,{})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("../UserStoryPicker.context.js"),s=require("./UserStoryScopeDropdown.js"),t=require("../lib/adaptLabel.js");function o(){return e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[e.jsx("path",{d:"m12 19-7-7 7-7"}),e.jsx("path",{d:"M19 12H5"})]}))}function r(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:e.jsx("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function i(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:e.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function c(){return e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("polyline",{points:"12 6 12 12 16 14"})]}))}exports.SectionHeading=function({label:a,icon:l,className:u,style:d,iconStyle:j,labelStyle:x,showBackButton:p,onBack:g}){const{classNames:h,state:w}=n.useUSPContext();a=t.adaptLabel(a,w.typeBy);const k="recent"===w.viewMode,f=["usp-section-heading",h.sectionHeading,u].filter(Boolean).join(" "),b=function(n){if("string"==typeof n)switch(n){case"bookmark":return e.jsx(r,{});case"folder":return e.jsx(i,{});case"recent":return e.jsx(c,{});default:return null}return null!=n?n:null}(l);return e.jsxs("div",Object.assign({className:f,style:d},{children:[e.jsxs("div",Object.assign({className:["usp-section-heading__left",h.sectionHeadingLeft].filter(Boolean).join(" ")},{children:[p&&e.jsx("button",Object.assign({type:"button",className:"usp-section-heading__back",onClick:g},{children:e.jsx(o,{})})),b&&e.jsx("span",Object.assign({className:["usp-section-heading__icon",h.sectionHeadingLeft].filter(Boolean).join(" "),style:j},{children:b})),e.jsx("span",Object.assign({style:x},{children:a}))]})),k&&e.jsx(s.UserStoryScopeDropdown,{})]}))};
2
2
  //# sourceMappingURL=SectionHeading.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),o=require("../UserStoryPicker.context.js");exports.ShowMore=function(s){var i=s.label,l=void 0===i?"Show more":i,n=s.className,a=s.style,c=o.useUSPContext(),u=c.state,d=c.dispatch,h=c.classNames,j=c.hasMoreStories,S=c.hasMoreProjects,M=c.loadMoreStories,b=c.loadMoreProjects,f=c.isLoadingStories,p=c.isLoadingProjects,v=c.visibleStories,P=c.visibleProjects,g=c.filteredStories,m=c.filteredProjects,w=c.onShowMore,x="projects"===u.viewMode,y=x?p:f,_=x?S:j,q=x?P:v,k=(x?m:g).length>q.length,C=k||_,N=t.useCallback(function(){d({type:"SHOW_MORE"}),k||(x?b():M()),null==w||w()},[d,k,x,b,M,w]);if(0===q.length)return null;if(y||!C)return null;var O=["usp-show-more",h.showMore,n].filter(Boolean).join(" ");return r.jsx("button",e.__assign({type:"button",className:O,style:a,onClick:N},{children:l}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("../UserStoryPicker.context.js");exports.ShowMore=function({label:o="Show more",className:s,style:i}){const{state:l,dispatch:n,classNames:a,hasMoreStories:c,hasMoreProjects:u,loadMoreStories:h,loadMoreProjects:j,isLoadingStories:d,isLoadingProjects:S,visibleStories:M,visibleProjects:b,filteredStories:p,filteredProjects:P,onShowMore:f}=r.useUSPContext(),g="projects"===l.viewMode,m=g?S:d,w=g?u:c,x=g?b:M,y=(g?P:p).length>x.length,v=y||w,O=t.useCallback(()=>{n({type:"SHOW_MORE"}),y||(g?j():h()),null==f||f()},[n,y,g,j,h,f]);if(0===x.length)return null;if(m||!v)return null;const k=["usp-show-more",a.showMore,s].filter(Boolean).join(" ");return e.jsx("button",Object.assign({type:"button",className:k,style:i,onClick:O},{children:o}))};
2
2
  //# sourceMappingURL=ShowMore.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js");exports.Sidebar=function(t){var n=t.className,r=t.style,a=t.children,o=t.visualLeftWidth,l=t.isLeftPanelClosing,c=t.isResizing,d=t.isLeftPanelCollapsed,u=["usp-sidebar","flex flex-col flex-shrink-0 bg-editor-background min-h-0 overflow-y-auto",!c&&"transition-[width,opacity] duration-150 ease-in-out",(d||l)&&"opacity-0 pointer-events-none",s.useUSPContext().classNames.sidebar,n].filter(Boolean).join(" ");return i.jsx("nav",e.__assign({className:u,style:e.__assign(e.__assign({},r),{width:"".concat(o,"%"),flexShrink:0,willChange:"width",minWidth:d?0:"10px"})},{children:a}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("../UserStoryPicker.context.js");exports.Sidebar=function({className:s,style:t,children:n,visualLeftWidth:r,isLeftPanelClosing:a,isResizing:o,isLeftPanelCollapsed:l}){const{classNames:c}=i.useUSPContext(),d=["usp-sidebar","flex flex-col flex-shrink-0 bg-editor-background min-h-0 overflow-y-auto",!o&&"transition-[width,opacity] duration-150 ease-in-out",(l||a)&&"opacity-0 pointer-events-none",c.sidebar,s].filter(Boolean).join(" ");return e.jsx("nav",Object.assign({className:d,style:Object.assign(Object.assign({},t),{width:`${r}%`,flexShrink:0,willChange:"width",minWidth:l?0:"10px"})},{children:n}))};
2
2
  //# sourceMappingURL=Sidebar.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("react"),r=require("../UserStoryPicker.context.js");function i(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})}))}exports.SidebarFavoritesList=function(o){var a=o.className,n=o.style,l=o.itemStyle,c=r.useUSPContext(),d=c.favoriteStories,u=c.hasMoreFavoriteStories,p=c.loadMoreFavoriteStories,_=c.isLoadingFavoriteStories,j=c.state,m=c.dispatch,v=c.classNames,b=c.onStorySelect,h=d,x=t.useCallback(function(e){m({type:"SELECT_STORY",payload:e.user_story_id}),null==b||b(e)},[m,b]),y=["usp-sidebar-project-list",a].filter(Boolean).join(" ");return _&&0===h.length?s.jsx("div",e.__assign({className:y,style:n},{children:["55%","70%","45%"].map(function(t,r){return s.jsxs("div",e.__assign({className:"usp-sidebar-skeleton-row"},{children:[s.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:t}})]}),r)})})):_||0!==h.length?s.jsxs("div",e.__assign({className:y,style:n},{children:[h.map(function(t){var r=j.selectedStoryId===t.user_story_id,o=["usp-sidebar-project",r&&"usp-sidebar-project--active",r&&v.sidebarProjectActive,v.sidebarProject].filter(Boolean).join(" ");return s.jsxs("button",e.__assign({type:"button",className:o,style:l,onClick:function(){return x(t)}},{children:[s.jsx("span",e.__assign({className:"usp-sidebar-project__icon usp-sidebar-project__icon--heart"},{children:s.jsx(i,{})})),s.jsxs("span",e.__assign({className:"usp-sidebar-project__name"},{children:[t.storyId,": ",t.title]}))]}),"".concat(t.projectId,":").concat(t.storyId))}),_&&s.jsxs("div",e.__assign({className:"usp-sidebar-skeleton-row"},{children:[s.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:"60%"}})]})),!_&&u&&s.jsx("button",e.__assign({type:"button",className:["usp-show-more",v.showMore].filter(Boolean).join(" "),onClick:p},{children:"Show more"}))]})):s.jsx("div",e.__assign({className:"usp-sidebar-favorites__empty"},{children:"No favorites yet"}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("react"),t=require("../UserStoryPicker.context.js");function r(){return e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:e.jsx("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})}))}exports.SidebarFavoritesList=function({className:i,style:o,itemStyle:a}){const{favoriteStories:n,hasMoreFavoriteStories:c,loadMoreFavoriteStories:l,isLoadingFavoriteStories:d,state:u,dispatch:j,classNames:p,onStorySelect:b}=t.useUSPContext(),m=n,h=s.useCallback(e=>{j({type:"SELECT_STORY",payload:e.user_story_id}),null==b||b(e)},[j,b]),v=["usp-sidebar-project-list",i].filter(Boolean).join(" ");return d&&0===m.length?e.jsx("div",Object.assign({className:v,style:o},{children:["55%","70%","45%"].map((s,t)=>e.jsxs("div",Object.assign({className:"usp-sidebar-skeleton-row"},{children:[e.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:s}})]}),t))})):d||0!==m.length?e.jsxs("div",Object.assign({className:v,style:o},{children:[m.map(s=>{const t=u.selectedStoryId===s.user_story_id,i=["usp-sidebar-project",t&&"usp-sidebar-project--active",t&&p.sidebarProjectActive,p.sidebarProject].filter(Boolean).join(" ");return e.jsxs("button",Object.assign({type:"button",className:i,style:a,onClick:()=>h(s)},{children:[e.jsx("span",Object.assign({className:"usp-sidebar-project__icon usp-sidebar-project__icon--heart"},{children:e.jsx(r,{})})),e.jsxs("span",Object.assign({className:"usp-sidebar-project__name"},{children:[s.storyId,": ",s.title]}))]}),`${s.projectId}:${s.storyId}`)}),d&&e.jsxs("div",Object.assign({className:"usp-sidebar-skeleton-row"},{children:[e.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:"60%"}})]})),!d&&c&&e.jsx("button",Object.assign({type:"button",className:["usp-show-more",p.showMore].filter(Boolean).join(" "),onClick:l},{children:"Show more"}))]})):e.jsx("div",Object.assign({className:"usp-sidebar-favorites__empty"},{children:"No favorites yet"}))};
2
2
  //# sourceMappingURL=SidebarFavoritesList.js.map