@e-llm-studio/requirement-ai 0.0.249 → 0.0.251
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
- package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
- package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
- package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
- package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
- package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
- package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
- package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
- package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
- package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
- package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
- package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
- package/dist/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
- package/dist/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
- package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
- package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
- package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
- package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
- package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
- package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
- package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
- package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
- package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
- package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
- package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
- package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
- package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
- package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
- package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
- package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
- package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
- package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
- package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
- package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
- package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
- package/dist/features/RequirementAI/shared/Accordian.js +1 -1
- package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
- package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
- package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
- package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
- package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
- package/dist/features/RequirementAI/store/markdown-context.js +1 -1
- package/dist/features/RequirementAI/store/ref.context.js +1 -1
- package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
- package/dist/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
- package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
- package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
- package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
- package/dist/features/UserStoryImport/components/BackNav.js +1 -1
- package/dist/features/UserStoryImport/components/Badge.js +1 -1
- package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
- package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
- package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
- package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
- package/dist/features/UserStoryImport/components/Footer.js +1 -1
- package/dist/features/UserStoryImport/components/Header.js +1 -1
- package/dist/features/UserStoryImport/components/NavRow.js +1 -1
- package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
- package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
- package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
- package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
- package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
- package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
- package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
- package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
- package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
- package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
- package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
- package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
- package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
- package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
- package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
- package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
- package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
- package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
- package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
- package/dist/features/UserStoryImport/lib/dialog.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +9 -50
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +1 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +4 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +3 -4
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts +0 -8
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +4 -9
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +11 -45
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts +13 -17
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +5 -29
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +11 -17
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +2 -3
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +0 -4
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts +1 -2
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +1 -7
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +1 -4
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +13 -24
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +1 -7
- package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +1 -24
package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__awaiter as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import{useState as i,useEffect as n}from"react";import s from"@exuanbo/file-icons-js";import{File as o,FileText as r}from"lucide-react";import{cn as l}from"../../../../UserStoryImport/lib/cn.js";let m=!1;function a({name:a,size:c="12px",className:d}){const[f,p]=i(d||"");return n(()=>{(()=>{e(this,void 0,void 0,function*(){const e=yield s.getClass(a,{array:!0});p(e.join(" "))})})()},[a]),n(()=>{if(!m){const e=document.createElement("style");e.innerHTML="\n .custom-file-icon::before {\n font-size: inherit !important;\n }\n ",document.head.appendChild(e),m=!0}},[]),a.includes(".txt")?t(o,{className:l("w-3 h-3 mr-2 text-muted",d)}):a.includes(".pdf")?t(r,{className:l("w-3 h-3 mr-2 text-destructive",d)}):t("span",Object.assign({className:"mt-0",style:{width:c,height:c,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top"}},{children:f?t("i",{className:l("custom-file-icon",f,d),style:{fontSize:c,height:c,display:"inline-flex",alignItems:"center",lineHeight:1}}):t(o,{className:l("text-muted",d),width:c,height:c})}))}export{a as default};
|
|
2
2
|
//# sourceMappingURL=CustomFileIcon.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{useMemo as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{useMemo as i,useState as l,useRef as a,useCallback as o,useEffect as r}from"react";import s from"react-dom";import c from"@monaco-editor/react";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as u,Maximize2 as m}from"lucide-react";import g from"./CustomFileIcon.js";const p=e=>"number"==typeof e&&Number.isFinite(e),b=(e,t)=>p(e)&&p(t)?e<=0||t<e?null:{start:e,end:t,length:t-e+1}:null,v=(e,t,n,i)=>{let[l,a]=e;if(!Number.isFinite(l)||!Number.isFinite(a))return null;if(a<l&&([l,a]=[a,l]),p(n)&&p(i)){const e=Math.max(l,n),o=Math.min(a,i);if(e>o)return null;const r=e-n+1,s=o-n+1,c=Math.max(1,r),d=Math.min(t,s);return c>d?null:[c,d]}const o=Math.max(1,l),r=Math.min(t,a);return o>r?null:[o,r]},f=(e,t,n,i)=>{if(0===e.length)return!1;const l=b(n,i);if(!l)return!1;if(e.some(([e,n])=>e>t||n>t))return!0;if(l.start>t||l.end>t)return!0;if(Math.abs(l.length-t)<=1){return!e.every(([e,t])=>t<l.start||e>l.end)}return!1},y={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},O={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},j={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},N=({citation:N,customStyles:x,customColors:C,customIcons:F,editorConfig:M,fileCallback:k})=>{const w=i(()=>Object.assign(Object.assign({},y),C),[C]),S=i(()=>Object.assign(Object.assign({},O),M),[M]),[L,B]=l(!1),P=a(null),T=a(!1),H=N.customMetadata.content||"",z=N.customMetadata.highlighted_text,R=N.customMetadata.start_line,W=N.customMetadata.end_line,$=p(R)?R+1:R,I=i(()=>{if(!z)return{};try{let e=z.trim();return e.startsWith("```")&&(e=e.replace(/^```\w*\n?/,""),e=e.replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[z]),E=i(()=>{const e=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;let n;for(;null!==(n=t.exec(H));){const t=n[1]||"javascript",i=n[2].trim(),l=n[3].trim();i&&l&&e.push({filePath:i,code:l,language:t})}return e},[H]),_=o(e=>(I[e]||[]).map(e=>{const t=e.split("-").map(e=>Number(e.trim())),n=t[0],i=t.length>1?t[1]:n;return Number.isFinite(n)&&Number.isFinite(i)?[n,i]:null}).filter(e=>null!==e),[I]),D=i(()=>{for(let e=0;e<E.length;e++){const t=E[e],n=t.code.split("\n").length,i=_(t.filePath),l=f(i,n,$,W);if(i.map(e=>v(e,n,l?$:void 0,l?W:void 0)).filter(e=>null!==e).length>0)return e}return-1},[E,_,$,W]),q=D>=0,G=o((e,t)=>{const n=_(e),i=f(n,t,$,W);return n.map(e=>v(e,t,i?$:void 0,i?W:void 0)).filter(e=>null!==e)},[_,$,W]),A=o((e,t)=>{const n=_(e);if(f(n,t,$,W)){const e=b($,W);return e?n.map(([t,n])=>{const i=t<=n?[t,n]:[n,t],l=Math.max(i[0],e.start),a=Math.min(i[1],e.end);return l>a?null:[l,a]}).filter(e=>null!==e):[]}return G(e,t)},[_,G,$,W]);r(()=>{if(q&&!T.current&&E.length>0&&(null==k?void 0:k.autoOpenFirstHighlighted)&&(null==k?void 0:k.onOpenFile)){const e=E[D],t=A(e.filePath,e.code.split("\n").length);T.current=!0;const n=setTimeout(()=>{k.onOpenFile({filePath:e.filePath,ranges:t.length>0?t:null})},300);return()=>clearTimeout(n)}},[q,D,E,G,k]),r(()=>{T.current=!1},[H]),r(()=>{if(D<0)return;const e=setTimeout(()=>{var e;null===(e=P.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return()=>clearTimeout(e)},[D,z]);const J=o((e,t)=>{if(null==k?void 0:k.onOpenFile){const n=A(e,t);k.onOpenFile({filePath:e,ranges:n.length>0?n:null})}},[A,k]),V=o(()=>{(null==k?void 0:k.onExpandClick)?k.onExpandClick({blocks:E,highlightMap:I}):B(!0)},[k,E,I]),K=!!(null==k?void 0:k.onOpenFile),Q=(null==F?void 0:F.readFileCitationIcon)||e(h,{style:{width:"14px",height:"14px"}}),U=o((e,t,n,i)=>{const l=[];if(n.forEach(([e,n])=>{l.push({range:new t.Range(e,1,n,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),l.length>0)try{e.createDecorationsCollection(l)}catch(e){console.warn("Failed to create decorations:",e)}const a=n[0];a&&requestAnimationFrame(()=>{e.revealLineInCenter(a[0])}),i>0&&e.updateOptions({lineNumbers:e=>String(e+i)})},[]),X=n=>E.map((i,l)=>{const a=i.code.split("\n").length,o=_(i.filePath),r=f(o,a,$,W),s=o.map(e=>v(e,a,r?$:void 0,r?W:void 0)).filter(e=>null!==e),h=r&&p($)?s.map(([e,t])=>[e+$-1,t+$-1]):s,u=s.length>0,g=l===D,b=n?600:S.maxHeight,y=(()=>{const e=20*i.code.split("\n").length+16+4;return Math.min(Math.max(e,S.minHeight),b)})(),O=i.filePath.split("/").pop(),N=r&&p($)?$-1:0,C=N+a,F=String(Math.max(1,C)).length;return t("div",Object.assign({ref:!n&&g?P:void 0,"data-highlighted":u?"true":void 0,"data-first-highlighted":g?"true":void 0,className:d.blockContainer,style:Object.assign({border:`1px solid ${w.border}`},null==x?void 0:x.blockContainer)},{children:[t("div",Object.assign({className:d.header,style:Object.assign({backgroundColor:u?w.highlightBg:w.headerBg,borderBottom:`1px solid ${w.border}`,color:u?w.highlightGutter:w.foreground},u?null==x?void 0:x.headerHighlighted:null==x?void 0:x.header)},{children:[t("div",Object.assign({className:d.headerLeft},{children:[e("span",Object.assign({className:d.fileName,title:i.filePath,style:null==x?void 0:x.fileName,onClick:()=>J(i.filePath,a)},{children:O})),K&&e("button",Object.assign({className:d.openFileButton,onClick:()=>J(i.filePath,a),title:"Open in editor","aria-label":`Open ${O} in editor`,style:null==x?void 0:x.openFileButton},{children:Q}))]})),t("div",Object.assign({className:d.headerRight},{children:[u&&e("span",Object.assign({className:d.lineRanges,style:null==x?void 0:x.lineRanges},{children:(k=h,k.map(([e,t])=>e===t?`L${e}`:`L${e}-${t}`).join(", "))})),!n&&0===l&&e("button",Object.assign({className:d.expandButton,style:null==x?void 0:x.expandButton,onClick:V,title:"Expand","aria-label":"Expand code view"},{children:e(m,{size:13})}))]}))]})),e("div",Object.assign({className:d.editorWrapper,style:Object.assign({height:`${y}px`,backgroundColor:w.background},null==x?void 0:x.editorWrapper)},{children:e(c,{height:"100%",language:(M=i.language,j[M.toLowerCase()]||M),value:i.code,theme:S.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:S.fontSize,lineHeight:20,fontFamily:S.fontFamily,lineNumbers:N>0?e=>String(e+N):"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,F),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},onMount:(e,t)=>U(e,t,s,N),loading:e("div",Object.assign({className:d.editorLoading,style:{color:w.inactiveText}},{children:"Loading editor..."}))})}))]}),l);var M,k});if(0===E.length)return e("div",Object.assign({className:d.emptyState,style:Object.assign({color:w.inactiveText},null==x?void 0:x.emptyState)},{children:"No code content available"}));const Y=L?s.createPortal(e("div",Object.assign({className:d.modalOverlay,style:null==x?void 0:x.modalOverlay,onClick:e=>{e.target===e.currentTarget&&B(!1)}},{children:t("div",Object.assign({className:d.modalContent,style:null==x?void 0:x.modalContent},{children:[t("div",Object.assign({className:d.modalHeader,style:null==x?void 0:x.modalHeader},{children:[e("span",Object.assign({className:d.modalTitle,style:null==x?void 0:x.modalTitle},{children:1===E.length?t("span",Object.assign({className:d.modalTitleContent},{children:[e(g,{name:E[0].filePath,size:"15px"}),e("span",Object.assign({className:d.modalTitleText},{children:E[0].filePath}))]})):`${E.length} files`})),e("button",Object.assign({className:d.modalCloseButton,style:null==x?void 0:x.modalCloseButton,onClick:()=>B(!1),"aria-label":"Close expanded view"},{children:e(u,{size:16})}))]})),e("div",Object.assign({className:d.modalBody},{children:e("div",Object.assign({className:d.container,style:null==x?void 0:x.container},{children:X(!0)}))}))]}))})),document.body):null;return t(n,{children:[Y,e("div",Object.assign({className:d.container,style:null==x?void 0:x.container},{children:X(!1)}))]})};export{N as default};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const r=({title:r,citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p})=>{const d=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:r+"",citationId:`readfile-${a.citation_number}`,citationIcon:t(i,{}),citationComponent:t(e,{citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:{fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"
|
|
1
|
+
import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const r=({title:r,citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p})=>{const d=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:r+"",citationId:`readfile-${a.citation_number}`,citationIcon:t(i,{}),citationComponent:t(e,{citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:Object.assign({fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none"},null==l?void 0:l.pill),citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationRenderer.js.map
|
package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";const
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";const s=({className:s,style:o})=>e("svg",Object.assign({className:s,style:o,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),t("polyline",{points:"15 3 21 3 21 9"}),t("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}));export{s as default};
|
|
2
2
|
//# sourceMappingURL=ExternalLinkIcon.js.map
|
package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";const
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";const s=({className:s,style:o})=>t("svg",Object.assign({className:s,style:o,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg"},{children:[e("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("path",{d:"m10 13-2 2 2 2"}),e("path",{d:"m14 17 2-2-2-2"})]}));export{s as default};
|
|
2
2
|
//# sourceMappingURL=FileCodeIcon.js.map
|
package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import e from"./StormeeContent.js";const i=()=>t("div",{className:"mb-3",children:t("img",{width:18,src:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",alt:"stormee citation"})}),n=n=>{var a,c,
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import e from"./StormeeContent.js";const i=()=>t("div",Object.assign({className:"mb-3"},{children:t("img",{width:18,src:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",alt:"stormee citation"})})),n=n=>{var a,s,c,r,m;const d=(null===(a=n.customIcons)||void 0===a?void 0:a.stormeeCitationIcon)||t(i,{}),l=(null===(s=n.customIcons)||void 0===s?void 0:s.stormeeBrainstormIcon)||"https://storymod-assests.pages.dev/brainstorm-cropped.gif";return t(o,{inLineCitation:!0,citationTitle:n.title,citationId:`stormee-citation-${n.citation.citation_number}`,citationComponent:"audio_transcript"===n.citation.customMetadata.type&&t(e,{segments:n.citation.customMetadata.segments,gsUtilPath:n.citation.customMetadata.gs_util_url,contentName:n.citation.customMetadata.content_name||"",content:n.citation.customMetadata.content||"",highlighted_content:n.citation.customMetadata.highlighted_content||"",keywords:n.citation.customMetadata.keywords||[],relevanceScore:null===(c=n.citation.customMetadata)||void 0===c?void 0:c.relevance_score,brainStormIcon:l,customStyles:n.customStyles}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:Object.assign({margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",fontSize:"14px",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},null===(r=n.customStyles)||void 0===r?void 0:r.pill),citationTitle:{marginRight:"4px"},citationContent:Object.assign({width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"},null===(m=n.customStyles)||void 0===m?void 0:m.content)}})};export{i as StormeeCitationIcon,n as default};
|
|
2
2
|
//# sourceMappingURL=StormeeCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import s,{memo as i,useState as n,useCallback as a,useEffect as l}from"react";import r from"./StormeeContent.module.css.js";import o from"./components/ProblemStatementCard.js";import{renderCitationAIConfidenceDisplay as d}from"../../../shared/CitationAIConfidenceDisplay.js";import{CircularProgress as c}from"@mui/material";import m from"../audio-citation/searchwaveform.js";import{formatTime as u}from"../audio-citation/SearchWaveFromWrapper.js";import{useRequirementAI as g}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{AudioPlayProvider as p}from"../audio-citation/store/autoplay.wavefrom.js";const h=i(({brainStormIcon:i="https://storymod-assests.pages.dev/brainstorm-cropped.gif",themeColor:h,segments:v,gsUtilPath:y,contentName:j,content:b,keywords:f,relevanceScore:O,highlighted_content:N,customStyles:S})=>{var T,C,x,I;const[k,w]=n(0),[P,R]=n(0),{queryClient:U,useGetSignedUrlQuery:A,useGetSignedUrlMutation:E,useExtractAudioPeaksMutation:W,useExtractAudioPeaksQuery:_,useGetVideoSignedUrlQuery:L,useGetVideoSignedUrlMutation:M}=g().apiCachingConfig,Q=["getSignedUrl",y],D=["extractAudioPeaks",y],{data:G}=A(y,Q),{data:q}=_(y,D),{mutate:V,isPending:z}=E(y),{mutate:H,isPending:F}=W(y),B=a(e=>{w(e)},[]);l(()=>{y&&(U.getQueryData(Q)||null==V||V({gsUtilPath:y}),U.getQueryData(D)||null==H||H({gsUtilPath:y}))},[y]);const J=(e,i,n)=>{if("string"==typeof e)return t("img",{loading:"lazy",alt:"brain_storm_icon",src:e,className:i,style:n});if(s.isValidElement(e)){const t=e,i=Object.assign(Object.assign({},n),t.props.style);return s.cloneElement(t,{style:i})}return t("span",Object.assign({style:n},{children:e}))};return e("div",Object.assign({className:r.container,style:null==S?void 0:S.container},{children:[e("div",Object.assign({className:r.header,style:null==S?void 0:S.header},{children:[e("div",Object.assign({className:r.headerLeft,style:null==S?void 0:S.headerLeft},{children:[J(i,r.headerIcon,null!==(T=null==S?void 0:S.bsIcon)&&void 0!==T?T:null==S?void 0:S.headerIcon),t("h2",Object.assign({className:r.headerTitle,style:null==S?void 0:S.headerTitle},{children:"Stormee.ai"}))]})),d(O,!0,null==S?void 0:S.confidenceDisplay)]})),e("div",Object.assign({className:r.contentRow,style:null==S?void 0:S.contentRow},{children:[e("div",Object.assign({className:r.leftColumn,style:null==S?void 0:S.leftColumn},{children:[z||F?e("div",Object.assign({className:r.loader,style:null==S?void 0:S.loader},{children:[t(c,{size:48,thickness:4}),t("span",Object.assign({className:r.loaderText,style:null==S?void 0:S.loaderText},{children:"Loading audio peaks..."}))]})):G&&q&&t(p,{children:t(m,{colorCode:h,audio_file_name:G,matchedSegments:v,peaks:null!==(C=q.peaks)&&void 0!==C?C:[],duration:null!==(x=q.duration)&&void 0!==x?x:0,chevronIndex:P,setChevronIndex:R,onTimeUpdate:B,currentAudioTime:k,showOnlyMatched:!0,customStyles:null==S?void 0:S.waveform})}),e("div",Object.assign({className:r.transcriptCard,style:null==S?void 0:S.transcriptCard},{children:[e("div",Object.assign({className:r.transcriptHeader,style:null==S?void 0:S.transcriptHeader},{children:[J(i,r.transcriptIcon,null!==(I=null==S?void 0:S.bsIcon)&&void 0!==I?I:null==S?void 0:S.transcriptIcon),t("div",Object.assign({className:r.transcriptTitle,style:null==S?void 0:S.transcriptTitle},{children:"STORMEE'S TRANSCRIPT"}))]})),t("div",Object.assign({className:r.segmentList,style:null==S?void 0:S.segmentList},{children:v.map((s,i)=>t("div",Object.assign({className:r.segment,style:null==S?void 0:S.segment},{children:e("div",Object.assign({className:r.segmentRow,style:null==S?void 0:S.segmentRow},{children:[t("span",Object.assign({className:r.timestamp,style:null==S?void 0:S.timestamp},{children:u(s.start_time)})),t("div",Object.assign({className:r.segmentTextWrapper,style:null==S?void 0:S.segmentTextWrapper},{children:t("p",Object.assign({className:r.segmentText,style:null==S?void 0:S.segmentText},{children:s.text}))}))]}))}),i))}))]}))]})),t(o,{title:j,content:b,highlight:null!=N?N:"",keyTakeaway:f,brainStormIcon:i,customStyles:S})]}))]}))});export{h as default};
|
|
2
2
|
//# sourceMappingURL=StormeeContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,jsxs as
|
|
1
|
+
import{jsx as t,jsxs as s}from"react/jsx-runtime";import e from"react";import n from"./GradientButton.module.css.js";const o=({brainStormIcon:o="https://storymod-assests.pages.dev/brainstorm-cropped.gif",customStyles:a})=>t("button",Object.assign({className:n.button,style:null==a?void 0:a.gradientButton},{children:s("span",Object.assign({className:n.content,style:null==a?void 0:a.gradientContent},{children:[(()=>{if("string"==typeof o)return t("img",{loading:"lazy",src:o,className:n.icon,alt:"Brainstorm icon",style:null==a?void 0:a.bsIcon});if(e.isValidElement(o)){const t=o;return e.cloneElement(t,{style:Object.assign(Object.assign({},null==a?void 0:a.bsIcon),t.props.style)})}return t("span",Object.assign({style:null==a?void 0:a.bsIcon},{children:o}))})(),t("span",Object.assign({className:n.label,style:null==a?void 0:a.gradientButtonLabel},{children:"Extracted from Key Takeaways"}))]}))}));export{o as default};
|
|
2
2
|
//# sourceMappingURL=GradientButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import t from"react-markdown";import l from"./GradientButton.js";import s from"./ProblemStatementCard.module.css.js";const n=({title:n,content:r,highlight:i,keyTakeaway:o,className:c,brainStormIcon:m,customStyles:d})=>(console.log("content:::",r),e("div",Object.assign({className:`${s.card} ${null!=c?c:""}`,style:null==d?void 0:d.problemCard},{children:[e("div",Object.assign({className:s.header,style:null==d?void 0:d.problemHeader},{children:[a(l,{customStyles:d,brainStormIcon:m}),a("div",Object.assign({className:s.titleWrapper,style:null==d?void 0:d.problemTitleWrapper},{children:a("h2",Object.assign({className:s.title,style:null==d?void 0:d.problemTitle},{children:n}))}))]})),a("div",Object.assign({className:s.contentWrapper,style:null==d?void 0:d.contentWrapper},{children:a("p",Object.assign({className:s.content,style:null==d?void 0:d.problemContent},{children:a(t,Object.assign({className:s.markdown},{children:r.replace(/\\n/g,"\n")}))}))})),a("div",Object.assign({className:s.takeawayContainer,style:null==d?void 0:d.takeawayContainer},{children:o.map((e,t)=>a("span",Object.assign({className:`${s.takeaway} \n ${0===t?s.firstTakeaway:""}`,style:null==d?void 0:d.takeawayPill},{children:e}),`${t}-${e}`))}))]})));export{n as default};
|
|
2
2
|
//# sourceMappingURL=ProblemStatementCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";const e=({height:e=16,width:
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";const e=({height:e=16,width:i=16})=>t("svg",Object.assign({width:i,height:e,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{d:"M3 0.5H2.9C2.05992 0.5 1.63988 0.5 1.31901 0.66349C1.03677 0.8073 0.8073 1.03677 0.66349 1.31901C0.5 1.63988 0.5 2.05992 0.5 2.9V3M3 9.5H2.9C2.05992 9.5 1.63988 9.5 1.31901 9.33651C1.03677 9.1927 0.8073 8.96323 0.66349 8.68099C0.5 8.36012 0.5 7.94008 0.5 7.1V7M9.5 3V2.9C9.5 2.05992 9.5 1.63988 9.33651 1.31901C9.1927 1.03677 8.96323 0.8073 8.68099 0.66349C8.36012 0.5 7.94008 0.5 7.1 0.5H7M9.5 7V7.1C9.5 7.94008 9.5 8.36012 9.33651 8.68099C9.1927 8.96323 8.96323 9.1927 8.68099 9.33651C8.36012 9.5 7.94008 9.5 7.1 9.5H7",stroke:"#141414","stroke-linecap":"round","stroke-linejoin":"round"})}));export{e as default};
|
|
2
2
|
//# sourceMappingURL=FullScreenIcon.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{Dialog as s}from"@mui/material";import
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{Dialog as s}from"@mui/material";import i from"./ImagePreviewDialog.module.css.js";const a=({open:a,handleClose:o,CloseIcon:c,src:n,styles:t})=>e(s,Object.assign({maxWidth:"lg",onClose:o,open:a},{children:l("div",Object.assign({className:i.container,style:null==t?void 0:t.container},{children:[l("div",Object.assign({className:i.header,style:null==t?void 0:t.header},{children:[e("h1",Object.assign({className:i.title,style:null==t?void 0:t.title},{children:"Image Preview"})),e("div",Object.assign({className:i.closeIconWrapper,style:null==t?void 0:t.closeIconWrapper,onClick:o},{children:e(c,{className:i.closeIcon,style:null==t?void 0:t.closeIcon})}))]})),e("img",{src:n,alt:"Preview",className:i.image,style:null==t?void 0:t.image})]}))}));export{a as default};
|
|
2
2
|
//# sourceMappingURL=ImagePreviewDialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import t from"./WebCitationIcon.js";import r from"./Webcitation.module.css.js";const n=({label:n,url:s,customStyles:i,customIcons:l})=>{const a=(null==l?void 0:l.webCitationIcon)||e(t,{});return o("a",Object.assign({className:r.link,style:null==i?void 0:i.headerLink,target:"_blank",rel:"noopener noreferrer",href:s},{children:[n,a]}))};export{n as default};
|
|
2
2
|
//# sourceMappingURL=WebCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as C,jsxs as i}from"react/jsx-runtime";const
|
|
1
|
+
import{jsx as C,jsxs as i}from"react/jsx-runtime";const t=()=>C("div",{children:i("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[i("g",Object.assign({clipPath:"url(#clip0_3025_73390)"},{children:[C("path",{d:"M13.82 14.0039H9.66C9.56 13.3439 9.5 12.6839 9.5 12.0039C9.5 11.3239 9.56 10.6539 9.66 10.0039H14.34C14.43 10.6539 14.5 11.3239 14.5 12.0039C14.5 12.5039 14.46 13.0039 14.4 13.4639C15 12.9639 15.72 12.5739 16.5 12.3239V12.0039C16.5 11.3239 16.44 10.6639 16.36 10.0039H19.74C19.9 10.6439 20 11.3139 20 12.0039V12.1839C20.7 12.3539 21.35 12.6339 21.95 13.0039C22 12.6839 22 12.3439 22 12.0039C22 6.50391 17.5 2.00391 12 2.00391C6.47 2.00391 2 6.50391 2 12.0039C2 17.5039 6.5 22.0039 12 22.0039C12.34 22.0039 12.68 22.0039 13 21.9539C12.59 21.2939 12.29 20.5539 12.13 19.7539C12.09 19.8239 12.05 19.8939 12 19.9639C11.17 18.7639 10.5 17.4339 10.09 16.0039H12.5C12.81 15.2539 13.26 14.5839 13.82 14.0039ZM18.92 8.00391H15.97C15.6565 6.76552 15.1931 5.57001 14.59 4.44391C16.43 5.07391 17.96 6.34391 18.92 8.00391ZM12 4.03391C12.83 5.23391 13.5 6.57391 13.91 8.00391H10.09C10.5 6.57391 11.17 5.23391 12 4.03391ZM4.26 14.0039C4.1 13.3639 4 12.6939 4 12.0039C4 11.3139 4.1 10.6439 4.26 10.0039H7.64C7.56 10.6639 7.5 11.3239 7.5 12.0039C7.5 12.6839 7.56 13.3439 7.64 14.0039H4.26ZM5.08 16.0039H8C8.35 17.2539 8.8 18.4539 9.4 19.5639C7.57827 18.9362 6.04429 17.6721 5.08 16.0039ZM8 8.00391H5.08C6.03864 6.33094 7.57466 5.06515 9.4 4.44391C8.8 5.55391 8.35 6.75391 8 8.00391Z",fill:"#5C75F4"}),C("path",{d:"M16.01 14.9539C14.8502 14.9539 13.91 15.8941 13.91 17.0539C13.9121 18.1852 14.8099 19.1115 15.9405 19.1489L14.61 21.9539H16.01L17.9074 17.9539C18.0416 17.6709 18.1026 17.365 18.11 17.0539C18.11 15.8941 17.1698 14.9539 16.01 14.9539ZM21.61 14.9539C20.4502 14.9539 19.51 15.8941 19.51 17.0539C19.5121 18.1852 20.4099 19.1115 21.5405 19.1489L20.21 21.9539H21.61L23.5074 17.9539C23.6416 17.6709 23.7026 17.365 23.71 17.0539C23.71 15.8941 22.7698 14.9539 21.61 14.9539Z",fill:"#5C75F4"})]})),C("defs",{children:C("clipPath",Object.assign({id:"clip0_3025_73390"},{children:C("rect",{width:"24",height:"24",fill:"white"})}))})]}))});export{t as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationIcon.js.map
|
package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,jsxs as o}from"react/jsx-runtime";import e from"./WebCitationIcon.js";import n from"./WebCitation.js";import i from"../../../../CitationRenderer/CitationRenderer.js";const r=({label:r,url:l,customStyles:s,customIcons:a})=>{const c=(null==a?void 0:a.webCitationIcon)||t(e,{});return t(i,{inLineCitation:!0,citationTitle:r,chevronDownComponent:c,chevronUpComponent:c,citationComponent:o("div",{className:"p-4 border rounded-lg bg-white mt-2",style:null==s?void 0:s.content,children:[t("p",{className:"text-sm text-gray-600 mb-2",style:null==s?void 0:s.footerText,children:"Source Link:"}),t(n,{label:r,url:l,customStyles:s,customIcons:a})]}),styles:{pillButton:{margin:"0px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"
|
|
1
|
+
import{jsx as t,jsxs as o}from"react/jsx-runtime";import e from"./WebCitationIcon.js";import n from"./WebCitation.js";import i from"../../../../CitationRenderer/CitationRenderer.js";const r=({label:r,url:l,customStyles:s,customIcons:a})=>{const c=(null==a?void 0:a.webCitationIcon)||t(e,{});return t(i,{inLineCitation:!0,citationTitle:r,chevronDownComponent:c,chevronUpComponent:c,citationComponent:o("div",Object.assign({className:"p-4 border rounded-lg bg-white mt-2",style:null==s?void 0:s.content},{children:[t("p",Object.assign({className:"text-sm text-gray-600 mb-2",style:null==s?void 0:s.footerText},{children:"Source Link:"})),t(n,{label:r,url:l,customStyles:s,customIcons:a})]})),styles:{pillButton:Object.assign({margin:"0px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==s?void 0:s.pill)}})};export{r as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationRenderer.js.map
|
package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{CircularProgress as l}from"@mui/material";import{SquareArrowOutUpRight as t}from"lucide-react";import{useState as s,useEffect as o}from"react";import r from"./WebCitationWithImageContent.module.css.js";import{useRequirementAI as n}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./ImagePreviewDialog.js";import c from"./FullScreenIcon.js";const d=d=>{var m,u,g,v,h,y,p,f,b,S,j,k,L,I,N;const{queryClient:P,useGetSignedUrlQuery:C,useGetSignedUrlMutation:O}=n().apiCachingConfig,U=["getSignedUrl",d.gsUtilPath],{data:F}=C(d.gsUtilPath,U),{mutate:W,isPending:w}=O(d.gsUtilPath),[x,D]=s(!1),q=(null===(m=d.customIcons)||void 0===m?void 0:m.FullScreenIcon)||e(c,{});return o(()=>{if(!d.gsUtilPath)return void console.error("error","Error","Please provide valid gsUtilPath.");P.getQueryData(U)||w||W({gsUtilPath:d.gsUtilPath})},[d.gsUtilPath,P,U,W,w]),i("div",Object.assign({className:r.container,style:null===(u=d.customStyles)||void 0===u?void 0:u.content},{children:[e("div",Object.assign({className:r.header,style:null===(g=d.customStyles)||void 0===g?void 0:g.header},{children:e("div",Object.assign({className:r.headerLeft,style:null===(v=d.customStyles)||void 0===v?void 0:v.headerLeft},{children:e("a",Object.assign({className:r.headerLink,style:null===(h=d.customStyles)||void 0===h?void 0:h.headerLink,target:"_blank",rel:"noopener noreferrer",href:d.url},{children:d.label}))}))})),w?i("div",Object.assign({className:r.loadingContainer,style:null===(y=d.customStyles)||void 0===y?void 0:y.loadingContainer},{children:[e(l,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),e("span",Object.assign({className:r.loadingLabel,style:null===(p=d.customStyles)||void 0===p?void 0:p.loadingLabel},{children:"Loading Image..."}))]})):F&&i("div",Object.assign({className:r.imageWrapper,style:null===(f=d.customStyles)||void 0===f?void 0:f.imageWrapper},{children:[e("img",{src:F,alt:"images",className:r.image,style:null===(b=d.customStyles)||void 0===b?void 0:b.image,onError:e=>{e.target.src="path/to/fallback-image.png",console.error("Failed to load image from signed URL")}}),e("div",Object.assign({className:r.fullscreenButton,style:null===(S=d.customStyles)||void 0===S?void 0:S.fullscreenButton,onClick:()=>D(!0)},{children:q})),e(a,{open:x,handleClose:()=>D(!1),src:F,CloseIcon:null==d?void 0:d.PreviewDialogCloseIcon,styles:null===(j=d.customStyles)||void 0===j?void 0:j.previewDialog})]})),e("div",Object.assign({className:r.footer,style:null===(k=d.customStyles)||void 0===k?void 0:k.footer},{children:i("div",Object.assign({className:r.footerInner,style:null===(L=d.customStyles)||void 0===L?void 0:L.footerText},{children:[e("span",{children:"Open link in new tab to read in detail"}),i("a",Object.assign({className:r.visitLink,style:null===(I=d.customStyles)||void 0===I?void 0:I.footerLink,href:d.url,target:"_blank",rel:"noopener noreferrer"},{children:[e("span",{children:"Visit Link"}),e(t,{className:r.visitLinkIcon,style:null===(N=d.customStyles)||void 0===N?void 0:N.visitLinkIcon})]}))]}))}))]}))};export{d as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import o from"./WebCitationWithImageContent.js";import i from"./WebCitationIcon.js";import n from"../../../../CitationRenderer/CitationRenderer.js";const e=({title:e,citation:a,customStyles:r,customIcons:l})=>{var c,s,d,u;const p=(null==l?void 0:l.webCitationIcon)||t(i,{});return t(n,{inLineCitation:!0,citationTitle:e,citationId:`web-citation-${a.citation_number}`,chevronDownComponent:p,chevronUpComponent:p,citationComponent:t(o,{gsUtilPath:(null===(c=a.customMetadata)||void 0===c?void 0:c.screenshot_url)||(null===(s=a.customMetadata)||void 0===s?void 0:s.gs_util_url)||"",relevanceScore:null===(d=a.customMetadata)||void 0===d?void 0:d.relevance_score,url:(null===(u=a.customMetadata)||void 0===u?void 0:u.link)||"",label:e,PreviewDialogCloseIcon:()=>t("span",{children:"X"}),customStyles:r,customIcons:l}),styles:{pillButton:{margin:"0px 10px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import o from"./WebCitationWithImageContent.js";import i from"./WebCitationIcon.js";import n from"../../../../CitationRenderer/CitationRenderer.js";const e=({title:e,citation:a,customStyles:r,customIcons:l})=>{var c,s,d,u;const p=(null==l?void 0:l.webCitationIcon)||t(i,{});return t(n,{inLineCitation:!0,citationTitle:e,citationId:`web-citation-${a.citation_number}`,chevronDownComponent:p,chevronUpComponent:p,citationComponent:t(o,{gsUtilPath:(null===(c=a.customMetadata)||void 0===c?void 0:c.screenshot_url)||(null===(s=a.customMetadata)||void 0===s?void 0:s.gs_util_url)||"",relevanceScore:null===(d=a.customMetadata)||void 0===d?void 0:d.relevance_score,url:(null===(u=a.customMetadata)||void 0===u?void 0:u.link)||"",label:e,PreviewDialogCloseIcon:()=>t("span",{children:"X"}),customStyles:r,customIcons:l}),styles:{pillButton:Object.assign({margin:"0px 10px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px"},null==r?void 0:r.pill),citationContent:Object.assign({width:"100%",background:"transparent",marginTop:"10px"},null==r?void 0:r.content)}})};export{e as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as n,useEffect as l}from"react";import{Pencil as o,Save as a,X as s}from"lucide-react";import{preprocessUserStoryForEdit as r,formatMarkdown as d,postprocessUserStoryAfterEdit as c}from"../../utils/user-story.utils.js";import u from"../userstory-with-citation/UserStoryWithCitation.js";import v from"./PartialRequirementContent.module.css.js";import{Tooltip as m}from"@mui/material";import{useRequirementAI as p}from"../RequirementAIWrapper/RequirementAIWrapper.js";import g from"../RichTextEditor/RichTextEditor.js";const y=({loadingPartialRequirements:y,localUserStory:C,setLocalUserStory:b,onCraFlowDiffAgentAction:h,disableEditing:j,isCraflow:S=!0,onCraAccept:R,onCraReject:O,CDNeededInChip:q})=>{var f,P,w,B,N,D,A,k,E,U,x,W,I,T,z,F,L,H;const[M,V]=n(!1),[G,J]=n(""),{customStyles:K,segmentComponentConfig:Q}=p();l(()=>{j&&V(!1)},[j]),l(()=>{var e;J(null===(e=null==C?void 0:C[0])||void 0===e?void 0:e.value)},[C]);if(y)return e("div",Object.assign({className:v.skeletonWrapper,style:null===(f=null==K?void 0:K.PartialRequirementContentStyles)||void 0===f?void 0:f.skeletonWrapper},{children:[1,2,3,4,5].map(t=>{var i;return e("div",{className:v.skeletonLine,style:null===(i=null==K?void 0:K.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},t)})}));const X=!G||""===G.trim();return t("div",Object.assign({className:v.wrapper,style:null===(P=null==K?void 0:K.PartialRequirementContentStyles)||void 0===P?void 0:P.wrapper},{children:[e("div",Object.assign({className:v.actionBar,style:null===(w=null==K?void 0:K.PartialRequirementContentStyles)||void 0===w?void 0:w.actionBar},{children:M?t(i,{children:[t("span",Object.assign({className:v.editingBadge,style:null===(A=null==K?void 0:K.PartialRequirementContentStyles)||void 0===A?void 0:A.editingBadge},{children:[e("span",{className:v.editingDot,style:null===(k=null==K?void 0:K.PartialRequirementContentStyles)||void 0===k?void 0:k.editingDot}),"Editing"]})),e("div",{className:v.btnDivider,style:null===(E=null==K?void 0:K.PartialRequirementContentStyles)||void 0===E?void 0:E.btnDivider}),e(m,Object.assign({title:X?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:Object.assign({},null===(U=null==K?void 0:K.PartialRequirementContentStyles)||void 0===U?void 0:U.headerTooltip)}}},{children:e("span",{children:e("button",Object.assign({className:v.saveBtn,style:Object.assign(Object.assign(Object.assign({},null===(x=null==K?void 0:K.PartialRequirementContentStyles)||void 0===x?void 0:x.actionBtn),null===(W=null==K?void 0:K.PartialRequirementContentStyles)||void 0===W?void 0:W.saveBtn),{opacity:X?.5:1,cursor:X?"not-allowed":"pointer"}),onClick:()=>{X||(b(e=>{const t=Object.assign(Object.assign({},e[0]),{value:c(G)});return null==h||h("accept",[t]),[t]}),V(!1))},disabled:X},{children:e(a,{size:16})}))})})),e("button",Object.assign({className:v.cancelBtn,style:Object.assign(Object.assign({},null===(I=null==K?void 0:K.PartialRequirementContentStyles)||void 0===I?void 0:I.actionBtn),null===(T=null==K?void 0:K.PartialRequirementContentStyles)||void 0===T?void 0:T.cancelBtn),onClick:()=>{var e;J(null===(e=null==C?void 0:C[0])||void 0===e?void 0:e.value),V(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:e(s,{size:16})}))]}):e(m,Object.assign({title:j?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:Object.assign({},null===(B=null==K?void 0:K.PartialRequirementContentStyles)||void 0===B?void 0:B.headerTooltip)}}},{children:e("span",{children:e("button",Object.assign({className:v.editBtn,style:Object.assign(Object.assign(Object.assign({},null===(N=null==K?void 0:K.PartialRequirementContentStyles)||void 0===N?void 0:N.actionBtn),null===(D=null==K?void 0:K.PartialRequirementContentStyles)||void 0===D?void 0:D.editBtn),{opacity:j?.5:1,cursor:j?"not-allowed":"pointer"}),onClick:()=>{j||V(!0)},disabled:j,"aria-label":"Edit requirement"},{children:e(o,{size:16})}))})}))})),e("div",M?Object.assign({className:v.editorContainer,style:null===(z=null==K?void 0:K.PartialRequirementContentStyles)||void 0===z?void 0:z.editorContainer},{children:e(g,{minHeight:"100%",height:"100%",type:"string",value:r(d((null===(F=null==C?void 0:C[0])||void 0===F?void 0:F.value)||"")||""),handleUpdateState:(e,t)=>{J(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):Object.assign({className:v.viewContainer,style:null===(L=null==K?void 0:K.PartialRequirementContentStyles)||void 0===L?void 0:L.viewContainer},{children:e(u,{message:d((null===(H=null==C?void 0:C[0])||void 0===H?void 0:H.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:C,setCraUserStory:b,onCraFlowDiffAgentAction:h,displayActionButtons:!M},isCraflow:S,onCraAccept:R,onCraReject:O,customStyles:null==K?void 0:K.UserStoryWithCitationCustomStyles,CDNeededInChip:q})}))]}))};export{y as PartialRequirementContent,y as default};
|
|
2
2
|
//# sourceMappingURL=PartialRequirementContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i,Fragment as
|
|
1
|
+
import{jsx as e,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronUp as s,ChevronDown as l,Check as t,SquareArrowOutUpRight as a,Loader2 as r}from"lucide-react";import c from"./CustomChatCrRedirection.module.css.js";import d from"../ai-reasoning/AiReasoningCitationContent.js";import g from"../../icons/CognitiveDecision.js";import{Tooltip as u}from"@mui/material";function p({isDefaultOpen:p,processItemId:m,isCompleted:v,mode:b,msg:j,type:h,id:O,aiReason:y,text:f,headerText:C,decisionStrength:x,statusUi:D,panelRef:N,onHandleSend:T,onRedirectClick:I,gapType:S,isGenerating:k=!1,customStyles:R,customIcons:B,cognitiveDecisionHeaders:W}){const[P,H]=o(p),$=(null==B?void 0:B.highConfidence)||e(g,{}),A=()=>{"cra"===b?null==T||T(`Discuss ambiguities on ${f}`,O):null==T||T(`Deep Dive into ${S} ${C}: ${f}`,O)};return i("div",Object.assign({className:[c.outerWrapper,k?c.outerWrapperDisabled:""].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.redirectionOuterWrapper),k?null==R?void 0:R.redirectionOuterWrapperDisabled:{})},{children:[i("div",Object.assign({className:[c.card,k?c.cardDisabled:c.cardInteractive].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.redirectionCard),k?null==R?void 0:R.redirectionCardDisabled:null==R?void 0:R.redirectionCardInteractive)},{children:[i("div",Object.assign({className:c.leftSide,style:null==R?void 0:R.redirectionLeftSide},{children:[e(u,Object.assign({title:C+" "+f,placement:"top",slotProps:{tooltip:{sx:Object.assign({},null==R?void 0:R.headerTooltip)}}},{children:i("span",Object.assign({className:c.textBlock,style:null==R?void 0:R.redirectionTextBlock},{children:[C&&i("span",Object.assign({className:c.headerText,style:null==R?void 0:R.redirectionHeaderText},{children:[C,f?" ":""]})),f]}))})),i("span",Object.assign({onClick:e=>{e.stopPropagation(),k||H(!P)},className:[c.reasoningToggle,k?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.reasoningToggle),k?null==R?void 0:R.reasoningToggleDisabled:null==R?void 0:R.reasoningToggleActive)},{children:[$,e(P?s:l,{className:c.chevronIcon,style:null==R?void 0:R.chevronIcon})]}))]})),v?e("div",Object.assign({className:c.completeTickWrapper,style:null==R?void 0:R.completeTickWrapper},{children:e(t,{color:(null==R?void 0:R.checkColor)||"green"})})):i(n,{children:["risk-gap"===b&&i("div",Object.assign({className:c.rightSide,style:null==R?void 0:R.redirectionRightSide},{children:[e("button",Object.assign({disabled:k,className:[c.fixButton,k?c.fixButtonDisabled:""].join(" "),style:Object.assign(Object.assign({},null==R?void 0:R.redirectionFixButton),k?null==R?void 0:R.fixButtonDisabled:{}),onClick:e=>{e.stopPropagation(),k||A()}},{children:"Fix"})),e(a,{onClick:k?void 0:()=>{k||null==I||I({type:h,id:O,aiReason:y,msg:j,meta:{headerText:C,decisionStrength:x,text:f}})},size:18,className:[k?c.redirectIconDisabled:c.redirectIcon].join(" "),style:Object.assign({},k?null==R?void 0:R.redirectIconDisabled:null==R?void 0:R.redirectIcon)})]})),"cra"===b&&!p&&e("div",Object.assign({className:c.rightSide,style:null==R?void 0:R.redirectionRightSide},{children:m===O?e("div",Object.assign({className:c.loaderWrapper,style:null==R?void 0:R.loaderWrapper},{children:e(r,{size:16,className:c.loaderIcon,color:"grey",style:Object.assign({animation:"spin 1s linear infinite"},null==R?void 0:R.loaderIcon)})})):e("button",Object.assign({className:[c.clarifyButton].join(" "),style:Object.assign({color:k?"grey":""},null==R?void 0:R.redirectionClarifyButton),disabled:k,onClick:e=>{e.stopPropagation(),A()}},{children:"Clarify"}))}))]})]})),P&&e(d,{label:"cra"===b?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==y?void 0:y.Reasoning)||"",gap:(null==y?void 0:y.Gap)||"",relevance_score:Number(null==y?void 0:y.Confidence_score),explanation:(null==y?void 0:y.explanation)||""},onSelectProceed:A,customStyles:null==R?void 0:R.aiReasoningStyles,customIcons:B,cognitiveDecisionHeaders:W})]}))}export{p as CustomChatCrRedirection};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{__rest as e}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useState as r,useMemo as i,useEffect as n,Children as a,isValidElement as l}from"react";import{capitalize as c}from"lodash";import{GapFilterContentWrapper as d}from"./GapFilterContentWrapper.js";import{GapFilterItem as s}from"./GapFilterItem.js";import{CustomChatCrRedirection as g}from"./CustomChatCrRedirection.js";import{SirenIcon as u,WarningIcon as p,SupportIcon as m}from"./gapFilterSvgs.js";import b from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";const C=["critical","recommendation","warning"];function f(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function y(t){return a.toArray(t).filter(e=>l(e)).filter(e=>{var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(t=>{var o,r;const i=t.props,{children:n}=i,a=e(i,["children"]),l={};Object.keys(a).forEach(e=>{e.startsWith("data-")||(l[e]=a[e])});const c=function(e){const t={};return Object.keys(e).forEach(o=>{o.startsWith("data-")&&(t[o.replace(/^data-/,"")]=e[o])}),t}(a),d=a["decision-strength"],s=a["data-is-completed"];return{text:n,headerText:a.headertext,tags:a.tags,dataAttrs:c,decisionStrength:d,attrs:l,type:"gapfilteritem"===t.type?"gapfilteritem":"crredirection",score:a.score,isCompleted:s,pendingCount:a.pendingcount,question:a.question,components:a.components,showFix:null!==(o=a.showfix)&&void 0!==o&&o,showRedirect:null!==(r=a.showredirect)&&void 0!==r&&r}})}const h={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}},v=({isDefaultOpen:e,processItemId:a,mode:l,node:v,children:x,type:S,supportedmodes:k="","decision-strength":I="",pendingdata:R="",isGeneratingGap:j=!1,selectedGapItemId:A="",onItemSelect:F,onHandleSend:B,onModeAction:T,msg:w,panelRef:G,getAccordionState:O,setAccordionState:D,registerGapFilterBlockCount:N,getShowGapReviewButtonType:E,customStyles:W,customIcons:$,cognitiveDecisionHeaders:H,onRedirectClick:U})=>{const q=S,z=f(I),[L,M]=r(()=>{var t;const o=null!==(t=null==O?void 0:O(q))&&void 0!==t?t:"";return"true"!==e||o?o:q}),_=e=>{M(e),null==D||D(q,e)},J=y(x),K=i(()=>J.reduce((e,t)=>{var o,r,i;const n=null!==(o=t.tags)&&void 0!==o?o:"Uncategorized",a=null!==(i=null===(r=t.dataAttrs)||void 0===r?void 0:r.categoryid)&&void 0!==i?i:"1";let l=e.find(e=>e.categoryName===n);return l||(l={categoryName:n,categoryId:a,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[]),[J]),P={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:t(u,{}),label:"risk-gap"===l?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:t(p,{}),label:"risk-gap"===l?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:t(m,{}),label:"risk-gap"===l?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:t(m,{}),label:"",decisionStrength:""}},Q=i(()=>{return e=q,C.includes(e)?{labelColor:P[q].labelColor,badgeBackgroundColor:P[q].badgeBackgroundColor,badgeTextColor:P[q].badgeTextColor,label:P[q].label,decisionStrength:z||P[q].decisionStrength}:{labelColor:P.default.labelColor,badgeBackgroundColor:P.default.badgeBackgroundColor,badgeTextColor:P.default.badgeTextColor,label:c(q),decisionStrength:z||""};var e},[q,z]);n(()=>{null==N||N(q,J.length)},[q,J.length,N]);const V=(e,t,o={})=>{if(j)return;const r=`${K[e].categoryId}-${t}`;null==F||F(r);const i=Object.assign(Object.assign({},K[e].items[t].dataAttrs),o);null==T||T(k,i)};return E&&E(),t(d,Object.assign({mode:l,type:q,config:Q,count:J.length,handleReviewClick:()=>{J.length>0&&_(q)},openAccordion:L,onAccordionChange:e=>{_(L===e?"":e)},shouldShowReviewButton:!1,pendingData:R,customStyles:W},{children:K.map((e,r)=>o("div",Object.assign({className:b.categoryGroup,style:null==W?void 0:W.categoryGroup},{children:["gapfilteritem"===e.type&&"Uncategorized"!==e.categoryName&&t("p",Object.assign({className:b.categoryLabel,style:null==W?void 0:W.categoryLabel},{children:e.categoryName})),e.items.map((o,i)=>{var n,c,d,u;const p=o.attrs||{},m=null===(n=o.dataAttrs)||void 0===n?void 0:n["cognitive-reasoning"],C=p.id||(null===(c=o.dataAttrs)||void 0===c?void 0:c.id)||"",f="I"===C[0]?"UI_REF":"CHAT_REF",y=null===(d=null==w?void 0:w.contextAwareAgentReasoning)||void 0===d?void 0:d[m],v=o.isCompleted,x="true"===p.isDefaultOpen||"true"===p.isdefaultopen;return"gapfilteritem"===o.type?t("div",Object.assign({className:[b.gapFilterItemWrapper,"Uncategorized"!==e.categoryName?b.gapFilterItemWrapperIndented:""].join(" "),style:null==W?void 0:W.blockContainer},{children:t(s,{isDefaultOpen:x,isCompleted:v,mode:l,index:i,isSelected:A===`${e.categoryId}-${i}`,onClick:()=>V(r,i),onFixClick:()=>V(r,i,{triggerFrom:"fix"}),onRedirect:()=>V(r,i,{triggerFrom:"redirect"}),item:o,isGenerating:j,aiReason:y,panelRef:null!=G?G:{current:null},id:m,customStyles:W,customIcons:$,cognitiveDecisionHeaders:H})}),i):t("div",Object.assign({className:b.crRedirectionGroup,style:null==W?void 0:W.crRedirectionGroup},{children:t("div",Object.assign({className:b.crRedirectionInner,style:null==W?void 0:W.crRedirectionInner},{children:t(g,{isDefaultOpen:x,processItemId:a,isCompleted:v,mode:l,msg:w,type:f,text:o.text,headerText:o.headerText,decisionStrength:o.decisionStrength,id:C,gapType:q,onHandleSend:B,isGenerating:j,aiReason:y,onRedirectClick:U,statusUi:null!==(u=h[q])&&void 0!==u?u:h.recommendation,panelRef:null!=G?G:{current:null},customStyles:W,customIcons:$,cognitiveDecisionHeaders:H})}))}),i)})]}),`${e.categoryName}-${r}`))}))};export{v as GapFilterBlock,f as normalizeDecisionStrength};
|
|
2
2
|
//# sourceMappingURL=GapFilterBlock.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{Accordion as
|
|
1
|
+
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{Accordion as i,AccordionItem as r,AccordionTrigger as t,AccordionContent as c}from"../../shared/Accordian.js";import{Sparkles as l}from"lucide-react";import o from"./GapFilterContentWrapper.module.css.js";const a=({mode:a,type:s,config:d,count:g,openAccordion:u,children:m,shouldShowReviewButton:h=!1,onAccordionChange:v,handleReviewClick:b,pendingData:p,customStyles:j})=>{const y=()=>{switch(s){case"critical":return null==j?void 0:j.triggerLabelCritical;case"warning":return null==j?void 0:j.triggerLabelWarning;case"recommendation":return null==j?void 0:j.triggerLabelRecommendation;default:return{}}};return e(i,Object.assign({type:"single",collapsible:!0,className:o.accordion,value:u,onValueChange:e=>v(e),style:null==j?void 0:j.accordion},{children:n(r,Object.assign({value:s,className:o.accordionItem,style:null==j?void 0:j.accordionItem},{children:[e(t,Object.assign({chevronPosition:"end",className:o.accordionTrigger,hideChevron:h,style:null==j?void 0:j.accordionTrigger},{children:n("div",Object.assign({className:o.triggerInner,style:null==j?void 0:j.triggerInner},{children:[n("div",Object.assign({className:o.triggerLeft,style:null==j?void 0:j.triggerLeft},{children:[n("p",Object.assign({className:o.triggerLabel,style:Object.assign({color:d.labelColor},y())},{children:[d.label,n("span",Object.assign({className:o.triggerLabelCount,style:y()},{children:["(",g,")"]}))]})),p.length>0&&n("span",Object.assign({className:o.triggerPending,style:null==j?void 0:j.triggerPending},{children:["(",p,")"]}))]})),"risk-gap"===a&&e("div",Object.assign({className:o.triggerRight,style:null==j?void 0:j.triggerRight},{children:n("p",Object.assign({className:o.decisionStrengthBadge,style:Object.assign({backgroundColor:d.badgeBackgroundColor,color:d.badgeTextColor},(()=>{switch(s){case"critical":return null==j?void 0:j.decisionStrengthBadgeCritical;case"warning":return null==j?void 0:j.decisionStrengthBadgeWarning;case"recommendation":return null==j?void 0:j.decisionStrengthBadgeRecommendation;default:return{}}})())},{children:[e(l,{className:o.decisionStrengthIcon,style:null==j?void 0:j.decisionStrengthIcon}),d.decisionStrength]}))}))]}))})),e(c,Object.assign({className:o.accordionContent,style:null==j?void 0:j.accordionContent},{children:e("div",Object.assign({className:o.accordionContentInner,style:null==j?void 0:j.accordionContentInner},{children:m}))}))]}))}))};export{a as GapFilterContentWrapper};
|
|
2
2
|
//# sourceMappingURL=GapFilterContentWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{SquareArrowOutUpRight as i,ChevronUp as t,ChevronDown as
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{SquareArrowOutUpRight as i,ChevronUp as t,ChevronDown as s}from"lucide-react";import{useState as n,useMemo as a}from"react";import{Tooltip as l}from"@mui/material";import c from"./GapFilterItem.module.css.js";import r from"../ai-reasoning/AiReasoningCitationContent.js";import d from"../../icons/CognitiveDecision.js";const m=e=>e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:c.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:c.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:c.scoreBadgeLow},g=({isDefaultOpen:g,isCompleted:u,mode:p,index:v,isSelected:b,onClick:j,item:f,onFixClick:O,onRedirect:h,aiReason:x,panelRef:N,id:C,isGenerating:R=!1,customStyles:y,customIcons:T,cognitiveDecisionHeaders:S})=>{const[w,B]=n(g),k=(null==T?void 0:T.highConfidence)||e(d,{});a(()=>f.components?f.components.split("||"):[],[f.components]);const I=a(()=>f.score&&isNaN(parseInt(f.score))?0:f.score?parseInt(f.score):0,[f.score]),D=m(I);return e("div",Object.assign({className:c.outerWrapper,onClick:j,style:null==y?void 0:y.itemOuterWrapper},{children:o("div",Object.assign({className:c.innerCard,style:null==y?void 0:y.itemInnerCard},{children:[o("div",Object.assign({className:c.contentBlock,style:null==y?void 0:y.contentBlock},{children:[o("div",Object.assign({className:c.topRow,style:null==y?void 0:y.itemTopRow},{children:[e("div",Object.assign({className:[c.questionText,b?c.questionTextSelected:c.questionTextDefault].join(" "),style:Object.assign(Object.assign({},null==y?void 0:y.itemQuestionText),b?null==y?void 0:y.itemQuestionTextSelected:null==y?void 0:y.itemQuestionTextDefault)},{children:e(l,Object.assign({title:f.question||"",placement:"top"},{children:e("span",{className:c.questionSpan,style:null==y?void 0:y.itemQuestionSpan})}))})),o("div",Object.assign({className:c.actionsRow,style:null==y?void 0:y.itemActionsRow},{children:[I>0&&e("div",Object.assign({className:[c.scoreBadge,D.className].join(" "),style:Object.assign(Object.assign(Object.assign(Object.assign({},null==y?void 0:y.itemScoreBadge),I>90?null==y?void 0:y.itemScoreBadgeHigh:{}),I>=70&&I<=90?null==y?void 0:y.itemScoreBadgeMedium:{}),I<70?null==y?void 0:y.itemScoreBadgeLow:{})},{children:`${I}%`})),f.showFix&&e("button",Object.assign({className:c.fixButton,onClick:e=>{e.stopPropagation(),O()},style:null==y?void 0:y.itemFixButton},{children:"Fix"})),f.showRedirect&&e(i,{color:"#3b82f6",size:14,className:c.redirectIcon,onClick:e=>{e.stopPropagation(),h()},style:null==y?void 0:y.itemRedirectIcon})]}))]})),o("div",Object.assign({className:[c.bottomRow,b?c.bottomRowSelected:c.bottomRowDefault].join(" "),style:b?Object.assign(Object.assign({},null==y?void 0:y.itemBottomRow),null==y?void 0:y.bottomRowSelected):Object.assign(Object.assign({},null==y?void 0:y.itemBottomRow),null==y?void 0:y.bottomRowDefault)},{children:[o("span",Object.assign({className:c.gapTextSpan,style:null==y?void 0:y.itemGapText},{children:[(null==f?void 0:f.headerText)?e("span",Object.assign({className:c.gapHeaderText,style:null==y?void 0:y.itemGapHeaderText},{children:f.headerText})):o("span",Object.assign({className:c.gapHeaderText,style:null==y?void 0:y.itemGapHeaderText},{children:["Gap ",v+1,"."]}))," ",f.text]})),C&&o("span",Object.assign({onClick:e=>{e.stopPropagation(),R||B(!w)},className:[c.reasoningToggle,R?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:null==y?void 0:y.itemReasoningToggle},{children:[k,e(w?t:s,{className:c.chevronIcon,style:null==y?void 0:y.chevronIcon})]}))]}))]})),w&&e(r,{label:"cra"===p?"Clarify":"Select this option",aiReason:{id:"1",reason:x.Reasoning||"",gap:x.Gap||"",relevance_score:Number(x.Confidence_score),explanation:x.explanation||""},onSelectProceed:O,customStyles:null==y?void 0:y.aiReasoningStyles,customIcons:T,cognitiveDecisionHeaders:S})]}))}))};export{g as GapFilterItem,m as getScoreColorStyles};
|
|
2
2
|
//# sourceMappingURL=GapFilterItem.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as C,jsxs as i}from"react/jsx-runtime";const
|
|
1
|
+
import{jsx as C,jsxs as i}from"react/jsx-runtime";const t=({width:i=12,height:t=12})=>C("div",{children:C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:i,height:t,viewBox:"0 0 12 12",fill:"none"},{children:C("path",{d:"M2.57129 9.58112H3.87643C4.0466 9.58112 4.21573 9.60137 4.38069 9.64187L5.75973 9.97698C6.05896 10.0499 6.37068 10.057 6.67302 9.99825L8.19778 9.7016C8.60056 9.62314 8.97108 9.43027 9.26146 9.1478L10.3402 8.0984C10.6483 7.79922 10.6483 7.31376 10.3402 7.01408C10.0629 6.74426 9.62365 6.71389 9.30985 6.9427L8.05259 7.85997C7.87253 7.99159 7.65344 8.06246 7.42811 8.06246H6.21404L6.98682 8.06243C7.42239 8.06243 7.77522 7.71921 7.77522 7.2955V7.14212C7.77522 6.79029 7.52907 6.48352 7.17833 6.39848L5.98559 6.10842C5.79148 6.06134 5.59269 6.03754 5.39286 6.03754C4.91045 6.03754 4.03724 6.43695 4.03724 6.43695L2.57129 7.04999M0.571289 6.83754L0.571289 9.73754C0.571289 10.0176 0.571289 10.1576 0.625786 10.2645C0.673722 10.3586 0.750213 10.4351 0.844294 10.483C0.951249 10.5375 1.09126 10.5375 1.37129 10.5375H1.77129C2.05131 10.5375 2.19133 10.5375 2.29828 10.483C2.39237 10.4351 2.46886 10.3586 2.51679 10.2645C2.57129 10.1576 2.57129 10.0176 2.57129 9.73754V6.83754C2.57129 6.55752 2.57129 6.41751 2.51679 6.31055C2.46886 6.21647 2.39237 6.13998 2.29828 6.09204C2.19133 6.03755 2.05132 6.03754 1.77129 6.03754H1.37129C1.09126 6.03754 0.95125 6.03754 0.844294 6.09204C0.750213 6.13998 0.673723 6.21647 0.625786 6.31055C0.571289 6.4175 0.571289 6.55752 0.571289 6.83754ZM8.16697 1.33367C7.86857 0.709244 7.18058 0.378438 6.51151 0.697732C5.84243 1.01703 5.55739 1.77424 5.83752 2.43896C6.01064 2.84977 6.50666 3.64755 6.86033 4.19706C6.99101 4.4001 7.05635 4.50162 7.15179 4.56101C7.23364 4.61195 7.33612 4.63941 7.43248 4.63622C7.54483 4.63251 7.65217 4.57726 7.86686 4.46676C8.44791 4.1677 9.27636 3.72482 9.6317 3.45561C10.2067 3.02 10.3491 2.21933 9.91862 1.61067C9.48816 1.002 8.73762 0.942105 8.16697 1.33367Z",stroke:"#15803D","stroke-width":"1.14286","stroke-linecap":"round","stroke-linejoin":"round"})}))}),e=({width:t=12,height:e=12})=>C("div",{children:i("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:"0 0 12 12",fill:"none"},{children:[C("g",Object.assign({"clip-path":"url(#clip0_1100_58099)"},{children:C("path",{d:"M1.7278 9.80469C1.7278 10.0417 1.91932 10.2333 2.15638 10.2333H9.84388C10.0809 10.2333 10.2724 10.0417 10.2724 9.80469V6.68415C10.2724 4.32433 8.35995 2.41183 6.00013 2.41183C3.64031 2.41183 1.7278 4.32433 1.7278 6.68415V9.80469ZM2.69209 6.68415C2.69209 4.85737 4.17334 3.37612 6.00013 3.37612C7.82691 3.37612 9.30816 4.85737 9.30816 6.68415V9.26897H4.5537V6.97879C4.5537 6.90513 4.49343 6.84487 4.41977 6.84487H3.83048C3.75682 6.84487 3.69655 6.90513 3.69655 6.97879V9.26897H2.69209V6.68415ZM2.04789 3.30246L2.57825 2.7721C2.61977 2.73058 2.61977 2.66228 2.57825 2.62076L1.66888 1.71138C1.64874 1.69144 1.62155 1.68026 1.59321 1.68026C1.56487 1.68026 1.53767 1.69144 1.51754 1.71138L0.98718 2.24174C0.96724 2.26188 0.956055 2.28907 0.956055 2.31741C0.956055 2.34575 0.96724 2.37294 0.98718 2.39308L1.89655 3.30246C1.93807 3.34397 2.00504 3.34397 2.04789 3.30246ZM11.0158 2.24174L10.4854 1.71138C10.4653 1.69144 10.4381 1.68026 10.4097 1.68026C10.3814 1.68026 10.3542 1.69144 10.3341 1.71138L9.42468 2.62076C9.40474 2.6409 9.39355 2.66809 9.39355 2.69643C9.39355 2.72477 9.40474 2.75196 9.42468 2.7721L9.95504 3.30246C9.99656 3.34397 10.0649 3.34397 10.1064 3.30246L11.0158 2.39308C11.0573 2.35022 11.0573 2.28326 11.0158 2.24174ZM10.2858 11.0904H1.71441C1.47736 11.0904 1.28584 11.2819 1.28584 11.519V11.8404C1.28584 11.8993 1.33405 11.9475 1.39298 11.9475H10.6073C10.6662 11.9475 10.7144 11.8993 10.7144 11.8404V11.519C10.7144 11.2819 10.5229 11.0904 10.2858 11.0904ZM5.62513 1.55469H6.37513C6.43405 1.55469 6.48227 1.50647 6.48227 1.44754V0.16183C6.48227 0.102902 6.43405 0.0546875 6.37513 0.0546875H5.62513C5.5662 0.0546875 5.51798 0.102902 5.51798 0.16183V1.44754C5.51798 1.50647 5.5662 1.55469 5.62513 1.55469Z",fill:"#B91C1C"})})),C("defs",{children:C("clipPath",Object.assign({id:"clip0_1100_58099"},{children:C("rect",{width:"12",height:"12",fill:"white"})}))})]}))}),h=({width:t=12,height:e=12})=>i("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:"0 0 12 12",fill:"none"},{children:[C("g",Object.assign({"clip-path":"url(#clip0_1100_58115)"},{children:C("path",{d:"M5.99988 4.49816V6.49816M5.99988 8.49816H6.00488M5.30754 1.94402L1.19509 9.04733C0.966991 9.44133 0.85294 9.63833 0.869797 9.80001C0.884499 9.94103 0.958384 10.0692 1.07306 10.1526C1.20454 10.2482 1.43217 10.2482 1.88744 10.2482H10.1123C10.5676 10.2482 10.7952 10.2482 10.9267 10.1526C11.0414 10.0692 11.1153 9.94103 11.13 9.80001C11.1468 9.63833 11.0328 9.44133 10.8047 9.04733L6.69222 1.94402C6.46493 1.55144 6.35129 1.35515 6.20303 1.28922C6.0737 1.23172 5.92606 1.23172 5.79673 1.28922C5.64846 1.35515 5.53482 1.55144 5.30754 1.94402Z",stroke:"#A16207","stroke-width":"1.14286","stroke-linecap":"round","stroke-linejoin":"round"})})),C("defs",{children:C("clipPath",Object.assign({id:"clip0_1100_58115"},{children:C("rect",{width:"12",height:"12",fill:"white"})}))})]}));export{e as SirenIcon,t as SupportIcon,h as WarningIcon};
|
|
2
2
|
//# sourceMappingURL=gapFilterSvgs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{__awaiter as e}from"tslib";import{jsx as l,jsxs as t}from"react/jsx-runtime";import{useState as n,useEffect as s,useMemo as i}from"react";import o from"@mui/material/Dialog";import a from"@mui/material/DialogTitle";import c from"@mui/material/DialogContent";import m from"@mui/material/DialogActions";import r from"@mui/material/IconButton";import d from"@mui/material/Radio";import{X as u,Info as b}from"lucide-react";import p from"./deleteSegmentDialog.module.css.js";const g=[{key:"this-segment",label:"This segment"},{key:"all-occurrences",label:"All occurrences of this segment"}],y=({open:y,onHide:h,onDelete:v,customDeleteStyles:f,customDeleteIcons:j})=>{const[O,N]=n(null),[k,D]=n(!1),C=(null==j?void 0:j.closeIcon)||l(u,{size:20}),x=(null==j?void 0:j.infoIcon)||l(b,{className:p.infoIcon});s(()=>{y&&(N(null),D(!1))},[y]);const B=i(()=>g.map(e=>Object.assign(Object.assign({},e),{label:"all-occurrences"===e.key?`${e.label}`:e.label})),[]),T=!O||k;return t(o,Object.assign({open:y,onClose:h,maxWidth:!1,PaperProps:{className:p.paper,style:null==f?void 0:f.paper}},{children:[t(a,Object.assign({className:p.title,style:null==f?void 0:f.title},{children:[l("span",Object.assign({className:p.titleText,style:null==f?void 0:f.titleText},{children:"Delete Segment"})),l(r,Object.assign({"aria-label":"close",onClick:h,className:p.closeButton,style:null==f?void 0:f.closeButton},{children:C}))]})),t(c,Object.assign({className:p.content,style:null==f?void 0:f.content},{children:[l("p",Object.assign({className:p.subtitle,style:null==f?void 0:f.subtitle},{children:"Choose what you'd like to delete."})),l("div",Object.assign({className:p.optionsContainer,style:null==f?void 0:f.optionsContainer},{children:B.map(e=>{const n=O===e.key;return t("label",Object.assign({htmlFor:`delete-segment-${e.key}`,className:`${p.optionLabel} ${n?p.optionSelected:""}`,style:Object.assign(Object.assign({},null==f?void 0:f.optionLabel),n?null==f?void 0:f.optionSelected:{})},{children:[l(d,{inputProps:{id:`delete-segment-${e.key}`},name:"delete-segment-scope",value:e.key,checked:n,onChange:()=>N(e.key),className:p.radio}),l("span",Object.assign({className:p.optionText,style:null==f?void 0:f.optionText},{children:e.label}))]}),e.key)})})),t("div",Object.assign({className:p.infoRow,style:null==f?void 0:f.infoRow},{children:[x,l("span",Object.assign({className:p.infoText,style:null==f?void 0:f.infoText},{children:"This action permanently deletes the selected segment(s) and cannot be undone."}))]}))]})),t(m,Object.assign({className:p.actions,style:null==f?void 0:f.actions},{children:[l("button",Object.assign({onClick:h,disabled:k,className:p.cancelButton,style:null==f?void 0:f.cancelButton},{children:"Cancel"})),t("button",Object.assign({onClick:()=>e(void 0,void 0,void 0,function*(){if(O){D(!0);try{yield v(O),h()}finally{D(!1)}}}),disabled:T,className:`${p.deleteButton} ${T?p.deleteButtonDisabled:""}`,style:Object.assign(Object.assign({},null==f?void 0:f.deleteButton),T?null==f?void 0:f.deleteButtonDisabled:{})},{children:[k&&l("span",{className:p.spinner}),"Delete segment"]}))]}))]}))};export{y as default};
|
|
2
2
|
//# sourceMappingURL=DeleteSegmentsDialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{__awaiter as e}from"tslib";import{jsx as t,jsxs as l}from"react/jsx-runtime";import{useState as s,useEffect as i}from"react";import n from"@mui/material/Dialog";import o from"@mui/material/DialogTitle";import a from"@mui/material/DialogContent";import c from"@mui/material/DialogActions";import r from"@mui/material/IconButton";import{X as m}from"lucide-react";import u from"./deleteSegmentDialog.module.css.js";import d from"./segment.module.css.js";const p=({open:p,onHide:g,onConfirm:b,customStyles:h,customIcons:f})=>{const[y,j]=s(!1),v=(null==f?void 0:f.closeIcon)||t(m,{size:20});i(()=>{p&&j(!1)},[p]);return l(n,Object.assign({open:p,onClose:g,maxWidth:!1,PaperProps:{className:u.paper,style:null==h?void 0:h.paper}},{children:[l(o,Object.assign({className:u.title,style:null==h?void 0:h.title},{children:[t("span",Object.assign({className:u.titleText,style:null==h?void 0:h.titleText},{children:"Rename this segment everywhere?"})),t(r,Object.assign({"aria-label":"close",onClick:g,className:u.closeButton,style:null==h?void 0:h.closeButton},{children:v}))]})),t(a,Object.assign({className:u.content,style:null==h?void 0:h.content},{children:l("p",Object.assign({className:u.subtitle,style:Object.assign({marginBottom:"24px",color:"#475569"},null==h?void 0:h.subtitle)},{children:["Renaming this segment will update its name across all ",t("strong",{children:"occurrences"})," where it is used. Do you want to continue?"]}))})),l(c,Object.assign({className:u.actions,style:null==h?void 0:h.actions},{children:[t("button",Object.assign({onClick:g,disabled:y,className:u.cancelButton,style:null==h?void 0:h.cancelButton},{children:"Cancel"})),l("button",Object.assign({onClick:()=>e(void 0,void 0,void 0,function*(){j(!0);try{yield b(),g()}catch(e){console.error("Failed to rename segment:",e)}finally{j(!1)}}),disabled:y,className:d.renameButton,style:Object.assign({},null==h?void 0:h.renameButton)},{children:[y&&t("span",{className:u.spinner}),"Rename segment"]}))]}))]}))};export{p as default};
|
|
2
2
|
//# sourceMappingURL=EditSegmentDialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import l from"./segment.module.css.js";import{X as s}from"lucide-react";const t=({label:t,segmentExampleComponent:n,customStyles:i,handleCancelExample:c})=>e("div",Object.assign({className:`${l.exampleWrapper}`,style:Object.assign({},null==i?void 0:i.exampleWrapper)},{children:[a("div",Object.assign({className:`${l.exampleHeaderText} ${l.uppercase}`,style:Object.assign({},null==i?void 0:i.exampleHeaderText)},{children:`{${t}}`})),e("div",Object.assign({className:`${l.exampleContainer}`,style:Object.assign({},null==i?void 0:i.exampleContainer)},{children:[e("div",Object.assign({className:`${l.exampleHeader}`,style:Object.assign({},null==i?void 0:i.exampleHeader)},{children:[a("p",Object.assign({className:`${l.exampleHeaderText}`,style:Object.assign({},null==i?void 0:i.exampleHeaderText)},{children:"Example: "})),a("button",Object.assign({className:`${l.cancelButton}`,onClick:c,style:Object.assign({},null==i?void 0:i.cancelButton)},{children:a(s,{size:16})}))]})),null!=n?n:a("p",Object.assign({className:`${l.exampleHeaderText}`,style:Object.assign({},null==i?void 0:i.exampleHeaderText)},{children:"No example available..."}))]}))]}));export{t as default};
|
|
2
2
|
//# sourceMappingURL=ExampleComponentWrapper.js.map
|