@e-llm-studio/instant-learning 1.3.0-alpha.267 → 1.3.0-alpha.269
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/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/NormalChat.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.styles.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.styles.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.styles.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.styles.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/LearningManagementWrapper.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/LearningManagementWrapper.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/api.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/api.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/endpoints.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/endpoints.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/transformSelectedGuidelineData.js +2 -0
- package/dist/cjs/features/LSCGuidelinesCart/transformSelectedGuidelineData.js.map +1 -0
- package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js +2 -0
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +2 -0
- package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +1 -0
- package/dist/cjs/features/LearningManagement/utils/learningMetadataUtils.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/NormalChat.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/Cart/Cart.js +2 -0
- package/dist/features/LSCGuidelinesCart/Cart/Cart.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/Cart/Cart.styles.js +2 -0
- package/dist/features/LSCGuidelinesCart/Cart/Cart.styles.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/GuidelineCard.js +2 -0
- package/dist/features/LSCGuidelinesCart/GuidelineCard.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/GuidelineCard.styles.js +2 -0
- package/dist/features/LSCGuidelinesCart/GuidelineCard.styles.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.js +2 -0
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +2 -0
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/LearningManagementWrapper.js +2 -0
- package/dist/features/LSCGuidelinesCart/LearningManagementWrapper.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/api.js +2 -0
- package/dist/features/LSCGuidelinesCart/api.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/endpoints.js +2 -0
- package/dist/features/LSCGuidelinesCart/endpoints.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/transformSelectedGuidelineData.js +2 -0
- package/dist/features/LSCGuidelinesCart/transformSelectedGuidelineData.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js +2 -0
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js.map +1 -0
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +2 -0
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +1 -0
- package/dist/features/LearningManagement/utils/learningMetadataUtils.js +1 -1
- package/dist/types/AccordianHeadTest.d.ts +3 -0
- package/dist/types/AccordianHeadTest.d.ts.map +1 -0
- package/dist/types/App.d.ts +4 -0
- package/dist/types/App.d.ts.map +1 -0
- package/dist/types/CommonComponents/AccordianHead/AccordianHead.d.ts +9 -0
- package/dist/types/CommonComponents/AccordianHead/AccordianHead.d.ts.map +1 -0
- package/dist/types/CommonComponents/CustomDropdown.d.ts +4 -0
- package/dist/types/CommonComponents/CustomDropdown.d.ts.map +1 -0
- package/dist/types/CommonComponents/GradientSparkleIcon.d.ts +6 -0
- package/dist/types/CommonComponents/GradientSparkleIcon.d.ts.map +1 -0
- package/dist/types/CommonComponents/HelloWorld.d.ts +3 -0
- package/dist/types/CommonComponents/HelloWorld.d.ts.map +1 -0
- package/dist/types/CommonComponents/NoTableData.d.ts +7 -0
- package/dist/types/CommonComponents/NoTableData.d.ts.map +1 -0
- package/dist/types/CommonComponents/Spinner.d.ts +5 -0
- package/dist/types/CommonComponents/Spinner.d.ts.map +1 -0
- package/dist/types/CommonConstants/CommonConstants.d.ts +5 -0
- package/dist/types/CommonConstants/CommonConstants.d.ts.map +1 -0
- package/dist/types/ComponentRegistry.d.ts +13 -0
- package/dist/types/ComponentRegistry.d.ts.map +1 -0
- package/dist/types/ContinueWithTemplateModal.d.ts +24 -0
- package/dist/types/ContinueWithTemplateModal.d.ts.map +1 -0
- package/dist/types/CustomStylesProvider.d.ts +6 -0
- package/dist/types/CustomStylesProvider.d.ts.map +1 -0
- package/dist/types/CustomThemeProvider.d.ts +7 -0
- package/dist/types/CustomThemeProvider.d.ts.map +1 -0
- package/dist/types/GoogleFilePickerDemo.d.ts +3 -0
- package/dist/types/GoogleFilePickerDemo.d.ts.map +1 -0
- package/dist/types/ILMarketplaceMockTest.d.ts +4 -0
- package/dist/types/ILMarketplaceMockTest.d.ts.map +1 -0
- package/dist/types/ILMarketplaceWrapper.d.ts +174 -0
- package/dist/types/ILMarketplaceWrapper.d.ts.map +1 -0
- package/dist/types/PublishToMarketplaceTest.d.ts +4 -0
- package/dist/types/PublishToMarketplaceTest.d.ts.map +1 -0
- package/dist/types/api/transport.d.ts +44 -0
- package/dist/types/api/transport.d.ts.map +1 -0
- package/dist/types/context/DataSelectedContext.d.ts +73 -0
- package/dist/types/context/DataSelectedContext.d.ts.map +1 -0
- package/dist/types/features/DataSelector/DataSelector.d.ts +18 -0
- package/dist/types/features/DataSelector/DataSelector.d.ts.map +1 -0
- package/dist/types/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +4 -0
- package/dist/types/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +1 -0
- package/dist/types/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +4 -0
- package/dist/types/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +1 -0
- package/dist/types/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +4 -0
- package/dist/types/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +1 -0
- package/dist/types/features/DataSelector/components/RlefDataTabsComponent.d.ts +4 -0
- package/dist/types/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +1 -0
- package/dist/types/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +4 -0
- package/dist/types/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +1 -0
- package/dist/types/features/DataSelector/components/SavedDataSetListScreen.d.ts +14 -0
- package/dist/types/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +1 -0
- package/dist/types/features/DataSelector/components/SelectedDataList.d.ts +4 -0
- package/dist/types/features/DataSelector/components/SelectedDataList.d.ts.map +1 -0
- package/dist/types/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +11 -0
- package/dist/types/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +1 -0
- package/dist/types/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts +8 -0
- package/dist/types/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts.map +1 -0
- package/dist/types/features/DataSelector/tables/ShowSelectedDataTable.d.ts +4 -0
- package/dist/types/features/DataSelector/tables/ShowSelectedDataTable.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/DocumentLearning.d.ts +21 -0
- package/dist/types/features/DocumentLearning/DocumentLearning.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/AudioWaveform.d.ts +13 -0
- package/dist/types/features/DocumentLearning/_components/AudioWaveform.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/BookLearningForm.d.ts +23 -0
- package/dist/types/features/DocumentLearning/_components/BookLearningForm.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/ChatComponent.d.ts +61 -0
- package/dist/types/features/DocumentLearning/_components/ChatComponent.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/ConflictingLearningWarnCard.d.ts +13 -0
- package/dist/types/features/DocumentLearning/_components/ConflictingLearningWarnCard.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/ConflictingLearningWarnCardDB.d.ts +41 -0
- package/dist/types/features/DocumentLearning/_components/ConflictingLearningWarnCardDB.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/ContextualChatComponent.d.ts +62 -0
- package/dist/types/features/DocumentLearning/_components/ContextualChatComponent.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/ContextualConflictDBCard.d.ts +30 -0
- package/dist/types/features/DocumentLearning/_components/ContextualConflictDBCard.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/ContextualLearningForm.d.ts +1 -0
- package/dist/types/features/DocumentLearning/_components/ContextualLearningForm.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/LearningDetailsForm.d.ts +71 -0
- package/dist/types/features/DocumentLearning/_components/LearningDetailsForm.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/MessageRendering.d.ts +10 -0
- package/dist/types/features/DocumentLearning/_components/MessageRendering.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/MinimizedThinkingSteps.d.ts +4 -0
- package/dist/types/features/DocumentLearning/_components/MinimizedThinkingSteps.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/SimilarLearningCard.d.ts +20 -0
- package/dist/types/features/DocumentLearning/_components/SimilarLearningCard.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/TemplateRetrievalForm.d.ts +50 -0
- package/dist/types/features/DocumentLearning/_components/TemplateRetrievalForm.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/TooltipComponent.d.ts +8 -0
- package/dist/types/features/DocumentLearning/_components/TooltipComponent.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/_svg/ArrowDown.d.ts +4 -0
- package/dist/types/features/DocumentLearning/_components/_svg/ArrowDown.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/_svg/ArrowIconBlue.d.ts +4 -0
- package/dist/types/features/DocumentLearning/_components/_svg/ArrowIconBlue.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/_svg/CompleteIconGreen.d.ts +4 -0
- package/dist/types/features/DocumentLearning/_components/_svg/CompleteIconGreen.d.ts.map +1 -0
- package/dist/types/features/DocumentLearning/_components/_svg/NewChatIcon.d.ts +4 -0
- package/dist/types/features/DocumentLearning/_components/_svg/NewChatIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/ILOTJ.d.ts +95 -0
- package/dist/types/features/IL-OTJ/ILOTJ.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/ILOTJTest.d.ts +609 -0
- package/dist/types/features/IL-OTJ/ILOTJTest.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/ILOTJTriageAITest.d.ts +12 -0
- package/dist/types/features/IL-OTJ/ILOTJTriageAITest.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts +102 -0
- package/dist/types/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +33 -0
- package/dist/types/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/AccordianSection.d.ts +52 -0
- package/dist/types/features/IL-OTJ/_components/AccordianSection.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/AudioWaveform.d.ts +13 -0
- package/dist/types/features/IL-OTJ/_components/AudioWaveform.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts +59 -0
- package/dist/types/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/ChatComponents/ChatHeader.d.ts +12 -0
- package/dist/types/features/IL-OTJ/_components/ChatComponents/ChatHeader.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/ChatComponents/NormalChat.d.ts +45 -0
- package/dist/types/features/IL-OTJ/_components/ChatComponents/NormalChat.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/ChatComponents/mockComparisonData.d.ts +1503 -0
- package/dist/types/features/IL-OTJ/_components/ChatComponents/mockComparisonData.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/CitationLink.d.ts +18 -0
- package/dist/types/features/IL-OTJ/_components/CitationLink.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts +11 -0
- package/dist/types/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/ConflictingReasoningCard.d.ts +11 -0
- package/dist/types/features/IL-OTJ/_components/ConflictingReasoningCard.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/CriticalGaps.d.ts +11 -0
- package/dist/types/features/IL-OTJ/_components/CriticalGaps.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/GapExplanationAccordion.d.ts +10 -0
- package/dist/types/features/IL-OTJ/_components/GapExplanationAccordion.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/ILPopup.d.ts +33 -0
- package/dist/types/features/IL-OTJ/_components/ILPopup.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/ILPopup.styles.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/ILPopup.styles.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/InputDataReasoningCard.d.ts +11 -0
- package/dist/types/features/IL-OTJ/_components/InputDataReasoningCard.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts +33 -0
- package/dist/types/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts +26 -0
- package/dist/types/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/MarkdownRenderer.d.ts +25 -0
- package/dist/types/features/IL-OTJ/_components/MarkdownRenderer.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/ChatFeedback.d.ts +26 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/ChatFeedback.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.d.ts +8 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts +35 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.d.ts +24 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.d.ts +17 -0
- package/dist/types/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/MinimizedThinkingSteps.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/MinimizedThinkingSteps.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/NewMinimizedThinkingSteps.d.ts +7 -0
- package/dist/types/features/IL-OTJ/_components/NewMinimizedThinkingSteps.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/TooltipComponent.d.ts +8 -0
- package/dist/types/features/IL-OTJ/_components/TooltipComponent.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/VariantLoadingOverlay.d.ts +9 -0
- package/dist/types/features/IL-OTJ/_components/VariantLoadingOverlay.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/ViewFormUpdateCard.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/ViewFormUpdateCard.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.d.ts +16 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/StepDetailView.d.ts +11 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/StepDetailView.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.d.ts +43 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/Usethinkingsteps.d.ts +27 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/Usethinkingsteps.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.d.ts +7 -0
- package/dist/types/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ArrowDown.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ArrowDown.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ArrowIconBlue.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ArrowIconBlue.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/BookIcon.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/BookIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts +7 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ChevronDown.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ChevronDown.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ChevronIcon.d.ts +7 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ChevronIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ChevronUp.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ChevronUp.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/CitationLinkSparkleIcon.d.ts +10 -0
- package/dist/types/features/IL-OTJ/_components/_svg/CitationLinkSparkleIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/CompleteIconGreen.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/CompleteIconGreen.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/EditPencilIcon.d.ts +7 -0
- package/dist/types/features/IL-OTJ/_components/_svg/EditPencilIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/GapIcon.d.ts +10 -0
- package/dist/types/features/IL-OTJ/_components/_svg/GapIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.d.ts +9 -0
- package/dist/types/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/InfoIcon.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/InfoIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/LeftAndRightArrow.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/LeftAndRightArrow.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/Lightbulb.d.ts +10 -0
- package/dist/types/features/IL-OTJ/_components/_svg/Lightbulb.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/NewChatIcon.d.ts +10 -0
- package/dist/types/features/IL-OTJ/_components/_svg/NewChatIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/PencilEdit.d.ts +9 -0
- package/dist/types/features/IL-OTJ/_components/_svg/PencilEdit.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/RadioButton.d.ts +10 -0
- package/dist/types/features/IL-OTJ/_components/_svg/RadioButton.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/RightSideIcons.d.ts +10 -0
- package/dist/types/features/IL-OTJ/_components/_svg/RightSideIcons.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ScrollToBottom.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/_svg/ScrollToBottom.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/SendButton.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/_svg/SendButton.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/SparkleIcon.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/SparkleIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/TickIcon.d.ts +10 -0
- package/dist/types/features/IL-OTJ/_components/_svg/TickIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/UserIcon.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/_svg/UserIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/WarningIcon.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/WarningIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.d.ts +4 -0
- package/dist/types/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Button/Button.d.ts +7 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Button/Button.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Button/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Button/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts +15 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Dropdown/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Dropdown/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/atoms/SkeletonLoader/SkeletonLoader.d.ts +11 -0
- package/dist/types/features/IL-OTJ/_components/atoms/SkeletonLoader/SkeletonLoader.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts +27 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Textarea/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Textarea/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Toggle/Toggle.d.ts +9 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Toggle/Toggle.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Toggle/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/atoms/Toggle/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.d.ts +98 -0
- package/dist/types/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/hooks/usePendingEditHighlight.d.ts +5 -0
- package/dist/types/features/IL-OTJ/_components/hooks/usePendingEditHighlight.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/hooks/useVariantEditSession.d.ts +66 -0
- package/dist/types/features/IL-OTJ/_components/hooks/useVariantEditSession.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/index.d.ts +22 -0
- package/dist/types/features/IL-OTJ/_components/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +39 -0
- package/dist/types/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/molecules/Condition/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/molecules/Condition/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts +19 -0
- package/dist/types/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/molecules/Sections/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/molecules/Sections/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.d.ts +15 -0
- package/dist/types/features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/molecules/SeperationRow/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/molecules/SeperationRow/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ConditionSection/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ConditionSection/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.d.ts +30 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ConfigSection/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ConfigSection/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.d.ts +17 -0
- package/dist/types/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/DropdownSection/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/organisms/DropdownSection/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts +34 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ScopeSection/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/organisms/ScopeSection/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/organisms/TextSection/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/organisms/TextSection/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.d.ts +73 -0
- package/dist/types/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.d.ts +71 -0
- package/dist/types/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.d.ts +55 -0
- package/dist/types/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts +22 -0
- package/dist/types/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.d.ts +57 -0
- package/dist/types/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.d.ts +12 -0
- package/dist/types/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/TemplatesMap/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/templates/TemplatesMap/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.d.ts +12 -0
- package/dist/types/features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/Testing/Testing.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/templates/Testing/Testing.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/Testing/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/templates/Testing/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts +10 -0
- package/dist/types/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/TrafficManager/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/_components/templates/TrafficManager/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.d.ts +3 -0
- package/dist/types/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/helpers/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/helpers/index.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/helpers/message-rendering-utils.d.ts +26 -0
- package/dist/types/features/IL-OTJ/helpers/message-rendering-utils.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/helpers/utils.d.ts +23 -0
- package/dist/types/features/IL-OTJ/helpers/utils.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/store/CitationsContext.d.ts +23 -0
- package/dist/types/features/IL-OTJ/store/CitationsContext.d.ts.map +1 -0
- package/dist/types/features/IL-OTJ/store/index.d.ts +2 -0
- package/dist/types/features/IL-OTJ/store/index.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineCardMenu.d.ts +34 -0
- package/dist/types/features/IL-marketplace/components/GuidelineCardMenu.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineCart.d.ts +4 -0
- package/dist/types/features/IL-marketplace/components/GuidelineCart.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineCartHeader.d.ts +14 -0
- package/dist/types/features/IL-marketplace/components/GuidelineCartHeader.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineCartItem.d.ts +16 -0
- package/dist/types/features/IL-marketplace/components/GuidelineCartItem.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineConfirmDialog.d.ts +18 -0
- package/dist/types/features/IL-marketplace/components/GuidelineConfirmDialog.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineEmptyState.d.ts +11 -0
- package/dist/types/features/IL-marketplace/components/GuidelineEmptyState.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineFilterPanel.d.ts +9 -0
- package/dist/types/features/IL-marketplace/components/GuidelineFilterPanel.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineHeader.d.ts +4 -0
- package/dist/types/features/IL-marketplace/components/GuidelineHeader.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineIconButton.d.ts +15 -0
- package/dist/types/features/IL-marketplace/components/GuidelineIconButton.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLandingPage.d.ts +4 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLandingPage.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLibrary.d.ts +68 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLibrary.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLibraryCard.d.ts +94 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLibraryCard.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLibraryContent.d.ts +96 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLibraryContent.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLibraryTab.d.ts +27 -0
- package/dist/types/features/IL-marketplace/components/GuidelineLibraryTab.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineProceedButton.d.ts +4 -0
- package/dist/types/features/IL-marketplace/components/GuidelineProceedButton.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineSelectButton.d.ts +11 -0
- package/dist/types/features/IL-marketplace/components/GuidelineSelectButton.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineStatusChip.d.ts +10 -0
- package/dist/types/features/IL-marketplace/components/GuidelineStatusChip.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/GuidelineTooltip.d.ts +10 -0
- package/dist/types/features/IL-marketplace/components/GuidelineTooltip.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.d.ts +3 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.d.ts +8 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.d.ts +3 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.d.ts +8 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.d.ts +24 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.d.ts +8 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.d.ts +4 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.d.ts +4 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.d.ts +5 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.d.ts +3 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts +94 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.d.ts +44 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.d.ts +4 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.d.ts +14 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.d.ts +4 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.d.ts +8 -0
- package/dist/types/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/LearningManagementWrapper.d.ts +31 -0
- package/dist/types/features/IL-marketplace/components/LearningManagementWrapper.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/components/VersionSelectDropdown.d.ts +13 -0
- package/dist/types/features/IL-marketplace/components/VersionSelectDropdown.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/constants.d.ts +183 -0
- package/dist/types/features/IL-marketplace/constants.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/hooks/useControllableState.d.ts +8 -0
- package/dist/types/features/IL-marketplace/hooks/useControllableState.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/hooks/useDeleteGuidelineMutation.d.ts +10 -0
- package/dist/types/features/IL-marketplace/hooks/useDeleteGuidelineMutation.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/hooks/useGuidelineSelection.d.ts +17 -0
- package/dist/types/features/IL-marketplace/hooks/useGuidelineSelection.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/hooks/useGuidelineWorkspaceLegacyBridge.d.ts +6 -0
- package/dist/types/features/IL-marketplace/hooks/useGuidelineWorkspaceLegacyBridge.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.d.ts +4 -0
- package/dist/types/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/hooks/useMarketplacePublishILKBData.d.ts +29 -0
- package/dist/types/features/IL-marketplace/hooks/useMarketplacePublishILKBData.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/hooks/usePublishingFlowConfig.d.ts +17 -0
- package/dist/types/features/IL-marketplace/hooks/usePublishingFlowConfig.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/icons/GuidelineSpinner.d.ts +7 -0
- package/dist/types/features/IL-marketplace/icons/GuidelineSpinner.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/index.d.ts +42 -0
- package/dist/types/features/IL-marketplace/index.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/marketplaceTheme.d.ts +99 -0
- package/dist/types/features/IL-marketplace/marketplaceTheme.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/queryClient.d.ts +3 -0
- package/dist/types/features/IL-marketplace/queryClient.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/IL-marketplace.api.d.ts +156 -0
- package/dist/types/features/IL-marketplace/services/IL-marketplace.api.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/guideline.api.d.ts +2 -0
- package/dist/types/features/IL-marketplace/services/guideline.api.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/guideline.cart.api.d.ts +28 -0
- package/dist/types/features/IL-marketplace/services/guideline.cart.api.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/guideline.chat.d.ts +2 -0
- package/dist/types/features/IL-marketplace/services/guideline.chat.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/guideline.content.d.ts +2 -0
- package/dist/types/features/IL-marketplace/services/guideline.content.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/guideline.core.api.d.ts +51 -0
- package/dist/types/features/IL-marketplace/services/guideline.core.api.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/guideline.runtime.config.d.ts +47 -0
- package/dist/types/features/IL-marketplace/services/guideline.runtime.config.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/guideline.session.d.ts +10 -0
- package/dist/types/features/IL-marketplace/services/guideline.session.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/instant-learning.api.d.ts +112 -0
- package/dist/types/features/IL-marketplace/services/instant-learning.api.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/services/instant-learning.wishlist.d.ts +8 -0
- package/dist/types/features/IL-marketplace/services/instant-learning.wishlist.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/store/usePublishTemplateStore.d.ts +14 -0
- package/dist/types/features/IL-marketplace/store/usePublishTemplateStore.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/store/usePublishingFlowConfigStore.d.ts +132 -0
- package/dist/types/features/IL-marketplace/store/usePublishingFlowConfigStore.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/types/add-context.types.d.ts +40 -0
- package/dist/types/features/IL-marketplace/types/add-context.types.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/types/api.types.d.ts +116 -0
- package/dist/types/features/IL-marketplace/types/api.types.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/types/file-item.d.ts +60 -0
- package/dist/types/features/IL-marketplace/types/file-item.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/types/guideline.api.types.d.ts +11 -0
- package/dist/types/features/IL-marketplace/types/guideline.api.types.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/types/guideline.types.d.ts +42 -0
- package/dist/types/features/IL-marketplace/types/guideline.types.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/types.d.ts +443 -0
- package/dist/types/features/IL-marketplace/types.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils/addContextHelpers.d.ts +7 -0
- package/dist/types/features/IL-marketplace/utils/addContextHelpers.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils/cn.d.ts +3 -0
- package/dist/types/features/IL-marketplace/utils/cn.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils/guidelineFiles.d.ts +17 -0
- package/dist/types/features/IL-marketplace/utils/guidelineFiles.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils/guidelineOverlay.d.ts +3 -0
- package/dist/types/features/IL-marketplace/utils/guidelineOverlay.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils/guidelineSort.d.ts +3 -0
- package/dist/types/features/IL-marketplace/utils/guidelineSort.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils/microfrontend.d.ts +23 -0
- package/dist/types/features/IL-marketplace/utils/microfrontend.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils/publishingFlow.d.ts +35 -0
- package/dist/types/features/IL-marketplace/utils/publishingFlow.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils/session.d.ts +4 -0
- package/dist/types/features/IL-marketplace/utils/session.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils/url.d.ts +2 -0
- package/dist/types/features/IL-marketplace/utils/url.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/utils.d.ts +75 -0
- package/dist/types/features/IL-marketplace/utils.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/workspace/useGuidelineWorkspace.d.ts +44 -0
- package/dist/types/features/IL-marketplace/workspace/useGuidelineWorkspace.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/workspace/workspace.context.d.ts +9 -0
- package/dist/types/features/IL-marketplace/workspace/workspace.context.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/workspace/workspace.runtime.d.ts +12 -0
- package/dist/types/features/IL-marketplace/workspace/workspace.runtime.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/workspace/workspace.selectors.d.ts +5 -0
- package/dist/types/features/IL-marketplace/workspace/workspace.selectors.d.ts.map +1 -0
- package/dist/types/features/IL-marketplace/workspace/workspace.types.d.ts +89 -0
- package/dist/types/features/IL-marketplace/workspace/workspace.types.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/InstantLearning.d.ts +118 -0
- package/dist/types/features/InstantLearning/InstantLearning.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/AudioWaveform.d.ts +13 -0
- package/dist/types/features/InstantLearning/_components/AudioWaveform.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/ChatComponent.d.ts +58 -0
- package/dist/types/features/InstantLearning/_components/ChatComponent.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/ConflictingLearningWarnCard.d.ts +13 -0
- package/dist/types/features/InstantLearning/_components/ConflictingLearningWarnCard.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/ConflictingLearningWarnCardDB.d.ts +41 -0
- package/dist/types/features/InstantLearning/_components/ConflictingLearningWarnCardDB.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/ContextualChatComponent.d.ts +64 -0
- package/dist/types/features/InstantLearning/_components/ContextualChatComponent.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/ContextualConflictDBCard.d.ts +32 -0
- package/dist/types/features/InstantLearning/_components/ContextualConflictDBCard.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/ContextualLearningForm.d.ts +45 -0
- package/dist/types/features/InstantLearning/_components/ContextualLearningForm.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/DebuggerPanel.d.ts +16 -0
- package/dist/types/features/InstantLearning/_components/DebuggerPanel.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/GeneralizationAccordion.d.ts +28 -0
- package/dist/types/features/InstantLearning/_components/GeneralizationAccordion.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/LearningDetailsForm.d.ts +74 -0
- package/dist/types/features/InstantLearning/_components/LearningDetailsForm.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/MessageRendering.d.ts +10 -0
- package/dist/types/features/InstantLearning/_components/MessageRendering.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/MinimizedThinkingSteps.d.ts +4 -0
- package/dist/types/features/InstantLearning/_components/MinimizedThinkingSteps.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/SimilarLearningCard.d.ts +20 -0
- package/dist/types/features/InstantLearning/_components/SimilarLearningCard.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/TemplateRetrievalForm.d.ts +50 -0
- package/dist/types/features/InstantLearning/_components/TemplateRetrievalForm.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/TooltipComponent.d.ts +8 -0
- package/dist/types/features/InstantLearning/_components/TooltipComponent.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/_svg/ArrowDown.d.ts +4 -0
- package/dist/types/features/InstantLearning/_components/_svg/ArrowDown.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/_svg/ArrowIconBlue.d.ts +4 -0
- package/dist/types/features/InstantLearning/_components/_svg/ArrowIconBlue.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/_svg/CompleteIconGreen.d.ts +4 -0
- package/dist/types/features/InstantLearning/_components/_svg/CompleteIconGreen.d.ts.map +1 -0
- package/dist/types/features/InstantLearning/_components/_svg/NewChatIcon.d.ts +4 -0
- package/dist/types/features/InstantLearning/_components/_svg/NewChatIcon.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/AuditLog/AuditLog.d.ts +11 -0
- package/dist/types/features/LearningManagement/AuditLog/AuditLog.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/AuditLog/ChangeLogDiff.d.ts +15 -0
- package/dist/types/features/LearningManagement/AuditLog/ChangeLogDiff.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/LearningManagement.d.ts +67 -0
- package/dist/types/features/LearningManagement/LearningManagement.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/LearningManagementTest.d.ts +4 -0
- package/dist/types/features/LearningManagement/LearningManagementTest.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/LearningTemplateLayout.d.ts +41 -0
- package/dist/types/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RBAC/AccessManagementPanel.d.ts +8 -0
- package/dist/types/features/LearningManagement/RBAC/AccessManagementPanel.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RBAC/AccessPanel.d.ts +12 -0
- package/dist/types/features/LearningManagement/RBAC/AccessPanel.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RBAC/index.d.ts +4 -0
- package/dist/types/features/LearningManagement/RBAC/index.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.d.ts +12 -0
- package/dist/types/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/AddScopeModal.d.ts +19 -0
- package/dist/types/features/LearningManagement/RuleContent/AddScopeModal.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/ApprovalActionButton.d.ts +8 -0
- package/dist/types/features/LearningManagement/RuleContent/ApprovalActionButton.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts +18 -0
- package/dist/types/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/ContentLogic.d.ts +44 -0
- package/dist/types/features/LearningManagement/RuleContent/ContentLogic.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/HistorySkeleton.d.ts +10 -0
- package/dist/types/features/LearningManagement/RuleContent/HistorySkeleton.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/InheritanceBreadcrumb.d.ts +22 -0
- package/dist/types/features/LearningManagement/RuleContent/InheritanceBreadcrumb.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/InstructionPromptBlock.d.ts +27 -0
- package/dist/types/features/LearningManagement/RuleContent/InstructionPromptBlock.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/OverrideTimeline.d.ts +23 -0
- package/dist/types/features/LearningManagement/RuleContent/OverrideTimeline.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/PendingApprovalChip.d.ts +7 -0
- package/dist/types/features/LearningManagement/RuleContent/PendingApprovalChip.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/RenameScopeModal.d.ts +10 -0
- package/dist/types/features/LearningManagement/RuleContent/RenameScopeModal.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleAccordion.d.ts +131 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleAccordion.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleAccordionHeader.d.ts +47 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleAccordionHeader.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleAccordionShell.d.ts +69 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleAccordionShell.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleConditionBlock.d.ts +39 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleConditionBlock.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleContent.d.ts +49 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleHeader.d.ts +41 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleHeader.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleTierList.d.ts +51 -0
- package/dist/types/features/LearningManagement/RuleContent/RuleTierList.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/TierCard.d.ts +60 -0
- package/dist/types/features/LearningManagement/RuleContent/TierCard.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/VariantCard.d.ts +109 -0
- package/dist/types/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/RuleContent/VariantList.d.ts +106 -0
- package/dist/types/features/LearningManagement/RuleContent/VariantList.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/ScopeSelector.d.ts +45 -0
- package/dist/types/features/LearningManagement/ScopeSelector.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/Sidebar.d.ts +37 -0
- package/dist/types/features/LearningManagement/Sidebar.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/SidebarWrapper.d.ts +34 -0
- package/dist/types/features/LearningManagement/SidebarWrapper.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/StationsContent/StationsContent.d.ts +17 -0
- package/dist/types/features/LearningManagement/StationsContent/StationsContent.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/apis/apiConfig.d.ts +54 -0
- package/dist/types/features/LearningManagement/apis/apiConfig.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/apis/scopeApis.d.ts +388 -0
- package/dist/types/features/LearningManagement/apis/scopeApis.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/CardSkeleton.d.ts +8 -0
- package/dist/types/features/LearningManagement/components/CardSkeleton.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ConfirmationModal.d.ts +22 -0
- package/dist/types/features/LearningManagement/components/ConfirmationModal.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/CreateLearningSetModal.d.ts +20 -0
- package/dist/types/features/LearningManagement/components/CreateLearningSetModal.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts +12 -0
- package/dist/types/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/CustomTooltip.d.ts +16 -0
- package/dist/types/features/LearningManagement/components/CustomTooltip.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/EmptyLearningState.d.ts +42 -0
- package/dist/types/features/LearningManagement/components/EmptyLearningState.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ErrorStateDisplay.d.ts +25 -0
- package/dist/types/features/LearningManagement/components/ErrorStateDisplay.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/InstantLearningModal.d.ts +41 -0
- package/dist/types/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/InstantLearningModalDynamic.d.ts +62 -0
- package/dist/types/features/LearningManagement/components/InstantLearningModalDynamic.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/LearningTemplateManagementSkeleton.d.ts +8 -0
- package/dist/types/features/LearningManagement/components/LearningTemplateManagementSkeleton.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/PromptTextEditor.d.ts +44 -0
- package/dist/types/features/LearningManagement/components/PromptTextEditor.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/RuleContentSkeleton.d.ts +8 -0
- package/dist/types/features/LearningManagement/components/RuleContentSkeleton.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ScopeSkeletonLoader.d.ts +36 -0
- package/dist/types/features/LearningManagement/components/ScopeSkeletonLoader.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/HighlightedText.d.ts +8 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/HighlightedText.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeAddAction.d.ts +10 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeAddAction.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeMenu.d.ts +17 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeMenu.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeNode.d.ts +38 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeNodeHeader.d.ts +22 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeNodeHeader.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeSectionItem.d.ts +16 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeSectionItem.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts +23 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeTooltip.d.ts +10 -0
- package/dist/types/features/LearningManagement/components/ScopeTree/TreeTooltip.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/SidebarSearch.d.ts +25 -0
- package/dist/types/features/LearningManagement/components/SidebarSearch.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/Skeleton.d.ts +12 -0
- package/dist/types/features/LearningManagement/components/Skeleton.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/DayToggleSelector.d.ts +13 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/DayToggleSelector.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/InputField.d.ts +27 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/InputField.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/OnboardingLoader.d.ts +19 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/OnboardingLoader.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/StationAutocomplete.d.ts +15 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/StationAutocomplete.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/StationOnboardModal.d.ts +16 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/StationOnboardModal.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/TemplateCard.d.ts +22 -0
- package/dist/types/features/LearningManagement/components/StationOnboarding/TemplateCard.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/components/ToolTip.d.ts +8 -0
- package/dist/types/features/LearningManagement/components/ToolTip.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/config.d.ts +64 -0
- package/dist/types/features/LearningManagement/config.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/constants.d.ts +19 -0
- package/dist/types/features/LearningManagement/constants.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts +62 -0
- package/dist/types/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/queries/useApprovalQueries.d.ts +20 -0
- package/dist/types/features/LearningManagement/queries/useApprovalQueries.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/queries/useLMSConfigQuery.d.ts +9 -0
- package/dist/types/features/LearningManagement/queries/useLMSConfigQuery.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/shared/ErrorToastContent.d.ts +22 -0
- package/dist/types/features/LearningManagement/shared/ErrorToastContent.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/shared/SuccessToastContent.d.ts +22 -0
- package/dist/types/features/LearningManagement/shared/SuccessToastContent.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/shared/index.d.ts +7 -0
- package/dist/types/features/LearningManagement/shared/index.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/store/types.d.ts +32 -0
- package/dist/types/features/LearningManagement/store/types.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/store/useAppSecRolesStore.d.ts +11 -0
- package/dist/types/features/LearningManagement/store/useAppSecRolesStore.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/store/useAuthStore.d.ts +12 -0
- package/dist/types/features/LearningManagement/store/useAuthStore.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/store/useConfigStore.d.ts +18 -0
- package/dist/types/features/LearningManagement/store/useConfigStore.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/store/useEnvStore.d.ts +36 -0
- package/dist/types/features/LearningManagement/store/useEnvStore.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/store/useExternalWorkflowStore.d.ts +38 -0
- package/dist/types/features/LearningManagement/store/useExternalWorkflowStore.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/store/useLMSConfigStore.d.ts +388 -0
- package/dist/types/features/LearningManagement/store/useLMSConfigStore.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/store/useLearningTemplateStore.d.ts +84 -0
- package/dist/types/features/LearningManagement/store/useLearningTemplateStore.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/store/usePermissionsStore.d.ts +35 -0
- package/dist/types/features/LearningManagement/store/usePermissionsStore.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/types.d.ts +288 -0
- package/dist/types/features/LearningManagement/types.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/utils/learningMetadataUtils.d.ts +17 -0
- package/dist/types/features/LearningManagement/utils/learningMetadataUtils.d.ts.map +1 -0
- package/dist/types/features/LearningManagement/utils/treeUtils.d.ts +18 -0
- package/dist/types/features/LearningManagement/utils/treeUtils.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts +4 -0
- package/dist/types/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts +10 -0
- package/dist/types/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts +4 -0
- package/dist/types/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts +10 -0
- package/dist/types/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +13 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts +4 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +4 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts +10 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts +22 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts +33 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts +20 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts +7 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts +18 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts +26 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts +4 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts +3 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts +4 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts +10 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts +1108 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts +57 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts +643 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts +24 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts +283 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts +58 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts +20 -0
- package/dist/types/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts +4 -0
- package/dist/types/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts.map +1 -0
- package/dist/types/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts +4 -0
- package/dist/types/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts.map +1 -0
- package/dist/types/features/UploadData/NotFound.d.ts +4 -0
- package/dist/types/features/UploadData/NotFound.d.ts.map +1 -0
- package/dist/types/features/UploadData/main.d.ts +10 -0
- package/dist/types/features/UploadData/main.d.ts.map +1 -0
- package/dist/types/features/WtaWnta/WtaWnta.d.ts +55 -0
- package/dist/types/features/WtaWnta/WtaWnta.d.ts.map +1 -0
- package/dist/types/features/WtaWnta/_components/AgentDetailsForm.d.ts +43 -0
- package/dist/types/features/WtaWnta/_components/AgentDetailsForm.d.ts.map +1 -0
- package/dist/types/features/WtaWnta/_components/SimilarConflictingCard.d.ts +18 -0
- package/dist/types/features/WtaWnta/_components/SimilarConflictingCard.d.ts.map +1 -0
- package/dist/types/features/WtaWnta/_components/ValidationCard.d.ts +30 -0
- package/dist/types/features/WtaWnta/_components/ValidationCard.d.ts.map +1 -0
- package/dist/types/hooks/useAgentFix.d.ts +15 -0
- package/dist/types/hooks/useAgentFix.d.ts.map +1 -0
- package/dist/types/hooks/useAgentSuggestions.d.ts +20 -0
- package/dist/types/hooks/useAgentSuggestions.d.ts.map +1 -0
- package/dist/types/hooks/useAgentValidation.d.ts +17 -0
- package/dist/types/hooks/useAgentValidation.d.ts.map +1 -0
- package/dist/types/hooks/useDebounce copy.d.ts +2 -0
- package/dist/types/hooks/useDebounce copy.d.ts.map +1 -0
- package/dist/types/hooks/useDebounce.d.ts +2 -0
- package/dist/types/hooks/useDebounce.d.ts.map +1 -0
- package/dist/types/hooks/useExistingAgentCheck.d.ts +28 -0
- package/dist/types/hooks/useExistingAgentCheck.d.ts.map +1 -0
- package/dist/types/hooks/useExistingPromptCheck.d.ts +36 -0
- package/dist/types/hooks/useExistingPromptCheck.d.ts.map +1 -0
- package/dist/types/hooks/usePromptFix.d.ts +14 -0
- package/dist/types/hooks/usePromptFix.d.ts.map +1 -0
- package/dist/types/hooks/usePromptSuggestions.d.ts +8 -0
- package/dist/types/hooks/usePromptSuggestions.d.ts.map +1 -0
- package/dist/types/hooks/usePromptValidation.d.ts +18 -0
- package/dist/types/hooks/usePromptValidation.d.ts.map +1 -0
- package/dist/types/hooks/useTableHeadCellsCount copy.d.ts +6 -0
- package/dist/types/hooks/useTableHeadCellsCount copy.d.ts.map +1 -0
- package/dist/types/hooks/useTableHeadCellsCount.d.ts +6 -0
- package/dist/types/hooks/useTableHeadCellsCount.d.ts.map +1 -0
- package/dist/types/hooks/useURLQuery copy.d.ts +10 -0
- package/dist/types/hooks/useURLQuery copy.d.ts.map +1 -0
- package/dist/types/hooks/useURLQuery.d.ts +10 -0
- package/dist/types/hooks/useURLQuery.d.ts.map +1 -0
- package/dist/types/index.d.ts +58 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/methodsToExpose.d.ts +13 -0
- package/dist/types/methodsToExpose.d.ts.map +1 -0
- package/dist/types/plugins/ValueTypes/Category/CategoryTeachMeRenderer.d.ts +29 -0
- package/dist/types/plugins/ValueTypes/Category/CategoryTeachMeRenderer.d.ts.map +1 -0
- package/dist/types/plugins/ValueTypes/Default/DefaultTeachMeRenderer.d.ts +22 -0
- package/dist/types/plugins/ValueTypes/Default/DefaultTeachMeRenderer.d.ts.map +1 -0
- package/dist/types/plugins/ValueTypes/Default/DefaultTeachMeRendererOld.d.ts +28 -0
- package/dist/types/plugins/ValueTypes/Default/DefaultTeachMeRendererOld.d.ts.map +1 -0
- package/dist/types/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.d.ts +29 -0
- package/dist/types/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.d.ts.map +1 -0
- package/dist/types/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts +5 -0
- package/dist/types/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -0
- package/dist/types/schema-driven/BPARenderer.d.ts +14 -0
- package/dist/types/schema-driven/BPARenderer.d.ts.map +1 -0
- package/dist/types/schema-driven/FallbackField.d.ts +13 -0
- package/dist/types/schema-driven/FallbackField.d.ts.map +1 -0
- package/dist/types/schema-driven/components/ConditionSectionField.d.ts +3 -0
- package/dist/types/schema-driven/components/ConditionSectionField.d.ts.map +1 -0
- package/dist/types/schema-driven/components/ConfigSectionField.d.ts +3 -0
- package/dist/types/schema-driven/components/ConfigSectionField.d.ts.map +1 -0
- package/dist/types/schema-driven/components/DropdownSectionField.d.ts +3 -0
- package/dist/types/schema-driven/components/DropdownSectionField.d.ts.map +1 -0
- package/dist/types/schema-driven/components/GlobalSetupAccordionField.d.ts +3 -0
- package/dist/types/schema-driven/components/GlobalSetupAccordionField.d.ts.map +1 -0
- package/dist/types/schema-driven/components/GroupEditRow.d.ts +3 -0
- package/dist/types/schema-driven/components/GroupEditRow.d.ts.map +1 -0
- package/dist/types/schema-driven/components/PromptTextEditorField.d.ts +3 -0
- package/dist/types/schema-driven/components/PromptTextEditorField.d.ts.map +1 -0
- package/dist/types/schema-driven/components/ScopeSectionField.d.ts +3 -0
- package/dist/types/schema-driven/components/ScopeSectionField.d.ts.map +1 -0
- package/dist/types/schema-driven/components/TextInputField.d.ts +3 -0
- package/dist/types/schema-driven/components/TextInputField.d.ts.map +1 -0
- package/dist/types/schema-driven/components/VariantListField.d.ts +3 -0
- package/dist/types/schema-driven/components/VariantListField.d.ts.map +1 -0
- package/dist/types/schema-driven/demoSchema.d.ts +13 -0
- package/dist/types/schema-driven/demoSchema.d.ts.map +1 -0
- package/dist/types/schema-driven/hooks/useParentEditEnabled.d.ts +18 -0
- package/dist/types/schema-driven/hooks/useParentEditEnabled.d.ts.map +1 -0
- package/dist/types/schema-driven/hooks/useSectionEditSession.d.ts +34 -0
- package/dist/types/schema-driven/hooks/useSectionEditSession.d.ts.map +1 -0
- package/dist/types/schema-driven/primitives/Accordion.d.ts +21 -0
- package/dist/types/schema-driven/primitives/Accordion.d.ts.map +1 -0
- package/dist/types/schema-driven/store/useDynamicFormStore.d.ts +28 -0
- package/dist/types/schema-driven/store/useDynamicFormStore.d.ts.map +1 -0
- package/dist/types/schema-driven/types.d.ts +81 -0
- package/dist/types/schema-driven/types.d.ts.map +1 -0
- package/dist/types/schema-driven/utils/PayloadUtils.d.ts +82 -0
- package/dist/types/schema-driven/utils/PayloadUtils.d.ts.map +1 -0
- package/dist/types/schema-driven/utils/aiReasoning.d.ts +5 -0
- package/dist/types/schema-driven/utils/aiReasoning.d.ts.map +1 -0
- package/dist/types/schema-driven/utils/conditionText.d.ts +8 -0
- package/dist/types/schema-driven/utils/conditionText.d.ts.map +1 -0
- package/dist/types/schema-driven/utils/editLock.d.ts +39 -0
- package/dist/types/schema-driven/utils/editLock.d.ts.map +1 -0
- package/dist/types/service/API.d.ts +6 -0
- package/dist/types/service/API.d.ts.map +1 -0
- package/dist/types/service/DataService.d.ts +73 -0
- package/dist/types/service/DataService.d.ts.map +1 -0
- package/dist/types/service/GoogleFilePickerService.d.ts +61 -0
- package/dist/types/service/GoogleFilePickerService.d.ts.map +1 -0
- package/dist/types/service/InstantLearningService.d.ts +20 -0
- package/dist/types/service/InstantLearningService.d.ts.map +1 -0
- package/dist/types/service/JavascriptFileService.d.ts +4 -0
- package/dist/types/service/JavascriptFileService.d.ts.map +1 -0
- package/dist/types/service/ModelService.d.ts +68 -0
- package/dist/types/service/ModelService.d.ts.map +1 -0
- package/dist/types/service/ProjectService.d.ts +16 -0
- package/dist/types/service/ProjectService.d.ts.map +1 -0
- package/dist/types/service/SavedDataSetService.d.ts +22 -0
- package/dist/types/service/SavedDataSetService.d.ts.map +1 -0
- package/dist/types/service/constants.d.ts +3 -0
- package/dist/types/service/constants.d.ts.map +1 -0
- package/dist/types/service/envHelperService.d.ts +5 -0
- package/dist/types/service/envHelperService.d.ts.map +1 -0
- package/dist/types/service/variableHelperService.d.ts +6 -0
- package/dist/types/service/variableHelperService.d.ts.map +1 -0
- package/dist/types/shims/react-dom-shim.d.ts +17 -0
- package/dist/types/shims/react-dom-shim.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/NormalChat.d.ts.map +1 -1
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts +10 -0
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.styles.d.ts +6 -0
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.styles.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.d.ts +11 -0
- package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.styles.d.ts +6 -0
- package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.styles.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts +16 -0
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.d.ts +6 -0
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts +19 -0
- package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/api.d.ts +4 -0
- package/dist/types/src/features/LSCGuidelinesCart/api.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts +5 -0
- package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/interfacesApi.d.ts +25 -0
- package/dist/types/src/features/LSCGuidelinesCart/interfacesApi.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/transformSelectedGuidelineData.d.ts +18 -0
- package/dist/types/src/features/LSCGuidelinesCart/transformSelectedGuidelineData.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/utils/learningMetadataUtils.d.ts.map +1 -1
- package/dist/types/src/routes/ErrorBoundary.d.ts +22 -0
- package/dist/types/src/routes/ErrorBoundary.d.ts.map +1 -0
- package/dist/types/src/routes/Routes.d.ts +3 -0
- package/dist/types/src/routes/Routes.d.ts.map +1 -0
- package/dist/types/theme.d.ts +4 -0
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/types/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts +23 -0
- package/dist/types/types/GoogleFilePicker/GoogleFilePickerCallbackFunctionType.d.ts.map +1 -0
- package/dist/types/userProvidedConfig.d.ts +8 -0
- package/dist/types/userProvidedConfig.d.ts.map +1 -0
- package/dist/types/utils/CustomSkeleton.d.ts +3 -0
- package/dist/types/utils/CustomSkeleton.d.ts.map +1 -0
- package/dist/types/utils/SkeletonLoader.d.ts +8 -0
- package/dist/types/utils/SkeletonLoader.d.ts.map +1 -0
- package/dist/types/utils/agentGenieAPI.d.ts +21 -0
- package/dist/types/utils/agentGenieAPI.d.ts.map +1 -0
- package/dist/types/utils/api.d.ts +2 -0
- package/dist/types/utils/api.d.ts.map +1 -0
- package/dist/types/utils/bookGenieAPI.d.ts +14 -0
- package/dist/types/utils/bookGenieAPI.d.ts.map +1 -0
- package/dist/types/utils/codeCitations.utils.d.ts +2 -0
- package/dist/types/utils/codeCitations.utils.d.ts.map +1 -0
- package/dist/types/utils/colors.d.ts +5 -0
- package/dist/types/utils/colors.d.ts.map +1 -0
- package/dist/types/utils/date.d.ts +8 -0
- package/dist/types/utils/date.d.ts.map +1 -0
- package/dist/types/utils/helperFunctions.d.ts +2 -0
- package/dist/types/utils/helperFunctions.d.ts.map +1 -0
- package/dist/types/utils/instantLearning.utils.d.ts +3 -0
- package/dist/types/utils/instantLearning.utils.d.ts.map +1 -0
- package/dist/types/utils/instantLearningAPI.d.ts +21 -0
- package/dist/types/utils/instantLearningAPI.d.ts.map +1 -0
- package/dist/types/utils/payloadParsers.d.ts +16 -0
- package/dist/types/utils/payloadParsers.d.ts.map +1 -0
- package/dist/types/utils/recommendationParser.d.ts +22 -0
- package/dist/types/utils/recommendationParser.d.ts.map +1 -0
- package/dist/types/utils/regexHelperService.d.ts +9 -0
- package/dist/types/utils/regexHelperService.d.ts.map +1 -0
- package/dist/types/utils/urlQueryParamService.d.ts +2 -0
- package/dist/types/utils/urlQueryParamService.d.ts.map +1 -0
- package/dist/types/utils/variableHelperService.d.ts +7 -0
- package/dist/types/utils/variableHelperService.d.ts.map +1 -0
- package/dist/types/utils/variantParser.d.ts +14 -0
- package/dist/types/utils/variantParser.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../../../node_modules/style-inject/dist/style-inject.es.js").default("@keyframes CreateLearningSetModal-module_spin__0BrCH{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.CreateLearningSetModal-module_overlay__iwLU2{align-items:center;background-color:#0000004d;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:9999}.CreateLearningSetModal-module_modal__TIP0O{background-color:#fff;border-radius:.75rem;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;max-width:90%;padding:1.5rem;position:relative;width:600px}.CreateLearningSetModal-module_header__alW8D{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1.5rem}.CreateLearningSetModal-module_headerContent__bxA6y{flex:1}.CreateLearningSetModal-module_title__vlj8Q{color:#19213d;font-size:1.125rem;font-weight:500;margin:0}.CreateLearningSetModal-module_description__TGliO{color:#666f8d;font-size:.875rem;font-weight:400;line-height:1.5;margin-top:.25rem}.CreateLearningSetModal-module_closeBtn__33qJN{align-items:center;background:#0000;border:none;border-radius:.375rem;color:#9ca3af;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:color .2s,background-color .2s}.CreateLearningSetModal-module_closeBtn__33qJN:hover{background-color:#f3f4f6;color:#4b5563}.CreateLearningSetModal-module_closeBtn__33qJN:focus{outline:none}.CreateLearningSetModal-module_form__e8iCL{display:flex;flex-direction:column;gap:1.25rem}.CreateLearningSetModal-module_formGroup__RydF4{display:flex;flex-direction:column;gap:.375rem;position:relative}.CreateLearningSetModal-module_label__q-hkm{align-items:center;color:#19213d;display:flex;font-size:.875rem;font-weight:500}.CreateLearningSetModal-module_asterisk__cXpjU{color:#8f2c23;font-size:1rem;font-weight:600;margin-right:.25rem}.CreateLearningSetModal-module_inputField__nnq0-{background-color:#fff;border:1px solid #f0f2f5;border-radius:.375rem;box-sizing:border-box;color:#19213d;font-size:.875rem;outline:none;padding:.625rem .75rem;transition:border-color .2s,box-shadow .2s;width:100%}.CreateLearningSetModal-module_inputField__nnq0-::placeholder{color:#9ca3af}.CreateLearningSetModal-module_inputField__nnq0-:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.CreateLearningSetModal-module_inputError__Q78Vy{border-color:#8f2c23}.CreateLearningSetModal-module_inputError__Q78Vy:focus{border-color:#8f2c23;box-shadow:0 0 0 2px #8f2c2333}.CreateLearningSetModal-module_errorMessage__z0WBC{color:#8f2c23;font-size:.75rem;font-weight:400;margin-top:.25rem}.CreateLearningSetModal-module_footer__qc-SJ{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1rem}.CreateLearningSetModal-module_cancelBtn__YiIV7{background-color:initial;border:1px solid #e2e8f0;border-radius:.375rem;color:#64748b;cursor:pointer;font-size:.875rem;font-weight:500;padding:.5rem 1rem;transition:background-color .2s}.CreateLearningSetModal-module_cancelBtn__YiIV7:hover:not(:disabled){background-color:#f9fafb}.CreateLearningSetModal-module_cancelBtn__YiIV7:disabled{cursor:not-allowed;opacity:.5}.CreateLearningSetModal-module_confirmBtn__8oMwL{align-items:center;background-color:#2563eb;border:none;border-radius:.375rem;color:#fff;cursor:pointer;display:inline-flex;font-size:.875rem;font-weight:500;justify-content:center;padding:.5rem 1rem;transition:background-color .2s}.CreateLearningSetModal-module_confirmBtn__8oMwL:hover:not(:disabled){background-color:#1d4ed8}.CreateLearningSetModal-module_confirmBtn__8oMwL:disabled{cursor:not-allowed;opacity:.5}.CreateLearningSetModal-module_spinner__SERKD{animation:CreateLearningSetModal-module_spin__0BrCH 1s linear infinite;color:#fff;height:1rem;margin-right:.5rem;width:1rem}"),exports.default={overlay:"CreateLearningSetModal-module_overlay__iwLU2",modal:"CreateLearningSetModal-module_modal__TIP0O",header:"CreateLearningSetModal-module_header__alW8D",headerContent:"CreateLearningSetModal-module_headerContent__bxA6y",title:"CreateLearningSetModal-module_title__vlj8Q",description:"CreateLearningSetModal-module_description__TGliO",closeBtn:"CreateLearningSetModal-module_closeBtn__33qJN",form:"CreateLearningSetModal-module_form__e8iCL",formGroup:"CreateLearningSetModal-module_formGroup__RydF4",label:"CreateLearningSetModal-module_label__q-hkm",asterisk:"CreateLearningSetModal-module_asterisk__cXpjU",inputField:"CreateLearningSetModal-module_inputField__nnq0-",inputError:"CreateLearningSetModal-module_inputError__Q78Vy",errorMessage:"CreateLearningSetModal-module_errorMessage__z0WBC",footer:"CreateLearningSetModal-module_footer__qc-SJ",cancelBtn:"CreateLearningSetModal-module_cancelBtn__YiIV7",confirmBtn:"CreateLearningSetModal-module_confirmBtn__8oMwL",spinner:"CreateLearningSetModal-module_spinner__SERKD",spin:"CreateLearningSetModal-module_spin__0BrCH"};
|
|
2
|
+
//# sourceMappingURL=CreateLearningSetModal.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateLearningSetModal.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=["instruction_prompt"],e=function(i,e){var n,r=null!==(n=null==i?void 0:i.teachMe)&&void 0!==n?n:i,o=function(i){void 0===i&&(i={});for(var n=0,r=Object.entries(i);n<r.length;n++){var l=r[n],u=l[0],t=l[1];if(u===e)return t;var d=(null==t?void 0:t.properties)?o(t.properties):void 0;if(d)return d}};return o(null==r?void 0:r.properties)},n=function(e,n){var r,o,l,u;void 0===n&&(n={});var t=null!==(r=null==e?void 0:e.teachMe)&&void 0!==r?r:e,d=null!==(o=null==t?void 0:t.properties)&&void 0!==o?o:{};return{required:null!==(u=null===(l=null==t?void 0:t.required)||void 0===l?void 0:l.filter(function(i){var e;return!(null===(e=d[i])||void 0===e?void 0:e.core_field)}))&&void 0!==u?u:[],properties:i.reduce(function(i,e){var r,o=d[e];return o?(i[e]={type:null==o?void 0:o.type,title:null==o?void 0:o.title,value:null!==(r=null==n?void 0:n[e])&&void 0!==r?r:""},i):i},{})}};exports.buildLearningMetadataPayload=n,exports.buildLegacyLearningMetadataPayload=function(i,r){var o,l,u;void 0===r&&(r={});var t=n(i,r),d=e(i,"scheduling_config");return!1===(null==d?void 0:d.core_field)&&(t.properties.scheduling_config=null!==(u=null!==(l=null===(o=null==r?void 0:r.properties)||void 0===o?void 0:o.scheduling_config)&&void 0!==l?l:null==r?void 0:r.scheduling_config)&&void 0!==u?u:"",(null==d?void 0:d.is_required)&&!t.required.includes("scheduling_config")&&t.required.push("scheduling_config")),t},exports.getInstructionPromptValue=function(i){var e,n;if(!i)return"";var r=null===(e=i.properties)||void 0===e?void 0:e.instruction_prompt;return void 0!==r?"string"==typeof r?r:null!==(n=null==r?void 0:r.value)&&void 0!==n?n:"":"string"==typeof i.instruction_prompt?i.instruction_prompt:""},exports.isSchedulingConfigLearningMetadata=function(i){var n;return!1===(null===(n=e(i,"scheduling_config"))||void 0===n?void 0:n.core_field)};
|
|
2
2
|
//# sourceMappingURL=learningMetadataUtils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as e,__spreadArray as n,__assign as t,__awaiter as o,__generator as r,__rest as i}from"tslib";import{jsx as a,jsxs as s,Fragment as l}from"react/jsx-runtime";import{useRef as d,useState as c,useMemo as u,useEffect as v,useCallback as m,useLayoutEffect as h}from"react";import{keyframes as g,Dialog as p,Box as f}from"@mui/material";import C from"@mui/material/Tooltip";import b from"react-markdown";import y from"rehype-raw";import{http as S}from"../../../../api/transport.js";import{v4 as w}from"uuid";import{stopStreaming as x,startChatStream as k}from"@e-llm-studio/streaming-response";import{WatchMeWork as I}from"@e-llm-studio/watch-me-work";import T from"./ChatHeader.js";import _ from"../MessageRendering/MessageRendering.js";import{Skeleton as E}from"../atoms/SkeletonLoader/SkeletonLoader.js";import{ActionableButton as M}from"../MessageRendering/ClickableChatComponents.js";import R from"../AudioWaveform.js";import D from"./ChatComponent.module.css.js";import N from"../../InstantLearning.module.css.js";import{ScrollToBottom as q}from"../_svg/ScrollToBottom.js";import{useHeaderObserver as F,extractTextFromChildren as L}from"../../helpers/utils.js";import{SendButton as A}from"../_svg/SendButton.js";import W from"../_svg/SparkleIcon.js";import{UserIcon as P}from"../_svg/UserIcon.js";var z,j=function(e,n){return S.post("".concat(e||"https://devllmstudio.creativeworkspace.ai","/api/chat/chatResponse"),{name:"ilggcautopromptgen",organizationName:"techolution",prompt:n||"Generate a query"},{headers:{"Content-Type":"application/json"},withCredentials:!0}).then(function(e){return e.data}).catch(function(e){throw console.error("Error calling auto-generate API:",e),e})},B=function(j){var B=j.chatAssistantName,O=j.organizationName,H=j.baseUrl,U=j.baseWebsocketUrl,G=j.setIsNewChatClicked;j.ThinkingBulbIconComponent;var Z=j.isFormSaveClicked,K=j.setIsFormSavedClicked,V=j.onResetLearningData,Q=j.sendMessageInChat,J=j.setSendMessageInChat,$=j.isFormValidating,X=j.chatTitle,Y=j.customMetaData,ee=j.headerMessageHandlers;j.aiResponse;var ne=j.setAIResponse,te=j.onResetChat,oe=j.initialChatMessage,re=void 0===oe?"":oe,ie=j.onSave,ae=j.chatSize,se=j.setChatSize,le=j.movingTowards,de=j.setCitations,ce=j.textareaPlaceholder,ue=void 0===ce?"Tell me more about this learning...":ce,ve=j.setCurrentRequestId,me=j.showSavedMessage,he=void 0!==me&&me,ge=j.savedMessage,pe=j.isError,fe=void 0!==pe&&pe,Ce=j.errorMessage,be=void 0===Ce?"There was an error saving your changes.":Ce;j.isSaving;var ye=j.isHighlighted,Se=void 0!==ye&&ye,we=j.onStreamingStateChange,xe=j.onViewComparison;j.isCopyEnabled;var ke=j.onComparisonLinkClick,Ie=j.onSubmitFeedback,Te=j.userDetails,_e=j.isGlobalEditActive,Ee=j.socketTimeOutInMilliSeconds,Me=j.initialDraftMessage,Re=void 0===Me?"":Me,De=j.onValidateSession,Ne=j.onCloseSessionModal,qe=j.fieldLabelMap,Fe=j.enableChatLogs,Le=void 0!==Fe&&Fe,Ae=B,We=d("".concat(Ae,"-").concat(O,"-").concat(w())),Pe=d("".concat(w())),ze=H,je=d(null),Be=d(!0),Oe=d(null),He=d(null),Ue=c(Re),Ge=Ue[0],Ze=Ue[1],Ke=c([]),Ve=Ke[0],Qe=Ke[1],Je=c(!1),$e=Je[0],Xe=Je[1],Ye=c(!1);Ye[0];var en=Ye[1],nn=c(!0),tn=nn[0],on=nn[1],rn=c(!0);rn[0];var an=rn[1],sn=c("");sn[0];var ln=sn[1],dn=c(""),cn=dn[0],un=dn[1],vn=c(!1),mn=vn[0],hn=vn[1],gn=c(!1),pn=gn[0],fn=gn[1],Cn=c(!0),bn=Cn[0],yn=Cn[1],Sn=c("100%");Sn[0];var wn=Sn[1],xn=c(null),kn=xn[0],In=xn[1],Tn=c(!1);Tn[0];var _n=Tn[1],En=c(!1),Mn=En[0],Rn=En[1],Dn=d(null),Nn=d(new Set),qn=c(null),Fn=qn[0],Ln=qn[1],An=c(!1),Wn=An[0],Pn=An[1],zn=c(!1);zn[0],zn[1];var jn=c(null);jn[0],jn[1],d(null),d(null);var Bn=d(new Map),On=d(""),Hn=d(new Set),Un=d(new Map),Gn=d(!1),Zn=d(0),Kn=d(new Map),Vn=d(null),Qn=c(!1),Jn=Qn[0],$n=Qn[1];g(z||(z=e(["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "],["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "])));var Xn=u(function(){return""===(null==Ge?void 0:Ge.trim())||mn},[Ge,mn]),Yn=u(function(){return $},[$]),et=u(function(){var e;return Ve.length>0&&"user"===(null===(e=Ve[Ve.length-1])||void 0===e?void 0:e.role)},[Ve]),nt=u(function(){return Xn||$||!!_e||et},[Xn,$,_e,et]);v(function(){Re&&!Ge&&(Ze(Re),fn(!0),setTimeout(function(){if(He.current){He.current.focus();var e=Re.length;He.current.setSelectionRange(e,e)}},400))},[Re]),v(function(){null==we||we(mn)},[mn,we]),v(function(){return function(){Kn.current.forEach(function(e){return clearTimeout(e)}),Kn.current.clear()}},[]),v(function(){var e=je.current,n=function(){if(e){var n=e.scrollTop,t=e.scrollHeight,o=e.clientHeight;yn(t-n-o<=20)}};return e&&(e.addEventListener("scroll",n),n()),function(){e&&e.removeEventListener("scroll",n)}},[Ve]);var tt=F({handlers:ee,setResult:ne}).processHeaderMessage;v(function(){he&&Rn(!0)},[he]),v(function(){if(Wn){var e=setTimeout(function(){Pn(!1)},3e3);return function(){return clearTimeout(e)}}},[Wn]),v(function(){Z&&!_e&&(ut(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save this Learning"),K(!1))},[Z]),v(function(){if(Q)try{if(Q.startsWith("__SKELETON__:")){var e=Q.split(":"),o=e[1],r=e.slice(2).join(":"),i={role:"user",content:"",id:o,time:new Date,isSkeleton:!0,skeletonContent:r};return Qe(function(e){return n(n([],e,!0),[i],!1)}),ut(new KeyboardEvent("keydown",{key:"Enter"}),!1,r,!1,o),Ln(o),J&&J(""),void setTimeout(function(){Ln(null)},2e3)}if(Q.startsWith("__SKELETON_END__::")){var a=Q.split("::")[1]||"";return Qe(function(e){return e.map(function(e){return e.isSkeleton?t(t({},e),{isSkeleton:!1,content:e.skeletonContent||a}):e})}),void(J&&J(""))}var s=w();ut(new KeyboardEvent("keydown",{key:"Enter"}),!1,Q,!1,s),Ln(s),J&&J(""),setTimeout(function(){return Ln(null)},2e3)}catch(e){console.error("Error handling sendMessageInChat signal",e)}},[Q]),v(function(){rt(),it();var e=function(){var e,n=(null===(e=null==Dn?void 0:Dn.current)||void 0===e?void 0:e.clientHeight)||0,t="calc(100% - ".concat(n,"px - 10px)");wn(t)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var ot=m(function(e){var n="string"==typeof e?e:"smooth";Oe.current&&Oe.current.scrollIntoView({behavior:n,block:"end"}),Be.current&&setTimeout(function(){Oe.current&&Be.current&&Oe.current.scrollIntoView({behavior:n,block:"end"})},100)},[]);v(function(){if(!mn){var e="";if(Mn?e=ge||"Thank you teacher for teaching me, your rule has been saved successfully.":fe&&(e=be||"I'm sorry, I couldn't save your changes. Please try again."),e){var t={role:"assistant",content:e,id:w(),citations:[],time:new Date};Qe(function(e){return n(n([],e,!0),[t],!1)}),Rn(!1),setTimeout(function(){return ot("smooth")},100)}}},[Mn,fe,mn,ge,be,ot]),v(function(){Be.current&&ot("smooth")},[ot]);var rt=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(ze,"/api/chatbot/getChatSettings?name=").concat(Ae,"&organizationName=").concat(O),headers:{}};S.request(e).then(function(e){var n,t,o;(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)&&""!==(null===(o=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.chatSettings)||void 0===o?void 0:o.chatInitialMessage)&&an(!0)}).catch(function(e){console.error(e)})},it=function(){return o(void 0,void 0,void 0,function(){var e,n;return r(this,function(t){e="".concat(ze,"/api/chat/history?name=").concat(Ae,"&organizationName=").concat(O);try{n={method:"GET",params:{guestSessionId:We.current},withCredentials:!0},S.get(e,n).then(function(e){var n=e.data;n.length>0?(Qe(n),ot()):an(!0)}).catch(function(e){console.error(e)})}catch(e){Xe(!1),console.error(e)}return[2]})})},at=function(){var e="".concat(ze,"/api/chat/resetHistory?name=").concat(Ae,"&organizationName=").concat(O);try{var n={method:"GET",params:{guestSessionId:We.current},withCredentials:!0};S.get(e,n).then(function(){G(!0),ln(""),In(null),Nn.current.clear(),Un.current.clear(),Pe.current="".concat(w()),Qe([]),an(!0),Vn.current=null,null==te||te(),V&&V()}).catch(function(e){console.error(e)}).finally(function(){We.current="".concat(Ae,"-").concat(O,"-").concat(w())})}catch(e){Xe(!1),console.error(e)}};function st(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var lt=function(e,o,r,i,a,s,l){var d,c,u,v,m,h,g,p,f,C,b,y,S,x,k,I,T,_,E,M,R,D,N,q,F,L,A,W,P,z;if(null===(c=null===(d=null==e?void 0:e.chatStream)||void 0===d?void 0:d.continueChatResult)||void 0===c?void 0:c.header_message){var j={header_message:e.chatStream.continueChatResult.header_message,responsedata:null===(m=null===(v=null===(u=null==e?void 0:e.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===v?void 0:v.message)||void 0===m?void 0:m.content};tt(j)}var B=null===(h=null==e?void 0:e.chatStream)||void 0===h?void 0:h.continueChatResult,O=null==B?void 0:B.isEnd,H=(null===(g=null==B?void 0:B.message)||void 0===g?void 0:g.citations)||[];O&&H.length>0&&de&&de(H);var U={role:"assistant",content:"",id:w()};if(null===(b=null===(C=null===(f=null===(p=null==e?void 0:e.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===f?void 0:f.message)||void 0===C?void 0:C.content)||void 0===b?void 0:b.includes("WaitMessage: "))en(!0),U.content=function(e){var n="WaitMessage: ",t=e.indexOf(n);if(-1!==t){var o=e.substring(t+13);return null==o?void 0:o.replaceAll("WaitMessage: ","")}return""}((null===(x=null===(S=null===(y=null==e?void 0:e.chatStream)||void 0===y?void 0:y.continueChatResult)||void 0===S?void 0:S.message)||void 0===x?void 0:x.content)+"\n\n"),""!==U.content&&(Xe(!1),Qe(n(n([],Ve,!0),[{role:"user",content:a,time:i,isFirstQuestionSent:s||!1,id:l||(null===(I=null===(k=null==e?void 0:e.chatStream)||void 0===k?void 0:k.continueChatResult)||void 0===I?void 0:I.requestId)||"",reply:""},U],!1)));else{en(!1);var G=null===(_=null===(T=null==e?void 0:e.chatStream)||void 0===T?void 0:T.continueChatResult)||void 0===_?void 0:_.requestId;"string"==typeof G&&G&&ve&&ve(G);var Z=function(e,o,r,i){var a,s,l,d,c,u,v,m={role:"assistant",content:"",id:w(),time:new Date,citations:[]},h=(null===(a=null==e?void 0:e.chatStream)||void 0===a?void 0:a.continueChatResult)||{},g=null==h?void 0:h.requestId,p=null==h?void 0:h.preserve_message,f=null==h?void 0:h.isEnd,C=(null===(s=null==h?void 0:h.message)||void 0===s?void 0:s.content)||"",b=null==h?void 0:h.is_orchestrator,y=null==h?void 0:h.thinking_break,S=(null===(l=null==h?void 0:h.message)||void 0===l?void 0:l.citations)||[];if(g&&p&&C&&!f){var x=i.current.get(g)||[];x[x.length-1]!==C&&(x.push(C),i.current.set(g,x))}var k=(g&&i.current.get(g)||[]).join("\n\n"),I="";if(f)I=k&&""!==k.trim()?k:C;else if(p)I=k;else{var T=C.replace(/<!--(?![\s\S]*-->)[\s\S]*$/,"").trimEnd(),_=!1===b||y||0!==S.length?"":T;I=k?"".concat(k,"\n\n").concat(_):_}if(m.content=st(I),!0===(null==h?void 0:h.thinking_break)&&!0===(null==h?void 0:h.is_orchestrator)&&!1===(null==h?void 0:h.isEnd)&&o.push({responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!1}),!1===(null==h?void 0:h.thinking_break)&&!1===(null==h?void 0:h.is_orchestrator)&&!1===(null==h?void 0:h.isEnd)){if(h.explainability_id&&h.responded_by){var E=h.explainability_id,M=h.responded_by;r.has(E)||r.set(E,{responded_by:M,index:o.length})}r.has(h.explainability_id)?o[null==(R=r.get(h.explainability_id))?void 0:R.index]={responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!0,explainability_id:null!==(d=h.explainability_id)&&void 0!==d?d:"",isParallelToolResponse:!0}:o=n(n([],o,!0),[{responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!0,explainability_id:null!==(c=h.explainability_id)&&void 0!==c?c:"",isParallelToolResponse:!1}],!1)}if(!0===(null==h?void 0:h.thinking_break)&&!1===(null==h?void 0:h.is_orchestrator)&&!1===(null==h?void 0:h.isEnd)){var R;h.explainability_id&&h.responded_by&&(E=h.explainability_id,M=h.responded_by,r.has(E)||r.set(E,{responded_by:M,index:o.length})),r.has(h.explainability_id)?o[null==(R=r.get(h.explainability_id))?void 0:R.index]={responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!1,explainability_id:null!==(u=h.explainability_id)&&void 0!==u?u:"",isParallelToolResponse:!0}:o.push({responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!1,explainability_id:null!==(v=h.explainability_id)&&void 0!==v?v:"",isParallelToolResponse:!1})}return t({orchestratorAndAgentsMessages:o},m)}(e,r,o,Un);Z.time=new Date,Z.citations=H,Z.isEnd=null===(M=null===(E=null==e?void 0:e.chatStream)||void 0===E?void 0:E.continueChatResult)||void 0===M?void 0:M.isEnd,Z.requestId=null===(D=null===(R=null==e?void 0:e.chatStream)||void 0===R?void 0:R.continueChatResult)||void 0===D?void 0:D.requestId,Z.sessionId=We.current,null===(N=Z.orchestratorAndAgentsMessages)||void 0===N||N.forEach(function(e){e&&e.header_message&&tt(e)}),(""!==(null==Z?void 0:Z.content)||(null==Z?void 0:Z.orchestratorAndAgentsMessages)&&(null==Z?void 0:Z.orchestratorAndAgentsMessages.length)>0)&&(Xe(!1),Qe(n(n([],Ve,!0),[{role:"user",content:a||"",time:i,isFirstQuestionSent:s||!1,id:l||(null===(F=null===(q=null==e?void 0:e.chatStream)||void 0===q?void 0:q.continueChatResult)||void 0===F?void 0:F.requestId)||"",requestId:null!==(W=null===(A=null===(L=null==e?void 0:e.chatStream)||void 0===L?void 0:L.continueChatResult)||void 0===A?void 0:A.requestId)&&void 0!==W?W:""},Z],!1))),on(null===(z=null===(P=null==e?void 0:e.chatStream)||void 0===P?void 0:P.continueChatResult)||void 0===z?void 0:z.isEnd)}},dt=m(function(e,t){void 0===t&&(t="inactivity"),console.error("🛑 Stream failed or timed out due to:reason=".concat(t," requestId=").concat(e," at ").concat((new Date).toISOString()));var o=Kn.current.get(e);o&&(clearTimeout(o),Kn.current.delete(e)),e&&U&&(x(e,U,!1),Un.current.delete(e)),e===On.current?(Gn.current=!1,on(!0),hn(!1),_n(!1),Xe(!1),en(!1),Qe(function(e){var o=n([],e,!0).reverse().find(function(e){return"user"===e.role}),r=((null==o?void 0:o.content)||"").replace(/"/g,"""),i=n([],e,!0),a=i[i.length-1];a&&"assistant"===a.role&&!a.isEnd&&i.pop();var s="I ran into an unexpected issue while trying to process this learning.";return"inactivity"===t?s="Something went wrong—teaching is taking longer than expected.":"websocket_error"===t&&(s="I lost connection to the server while working on that."),n(n([],i,!0),[{role:"assistant",content:"".concat(s,' Please try again.\n\n<button class="clickable-button" data-value="').concat(r,'">Retry</button>'),id:w(),time:new Date,isEnd:!0,citations:[]}],!1)})):console.warn("🛑 [handleStreamTimeout] Ignoring stale timeout for superseded requestId=".concat(e,"; active=").concat(On.current))},[Ee,U]),ct=m(function(e){var n=Kn.current.get(e);if(n&&clearTimeout(n),Ee&&Ee>0){console.log("⏱️ [Timeout armed] requestId=".concat(e," timeout=").concat(Ee,"ms at ").concat((new Date).toISOString()));var t=setTimeout(function(){console.warn("⏱️ [Timeout FIRED — auto stop] requestId=".concat(e," at ").concat((new Date).toISOString())),dt(e,"inactivity")},Ee);Kn.current.set(e,t)}},[dt,Ee]),ut=function(e,i,a,s,l,d){return o(void 0,void 0,void 0,function(){var o,s,c,u,v,m,h,g,p,f,C,b,y,S,x,I;return r(this,function(r){switch(r.label){case 0:if(o=(void 0!==a?a:Ge||"").trim(),(s="Enter"===(null==e?void 0:e.key)&&!(null==e?void 0:e.shiftKey)&&!_e)&&(null===(C=null==e?void 0:e.preventDefault)||void 0===C||C.call(e)),c="user"===(null===(b=Ve[Ve.length-1])||void 0===b?void 0:b.role),!o||mn||Gn.current||c||(null==e?void 0:e.key)&&!s)return[2];if(Vn.current||(Vn.current=(new Date).toISOString(),console.log("Session start time set to ".concat(Vn.current))),!De)return[3,5];Xe(!0),un("Validating session..."),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,De(Vn.current)];case 2:return r.sent()?[3,4]:($n(!0),Xe(!1),d&&d(!1),[2]);case 3:return u=r.sent(),console.error("Validation error:",u),$n(!0),Xe(!1),d&&d(!1),[2];case 4:Xe(!1),r.label=5;case 5:return Gn.current=!0,"I want to add a rule description"===o?(on(!1),Be.current=!0,hn(!0),!kn&&o&&In(a||"manual_entry"),v=new Date,Qe(function(e){return n(n([],e.map(function(e,n){var o;return t(t({},e),{content:null===(o=st(e.content))||void 0===o?void 0:o.replace("WaitMessage: ","")})}),!0),[{role:"user",content:o,time:v,isFirstQuestionSent:!1,id:l||w()}],!1)}),ot("smooth"),setTimeout(function(){Qe(function(e){return n(n([],e,!0),[{role:"assistant",content:"I'd be happy to help you set up a new rule! To get started, could you tell me what kind of behavior or logic you would like this rule to follow?",id:w(),citations:[],time:new Date}],!1)}),ot("smooth"),setTimeout(function(){hn(!1),on(!0)},500)},500),[2]):(on(!1),Be.current=!0,hn(!0),!kn&&o&&In(a||"manual_entry"),m=new Date,Qe(function(e){var r=e.map(function(e){var n;return t(t({},e),{content:null===(n=st(e.content))||void 0===n?void 0:n.replace("WaitMessage: ","")})});return l&&r.some(function(e){return e.id===l})?r.map(function(e){return e.id===l?t(t({},e),{content:o}):e}):n(n([],r,!0),[{role:"user",content:o,time:m,isFirstQuestionSent:!1,id:l||w()}],!1)}),ot("smooth"),h=new Map,g=[],p=function(e){var n;if(!e)return{};var t=Object.keys(e);return 1===t.length&&"current"===t[0]?null!==(n=e.current)&&void 0!==n?n:{}:e},f={WEBSOCKET_URL:U,organizationName:O,chatAssistantName:Ae,selectedAIModel:"gpt-4",replyMessage:"",userName:null!==(y=null==Te?void 0:Te.name)&&void 0!==y?y:"Guest User",userEmailId:null!==(S=null==Te?void 0:Te.email)&&void 0!==S?S:"guestUser@example.com",userId:null!==(x=null==Te?void 0:Te.id)&&void 0!==x?x:"Guest User",query:o,requestId:"requestId-".concat(w()),customPrompt:"",enableForBackend:!1,guestSessionId:We.current,chatPreviewId:Pe.current,customMetaData:p(Y),aiModel:"",enableLogs:!0,logControls:{infoLogs:Le,debugLogs:Le},onStreamEvent:function(e){var n,t,r,a,s,d,c=null===(t=null===(n=null==e?void 0:e.chatStream)||void 0===n?void 0:n.continueChatResult)||void 0===t?void 0:t.requestId,u=null===(a=null===(r=null==e?void 0:e.chatStream)||void 0===r?void 0:r.continueChatResult)||void 0===a?void 0:a.header_message;console.log("📦 [Stream Chunk Received] With RequestID and header_message: ".concat(c,",").concat(u)),ct(f.requestId);var v=null===(d=null===(s=null==e?void 0:e.chatStream)||void 0===s?void 0:s.continueChatResult)||void 0===d?void 0:d.error_state;if(Array.isArray(v)&&v.length>0)return console.error("⚠️ Agent returned an error_state during stream:",{requestId:c,errorState:v}),void dt(f.requestId,"agent_error");lt(e,h,g,m,o,i,l)},onStreamEnd:function(e){var o,r,i=null===(r=null===(o=null==e?void 0:e.chatStream)||void 0===o?void 0:o.continueChatResult)||void 0===r?void 0:r.requestId;Hn.current.add(f.requestId),console.log("✅ [Stream Completed] RequestID: ".concat(i));var a=Kn.current.get(f.requestId);a&&(clearTimeout(a),Kn.current.delete(f.requestId)),Gn.current=!1,on(!0),hn(!1),_n(!1);var s=Date.now(),l=Bn.current.get(f.requestId);if(l){var d=Math.round((s-l)/1e3).toFixed(1);Qe(function(e){var o=n([],e,!0).reverse().findIndex(function(e){return"assistant"===e.role});if(-1===o)return e;var r=e.length-1-o;return e.map(function(e,n){return n===r?t(t({},e),{finalTimeTaken:d}):e})})}},onError:function(e){var n=Kn.current.get(f.requestId);if(n&&(clearTimeout(n),Kn.current.delete(f.requestId)),Hn.current.has(f.requestId))return console.warn("Ignoring post-completion error for already-finished request:",f.requestId),void Hn.current.delete(f.requestId);console.error("Stream error:",e),dt(f.requestId,"websocket_error")}},o&&(Xe(!0),null===(I=He.current)||void 0===I||I.blur(),Ze(""),ot(),un(l?"Just a moment, processing your request...":"Okay, got it. Let me take a moment to work on this and I'll get back to you shortly."),Bn.current.set(f.requestId,Date.now()),On.current=f.requestId,console.log("Chat Stream Params:",f),ct(f.requestId),Zn.current+=1,console.log("🚀 [UI Action] stream started (Total UI invocations: ".concat(Zn.current,") | RequestID: ").concat(f.requestId,' | Query: "').concat(o,'"')),k(f)),d&&d(!1),[2])}})})},vt=d(null);h(function(){vt.current=ut});var mt=m(function(){for(var e,t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return null===(e=vt.current)||void 0===e?void 0:e.call.apply(e,n([vt],t,!1))},[]),ht=u(function(){return{p:function(e){e.node;var n=e.children;return i(e,["node","children"]),a("div",t({style:{margin:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"10px",fontFamily:"inherit"}},{children:n}))},button:function(e){e.node;var n=e.className,o=e.children,r=i(e,["node","className","children"]),l=L(o),d=r["data-value"],c="Tester Genie"===l;return a(M,t({},r,{className:n,handleStream:mt,isStreamEnd:tn,disabled:!!kn||!!_e,isLastMessage:!0,style:{margin:0},isTesterGenie:c,"data-selected":kn===l||kn===d?"true":kn?"false":void 0},{children:s("span",t({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[o,c&&s("svg",t({width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[a("path",{d:"M7.20368 8.94768e-06C7.48895 -0.00208639 7.69331 0.364327 7.83856 0.57465C8.14381 1.01633 8.38012 1.87909 7.71077 2.14118C8.57167 2.21011 9.70406 2.93098 10.1785 3.64699C10.5932 4.27286 10.4559 5.16037 9.80301 5.56007L9.9502 7.16593C9.97671 7.44871 10.0265 7.87092 10.0299 8.14457C10.4213 8.23046 11.0787 8.55391 11.326 8.87592C11.5979 8.75656 11.9189 8.76963 12.1688 8.93469C12.3563 8.67751 12.5598 8.41456 12.7507 8.15787C12.3283 7.45155 12.5047 6.57745 13.2143 6.13784C13.5375 5.9377 13.9264 5.87277 14.2971 5.95705C14.0961 6.30964 13.8775 6.72182 13.6593 7.05857C13.7906 7.2436 13.9184 7.44225 14.044 7.63194L14.8022 7.63198C15.0349 7.30106 15.2515 6.90827 15.4835 6.59349C15.8623 7.0712 15.8156 7.79671 15.4734 8.28241C15.1318 8.76741 14.4886 8.9899 13.9118 8.88251C13.758 9.12108 13.5577 9.39243 13.3941 9.63201C13.7143 9.9316 13.7725 10.364 13.4067 10.6594C13.5231 10.8889 13.5309 11.1613 13.447 11.402C13.1502 12.2523 12.1724 12.5645 11.3474 12.5025C11.1171 12.4852 10.939 12.4698 10.7197 12.3953C10.8724 13.1271 10.7744 14.2031 10.5132 14.9051C10.1688 15.8304 9.43632 16.5569 8.54503 16.9655C7.90465 17.2706 7.21222 17.3607 6.50472 17.4505C5.74445 17.5471 4.75801 17.4362 4.08533 17.825C3.9327 17.9132 3.86566 18.0173 3.82943 18.1792C3.94996 18.5982 4.47858 18.6063 4.78474 18.8897C5.20191 19.2758 4.90716 19.9663 4.36611 19.9908C4.31476 19.9931 4.26867 19.9867 4.23186 19.9493C4.23089 19.8303 4.47587 19.7199 4.49787 19.5262C4.55075 19.0604 3.70014 19.0078 3.37835 18.8374C3.13013 18.706 2.99537 18.6309 2.82242 18.4021C2.63795 18.1579 2.58428 17.835 2.63138 17.5392C2.74868 16.7847 3.47123 16.393 4.12184 16.1497C4.61314 15.9659 5.46304 15.7158 5.52019 15.0793C5.58589 14.348 4.97543 13.5523 4.57739 12.9807C4.44275 12.7875 4.3039 12.579 4.16309 12.3919C4.18987 12.365 4.21049 12.3463 4.23916 12.3212C4.59619 12.6218 5.21209 12.6421 5.55038 12.2979C5.70457 12.144 5.78974 11.9342 5.78642 11.7164C5.78121 11.4493 5.63382 11.2002 5.4454 11.019C5.44704 10.9932 5.44824 10.9676 5.449 10.9419C5.4566 10.6648 5.37505 10.4902 5.1892 10.2943C5.18398 10.2538 5.17776 10.2134 5.17053 10.1732C5.08123 9.69297 4.71708 9.34182 4.23415 9.27108C4.16418 9.26083 3.96108 9.26105 3.92071 9.23344C3.90485 9.1828 3.9059 9.20792 3.91904 9.15527C4.22103 8.90139 4.14407 8.78214 4.31107 8.4846C4.42301 8.28513 4.73047 8.15239 4.95452 8.10701C4.96167 7.51076 5.03684 6.88562 5.10036 6.29144C5.12451 6.0655 5.12531 5.75046 5.1511 5.55257C4.11108 4.86747 4.39091 3.75946 5.25465 3.06391C5.84978 2.58469 6.34496 2.31002 7.10143 2.14517C7.01589 2.10416 6.93842 2.04811 6.87269 1.97972C6.77021 1.87349 6.70248 1.73857 6.67853 1.59293C6.60568 1.12096 7.04104 0.914625 7.18759 0.526392C7.26428 0.323403 7.03925 0.146075 7.20368 8.94768e-06Z",fill:"#475569"}),a("path",{d:"M7.459 4.5C7.48797 4.50312 7.71949 4.61154 7.76205 4.63061C8.27062 4.85835 8.87051 5.09164 9.35658 5.3582C9.36602 6.03495 9.37016 6.56625 8.70573 6.91519C8.6633 6.80883 8.63019 6.72409 8.56332 6.63044C8.43786 6.45568 8.24656 6.33963 8.03354 6.30909C7.8434 6.28211 7.65146 6.3197 7.49586 6.43503C7.21897 6.21256 6.76265 6.28197 6.5229 6.52486C6.39308 6.65639 6.34815 6.75074 6.28902 6.92344C5.59702 6.5957 5.58761 6.04267 5.60583 5.35582C5.89882 5.23844 6.21318 5.0724 6.50153 4.941C6.82145 4.79522 7.14482 4.6574 7.459 4.5Z",fill:"#D1EDFD"}),a("path",{d:"M11.0756 10.6406C11.1037 10.6701 11.1324 10.7706 11.1535 10.8145C11.2818 11.0817 11.4922 11.1945 11.7498 11.2977C11.5607 11.63 11.4567 11.8797 11.1034 12.0466L11.0839 12.0517C10.9262 12.0927 10.7996 12.0968 10.651 12.0135C10.4755 11.915 10.3807 11.6614 10.4792 11.478C10.6388 11.1809 10.8877 10.9272 11.0756 10.6406Z",fill:"#D1EDFD"}),a("path",{d:"M11.6036 9.1377C11.6993 9.11763 11.8391 9.16378 11.9294 9.19593C11.6952 9.50644 11.4706 9.81614 11.2327 10.1261L11.1572 10.2255C10.7581 9.73539 11.0333 9.24481 11.6036 9.1377Z",fill:"#D1EDFD"}),a("path",{d:"M7.49681 0.882812C7.53691 0.925159 7.61244 1.08523 7.63598 1.14156C7.74243 1.39673 7.75769 1.76908 7.38596 1.77504C7.28236 1.75599 7.15628 1.68938 7.13517 1.5783C7.0843 1.3107 7.35609 1.09964 7.48737 0.897583L7.49681 0.882812Z",fill:"#D1EDFD"}),a("path",{d:"M1.68305 6.17249C1.71659 6.1673 1.8134 6.16478 1.84892 6.16432C2.34052 6.15616 2.81496 6.34495 3.16655 6.68866C3.50847 7.01806 3.70349 7.47119 3.70765 7.94596C3.70896 8.42345 3.54045 8.85284 3.20281 9.19025C3.34033 9.28068 3.5321 9.52219 3.6543 9.65748C4.17158 9.39073 4.91447 9.69339 4.79675 10.3444C5.08751 10.5485 5.19656 10.8288 5.0585 11.1674C5.15418 11.2375 5.25595 11.3205 5.32383 11.4186C5.40228 11.5303 5.4309 11.6695 5.40291 11.8031C5.32228 12.1857 4.90085 12.3286 4.57669 12.1236C4.51367 12.0838 4.42258 11.9595 4.35299 11.9431C4.30669 11.9557 4.28453 11.9584 4.23644 11.9644C4.22885 11.9742 4.22118 11.9841 4.21343 11.9938C3.93597 12.3413 3.49234 12.4682 3.06933 12.5157C2.85285 12.518 2.70432 12.5146 2.49066 12.4609C1.80785 12.2892 1.50808 11.6167 1.70723 10.9639C1.829 10.5648 2.11891 10.2506 2.48939 10.0518C2.54655 10.132 2.57559 10.2191 2.64066 10.303C2.73571 10.2223 2.82048 10.1482 2.92363 10.0773C2.81023 9.95313 2.66811 9.7693 2.55817 9.63584C2.38871 9.6878 2.23026 9.72879 2.05298 9.74653C1.54239 9.80228 1.03118 9.64711 0.637735 9.31695C0.269964 9.01018 0.0453493 8.54827 0.00544736 8.07322C-0.0309495 7.60988 0.116099 7.15077 0.414918 6.79478C0.742554 6.41198 1.18728 6.21393 1.68305 6.17249Z",fill:"#475569"}),a("path",{d:"M1.79616 6.5951C2.54894 6.5619 3.18687 7.14364 3.22301 7.8963C3.25915 8.64894 2.67989 9.28913 1.92739 9.3282C1.17073 9.3675 0.526231 8.78435 0.489885 8.02753C0.45354 7.27071 1.03921 6.62849 1.79616 6.5951Z",fill:"#D1EDFD"}),a("path",{d:"M4.93607 11.4844C5.12839 11.6261 5.22049 11.9085 4.91876 11.9419C4.8067 11.8805 4.78491 11.8646 4.71094 11.7561C4.81572 11.6752 4.862 11.5925 4.93607 11.4844Z",fill:"#FEFEFD"}),a("path",{d:"M12.5164 3.58594L12.5715 3.59466C12.6589 3.65863 12.6908 3.94434 12.7882 4.05193C12.8789 4.15216 12.9155 4.17816 13.0326 4.24929C13.1363 4.31224 13.3325 4.34025 13.384 4.43124C13.3643 4.56218 13.0693 4.54857 12.9127 4.69344C12.6903 4.89898 12.7114 5.06971 12.5892 5.28622C12.5669 5.28439 12.5368 5.2868 12.5261 5.27346C12.4336 5.15843 12.4072 4.9308 12.3099 4.81465C12.1627 4.63903 11.9972 4.60054 11.7981 4.51372C11.7544 4.49467 11.7266 4.47099 11.7129 4.42649C11.7867 4.31876 12.0509 4.34309 12.2376 4.14892C12.43 3.94901 12.4155 3.72208 12.5164 3.58594Z",fill:"#475569"}),a("path",{d:"M2.13644 3.72656C2.24401 3.77084 2.29712 4.1268 2.431 4.25226C2.60327 4.41371 2.7311 4.41949 2.93246 4.52449C2.96024 4.53897 2.97173 4.56042 2.97671 4.58878C2.89584 4.6981 2.61854 4.70721 2.4596 4.85659C2.26275 5.04156 2.27341 5.29132 2.17022 5.42088C2.16192 5.41849 2.11671 5.40232 2.1156 5.40043C2.01291 5.21216 1.9836 5.04909 1.84812 4.87273C1.73599 4.72675 1.36534 4.69959 1.32812 4.56939C1.3835 4.47941 1.67823 4.44211 1.82291 4.30563C2.02737 4.11274 2.0042 3.8372 2.13644 3.72656Z",fill:"#475569"})]}))]}))}))}}},[mt,tn,kn,_e]),gt=u(function(){return Ve.some(function(e){return e.isSkeleton})},[Ve]),pt=function(e){return o(void 0,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return Ie?[4,Ie(e)]:[3,2];case 1:t.sent(),Qe(function(e){return n(n([],e,!0),[{role:"assistant",content:"Thanks for your feedback — this will help improve future suggestions.",id:w(),citations:[],time:new Date,isEnd:!0}],!1)}),setTimeout(function(){return ot("smooth")},100),t.label=2;case 2:return[2]}})})};return s("div",t({className:"".concat(N.customFont," ").concat(D.chatContainer),style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:Se&&!gt?"0 0 20px 5px rgba(37, 99, 235, 0.5)":"none"}},{children:[s("div",t({ref:je,className:D.scrollWrapper},{children:[a("div",t({ref:Dn,className:D.stickyHeader},{children:a(T,{resetChatHistory:at,isStreamEnd:tn,chatTitle:X,onResize:se,chatSize:ae,movingTowards:le})})),s("div",t({className:D.messagesList},{children:[s("div",t({className:D.initialMessageRow},{children:[a("div",t({className:D.iconWrapper},{children:a(W,{})})),a("div",t({className:D.welcomeTextWrapper},{children:a("div",t({className:D.welcomeMarkdownWrapper},{children:a("span",{children:a(b,t({rehypePlugins:[y],components:ht},{children:re}))})}))}))]})),Ve.length>0&&Ve.map(function(e,n){var o,r;return s("div",t({className:D.messageRow},{children:["assistant"===e.role?a("div",t({className:D.assistantIconContainer},{children:a(W,{})})):a("div",{className:D.userSpacer}),a("div",t({className:D.messageContent},{children:"assistant"===e.role?s(l,{children:[e.orchestratorAndAgentsMessages&&e.orchestratorAndAgentsMessages.length>0&&a(I,{orchestratorAndAgentsMessages:null==e?void 0:e.orchestratorAndAgentsMessages,isStreamEnd:tn,finalTimeTaken:null==e?void 0:e.finalTimeTaken},null!==(o=null==e?void 0:e.finalTimeTaken)&&void 0!==o?o:null==e?void 0:e.id),a(_,{index:n,content:null==e?void 0:e.content,role:null==e?void 0:e.role,messages:Ve,handleStream:mt,isLastMessage:n===Ve.length-1,onSave:ie,citations:null==e?void 0:e.citations,setChatSize:se,chatSize:ae,isStreamEnd:tn,messageIsEnd:null==e?void 0:e.isEnd,onViewComparison:xe,onTypeResponseClick:function(){var e;Pn(!0),null===(e=He.current)||void 0===e||e.focus()},onComparisonLinkClick:ke,baseURL:ze,onFeedbackSubmit:pt,isGlobalEditActive:_e,fieldLabelMap:qe}),e.hasOwnProperty("isEnd")&&!(null==e?void 0:e.isEnd)&&(null===(r=null==e?void 0:e.content)||void 0===r?void 0:r.length)>0&&s(l,{children:[a(E,{variant:"text",width:"50%",height:20}),a("div",{style:{marginTop:"10px"}}),a(E,{variant:"text",width:"100%",height:40})]}),a("div",t({className:D.timestamp},{children:e.time&&!isNaN(new Date(e.time).getTime())?new Date(e.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}):s("div",t({className:D.userMessageWrapper},{children:[s("div",t({className:D.userMessageBubble,style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:e.isSkeleton||gt||e.id!==Fn?"none":"0 0 15px 3px rgba(37, 99, 235, 0.6)"}},{children:[e.isSkeleton?s("div",t({style:{display:"flex",flexDirection:"column",gap:"12px",minWidth:"280px",padding:"8px 0"}},{children:[a(E,{variant:"text",width:"100%",height:16}),a(E,{variant:"text",width:"80%",height:16})]})):a(_,{index:n,content:null==e?void 0:e.content,role:null==e?void 0:e.role,messages:Ve,handleStream:mt,isLastMessage:n===Ve.length-1,onSave:ie,citations:null==e?void 0:e.citations,isStreamEnd:tn,isGlobalEditActive:_e,messageIsEnd:null==e?void 0:e.isEnd,onViewComparison:xe,onComparisonLinkClick:ke,baseURL:ze,onFeedbackSubmit:pt,fieldLabelMap:qe}),a("div",t({style:{marginTop:"0.5rem"}},{children:a(P,{})}))]})),a("div",t({className:D.userTimestamp},{children:new Date(e.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}))}))]}),e.id)}),$e&&s("div",t({className:D.loadingRow},{children:[a("div",t({className:D.iconWrapper,style:{marginTop:"0.2rem"}},{children:a(W,{})})),a("div",t({className:D.loadingTextWrapper},{children:a("span",{children:cn})}))]})),a("div",{ref:Oe,style:{float:"left",clear:"both"}})]}))]})),a("div",t({className:D.inputAreaWrapper},{children:a(C,t({title:$?"Please wait for the validation to be completed.":""},{children:s("div",t({className:"".concat(D.inputBoxContainer," ").concat(Yn?D.disabled:""),style:Wn?{boxShadow:"0 0 15px 3px rgba(37, 99, 235, 0.5)",borderColor:"#2563eb",transition:"box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out"}:{transition:"box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out"}},{children:[Ve.length>0&&!bn&&a("div",t({onMouseDown:function(e){e.preventDefault(),ot("smooth")},className:D.scrollToBottomBtn},{children:a(q,{})})),s("div",t({style:{width:"100%",display:"flex"}},{children:[a("textarea",{ref:He,placeholder:ue,value:Ge||"",onChange:function(e){Ze(e.target.value)},onFocus:function(){return fn(!0)},onBlur:function(){return fn(!1)},onKeyDown:function(e){return ut(e)},disabled:Yn,className:"no-scrollbar ".concat(D.chatTextarea),style:{minHeight:pn||Ge&&Ge.length>40?"120px":"50px",height:pn||Ge&&Ge.length>40?"120px":"50px",maxHeight:"120px"}}),a("span",t({className:D.sendButtonWrapper},{children:a("button",t({onClick:function(e){nt||ut(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:nt,className:"".concat(D.sendButton," ").concat(nt?D.disabled:D.active)},{children:a(A,{})}))}))]}))]}))}))})),s("div",t({className:D.footerTools},{children:[a(C,t({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("span",t({className:D.footerToolItem},{children:a(R,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),a(C,t({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("span",t({className:D.footerToolItem},{children:a(R,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]})),a(p,t({open:Jn,onClose:function(){},PaperProps:{sx:{borderRadius:"12px",padding:"8px",maxWidth:"400px",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-foreground, #0F172A)"}}},{children:s(f,t({sx:{p:3,textAlign:"center",fontFamily:"'Plus Jakarta Sans', sans-serif"}},{children:[a("h3",t({style:{fontSize:"18px",fontWeight:600,color:"var(--il-foreground, #0F172A)",marginBottom:"10px"}},{children:"Session Expired"})),a("p",t({style:{fontSize:"14px",color:"var(--il-muted, #64748B)",lineHeight:"1.5",marginBottom:"20px"}},{children:"Changes were made to the learnings in this scope while you were editing. To avoid conflicts, concurrent edits aren’t allowed."})),s(f,t({sx:{display:"flex",gap:2,justifyContent:"center"}},{children:[a("button",t({onClick:function(){$n(!1),at()},style:{flex:1,padding:"10px 16px",cursor:"pointer",backgroundColor:"var(--il-secondary-bg, white)",border:"1px solid var(--il-border, #E2E8F0)",borderRadius:"8px",fontSize:"14px",fontWeight:500,color:"var(--il-secondary-fg, #475569)",transition:"all 0.2s"},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="var(--il-hover, #F8FAFC)"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="var(--il-secondary-bg, white)"}},{children:"Reset Session"})),a("button",t({onClick:function(){$n(!1),null==Ne||Ne()},style:{flex:1,padding:"10px 16px",backgroundColor:"var(--il-danger, #EF4444)",color:"var(--il-primary-fg, white)",border:"none",borderRadius:"8px",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.2s"},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="var(--il-danger-hover, #DC2626)"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="var(--il-danger, #EF4444)"}},{children:"Discard & Close"}))]}))]}))}))]}))};export{j as autoGeneratePrompt,B as default};
|
|
1
|
+
import{__makeTemplateObject as e,__spreadArray as n,__assign as t,__awaiter as o,__generator as r,__rest as i}from"tslib";import{jsx as a,jsxs as s,Fragment as l}from"react/jsx-runtime";import{useRef as c,useState as d,useMemo as u,useEffect as v,useCallback as m,useLayoutEffect as h}from"react";import{keyframes as g,Dialog as p,Box as f}from"@mui/material";import C from"@mui/material/Tooltip";import b from"react-markdown";import y from"rehype-raw";import{http as S}from"../../../../api/transport.js";import{v4 as w}from"uuid";import{stopStreaming as x,startChatStream as k}from"@e-llm-studio/streaming-response";import{WatchMeWork as I}from"@e-llm-studio/watch-me-work";import T from"./ChatHeader.js";import _ from"../MessageRendering/MessageRendering.js";import{Skeleton as E}from"../atoms/SkeletonLoader/SkeletonLoader.js";import{ActionableButton as M}from"../MessageRendering/ClickableChatComponents.js";import R from"../AudioWaveform.js";import D from"./ChatComponent.module.css.js";import N from"../../InstantLearning.module.css.js";import{ScrollToBottom as q}from"../_svg/ScrollToBottom.js";import{useHeaderObserver as F,extractTextFromChildren as L}from"../../helpers/utils.js";import{SendButton as A}from"../_svg/SendButton.js";import W from"../_svg/SparkleIcon.js";import{UserIcon as P}from"../_svg/UserIcon.js";var z,j=function(e,n){return S.post("".concat(e||"https://devllmstudio.creativeworkspace.ai","/api/chat/chatResponse"),{name:"ilggcautopromptgen",organizationName:"techolution",prompt:n||"Generate a query"},{headers:{"Content-Type":"application/json"},withCredentials:!0}).then(function(e){return e.data}).catch(function(e){throw console.error("Error calling auto-generate API:",e),e})},B=function(j){var B=j.chatAssistantName,O=j.organizationName,H=j.baseUrl,U=j.baseWebsocketUrl,G=j.setIsNewChatClicked;j.ThinkingBulbIconComponent;var Z=j.isFormSaveClicked,K=j.setIsFormSavedClicked,V=j.onResetLearningData,Q=j.sendMessageInChat,J=j.setSendMessageInChat,$=j.isFormValidating,X=j.chatTitle,Y=j.customMetaData,ee=j.headerMessageHandlers;j.aiResponse;var ne=j.setAIResponse,te=j.onResetChat,oe=j.initialChatMessage,re=void 0===oe?"":oe,ie=j.onSave,ae=j.chatSize,se=j.setChatSize,le=j.movingTowards,ce=j.setCitations,de=j.textareaPlaceholder,ue=void 0===de?"Tell me more about this learning...":de,ve=j.setCurrentRequestId,me=j.showSavedMessage,he=void 0!==me&&me,ge=j.savedMessage,pe=j.isError,fe=void 0!==pe&&pe,Ce=j.errorMessage,be=void 0===Ce?"There was an error saving your changes.":Ce;j.isSaving;var ye=j.isHighlighted,Se=void 0!==ye&&ye,we=j.onStreamingStateChange,xe=j.onViewComparison;j.isCopyEnabled;var ke=j.onComparisonLinkClick,Ie=j.onSubmitFeedback,Te=j.userDetails,_e=j.isGlobalEditActive,Ee=j.socketTimeOutInMilliSeconds,Me=j.initialDraftMessage,Re=void 0===Me?"":Me,De=j.onValidateSession,Ne=j.onCloseSessionModal,qe=j.fieldLabelMap,Fe=j.enableChatLogs,Le=void 0!==Fe&&Fe,Ae=B,We=c("".concat(Ae,"-").concat(O,"-").concat(w())),Pe=c("".concat(w())),ze=H,je=c(null),Be=c(!0),Oe=c(null),He=c(null),Ue=d(Re),Ge=Ue[0],Ze=Ue[1],Ke=d([]),Ve=Ke[0],Qe=Ke[1],Je=d(!1),$e=Je[0],Xe=Je[1],Ye=d(!1);Ye[0];var en=Ye[1],nn=d(!0),tn=nn[0],on=nn[1],rn=d(!0);rn[0];var an=rn[1],sn=d("");sn[0];var ln=sn[1],cn=d(""),dn=cn[0],un=cn[1],vn=d(!1),mn=vn[0],hn=vn[1],gn=d(!1),pn=gn[0],fn=gn[1],Cn=d(!0),bn=Cn[0],yn=Cn[1],Sn=d("100%");Sn[0];var wn=Sn[1],xn=d(null),kn=xn[0],In=xn[1],Tn=d(!1);Tn[0];var _n=Tn[1],En=d(!1),Mn=En[0],Rn=En[1],Dn=c(null),Nn=c(new Set),qn=d(null),Fn=qn[0],Ln=qn[1],An=d(!1),Wn=An[0],Pn=An[1],zn=d(!1);zn[0],zn[1];var jn=d(null);jn[0],jn[1],c(null),c(null);var Bn=c(new Map),On=c(""),Hn=c(new Set),Un=c(0),Gn=c(!0),Zn=c(new Map),Kn=c(!1),Vn=c(0),Qn=c(new Map),Jn=c(null),$n=d(!1),Xn=$n[0],Yn=$n[1];g(z||(z=e(["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "],["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "])));var et=u(function(){return""===(null==Ge?void 0:Ge.trim())||mn},[Ge,mn]),nt=u(function(){return $},[$]),tt=u(function(){var e;return Ve.length>0&&"user"===(null===(e=Ve[Ve.length-1])||void 0===e?void 0:e.role)},[Ve]),ot=u(function(){return et||$||!!_e||tt},[et,$,_e,tt]);v(function(){Re&&!Ge&&(Ze(Re),fn(!0),setTimeout(function(){if(He.current){He.current.focus();var e=Re.length;He.current.setSelectionRange(e,e)}},400))},[Re]),v(function(){null==we||we(mn)},[mn,we]),v(function(){return Gn.current=!0,function(){Gn.current=!1,Un.current+=1,Qn.current.forEach(function(e){return clearTimeout(e)}),Qn.current.clear(),On.current&&U&&x(On.current,U,!1)}},[U]),v(function(){var e=je.current,n=function(){if(e){var n=e.scrollTop,t=e.scrollHeight,o=e.clientHeight;yn(t-n-o<=20)}};return e&&(e.addEventListener("scroll",n),n()),function(){e&&e.removeEventListener("scroll",n)}},[Ve]);var rt=F({handlers:ee,setResult:ne}).processHeaderMessage;v(function(){he&&Rn(!0)},[he]),v(function(){if(Wn){var e=setTimeout(function(){Pn(!1)},3e3);return function(){return clearTimeout(e)}}},[Wn]),v(function(){Z&&!_e&&(mt(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save this Learning"),K(!1))},[Z]),v(function(){if(Q)try{if(Q.startsWith("__SKELETON__:")){var e=Q.split(":"),o=e[1],r=e.slice(2).join(":"),i={role:"user",content:"",id:o,time:new Date,isSkeleton:!0,skeletonContent:r};return Qe(function(e){return n(n([],e,!0),[i],!1)}),mt(new KeyboardEvent("keydown",{key:"Enter"}),!1,r,!1,o),Ln(o),J&&J(""),void setTimeout(function(){Ln(null)},2e3)}if(Q.startsWith("__SKELETON_END__::")){var a=Q.split("::")[1]||"";return Qe(function(e){return e.map(function(e){return e.isSkeleton?t(t({},e),{isSkeleton:!1,content:e.skeletonContent||a}):e})}),void(J&&J(""))}var s=w();mt(new KeyboardEvent("keydown",{key:"Enter"}),!1,Q,!1,s),Ln(s),J&&J(""),setTimeout(function(){return Ln(null)},2e3)}catch(e){console.error("Error handling sendMessageInChat signal",e)}},[Q]),v(function(){at(),st();var e=function(){var e,n=(null===(e=null==Dn?void 0:Dn.current)||void 0===e?void 0:e.clientHeight)||0,t="calc(100% - ".concat(n,"px - 10px)");wn(t)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var it=m(function(e){var n="string"==typeof e?e:"smooth";Oe.current&&Oe.current.scrollIntoView({behavior:n,block:"end"}),Be.current&&setTimeout(function(){Oe.current&&Be.current&&Oe.current.scrollIntoView({behavior:n,block:"end"})},100)},[]);v(function(){if(!mn){var e="";if(Mn?e=ge||"Thank you teacher for teaching me, your rule has been saved successfully.":fe&&(e=be||"I'm sorry, I couldn't save your changes. Please try again."),e){var t={role:"assistant",content:e,id:w(),citations:[],time:new Date};Qe(function(e){return n(n([],e,!0),[t],!1)}),Rn(!1),setTimeout(function(){return it("smooth")},100)}}},[Mn,fe,mn,ge,be,it]),v(function(){Be.current&&it("smooth")},[it]);var at=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(ze,"/api/chatbot/getChatSettings?name=").concat(Ae,"&organizationName=").concat(O),headers:{}};S.request(e).then(function(e){var n,t,o;(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)&&""!==(null===(o=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.chatSettings)||void 0===o?void 0:o.chatInitialMessage)&&an(!0)}).catch(function(e){console.error(e)})},st=function(){return o(void 0,void 0,void 0,function(){var e,n;return r(this,function(t){e="".concat(ze,"/api/chat/history?name=").concat(Ae,"&organizationName=").concat(O);try{n={method:"GET",params:{guestSessionId:We.current},withCredentials:!0},S.get(e,n).then(function(e){var n=e.data;n.length>0?(Qe(n),it()):an(!0)}).catch(function(e){console.error(e)})}catch(e){Xe(!1),console.error(e)}return[2]})})},lt=function(){var e="".concat(ze,"/api/chat/resetHistory?name=").concat(Ae,"&organizationName=").concat(O);try{var n={method:"GET",params:{guestSessionId:We.current},withCredentials:!0};S.get(e,n).then(function(){G(!0),ln(""),In(null),Nn.current.clear(),Zn.current.clear(),Pe.current="".concat(w()),Qe([]),an(!0),Jn.current=null,null==te||te(),V&&V()}).catch(function(e){console.error(e)}).finally(function(){We.current="".concat(Ae,"-").concat(O,"-").concat(w())})}catch(e){Xe(!1),console.error(e)}};function ct(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var dt=function(e,o,r,i,a,s,l){var c,d,u,v,m,h,g,p,f,C,b,y,S,x,k,I,T,_,E,M,R,D,N,q,F,L,A,W,P,z;if(null===(d=null===(c=null==e?void 0:e.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===d?void 0:d.header_message){var j={header_message:e.chatStream.continueChatResult.header_message,responsedata:null===(m=null===(v=null===(u=null==e?void 0:e.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===v?void 0:v.message)||void 0===m?void 0:m.content};rt(j)}var B=null===(h=null==e?void 0:e.chatStream)||void 0===h?void 0:h.continueChatResult,O=null==B?void 0:B.isEnd,H=(null===(g=null==B?void 0:B.message)||void 0===g?void 0:g.citations)||[];O&&H.length>0&&ce&&ce(H);var U={role:"assistant",content:"",id:w()};if(null===(b=null===(C=null===(f=null===(p=null==e?void 0:e.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===f?void 0:f.message)||void 0===C?void 0:C.content)||void 0===b?void 0:b.includes("WaitMessage: "))en(!0),U.content=function(e){var n="WaitMessage: ",t=e.indexOf(n);if(-1!==t){var o=e.substring(t+13);return null==o?void 0:o.replaceAll("WaitMessage: ","")}return""}((null===(x=null===(S=null===(y=null==e?void 0:e.chatStream)||void 0===y?void 0:y.continueChatResult)||void 0===S?void 0:S.message)||void 0===x?void 0:x.content)+"\n\n"),""!==U.content&&(Xe(!1),Qe(n(n([],Ve,!0),[{role:"user",content:a,time:i,isFirstQuestionSent:s||!1,id:l||(null===(I=null===(k=null==e?void 0:e.chatStream)||void 0===k?void 0:k.continueChatResult)||void 0===I?void 0:I.requestId)||"",reply:""},U],!1)));else{en(!1);var G=null===(_=null===(T=null==e?void 0:e.chatStream)||void 0===T?void 0:T.continueChatResult)||void 0===_?void 0:_.requestId;"string"==typeof G&&G&&ve&&ve(G);var Z=function(e,o,r,i){var a,s,l,c,d,u,v,m={role:"assistant",content:"",id:w(),time:new Date,citations:[]},h=(null===(a=null==e?void 0:e.chatStream)||void 0===a?void 0:a.continueChatResult)||{},g=null==h?void 0:h.requestId,p=null==h?void 0:h.preserve_message,f=null==h?void 0:h.isEnd,C=(null===(s=null==h?void 0:h.message)||void 0===s?void 0:s.content)||"",b=null==h?void 0:h.is_orchestrator,y=null==h?void 0:h.thinking_break,S=(null===(l=null==h?void 0:h.message)||void 0===l?void 0:l.citations)||[];if(g&&p&&C&&!f){var x=i.current.get(g)||[];x[x.length-1]!==C&&(x.push(C),i.current.set(g,x))}var k=(g&&i.current.get(g)||[]).join("\n\n"),I="";if(f)I=k&&""!==k.trim()?k:C;else if(p)I=k;else{var T=C.replace(/<!--(?![\s\S]*-->)[\s\S]*$/,"").trimEnd(),_=!1===b||y||0!==S.length?"":T;I=k?"".concat(k,"\n\n").concat(_):_}if(m.content=ct(I),!0===(null==h?void 0:h.thinking_break)&&!0===(null==h?void 0:h.is_orchestrator)&&!1===(null==h?void 0:h.isEnd)&&o.push({responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!1}),!1===(null==h?void 0:h.thinking_break)&&!1===(null==h?void 0:h.is_orchestrator)&&!1===(null==h?void 0:h.isEnd)){if(h.explainability_id&&h.responded_by){var E=h.explainability_id,M=h.responded_by;r.has(E)||r.set(E,{responded_by:M,index:o.length})}r.has(h.explainability_id)?o[null==(R=r.get(h.explainability_id))?void 0:R.index]={responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!0,explainability_id:null!==(c=h.explainability_id)&&void 0!==c?c:"",isParallelToolResponse:!0}:o=n(n([],o,!0),[{responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!0,explainability_id:null!==(d=h.explainability_id)&&void 0!==d?d:"",isParallelToolResponse:!1}],!1)}if(!0===(null==h?void 0:h.thinking_break)&&!1===(null==h?void 0:h.is_orchestrator)&&!1===(null==h?void 0:h.isEnd)){var R;h.explainability_id&&h.responded_by&&(E=h.explainability_id,M=h.responded_by,r.has(E)||r.set(E,{responded_by:M,index:o.length})),r.has(h.explainability_id)?o[null==(R=r.get(h.explainability_id))?void 0:R.index]={responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!1,explainability_id:null!==(u=h.explainability_id)&&void 0!==u?u:"",isParallelToolResponse:!0}:o.push({responsedata:C,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!1,explainability_id:null!==(v=h.explainability_id)&&void 0!==v?v:"",isParallelToolResponse:!1})}return t({orchestratorAndAgentsMessages:o},m)}(e,r,o,Zn);Z.time=new Date,Z.citations=H,Z.isEnd=null===(M=null===(E=null==e?void 0:e.chatStream)||void 0===E?void 0:E.continueChatResult)||void 0===M?void 0:M.isEnd,Z.requestId=null===(D=null===(R=null==e?void 0:e.chatStream)||void 0===R?void 0:R.continueChatResult)||void 0===D?void 0:D.requestId,Z.sessionId=We.current,null===(N=Z.orchestratorAndAgentsMessages)||void 0===N||N.forEach(function(e){e&&e.header_message&&rt(e)}),(""!==(null==Z?void 0:Z.content)||(null==Z?void 0:Z.orchestratorAndAgentsMessages)&&(null==Z?void 0:Z.orchestratorAndAgentsMessages.length)>0)&&(Xe(!1),Qe(n(n([],Ve,!0),[{role:"user",content:a||"",time:i,isFirstQuestionSent:s||!1,id:l||(null===(F=null===(q=null==e?void 0:e.chatStream)||void 0===q?void 0:q.continueChatResult)||void 0===F?void 0:F.requestId)||"",requestId:null!==(W=null===(A=null===(L=null==e?void 0:e.chatStream)||void 0===L?void 0:L.continueChatResult)||void 0===A?void 0:A.requestId)&&void 0!==W?W:""},Z],!1))),on(null===(z=null===(P=null==e?void 0:e.chatStream)||void 0===P?void 0:P.continueChatResult)||void 0===z?void 0:z.isEnd)}},ut=m(function(e,t){void 0===t&&(t="inactivity"),console.error("🛑 Stream failed or timed out due to:reason=".concat(t," requestId=").concat(e," at ").concat((new Date).toISOString()));var o=Qn.current.get(e);o&&(clearTimeout(o),Qn.current.delete(e)),e&&U&&(x(e,U,!1),Zn.current.delete(e)),e===On.current?(Kn.current=!1,on(!0),hn(!1),_n(!1),Xe(!1),en(!1),Qe(function(e){var o=n([],e,!0).reverse().find(function(e){return"user"===e.role}),r=((null==o?void 0:o.content)||"").replace(/"/g,"""),i=n([],e,!0),a=i[i.length-1];a&&"assistant"===a.role&&!a.isEnd&&i.pop();var s="I ran into an unexpected issue while trying to process this learning.";return"inactivity"===t?s="Something went wrong—teaching is taking longer than expected.":"websocket_error"===t&&(s="I lost connection to the server while working on that."),n(n([],i,!0),[{role:"assistant",content:"".concat(s,' Please try again.\n\n<button class="clickable-button" data-value="').concat(r,'">Retry</button>'),id:w(),time:new Date,isEnd:!0,citations:[]}],!1)})):console.warn("🛑 [handleStreamTimeout] Ignoring stale timeout for superseded requestId=".concat(e,"; active=").concat(On.current))},[Ee,U]),vt=m(function(e){var n=Qn.current.get(e);if(n&&clearTimeout(n),Ee&&Ee>0){console.log("⏱️ [Timeout armed] requestId=".concat(e," timeout=").concat(Ee,"ms at ").concat((new Date).toISOString()));var t=setTimeout(function(){console.warn("⏱️ [Timeout FIRED — auto stop] requestId=".concat(e," at ").concat((new Date).toISOString())),ut(e,"inactivity")},Ee);Qn.current.set(e,t)}},[ut,Ee]),mt=function(e,i,a,s,l,c){return o(void 0,void 0,void 0,function(){var o,s,d,u,v,m,h,g,p,f,C,b,y,S,x,I,T;return r(this,function(r){switch(r.label){case 0:if(o=(void 0!==a?a:Ge||"").trim(),(s="Enter"===(null==e?void 0:e.key)&&!(null==e?void 0:e.shiftKey)&&!_e)&&(null===(b=null==e?void 0:e.preventDefault)||void 0===b||b.call(e)),d="user"===(null===(y=Ve[Ve.length-1])||void 0===y?void 0:y.role),!o||mn||Kn.current||d||(null==e?void 0:e.key)&&!s)return[2];if(Jn.current||(Jn.current=(new Date).toISOString(),console.log("Session start time set to ".concat(Jn.current))),!De)return[3,5];Xe(!0),un("Validating session..."),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,De(Jn.current)];case 2:return r.sent()?[3,4]:(Yn(!0),Xe(!1),c&&c(!1),[2]);case 3:return u=r.sent(),console.error("Validation error:",u),Yn(!0),Xe(!1),c&&c(!1),[2];case 4:Xe(!1),r.label=5;case 5:return Kn.current=!0,"I want to add a rule description"===o?(on(!1),Be.current=!0,hn(!0),!kn&&o&&In(a||"manual_entry"),v=new Date,Qe(function(e){return n(n([],e.map(function(e,n){var o;return t(t({},e),{content:null===(o=ct(e.content))||void 0===o?void 0:o.replace("WaitMessage: ","")})}),!0),[{role:"user",content:o,time:v,isFirstQuestionSent:!1,id:l||w()}],!1)}),it("smooth"),setTimeout(function(){Qe(function(e){return n(n([],e,!0),[{role:"assistant",content:"I'd be happy to help you set up a new rule! To get started, could you tell me what kind of behavior or logic you would like this rule to follow?",id:w(),citations:[],time:new Date}],!1)}),it("smooth"),setTimeout(function(){hn(!1),on(!0)},500)},500),[2]):(on(!1),Be.current=!0,hn(!0),!kn&&o&&In(a||"manual_entry"),m=new Date,h=Un.current,Qe(function(e){var r=e.map(function(e){var n;return t(t({},e),{content:null===(n=ct(e.content))||void 0===n?void 0:n.replace("WaitMessage: ","")})});return l&&r.some(function(e){return e.id===l})?r.map(function(e){return e.id===l?t(t({},e),{content:o}):e}):n(n([],r,!0),[{role:"user",content:o,time:m,isFirstQuestionSent:!1,id:l||w()}],!1)}),it("smooth"),g=new Map,p=[],f=function(e){var n;if(!e)return{};var t=Object.keys(e);return 1===t.length&&"current"===t[0]?null!==(n=e.current)&&void 0!==n?n:{}:e},C={WEBSOCKET_URL:U,organizationName:O,chatAssistantName:Ae,selectedAIModel:"gpt-4",replyMessage:"",userName:null!==(S=null==Te?void 0:Te.name)&&void 0!==S?S:"Guest User",userEmailId:null!==(x=null==Te?void 0:Te.email)&&void 0!==x?x:"guestUser@example.com",userId:null!==(I=null==Te?void 0:Te.id)&&void 0!==I?I:"Guest User",query:o,requestId:"requestId-".concat(w()),customPrompt:"",enableForBackend:!1,guestSessionId:We.current,chatPreviewId:Pe.current,customMetaData:f(Y),aiModel:"",enableLogs:!0,logControls:{infoLogs:Le,debugLogs:Le},onStreamEvent:function(e){var n,t,r,a,s,c;if(Gn.current&&Un.current===h){var d=null===(t=null===(n=null==e?void 0:e.chatStream)||void 0===n?void 0:n.continueChatResult)||void 0===t?void 0:t.requestId,u=null===(a=null===(r=null==e?void 0:e.chatStream)||void 0===r?void 0:r.continueChatResult)||void 0===a?void 0:a.header_message;console.log("📦 [Stream Chunk Received] With RequestID and header_message: ".concat(d,",").concat(u)),vt(C.requestId);var v=null===(c=null===(s=null==e?void 0:e.chatStream)||void 0===s?void 0:s.continueChatResult)||void 0===c?void 0:c.error_state;if(Array.isArray(v)&&v.length>0)return console.error("⚠️ Agent returned an error_state during stream:",{requestId:d,errorState:v}),void ut(C.requestId,"agent_error");dt(e,g,p,m,o,i,l)}},onStreamEnd:function(e){var o,r;if(Gn.current&&Un.current===h){var i=null===(r=null===(o=null==e?void 0:e.chatStream)||void 0===o?void 0:o.continueChatResult)||void 0===r?void 0:r.requestId;Hn.current.add(C.requestId),console.log("✅ [Stream Completed] RequestID: ".concat(i));var a=Qn.current.get(C.requestId);a&&(clearTimeout(a),Qn.current.delete(C.requestId)),Kn.current=!1,on(!0),hn(!1),_n(!1);var s=Date.now(),l=Bn.current.get(C.requestId);if(l){var c=Math.round((s-l)/1e3).toFixed(1);Qe(function(e){var o=n([],e,!0).reverse().findIndex(function(e){return"assistant"===e.role});if(-1===o)return e;var r=e.length-1-o;return e.map(function(e,n){return n===r?t(t({},e),{finalTimeTaken:c}):e})})}}},onError:function(e){if(Gn.current&&Un.current===h){var n=Qn.current.get(C.requestId);if(n&&(clearTimeout(n),Qn.current.delete(C.requestId)),Hn.current.has(C.requestId))return console.warn("Ignoring post-completion error for already-finished request:",C.requestId),void Hn.current.delete(C.requestId);console.error("Stream error:",e),ut(C.requestId,"websocket_error")}}},o&&(Xe(!0),null===(T=He.current)||void 0===T||T.blur(),Ze(""),it(),un(l?"Just a moment, processing your request...":"Okay, got it. Let me take a moment to work on this and I'll get back to you shortly."),Bn.current.set(C.requestId,Date.now()),On.current=C.requestId,console.log("Chat Stream Params:",C),vt(C.requestId),Vn.current+=1,console.log("🚀 [UI Action] stream started (Total UI invocations: ".concat(Vn.current,") | RequestID: ").concat(C.requestId,' | Query: "').concat(o,'"')),k(C)),c&&c(!1),[2])}})})},ht=c(null);h(function(){ht.current=mt});var gt=m(function(){for(var e,t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return null===(e=ht.current)||void 0===e?void 0:e.call.apply(e,n([ht],t,!1))},[]),pt=u(function(){return{p:function(e){e.node;var n=e.children;return i(e,["node","children"]),a("div",t({style:{margin:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"10px",fontFamily:"inherit"}},{children:n}))},button:function(e){e.node;var n=e.className,o=e.children,r=i(e,["node","className","children"]),l=L(o),c=r["data-value"],d="Tester Genie"===l;return a(M,t({},r,{className:n,handleStream:gt,isStreamEnd:tn,disabled:!!kn||!!_e,isLastMessage:!0,style:{margin:0},isTesterGenie:d,"data-selected":kn===l||kn===c?"true":kn?"false":void 0},{children:s("span",t({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[o,d&&s("svg",t({width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[a("path",{d:"M7.20368 8.94768e-06C7.48895 -0.00208639 7.69331 0.364327 7.83856 0.57465C8.14381 1.01633 8.38012 1.87909 7.71077 2.14118C8.57167 2.21011 9.70406 2.93098 10.1785 3.64699C10.5932 4.27286 10.4559 5.16037 9.80301 5.56007L9.9502 7.16593C9.97671 7.44871 10.0265 7.87092 10.0299 8.14457C10.4213 8.23046 11.0787 8.55391 11.326 8.87592C11.5979 8.75656 11.9189 8.76963 12.1688 8.93469C12.3563 8.67751 12.5598 8.41456 12.7507 8.15787C12.3283 7.45155 12.5047 6.57745 13.2143 6.13784C13.5375 5.9377 13.9264 5.87277 14.2971 5.95705C14.0961 6.30964 13.8775 6.72182 13.6593 7.05857C13.7906 7.2436 13.9184 7.44225 14.044 7.63194L14.8022 7.63198C15.0349 7.30106 15.2515 6.90827 15.4835 6.59349C15.8623 7.0712 15.8156 7.79671 15.4734 8.28241C15.1318 8.76741 14.4886 8.9899 13.9118 8.88251C13.758 9.12108 13.5577 9.39243 13.3941 9.63201C13.7143 9.9316 13.7725 10.364 13.4067 10.6594C13.5231 10.8889 13.5309 11.1613 13.447 11.402C13.1502 12.2523 12.1724 12.5645 11.3474 12.5025C11.1171 12.4852 10.939 12.4698 10.7197 12.3953C10.8724 13.1271 10.7744 14.2031 10.5132 14.9051C10.1688 15.8304 9.43632 16.5569 8.54503 16.9655C7.90465 17.2706 7.21222 17.3607 6.50472 17.4505C5.74445 17.5471 4.75801 17.4362 4.08533 17.825C3.9327 17.9132 3.86566 18.0173 3.82943 18.1792C3.94996 18.5982 4.47858 18.6063 4.78474 18.8897C5.20191 19.2758 4.90716 19.9663 4.36611 19.9908C4.31476 19.9931 4.26867 19.9867 4.23186 19.9493C4.23089 19.8303 4.47587 19.7199 4.49787 19.5262C4.55075 19.0604 3.70014 19.0078 3.37835 18.8374C3.13013 18.706 2.99537 18.6309 2.82242 18.4021C2.63795 18.1579 2.58428 17.835 2.63138 17.5392C2.74868 16.7847 3.47123 16.393 4.12184 16.1497C4.61314 15.9659 5.46304 15.7158 5.52019 15.0793C5.58589 14.348 4.97543 13.5523 4.57739 12.9807C4.44275 12.7875 4.3039 12.579 4.16309 12.3919C4.18987 12.365 4.21049 12.3463 4.23916 12.3212C4.59619 12.6218 5.21209 12.6421 5.55038 12.2979C5.70457 12.144 5.78974 11.9342 5.78642 11.7164C5.78121 11.4493 5.63382 11.2002 5.4454 11.019C5.44704 10.9932 5.44824 10.9676 5.449 10.9419C5.4566 10.6648 5.37505 10.4902 5.1892 10.2943C5.18398 10.2538 5.17776 10.2134 5.17053 10.1732C5.08123 9.69297 4.71708 9.34182 4.23415 9.27108C4.16418 9.26083 3.96108 9.26105 3.92071 9.23344C3.90485 9.1828 3.9059 9.20792 3.91904 9.15527C4.22103 8.90139 4.14407 8.78214 4.31107 8.4846C4.42301 8.28513 4.73047 8.15239 4.95452 8.10701C4.96167 7.51076 5.03684 6.88562 5.10036 6.29144C5.12451 6.0655 5.12531 5.75046 5.1511 5.55257C4.11108 4.86747 4.39091 3.75946 5.25465 3.06391C5.84978 2.58469 6.34496 2.31002 7.10143 2.14517C7.01589 2.10416 6.93842 2.04811 6.87269 1.97972C6.77021 1.87349 6.70248 1.73857 6.67853 1.59293C6.60568 1.12096 7.04104 0.914625 7.18759 0.526392C7.26428 0.323403 7.03925 0.146075 7.20368 8.94768e-06Z",fill:"#475569"}),a("path",{d:"M7.459 4.5C7.48797 4.50312 7.71949 4.61154 7.76205 4.63061C8.27062 4.85835 8.87051 5.09164 9.35658 5.3582C9.36602 6.03495 9.37016 6.56625 8.70573 6.91519C8.6633 6.80883 8.63019 6.72409 8.56332 6.63044C8.43786 6.45568 8.24656 6.33963 8.03354 6.30909C7.8434 6.28211 7.65146 6.3197 7.49586 6.43503C7.21897 6.21256 6.76265 6.28197 6.5229 6.52486C6.39308 6.65639 6.34815 6.75074 6.28902 6.92344C5.59702 6.5957 5.58761 6.04267 5.60583 5.35582C5.89882 5.23844 6.21318 5.0724 6.50153 4.941C6.82145 4.79522 7.14482 4.6574 7.459 4.5Z",fill:"#D1EDFD"}),a("path",{d:"M11.0756 10.6406C11.1037 10.6701 11.1324 10.7706 11.1535 10.8145C11.2818 11.0817 11.4922 11.1945 11.7498 11.2977C11.5607 11.63 11.4567 11.8797 11.1034 12.0466L11.0839 12.0517C10.9262 12.0927 10.7996 12.0968 10.651 12.0135C10.4755 11.915 10.3807 11.6614 10.4792 11.478C10.6388 11.1809 10.8877 10.9272 11.0756 10.6406Z",fill:"#D1EDFD"}),a("path",{d:"M11.6036 9.1377C11.6993 9.11763 11.8391 9.16378 11.9294 9.19593C11.6952 9.50644 11.4706 9.81614 11.2327 10.1261L11.1572 10.2255C10.7581 9.73539 11.0333 9.24481 11.6036 9.1377Z",fill:"#D1EDFD"}),a("path",{d:"M7.49681 0.882812C7.53691 0.925159 7.61244 1.08523 7.63598 1.14156C7.74243 1.39673 7.75769 1.76908 7.38596 1.77504C7.28236 1.75599 7.15628 1.68938 7.13517 1.5783C7.0843 1.3107 7.35609 1.09964 7.48737 0.897583L7.49681 0.882812Z",fill:"#D1EDFD"}),a("path",{d:"M1.68305 6.17249C1.71659 6.1673 1.8134 6.16478 1.84892 6.16432C2.34052 6.15616 2.81496 6.34495 3.16655 6.68866C3.50847 7.01806 3.70349 7.47119 3.70765 7.94596C3.70896 8.42345 3.54045 8.85284 3.20281 9.19025C3.34033 9.28068 3.5321 9.52219 3.6543 9.65748C4.17158 9.39073 4.91447 9.69339 4.79675 10.3444C5.08751 10.5485 5.19656 10.8288 5.0585 11.1674C5.15418 11.2375 5.25595 11.3205 5.32383 11.4186C5.40228 11.5303 5.4309 11.6695 5.40291 11.8031C5.32228 12.1857 4.90085 12.3286 4.57669 12.1236C4.51367 12.0838 4.42258 11.9595 4.35299 11.9431C4.30669 11.9557 4.28453 11.9584 4.23644 11.9644C4.22885 11.9742 4.22118 11.9841 4.21343 11.9938C3.93597 12.3413 3.49234 12.4682 3.06933 12.5157C2.85285 12.518 2.70432 12.5146 2.49066 12.4609C1.80785 12.2892 1.50808 11.6167 1.70723 10.9639C1.829 10.5648 2.11891 10.2506 2.48939 10.0518C2.54655 10.132 2.57559 10.2191 2.64066 10.303C2.73571 10.2223 2.82048 10.1482 2.92363 10.0773C2.81023 9.95313 2.66811 9.7693 2.55817 9.63584C2.38871 9.6878 2.23026 9.72879 2.05298 9.74653C1.54239 9.80228 1.03118 9.64711 0.637735 9.31695C0.269964 9.01018 0.0453493 8.54827 0.00544736 8.07322C-0.0309495 7.60988 0.116099 7.15077 0.414918 6.79478C0.742554 6.41198 1.18728 6.21393 1.68305 6.17249Z",fill:"#475569"}),a("path",{d:"M1.79616 6.5951C2.54894 6.5619 3.18687 7.14364 3.22301 7.8963C3.25915 8.64894 2.67989 9.28913 1.92739 9.3282C1.17073 9.3675 0.526231 8.78435 0.489885 8.02753C0.45354 7.27071 1.03921 6.62849 1.79616 6.5951Z",fill:"#D1EDFD"}),a("path",{d:"M4.93607 11.4844C5.12839 11.6261 5.22049 11.9085 4.91876 11.9419C4.8067 11.8805 4.78491 11.8646 4.71094 11.7561C4.81572 11.6752 4.862 11.5925 4.93607 11.4844Z",fill:"#FEFEFD"}),a("path",{d:"M12.5164 3.58594L12.5715 3.59466C12.6589 3.65863 12.6908 3.94434 12.7882 4.05193C12.8789 4.15216 12.9155 4.17816 13.0326 4.24929C13.1363 4.31224 13.3325 4.34025 13.384 4.43124C13.3643 4.56218 13.0693 4.54857 12.9127 4.69344C12.6903 4.89898 12.7114 5.06971 12.5892 5.28622C12.5669 5.28439 12.5368 5.2868 12.5261 5.27346C12.4336 5.15843 12.4072 4.9308 12.3099 4.81465C12.1627 4.63903 11.9972 4.60054 11.7981 4.51372C11.7544 4.49467 11.7266 4.47099 11.7129 4.42649C11.7867 4.31876 12.0509 4.34309 12.2376 4.14892C12.43 3.94901 12.4155 3.72208 12.5164 3.58594Z",fill:"#475569"}),a("path",{d:"M2.13644 3.72656C2.24401 3.77084 2.29712 4.1268 2.431 4.25226C2.60327 4.41371 2.7311 4.41949 2.93246 4.52449C2.96024 4.53897 2.97173 4.56042 2.97671 4.58878C2.89584 4.6981 2.61854 4.70721 2.4596 4.85659C2.26275 5.04156 2.27341 5.29132 2.17022 5.42088C2.16192 5.41849 2.11671 5.40232 2.1156 5.40043C2.01291 5.21216 1.9836 5.04909 1.84812 4.87273C1.73599 4.72675 1.36534 4.69959 1.32812 4.56939C1.3835 4.47941 1.67823 4.44211 1.82291 4.30563C2.02737 4.11274 2.0042 3.8372 2.13644 3.72656Z",fill:"#475569"})]}))]}))}))}}},[gt,tn,kn,_e]),ft=u(function(){return Ve.some(function(e){return e.isSkeleton})},[Ve]),Ct=function(e){return o(void 0,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return Ie?[4,Ie(e)]:[3,2];case 1:t.sent(),Qe(function(e){return n(n([],e,!0),[{role:"assistant",content:"Thanks for your feedback — this will help improve future suggestions.",id:w(),citations:[],time:new Date,isEnd:!0}],!1)}),setTimeout(function(){return it("smooth")},100),t.label=2;case 2:return[2]}})})};return s("div",t({className:"".concat(N.customFont," ").concat(D.chatContainer),style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:Se&&!ft?"0 0 20px 5px rgba(37, 99, 235, 0.5)":"none"}},{children:[s("div",t({ref:je,className:D.scrollWrapper},{children:[a("div",t({ref:Dn,className:D.stickyHeader},{children:a(T,{resetChatHistory:lt,isStreamEnd:tn,chatTitle:X,onResize:se,chatSize:ae,movingTowards:le})})),s("div",t({className:D.messagesList},{children:[s("div",t({className:D.initialMessageRow},{children:[a("div",t({className:D.iconWrapper},{children:a(W,{})})),a("div",t({className:D.welcomeTextWrapper},{children:a("div",t({className:D.welcomeMarkdownWrapper},{children:a("span",{children:a(b,t({rehypePlugins:[y],components:pt},{children:re}))})}))}))]})),Ve.length>0&&Ve.map(function(e,n){var o,r;return s("div",t({className:D.messageRow},{children:["assistant"===e.role?a("div",t({className:D.assistantIconContainer},{children:a(W,{})})):a("div",{className:D.userSpacer}),a("div",t({className:D.messageContent},{children:"assistant"===e.role?s(l,{children:[e.orchestratorAndAgentsMessages&&e.orchestratorAndAgentsMessages.length>0&&a(I,{orchestratorAndAgentsMessages:null==e?void 0:e.orchestratorAndAgentsMessages,isStreamEnd:tn,finalTimeTaken:null==e?void 0:e.finalTimeTaken},null!==(o=null==e?void 0:e.finalTimeTaken)&&void 0!==o?o:null==e?void 0:e.id),a(_,{index:n,content:null==e?void 0:e.content,role:null==e?void 0:e.role,messages:Ve,handleStream:gt,isLastMessage:n===Ve.length-1,onSave:ie,citations:null==e?void 0:e.citations,setChatSize:se,chatSize:ae,isStreamEnd:tn,messageIsEnd:null==e?void 0:e.isEnd,onViewComparison:xe,onTypeResponseClick:function(){var e;Pn(!0),null===(e=He.current)||void 0===e||e.focus()},onComparisonLinkClick:ke,baseURL:ze,onFeedbackSubmit:Ct,isGlobalEditActive:_e,fieldLabelMap:qe}),e.hasOwnProperty("isEnd")&&!(null==e?void 0:e.isEnd)&&(null===(r=null==e?void 0:e.content)||void 0===r?void 0:r.length)>0&&s(l,{children:[a(E,{variant:"text",width:"50%",height:20}),a("div",{style:{marginTop:"10px"}}),a(E,{variant:"text",width:"100%",height:40})]}),a("div",t({className:D.timestamp},{children:e.time&&!isNaN(new Date(e.time).getTime())?new Date(e.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}):s("div",t({className:D.userMessageWrapper},{children:[s("div",t({className:D.userMessageBubble,style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:e.isSkeleton||ft||e.id!==Fn?"none":"0 0 15px 3px rgba(37, 99, 235, 0.6)"}},{children:[e.isSkeleton?s("div",t({style:{display:"flex",flexDirection:"column",gap:"12px",minWidth:"280px",padding:"8px 0"}},{children:[a(E,{variant:"text",width:"100%",height:16}),a(E,{variant:"text",width:"80%",height:16})]})):a(_,{index:n,content:null==e?void 0:e.content,role:null==e?void 0:e.role,messages:Ve,handleStream:gt,isLastMessage:n===Ve.length-1,onSave:ie,citations:null==e?void 0:e.citations,isStreamEnd:tn,isGlobalEditActive:_e,messageIsEnd:null==e?void 0:e.isEnd,onViewComparison:xe,onComparisonLinkClick:ke,baseURL:ze,onFeedbackSubmit:Ct,fieldLabelMap:qe}),a("div",t({style:{marginTop:"0.5rem"}},{children:a(P,{})}))]})),a("div",t({className:D.userTimestamp},{children:new Date(e.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}))}))]}),e.id)}),$e&&s("div",t({className:D.loadingRow},{children:[a("div",t({className:D.iconWrapper,style:{marginTop:"0.2rem"}},{children:a(W,{})})),a("div",t({className:D.loadingTextWrapper},{children:a("span",{children:dn})}))]})),a("div",{ref:Oe,style:{float:"left",clear:"both"}})]}))]})),a("div",t({className:D.inputAreaWrapper},{children:a(C,t({title:$?"Please wait for the validation to be completed.":""},{children:s("div",t({className:"".concat(D.inputBoxContainer," ").concat(nt?D.disabled:""),style:Wn?{boxShadow:"0 0 15px 3px rgba(37, 99, 235, 0.5)",borderColor:"#2563eb",transition:"box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out"}:{transition:"box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out"}},{children:[Ve.length>0&&!bn&&a("div",t({onMouseDown:function(e){e.preventDefault(),it("smooth")},className:D.scrollToBottomBtn},{children:a(q,{})})),s("div",t({style:{width:"100%",display:"flex"}},{children:[a("textarea",{ref:He,placeholder:ue,value:Ge||"",onChange:function(e){Ze(e.target.value)},onFocus:function(){return fn(!0)},onBlur:function(){return fn(!1)},onKeyDown:function(e){return mt(e)},disabled:nt,className:"no-scrollbar ".concat(D.chatTextarea),style:{minHeight:pn||Ge&&Ge.length>40?"120px":"50px",height:pn||Ge&&Ge.length>40?"120px":"50px",maxHeight:"120px"}}),a("span",t({className:D.sendButtonWrapper},{children:a("button",t({onClick:function(e){ot||mt(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:ot,className:"".concat(D.sendButton," ").concat(ot?D.disabled:D.active)},{children:a(A,{})}))}))]}))]}))}))})),s("div",t({className:D.footerTools},{children:[a(C,t({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("span",t({className:D.footerToolItem},{children:a(R,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),a(C,t({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("span",t({className:D.footerToolItem},{children:a(R,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]})),a(p,t({open:Xn,onClose:function(){},PaperProps:{sx:{borderRadius:"12px",padding:"8px",maxWidth:"400px",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-foreground, #0F172A)"}}},{children:s(f,t({sx:{p:3,textAlign:"center",fontFamily:"'Plus Jakarta Sans', sans-serif"}},{children:[a("h3",t({style:{fontSize:"18px",fontWeight:600,color:"var(--il-foreground, #0F172A)",marginBottom:"10px"}},{children:"Session Expired"})),a("p",t({style:{fontSize:"14px",color:"var(--il-muted, #64748B)",lineHeight:"1.5",marginBottom:"20px"}},{children:"Changes were made to the learnings in this scope while you were editing. To avoid conflicts, concurrent edits aren’t allowed."})),s(f,t({sx:{display:"flex",gap:2,justifyContent:"center"}},{children:[a("button",t({onClick:function(){Yn(!1),lt()},style:{flex:1,padding:"10px 16px",cursor:"pointer",backgroundColor:"var(--il-secondary-bg, white)",border:"1px solid var(--il-border, #E2E8F0)",borderRadius:"8px",fontSize:"14px",fontWeight:500,color:"var(--il-secondary-fg, #475569)",transition:"all 0.2s"},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="var(--il-hover, #F8FAFC)"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="var(--il-secondary-bg, white)"}},{children:"Reset Session"})),a("button",t({onClick:function(){Yn(!1),null==Ne||Ne()},style:{flex:1,padding:"10px 16px",backgroundColor:"var(--il-danger, #EF4444)",color:"var(--il-primary-fg, white)",border:"none",borderRadius:"8px",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.2s"},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="var(--il-danger-hover, #DC2626)"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="var(--il-danger, #EF4444)"}},{children:"Discard & Close"}))]}))]}))}))]}))};export{j as autoGeneratePrompt,B as default};
|
|
2
2
|
//# sourceMappingURL=ChatComponent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as e,__spreadArray as t,__assign as n,__awaiter as i,__generator as o,__rest as a}from"tslib";import{jsx as r,jsxs as s,Fragment as l}from"react/jsx-runtime";import{useRef as d,useState as c,useMemo as u,useEffect as h,useCallback as m,useLayoutEffect as v}from"react";import{keyframes as p,Box as C}from"@mui/material";import g from"@mui/material/Tooltip";import f from"react-markdown";import S from"rehype-raw";import{http as b}from"../../../../api/transport.js";import{v4 as y}from"uuid";import{startChatStream as x}from"@e-llm-studio/streaming-response";import{WatchMeWork as w}from"@e-llm-studio/watch-me-work";import R from"./ChatHeader.js";import k from"../MessageRendering/MessageRendering.js";import{Skeleton as _}from"../atoms/SkeletonLoader/SkeletonLoader.js";import{ActionableButton as E}from"../MessageRendering/ClickableChatComponents.js";import T from"../AudioWaveform.js";import M from"./ChatComponent.module.css.js";import I from"../../InstantLearning.module.css.js";import{ScrollToBottom as N}from"../_svg/ScrollToBottom.js";import{useHeaderObserver as D,extractTextFromChildren as L}from"../../helpers/utils.js";import{SendButton as F}from"../_svg/SendButton.js";import A from"../_svg/SparkleIcon.js";import{UserIcon as W}from"../_svg/UserIcon.js";var z,j=function(j){var q=j.chatAssistantName,B=j.organizationName,P=j.baseUrl,H=j.baseWebsocketUrl,Z=j.setIsNewChatClicked;j.ThinkingBulbIconComponent;var K=j.isFormSaveClicked,U=j.setIsFormSavedClicked,G=j.onResetLearningData,V=j.sendMessageInChat,O=j.setSendMessageInChat,J=j.isFormValidating,Q=j.chatTitle,X=j.customMetaData,Y=j.headerMessageHandlers;j.aiResponse;var $=j.setAIResponse,ee=j.onResetChat,te=j.initialChatMessage,ne=void 0===te?"":te,ie=j.onSave,oe=j.chatSize,ae=j.setChatSize,re=j.movingTowards,se=j.setCitations,le=j.textareaPlaceholder,de=void 0===le?"Tell me more about this learning...":le,ce=j.setCurrentRequestId,ue=j.showSavedMessage,he=void 0!==ue&&ue,me=j.savedMessage,ve=j.isError,pe=void 0!==ve&&ve,Ce=j.errorMessage,ge=void 0===Ce?"There was an error saving your changes.":Ce;j.isSaving;var fe=j.isHighlighted,Se=void 0!==fe&&fe,be=j.onStreamingStateChange,ye=j.onViewComparison;j.isCopyEnabled;var xe=j.onComparisonLinkClick,we=j.onSubmitFeedback,Re=q,ke=d("".concat(Re,"-").concat(B,"-").concat(y())),_e=d("".concat(y())),Ee=P,Te=d(null),Me=d(!0),Ie=d(null),Ne=d(null),De=c(""),Le=De[0],Fe=De[1],Ae=c([]),We=Ae[0],ze=Ae[1],je=c(!1),qe=je[0],Be=je[1],Pe=c(!1);Pe[0];var He=Pe[1],Ze=c(!0),Ke=Ze[0],Ue=Ze[1],Ge=c(!0);Ge[0];var Ve=Ge[1],Oe=c("");Oe[0];var Je=Oe[1],Qe=c(""),Xe=Qe[0],Ye=Qe[1],$e=c(!1),et=$e[0],tt=$e[1],nt=c(!1),it=nt[0],ot=nt[1],at=c(!0),rt=at[0],st=at[1],lt=c("100%");lt[0];var dt=lt[1],ct=c(null),ut=ct[0],ht=ct[1],mt=c(!1);mt[0];var vt=mt[1],pt=c(!1),Ct=pt[0],gt=pt[1],ft=d(null),St=d(new Set),bt=c(null),yt=bt[0],xt=bt[1],wt=c(!1),Rt=wt[0],kt=wt[1],_t=c(!1);_t[0],_t[1];var Et=c(null);Et[0],Et[1],d(null),d(null);var Tt=d(new Map),Mt=d(""),It=p(z||(z=e(["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "],["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "]))),Nt=u(function(){return""===(null==Le?void 0:Le.trim())||et},[Le,et]),Dt=u(function(){return J},[J]),Lt=u(function(){return Nt||et||J},[Nt,et,J]);h(function(){null==be||be(et)},[et,be]),h(function(){var e=Te.current,t=function(){if(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;st(n-t-i<=20)}};return e&&(e.addEventListener("scroll",t),t()),function(){e&&e.removeEventListener("scroll",t)}},[We]);var Ft=D({handlers:Y,setResult:$}).processHeaderMessage;h(function(){he&>(!0)},[he]),h(function(){if(Rt){var e=setTimeout(function(){kt(!1)},3e3);return function(){return clearTimeout(e)}}},[Rt]),h(function(){K&&(Bt(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save this Learning"),U(!1))},[K]),h(function(){if(V)try{if(V.startsWith("__SKELETON__:")){var e=V.split(":"),i=e[1],o=e.slice(2).join(":"),a={role:"user",content:"",id:i,time:new Date,isSkeleton:!0,skeletonContent:o};return ze(function(e){return t(t([],e,!0),[a],!1)}),Bt(new KeyboardEvent("keydown",{key:"Enter"}),!1,o,!1,i),xt(i),O&&O(""),void setTimeout(function(){xt(null)},2e3)}if(V.startsWith("__SKELETON_END__::")){var r=V.split("::")[1]||"";return ze(function(e){return e.map(function(e){return e.isSkeleton?n(n({},e),{isSkeleton:!1,content:e.skeletonContent||r}):e})}),void(O&&O(""))}var s=y();Bt(new KeyboardEvent("keydown",{key:"Enter"}),!1,V,!1,s),xt(s),O&&O(""),setTimeout(function(){return xt(null)},2e3)}catch(e){console.error("Error handling sendMessageInChat signal",e)}},[V]),h(function(){Wt(),zt();var e=function(){var e,t=(null===(e=null==ft?void 0:ft.current)||void 0===e?void 0:e.clientHeight)||0,n="calc(100% - ".concat(t,"px - 10px)");dt(n)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var At=m(function(e){var t="string"==typeof e?e:"smooth";Ie.current&&Ie.current.scrollIntoView({behavior:t,block:"end"}),Me.current&&setTimeout(function(){Ie.current&&Me.current&&Ie.current.scrollIntoView({behavior:t,block:"end"})},100)},[]);h(function(){if(!et){var e="";if(Ct?e=me||"Thank you teacher for teaching me, your rule has been saved successfully.":pe&&(e=ge||"I'm sorry, I couldn't save your changes. Please try again."),e){var n={role:"assistant",content:e,id:y(),citations:[],time:new Date};ze(function(e){return t(t([],e,!0),[n],!1)}),gt(!1),setTimeout(function(){return At("smooth")},100)}}},[Ct,pe,et,me,ge,At]),h(function(){Me.current&&At("smooth")},[At]);var Wt=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(Ee,"/api/chatbot/getChatSettings?name=").concat(Re,"&organizationName=").concat(B),headers:{}};b.request(e).then(function(e){var t,n,i;(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.chatSettings)&&""!==(null===(i=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)||void 0===i?void 0:i.chatInitialMessage)&&Ve(!0)}).catch(function(e){console.error(e)})},zt=function(){return i(void 0,void 0,void 0,function(){var e,t;return o(this,function(n){e="".concat(Ee,"/api/chat/history?name=").concat(Re,"&organizationName=").concat(B);try{t={method:"GET",params:{guestSessionId:ke.current},withCredentials:!0},b.get(e,t).then(function(e){var t=e.data;t.length>0?(ze(t),At()):Ve(!0)}).catch(function(e){console.error(e)})}catch(e){Be(!1),console.error(e)}return[2]})})};function jt(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var qt=function(e,i,o,a,r,s,l){var d,c,u,h,m,v,p,C,g,f,S,b,x,w,R,k,_,E,T,M,I,N,D,L,F,A,W,z,j,q,B,P,H,Z;if(null===(c=null===(d=null==e?void 0:e.chatStream)||void 0===d?void 0:d.continueChatResult)||void 0===c?void 0:c.header_message){var K={header_message:e.chatStream.continueChatResult.header_message,responsedata:null===(m=null===(h=null===(u=null==e?void 0:e.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===h?void 0:h.message)||void 0===m?void 0:m.content};Ft(K)}var U=null===(v=null==e?void 0:e.chatStream)||void 0===v?void 0:v.continueChatResult,G=null==U?void 0:U.isEnd,V=(null===(p=null==U?void 0:U.message)||void 0===p?void 0:p.citations)||[];G&&V.length>0&&se&&se(V);var O={role:"assistant",content:"",id:y()};if(null===(S=null===(f=null===(g=null===(C=null==e?void 0:e.chatStream)||void 0===C?void 0:C.continueChatResult)||void 0===g?void 0:g.message)||void 0===f?void 0:f.content)||void 0===S?void 0:S.includes("WaitMessage: "))He(!0),O.content=function(e){var t="WaitMessage: ",n=e.indexOf(t);if(-1!==n){var i=e.substring(n+13);return null==i?void 0:i.replaceAll("WaitMessage: ","")}return""}((null===(w=null===(x=null===(b=null==e?void 0:e.chatStream)||void 0===b?void 0:b.continueChatResult)||void 0===x?void 0:x.message)||void 0===w?void 0:w.content)+"\n\n"),""!==O.content&&(Be(!1),ze(t(t([],We,!0),[{role:"user",content:r,time:a,isFirstQuestionSent:s||!1,id:l||(null===(k=null===(R=null==e?void 0:e.chatStream)||void 0===R?void 0:R.continueChatResult)||void 0===k?void 0:k.requestId)||"",reply:""},O],!1)));else{He(!1),O.content=null===(M=jt(null===(T=null===(E=null===(_=null==e?void 0:e.chatStream)||void 0===_?void 0:_.continueChatResult)||void 0===E?void 0:E.message)||void 0===T?void 0:T.content))||void 0===M?void 0:M.replaceAll("WaitMessage: ","");var J=null===(N=null===(I=null==e?void 0:e.chatStream)||void 0===I?void 0:I.continueChatResult)||void 0===N?void 0:N.requestId;"string"==typeof J&&J&&ce&&ce(J);var Q=function(e,i,o){var a,r,s,l,d,c,u,h,m,v,p,C,g,f,S,b,x,w,R,k,_,E,T,M,I,N,D,L,F,A,W,z,j,q,B={role:"assistant",content:"",id:y(),time:new Date,citations:[]};if(!1===(null===(r=null===(a=e.chatStream)||void 0===a?void 0:a.continueChatResult)||void 0===r?void 0:r.thinking_break)&&!0===(null===(l=null===(s=e.chatStream)||void 0===s?void 0:s.continueChatResult)||void 0===l?void 0:l.is_orchestrator)&&!1===(null===(c=null===(d=e.chatStream)||void 0===d?void 0:d.continueChatResult)||void 0===c?void 0:c.isEnd)&&(B.content=jt(e.chatStream.continueChatResult.message.content||"")),!0===(null===(h=null===(u=e.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===h?void 0:h.thinking_break)&&!0===(null===(v=null===(m=e.chatStream)||void 0===m?void 0:m.continueChatResult)||void 0===v?void 0:v.is_orchestrator)&&!1===(null===(C=null===(p=e.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===C?void 0:C.isEnd)&&(B.content="",i.push({responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!1})),!1===(null===(f=null===(g=e.chatStream)||void 0===g?void 0:g.continueChatResult)||void 0===f?void 0:f.thinking_break)&&!0===(null===(b=null===(S=e.chatStream)||void 0===S?void 0:S.continueChatResult)||void 0===b?void 0:b.is_orchestrator)&&!0===(null===(w=null===(x=e.chatStream)||void 0===x?void 0:x.continueChatResult)||void 0===w?void 0:w.isEnd)&&(B.content=jt(e.chatStream.continueChatResult.message.content)),!1===(null===(k=null===(R=e.chatStream)||void 0===R?void 0:R.continueChatResult)||void 0===k?void 0:k.thinking_break)&&!1===(null===(E=null===(_=e.chatStream)||void 0===_?void 0:_.continueChatResult)||void 0===E?void 0:E.is_orchestrator)&&!1===(null===(M=null===(T=e.chatStream)||void 0===T?void 0:T.continueChatResult)||void 0===M?void 0:M.isEnd)){if((Z=e.chatStream.continueChatResult).explainability_id&&Z.responded_by){var P=Z.explainability_id,H=Z.responded_by;o.has(P)||o.set(P,{responded_by:H,index:i.length})}o.has(e.chatStream.continueChatResult.explainability_id)?i[null==(K=o.get(e.chatStream.continueChatResult.explainability_id))?void 0:K.index]={responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(I=e.chatStream.continueChatResult.explainability_id)&&void 0!==I?I:"",isParallelToolResponse:!0}:i=t(t([],i,!0),[{responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(N=e.chatStream.continueChatResult.explainability_id)&&void 0!==N?N:"",isParallelToolResponse:!1}],!1)}if(!0===(null===(L=null===(D=e.chatStream)||void 0===D?void 0:D.continueChatResult)||void 0===L?void 0:L.thinking_break)&&!1===(null===(A=null===(F=e.chatStream)||void 0===F?void 0:F.continueChatResult)||void 0===A?void 0:A.is_orchestrator)&&!1===(null===(z=null===(W=e.chatStream)||void 0===W?void 0:W.continueChatResult)||void 0===z?void 0:z.isEnd)){var Z,K;(Z=e.chatStream.continueChatResult).explainability_id&&Z.responded_by&&(P=Z.explainability_id,H=Z.responded_by,o.has(P)||o.set(P,{responded_by:H,index:i.length})),o.has(e.chatStream.continueChatResult.explainability_id)?i[null==(K=o.get(e.chatStream.continueChatResult.explainability_id))?void 0:K.index]={responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(j=e.chatStream.continueChatResult.explainability_id)&&void 0!==j?j:"",isParallelToolResponse:!0}:i.push({responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(q=e.chatStream.continueChatResult.explainability_id)&&void 0!==q?q:"",isParallelToolResponse:!1})}return n({orchestratorAndAgentsMessages:i},B)}(e,o,i);Q.time=new Date,Q.citations=V,Q.isEnd=null===(L=null===(D=null==e?void 0:e.chatStream)||void 0===D?void 0:D.continueChatResult)||void 0===L?void 0:L.isEnd,Q.requestId=null===(A=null===(F=null==e?void 0:e.chatStream)||void 0===F?void 0:F.continueChatResult)||void 0===A?void 0:A.requestId,Q.sessionId=ke.current,null===(W=Q.orchestratorAndAgentsMessages)||void 0===W||W.forEach(function(e){e&&e.header_message&&Ft(e)}),(""!==(null==Q?void 0:Q.content)||(null==Q?void 0:Q.orchestratorAndAgentsMessages)&&(null==Q?void 0:Q.orchestratorAndAgentsMessages.length)>0)&&(Be(!1),ze(t(t([],We,!0),[{role:"user",content:r||"",time:a,isFirstQuestionSent:s||!1,id:l||(null===(j=null===(z=null==e?void 0:e.chatStream)||void 0===z?void 0:z.continueChatResult)||void 0===j?void 0:j.requestId)||"",requestId:null!==(P=null===(B=null===(q=null==e?void 0:e.chatStream)||void 0===q?void 0:q.continueChatResult)||void 0===B?void 0:B.requestId)&&void 0!==P?P:""},Q],!1))),Ue(null===(Z=null===(H=null==e?void 0:e.chatStream)||void 0===H?void 0:H.continueChatResult)||void 0===Z?void 0:Z.isEnd)}},Bt=function(e,i,o,a,r,s){var l,d,c=(void 0!==o?o:Le||"").trim(),u="Enter"===(null==e?void 0:e.key)&&!(null==e?void 0:e.shiftKey);if(u&&(null===(l=null==e?void 0:e.preventDefault)||void 0===l||l.call(e)),!(!c||et&&!o||(null==e?void 0:e.key)&&!u)){if("I want to add a rule description"===c){Ue(!1),Me.current=!0,tt(!0),!ut&&c&&ht(o||"manual_entry");var h=new Date;return ze(function(e){return t(t([],e.map(function(e,t){var i;return n(n({},e),{content:null===(i=jt(e.content))||void 0===i?void 0:i.replace("WaitMessage: ","")})}),!0),[{role:"user",content:c,time:h,isFirstQuestionSent:!1,id:r||y()}],!1)}),At("smooth"),void setTimeout(function(){ze(function(e){return t(t([],e,!0),[{role:"assistant",content:"I'd be happy to help you set up a new rule! To get started, could you tell me what kind of behavior or logic you would like this rule to follow?",id:y(),citations:[],time:new Date}],!1)}),At("smooth"),setTimeout(function(){tt(!1),Ue(!0)},500)},500)}Ue(!1),Me.current=!0,tt(!0),!ut&&c&&ht(o||"manual_entry");var m=new Date;ze(function(e){var i=e.map(function(e){var t;return n(n({},e),{content:null===(t=jt(e.content))||void 0===t?void 0:t.replace("WaitMessage: ","")})});return r&&i.some(function(e){return e.id===r})?i.map(function(e){return e.id===r?n(n({},e),{content:c}):e}):t(t([],i,!0),[{role:"user",content:c,time:m,isFirstQuestionSent:!1,id:r||y()}],!1)}),At("smooth");var v=new Map,p=[],C={WEBSOCKET_URL:H,organizationName:B,chatAssistantName:Re,selectedAIModel:"gpt-4",replyMessage:"",userName:"Guest User",userEmailId:"guestUser@example.com",userId:"Guest User",query:c,requestId:"requestId-".concat(y()),customPrompt:"",enableForBackend:!1,guestSessionId:ke.current,chatPreviewId:_e.current,customMetaData:X,aiModel:"",onStreamEvent:function(e){return qt(e,v,p,m,c,i,r)},onStreamEnd:function(e){Ue(!0),tt(!1),vt(!1);var i=Date.now(),o=Tt.current.get(Mt.current);if(o){var a=Math.round((i-o)/1e3).toFixed(1);ze(function(e){var i=t([],e,!0).reverse().findIndex(function(e){return"assistant"===e.role});if(-1===i)return e;var o=e.length-1-i;return e.map(function(e,t){return t===o?n(n({},e),{finalTimeTaken:a}):e})})}},onError:function(e){console.error("Stream error:",e),Ue(!0),tt(!1),vt(!1)}};if(c)Be(!0),null===(d=Ne.current)||void 0===d||d.blur(),Fe(""),At(),Ye(r?"Just a moment, processing your request...":"Okay, got it. Let me take a moment to work on this and I'll get back to you shortly."),Tt.current.set(C.requestId,Date.now()),Mt.current=C.requestId,x(C);s&&s(!1)}},Pt=d(null);v(function(){Pt.current=Bt});var Ht=m(function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return null===(e=Pt.current)||void 0===e?void 0:e.call.apply(e,t([Pt],n,!1))},[]),Zt=u(function(){return{p:function(e){e.node;var t=e.children;return a(e,["node","children"]),r("div",n({style:{margin:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"10px",fontFamily:"inherit"}},{children:t}))},button:function(e){e.node;var t=e.className,i=e.children,o=a(e,["node","className","children"]),l=L(i),d=o["data-value"],c="Tester Genie"===l;return r(E,n({},o,{className:t,handleStream:Ht,isStreamEnd:Ke,disabled:!!ut,isLastMessage:!0,style:{margin:0},isTesterGenie:c,"data-selected":ut===l||ut===d?"true":ut?"false":void 0},{children:s("span",n({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[i,c&&s("svg",n({width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[r("path",{d:"M7.20368 8.94768e-06C7.48895 -0.00208639 7.69331 0.364327 7.83856 0.57465C8.14381 1.01633 8.38012 1.87909 7.71077 2.14118C8.57167 2.21011 9.70406 2.93098 10.1785 3.64699C10.5932 4.27286 10.4559 5.16037 9.80301 5.56007L9.9502 7.16593C9.97671 7.44871 10.0265 7.87092 10.0299 8.14457C10.4213 8.23046 11.0787 8.55391 11.326 8.87592C11.5979 8.75656 11.9189 8.76963 12.1688 8.93469C12.3563 8.67751 12.5598 8.41456 12.7507 8.15787C12.3283 7.45155 12.5047 6.57745 13.2143 6.13784C13.5375 5.9377 13.9264 5.87277 14.2971 5.95705C14.0961 6.30964 13.8775 6.72182 13.6593 7.05857C13.7906 7.2436 13.9184 7.44225 14.044 7.63194L14.8022 7.63198C15.0349 7.30106 15.2515 6.90827 15.4835 6.59349C15.8623 7.0712 15.8156 7.79671 15.4734 8.28241C15.1318 8.76741 14.4886 8.9899 13.9118 8.88251C13.758 9.12108 13.5577 9.39243 13.3941 9.63201C13.7143 9.9316 13.7725 10.364 13.4067 10.6594C13.5231 10.8889 13.5309 11.1613 13.447 11.402C13.1502 12.2523 12.1724 12.5645 11.3474 12.5025C11.1171 12.4852 10.939 12.4698 10.7197 12.3953C10.8724 13.1271 10.7744 14.2031 10.5132 14.9051C10.1688 15.8304 9.43632 16.5569 8.54503 16.9655C7.90465 17.2706 7.21222 17.3607 6.50472 17.4505C5.74445 17.5471 4.75801 17.4362 4.08533 17.825C3.9327 17.9132 3.86566 18.0173 3.82943 18.1792C3.94996 18.5982 4.47858 18.6063 4.78474 18.8897C5.20191 19.2758 4.90716 19.9663 4.36611 19.9908C4.31476 19.9931 4.26867 19.9867 4.23186 19.9493C4.23089 19.8303 4.47587 19.7199 4.49787 19.5262C4.55075 19.0604 3.70014 19.0078 3.37835 18.8374C3.13013 18.706 2.99537 18.6309 2.82242 18.4021C2.63795 18.1579 2.58428 17.835 2.63138 17.5392C2.74868 16.7847 3.47123 16.393 4.12184 16.1497C4.61314 15.9659 5.46304 15.7158 5.52019 15.0793C5.58589 14.348 4.97543 13.5523 4.57739 12.9807C4.44275 12.7875 4.3039 12.579 4.16309 12.3919C4.18987 12.365 4.21049 12.3463 4.23916 12.3212C4.59619 12.6218 5.21209 12.6421 5.55038 12.2979C5.70457 12.144 5.78974 11.9342 5.78642 11.7164C5.78121 11.4493 5.63382 11.2002 5.4454 11.019C5.44704 10.9932 5.44824 10.9676 5.449 10.9419C5.4566 10.6648 5.37505 10.4902 5.1892 10.2943C5.18398 10.2538 5.17776 10.2134 5.17053 10.1732C5.08123 9.69297 4.71708 9.34182 4.23415 9.27108C4.16418 9.26083 3.96108 9.26105 3.92071 9.23344C3.90485 9.1828 3.9059 9.20792 3.91904 9.15527C4.22103 8.90139 4.14407 8.78214 4.31107 8.4846C4.42301 8.28513 4.73047 8.15239 4.95452 8.10701C4.96167 7.51076 5.03684 6.88562 5.10036 6.29144C5.12451 6.0655 5.12531 5.75046 5.1511 5.55257C4.11108 4.86747 4.39091 3.75946 5.25465 3.06391C5.84978 2.58469 6.34496 2.31002 7.10143 2.14517C7.01589 2.10416 6.93842 2.04811 6.87269 1.97972C6.77021 1.87349 6.70248 1.73857 6.67853 1.59293C6.60568 1.12096 7.04104 0.914625 7.18759 0.526392C7.26428 0.323403 7.03925 0.146075 7.20368 8.94768e-06Z",fill:"#475569"}),r("path",{d:"M7.459 4.5C7.48797 4.50312 7.71949 4.61154 7.76205 4.63061C8.27062 4.85835 8.87051 5.09164 9.35658 5.3582C9.36602 6.03495 9.37016 6.56625 8.70573 6.91519C8.6633 6.80883 8.63019 6.72409 8.56332 6.63044C8.43786 6.45568 8.24656 6.33963 8.03354 6.30909C7.8434 6.28211 7.65146 6.3197 7.49586 6.43503C7.21897 6.21256 6.76265 6.28197 6.5229 6.52486C6.39308 6.65639 6.34815 6.75074 6.28902 6.92344C5.59702 6.5957 5.58761 6.04267 5.60583 5.35582C5.89882 5.23844 6.21318 5.0724 6.50153 4.941C6.82145 4.79522 7.14482 4.6574 7.459 4.5Z",fill:"#D1EDFD"}),r("path",{d:"M11.0756 10.6406C11.1037 10.6701 11.1324 10.7706 11.1535 10.8145C11.2818 11.0817 11.4922 11.1945 11.7498 11.2977C11.5607 11.63 11.4567 11.8797 11.1034 12.0466L11.0839 12.0517C10.9262 12.0927 10.7996 12.0968 10.651 12.0135C10.4755 11.915 10.3807 11.6614 10.4792 11.478C10.6388 11.1809 10.8877 10.9272 11.0756 10.6406Z",fill:"#D1EDFD"}),r("path",{d:"M11.6036 9.1377C11.6993 9.11763 11.8391 9.16378 11.9294 9.19593C11.6952 9.50644 11.4706 9.81614 11.2327 10.1261L11.1572 10.2255C10.7581 9.73539 11.0333 9.24481 11.6036 9.1377Z",fill:"#D1EDFD"}),r("path",{d:"M7.49681 0.882812C7.53691 0.925159 7.61244 1.08523 7.63598 1.14156C7.74243 1.39673 7.75769 1.76908 7.38596 1.77504C7.28236 1.75599 7.15628 1.68938 7.13517 1.5783C7.0843 1.3107 7.35609 1.09964 7.48737 0.897583L7.49681 0.882812Z",fill:"#D1EDFD"}),r("path",{d:"M1.68305 6.17249C1.71659 6.1673 1.8134 6.16478 1.84892 6.16432C2.34052 6.15616 2.81496 6.34495 3.16655 6.68866C3.50847 7.01806 3.70349 7.47119 3.70765 7.94596C3.70896 8.42345 3.54045 8.85284 3.20281 9.19025C3.34033 9.28068 3.5321 9.52219 3.6543 9.65748C4.17158 9.39073 4.91447 9.69339 4.79675 10.3444C5.08751 10.5485 5.19656 10.8288 5.0585 11.1674C5.15418 11.2375 5.25595 11.3205 5.32383 11.4186C5.40228 11.5303 5.4309 11.6695 5.40291 11.8031C5.32228 12.1857 4.90085 12.3286 4.57669 12.1236C4.51367 12.0838 4.42258 11.9595 4.35299 11.9431C4.30669 11.9557 4.28453 11.9584 4.23644 11.9644C4.22885 11.9742 4.22118 11.9841 4.21343 11.9938C3.93597 12.3413 3.49234 12.4682 3.06933 12.5157C2.85285 12.518 2.70432 12.5146 2.49066 12.4609C1.80785 12.2892 1.50808 11.6167 1.70723 10.9639C1.829 10.5648 2.11891 10.2506 2.48939 10.0518C2.54655 10.132 2.57559 10.2191 2.64066 10.303C2.73571 10.2223 2.82048 10.1482 2.92363 10.0773C2.81023 9.95313 2.66811 9.7693 2.55817 9.63584C2.38871 9.6878 2.23026 9.72879 2.05298 9.74653C1.54239 9.80228 1.03118 9.64711 0.637735 9.31695C0.269964 9.01018 0.0453493 8.54827 0.00544736 8.07322C-0.0309495 7.60988 0.116099 7.15077 0.414918 6.79478C0.742554 6.41198 1.18728 6.21393 1.68305 6.17249Z",fill:"#475569"}),r("path",{d:"M1.79616 6.5951C2.54894 6.5619 3.18687 7.14364 3.22301 7.8963C3.25915 8.64894 2.67989 9.28913 1.92739 9.3282C1.17073 9.3675 0.526231 8.78435 0.489885 8.02753C0.45354 7.27071 1.03921 6.62849 1.79616 6.5951Z",fill:"#D1EDFD"}),r("path",{d:"M4.93607 11.4844C5.12839 11.6261 5.22049 11.9085 4.91876 11.9419C4.8067 11.8805 4.78491 11.8646 4.71094 11.7561C4.81572 11.6752 4.862 11.5925 4.93607 11.4844Z",fill:"#FEFEFD"}),r("path",{d:"M12.5164 3.58594L12.5715 3.59466C12.6589 3.65863 12.6908 3.94434 12.7882 4.05193C12.8789 4.15216 12.9155 4.17816 13.0326 4.24929C13.1363 4.31224 13.3325 4.34025 13.384 4.43124C13.3643 4.56218 13.0693 4.54857 12.9127 4.69344C12.6903 4.89898 12.7114 5.06971 12.5892 5.28622C12.5669 5.28439 12.5368 5.2868 12.5261 5.27346C12.4336 5.15843 12.4072 4.9308 12.3099 4.81465C12.1627 4.63903 11.9972 4.60054 11.7981 4.51372C11.7544 4.49467 11.7266 4.47099 11.7129 4.42649C11.7867 4.31876 12.0509 4.34309 12.2376 4.14892C12.43 3.94901 12.4155 3.72208 12.5164 3.58594Z",fill:"#475569"}),r("path",{d:"M2.13644 3.72656C2.24401 3.77084 2.29712 4.1268 2.431 4.25226C2.60327 4.41371 2.7311 4.41949 2.93246 4.52449C2.96024 4.53897 2.97173 4.56042 2.97671 4.58878C2.89584 4.6981 2.61854 4.70721 2.4596 4.85659C2.26275 5.04156 2.27341 5.29132 2.17022 5.42088C2.16192 5.41849 2.11671 5.40232 2.1156 5.40043C2.01291 5.21216 1.9836 5.04909 1.84812 4.87273C1.73599 4.72675 1.36534 4.69959 1.32812 4.56939C1.3835 4.47941 1.67823 4.44211 1.82291 4.30563C2.02737 4.11274 2.0042 3.8372 2.13644 3.72656Z",fill:"#475569"})]}))]}))}))}}},[Ht,Ke,ut]),Kt=u(function(){return We.some(function(e){return e.isSkeleton})},[We]),Ut=function(e){return i(void 0,void 0,void 0,function(){return o(this,function(n){switch(n.label){case 0:return we?[4,we(e)]:[3,2];case 1:n.sent(),ze(function(e){return t(t([],e,!0),[{role:"assistant",content:"Thanks for your feedback — this will help improve future suggestions.",id:y(),citations:[],time:new Date,isEnd:!0}],!1)}),setTimeout(function(){return At("smooth")},100),n.label=2;case 2:return[2]}})})};return console.log(We,"rendering messages"),s("div",n({className:"".concat(I.customFont," ").concat(M.chatContainer),style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:Se&&!Kt?"0 0 20px 5px rgba(37, 99, 235, 0.5)":"none"}},{children:[s("div",n({ref:Te,className:M.scrollWrapper},{children:[r("div",n({ref:ft,className:M.stickyHeader},{children:r(R,{resetChatHistory:function(){var e="".concat(Ee,"/api/chat/resetHistory?name=").concat(Re,"&organizationName=").concat(B);try{var t={method:"GET",params:{guestSessionId:ke.current},withCredentials:!0};b.get(e,t).then(function(){Z(!0),Je(""),ht(null),St.current.clear(),_e.current="".concat(y()),ze([]),Ve(!0),null==ee||ee(),G&&G()}).catch(function(e){console.error(e)}).finally(function(){ke.current="".concat(Re,"-").concat(B,"-").concat(y())})}catch(e){Be(!1),console.error(e)}},isStreamEnd:Ke,chatTitle:Q,onResize:ae,chatSize:oe,movingTowards:re})})),s("div",n({className:M.messagesList},{children:[s("div",n({className:M.initialMessageRow},{children:[r("div",n({className:M.iconWrapper},{children:r(A,{})})),r("div",n({className:M.welcomeTextWrapper},{children:r("div",n({className:M.welcomeMarkdownWrapper},{children:r("span",{children:r(f,n({rehypePlugins:[S],components:Zt},{children:ne}))})}))}))]})),We.length>0&&We.map(function(e,t){return s("div",n({className:M.messageRow},{children:["assistant"===e.role?r("div",n({className:M.assistantIconContainer},{children:r(A,{})})):r("div",{className:M.userSpacer}),r("div",n({className:M.messageContent},{children:"assistant"===e.role?s(l,{children:[e.orchestratorAndAgentsMessages&&e.orchestratorAndAgentsMessages.length>0&&r(w,{orchestratorAndAgentsMessages:null==e?void 0:e.orchestratorAndAgentsMessages,isStreamEnd:Ke,finalTimeTaken:null==e?void 0:e.finalTimeTaken},null==e?void 0:e.id),r(k,{index:t,content:null==e?void 0:e.content,role:null==e?void 0:e.role,messages:We,handleStream:Bt,isLastMessage:t===We.length-1,onSave:ie,citations:null==e?void 0:e.citations,setChatSize:ae,chatSize:oe,isStreamEnd:Ke,messageIsEnd:null==e?void 0:e.isEnd,onViewComparison:ye,onTypeResponseClick:function(){var e;kt(!0),null===(e=Ne.current)||void 0===e||e.focus()},onComparisonLinkClick:xe,baseURL:Ee,onFeedbackSubmit:Ut}),r("div",n({className:M.timestamp},{children:e.time&&!isNaN(new Date(e.time).getTime())?new Date(e.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}):s("div",n({className:M.userMessageWrapper},{children:[s("div",n({className:M.userMessageBubble,style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:e.isSkeleton||Kt||e.id!==yt?"none":"0 0 15px 3px rgba(37, 99, 235, 0.6)"}},{children:[e.isSkeleton?s("div",n({style:{display:"flex",flexDirection:"column",gap:"12px",minWidth:"280px",padding:"8px 0"}},{children:[r(_,{variant:"text",width:"100%",height:16}),r(_,{variant:"text",width:"80%",height:16})]})):r(k,{index:t,content:null==e?void 0:e.content,role:null==e?void 0:e.role,messages:We,handleStream:Bt,isLastMessage:t===We.length-1,onSave:ie,citations:null==e?void 0:e.citations,isStreamEnd:Ke,messageIsEnd:null==e?void 0:e.isEnd,onViewComparison:ye,onComparisonLinkClick:xe,baseURL:Ee,onFeedbackSubmit:Ut}),r("div",n({style:{marginTop:"0.5rem"}},{children:r(W,{})}))]})),r("div",n({className:M.userTimestamp},{children:new Date(e.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}))}))]}),e.id)}),qe&&s("div",n({className:M.loadingRow},{children:[r("div",n({className:M.iconWrapper,style:{marginTop:"0.2rem"}},{children:r(A,{})})),r("div",n({className:M.loadingTextWrapper},{children:r("span",{children:Xe})}))]})),r("div",{ref:Ie,style:{float:"left",clear:"both"}})]}))]})),s("div",n({className:M.inputAreaWrapper},{children:[et&&s(C,n({sx:{display:"flex",alignItems:"center",gap:"8px",paddingBottom:"8px",paddingLeft:"4px",fontFamily:'"Plus Jakarta Sans", sans-serif',fontSize:"0.875rem",color:"#6b7280",width:"100%"}},{children:[r("span",{children:"Instant Learning AI is thinking"}),r(C,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(It," 1.4s infinite ease-in-out both"),animationDelay:"-0.32s"}}),r(C,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(It," 1.4s infinite ease-in-out both"),animationDelay:"-0.16s"}}),r(C,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(It," 1.4s infinite ease-in-out both")}})]})),r(g,n({title:J?"Please wait for the validation to be completed.":""},{children:s("div",n({className:"".concat(M.inputBoxContainer," ").concat(Dt?M.disabled:""),style:Rt?{boxShadow:"0 0 15px 3px rgba(37, 99, 235, 0.5)",borderColor:"#2563eb",transition:"box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out"}:{transition:"box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out"}},{children:[We.length>0&&!rt&&r("div",n({onMouseDown:function(e){e.preventDefault(),At("smooth")},className:M.scrollToBottomBtn},{children:r(N,{})})),s("div",n({style:{width:"100%",display:"flex"}},{children:[r("textarea",{ref:Ne,placeholder:de,value:Le||"",onChange:function(e){Fe(e.target.value)},onFocus:function(){return ot(!0)},onBlur:function(){return ot(!1)},onKeyDown:function(e){return Bt(e)},disabled:Dt,className:"no-scrollbar ".concat(M.chatTextarea),style:{minHeight:it?"120px":"50px",height:it?"120px":"50px",maxHeight:"120px"}}),r("span",n({className:M.sendButtonWrapper},{children:r("button",n({onClick:function(e){Bt(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:Lt,className:"".concat(M.sendButton," ").concat(Lt?M.disabled:M.active)},{children:r(F,{})}))}))]}))]}))}))]})),s("div",n({className:M.footerTools},{children:[r(g,n({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:r("span",n({className:M.footerToolItem},{children:r(T,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),r(g,n({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:r("span",n({className:M.footerToolItem},{children:r(T,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]}))]}))};export{j as default};
|
|
1
|
+
import{__makeTemplateObject as e,__spreadArray as t,__assign as n,__awaiter as i,__generator as o,__rest as a}from"tslib";import{jsx as r,jsxs as s,Fragment as l}from"react/jsx-runtime";import{useRef as c,useState as d,useMemo as u,useEffect as h,useCallback as m,useLayoutEffect as v}from"react";import{keyframes as p,Box as C}from"@mui/material";import g from"@mui/material/Tooltip";import f from"react-markdown";import S from"rehype-raw";import{http as b}from"../../../../api/transport.js";import{v4 as y}from"uuid";import{stopStreaming as x,startChatStream as w}from"@e-llm-studio/streaming-response";import{WatchMeWork as R}from"@e-llm-studio/watch-me-work";import k from"./ChatHeader.js";import _ from"../MessageRendering/MessageRendering.js";import{Skeleton as E}from"../atoms/SkeletonLoader/SkeletonLoader.js";import{ActionableButton as T}from"../MessageRendering/ClickableChatComponents.js";import M from"../AudioWaveform.js";import I from"./ChatComponent.module.css.js";import N from"../../InstantLearning.module.css.js";import{ScrollToBottom as D}from"../_svg/ScrollToBottom.js";import{useHeaderObserver as L,extractTextFromChildren as F}from"../../helpers/utils.js";import{SendButton as A}from"../_svg/SendButton.js";import W from"../_svg/SparkleIcon.js";import{UserIcon as z}from"../_svg/UserIcon.js";var j,q=function(q){var B=q.chatAssistantName,P=q.organizationName,H=q.baseUrl,Z=q.baseWebsocketUrl,K=q.setIsNewChatClicked;q.ThinkingBulbIconComponent;var U=q.isFormSaveClicked,G=q.setIsFormSavedClicked,V=q.onResetLearningData,O=q.sendMessageInChat,J=q.setSendMessageInChat,Q=q.isFormValidating,X=q.chatTitle,Y=q.customMetaData,$=q.headerMessageHandlers;q.aiResponse;var ee=q.setAIResponse,te=q.onResetChat,ne=q.initialChatMessage,ie=void 0===ne?"":ne,oe=q.onSave,ae=q.chatSize,re=q.setChatSize,se=q.movingTowards,le=q.setCitations,ce=q.textareaPlaceholder,de=void 0===ce?"Tell me more about this learning...":ce,ue=q.setCurrentRequestId,he=q.showSavedMessage,me=void 0!==he&&he,ve=q.savedMessage,pe=q.isError,Ce=void 0!==pe&&pe,ge=q.errorMessage,fe=void 0===ge?"There was an error saving your changes.":ge;q.isSaving;var Se=q.isHighlighted,be=void 0!==Se&&Se,ye=q.onStreamingStateChange,xe=q.onViewComparison;q.isCopyEnabled;var we=q.onComparisonLinkClick,Re=q.onSubmitFeedback,ke=B,_e=c("".concat(ke,"-").concat(P,"-").concat(y())),Ee=c("".concat(y())),Te=H,Me=c(null),Ie=c(!0),Ne=c(null),De=c(null),Le=d(""),Fe=Le[0],Ae=Le[1],We=d([]),ze=We[0],je=We[1],qe=d(!1),Be=qe[0],Pe=qe[1],He=d(!1);He[0];var Ze=He[1],Ke=d(!0),Ue=Ke[0],Ge=Ke[1],Ve=d(!0);Ve[0];var Oe=Ve[1],Je=d("");Je[0];var Qe=Je[1],Xe=d(""),Ye=Xe[0],$e=Xe[1],et=d(!1),tt=et[0],nt=et[1],it=d(!1),ot=it[0],at=it[1],rt=d(!0),st=rt[0],lt=rt[1],ct=d("100%");ct[0];var dt=ct[1],ut=d(null),ht=ut[0],mt=ut[1],vt=d(!1);vt[0];var pt=vt[1],Ct=d(!1),gt=Ct[0],ft=Ct[1],St=c(null),bt=c(new Set),yt=d(null),xt=yt[0],wt=yt[1],Rt=d(!1),kt=Rt[0],_t=Rt[1],Et=d(!1);Et[0],Et[1];var Tt=d(null);Tt[0],Tt[1],c(null),c(null);var Mt=c(new Map),It=c(""),Nt=c(0),Dt=c(!0),Lt=p(j||(j=e(["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "],["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "]))),Ft=u(function(){return""===(null==Fe?void 0:Fe.trim())||tt},[Fe,tt]),At=u(function(){return Q},[Q]),Wt=u(function(){return Ft||tt||Q},[Ft,tt,Q]);h(function(){null==ye||ye(tt)},[tt,ye]),h(function(){return Dt.current=!0,function(){Dt.current=!1,Nt.current+=1,It.current&&Z&&x(It.current,Z,!1)}},[Z]),h(function(){var e=Me.current,t=function(){if(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;lt(n-t-i<=20)}};return e&&(e.addEventListener("scroll",t),t()),function(){e&&e.removeEventListener("scroll",t)}},[ze]);var zt=L({handlers:$,setResult:ee}).processHeaderMessage;h(function(){me&&ft(!0)},[me]),h(function(){if(kt){var e=setTimeout(function(){_t(!1)},3e3);return function(){return clearTimeout(e)}}},[kt]),h(function(){U&&(Zt(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save this Learning"),G(!1))},[U]),h(function(){if(O)try{if(O.startsWith("__SKELETON__:")){var e=O.split(":"),i=e[1],o=e.slice(2).join(":"),a={role:"user",content:"",id:i,time:new Date,isSkeleton:!0,skeletonContent:o};return je(function(e){return t(t([],e,!0),[a],!1)}),Zt(new KeyboardEvent("keydown",{key:"Enter"}),!1,o,!1,i),wt(i),J&&J(""),void setTimeout(function(){wt(null)},2e3)}if(O.startsWith("__SKELETON_END__::")){var r=O.split("::")[1]||"";return je(function(e){return e.map(function(e){return e.isSkeleton?n(n({},e),{isSkeleton:!1,content:e.skeletonContent||r}):e})}),void(J&&J(""))}var s=y();Zt(new KeyboardEvent("keydown",{key:"Enter"}),!1,O,!1,s),wt(s),J&&J(""),setTimeout(function(){return wt(null)},2e3)}catch(e){console.error("Error handling sendMessageInChat signal",e)}},[O]),h(function(){qt(),Bt();var e=function(){var e,t=(null===(e=null==St?void 0:St.current)||void 0===e?void 0:e.clientHeight)||0,n="calc(100% - ".concat(t,"px - 10px)");dt(n)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var jt=m(function(e){var t="string"==typeof e?e:"smooth";Ne.current&&Ne.current.scrollIntoView({behavior:t,block:"end"}),Ie.current&&setTimeout(function(){Ne.current&&Ie.current&&Ne.current.scrollIntoView({behavior:t,block:"end"})},100)},[]);h(function(){if(!tt){var e="";if(gt?e=ve||"Thank you teacher for teaching me, your rule has been saved successfully.":Ce&&(e=fe||"I'm sorry, I couldn't save your changes. Please try again."),e){var n={role:"assistant",content:e,id:y(),citations:[],time:new Date};je(function(e){return t(t([],e,!0),[n],!1)}),ft(!1),setTimeout(function(){return jt("smooth")},100)}}},[gt,Ce,tt,ve,fe,jt]),h(function(){Ie.current&&jt("smooth")},[jt]);var qt=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(Te,"/api/chatbot/getChatSettings?name=").concat(ke,"&organizationName=").concat(P),headers:{}};b.request(e).then(function(e){var t,n,i;(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.chatSettings)&&""!==(null===(i=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)||void 0===i?void 0:i.chatInitialMessage)&&Oe(!0)}).catch(function(e){console.error(e)})},Bt=function(){return i(void 0,void 0,void 0,function(){var e,t;return o(this,function(n){e="".concat(Te,"/api/chat/history?name=").concat(ke,"&organizationName=").concat(P);try{t={method:"GET",params:{guestSessionId:_e.current},withCredentials:!0},b.get(e,t).then(function(e){var t=e.data;t.length>0?(je(t),jt()):Oe(!0)}).catch(function(e){console.error(e)})}catch(e){Pe(!1),console.error(e)}return[2]})})};function Pt(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var Ht=function(e,i,o,a,r,s,l){var c,d,u,h,m,v,p,C,g,f,S,b,x,w,R,k,_,E,T,M,I,N,D,L,F,A,W,z,j,q,B,P,H,Z;if(null===(d=null===(c=null==e?void 0:e.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===d?void 0:d.header_message){var K={header_message:e.chatStream.continueChatResult.header_message,responsedata:null===(m=null===(h=null===(u=null==e?void 0:e.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===h?void 0:h.message)||void 0===m?void 0:m.content};zt(K)}var U=null===(v=null==e?void 0:e.chatStream)||void 0===v?void 0:v.continueChatResult,G=null==U?void 0:U.isEnd,V=(null===(p=null==U?void 0:U.message)||void 0===p?void 0:p.citations)||[];G&&V.length>0&&le&&le(V);var O={role:"assistant",content:"",id:y()};if(null===(S=null===(f=null===(g=null===(C=null==e?void 0:e.chatStream)||void 0===C?void 0:C.continueChatResult)||void 0===g?void 0:g.message)||void 0===f?void 0:f.content)||void 0===S?void 0:S.includes("WaitMessage: "))Ze(!0),O.content=function(e){var t="WaitMessage: ",n=e.indexOf(t);if(-1!==n){var i=e.substring(n+13);return null==i?void 0:i.replaceAll("WaitMessage: ","")}return""}((null===(w=null===(x=null===(b=null==e?void 0:e.chatStream)||void 0===b?void 0:b.continueChatResult)||void 0===x?void 0:x.message)||void 0===w?void 0:w.content)+"\n\n"),""!==O.content&&(Pe(!1),je(t(t([],ze,!0),[{role:"user",content:r,time:a,isFirstQuestionSent:s||!1,id:l||(null===(k=null===(R=null==e?void 0:e.chatStream)||void 0===R?void 0:R.continueChatResult)||void 0===k?void 0:k.requestId)||"",reply:""},O],!1)));else{Ze(!1),O.content=null===(M=Pt(null===(T=null===(E=null===(_=null==e?void 0:e.chatStream)||void 0===_?void 0:_.continueChatResult)||void 0===E?void 0:E.message)||void 0===T?void 0:T.content))||void 0===M?void 0:M.replaceAll("WaitMessage: ","");var J=null===(N=null===(I=null==e?void 0:e.chatStream)||void 0===I?void 0:I.continueChatResult)||void 0===N?void 0:N.requestId;"string"==typeof J&&J&&ue&&ue(J);var Q=function(e,i,o){var a,r,s,l,c,d,u,h,m,v,p,C,g,f,S,b,x,w,R,k,_,E,T,M,I,N,D,L,F,A,W,z,j,q,B={role:"assistant",content:"",id:y(),time:new Date,citations:[]};if(!1===(null===(r=null===(a=e.chatStream)||void 0===a?void 0:a.continueChatResult)||void 0===r?void 0:r.thinking_break)&&!0===(null===(l=null===(s=e.chatStream)||void 0===s?void 0:s.continueChatResult)||void 0===l?void 0:l.is_orchestrator)&&!1===(null===(d=null===(c=e.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===d?void 0:d.isEnd)&&(B.content=Pt(e.chatStream.continueChatResult.message.content||"")),!0===(null===(h=null===(u=e.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===h?void 0:h.thinking_break)&&!0===(null===(v=null===(m=e.chatStream)||void 0===m?void 0:m.continueChatResult)||void 0===v?void 0:v.is_orchestrator)&&!1===(null===(C=null===(p=e.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===C?void 0:C.isEnd)&&(B.content="",i.push({responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!1})),!1===(null===(f=null===(g=e.chatStream)||void 0===g?void 0:g.continueChatResult)||void 0===f?void 0:f.thinking_break)&&!0===(null===(b=null===(S=e.chatStream)||void 0===S?void 0:S.continueChatResult)||void 0===b?void 0:b.is_orchestrator)&&!0===(null===(w=null===(x=e.chatStream)||void 0===x?void 0:x.continueChatResult)||void 0===w?void 0:w.isEnd)&&(B.content=Pt(e.chatStream.continueChatResult.message.content)),!1===(null===(k=null===(R=e.chatStream)||void 0===R?void 0:R.continueChatResult)||void 0===k?void 0:k.thinking_break)&&!1===(null===(E=null===(_=e.chatStream)||void 0===_?void 0:_.continueChatResult)||void 0===E?void 0:E.is_orchestrator)&&!1===(null===(M=null===(T=e.chatStream)||void 0===T?void 0:T.continueChatResult)||void 0===M?void 0:M.isEnd)){if((Z=e.chatStream.continueChatResult).explainability_id&&Z.responded_by){var P=Z.explainability_id,H=Z.responded_by;o.has(P)||o.set(P,{responded_by:H,index:i.length})}o.has(e.chatStream.continueChatResult.explainability_id)?i[null==(K=o.get(e.chatStream.continueChatResult.explainability_id))?void 0:K.index]={responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(I=e.chatStream.continueChatResult.explainability_id)&&void 0!==I?I:"",isParallelToolResponse:!0}:i=t(t([],i,!0),[{responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(N=e.chatStream.continueChatResult.explainability_id)&&void 0!==N?N:"",isParallelToolResponse:!1}],!1)}if(!0===(null===(L=null===(D=e.chatStream)||void 0===D?void 0:D.continueChatResult)||void 0===L?void 0:L.thinking_break)&&!1===(null===(A=null===(F=e.chatStream)||void 0===F?void 0:F.continueChatResult)||void 0===A?void 0:A.is_orchestrator)&&!1===(null===(z=null===(W=e.chatStream)||void 0===W?void 0:W.continueChatResult)||void 0===z?void 0:z.isEnd)){var Z,K;(Z=e.chatStream.continueChatResult).explainability_id&&Z.responded_by&&(P=Z.explainability_id,H=Z.responded_by,o.has(P)||o.set(P,{responded_by:H,index:i.length})),o.has(e.chatStream.continueChatResult.explainability_id)?i[null==(K=o.get(e.chatStream.continueChatResult.explainability_id))?void 0:K.index]={responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(j=e.chatStream.continueChatResult.explainability_id)&&void 0!==j?j:"",isParallelToolResponse:!0}:i.push({responsedata:e.chatStream.continueChatResult.message.content,responseFrom:e.chatStream.continueChatResult.responded_by,header_message:e.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(q=e.chatStream.continueChatResult.explainability_id)&&void 0!==q?q:"",isParallelToolResponse:!1})}return n({orchestratorAndAgentsMessages:i},B)}(e,o,i);Q.time=new Date,Q.citations=V,Q.isEnd=null===(L=null===(D=null==e?void 0:e.chatStream)||void 0===D?void 0:D.continueChatResult)||void 0===L?void 0:L.isEnd,Q.requestId=null===(A=null===(F=null==e?void 0:e.chatStream)||void 0===F?void 0:F.continueChatResult)||void 0===A?void 0:A.requestId,Q.sessionId=_e.current,null===(W=Q.orchestratorAndAgentsMessages)||void 0===W||W.forEach(function(e){e&&e.header_message&&zt(e)}),(""!==(null==Q?void 0:Q.content)||(null==Q?void 0:Q.orchestratorAndAgentsMessages)&&(null==Q?void 0:Q.orchestratorAndAgentsMessages.length)>0)&&(Pe(!1),je(t(t([],ze,!0),[{role:"user",content:r||"",time:a,isFirstQuestionSent:s||!1,id:l||(null===(j=null===(z=null==e?void 0:e.chatStream)||void 0===z?void 0:z.continueChatResult)||void 0===j?void 0:j.requestId)||"",requestId:null!==(P=null===(B=null===(q=null==e?void 0:e.chatStream)||void 0===q?void 0:q.continueChatResult)||void 0===B?void 0:B.requestId)&&void 0!==P?P:""},Q],!1))),Ge(null===(Z=null===(H=null==e?void 0:e.chatStream)||void 0===H?void 0:H.continueChatResult)||void 0===Z?void 0:Z.isEnd)}},Zt=function(e,i,o,a,r,s){var l,c,d=(void 0!==o?o:Fe||"").trim(),u="Enter"===(null==e?void 0:e.key)&&!(null==e?void 0:e.shiftKey);if(u&&(null===(l=null==e?void 0:e.preventDefault)||void 0===l||l.call(e)),!(!d||tt&&!o||(null==e?void 0:e.key)&&!u)){if("I want to add a rule description"===d){Ge(!1),Ie.current=!0,nt(!0),!ht&&d&&mt(o||"manual_entry");var h=new Date;return je(function(e){return t(t([],e.map(function(e,t){var i;return n(n({},e),{content:null===(i=Pt(e.content))||void 0===i?void 0:i.replace("WaitMessage: ","")})}),!0),[{role:"user",content:d,time:h,isFirstQuestionSent:!1,id:r||y()}],!1)}),jt("smooth"),void setTimeout(function(){je(function(e){return t(t([],e,!0),[{role:"assistant",content:"I'd be happy to help you set up a new rule! To get started, could you tell me what kind of behavior or logic you would like this rule to follow?",id:y(),citations:[],time:new Date}],!1)}),jt("smooth"),setTimeout(function(){nt(!1),Ge(!0)},500)},500)}Ge(!1),Ie.current=!0,nt(!0),!ht&&d&&mt(o||"manual_entry");var m=new Date,v=Nt.current;je(function(e){var i=e.map(function(e){var t;return n(n({},e),{content:null===(t=Pt(e.content))||void 0===t?void 0:t.replace("WaitMessage: ","")})});return r&&i.some(function(e){return e.id===r})?i.map(function(e){return e.id===r?n(n({},e),{content:d}):e}):t(t([],i,!0),[{role:"user",content:d,time:m,isFirstQuestionSent:!1,id:r||y()}],!1)}),jt("smooth");var p=new Map,C=[],g={WEBSOCKET_URL:Z,organizationName:P,chatAssistantName:ke,selectedAIModel:"gpt-4",replyMessage:"",userName:"Guest User",userEmailId:"guestUser@example.com",userId:"Guest User",query:d,requestId:"requestId-".concat(y()),customPrompt:"",enableForBackend:!1,guestSessionId:_e.current,chatPreviewId:Ee.current,customMetaData:Y,aiModel:"",onStreamEvent:function(e){Dt.current&&Nt.current===v&&Ht(e,p,C,m,d,i,r)},onStreamEnd:function(e){if(Dt.current&&Nt.current===v){Ge(!0),nt(!1),pt(!1);var i=Date.now(),o=Mt.current.get(It.current);if(o){var a=Math.round((i-o)/1e3).toFixed(1);je(function(e){var i=t([],e,!0).reverse().findIndex(function(e){return"assistant"===e.role});if(-1===i)return e;var o=e.length-1-i;return e.map(function(e,t){return t===o?n(n({},e),{finalTimeTaken:a}):e})})}}},onError:function(e){Dt.current&&Nt.current===v&&(console.error("Stream error:",e),Ge(!0),nt(!1),pt(!1))}};if(d)Pe(!0),null===(c=De.current)||void 0===c||c.blur(),Ae(""),jt(),$e(r?"Just a moment, processing your request...":"Okay, got it. Let me take a moment to work on this and I'll get back to you shortly."),Mt.current.set(g.requestId,Date.now()),It.current=g.requestId,w(g);s&&s(!1)}},Kt=c(null);v(function(){Kt.current=Zt});var Ut=m(function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return null===(e=Kt.current)||void 0===e?void 0:e.call.apply(e,t([Kt],n,!1))},[]),Gt=u(function(){return{p:function(e){e.node;var t=e.children;return a(e,["node","children"]),r("div",n({style:{margin:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"10px",fontFamily:"inherit"}},{children:t}))},button:function(e){e.node;var t=e.className,i=e.children,o=a(e,["node","className","children"]),l=F(i),c=o["data-value"],d="Tester Genie"===l;return r(T,n({},o,{className:t,handleStream:Ut,isStreamEnd:Ue,disabled:!!ht,isLastMessage:!0,style:{margin:0},isTesterGenie:d,"data-selected":ht===l||ht===c?"true":ht?"false":void 0},{children:s("span",n({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[i,d&&s("svg",n({width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[r("path",{d:"M7.20368 8.94768e-06C7.48895 -0.00208639 7.69331 0.364327 7.83856 0.57465C8.14381 1.01633 8.38012 1.87909 7.71077 2.14118C8.57167 2.21011 9.70406 2.93098 10.1785 3.64699C10.5932 4.27286 10.4559 5.16037 9.80301 5.56007L9.9502 7.16593C9.97671 7.44871 10.0265 7.87092 10.0299 8.14457C10.4213 8.23046 11.0787 8.55391 11.326 8.87592C11.5979 8.75656 11.9189 8.76963 12.1688 8.93469C12.3563 8.67751 12.5598 8.41456 12.7507 8.15787C12.3283 7.45155 12.5047 6.57745 13.2143 6.13784C13.5375 5.9377 13.9264 5.87277 14.2971 5.95705C14.0961 6.30964 13.8775 6.72182 13.6593 7.05857C13.7906 7.2436 13.9184 7.44225 14.044 7.63194L14.8022 7.63198C15.0349 7.30106 15.2515 6.90827 15.4835 6.59349C15.8623 7.0712 15.8156 7.79671 15.4734 8.28241C15.1318 8.76741 14.4886 8.9899 13.9118 8.88251C13.758 9.12108 13.5577 9.39243 13.3941 9.63201C13.7143 9.9316 13.7725 10.364 13.4067 10.6594C13.5231 10.8889 13.5309 11.1613 13.447 11.402C13.1502 12.2523 12.1724 12.5645 11.3474 12.5025C11.1171 12.4852 10.939 12.4698 10.7197 12.3953C10.8724 13.1271 10.7744 14.2031 10.5132 14.9051C10.1688 15.8304 9.43632 16.5569 8.54503 16.9655C7.90465 17.2706 7.21222 17.3607 6.50472 17.4505C5.74445 17.5471 4.75801 17.4362 4.08533 17.825C3.9327 17.9132 3.86566 18.0173 3.82943 18.1792C3.94996 18.5982 4.47858 18.6063 4.78474 18.8897C5.20191 19.2758 4.90716 19.9663 4.36611 19.9908C4.31476 19.9931 4.26867 19.9867 4.23186 19.9493C4.23089 19.8303 4.47587 19.7199 4.49787 19.5262C4.55075 19.0604 3.70014 19.0078 3.37835 18.8374C3.13013 18.706 2.99537 18.6309 2.82242 18.4021C2.63795 18.1579 2.58428 17.835 2.63138 17.5392C2.74868 16.7847 3.47123 16.393 4.12184 16.1497C4.61314 15.9659 5.46304 15.7158 5.52019 15.0793C5.58589 14.348 4.97543 13.5523 4.57739 12.9807C4.44275 12.7875 4.3039 12.579 4.16309 12.3919C4.18987 12.365 4.21049 12.3463 4.23916 12.3212C4.59619 12.6218 5.21209 12.6421 5.55038 12.2979C5.70457 12.144 5.78974 11.9342 5.78642 11.7164C5.78121 11.4493 5.63382 11.2002 5.4454 11.019C5.44704 10.9932 5.44824 10.9676 5.449 10.9419C5.4566 10.6648 5.37505 10.4902 5.1892 10.2943C5.18398 10.2538 5.17776 10.2134 5.17053 10.1732C5.08123 9.69297 4.71708 9.34182 4.23415 9.27108C4.16418 9.26083 3.96108 9.26105 3.92071 9.23344C3.90485 9.1828 3.9059 9.20792 3.91904 9.15527C4.22103 8.90139 4.14407 8.78214 4.31107 8.4846C4.42301 8.28513 4.73047 8.15239 4.95452 8.10701C4.96167 7.51076 5.03684 6.88562 5.10036 6.29144C5.12451 6.0655 5.12531 5.75046 5.1511 5.55257C4.11108 4.86747 4.39091 3.75946 5.25465 3.06391C5.84978 2.58469 6.34496 2.31002 7.10143 2.14517C7.01589 2.10416 6.93842 2.04811 6.87269 1.97972C6.77021 1.87349 6.70248 1.73857 6.67853 1.59293C6.60568 1.12096 7.04104 0.914625 7.18759 0.526392C7.26428 0.323403 7.03925 0.146075 7.20368 8.94768e-06Z",fill:"#475569"}),r("path",{d:"M7.459 4.5C7.48797 4.50312 7.71949 4.61154 7.76205 4.63061C8.27062 4.85835 8.87051 5.09164 9.35658 5.3582C9.36602 6.03495 9.37016 6.56625 8.70573 6.91519C8.6633 6.80883 8.63019 6.72409 8.56332 6.63044C8.43786 6.45568 8.24656 6.33963 8.03354 6.30909C7.8434 6.28211 7.65146 6.3197 7.49586 6.43503C7.21897 6.21256 6.76265 6.28197 6.5229 6.52486C6.39308 6.65639 6.34815 6.75074 6.28902 6.92344C5.59702 6.5957 5.58761 6.04267 5.60583 5.35582C5.89882 5.23844 6.21318 5.0724 6.50153 4.941C6.82145 4.79522 7.14482 4.6574 7.459 4.5Z",fill:"#D1EDFD"}),r("path",{d:"M11.0756 10.6406C11.1037 10.6701 11.1324 10.7706 11.1535 10.8145C11.2818 11.0817 11.4922 11.1945 11.7498 11.2977C11.5607 11.63 11.4567 11.8797 11.1034 12.0466L11.0839 12.0517C10.9262 12.0927 10.7996 12.0968 10.651 12.0135C10.4755 11.915 10.3807 11.6614 10.4792 11.478C10.6388 11.1809 10.8877 10.9272 11.0756 10.6406Z",fill:"#D1EDFD"}),r("path",{d:"M11.6036 9.1377C11.6993 9.11763 11.8391 9.16378 11.9294 9.19593C11.6952 9.50644 11.4706 9.81614 11.2327 10.1261L11.1572 10.2255C10.7581 9.73539 11.0333 9.24481 11.6036 9.1377Z",fill:"#D1EDFD"}),r("path",{d:"M7.49681 0.882812C7.53691 0.925159 7.61244 1.08523 7.63598 1.14156C7.74243 1.39673 7.75769 1.76908 7.38596 1.77504C7.28236 1.75599 7.15628 1.68938 7.13517 1.5783C7.0843 1.3107 7.35609 1.09964 7.48737 0.897583L7.49681 0.882812Z",fill:"#D1EDFD"}),r("path",{d:"M1.68305 6.17249C1.71659 6.1673 1.8134 6.16478 1.84892 6.16432C2.34052 6.15616 2.81496 6.34495 3.16655 6.68866C3.50847 7.01806 3.70349 7.47119 3.70765 7.94596C3.70896 8.42345 3.54045 8.85284 3.20281 9.19025C3.34033 9.28068 3.5321 9.52219 3.6543 9.65748C4.17158 9.39073 4.91447 9.69339 4.79675 10.3444C5.08751 10.5485 5.19656 10.8288 5.0585 11.1674C5.15418 11.2375 5.25595 11.3205 5.32383 11.4186C5.40228 11.5303 5.4309 11.6695 5.40291 11.8031C5.32228 12.1857 4.90085 12.3286 4.57669 12.1236C4.51367 12.0838 4.42258 11.9595 4.35299 11.9431C4.30669 11.9557 4.28453 11.9584 4.23644 11.9644C4.22885 11.9742 4.22118 11.9841 4.21343 11.9938C3.93597 12.3413 3.49234 12.4682 3.06933 12.5157C2.85285 12.518 2.70432 12.5146 2.49066 12.4609C1.80785 12.2892 1.50808 11.6167 1.70723 10.9639C1.829 10.5648 2.11891 10.2506 2.48939 10.0518C2.54655 10.132 2.57559 10.2191 2.64066 10.303C2.73571 10.2223 2.82048 10.1482 2.92363 10.0773C2.81023 9.95313 2.66811 9.7693 2.55817 9.63584C2.38871 9.6878 2.23026 9.72879 2.05298 9.74653C1.54239 9.80228 1.03118 9.64711 0.637735 9.31695C0.269964 9.01018 0.0453493 8.54827 0.00544736 8.07322C-0.0309495 7.60988 0.116099 7.15077 0.414918 6.79478C0.742554 6.41198 1.18728 6.21393 1.68305 6.17249Z",fill:"#475569"}),r("path",{d:"M1.79616 6.5951C2.54894 6.5619 3.18687 7.14364 3.22301 7.8963C3.25915 8.64894 2.67989 9.28913 1.92739 9.3282C1.17073 9.3675 0.526231 8.78435 0.489885 8.02753C0.45354 7.27071 1.03921 6.62849 1.79616 6.5951Z",fill:"#D1EDFD"}),r("path",{d:"M4.93607 11.4844C5.12839 11.6261 5.22049 11.9085 4.91876 11.9419C4.8067 11.8805 4.78491 11.8646 4.71094 11.7561C4.81572 11.6752 4.862 11.5925 4.93607 11.4844Z",fill:"#FEFEFD"}),r("path",{d:"M12.5164 3.58594L12.5715 3.59466C12.6589 3.65863 12.6908 3.94434 12.7882 4.05193C12.8789 4.15216 12.9155 4.17816 13.0326 4.24929C13.1363 4.31224 13.3325 4.34025 13.384 4.43124C13.3643 4.56218 13.0693 4.54857 12.9127 4.69344C12.6903 4.89898 12.7114 5.06971 12.5892 5.28622C12.5669 5.28439 12.5368 5.2868 12.5261 5.27346C12.4336 5.15843 12.4072 4.9308 12.3099 4.81465C12.1627 4.63903 11.9972 4.60054 11.7981 4.51372C11.7544 4.49467 11.7266 4.47099 11.7129 4.42649C11.7867 4.31876 12.0509 4.34309 12.2376 4.14892C12.43 3.94901 12.4155 3.72208 12.5164 3.58594Z",fill:"#475569"}),r("path",{d:"M2.13644 3.72656C2.24401 3.77084 2.29712 4.1268 2.431 4.25226C2.60327 4.41371 2.7311 4.41949 2.93246 4.52449C2.96024 4.53897 2.97173 4.56042 2.97671 4.58878C2.89584 4.6981 2.61854 4.70721 2.4596 4.85659C2.26275 5.04156 2.27341 5.29132 2.17022 5.42088C2.16192 5.41849 2.11671 5.40232 2.1156 5.40043C2.01291 5.21216 1.9836 5.04909 1.84812 4.87273C1.73599 4.72675 1.36534 4.69959 1.32812 4.56939C1.3835 4.47941 1.67823 4.44211 1.82291 4.30563C2.02737 4.11274 2.0042 3.8372 2.13644 3.72656Z",fill:"#475569"})]}))]}))}))}}},[Ut,Ue,ht]),Vt=u(function(){return ze.some(function(e){return e.isSkeleton})},[ze]),Ot=function(e){return i(void 0,void 0,void 0,function(){return o(this,function(n){switch(n.label){case 0:return Re?[4,Re(e)]:[3,2];case 1:n.sent(),je(function(e){return t(t([],e,!0),[{role:"assistant",content:"Thanks for your feedback — this will help improve future suggestions.",id:y(),citations:[],time:new Date,isEnd:!0}],!1)}),setTimeout(function(){return jt("smooth")},100),n.label=2;case 2:return[2]}})})};return console.log(ze,"rendering messages"),s("div",n({className:"".concat(N.customFont," ").concat(I.chatContainer),style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:be&&!Vt?"0 0 20px 5px rgba(37, 99, 235, 0.5)":"none"}},{children:[s("div",n({ref:Me,className:I.scrollWrapper},{children:[r("div",n({ref:St,className:I.stickyHeader},{children:r(k,{resetChatHistory:function(){var e="".concat(Te,"/api/chat/resetHistory?name=").concat(ke,"&organizationName=").concat(P);try{var t={method:"GET",params:{guestSessionId:_e.current},withCredentials:!0};b.get(e,t).then(function(){K(!0),Qe(""),mt(null),bt.current.clear(),Ee.current="".concat(y()),je([]),Oe(!0),null==te||te(),V&&V()}).catch(function(e){console.error(e)}).finally(function(){_e.current="".concat(ke,"-").concat(P,"-").concat(y())})}catch(e){Pe(!1),console.error(e)}},isStreamEnd:Ue,chatTitle:X,onResize:re,chatSize:ae,movingTowards:se})})),s("div",n({className:I.messagesList},{children:[s("div",n({className:I.initialMessageRow},{children:[r("div",n({className:I.iconWrapper},{children:r(W,{})})),r("div",n({className:I.welcomeTextWrapper},{children:r("div",n({className:I.welcomeMarkdownWrapper},{children:r("span",{children:r(f,n({rehypePlugins:[S],components:Gt},{children:ie}))})}))}))]})),ze.length>0&&ze.map(function(e,t){return s("div",n({className:I.messageRow},{children:["assistant"===e.role?r("div",n({className:I.assistantIconContainer},{children:r(W,{})})):r("div",{className:I.userSpacer}),r("div",n({className:I.messageContent},{children:"assistant"===e.role?s(l,{children:[e.orchestratorAndAgentsMessages&&e.orchestratorAndAgentsMessages.length>0&&r(R,{orchestratorAndAgentsMessages:null==e?void 0:e.orchestratorAndAgentsMessages,isStreamEnd:Ue,finalTimeTaken:null==e?void 0:e.finalTimeTaken},null==e?void 0:e.id),r(_,{index:t,content:null==e?void 0:e.content,role:null==e?void 0:e.role,messages:ze,handleStream:Zt,isLastMessage:t===ze.length-1,onSave:oe,citations:null==e?void 0:e.citations,setChatSize:re,chatSize:ae,isStreamEnd:Ue,messageIsEnd:null==e?void 0:e.isEnd,onViewComparison:xe,onTypeResponseClick:function(){var e;_t(!0),null===(e=De.current)||void 0===e||e.focus()},onComparisonLinkClick:we,baseURL:Te,onFeedbackSubmit:Ot}),r("div",n({className:I.timestamp},{children:e.time&&!isNaN(new Date(e.time).getTime())?new Date(e.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}):s("div",n({className:I.userMessageWrapper},{children:[s("div",n({className:I.userMessageBubble,style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:e.isSkeleton||Vt||e.id!==xt?"none":"0 0 15px 3px rgba(37, 99, 235, 0.6)"}},{children:[e.isSkeleton?s("div",n({style:{display:"flex",flexDirection:"column",gap:"12px",minWidth:"280px",padding:"8px 0"}},{children:[r(E,{variant:"text",width:"100%",height:16}),r(E,{variant:"text",width:"80%",height:16})]})):r(_,{index:t,content:null==e?void 0:e.content,role:null==e?void 0:e.role,messages:ze,handleStream:Zt,isLastMessage:t===ze.length-1,onSave:oe,citations:null==e?void 0:e.citations,isStreamEnd:Ue,messageIsEnd:null==e?void 0:e.isEnd,onViewComparison:xe,onComparisonLinkClick:we,baseURL:Te,onFeedbackSubmit:Ot}),r("div",n({style:{marginTop:"0.5rem"}},{children:r(z,{})}))]})),r("div",n({className:I.userTimestamp},{children:new Date(e.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}))}))]}),e.id)}),Be&&s("div",n({className:I.loadingRow},{children:[r("div",n({className:I.iconWrapper,style:{marginTop:"0.2rem"}},{children:r(W,{})})),r("div",n({className:I.loadingTextWrapper},{children:r("span",{children:Ye})}))]})),r("div",{ref:Ne,style:{float:"left",clear:"both"}})]}))]})),s("div",n({className:I.inputAreaWrapper},{children:[tt&&s(C,n({sx:{display:"flex",alignItems:"center",gap:"8px",paddingBottom:"8px",paddingLeft:"4px",fontFamily:'"Plus Jakarta Sans", sans-serif',fontSize:"0.875rem",color:"#6b7280",width:"100%"}},{children:[r("span",{children:"Instant Learning AI is thinking"}),r(C,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Lt," 1.4s infinite ease-in-out both"),animationDelay:"-0.32s"}}),r(C,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Lt," 1.4s infinite ease-in-out both"),animationDelay:"-0.16s"}}),r(C,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Lt," 1.4s infinite ease-in-out both")}})]})),r(g,n({title:Q?"Please wait for the validation to be completed.":""},{children:s("div",n({className:"".concat(I.inputBoxContainer," ").concat(At?I.disabled:""),style:kt?{boxShadow:"0 0 15px 3px rgba(37, 99, 235, 0.5)",borderColor:"#2563eb",transition:"box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out"}:{transition:"box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out"}},{children:[ze.length>0&&!st&&r("div",n({onMouseDown:function(e){e.preventDefault(),jt("smooth")},className:I.scrollToBottomBtn},{children:r(D,{})})),s("div",n({style:{width:"100%",display:"flex"}},{children:[r("textarea",{ref:De,placeholder:de,value:Fe||"",onChange:function(e){Ae(e.target.value)},onFocus:function(){return at(!0)},onBlur:function(){return at(!1)},onKeyDown:function(e){return Zt(e)},disabled:At,className:"no-scrollbar ".concat(I.chatTextarea),style:{minHeight:ot?"120px":"50px",height:ot?"120px":"50px",maxHeight:"120px"}}),r("span",n({className:I.sendButtonWrapper},{children:r("button",n({onClick:function(e){Zt(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:Wt,className:"".concat(I.sendButton," ").concat(Wt?I.disabled:I.active)},{children:r(A,{})}))}))]}))]}))}))]})),s("div",n({className:I.footerTools},{children:[r(g,n({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:r("span",n({className:I.footerToolItem},{children:r(M,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),r(g,n({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:r("span",n({className:I.footerToolItem},{children:r(M,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]}))]}))};export{q as default};
|
|
2
2
|
//# sourceMappingURL=NormalChat.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as n}from"react";import{TextSection as o}from"../../organisms/TextSection/TextSection.js";import{ScopeSection as d}from"../../organisms/ScopeSection/ScopeSection.js";import{ConditionSection as l}from"../../organisms/ConditionSection/ConditionSection.js";import{ConfigSection as s}from"../../organisms/ConfigSection/ConfigSection.js";import{InputDataReasoningCard as a}from"../../InputDataReasoningCard.js";import{ButtonCognitiveIcon as r}from"../../_svg/ButtonCognitiveIcon.js";var c=function(c){var p,h,g,v,u,m,I,f,E,b,y,A,S,C,T,N,w,W,L,O,D,M,x,P,R,j,q,V,H,K,z,B,_,k=c.state,F=c.handlers,G=c.uiState,J=c.customNodes,Q=void 0===J?{}:J,U=n({}),X=U[0],Y=U[1],Z=n(new Set),$=Z[0],ii=Z[1],ei=function(e){Y(function(t){var n;return i(i({},t),((n={})[e]=!t[e],n))})},ti=function(i){var e,t=null===(e=k.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(t)&&t.length>0?t:k.citations||[]},ni={marginTop:"-17px",position:"relative",zIndex:1},oi=function(i){return!!G.isAiStreaming||(!!G.isReadOnly||!(!G.activeEditId||G.activeEditId.startsWith(i)))};return e("div",i({className:"base-template-container",style:{display:"flex",flexDirection:"column",gap:"16px",width:"100%"}},{children:[Q.top&&t("div",i({className:"custom-slot-top"},{children:Q.top})),e("div",i({className:"template-section"},{children:[t(o,{id:"base-title",title:G.titleLabel||"Title",fieldName:G.titleLabel||"Title",rows:1,placeholder:"Enter a descriptive title",required:!0,value:k.title||"",onChange:F.onTitleChange,readOnly:oi("base-title"),isOpen:X.title,onToggle:function(){return ei("title")},isHighlighted:(null===(p=G.highlights)||void 0===p?void 0:p.get("title"))||!1,showCognitiveIcon:!!(null===(h=k.citation)||void 0===h?void 0:h.title),tooltipDescription:"Why this ".concat(G.titleLabel||"Title","?"),errorMessage:null===(g=G.validationErrors)||void 0===g?void 0:g.title,enableInlineEdit:!0,setSendMessageInChat:G.setSendMessageInChat,activeEditId:null!==(v=G.activeEditId)&&void 0!==v?v:null,setActiveEditId:G.setActiveEditId,pendingEditId:null!==(u=G.pendingEditId)&&void 0!==u?u:null,setPendingEditId:G.setPendingEditId}),(null===(m=k.citation)||void 0===m?void 0:m.title)&&t("div",i({style:ni},{children:t(a,{isVisible:X.title,citation:k.citation.title,citations:ti("title"),fieldName:G.titleLabel||"Title",fieldValue:k.title||""})}))]})),Q.afterTitle&&t("div",i({className:"custom-slot"},{children:Q.afterTitle})),G.showScope&&e("div",i({className:"template-section"},{children:[t(d,{id:"base-scope",title:G.scopeLabel||"",required:!1,scopeData:k.scopeData||{},onScopeChange:F.onScopeChange,openSections:$,setOpenSections:ii,stationOptions:G.stationOptions||[],tierOptions:G.tierOptions||[],tierLabel:G.tierLabel||"Where should this apply?",stationLabel:G.stationLabel||"Which scope should this belong to?",highlights:(null===(I=G.highlights)||void 0===I?void 0:I.get("scope"))||{},isOpen:X.scope,onToggle:function(){return ei("scope")},showCognitiveIcon:!!(null===(f=k.citation)||void 0===f?void 0:f.scope),cognitiveIcon:t(r,{}),tooltipDescription:"Why this Scope?",errorMessage:(null===(E=G.validationErrors)||void 0===E?void 0:E.station)||(null===(b=G.validationErrors)||void 0===b?void 0:b.tiers),stationErrorMessage:null===(y=G.validationErrors)||void 0===y?void 0:y.station,tierErrorMessage:null===(A=G.validationErrors)||void 0===A?void 0:A.tiers,readOnly:oi("base-scope")}),(null===(S=k.citation)||void 0===S?void 0:S.scope)&&t("div",i({style:ni},{children:t(a,{isVisible:X.scope,citation:k.citation.scope,citations:ti("scope"),fieldName:"Scope",fieldValue:(null===(T=null===(C=k.scopeData)||void 0===C?void 0:C.tiers)||void 0===T?void 0:T.join(", "))||""})}))]})),Q.afterScope&&t("div",i({className:"custom-slot"},{children:Q.afterScope})),e("div",i({className:"template-section"},{children:[t(o,{id:"base-description",title:G.descriptionLabel||"Description",fieldName:G.descriptionLabel||"Description",rows:3,placeholder:"Explain the behaviour or learning",required:!0,value:k.description||"",onChange:F.onDescriptionChange,readOnly:oi("base-description"),isOpen:X.description,onToggle:function(){return ei("description")},isHighlighted:(null===(N=G.highlights)||void 0===N?void 0:N.get("description"))||!1,showCognitiveIcon:!!(null===(w=k.citation)||void 0===w?void 0:w.description),tooltipDescription:"Why this ".concat(G.descriptionLabel||"Description","?"),errorMessage:null===(W=G.validationErrors)||void 0===W?void 0:W.description,enableInlineEdit:!0,setSendMessageInChat:G.setSendMessageInChat,activeEditId:null!==(L=G.activeEditId)&&void 0!==L?L:null,setActiveEditId:G.setActiveEditId,pendingEditId:null!==(O=G.pendingEditId)&&void 0!==O?O:null,setPendingEditId:G.setPendingEditId}),(null===(D=k.citation)||void 0===D?void 0:D.description)&&t("div",i({style:ni},{children:t(a,{isVisible:X.description,citation:k.citation.description,citations:ti("description"),fieldName:G.descriptionLabel||"Description",fieldValue:k.description||""})}))]})),Q.afterDescription&&t("div",i({className:"custom-slot"},{children:Q.afterDescription})),t("div",i({className:"template-section"},{children:t(l,{id:"condition-wta-base",idPrefix:"condition-wta",title:G.whenToApplyLabel||"When to apply",required:!0,dividerRequired:!0,readOnly:oi("condition-wta"),conditions:k.whenToApplyConditions||[],onAdd:F.onAddWhenToApply,onRemove:function(i,e,t){return F.onRemoveWhenToApply(t)},onEdit:function(i,e,t,n){return F.onEditWhenToApply(t,n)},isHighlighted:(null===(M=G.highlights)||void 0===M?void 0:M.get("wta"))||!1,highlightedIds:G.highlightedIds,tooltipDescription:"Why this Condition?",citations:ti("whenToApply"),bordered:!0,addLabel:"Add ".concat(G.whenToApplyLabel||"When to apply"),isAiStreaming:G.isAiStreaming,errorMessage:(null===(x=G.validationErrors)||void 0===x?void 0:x.whenToApply)||G.conflictReason,index:0,tierKey:"base",activeEditId:null!==(P=G.activeEditId)&&void 0!==P?P:null,setActiveEditId:G.setActiveEditId,pendingEditId:null!==(R=G.pendingEditId)&&void 0!==R?R:null,setPendingEditId:G.setPendingEditId,setSendMessageInChat:G.setSendMessageInChat})})),Q.afterWhenToApply&&t("div",i({className:"custom-slot"},{children:Q.afterWhenToApply})),t("div",i({className:"template-section"},{children:t(l,{id:"condition-wnta-base",idPrefix:"condition-wnta",title:G.whenNotToApplyLabel||"When NOT to apply",required:!1,dividerRequired:!0,readOnly:oi("condition-wnta"),conditions:k.whenNotToApplyConditions||[],onAdd:F.onAddWhenNotToApply,onRemove:function(i,e,t){return F.onRemoveWhenToApply(t)},onEdit:function(i,e,t,n){return F.onEditWhenNotToApply(t,n)},isHighlighted:(null===(j=G.highlights)||void 0===j?void 0:j.get("wnta"))||!1,highlightedIds:G.highlightedIds,tooltipDescription:"Why this Condition?",citations:ti("whenNotToApply"),bordered:!0,addLabel:"Add ".concat(G.whenNotToApplyLabel||"When NOT to apply"),isAiStreaming:G.isAiStreaming,errorMessage:null===(q=G.validationErrors)||void 0===q?void 0:q.whenNotToApply,index:0,tierKey:"base",activeEditId:null!==(V=G.activeEditId)&&void 0!==V?V:null,setActiveEditId:G.setActiveEditId,pendingEditId:null!==(H=G.pendingEditId)&&void 0!==H?H:null,setPendingEditId:G.setPendingEditId,setSendMessageInChat:G.setSendMessageInChat})})),Q.afterWhenNotToApply&&t("div",i({className:"custom-slot"},{children:Q.afterWhenNotToApply})),G.showConfiguration&&e("div",i({className:"template-section"},{children:[t(s,{id:"base-config",title:G.configLabel||"Configuration",required:!1,highlights:(null===(K=G.highlights)||void 0===K?void 0:K.get("config"))||{},bordered:!0,readOnly:oi("base-config"),onConfigChange:function(i,e){var t;return null===(t=F.onConfigChange)||void 0===t?void 0:t.call(F,i,e)},separationItems:G.separationItems||[],toggles:G.toggles||[],index:0,openSections:$,setOpenSections:ii,activeEditId:null!==(z=G.activeEditId)&&void 0!==z?z:null,setActiveEditId:G.setActiveEditId,pendingEditId:null!==(B=G.pendingEditId)&&void 0!==B?B:null,setPendingEditId:G.setPendingEditId,isAiStreaming:G.isAiStreaming,setSendMessageInChat:G.setSendMessageInChat}),(null===(_=k.citation)||void 0===_?void 0:_.config)&&t("div",i({style:ni},{children:t(a,{isVisible:X.config,citation:k.citation.config,citations:ti("config"),fieldName:G.configLabel||"Configuration",fieldValue:"Proposed Configuration"})}))]})),Q.bottom&&t("div",i({className:"custom-slot-bottom"},{children:Q.bottom}))]}))};export{c as BaseTemplate};
|
|
2
|
+
//# sourceMappingURL=BaseTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTemplate.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as n,jsxs as i,Fragment as o}from"react/jsx-runtime";import r,{useState as l,useRef as a,useEffect as d,useCallback as c,useMemo as s}from"react";import{Loader2Icon as p,Check as u,X as f,Pencil as h,Trash2 as g,ChevronUp as y,ChevronDown as x,ArrowLeft as m,Sparkles as b,Plus as v}from"lucide-react";var w=0,C=function(){return"cond-".concat(Date.now(),"-").concat(++w)},F="#CBD5E1",k="#9B8AFB",S="#7C3AED",z="#FDA29B",D="#344054",E="#1E293B",A="#334155",B="#64748B",R="#94A3B8",T="#98A2B3",I="#F04438",W="#8F2C23",H="#5925DC",j="#475569",L="#FFFFFF",M="#F8FAFC",N="#F1F5F9",_="#F9F5FF",O="#17B26A",K="#F04438",q="#64748B",U="6px",Y="8px",P="Inter, sans-serif",X={width:38,height:38,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #D0D5DD",borderRadius:U,cursor:"pointer",background:L,flexShrink:0,transition:"background 0.15s"},V={width:"100%",boxSizing:"border-box",padding:"8px 11.5px",border:"1px solid #D0D5DD",borderRadius:U,fontSize:14,fontWeight:400,lineHeight:"100%",fontFamily:P,outline:"none",color:D,background:L},Z={display:"flex",alignItems:"center",gap:4,marginBottom:8,color:D,fontSize:14,fontWeight:500,lineHeight:"130%",fontFamily:P},G={background:L,border:"1px solid ".concat(F),borderRadius:Y,padding:16},J=n("span",e({style:{color:W,fontSize:12,lineHeight:1,display:"inline-flex",transform:"translateY(0.5px)"}},{children:"*"})),Q={exact_match:{label:"Exact Match",bg:"#F0FDF4",border:"#BBF7D0",text:"#166534",dot:"#22C55E"},conflict:{label:"Conflict",bg:"#FEF2F2",border:"#FECACA",text:"#991B1B",dot:"#EF4444"},partial_overlap:{label:"Partial Match",bg:"#FFF7ED",border:"#FED7AA",text:"#92400E",dot:"#F97316"},new_field:{label:"New",bg:"#F5F3FF",border:"#DDD6FE",text:"#5925DC",dot:"#7C3AED"}},$=function(e){return e?Array.isArray(e)?e.filter(Boolean).join("\n"):e:""},ee=function(e,t){if(!t&&!e)return"exact_match";if(!t)return"new_field";if(!e)return"new_field";var n=function(e){return e.trim().toLowerCase()};if(n(e)===n(t))return"exact_match";var i=new Set(n(e).split(/\s+/)),o=new Set(n(t).split(/\s+/));return Array.from(i).filter(function(e){return o.has(e)}).length/Math.max(i.size,o.size)>=.45?"partial_overlap":"conflict"},te=function(t){var o=t.relation,r=Q[o];return i("div",e({style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 9px",borderRadius:20,background:r.bg,border:"1px solid ".concat(r.border),fontSize:10,fontWeight:600,color:r.text,fontFamily:P,whiteSpace:"nowrap",flexShrink:0}},{children:[n("span",{style:{width:5,height:5,borderRadius:"50%",background:r.dot,flexShrink:0}}),r.label]}))},ne=r.forwardRef(function(t,o){var r=t.label,l=t.value;return i("div",e({ref:o,style:{display:"flex",flexDirection:"column"}},{children:[n("p",e({style:{margin:"0 0 5px 0",fontSize:12,color:B,fontFamily:P}},{children:r})),n("div",e({style:{flex:1,padding:"9px 12px",borderRadius:Y,background:"#FFF3F2",border:"1px solid ".concat("#FECACA"),fontSize:13,lineHeight:"150%",color:l?E:R,fontFamily:P,fontStyle:l?"normal":"italic",wordBreak:"break-word",whiteSpace:"pre-wrap",minHeight:37}},{children:l||"—"}))]}))});ne.displayName="FieldCell";var ie=function(t){var r=t.formData,p=t.existingData,u=t.onClose,f=t.visible,h=r.whenToApply.map(function(e){return e.text}).filter(Boolean).join("\n"),g=r.whenNotToApply.map(function(e){return e.text}).filter(Boolean).join("\n"),y=$(p.whenToApply),x=$(p.whenNotToApply),v=s(function(){return[{label:"Title",proposed:r.name,existing:p.name||"",relation:ee(r.name,p.name||"")},{label:"Description",proposed:r.description,existing:p.description||"",relation:ee(r.description,p.description||"")},{label:"When to apply",proposed:h,existing:y,relation:ee(h,y)},{label:"When NOT to Apply",proposed:g,existing:x,relation:g?ee(g,x):x?"new_field":"exact_match"}]},[r.name,r.description,h,g,p.name,p.description,y,x]),w=v.reduce(function(e,t){return e[t.relation]=(e[t.relation]||0)+1,e},{}),C=a(null),k=a([]),S=a([]),z=l([]),D=z[0],B=z[1];k.current=[],S.current=[];var R=c(function(){if(C.current){var e=C.current.getBoundingClientRect(),t=[];v.forEach(function(n,i){var o=k.current[i],r=S.current[i];if(o&&r){o.style.height="auto",r.style.height="auto";var l=o.getBoundingClientRect(),a=r.getBoundingClientRect(),d=Math.max(l.height,a.height);o.style.height="".concat(d,"px"),r.style.height="".concat(d,"px");var c=o.getBoundingClientRect(),s=r.getBoundingClientRect(),p=c.top+c.height/2-e.top;t.push({x1:c.right-e.left,y1:p,x2:s.left-e.left,y2:p,relation:n.relation})}}),B(t)}},[v]);return d(function(){var e=setTimeout(R,150);window.addEventListener("resize",R);var t=null;return C.current&&(t=new ResizeObserver(function(){window.requestAnimationFrame(function(){return R()})})).observe(C.current),function(){clearTimeout(e),window.removeEventListener("resize",R),t&&t.disconnect()}},[R,f]),i(o,{children:[n("div",{onClick:u,style:{position:"absolute",inset:0,background:"rgba(15,23,42,0.18)",zIndex:10,opacity:f?1:0,transition:"opacity 0.25s ease",pointerEvents:f?"auto":"none"}}),i("div",e({style:{position:"absolute",inset:0,background:L,zIndex:11,display:"flex",flexDirection:"column",transform:f?"translateX(0)":"translateX(100%)",transition:"transform 0.28s cubic-bezier(0.4,0,0.2,1)",borderRadius:Y,overflow:"hidden"}},{children:[i("div",e({style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",borderBottom:"1px solid ".concat(F),flexShrink:0,background:L}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[n("button",e({type:"button",onClick:u,style:e(e({},X),{width:32,height:32,border:"1px solid ".concat(F),borderRadius:U})},{children:n(m,{size:15,color:A})})),n("span",e({style:{fontSize:15,fontWeight:600,color:E,fontFamily:P,letterSpacing:"-0.01em"}},{children:"Category Comparison"}))]})),n("div",e({style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"}},{children:Object.entries(w).map(function(t){var o=t[0],r=t[1];return i("div",e({style:{display:"flex",alignItems:"center",gap:4,padding:"3px 10px",borderRadius:20,background:Q[o].bg,border:"1px solid ".concat(Q[o].border),fontSize:11,fontWeight:600,color:Q[o].text,fontFamily:P}},{children:[n("span",{style:{width:5,height:5,borderRadius:"50%",background:Q[o].dot}}),r," ",Q[o].label]}),o)})}))]})),n("div",e({style:{flex:1,overflowY:"auto",padding:16}},{children:i("div",e({ref:C,style:{display:"grid",gridTemplateColumns:"1fr 140px 1fr",alignItems:"start",gap:"0",position:"relative"}},{children:[n("svg",e({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:D.map(function(t,o){var r=(t.x1+t.x2)/2,l=t.y1,a=Q[t.relation];return i("g",{children:[n("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:a.border,strokeWidth:"1.5"}),n("foreignObject",e({x:r-70,y:l-14,width:"140",height:"28"},{children:n("div",e({style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:n(te,{relation:t.relation})}))}))]},o)})})),i("div",e({style:{border:"1.5px dashed #CBD5E1",borderRadius:10,padding:14,display:"flex",flexDirection:"column",gap:14}},{children:[n("p",e({style:{margin:"0 0 2px 0",fontSize:13,fontWeight:600,color:E,fontFamily:P}},{children:"Category You're Creating"})),v.map(function(e,t){return n(ne,{ref:function(e){k.current[t]=e},label:e.label,value:e.proposed},t)})]})),n("div",{}),i("div",e({style:{border:"1.5px dashed #CBD5E1",borderRadius:10,padding:14,display:"flex",flexDirection:"column",gap:14}},{children:[i("p",e({style:{margin:"0 0 2px 0",fontSize:13,fontWeight:600,color:H,fontFamily:P,display:"flex",alignItems:"center",gap:5}},{children:[n(b,{size:13,color:H}),"Existing Category"]})),v.map(function(e,t){return n(ne,{ref:function(e){S.current[t]=e},label:e.label,value:e.existing},t)})]}))]}))}))]}))]})},oe=function(t){var r=t.condition,l=t.index,a=t.isEditing,d=t.editText,c=t.onEditStart,s=t.onEditChange,p=t.onEditSave,y=t.onEditCancel,x=t.onRemove,m=t.readOnly,b=t.onBlurContainer,v={width:40,height:38,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:M,borderRight:"1px solid #D0D5DD",color:j,fontSize:14,fontFamily:P};return i("div",a?e({style:{display:"flex",alignItems:"center",gap:12},onBlur:b},{children:[i("div",e({style:{display:"flex",flex:1,alignItems:"center",background:L,border:"1px solid ".concat(k),borderRadius:Y,overflow:"hidden"}},{children:[n("div",e({style:v},{children:l+1})),n("input",{type:"text",value:d,onChange:function(e){return s(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Enter"===e.key&&d.trim()?p():"Escape"===e.key&&y()},style:{flex:1,padding:"8px 11.5px",fontSize:14,fontFamily:P,color:D,border:"none",outline:"none",background:"transparent"}})]})),n("button",e({type:"button",disabled:!d.trim(),onClick:p,style:e(e({},X),{borderRadius:Y,opacity:d.trim()?1:.5,cursor:d.trim()?"pointer":"not-allowed",background:d.trim()?L:M})},{children:n(u,{size:18,color:O})})),n("button",e({type:"button",onClick:y,style:e(e({},X),{borderRadius:Y})},{children:n(f,{size:18,color:K})}))]}):e({style:{display:"flex",alignItems:"center",gap:12}},{children:[i("div",e({style:{display:"flex",flex:1,alignItems:"center",background:L,border:"1px solid #D0D5DD",borderRadius:Y,overflow:"hidden",height:38}},{children:[n("div",e({style:e(e({},v),{height:"100%"})},{children:l+1})),n("div",e({style:{flex:1,padding:"0 11.5px",fontSize:14,fontFamily:P,display:"flex",alignItems:"center",height:"100%"}},{children:r.text?n("span",e({style:{color:D}},{children:r.text})):n("span",e({style:{color:R}},{children:"Enter condition"}))}))]})),!m&&i(o,{children:[n("button",e({type:"button",onClick:c,style:e(e({},X),{border:"1px solid ".concat(F),borderRadius:Y})},{children:n(h,{size:16,color:q})})),n("button",e({type:"button",onClick:x,style:e(e({},X),{border:"1px solid ".concat(z),borderRadius:Y})},{children:n(g,{size:16,color:K})}))]})]}))},re=function(t){var r=t.title,l=t.required,a=t.isExpanded,d=t.setIsExpanded,c=t.conditions,s=t.prefix,p=t.editingCondKey,u=t.editingCondText,f=t.setEditingCondKey,h=t.setEditingCondText,g=t.onAdd,x=t.onUpdate,m=t.onRemove,b=t.addLabel,w=t.readOnly,C=t.errorMessage,k=t.style,S=c.length>0;return i("div",e({style:e({border:"1px solid ".concat(F),borderRadius:Y,padding:16},k)},{children:[i("div",e({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8,cursor:S?"pointer":"default",userSelect:"none"},onClick:function(){S&&d(function(e){return!e})}},{children:[i("label",e({style:e(e({},Z),{marginBottom:0,cursor:S?"pointer":"default"})},{children:[l&&J,n("span",{children:r})]})),n("button",e({type:"button",style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"flex",alignItems:"center",transform:a?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s"}},{children:n(y,{size:20,color:S?D:R})}))]})),a&&i(o,{children:[0===c.length&&n("p",e({style:{color:B,fontSize:14,fontStyle:"italic",fontWeight:300,fontFamily:P,margin:"0 0 12px 0"}},{children:"No conditions applied"})),n("div",e({style:{display:"flex",flexDirection:"column",gap:12,marginBottom:12}},{children:c.map(function(e,t){var i="".concat(s,"_").concat(e.id);return n(oe,{condition:e,index:t,isEditing:p===i,editText:u,onEditStart:function(){f(i),h(e.text)},onEditChange:h,onEditSave:function(){u.trim()&&(x(e.id,u),f(null))},onEditCancel:function(){e.text?f(null):m(e.id)},onRemove:function(){return m(e.id)},readOnly:w,onBlurContainer:function(t){return function(e,t,n){if(!e.currentTarget.contains(e.relatedTarget)){var i="".concat(s,"_").concat(t);u.trim()||n?u.trim()&&x(t,u):m(t),p===i&&f(null)}}(t,e.id,e.text)}},e.id)})})),!w&&i("button",e({type:"button",onClick:g,style:{display:"flex",alignItems:"center",gap:7,color:H,fontSize:14,fontWeight:500,fontFamily:P,background:"none",border:"none",cursor:"pointer",padding:0}},{children:[n(v,{size:16}),b]})),C&&n("p",e({style:{marginTop:8,color:I,fontSize:12,fontFamily:P,margin:"8px 0 0 0"}},{children:C}))]})]}))},le=function(r){var s=r.state,m=r.handlers,b=r.uiState,w=s.formData,k=s.nameLabel,W=void 0===k?"Category Name":k,M=s.namePlaceholder,Q=void 0===M?"Enter category name":M,$=m.setFormData,ee=b.readOnly,te=void 0!==ee&&ee,ne=b.isAiStreaming,oe=void 0!==ne&≠b.setActiveEditId,b.setSendMessageInChat;var le=b.validationErrors,ae=void 0===le?{}:le,de=b.addExampleBtnRef,ce=b.comparisonData,se=void 0===ce?null:ce,pe=b.onComparisonClose,ue=l(null),fe=ue[0],he=ue[1],ge=l(""),ye=ge[0],xe=ge[1],me=l(null),be=me[0],ve=me[1],we=l(""),Ce=we[0],Fe=we[1],ke=l(!0),Se=ke[0],ze=ke[1],De=l(!0),Ee=De[0],Ae=De[1],Be=l(null),Re=Be[0],Te=Be[1],Ie=l(""),We=Ie[0],He=Ie[1],je=l(""),Le=je[0],Me=je[1],Ne=l([]),_e=Ne[0],Oe=Ne[1],Ke=l(!1),qe=Ke[0],Ue=Ke[1],Ye=a(null),Pe=l(!1),Xe=Pe[0],Ve=Pe[1],Ze=a(oe);d(function(){se?requestAnimationFrame(function(){return Ue(!0)}):Ue(!1)},[se]),d(function(){Ze.current&&!oe&&Xe&&Ve(!1),Ze.current=oe},[oe,Xe]);var Ge=te,Je=c(function(t,n){return $(function(i){var o;return e(e({},i),((o={})[t]=n,o))})},[$]),Qe=function(n){var i=C();$(function(o){var r;return e(e({},o),((r={})[n]=t(t([],o[n],!0),[{id:i,text:""}],!1),r))}),ve("".concat("whenToApply"===n?"wta":"wnta","_").concat(i)),Fe(""),"whenToApply"!==n||Se||ze(!0),"whenNotToApply"!==n||Ee||Ae(!0)},$e=function(t,n,i){return $(function(o){var r;return e(e({},o),((r={})[t]=o[t].map(function(t){return t.id===n?e(e({},t),{text:i}):t}),r))})},et=function(t,n){return $(function(i){var o;return e(e({},i),((o={})[t]=i[t].filter(function(e){return e.id!==n}),o))})},tt=function(e){return Oe(function(n){return n.includes(e)?n.filter(function(t){return t!==e}):t(t([],n,!0),[e],!1)})},nt=c(function(){var n=C();$(function(i){return e(e({},i),{occurrences:t(t([],i.occurrences||[],!0),[{id:n,title:"",description:""}],!1)})}),Te(n),He(""),Me(""),Oe(function(e){return t(t([],e,!0),[n],!1)})},[$]),it=c(function(){Ue(!1),setTimeout(function(){null==pe||pe()},280)},[pe]),ot=function(t){return i("button",e({ref:t?void 0:de,type:"button",disabled:t,onClick:nt,style:{display:"flex",alignItems:"center",gap:7,padding:"7px 10.5px",background:"none",border:"none",cursor:t?"not-allowed":"pointer",opacity:t?.5:1,transition:"opacity 0.15s"}},{children:[n(v,{size:14,color:H}),n("span",e({style:{color:H,fontSize:14,fontWeight:500,fontFamily:P}},{children:"Add example"}))]}))};return i("div",e({style:{flex:1,overflowY:"auto",position:"relative"}},{children:[se&&n(ie,{formData:w,existingData:se,onClose:it,visible:qe}),Xe&&oe&&i("div",e({style:{display:"flex",alignItems:"center",color:"#141414",fontSize:13,fontWeight:500,fontStyle:"italic",marginBottom:12,paddingLeft:4,fontFamily:P}},{children:[n(p,{size:16,style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Updating category details..."]})),i("div",e({style:e(e({},G),{marginBottom:12})},{children:[i("div",e({style:{marginBottom:12}},{children:[i("label",e({style:Z},{children:[J,n("span",{children:W})]})),Ge&&"name"!==fe?n("div",e({style:{display:"flex",alignItems:"center",gap:12}},{children:n("div",e({style:{flex:1,padding:"10px 14px",border:"1px solid #D0D5DD",borderRadius:U,fontSize:14,background:L,minHeight:42,display:"flex",alignItems:"center"}},{children:w.name?n("span",e({style:{color:D}},{children:w.name})):n("span",e({style:{color:T}},{children:Q}))}))})):Ge&&"name"===fe?i("div",e({style:{display:"flex",alignItems:"center",gap:12}},{children:[n("input",{type:"text",value:ye,onChange:function(e){return xe(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Enter"===e.key?(Je("name",ye),he(null)):"Escape"===e.key&&he(null)},placeholder:Q,style:e(e({},V),{flex:1,width:"auto",border:"1px solid ".concat(S)})}),n("button",e({type:"button",onClick:function(){Je("name",ye),he(null)},style:X},{children:n(u,{size:18,color:O})})),n("button",e({type:"button",onClick:function(){return he(null)},style:X},{children:n(f,{size:18,color:K})}))]})):n("input",{type:"text",value:w.name,onChange:function(e){return Je("name",e.target.value)},placeholder:Q,disabled:oe,style:e(e({},V),{opacity:oe?.6:1,cursor:oe?"not-allowed":"text"})}),(null==ae?void 0:ae.name)&&n("p",e({style:{marginTop:4,color:I,fontSize:12,fontFamily:P,margin:"4px 0 0 0"}},{children:ae.name}))]})),i("div",e({style:{marginBottom:12}},{children:[i("label",e({style:Z},{children:[J,n("span",{children:"Category Description"})]})),Ge&&"description"!==fe?n("div",e({style:{display:"flex",alignItems:"flex-start",gap:12}},{children:n("div",e({style:{flex:1,padding:"12px 14px",border:"1px solid #D0D5DD",borderRadius:U,fontSize:14,background:L,minHeight:80}},{children:w.description?n("span",e({style:{color:D,whiteSpace:"pre-wrap"}},{children:w.description})):n("span",e({style:{color:T}},{children:"Describe when this category should be applied"}))}))})):Ge&&"description"===fe?i("div",e({style:{display:"flex",alignItems:"flex-start",gap:12}},{children:[n("textarea",{value:ye,onChange:function(e){return xe(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Escape"===e.key&&he(null)},placeholder:"Enter Description",rows:4,style:e(e({},V),{flex:1,width:"auto",border:"1px solid ".concat(S),resize:"none",lineHeight:"140%"})}),i("div",e({style:{display:"flex",flexDirection:"column",gap:8}},{children:[n("button",e({type:"button",onClick:function(){Je("description",ye),he(null)},style:X},{children:n(u,{size:18,color:O})})),n("button",e({type:"button",onClick:function(){return he(null)},style:X},{children:n(f,{size:18,color:K})}))]}))]})):n("textarea",{value:w.description,onChange:function(e){return Je("description",e.target.value)},placeholder:"Describe when this category should be applied.",disabled:oe,style:e(e({},V),{height:60,paddingTop:7,paddingBottom:10.5,border:"1px solid ".concat(F),lineHeight:"140%",resize:"none",boxShadow:"0 1px 2px 0 rgba(18,18,23,0.05)",opacity:oe?.6:1,cursor:oe?"not-allowed":"text"})}),(null==ae?void 0:ae.description)&&n("p",e({style:{marginTop:4,color:I,fontSize:12,fontFamily:P,margin:"4px 0 0 0"}},{children:ae.description}))]})),n(re,{title:"When to Apply",required:!0,isExpanded:Se,setIsExpanded:ze,conditions:w.whenToApply,prefix:"wta",editingCondKey:be,editingCondText:Ce,setEditingCondKey:ve,setEditingCondText:Fe,onAdd:function(){return Qe("whenToApply")},onUpdate:function(e,t){return $e("whenToApply",e,t)},onRemove:function(e){return et("whenToApply",e)},addLabel:"Add When to Apply",readOnly:oe||te,errorMessage:null==ae?void 0:ae.whenToApply,style:{marginBottom:12}}),n(re,{title:"When NOT to Apply",required:!1,isExpanded:Ee,setIsExpanded:Ae,conditions:w.whenNotToApply,prefix:"wnta",editingCondKey:be,editingCondText:Ce,setEditingCondKey:ve,setEditingCondText:Fe,onAdd:function(){return Qe("whenNotToApply")},onUpdate:function(e,t){return $e("whenNotToApply",e,t)},onRemove:function(e){return et("whenNotToApply",e)},addLabel:"Add When NOT to Apply",readOnly:oe||te,errorMessage:null==ae?void 0:ae.whenNotToApply})]})),i("div",e({style:e(e({},G),{marginTop:12})},{children:[i("div",e({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12}},{children:[i("div",{children:[i("h4",e({style:{color:E,fontSize:14,fontWeight:500,lineHeight:"120%",letterSpacing:"0.02em",fontFamily:P,margin:"0 0 4px 0"}},{children:["Example (",(w.occurrences||[]).length,")"]})),n("p",e({style:{color:B,fontSize:12,fontWeight:300,lineHeight:"120%",letterSpacing:"0.02em",fontFamily:P,margin:0}},{children:"Add real examples to help the system understand this category"}))]}),(w.occurrences||[]).length>0&&!te&&ot(null!==Re||oe)]})),0===(w.occurrences||[]).length?i("div",e({style:{border:"1px solid ".concat(F),borderRadius:Y,background:L,padding:"24px 12px 12px",minHeight:181,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"}},{children:[n("div",e({style:{marginBottom:16}},{children:i("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 56 56",fill:"none"},{children:[n("rect",{x:"4",y:"4",width:"48",height:"48",rx:"24",fill:"#F1F5F9"}),n("rect",{x:"4",y:"4",width:"48",height:"48",rx:"24",stroke:"#F8FAFC",strokeWidth:"8"}),n("rect",{width:"24",height:"24",transform:"translate(16 16)",fill:"#F1F5F9"}),n("path",{d:"M25 19.5V18M21.0607 21.0607L20 20M21.0607 29L20 30.0607M29 21.0607L30.0607 20M19.5 25H18M31.8645 32.1896L29.3727 36.817C29.0881 37.3457 28.9457 37.61 28.7745 37.6769C28.6259 37.7349 28.4585 37.7185 28.324 37.6328C28.1689 37.534 28.0806 37.2471 27.9038 36.6733L24.4452 25.4453C24.3008 24.9765 24.2286 24.7421 24.2867 24.5838C24.3373 24.446 24.446 24.3373 24.5838 24.2867C24.7421 24.2286 24.9765 24.3008 25.4452 24.4452L36.6732 27.9038C37.247 28.0806 37.5339 28.169 37.6327 28.324C37.7185 28.4586 37.7348 28.6259 37.6768 28.7745C37.61 28.9458 37.3456 29.0881 36.817 29.3728L32.1896 31.8645C32.111 31.9068 32.0717 31.9279 32.0374 31.9551C32.0068 31.9792 31.9792 32.0068 31.9551 32.0374C31.9279 32.0717 31.9068 32.111 31.8645 32.1896Z",stroke:"#475569",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))})),n("p",e({style:{color:A,fontSize:12,fontWeight:500,lineHeight:"120%",fontFamily:P,margin:"0 0 8px 0"}},{children:"No example added yet"})),n("p",e({style:{color:B,fontSize:14,fontWeight:300,lineHeight:"140%",fontFamily:P,margin:"0 0 8px 0",maxWidth:530}},{children:"Add an example to show how this category is used, or generate one using chat."})),!te&&ot(null!==Re||oe)]})):n("div",e({style:{display:"flex",flexDirection:"column",gap:12}},{children:(w.occurrences||[]).map(function(t,r){var l=_e.includes(t.id);return Re===t.id?i("div",e({style:{display:"flex",flexDirection:"column",gap:12,border:"1px solid ".concat(F),borderRadius:Y,background:L,padding:16,boxShadow:"0 1px 3px rgba(0,0,0,0.07)"}},{children:[i("div",{children:[n("label",e({style:e(e({},Z),{marginBottom:8})},{children:n("span",e({style:{color:A}},{children:"Title/Subject"}))})),n("input",{type:"text",value:We,onChange:function(e){return He(e.target.value)},placeholder:"e.g., Follow-up on client feedback from last meeting",style:e(e({},V),{border:"1px solid ".concat(F),lineHeight:"140%"})})]}),i("div",{children:[i("label",e({style:{display:"flex",alignItems:"center",gap:4,marginBottom:8}},{children:[n("span",e({style:{color:A,fontSize:14,fontWeight:500,fontFamily:P}},{children:"Message body"})),J]})),n("textarea",{ref:function(e){e&&Re===t.id&&!Ye.current&&(Ye.current=e),e&&(e.style.height="auto",e.style.height="".concat(e.scrollHeight,"px"))},value:Le,onChange:function(e){Me(e.target.value),e.target.style.height="auto",e.target.style.height="".concat(e.target.scrollHeight,"px")},placeholder:"e.g., Hi, here's the latest update on the project. Let us know if you have any questions.",rows:1,style:e(e({},V),{border:"1px solid ".concat(F),overflow:"hidden",minHeight:60,lineHeight:"140%",resize:"none"})})]}),i("div",e({style:{display:"flex",justifyContent:"flex-end",gap:12,marginTop:4}},{children:[n("button",e({type:"button",onClick:function(){t.title||t.description||$(function(n){return e(e({},n),{occurrences:(n.occurrences||[]).filter(function(e){return e.id!==t.id})})}),Te(null),Ye.current=null},style:{padding:"6px 12px",color:j,fontSize:14,fontWeight:500,lineHeight:"140%",fontFamily:P,background:"none",border:"none",cursor:"pointer",borderRadius:U}},{children:"Cancel"})),n("button",e({type:"button",disabled:!Le.trim(),onClick:function(){var n;Le.trim()&&(n=t.id,$(function(t){return e(e({},t),{occurrences:t.occurrences.map(function(t){return t.id===n?e(e({},t),{title:We,description:Le}):t})})}),Te(null),Ye.current=null,Oe(function(e){return e.filter(function(e){return e!==t.id})}))},style:{padding:"6px 12px",borderRadius:U,fontSize:14,fontWeight:500,lineHeight:"140%",fontFamily:P,cursor:Le.trim()?"pointer":"not-allowed",background:Le.trim()?_:L,border:"1px solid ".concat(Le.trim()?_:"#E2E8F0"),color:Le.trim()?H:R,transition:"background 0.15s"}},{children:"Save"}))]}))]}),t.id):i("div",e({style:{display:"flex",flexDirection:"column",border:"1px solid #E2E8F0",borderRadius:Y,background:L,overflow:"hidden",boxShadow:"0 1px 3px rgba(0,0,0,0.07)"}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:12,padding:12}},{children:[n("div",e({style:{width:20,height:20,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:N,borderRadius:U,color:j,fontSize:10,fontWeight:500,fontFamily:P}},{children:r+1})),n("div",e({style:{flex:1,fontSize:15,fontWeight:500,lineHeight:"140%",fontFamily:P,color:A,wordBreak:"break-word"}},{children:t.title||n("span",e({style:{color:R,fontWeight:400,fontSize:14}},{children:"Untitled example"}))})),i("div",e({style:{display:"flex",alignItems:"center",gap:8,flexShrink:0}},{children:[!te&&i(o,{children:[n("button",e({type:"button",disabled:null!==Re||oe,onClick:function(){Te(t.id),He(t.title),Me(t.description),l||tt(t.id)},style:e(e({},X),{width:36,height:36,border:"1px solid #E2E8F0",borderRadius:U,opacity:null!==Re||oe?.5:1,cursor:null!==Re||oe?"not-allowed":"pointer"})},{children:n(h,{size:16,color:q})})),n("button",e({type:"button",disabled:null!==Re||oe,onClick:function(){return $(function(n){return e(e({},n),{occurrences:(n.occurrences||[]).filter(function(e){return e.id!==t.id})})})},style:e(e({},X),{width:36,height:36,border:"1px solid ".concat(z),borderRadius:U,opacity:null!==Re||oe?.5:1,cursor:null!==Re||oe?"not-allowed":"pointer"})},{children:n(g,{size:16,color:K})}))]}),n("button",e({type:"button",onClick:function(){return tt(t.id)},style:e(e({},X),{width:36,height:36,border:"none",background:"transparent"})},{children:n(l?y:x,{size:20,color:q})}))]}))]})),l&&i("div",e({style:{display:"flex",flexDirection:"column",padding:"4px 12px 16px"}},{children:[i("div",e({style:{marginBottom:12}},{children:[n("p",e({style:{color:B,fontSize:13,lineHeight:"140%",fontFamily:P,margin:"0 0 4px 0"}},{children:"Title/Subject:"})),n("p",e({style:{color:E,fontSize:14,fontWeight:300,lineHeight:"150%",fontFamily:P,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0}},{children:t.title||n("span",e({style:{color:R,fontStyle:"italic"}},{children:"—"}))}))]})),i("div",{children:[n("p",e({style:{color:B,fontSize:13,lineHeight:"140%",fontFamily:P,margin:"0 0 4px 0"}},{children:"Message body:"})),n("p",e({style:{color:E,fontSize:14,fontWeight:300,lineHeight:"150%",fontFamily:P,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0}},{children:t.description}))]})]}))]}),t.id)})}))]}))]}))};export{le as CreateCategory,le as default};
|
|
2
|
+
//# sourceMappingURL=CreateCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateCategory.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useState as t}from"react";import{ConditionSection as o}from"../../organisms/ConditionSection/ConditionSection.js";import{TextSection as l}from"../../organisms/TextSection/TextSection.js";var r=function(r){var d,s,u,a=r.state,p=r.handlers,h=r.uiState,g=(null==h?void 0:h.highlights)||{},c=t({}),v=c[0],y=c[1],m=function(e){y(function(n){var t;return i(i({},n),((t={})[e]=!n[e],t))})},A=function(i){var e,n=null===(e=a.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(n)&&n.length>0?n:a.citations};return e("div",i({className:"simple-guideline-template"},{children:n("div",i({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[e(l,i({id:"guideline-title",title:"Guideline Title",rows:1,placeholder:"Enter a short, descriptive title for the guideline",required:!0,value:a.guidelineTitle,onChange:p.setGuidelineTitle,readOnly:null==h?void 0:h.isAiStreaming,isOpen:v.guidelineTitle,onToggle:function(){return m("guidelineTitle")},isHighlighted:g.guidelineTitle||!1,tooltipDescription:"Why this Title?",errorMessage:null===(d=null==h?void 0:h.validationErrors)||void 0===d?void 0:d.guidelineTitle},h)),e(l,i({id:"guideline-description",title:"Guideline Description",rows:4,placeholder:"Describe what this guideline enforces or ensures",required:!0,value:a.guidelineDescription,onChange:p.setGuidelineDescription,readOnly:null==h?void 0:h.isAiStreaming,isOpen:v.guidelineDescription,onToggle:function(){return m("guidelineDescription")},isHighlighted:g.guidelineDescription||!1,tooltipDescription:"Why this Description?",errorMessage:null===(s=null==h?void 0:h.validationErrors)||void 0===s?void 0:s.guidelineDescription},h)),e(o,i({id:"when-to-apply",title:"When to apply",required:!0,dividerRequired:!0,readOnly:null==h?void 0:h.isAiStreaming,conditions:a.whenToApplyConditions||[],onAdd:function(){return p.addWhenToApply()},onRemove:function(i,e,n){return p.removeWhenToApply(n)},onEdit:function(i,e,n,t){return p.editWhenToApply(n,t)},index:0,tierKey:"default",isHighlighted:g.wta||!1,highlightedIds:null==h?void 0:h.highlightedIds,tooltipDescription:"Why this Condition?",citations:A("whenToApply"),bordered:!0,addLabel:"Add When to apply",isAiStreaming:null==h?void 0:h.isAiStreaming,errorMessage:null===(u=null==h?void 0:h.validationErrors)||void 0===u?void 0:u.whenToApply},h)),e(o,i({id:"when-not-to-apply",title:"When NOT to apply",required:!1,dividerRequired:!0,readOnly:null==h?void 0:h.isAiStreaming,conditions:a.whenNotToApplyConditions||[],onAdd:function(){return p.addWhenNotToApply()},onRemove:function(i,e,n){return p.removeWhenNotToApply(n)},onEdit:function(i,e,n,t){return p.editWhenNotToApply(n,t)},index:0,tierKey:"default",isHighlighted:g.wnta||!1,highlightedIds:null==h?void 0:h.highlightedIds,tooltipDescription:"Why this Condition?",citations:A("whenNotToApply"),bordered:!0,addLabel:"Add When NOT to apply",isAiStreaming:null==h?void 0:h.isAiStreaming},h))]}))}))};export{r as WorkflowComposer};
|
|
2
|
+
//# sourceMappingURL=WorkflowComposer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowComposer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__spreadArray as t,__assign as e}from"tslib";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useState as r,useEffect as c}from"react";import{Check as a,Eye as l,X as o}from"lucide-react";import d from"./Cart.styles.js";function s(t){try{var e=new Date(t),n=e.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),i=e.toLocaleDateString("en-GB").replace(/\//g,"/");return"Added on - ".concat(n," | ").concat(i)}catch(e){return t}}function h(h){var u=h.items,m=h.onRemove,p=h.onProceed,f=r(new Set),g=f[0],y=f[1];c(function(){1!==u.length?y(function(e){var n=new Set(u.map(function(t){return t.instant_learning_id})),i=new Set(t([],e,!0).filter(function(t){return n.has(t)}));return i.size===e.size?e:i}):y(new Set([u[0].instant_learning_id]))},[u]);var v=u.filter(function(t){return g.has(t.instant_learning_id)});return n("section",e({style:d.cartSection},{children:[n("div",e({style:d.cartHeaderRow},{children:[i("p",e({style:d.cartTitle},{children:"Guideline Cart"})),n("span",e({style:d.cartBadge},{children:[u.length," Added"]}))]})),i("p",e({style:d.cartDescription},{children:u.length>1?"Click items to select them for this session":"Selected for this session"})),i("div",e({style:d.cartBody},{children:i("div",e({style:d.cartList},{children:0===u.length?i("div",e({style:d.emptyState},{children:"No guidelines added yet"})):u.map(function(t){var r=g.has(t.instant_learning_id);return n("div",e({style:r?d.cartItemSelected:d.cartItem,onClick:function(){return e=t.instant_learning_id,void y(function(t){var n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});var e}},{children:[n("div",e({style:d.cartItemTop},{children:[n("div",e({style:d.cartItemTopLeft},{children:[i("span",e({style:r?d.cartCheckbox:d.cartCheckboxEmpty},{children:r&&i(a,{size:12,strokeWidth:3})})),i("p",e({style:d.cartItemName},{children:t.instant_learning_title}))]})),n("div",e({style:d.cartItemIcons},{children:[i(l,{size:16,strokeWidth:2}),i("button",e({type:"button",style:d.removeBtn,onClick:function(e){return function(t,e){t.stopPropagation(),y(function(t){if(!t.has(e))return t;var n=new Set(t);return n.delete(e),n}),m(e)}(e,t.instant_learning_id)}},{children:i(o,{size:16,strokeWidth:2})}))]}))]})),i("p",e({style:d.cartItemDescription},{children:t.instant_learning_description})),i("p",e({style:d.cartItemDate},{children:s(t.created_at)}))]}),t.instant_learning_id)})}))})),i("button",e({type:"button",style:v.length>0?d.proceedButton:d.proceedButtonDisabled,disabled:0===v.length,onClick:function(){return v.length>0&&p(v)}},{children:n("span",{children:["Proceed with Selected",v.length>1?" (".concat(v.length,")"):""]})}))]}))}export{h as Cart,h as default};
|
|
2
|
+
//# sourceMappingURL=Cart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cart.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={cartSection:{display:"flex",width:"100%",flexDirection:"column",borderRadius:12,border:"1px solid #5B2CF4",background:"#F5F1FF",padding:28,fontFamily:"Inter, sans-serif",boxShadow:"0 1px 4px rgba(16,24,40,0.04)"},cartHeaderRow:{display:"flex",alignItems:"center",gap:12},cartTitle:{fontSize:18,fontWeight:700,color:"#1F2937",margin:0},cartBadge:{display:"inline-flex",height:24,alignItems:"center",borderRadius:9999,background:"#EDE7FF",padding:"0 12px",fontSize:12,fontWeight:600,color:"#5B2CF4",whiteSpace:"nowrap"},cartDescription:{marginTop:4,fontSize:13,color:"#667085"},cartBody:{marginTop:24,minHeight:280,flex:"1 1 0%",overflow:"hidden"},cartList:{maxHeight:420,overflowY:"auto",paddingRight:8,display:"flex",flexDirection:"column",gap:16},emptyState:{display:"flex",alignItems:"center",justifyContent:"center",height:120,fontSize:14,color:"#98A2B3"},cartItem:{display:"flex",flexDirection:"column",borderRadius:10,border:"1px solid #EAECF0",background:"#ffffff",padding:16,cursor:"pointer"},cartItemSelected:{display:"flex",flexDirection:"column",borderRadius:10,border:"2px solid #4438F5",background:"#F5F3FF",padding:16,cursor:"pointer"},cartItemTop:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:8},cartItemTopLeft:{display:"flex",alignItems:"center",gap:8,minWidth:0},cartCheckbox:{display:"inline-flex",height:18,width:18,flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:4,background:"#4438F5",color:"#ffffff"},cartCheckboxEmpty:{display:"inline-flex",height:18,width:18,flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:4,border:"2px solid #D0D5DD",background:"#ffffff"},cartItemName:{fontSize:14,fontWeight:600,color:"#1F2937",margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},cartItemIcons:{display:"flex",alignItems:"center",gap:10,flexShrink:0,color:"#98A2B3"},cartItemDescription:{marginTop:8,fontSize:13,color:"#667085"},cartItemDate:{marginTop:8,fontSize:12,color:"#98A2B3"},proceedButton:{marginTop:24,display:"inline-flex",height:44,width:"100%",alignItems:"center",justifyContent:"center",gap:8,borderRadius:6,background:"#4438F5",fontSize:15,fontWeight:600,color:"#ffffff",border:"none",boxShadow:"0 1px 2px rgba(16,24,40,0.08)",cursor:"pointer"},proceedButtonDisabled:{marginTop:24,display:"inline-flex",height:44,width:"100%",alignItems:"center",justifyContent:"center",gap:8,borderRadius:6,background:"#C4C9D4",fontSize:15,fontWeight:600,color:"#ffffff",border:"none",cursor:"not-allowed"},removeBtn:{background:"none",border:"none",padding:0,cursor:"pointer",display:"flex",alignItems:"center",color:"#98A2B3"}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=Cart.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cart.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{BookOpen as i,Eye as n,MoreVertical as o,UserCheck as d,Compass as c,Check as l,Plus as s}from"lucide-react";import a from"./GuidelineCard.styles.js";function u(t){try{var e=new Date(t),r=e.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),i=e.toLocaleDateString("en-GB").replace(/\//g,"/");return"Added on - ".concat(r," | ").concat(i)}catch(e){return t}}function h(h){var p=h.guideline,y=h.inCart,f=h.onToggleCart,m=h.onExplore;return e("div",t({style:a.card},{children:[e("div",t({style:a.cardTop},{children:[e("div",t({style:a.cardTopLeft},{children:[r(i,{size:18,strokeWidth:2,color:"#6D5BFF"}),r("p",t({style:a.cardTitle},{children:p.instant_learning_title}))]})),e("div",t({style:a.cardTopIcons},{children:[r(n,{size:16,strokeWidth:2}),r(o,{size:16,strokeWidth:2}),r(d,{size:16,strokeWidth:2})]}))]})),r("p",t({style:a.cardDescription},{children:p.instant_learning_description})),r("p",t({style:a.cardDate},{children:u(p.created_at)})),e("div",t({style:a.cardActionsRow},{children:[e("button",t({type:"button",style:a.exploreButton,onClick:function(){return null==m?void 0:m(p)}},{children:[r(c,{size:15,strokeWidth:2.4}),r("span",{children:"Explore"})]})),e("button",y?t({type:"button",style:a.cardAddedButton,onClick:function(){return f(p)}},{children:[r(l,{size:16,strokeWidth:2.4}),r("span",{children:"Selected"})]}):t({type:"button",style:a.cardAddButton,onClick:function(){return f(p)}},{children:[r(s,{size:16,strokeWidth:2.4}),r("span",{children:"Select"})]}))]}))]}))}export{h as GuidelineCard,h as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={card:{display:"flex",flexDirection:"column",borderRadius:10,border:"1px solid #EAECF0",background:"#ffffff",padding:20,boxShadow:"0 1px 2px rgba(16,24,40,0.04)"},cardTop:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:8},cardTopLeft:{display:"flex",alignItems:"center",gap:8,minWidth:0},cardTitle:{fontSize:15,fontWeight:600,lineHeight:"24px",color:"#1F2937",margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cardTopIcons:{display:"flex",alignItems:"center",gap:10,flexShrink:0,color:"#98A2B3"},cardDescription:{marginTop:8,fontSize:13,lineHeight:"19px",color:"#667085",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},cardDate:{marginTop:12,fontSize:12,color:"#98A2B3"},cardActions:{marginTop:16},cardAddButton:{display:"inline-flex",height:36,flex:1,alignItems:"center",justifyContent:"center",gap:8,borderRadius:6,border:"1px solid #4438F5",background:"#ffffff",fontSize:13,fontWeight:600,color:"#4438F5",cursor:"pointer"},cardAddedButton:{display:"inline-flex",height:36,flex:1,alignItems:"center",justifyContent:"center",gap:8,borderRadius:6,border:"1px solid #EAE7FF",background:"#EDE9FE",fontSize:13,fontWeight:600,color:"#4438F5",cursor:"pointer"},exploreButton:{display:"inline-flex",height:36,flex:1,alignItems:"center",justifyContent:"center",gap:6,borderRadius:6,border:"1px solid #D0D5DD",background:"#ffffff",fontSize:13,fontWeight:600,color:"#344054",cursor:"pointer"},cardActionsRow:{display:"flex",gap:8,marginTop:16}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=GuidelineCard.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineCard.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|