@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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("@mui/material"),a=require("@mui/material/Tooltip"),s=require("react-markdown"),i=require("rehype-raw"),o=require("../../../../api/transport.js"),l=require("uuid"),u=require("@e-llm-studio/streaming-response"),d=require("@e-llm-studio/watch-me-work"),c=require("./ChatHeader.js"),v=require("../MessageRendering/MessageRendering.js"),g=require("../atoms/SkeletonLoader/SkeletonLoader.js"),h=require("../MessageRendering/ClickableChatComponents.js"),f=require("../AudioWaveform.js"),m=require("./ChatComponent.module.css.js"),p=require("../../InstantLearning.module.css.js"),_=require("../_svg/ScrollToBottom.js"),C=require("../../helpers/utils.js"),x=require("../_svg/SendButton.js"),y=require("../_svg/SparkleIcon.js"),S=require("../_svg/UserIcon.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w,k=b(a),j=b(s),I=b(i);exports.autoGeneratePrompt=function(e,t){return o.http.post("".concat(e||"https://devllmstudio.creativeworkspace.ai","/api/chat/chatResponse"),{name:"ilggcautopromptgen",organizationName:"techolution",prompt:t||"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})},exports.default=function(a){var s=a.chatAssistantName,i=a.organizationName,b=a.baseUrl,E=a.baseWebsocketUrl,T=a.setIsNewChatClicked;a.ThinkingBulbIconComponent;var R=a.isFormSaveClicked,M=a.setIsFormSavedClicked,q=a.onResetLearningData,A=a.sendMessageInChat,D=a.setSendMessageInChat,N=a.isFormValidating,F=a.chatTitle,L=a.customMetaData,W=a.headerMessageHandlers;a.aiResponse;var P=a.setAIResponse,B=a.onResetChat,z=a.initialChatMessage,O=void 0===z?"":z,H=a.onSave,U=a.chatSize,G=a.setChatSize,Z=a.movingTowards,K=a.setCitations,V=a.textareaPlaceholder,Q=void 0===V?"Tell me more about this learning...":V,J=a.setCurrentRequestId,$=a.showSavedMessage,X=void 0!==$&&$,Y=a.savedMessage,ee=a.isError,te=void 0!==ee&&ee,ne=a.errorMessage,re=void 0===ne?"There was an error saving your changes.":ne;a.isSaving;var ae=a.isHighlighted,se=void 0!==ae&&ae,ie=a.onStreamingStateChange,oe=a.onViewComparison;a.isCopyEnabled;var le=a.onComparisonLinkClick,ue=a.onSubmitFeedback,de=a.userDetails,ce=a.isGlobalEditActive,ve=a.socketTimeOutInMilliSeconds,ge=a.initialDraftMessage,he=void 0===ge?"":ge,fe=a.onValidateSession,me=a.onCloseSessionModal,pe=a.fieldLabelMap,_e=a.enableChatLogs,Ce=void 0!==_e&&_e,xe=s,ye=n.useRef("".concat(xe,"-").concat(i,"-").concat(l.v4())),Se=n.useRef("".concat(l.v4())),be=b,we=n.useRef(null),ke=n.useRef(!0),je=n.useRef(null),Ie=n.useRef(null),Ee=n.useState(he),Te=Ee[0],Re=Ee[1],Me=n.useState([]),qe=Me[0],Ae=Me[1],De=n.useState(!1),Ne=De[0],Fe=De[1],Le=n.useState(!1);Le[0];var We=Le[1],Pe=n.useState(!0),Be=Pe[0],ze=Pe[1],Oe=n.useState(!0);Oe[0];var He=Oe[1],Ue=n.useState("");Ue[0];var Ge=Ue[1],Ze=n.useState(""),Ke=Ze[0],Ve=Ze[1],Qe=n.useState(!1),Je=Qe[0],$e=Qe[1],Xe=n.useState(!1),Ye=Xe[0],et=Xe[1],tt=n.useState(!0),nt=tt[0],rt=tt[1],at=n.useState("100%");at[0];var st=at[1],it=n.useState(null),ot=it[0],lt=it[1],ut=n.useState(!1);ut[0];var dt=ut[1],ct=n.useState(!1),vt=ct[0],gt=ct[1],ht=n.useRef(null),ft=n.useRef(new Set),mt=n.useState(null),pt=mt[0],_t=mt[1],Ct=n.useState(!1),xt=Ct[0],yt=Ct[1],St=n.useState(!1);St[0],St[1];var bt=n.useState(null);bt[0],bt[1],n.useRef(null),n.useRef(null);var wt=n.useRef(new Map),kt=n.useRef(""),jt=n.useRef(new Set),It=n.useRef(new Map),Et=n.useRef(!1),Tt=n.useRef(0),Rt=n.useRef(new Map),Mt=n.useRef(null),qt=n.useState(!1),At=qt[0],Dt=qt[1];r.keyframes(w||(w=e.__makeTemplateObject(["\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 Nt=n.useMemo(function(){return""===(null==Te?void 0:Te.trim())||Je},[Te,Je]),Ft=n.useMemo(function(){return N},[N]),Lt=n.useMemo(function(){var e;return qe.length>0&&"user"===(null===(e=qe[qe.length-1])||void 0===e?void 0:e.role)},[qe]),Wt=n.useMemo(function(){return Nt||N||!!ce||Lt},[Nt,N,ce,Lt]);n.useEffect(function(){he&&!Te&&(Re(he),et(!0),setTimeout(function(){if(Ie.current){Ie.current.focus();var e=he.length;Ie.current.setSelectionRange(e,e)}},400))},[he]),n.useEffect(function(){null==ie||ie(Je)},[Je,ie]),n.useEffect(function(){return function(){Rt.current.forEach(function(e){return clearTimeout(e)}),Rt.current.clear()}},[]),n.useEffect(function(){var e=we.current,t=function(){if(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;rt(n-t-r<=20)}};return e&&(e.addEventListener("scroll",t),t()),function(){e&&e.removeEventListener("scroll",t)}},[qe]);var Pt=C.useHeaderObserver({handlers:W,setResult:P}).processHeaderMessage;n.useEffect(function(){X&>(!0)},[X]),n.useEffect(function(){if(xt){var e=setTimeout(function(){yt(!1)},3e3);return function(){return clearTimeout(e)}}},[xt]),n.useEffect(function(){R&&!ce&&(Vt(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save this Learning"),M(!1))},[R]),n.useEffect(function(){if(A)try{if(A.startsWith("__SKELETON__:")){var t=A.split(":"),n=t[1],r=t.slice(2).join(":"),a={role:"user",content:"",id:n,time:new Date,isSkeleton:!0,skeletonContent:r};return Ae(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[a],!1)}),Vt(new KeyboardEvent("keydown",{key:"Enter"}),!1,r,!1,n),_t(n),D&&D(""),void setTimeout(function(){_t(null)},2e3)}if(A.startsWith("__SKELETON_END__::")){var s=A.split("::")[1]||"";return Ae(function(t){return t.map(function(t){return t.isSkeleton?e.__assign(e.__assign({},t),{isSkeleton:!1,content:t.skeletonContent||s}):t})}),void(D&&D(""))}var i=l.v4();Vt(new KeyboardEvent("keydown",{key:"Enter"}),!1,A,!1,i),_t(i),D&&D(""),setTimeout(function(){return _t(null)},2e3)}catch(e){console.error("Error handling sendMessageInChat signal",e)}},[A]),n.useEffect(function(){zt(),Ot();var e=function(){var e,t=(null===(e=null==ht?void 0:ht.current)||void 0===e?void 0:e.clientHeight)||0,n="calc(100% - ".concat(t,"px - 10px)");st(n)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var Bt=n.useCallback(function(e){var t="string"==typeof e?e:"smooth";je.current&&je.current.scrollIntoView({behavior:t,block:"end"}),ke.current&&setTimeout(function(){je.current&&ke.current&&je.current.scrollIntoView({behavior:t,block:"end"})},100)},[]);n.useEffect(function(){if(!Je){var t="";if(vt?t=Y||"Thank you teacher for teaching me, your rule has been saved successfully.":te&&(t=re||"I'm sorry, I couldn't save your changes. Please try again."),t){var n={role:"assistant",content:t,id:l.v4(),citations:[],time:new Date};Ae(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)}),gt(!1),setTimeout(function(){return Bt("smooth")},100)}}},[vt,te,Je,Y,re,Bt]),n.useEffect(function(){ke.current&&Bt("smooth")},[Bt]);var zt=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(be,"/api/chatbot/getChatSettings?name=").concat(xe,"&organizationName=").concat(i),headers:{}};o.http.request(e).then(function(e){var t,n,r;(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.chatSettings)&&""!==(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)||void 0===r?void 0:r.chatInitialMessage)&&He(!0)}).catch(function(e){console.error(e)})},Ot=function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n;return e.__generator(this,function(e){t="".concat(be,"/api/chat/history?name=").concat(xe,"&organizationName=").concat(i);try{n={method:"GET",params:{guestSessionId:ye.current},withCredentials:!0},o.http.get(t,n).then(function(e){var t=e.data;t.length>0?(Ae(t),Bt()):He(!0)}).catch(function(e){console.error(e)})}catch(e){Fe(!1),console.error(e)}return[2]})})},Ht=function(){var e="".concat(be,"/api/chat/resetHistory?name=").concat(xe,"&organizationName=").concat(i);try{var t={method:"GET",params:{guestSessionId:ye.current},withCredentials:!0};o.http.get(e,t).then(function(){T(!0),Ge(""),lt(null),ft.current.clear(),It.current.clear(),Se.current="".concat(l.v4()),Ae([]),He(!0),Mt.current=null,null==B||B(),q&&q()}).catch(function(e){console.error(e)}).finally(function(){ye.current="".concat(xe,"-").concat(i,"-").concat(l.v4())})}catch(e){Fe(!1),console.error(e)}};function Ut(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var Gt=function(t,n,r,a,s,i,o){var u,d,c,v,g,h,f,m,p,_,C,x,y,S,b,w,k,j,I,E,T,R,M,q,A,D,N,F,L,W;if(null===(d=null===(u=null==t?void 0:t.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===d?void 0:d.header_message){var P={header_message:t.chatStream.continueChatResult.header_message,responsedata:null===(g=null===(v=null===(c=null==t?void 0:t.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===v?void 0:v.message)||void 0===g?void 0:g.content};Pt(P)}var B=null===(h=null==t?void 0:t.chatStream)||void 0===h?void 0:h.continueChatResult,z=null==B?void 0:B.isEnd,O=(null===(f=null==B?void 0:B.message)||void 0===f?void 0:f.citations)||[];z&&O.length>0&&K&&K(O);var H={role:"assistant",content:"",id:l.v4()};if(null===(C=null===(_=null===(p=null===(m=null==t?void 0:t.chatStream)||void 0===m?void 0:m.continueChatResult)||void 0===p?void 0:p.message)||void 0===_?void 0:_.content)||void 0===C?void 0:C.includes("WaitMessage: "))We(!0),H.content=function(e){var t="WaitMessage: ",n=e.indexOf(t);if(-1!==n){var r=e.substring(n+13);return null==r?void 0:r.replaceAll("WaitMessage: ","")}return""}((null===(S=null===(y=null===(x=null==t?void 0:t.chatStream)||void 0===x?void 0:x.continueChatResult)||void 0===y?void 0:y.message)||void 0===S?void 0:S.content)+"\n\n"),""!==H.content&&(Fe(!1),Ae(e.__spreadArray(e.__spreadArray([],qe,!0),[{role:"user",content:s,time:a,isFirstQuestionSent:i||!1,id:o||(null===(w=null===(b=null==t?void 0:t.chatStream)||void 0===b?void 0:b.continueChatResult)||void 0===w?void 0:w.requestId)||"",reply:""},H],!1)));else{We(!1);var U=null===(j=null===(k=null==t?void 0:t.chatStream)||void 0===k?void 0:k.continueChatResult)||void 0===j?void 0:j.requestId;"string"==typeof U&&U&&J&&J(U);var G=function(t,n,r,a){var s,i,o,u,d,c,v,g={role:"assistant",content:"",id:l.v4(),time:new Date,citations:[]},h=(null===(s=null==t?void 0:t.chatStream)||void 0===s?void 0:s.continueChatResult)||{},f=null==h?void 0:h.requestId,m=null==h?void 0:h.preserve_message,p=null==h?void 0:h.isEnd,_=(null===(i=null==h?void 0:h.message)||void 0===i?void 0:i.content)||"",C=null==h?void 0:h.is_orchestrator,x=null==h?void 0:h.thinking_break,y=(null===(o=null==h?void 0:h.message)||void 0===o?void 0:o.citations)||[];if(f&&m&&_&&!p){var S=a.current.get(f)||[];S[S.length-1]!==_&&(S.push(_),a.current.set(f,S))}var b=(f&&a.current.get(f)||[]).join("\n\n"),w="";if(p)w=b&&""!==b.trim()?b:_;else if(m)w=b;else{var k=_.replace(/<!--(?![\s\S]*-->)[\s\S]*$/,"").trimEnd(),j=!1===C||x||0!==y.length?"":k;w=b?"".concat(b,"\n\n").concat(j):j}if(g.content=Ut(w),!0===(null==h?void 0:h.thinking_break)&&!0===(null==h?void 0:h.is_orchestrator)&&!1===(null==h?void 0:h.isEnd)&&n.push({responsedata:_,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 I=h.explainability_id,E=h.responded_by;r.has(I)||r.set(I,{responded_by:E,index:n.length})}r.has(h.explainability_id)?n[null==(T=r.get(h.explainability_id))?void 0:T.index]={responsedata:_,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!0,explainability_id:null!==(u=h.explainability_id)&&void 0!==u?u:"",isParallelToolResponse:!0}:n=e.__spreadArray(e.__spreadArray([],n,!0),[{responsedata:_,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 T;h.explainability_id&&h.responded_by&&(I=h.explainability_id,E=h.responded_by,r.has(I)||r.set(I,{responded_by:E,index:n.length})),r.has(h.explainability_id)?n[null==(T=r.get(h.explainability_id))?void 0:T.index]={responsedata:_,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!1,explainability_id:null!==(c=h.explainability_id)&&void 0!==c?c:"",isParallelToolResponse:!0}:n.push({responsedata:_,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 e.__assign({orchestratorAndAgentsMessages:n},g)}(t,r,n,It);G.time=new Date,G.citations=O,G.isEnd=null===(E=null===(I=null==t?void 0:t.chatStream)||void 0===I?void 0:I.continueChatResult)||void 0===E?void 0:E.isEnd,G.requestId=null===(R=null===(T=null==t?void 0:t.chatStream)||void 0===T?void 0:T.continueChatResult)||void 0===R?void 0:R.requestId,G.sessionId=ye.current,null===(M=G.orchestratorAndAgentsMessages)||void 0===M||M.forEach(function(e){e&&e.header_message&&Pt(e)}),(""!==(null==G?void 0:G.content)||(null==G?void 0:G.orchestratorAndAgentsMessages)&&(null==G?void 0:G.orchestratorAndAgentsMessages.length)>0)&&(Fe(!1),Ae(e.__spreadArray(e.__spreadArray([],qe,!0),[{role:"user",content:s||"",time:a,isFirstQuestionSent:i||!1,id:o||(null===(A=null===(q=null==t?void 0:t.chatStream)||void 0===q?void 0:q.continueChatResult)||void 0===A?void 0:A.requestId)||"",requestId:null!==(F=null===(N=null===(D=null==t?void 0:t.chatStream)||void 0===D?void 0:D.continueChatResult)||void 0===N?void 0:N.requestId)&&void 0!==F?F:""},G],!1))),ze(null===(W=null===(L=null==t?void 0:t.chatStream)||void 0===L?void 0:L.continueChatResult)||void 0===W?void 0:W.isEnd)}},Zt=n.useCallback(function(t,n){void 0===n&&(n="inactivity"),console.error("🛑 Stream failed or timed out due to:reason=".concat(n," requestId=").concat(t," at ").concat((new Date).toISOString()));var r=Rt.current.get(t);r&&(clearTimeout(r),Rt.current.delete(t)),t&&E&&(u.stopStreaming(t,E,!1),It.current.delete(t)),t===kt.current?(Et.current=!1,ze(!0),$e(!1),dt(!1),Fe(!1),We(!1),Ae(function(t){var r=e.__spreadArray([],t,!0).reverse().find(function(e){return"user"===e.role}),a=((null==r?void 0:r.content)||"").replace(/"/g,"""),s=e.__spreadArray([],t,!0),i=s[s.length-1];i&&"assistant"===i.role&&!i.isEnd&&s.pop();var o="I ran into an unexpected issue while trying to process this learning.";return"inactivity"===n?o="Something went wrong—teaching is taking longer than expected.":"websocket_error"===n&&(o="I lost connection to the server while working on that."),e.__spreadArray(e.__spreadArray([],s,!0),[{role:"assistant",content:"".concat(o,' Please try again.\n\n<button class="clickable-button" data-value="').concat(a,'">Retry</button>'),id:l.v4(),time:new Date,isEnd:!0,citations:[]}],!1)})):console.warn("🛑 [handleStreamTimeout] Ignoring stale timeout for superseded requestId=".concat(t,"; active=").concat(kt.current))},[ve,E]),Kt=n.useCallback(function(e){var t=Rt.current.get(e);if(t&&clearTimeout(t),ve&&ve>0){console.log("⏱️ [Timeout armed] requestId=".concat(e," timeout=").concat(ve,"ms at ").concat((new Date).toISOString()));var n=setTimeout(function(){console.warn("⏱️ [Timeout FIRED — auto stop] requestId=".concat(e," at ").concat((new Date).toISOString())),Zt(e,"inactivity")},ve);Rt.current.set(e,n)}},[Zt,ve]),Vt=function(t,n,r,a,s,o){return e.__awaiter(void 0,void 0,void 0,function(){var a,d,c,v,g,h,f,m,p,_,C,x,y,S,b,w;return e.__generator(this,function(k){switch(k.label){case 0:if(a=(void 0!==r?r:Te||"").trim(),(d="Enter"===(null==t?void 0:t.key)&&!(null==t?void 0:t.shiftKey)&&!ce)&&(null===(C=null==t?void 0:t.preventDefault)||void 0===C||C.call(t)),c="user"===(null===(x=qe[qe.length-1])||void 0===x?void 0:x.role),!a||Je||Et.current||c||(null==t?void 0:t.key)&&!d)return[2];if(Mt.current||(Mt.current=(new Date).toISOString(),console.log("Session start time set to ".concat(Mt.current))),!fe)return[3,5];Fe(!0),Ve("Validating session..."),k.label=1;case 1:return k.trys.push([1,3,,4]),[4,fe(Mt.current)];case 2:return k.sent()?[3,4]:(Dt(!0),Fe(!1),o&&o(!1),[2]);case 3:return v=k.sent(),console.error("Validation error:",v),Dt(!0),Fe(!1),o&&o(!1),[2];case 4:Fe(!1),k.label=5;case 5:return Et.current=!0,"I want to add a rule description"===a?(ze(!1),ke.current=!0,$e(!0),!ot&&a&<(r||"manual_entry"),g=new Date,Ae(function(t){return e.__spreadArray(e.__spreadArray([],t.map(function(t,n){var r;return e.__assign(e.__assign({},t),{content:null===(r=Ut(t.content))||void 0===r?void 0:r.replace("WaitMessage: ","")})}),!0),[{role:"user",content:a,time:g,isFirstQuestionSent:!1,id:s||l.v4()}],!1)}),Bt("smooth"),setTimeout(function(){Ae(function(t){return e.__spreadArray(e.__spreadArray([],t,!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:l.v4(),citations:[],time:new Date}],!1)}),Bt("smooth"),setTimeout(function(){$e(!1),ze(!0)},500)},500),[2]):(ze(!1),ke.current=!0,$e(!0),!ot&&a&<(r||"manual_entry"),h=new Date,Ae(function(t){var n=t.map(function(t){var n;return e.__assign(e.__assign({},t),{content:null===(n=Ut(t.content))||void 0===n?void 0:n.replace("WaitMessage: ","")})});return s&&n.some(function(e){return e.id===s})?n.map(function(t){return t.id===s?e.__assign(e.__assign({},t),{content:a}):t}):e.__spreadArray(e.__spreadArray([],n,!0),[{role:"user",content:a,time:h,isFirstQuestionSent:!1,id:s||l.v4()}],!1)}),Bt("smooth"),f=new Map,m=[],p=function(e){var t;if(!e)return{};var n=Object.keys(e);return 1===n.length&&"current"===n[0]?null!==(t=e.current)&&void 0!==t?t:{}:e},_={WEBSOCKET_URL:E,organizationName:i,chatAssistantName:xe,selectedAIModel:"gpt-4",replyMessage:"",userName:null!==(y=null==de?void 0:de.name)&&void 0!==y?y:"Guest User",userEmailId:null!==(S=null==de?void 0:de.email)&&void 0!==S?S:"guestUser@example.com",userId:null!==(b=null==de?void 0:de.id)&&void 0!==b?b:"Guest User",query:a,requestId:"requestId-".concat(l.v4()),customPrompt:"",enableForBackend:!1,guestSessionId:ye.current,chatPreviewId:Se.current,customMetaData:p(L),aiModel:"",enableLogs:!0,logControls:{infoLogs:Ce,debugLogs:Ce},onStreamEvent:function(e){var t,r,i,o,l,u,d=null===(r=null===(t=null==e?void 0:e.chatStream)||void 0===t?void 0:t.continueChatResult)||void 0===r?void 0:r.requestId,c=null===(o=null===(i=null==e?void 0:e.chatStream)||void 0===i?void 0:i.continueChatResult)||void 0===o?void 0:o.header_message;console.log("📦 [Stream Chunk Received] With RequestID and header_message: ".concat(d,",").concat(c)),Kt(_.requestId);var v=null===(u=null===(l=null==e?void 0:e.chatStream)||void 0===l?void 0:l.continueChatResult)||void 0===u?void 0:u.error_state;if(Array.isArray(v)&&v.length>0)return console.error("⚠️ Agent returned an error_state during stream:",{requestId:d,errorState:v}),void Zt(_.requestId,"agent_error");Gt(e,f,m,h,a,n,s)},onStreamEnd:function(t){var n,r,a=null===(r=null===(n=null==t?void 0:t.chatStream)||void 0===n?void 0:n.continueChatResult)||void 0===r?void 0:r.requestId;jt.current.add(_.requestId),console.log("✅ [Stream Completed] RequestID: ".concat(a));var s=Rt.current.get(_.requestId);s&&(clearTimeout(s),Rt.current.delete(_.requestId)),Et.current=!1,ze(!0),$e(!1),dt(!1);var i=Date.now(),o=wt.current.get(_.requestId);if(o){var l=Math.round((i-o)/1e3).toFixed(1);Ae(function(t){var n=e.__spreadArray([],t,!0).reverse().findIndex(function(e){return"assistant"===e.role});if(-1===n)return t;var r=t.length-1-n;return t.map(function(t,n){return n===r?e.__assign(e.__assign({},t),{finalTimeTaken:l}):t})})}},onError:function(e){var t=Rt.current.get(_.requestId);if(t&&(clearTimeout(t),Rt.current.delete(_.requestId)),jt.current.has(_.requestId))return console.warn("Ignoring post-completion error for already-finished request:",_.requestId),void jt.current.delete(_.requestId);console.error("Stream error:",e),Zt(_.requestId,"websocket_error")}},a&&(Fe(!0),null===(w=Ie.current)||void 0===w||w.blur(),Re(""),Bt(),Ve(s?"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."),wt.current.set(_.requestId,Date.now()),kt.current=_.requestId,console.log("Chat Stream Params:",_),Kt(_.requestId),Tt.current+=1,console.log("🚀 [UI Action] stream started (Total UI invocations: ".concat(Tt.current,") | RequestID: ").concat(_.requestId,' | Query: "').concat(a,'"')),u.startChatStream(_)),o&&o(!1),[2])}})})},Qt=n.useRef(null);n.useLayoutEffect(function(){Qt.current=Vt});var Jt=n.useCallback(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return null===(t=Qt.current)||void 0===t?void 0:t.call.apply(t,e.__spreadArray([Qt],n,!1))},[]),$t=n.useMemo(function(){return{p:function(n){n.node;var r=n.children;return e.__rest(n,["node","children"]),t.jsx("div",e.__assign({style:{margin:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"10px",fontFamily:"inherit"}},{children:r}))},button:function(n){n.node;var r=n.className,a=n.children,s=e.__rest(n,["node","className","children"]),i=C.extractTextFromChildren(a),o=s["data-value"],l=ot===i||ot===o,u=!!ot||!!ce,d="Tester Genie"===i;return t.jsx(h.ActionableButton,e.__assign({},s,{className:r,handleStream:Jt,isStreamEnd:Be,disabled:u,isLastMessage:!0,style:{margin:0},isTesterGenie:d,"data-selected":l?"true":ot?"false":void 0},{children:t.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[a,d&&t.jsxs("svg",e.__assign({width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"})]}))]}))}))}}},[Jt,Be,ot,ce]),Xt=n.useMemo(function(){return qe.some(function(e){return e.isSkeleton})},[qe]),Yt=function(t){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(n){switch(n.label){case 0:return ue?[4,ue(t)]:[3,2];case 1:n.sent(),Ae(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[{role:"assistant",content:"Thanks for your feedback — this will help improve future suggestions.",id:l.v4(),citations:[],time:new Date,isEnd:!0}],!1)}),setTimeout(function(){return Bt("smooth")},100),n.label=2;case 2:return[2]}})})};return t.jsxs("div",e.__assign({className:"".concat(p.default.customFont," ").concat(m.default.chatContainer),style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:se&&!Xt?"0 0 20px 5px rgba(37, 99, 235, 0.5)":"none"}},{children:[t.jsxs("div",e.__assign({ref:we,className:m.default.scrollWrapper},{children:[t.jsx("div",e.__assign({ref:ht,className:m.default.stickyHeader},{children:t.jsx(c.default,{resetChatHistory:Ht,isStreamEnd:Be,chatTitle:F,onResize:G,chatSize:U,movingTowards:Z})})),t.jsxs("div",e.__assign({className:m.default.messagesList},{children:[t.jsxs("div",e.__assign({className:m.default.initialMessageRow},{children:[t.jsx("div",e.__assign({className:m.default.iconWrapper},{children:t.jsx(y.default,{})})),t.jsx("div",e.__assign({className:m.default.welcomeTextWrapper},{children:t.jsx("div",e.__assign({className:m.default.welcomeMarkdownWrapper},{children:t.jsx("span",{children:t.jsx(j.default,e.__assign({rehypePlugins:[I.default],components:$t},{children:O}))})}))}))]})),qe.length>0&&qe.map(function(n,r){var a,s;return t.jsxs("div",e.__assign({className:m.default.messageRow},{children:["assistant"===n.role?t.jsx("div",e.__assign({className:m.default.assistantIconContainer},{children:t.jsx(y.default,{})})):t.jsx("div",{className:m.default.userSpacer}),t.jsx("div",e.__assign({className:m.default.messageContent},{children:"assistant"===n.role?t.jsxs(t.Fragment,{children:[n.orchestratorAndAgentsMessages&&n.orchestratorAndAgentsMessages.length>0&&t.jsx(d.WatchMeWork,{orchestratorAndAgentsMessages:null==n?void 0:n.orchestratorAndAgentsMessages,isStreamEnd:Be,finalTimeTaken:null==n?void 0:n.finalTimeTaken},null!==(a=null==n?void 0:n.finalTimeTaken)&&void 0!==a?a:null==n?void 0:n.id),t.jsx(v.default,{index:r,content:null==n?void 0:n.content,role:null==n?void 0:n.role,messages:qe,handleStream:Jt,isLastMessage:r===qe.length-1,onSave:H,citations:null==n?void 0:n.citations,setChatSize:G,chatSize:U,isStreamEnd:Be,messageIsEnd:null==n?void 0:n.isEnd,onViewComparison:oe,onTypeResponseClick:function(){var e;yt(!0),null===(e=Ie.current)||void 0===e||e.focus()},onComparisonLinkClick:le,baseURL:be,onFeedbackSubmit:Yt,isGlobalEditActive:ce,fieldLabelMap:pe}),n.hasOwnProperty("isEnd")&&!(null==n?void 0:n.isEnd)&&(null===(s=null==n?void 0:n.content)||void 0===s?void 0:s.length)>0&&t.jsxs(t.Fragment,{children:[t.jsx(g.Skeleton,{variant:"text",width:"50%",height:20}),t.jsx("div",{style:{marginTop:"10px"}}),t.jsx(g.Skeleton,{variant:"text",width:"100%",height:40})]}),t.jsx("div",e.__assign({className:m.default.timestamp},{children:n.time&&!isNaN(new Date(n.time).getTime())?new Date(n.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}):t.jsxs("div",e.__assign({className:m.default.userMessageWrapper},{children:[t.jsxs("div",e.__assign({className:m.default.userMessageBubble,style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:n.isSkeleton||Xt||n.id!==pt?"none":"0 0 15px 3px rgba(37, 99, 235, 0.6)"}},{children:[n.isSkeleton?t.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"12px",minWidth:"280px",padding:"8px 0"}},{children:[t.jsx(g.Skeleton,{variant:"text",width:"100%",height:16}),t.jsx(g.Skeleton,{variant:"text",width:"80%",height:16})]})):t.jsx(v.default,{index:r,content:null==n?void 0:n.content,role:null==n?void 0:n.role,messages:qe,handleStream:Jt,isLastMessage:r===qe.length-1,onSave:H,citations:null==n?void 0:n.citations,isStreamEnd:Be,isGlobalEditActive:ce,messageIsEnd:null==n?void 0:n.isEnd,onViewComparison:oe,onComparisonLinkClick:le,baseURL:be,onFeedbackSubmit:Yt,fieldLabelMap:pe}),t.jsx("div",e.__assign({style:{marginTop:"0.5rem"}},{children:t.jsx(S.UserIcon,{})}))]})),t.jsx("div",e.__assign({className:m.default.userTimestamp},{children:new Date(n.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}))}))]}),n.id)}),Ne&&t.jsxs("div",e.__assign({className:m.default.loadingRow},{children:[t.jsx("div",e.__assign({className:m.default.iconWrapper,style:{marginTop:"0.2rem"}},{children:t.jsx(y.default,{})})),t.jsx("div",e.__assign({className:m.default.loadingTextWrapper},{children:t.jsx("span",{children:Ke})}))]})),t.jsx("div",{ref:je,style:{float:"left",clear:"both"}})]}))]})),t.jsx("div",e.__assign({className:m.default.inputAreaWrapper},{children:t.jsx(k.default,e.__assign({title:N?"Please wait for the validation to be completed.":""},{children:t.jsxs("div",e.__assign({className:"".concat(m.default.inputBoxContainer," ").concat(Ft?m.default.disabled:""),style:xt?{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:[qe.length>0&&!nt&&t.jsx("div",e.__assign({onMouseDown:function(e){e.preventDefault(),Bt("smooth")},className:m.default.scrollToBottomBtn},{children:t.jsx(_.ScrollToBottom,{})})),t.jsxs("div",e.__assign({style:{width:"100%",display:"flex"}},{children:[t.jsx("textarea",{ref:Ie,placeholder:Q,value:Te||"",onChange:function(e){Re(e.target.value)},onFocus:function(){return et(!0)},onBlur:function(){return et(!1)},onKeyDown:function(e){return Vt(e)},disabled:Ft,className:"no-scrollbar ".concat(m.default.chatTextarea),style:{minHeight:Ye||Te&&Te.length>40?"120px":"50px",height:Ye||Te&&Te.length>40?"120px":"50px",maxHeight:"120px"}}),t.jsx("span",e.__assign({className:m.default.sendButtonWrapper},{children:t.jsx("button",e.__assign({onClick:function(e){Wt||Vt(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:Wt,className:"".concat(m.default.sendButton," ").concat(Wt?m.default.disabled:m.default.active)},{children:t.jsx(x.SendButton,{})}))}))]}))]}))}))})),t.jsxs("div",e.__assign({className:m.default.footerTools},{children:[t.jsx(k.default,e.__assign({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:t.jsx("span",e.__assign({className:m.default.footerToolItem},{children:t.jsx(f.default,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),t.jsx(k.default,e.__assign({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:t.jsx("span",e.__assign({className:m.default.footerToolItem},{children:t.jsx(f.default,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]})),t.jsx(r.Dialog,e.__assign({open:At,onClose:function(){},PaperProps:{sx:{borderRadius:"12px",padding:"8px",maxWidth:"400px",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-foreground, #0F172A)"}}},{children:t.jsxs(r.Box,e.__assign({sx:{p:3,textAlign:"center",fontFamily:"'Plus Jakarta Sans', sans-serif"}},{children:[t.jsx("h3",e.__assign({style:{fontSize:"18px",fontWeight:600,color:"var(--il-foreground, #0F172A)",marginBottom:"10px"}},{children:"Session Expired"})),t.jsx("p",e.__assign({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."})),t.jsxs(r.Box,e.__assign({sx:{display:"flex",gap:2,justifyContent:"center"}},{children:[t.jsx("button",e.__assign({onClick:function(){Dt(!1),Ht()},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"})),t.jsx("button",e.__assign({onClick:function(){Dt(!1),null==me||me()},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"}))]}))]}))}))]}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("@mui/material"),a=require("@mui/material/Tooltip"),s=require("react-markdown"),i=require("rehype-raw"),o=require("../../../../api/transport.js"),l=require("uuid"),u=require("@e-llm-studio/streaming-response"),d=require("@e-llm-studio/watch-me-work"),c=require("./ChatHeader.js"),v=require("../MessageRendering/MessageRendering.js"),g=require("../atoms/SkeletonLoader/SkeletonLoader.js"),h=require("../MessageRendering/ClickableChatComponents.js"),f=require("../AudioWaveform.js"),m=require("./ChatComponent.module.css.js"),p=require("../../InstantLearning.module.css.js"),_=require("../_svg/ScrollToBottom.js"),C=require("../../helpers/utils.js"),x=require("../_svg/SendButton.js"),y=require("../_svg/SparkleIcon.js"),S=require("../_svg/UserIcon.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w,k=b(a),j=b(s),I=b(i);exports.autoGeneratePrompt=function(e,t){return o.http.post("".concat(e||"https://devllmstudio.creativeworkspace.ai","/api/chat/chatResponse"),{name:"ilggcautopromptgen",organizationName:"techolution",prompt:t||"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})},exports.default=function(a){var s=a.chatAssistantName,i=a.organizationName,b=a.baseUrl,E=a.baseWebsocketUrl,T=a.setIsNewChatClicked;a.ThinkingBulbIconComponent;var R=a.isFormSaveClicked,M=a.setIsFormSavedClicked,q=a.onResetLearningData,A=a.sendMessageInChat,D=a.setSendMessageInChat,N=a.isFormValidating,F=a.chatTitle,L=a.customMetaData,W=a.headerMessageHandlers;a.aiResponse;var P=a.setAIResponse,B=a.onResetChat,z=a.initialChatMessage,O=void 0===z?"":z,H=a.onSave,U=a.chatSize,G=a.setChatSize,Z=a.movingTowards,K=a.setCitations,V=a.textareaPlaceholder,Q=void 0===V?"Tell me more about this learning...":V,J=a.setCurrentRequestId,$=a.showSavedMessage,X=void 0!==$&&$,Y=a.savedMessage,ee=a.isError,te=void 0!==ee&&ee,ne=a.errorMessage,re=void 0===ne?"There was an error saving your changes.":ne;a.isSaving;var ae=a.isHighlighted,se=void 0!==ae&&ae,ie=a.onStreamingStateChange,oe=a.onViewComparison;a.isCopyEnabled;var le=a.onComparisonLinkClick,ue=a.onSubmitFeedback,de=a.userDetails,ce=a.isGlobalEditActive,ve=a.socketTimeOutInMilliSeconds,ge=a.initialDraftMessage,he=void 0===ge?"":ge,fe=a.onValidateSession,me=a.onCloseSessionModal,pe=a.fieldLabelMap,_e=a.enableChatLogs,Ce=void 0!==_e&&_e,xe=s,ye=n.useRef("".concat(xe,"-").concat(i,"-").concat(l.v4())),Se=n.useRef("".concat(l.v4())),be=b,we=n.useRef(null),ke=n.useRef(!0),je=n.useRef(null),Ie=n.useRef(null),Ee=n.useState(he),Te=Ee[0],Re=Ee[1],Me=n.useState([]),qe=Me[0],Ae=Me[1],De=n.useState(!1),Ne=De[0],Fe=De[1],Le=n.useState(!1);Le[0];var We=Le[1],Pe=n.useState(!0),Be=Pe[0],ze=Pe[1],Oe=n.useState(!0);Oe[0];var He=Oe[1],Ue=n.useState("");Ue[0];var Ge=Ue[1],Ze=n.useState(""),Ke=Ze[0],Ve=Ze[1],Qe=n.useState(!1),Je=Qe[0],$e=Qe[1],Xe=n.useState(!1),Ye=Xe[0],et=Xe[1],tt=n.useState(!0),nt=tt[0],rt=tt[1],at=n.useState("100%");at[0];var st=at[1],it=n.useState(null),ot=it[0],lt=it[1],ut=n.useState(!1);ut[0];var dt=ut[1],ct=n.useState(!1),vt=ct[0],gt=ct[1],ht=n.useRef(null),ft=n.useRef(new Set),mt=n.useState(null),pt=mt[0],_t=mt[1],Ct=n.useState(!1),xt=Ct[0],yt=Ct[1],St=n.useState(!1);St[0],St[1];var bt=n.useState(null);bt[0],bt[1],n.useRef(null),n.useRef(null);var wt=n.useRef(new Map),kt=n.useRef(""),jt=n.useRef(new Set),It=n.useRef(0),Et=n.useRef(!0),Tt=n.useRef(new Map),Rt=n.useRef(!1),Mt=n.useRef(0),qt=n.useRef(new Map),At=n.useRef(null),Dt=n.useState(!1),Nt=Dt[0],Ft=Dt[1];r.keyframes(w||(w=e.__makeTemplateObject(["\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 Lt=n.useMemo(function(){return""===(null==Te?void 0:Te.trim())||Je},[Te,Je]),Wt=n.useMemo(function(){return N},[N]),Pt=n.useMemo(function(){var e;return qe.length>0&&"user"===(null===(e=qe[qe.length-1])||void 0===e?void 0:e.role)},[qe]),Bt=n.useMemo(function(){return Lt||N||!!ce||Pt},[Lt,N,ce,Pt]);n.useEffect(function(){he&&!Te&&(Re(he),et(!0),setTimeout(function(){if(Ie.current){Ie.current.focus();var e=he.length;Ie.current.setSelectionRange(e,e)}},400))},[he]),n.useEffect(function(){null==ie||ie(Je)},[Je,ie]),n.useEffect(function(){return Et.current=!0,function(){Et.current=!1,It.current+=1,qt.current.forEach(function(e){return clearTimeout(e)}),qt.current.clear(),kt.current&&E&&u.stopStreaming(kt.current,E,!1)}},[E]),n.useEffect(function(){var e=we.current,t=function(){if(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;rt(n-t-r<=20)}};return e&&(e.addEventListener("scroll",t),t()),function(){e&&e.removeEventListener("scroll",t)}},[qe]);var zt=C.useHeaderObserver({handlers:W,setResult:P}).processHeaderMessage;n.useEffect(function(){X&>(!0)},[X]),n.useEffect(function(){if(xt){var e=setTimeout(function(){yt(!1)},3e3);return function(){return clearTimeout(e)}}},[xt]),n.useEffect(function(){R&&!ce&&(Jt(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save this Learning"),M(!1))},[R]),n.useEffect(function(){if(A)try{if(A.startsWith("__SKELETON__:")){var t=A.split(":"),n=t[1],r=t.slice(2).join(":"),a={role:"user",content:"",id:n,time:new Date,isSkeleton:!0,skeletonContent:r};return Ae(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[a],!1)}),Jt(new KeyboardEvent("keydown",{key:"Enter"}),!1,r,!1,n),_t(n),D&&D(""),void setTimeout(function(){_t(null)},2e3)}if(A.startsWith("__SKELETON_END__::")){var s=A.split("::")[1]||"";return Ae(function(t){return t.map(function(t){return t.isSkeleton?e.__assign(e.__assign({},t),{isSkeleton:!1,content:t.skeletonContent||s}):t})}),void(D&&D(""))}var i=l.v4();Jt(new KeyboardEvent("keydown",{key:"Enter"}),!1,A,!1,i),_t(i),D&&D(""),setTimeout(function(){return _t(null)},2e3)}catch(e){console.error("Error handling sendMessageInChat signal",e)}},[A]),n.useEffect(function(){Ht(),Ut();var e=function(){var e,t=(null===(e=null==ht?void 0:ht.current)||void 0===e?void 0:e.clientHeight)||0,n="calc(100% - ".concat(t,"px - 10px)");st(n)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var Ot=n.useCallback(function(e){var t="string"==typeof e?e:"smooth";je.current&&je.current.scrollIntoView({behavior:t,block:"end"}),ke.current&&setTimeout(function(){je.current&&ke.current&&je.current.scrollIntoView({behavior:t,block:"end"})},100)},[]);n.useEffect(function(){if(!Je){var t="";if(vt?t=Y||"Thank you teacher for teaching me, your rule has been saved successfully.":te&&(t=re||"I'm sorry, I couldn't save your changes. Please try again."),t){var n={role:"assistant",content:t,id:l.v4(),citations:[],time:new Date};Ae(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)}),gt(!1),setTimeout(function(){return Ot("smooth")},100)}}},[vt,te,Je,Y,re,Ot]),n.useEffect(function(){ke.current&&Ot("smooth")},[Ot]);var Ht=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(be,"/api/chatbot/getChatSettings?name=").concat(xe,"&organizationName=").concat(i),headers:{}};o.http.request(e).then(function(e){var t,n,r;(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.chatSettings)&&""!==(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)||void 0===r?void 0:r.chatInitialMessage)&&He(!0)}).catch(function(e){console.error(e)})},Ut=function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n;return e.__generator(this,function(e){t="".concat(be,"/api/chat/history?name=").concat(xe,"&organizationName=").concat(i);try{n={method:"GET",params:{guestSessionId:ye.current},withCredentials:!0},o.http.get(t,n).then(function(e){var t=e.data;t.length>0?(Ae(t),Ot()):He(!0)}).catch(function(e){console.error(e)})}catch(e){Fe(!1),console.error(e)}return[2]})})},Gt=function(){var e="".concat(be,"/api/chat/resetHistory?name=").concat(xe,"&organizationName=").concat(i);try{var t={method:"GET",params:{guestSessionId:ye.current},withCredentials:!0};o.http.get(e,t).then(function(){T(!0),Ge(""),lt(null),ft.current.clear(),Tt.current.clear(),Se.current="".concat(l.v4()),Ae([]),He(!0),At.current=null,null==B||B(),q&&q()}).catch(function(e){console.error(e)}).finally(function(){ye.current="".concat(xe,"-").concat(i,"-").concat(l.v4())})}catch(e){Fe(!1),console.error(e)}};function Zt(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var Kt=function(t,n,r,a,s,i,o){var u,d,c,v,g,h,f,m,p,_,C,x,y,S,b,w,k,j,I,E,T,R,M,q,A,D,N,F,L,W;if(null===(d=null===(u=null==t?void 0:t.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===d?void 0:d.header_message){var P={header_message:t.chatStream.continueChatResult.header_message,responsedata:null===(g=null===(v=null===(c=null==t?void 0:t.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===v?void 0:v.message)||void 0===g?void 0:g.content};zt(P)}var B=null===(h=null==t?void 0:t.chatStream)||void 0===h?void 0:h.continueChatResult,z=null==B?void 0:B.isEnd,O=(null===(f=null==B?void 0:B.message)||void 0===f?void 0:f.citations)||[];z&&O.length>0&&K&&K(O);var H={role:"assistant",content:"",id:l.v4()};if(null===(C=null===(_=null===(p=null===(m=null==t?void 0:t.chatStream)||void 0===m?void 0:m.continueChatResult)||void 0===p?void 0:p.message)||void 0===_?void 0:_.content)||void 0===C?void 0:C.includes("WaitMessage: "))We(!0),H.content=function(e){var t="WaitMessage: ",n=e.indexOf(t);if(-1!==n){var r=e.substring(n+13);return null==r?void 0:r.replaceAll("WaitMessage: ","")}return""}((null===(S=null===(y=null===(x=null==t?void 0:t.chatStream)||void 0===x?void 0:x.continueChatResult)||void 0===y?void 0:y.message)||void 0===S?void 0:S.content)+"\n\n"),""!==H.content&&(Fe(!1),Ae(e.__spreadArray(e.__spreadArray([],qe,!0),[{role:"user",content:s,time:a,isFirstQuestionSent:i||!1,id:o||(null===(w=null===(b=null==t?void 0:t.chatStream)||void 0===b?void 0:b.continueChatResult)||void 0===w?void 0:w.requestId)||"",reply:""},H],!1)));else{We(!1);var U=null===(j=null===(k=null==t?void 0:t.chatStream)||void 0===k?void 0:k.continueChatResult)||void 0===j?void 0:j.requestId;"string"==typeof U&&U&&J&&J(U);var G=function(t,n,r,a){var s,i,o,u,d,c,v,g={role:"assistant",content:"",id:l.v4(),time:new Date,citations:[]},h=(null===(s=null==t?void 0:t.chatStream)||void 0===s?void 0:s.continueChatResult)||{},f=null==h?void 0:h.requestId,m=null==h?void 0:h.preserve_message,p=null==h?void 0:h.isEnd,_=(null===(i=null==h?void 0:h.message)||void 0===i?void 0:i.content)||"",C=null==h?void 0:h.is_orchestrator,x=null==h?void 0:h.thinking_break,y=(null===(o=null==h?void 0:h.message)||void 0===o?void 0:o.citations)||[];if(f&&m&&_&&!p){var S=a.current.get(f)||[];S[S.length-1]!==_&&(S.push(_),a.current.set(f,S))}var b=(f&&a.current.get(f)||[]).join("\n\n"),w="";if(p)w=b&&""!==b.trim()?b:_;else if(m)w=b;else{var k=_.replace(/<!--(?![\s\S]*-->)[\s\S]*$/,"").trimEnd(),j=!1===C||x||0!==y.length?"":k;w=b?"".concat(b,"\n\n").concat(j):j}if(g.content=Zt(w),!0===(null==h?void 0:h.thinking_break)&&!0===(null==h?void 0:h.is_orchestrator)&&!1===(null==h?void 0:h.isEnd)&&n.push({responsedata:_,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 I=h.explainability_id,E=h.responded_by;r.has(I)||r.set(I,{responded_by:E,index:n.length})}r.has(h.explainability_id)?n[null==(T=r.get(h.explainability_id))?void 0:T.index]={responsedata:_,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!0,explainability_id:null!==(u=h.explainability_id)&&void 0!==u?u:"",isParallelToolResponse:!0}:n=e.__spreadArray(e.__spreadArray([],n,!0),[{responsedata:_,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 T;h.explainability_id&&h.responded_by&&(I=h.explainability_id,E=h.responded_by,r.has(I)||r.set(I,{responded_by:E,index:n.length})),r.has(h.explainability_id)?n[null==(T=r.get(h.explainability_id))?void 0:T.index]={responsedata:_,responseFrom:h.responded_by,header_message:h.header_message,finalResponseStatus:!1,explainability_id:null!==(c=h.explainability_id)&&void 0!==c?c:"",isParallelToolResponse:!0}:n.push({responsedata:_,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 e.__assign({orchestratorAndAgentsMessages:n},g)}(t,r,n,Tt);G.time=new Date,G.citations=O,G.isEnd=null===(E=null===(I=null==t?void 0:t.chatStream)||void 0===I?void 0:I.continueChatResult)||void 0===E?void 0:E.isEnd,G.requestId=null===(R=null===(T=null==t?void 0:t.chatStream)||void 0===T?void 0:T.continueChatResult)||void 0===R?void 0:R.requestId,G.sessionId=ye.current,null===(M=G.orchestratorAndAgentsMessages)||void 0===M||M.forEach(function(e){e&&e.header_message&&zt(e)}),(""!==(null==G?void 0:G.content)||(null==G?void 0:G.orchestratorAndAgentsMessages)&&(null==G?void 0:G.orchestratorAndAgentsMessages.length)>0)&&(Fe(!1),Ae(e.__spreadArray(e.__spreadArray([],qe,!0),[{role:"user",content:s||"",time:a,isFirstQuestionSent:i||!1,id:o||(null===(A=null===(q=null==t?void 0:t.chatStream)||void 0===q?void 0:q.continueChatResult)||void 0===A?void 0:A.requestId)||"",requestId:null!==(F=null===(N=null===(D=null==t?void 0:t.chatStream)||void 0===D?void 0:D.continueChatResult)||void 0===N?void 0:N.requestId)&&void 0!==F?F:""},G],!1))),ze(null===(W=null===(L=null==t?void 0:t.chatStream)||void 0===L?void 0:L.continueChatResult)||void 0===W?void 0:W.isEnd)}},Vt=n.useCallback(function(t,n){void 0===n&&(n="inactivity"),console.error("🛑 Stream failed or timed out due to:reason=".concat(n," requestId=").concat(t," at ").concat((new Date).toISOString()));var r=qt.current.get(t);r&&(clearTimeout(r),qt.current.delete(t)),t&&E&&(u.stopStreaming(t,E,!1),Tt.current.delete(t)),t===kt.current?(Rt.current=!1,ze(!0),$e(!1),dt(!1),Fe(!1),We(!1),Ae(function(t){var r=e.__spreadArray([],t,!0).reverse().find(function(e){return"user"===e.role}),a=((null==r?void 0:r.content)||"").replace(/"/g,"""),s=e.__spreadArray([],t,!0),i=s[s.length-1];i&&"assistant"===i.role&&!i.isEnd&&s.pop();var o="I ran into an unexpected issue while trying to process this learning.";return"inactivity"===n?o="Something went wrong—teaching is taking longer than expected.":"websocket_error"===n&&(o="I lost connection to the server while working on that."),e.__spreadArray(e.__spreadArray([],s,!0),[{role:"assistant",content:"".concat(o,' Please try again.\n\n<button class="clickable-button" data-value="').concat(a,'">Retry</button>'),id:l.v4(),time:new Date,isEnd:!0,citations:[]}],!1)})):console.warn("🛑 [handleStreamTimeout] Ignoring stale timeout for superseded requestId=".concat(t,"; active=").concat(kt.current))},[ve,E]),Qt=n.useCallback(function(e){var t=qt.current.get(e);if(t&&clearTimeout(t),ve&&ve>0){console.log("⏱️ [Timeout armed] requestId=".concat(e," timeout=").concat(ve,"ms at ").concat((new Date).toISOString()));var n=setTimeout(function(){console.warn("⏱️ [Timeout FIRED — auto stop] requestId=".concat(e," at ").concat((new Date).toISOString())),Vt(e,"inactivity")},ve);qt.current.set(e,n)}},[Vt,ve]),Jt=function(t,n,r,a,s,o){return e.__awaiter(void 0,void 0,void 0,function(){var a,d,c,v,g,h,f,m,p,_,C,x,y,S,b,w,k;return e.__generator(this,function(j){switch(j.label){case 0:if(a=(void 0!==r?r:Te||"").trim(),(d="Enter"===(null==t?void 0:t.key)&&!(null==t?void 0:t.shiftKey)&&!ce)&&(null===(x=null==t?void 0:t.preventDefault)||void 0===x||x.call(t)),c="user"===(null===(y=qe[qe.length-1])||void 0===y?void 0:y.role),!a||Je||Rt.current||c||(null==t?void 0:t.key)&&!d)return[2];if(At.current||(At.current=(new Date).toISOString(),console.log("Session start time set to ".concat(At.current))),!fe)return[3,5];Fe(!0),Ve("Validating session..."),j.label=1;case 1:return j.trys.push([1,3,,4]),[4,fe(At.current)];case 2:return j.sent()?[3,4]:(Ft(!0),Fe(!1),o&&o(!1),[2]);case 3:return v=j.sent(),console.error("Validation error:",v),Ft(!0),Fe(!1),o&&o(!1),[2];case 4:Fe(!1),j.label=5;case 5:return Rt.current=!0,"I want to add a rule description"===a?(ze(!1),ke.current=!0,$e(!0),!ot&&a&<(r||"manual_entry"),g=new Date,Ae(function(t){return e.__spreadArray(e.__spreadArray([],t.map(function(t,n){var r;return e.__assign(e.__assign({},t),{content:null===(r=Zt(t.content))||void 0===r?void 0:r.replace("WaitMessage: ","")})}),!0),[{role:"user",content:a,time:g,isFirstQuestionSent:!1,id:s||l.v4()}],!1)}),Ot("smooth"),setTimeout(function(){Ae(function(t){return e.__spreadArray(e.__spreadArray([],t,!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:l.v4(),citations:[],time:new Date}],!1)}),Ot("smooth"),setTimeout(function(){$e(!1),ze(!0)},500)},500),[2]):(ze(!1),ke.current=!0,$e(!0),!ot&&a&<(r||"manual_entry"),h=new Date,f=It.current,Ae(function(t){var n=t.map(function(t){var n;return e.__assign(e.__assign({},t),{content:null===(n=Zt(t.content))||void 0===n?void 0:n.replace("WaitMessage: ","")})});return s&&n.some(function(e){return e.id===s})?n.map(function(t){return t.id===s?e.__assign(e.__assign({},t),{content:a}):t}):e.__spreadArray(e.__spreadArray([],n,!0),[{role:"user",content:a,time:h,isFirstQuestionSent:!1,id:s||l.v4()}],!1)}),Ot("smooth"),m=new Map,p=[],_=function(e){var t;if(!e)return{};var n=Object.keys(e);return 1===n.length&&"current"===n[0]?null!==(t=e.current)&&void 0!==t?t:{}:e},C={WEBSOCKET_URL:E,organizationName:i,chatAssistantName:xe,selectedAIModel:"gpt-4",replyMessage:"",userName:null!==(S=null==de?void 0:de.name)&&void 0!==S?S:"Guest User",userEmailId:null!==(b=null==de?void 0:de.email)&&void 0!==b?b:"guestUser@example.com",userId:null!==(w=null==de?void 0:de.id)&&void 0!==w?w:"Guest User",query:a,requestId:"requestId-".concat(l.v4()),customPrompt:"",enableForBackend:!1,guestSessionId:ye.current,chatPreviewId:Se.current,customMetaData:_(L),aiModel:"",enableLogs:!0,logControls:{infoLogs:Ce,debugLogs:Ce},onStreamEvent:function(e){var t,r,i,o,l,u;if(Et.current&&It.current===f){var d=null===(r=null===(t=null==e?void 0:e.chatStream)||void 0===t?void 0:t.continueChatResult)||void 0===r?void 0:r.requestId,c=null===(o=null===(i=null==e?void 0:e.chatStream)||void 0===i?void 0:i.continueChatResult)||void 0===o?void 0:o.header_message;console.log("📦 [Stream Chunk Received] With RequestID and header_message: ".concat(d,",").concat(c)),Qt(C.requestId);var v=null===(u=null===(l=null==e?void 0:e.chatStream)||void 0===l?void 0:l.continueChatResult)||void 0===u?void 0:u.error_state;if(Array.isArray(v)&&v.length>0)return console.error("⚠️ Agent returned an error_state during stream:",{requestId:d,errorState:v}),void Vt(C.requestId,"agent_error");Kt(e,m,p,h,a,n,s)}},onStreamEnd:function(t){var n,r;if(Et.current&&It.current===f){var a=null===(r=null===(n=null==t?void 0:t.chatStream)||void 0===n?void 0:n.continueChatResult)||void 0===r?void 0:r.requestId;jt.current.add(C.requestId),console.log("✅ [Stream Completed] RequestID: ".concat(a));var s=qt.current.get(C.requestId);s&&(clearTimeout(s),qt.current.delete(C.requestId)),Rt.current=!1,ze(!0),$e(!1),dt(!1);var i=Date.now(),o=wt.current.get(C.requestId);if(o){var l=Math.round((i-o)/1e3).toFixed(1);Ae(function(t){var n=e.__spreadArray([],t,!0).reverse().findIndex(function(e){return"assistant"===e.role});if(-1===n)return t;var r=t.length-1-n;return t.map(function(t,n){return n===r?e.__assign(e.__assign({},t),{finalTimeTaken:l}):t})})}}},onError:function(e){if(Et.current&&It.current===f){var t=qt.current.get(C.requestId);if(t&&(clearTimeout(t),qt.current.delete(C.requestId)),jt.current.has(C.requestId))return console.warn("Ignoring post-completion error for already-finished request:",C.requestId),void jt.current.delete(C.requestId);console.error("Stream error:",e),Vt(C.requestId,"websocket_error")}}},a&&(Fe(!0),null===(k=Ie.current)||void 0===k||k.blur(),Re(""),Ot(),Ve(s?"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."),wt.current.set(C.requestId,Date.now()),kt.current=C.requestId,console.log("Chat Stream Params:",C),Qt(C.requestId),Mt.current+=1,console.log("🚀 [UI Action] stream started (Total UI invocations: ".concat(Mt.current,") | RequestID: ").concat(C.requestId,' | Query: "').concat(a,'"')),u.startChatStream(C)),o&&o(!1),[2])}})})},$t=n.useRef(null);n.useLayoutEffect(function(){$t.current=Jt});var Xt=n.useCallback(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return null===(t=$t.current)||void 0===t?void 0:t.call.apply(t,e.__spreadArray([$t],n,!1))},[]),Yt=n.useMemo(function(){return{p:function(n){n.node;var r=n.children;return e.__rest(n,["node","children"]),t.jsx("div",e.__assign({style:{margin:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"10px",fontFamily:"inherit"}},{children:r}))},button:function(n){n.node;var r=n.className,a=n.children,s=e.__rest(n,["node","className","children"]),i=C.extractTextFromChildren(a),o=s["data-value"],l=ot===i||ot===o,u=!!ot||!!ce,d="Tester Genie"===i;return t.jsx(h.ActionableButton,e.__assign({},s,{className:r,handleStream:Xt,isStreamEnd:Be,disabled:u,isLastMessage:!0,style:{margin:0},isTesterGenie:d,"data-selected":l?"true":ot?"false":void 0},{children:t.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[a,d&&t.jsxs("svg",e.__assign({width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"})]}))]}))}))}}},[Xt,Be,ot,ce]),en=n.useMemo(function(){return qe.some(function(e){return e.isSkeleton})},[qe]),tn=function(t){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(n){switch(n.label){case 0:return ue?[4,ue(t)]:[3,2];case 1:n.sent(),Ae(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[{role:"assistant",content:"Thanks for your feedback — this will help improve future suggestions.",id:l.v4(),citations:[],time:new Date,isEnd:!0}],!1)}),setTimeout(function(){return Ot("smooth")},100),n.label=2;case 2:return[2]}})})};return t.jsxs("div",e.__assign({className:"".concat(p.default.customFont," ").concat(m.default.chatContainer),style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:se&&!en?"0 0 20px 5px rgba(37, 99, 235, 0.5)":"none"}},{children:[t.jsxs("div",e.__assign({ref:we,className:m.default.scrollWrapper},{children:[t.jsx("div",e.__assign({ref:ht,className:m.default.stickyHeader},{children:t.jsx(c.default,{resetChatHistory:Gt,isStreamEnd:Be,chatTitle:F,onResize:G,chatSize:U,movingTowards:Z})})),t.jsxs("div",e.__assign({className:m.default.messagesList},{children:[t.jsxs("div",e.__assign({className:m.default.initialMessageRow},{children:[t.jsx("div",e.__assign({className:m.default.iconWrapper},{children:t.jsx(y.default,{})})),t.jsx("div",e.__assign({className:m.default.welcomeTextWrapper},{children:t.jsx("div",e.__assign({className:m.default.welcomeMarkdownWrapper},{children:t.jsx("span",{children:t.jsx(j.default,e.__assign({rehypePlugins:[I.default],components:Yt},{children:O}))})}))}))]})),qe.length>0&&qe.map(function(n,r){var a,s;return t.jsxs("div",e.__assign({className:m.default.messageRow},{children:["assistant"===n.role?t.jsx("div",e.__assign({className:m.default.assistantIconContainer},{children:t.jsx(y.default,{})})):t.jsx("div",{className:m.default.userSpacer}),t.jsx("div",e.__assign({className:m.default.messageContent},{children:"assistant"===n.role?t.jsxs(t.Fragment,{children:[n.orchestratorAndAgentsMessages&&n.orchestratorAndAgentsMessages.length>0&&t.jsx(d.WatchMeWork,{orchestratorAndAgentsMessages:null==n?void 0:n.orchestratorAndAgentsMessages,isStreamEnd:Be,finalTimeTaken:null==n?void 0:n.finalTimeTaken},null!==(a=null==n?void 0:n.finalTimeTaken)&&void 0!==a?a:null==n?void 0:n.id),t.jsx(v.default,{index:r,content:null==n?void 0:n.content,role:null==n?void 0:n.role,messages:qe,handleStream:Xt,isLastMessage:r===qe.length-1,onSave:H,citations:null==n?void 0:n.citations,setChatSize:G,chatSize:U,isStreamEnd:Be,messageIsEnd:null==n?void 0:n.isEnd,onViewComparison:oe,onTypeResponseClick:function(){var e;yt(!0),null===(e=Ie.current)||void 0===e||e.focus()},onComparisonLinkClick:le,baseURL:be,onFeedbackSubmit:tn,isGlobalEditActive:ce,fieldLabelMap:pe}),n.hasOwnProperty("isEnd")&&!(null==n?void 0:n.isEnd)&&(null===(s=null==n?void 0:n.content)||void 0===s?void 0:s.length)>0&&t.jsxs(t.Fragment,{children:[t.jsx(g.Skeleton,{variant:"text",width:"50%",height:20}),t.jsx("div",{style:{marginTop:"10px"}}),t.jsx(g.Skeleton,{variant:"text",width:"100%",height:40})]}),t.jsx("div",e.__assign({className:m.default.timestamp},{children:n.time&&!isNaN(new Date(n.time).getTime())?new Date(n.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}):t.jsxs("div",e.__assign({className:m.default.userMessageWrapper},{children:[t.jsxs("div",e.__assign({className:m.default.userMessageBubble,style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:n.isSkeleton||en||n.id!==pt?"none":"0 0 15px 3px rgba(37, 99, 235, 0.6)"}},{children:[n.isSkeleton?t.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"12px",minWidth:"280px",padding:"8px 0"}},{children:[t.jsx(g.Skeleton,{variant:"text",width:"100%",height:16}),t.jsx(g.Skeleton,{variant:"text",width:"80%",height:16})]})):t.jsx(v.default,{index:r,content:null==n?void 0:n.content,role:null==n?void 0:n.role,messages:qe,handleStream:Xt,isLastMessage:r===qe.length-1,onSave:H,citations:null==n?void 0:n.citations,isStreamEnd:Be,isGlobalEditActive:ce,messageIsEnd:null==n?void 0:n.isEnd,onViewComparison:oe,onComparisonLinkClick:le,baseURL:be,onFeedbackSubmit:tn,fieldLabelMap:pe}),t.jsx("div",e.__assign({style:{marginTop:"0.5rem"}},{children:t.jsx(S.UserIcon,{})}))]})),t.jsx("div",e.__assign({className:m.default.userTimestamp},{children:new Date(n.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}))}))]}),n.id)}),Ne&&t.jsxs("div",e.__assign({className:m.default.loadingRow},{children:[t.jsx("div",e.__assign({className:m.default.iconWrapper,style:{marginTop:"0.2rem"}},{children:t.jsx(y.default,{})})),t.jsx("div",e.__assign({className:m.default.loadingTextWrapper},{children:t.jsx("span",{children:Ke})}))]})),t.jsx("div",{ref:je,style:{float:"left",clear:"both"}})]}))]})),t.jsx("div",e.__assign({className:m.default.inputAreaWrapper},{children:t.jsx(k.default,e.__assign({title:N?"Please wait for the validation to be completed.":""},{children:t.jsxs("div",e.__assign({className:"".concat(m.default.inputBoxContainer," ").concat(Wt?m.default.disabled:""),style:xt?{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:[qe.length>0&&!nt&&t.jsx("div",e.__assign({onMouseDown:function(e){e.preventDefault(),Ot("smooth")},className:m.default.scrollToBottomBtn},{children:t.jsx(_.ScrollToBottom,{})})),t.jsxs("div",e.__assign({style:{width:"100%",display:"flex"}},{children:[t.jsx("textarea",{ref:Ie,placeholder:Q,value:Te||"",onChange:function(e){Re(e.target.value)},onFocus:function(){return et(!0)},onBlur:function(){return et(!1)},onKeyDown:function(e){return Jt(e)},disabled:Wt,className:"no-scrollbar ".concat(m.default.chatTextarea),style:{minHeight:Ye||Te&&Te.length>40?"120px":"50px",height:Ye||Te&&Te.length>40?"120px":"50px",maxHeight:"120px"}}),t.jsx("span",e.__assign({className:m.default.sendButtonWrapper},{children:t.jsx("button",e.__assign({onClick:function(e){Bt||Jt(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:Bt,className:"".concat(m.default.sendButton," ").concat(Bt?m.default.disabled:m.default.active)},{children:t.jsx(x.SendButton,{})}))}))]}))]}))}))})),t.jsxs("div",e.__assign({className:m.default.footerTools},{children:[t.jsx(k.default,e.__assign({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:t.jsx("span",e.__assign({className:m.default.footerToolItem},{children:t.jsx(f.default,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),t.jsx(k.default,e.__assign({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:t.jsx("span",e.__assign({className:m.default.footerToolItem},{children:t.jsx(f.default,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]})),t.jsx(r.Dialog,e.__assign({open:Nt,onClose:function(){},PaperProps:{sx:{borderRadius:"12px",padding:"8px",maxWidth:"400px",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-foreground, #0F172A)"}}},{children:t.jsxs(r.Box,e.__assign({sx:{p:3,textAlign:"center",fontFamily:"'Plus Jakarta Sans', sans-serif"}},{children:[t.jsx("h3",e.__assign({style:{fontSize:"18px",fontWeight:600,color:"var(--il-foreground, #0F172A)",marginBottom:"10px"}},{children:"Session Expired"})),t.jsx("p",e.__assign({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."})),t.jsxs(r.Box,e.__assign({sx:{display:"flex",gap:2,justifyContent:"center"}},{children:[t.jsx("button",e.__assign({onClick:function(){Ft(!1),Gt()},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"})),t.jsx("button",e.__assign({onClick:function(){Ft(!1),null==me||me()},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"}))]}))]}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=ChatComponent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),a=require("@mui/material"),s=require("@mui/material/Tooltip"),i=require("react-markdown"),o=require("rehype-raw"),r=require("../../../../api/transport.js"),l=require("uuid"),u=require("@e-llm-studio/streaming-response"),d=require("@e-llm-studio/watch-me-work"),c=require("./ChatHeader.js"),h=require("../MessageRendering/MessageRendering.js"),v=require("../atoms/SkeletonLoader/SkeletonLoader.js"),m=require("../MessageRendering/ClickableChatComponents.js"),g=require("../AudioWaveform.js"),f=require("./ChatComponent.module.css.js"),p=require("../../InstantLearning.module.css.js"),C=require("../_svg/ScrollToBottom.js"),_=require("../../helpers/utils.js"),x=require("../_svg/SendButton.js"),S=require("../_svg/SparkleIcon.js"),y=require("../_svg/UserIcon.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var R,j=b(s),w=b(i),k=b(o);exports.default=function(s){var i=s.chatAssistantName,o=s.organizationName,b=s.baseUrl,E=s.baseWebsocketUrl,M=s.setIsNewChatClicked;s.ThinkingBulbIconComponent;var T=s.isFormSaveClicked,I=s.setIsFormSavedClicked,A=s.onResetLearningData,N=s.sendMessageInChat,D=s.setSendMessageInChat,q=s.isFormValidating,L=s.chatTitle,F=s.customMetaData,W=s.headerMessageHandlers;s.aiResponse;var B=s.setAIResponse,z=s.onResetChat,P=s.initialChatMessage,H=void 0===P?"":P,U=s.onSave,Z=s.chatSize,K=s.setChatSize,O=s.movingTowards,G=s.setCitations,V=s.textareaPlaceholder,J=void 0===V?"Tell me more about this learning...":V,Q=s.setCurrentRequestId,X=s.showSavedMessage,Y=void 0!==X&&X,$=s.savedMessage,ee=s.isError,te=void 0!==ee&&ee,ne=s.errorMessage,ae=void 0===ne?"There was an error saving your changes.":ne;s.isSaving;var se=s.isHighlighted,ie=void 0!==se&&se,oe=s.onStreamingStateChange,re=s.onViewComparison;s.isCopyEnabled;var le=s.onComparisonLinkClick,ue=s.onSubmitFeedback,de=i,ce=n.useRef("".concat(de,"-").concat(o,"-").concat(l.v4())),he=n.useRef("".concat(l.v4())),ve=b,me=n.useRef(null),ge=n.useRef(!0),fe=n.useRef(null),pe=n.useRef(null),Ce=n.useState(""),_e=Ce[0],xe=Ce[1],Se=n.useState([]),ye=Se[0],be=Se[1],Re=n.useState(!1),je=Re[0],we=Re[1],ke=n.useState(!1);ke[0];var Ee=ke[1],Me=n.useState(!0),Te=Me[0],Ie=Me[1],Ae=n.useState(!0);Ae[0];var Ne=Ae[1],De=n.useState("");De[0];var qe=De[1],Le=n.useState(""),Fe=Le[0],We=Le[1],Be=n.useState(!1),ze=Be[0],Pe=Be[1],He=n.useState(!1),Ue=He[0],Ze=He[1],Ke=n.useState(!0),Oe=Ke[0],Ge=Ke[1],Ve=n.useState("100%");Ve[0];var Je=Ve[1],Qe=n.useState(null),Xe=Qe[0],Ye=Qe[1],$e=n.useState(!1);$e[0];var et=$e[1],tt=n.useState(!1),nt=tt[0],at=tt[1],st=n.useRef(null),it=n.useRef(new Set),ot=n.useState(null),rt=ot[0],lt=ot[1],ut=n.useState(!1),dt=ut[0],ct=ut[1],ht=n.useState(!1);ht[0],ht[1];var vt=n.useState(null);vt[0],vt[1],n.useRef(null),n.useRef(null);var mt=n.useRef(new Map),gt=n.useRef(""),ft=a.keyframes(R||(R=e.__makeTemplateObject(["\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 "]))),pt=n.useMemo(function(){return""===(null==_e?void 0:_e.trim())||ze},[_e,ze]),Ct=n.useMemo(function(){return q},[q]),_t=n.useMemo(function(){return pt||ze||q},[pt,ze,q]);n.useEffect(function(){null==oe||oe(ze)},[ze,oe]),n.useEffect(function(){var e=me.current,t=function(){if(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;Ge(n-t-a<=20)}};return e&&(e.addEventListener("scroll",t),t()),function(){e&&e.removeEventListener("scroll",t)}},[ye]);var xt=_.useHeaderObserver({handlers:W,setResult:B}).processHeaderMessage;n.useEffect(function(){Y&&at(!0)},[Y]),n.useEffect(function(){if(dt){var e=setTimeout(function(){ct(!1)},3e3);return function(){return clearTimeout(e)}}},[dt]),n.useEffect(function(){T&&(wt(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save this Learning"),I(!1))},[T]),n.useEffect(function(){if(N)try{if(N.startsWith("__SKELETON__:")){var t=N.split(":"),n=t[1],a=t.slice(2).join(":"),s={role:"user",content:"",id:n,time:new Date,isSkeleton:!0,skeletonContent:a};return be(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[s],!1)}),wt(new KeyboardEvent("keydown",{key:"Enter"}),!1,a,!1,n),lt(n),D&&D(""),void setTimeout(function(){lt(null)},2e3)}if(N.startsWith("__SKELETON_END__::")){var i=N.split("::")[1]||"";return be(function(t){return t.map(function(t){return t.isSkeleton?e.__assign(e.__assign({},t),{isSkeleton:!1,content:t.skeletonContent||i}):t})}),void(D&&D(""))}var o=l.v4();wt(new KeyboardEvent("keydown",{key:"Enter"}),!1,N,!1,o),lt(o),D&&D(""),setTimeout(function(){return lt(null)},2e3)}catch(e){console.error("Error handling sendMessageInChat signal",e)}},[N]),n.useEffect(function(){yt(),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)");Je(n)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var St=n.useCallback(function(e){var t="string"==typeof e?e:"smooth";fe.current&&fe.current.scrollIntoView({behavior:t,block:"end"}),ge.current&&setTimeout(function(){fe.current&&ge.current&&fe.current.scrollIntoView({behavior:t,block:"end"})},100)},[]);n.useEffect(function(){if(!ze){var t="";if(nt?t=$||"Thank you teacher for teaching me, your rule has been saved successfully.":te&&(t=ae||"I'm sorry, I couldn't save your changes. Please try again."),t){var n={role:"assistant",content:t,id:l.v4(),citations:[],time:new Date};be(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)}),at(!1),setTimeout(function(){return St("smooth")},100)}}},[nt,te,ze,$,ae,St]),n.useEffect(function(){ge.current&&St("smooth")},[St]);var yt=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(ve,"/api/chatbot/getChatSettings?name=").concat(de,"&organizationName=").concat(o),headers:{}};r.http.request(e).then(function(e){var t,n,a;(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.chatSettings)&&""!==(null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)||void 0===a?void 0:a.chatInitialMessage)&&Ne(!0)}).catch(function(e){console.error(e)})},bt=function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n;return e.__generator(this,function(e){t="".concat(ve,"/api/chat/history?name=").concat(de,"&organizationName=").concat(o);try{n={method:"GET",params:{guestSessionId:ce.current},withCredentials:!0},r.http.get(t,n).then(function(e){var t=e.data;t.length>0?(be(t),St()):Ne(!0)}).catch(function(e){console.error(e)})}catch(e){we(!1),console.error(e)}return[2]})})};function Rt(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var jt=function(t,n,a,s,i,o,r){var u,d,c,h,v,m,g,f,p,C,_,x,S,y,b,R,j,w,k,E,M,T,I,A,N,D,q,L,F,W,B,z,P,H;if(null===(d=null===(u=null==t?void 0:t.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===d?void 0:d.header_message){var U={header_message:t.chatStream.continueChatResult.header_message,responsedata:null===(v=null===(h=null===(c=null==t?void 0:t.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===h?void 0:h.message)||void 0===v?void 0:v.content};xt(U)}var Z=null===(m=null==t?void 0:t.chatStream)||void 0===m?void 0:m.continueChatResult,K=null==Z?void 0:Z.isEnd,O=(null===(g=null==Z?void 0:Z.message)||void 0===g?void 0:g.citations)||[];K&&O.length>0&&G&&G(O);var V={role:"assistant",content:"",id:l.v4()};if(null===(_=null===(C=null===(p=null===(f=null==t?void 0:t.chatStream)||void 0===f?void 0:f.continueChatResult)||void 0===p?void 0:p.message)||void 0===C?void 0:C.content)||void 0===_?void 0:_.includes("WaitMessage: "))Ee(!0),V.content=function(e){var t="WaitMessage: ",n=e.indexOf(t);if(-1!==n){var a=e.substring(n+13);return null==a?void 0:a.replaceAll("WaitMessage: ","")}return""}((null===(y=null===(S=null===(x=null==t?void 0:t.chatStream)||void 0===x?void 0:x.continueChatResult)||void 0===S?void 0:S.message)||void 0===y?void 0:y.content)+"\n\n"),""!==V.content&&(we(!1),be(e.__spreadArray(e.__spreadArray([],ye,!0),[{role:"user",content:i,time:s,isFirstQuestionSent:o||!1,id:r||(null===(R=null===(b=null==t?void 0:t.chatStream)||void 0===b?void 0:b.continueChatResult)||void 0===R?void 0:R.requestId)||"",reply:""},V],!1)));else{Ee(!1),V.content=null===(E=Rt(null===(k=null===(w=null===(j=null==t?void 0:t.chatStream)||void 0===j?void 0:j.continueChatResult)||void 0===w?void 0:w.message)||void 0===k?void 0:k.content))||void 0===E?void 0:E.replaceAll("WaitMessage: ","");var J=null===(T=null===(M=null==t?void 0:t.chatStream)||void 0===M?void 0:M.continueChatResult)||void 0===T?void 0:T.requestId;"string"==typeof J&&J&&Q&&Q(J);var X=function(t,n,a){var s,i,o,r,u,d,c,h,v,m,g,f,p,C,_,x,S,y,b,R,j,w,k,E,M,T,I,A,N,D,q,L,F,W,B={role:"assistant",content:"",id:l.v4(),time:new Date,citations:[]};if(!1===(null===(i=null===(s=t.chatStream)||void 0===s?void 0:s.continueChatResult)||void 0===i?void 0:i.thinking_break)&&!0===(null===(r=null===(o=t.chatStream)||void 0===o?void 0:o.continueChatResult)||void 0===r?void 0:r.is_orchestrator)&&!1===(null===(d=null===(u=t.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===d?void 0:d.isEnd)&&(B.content=Rt(t.chatStream.continueChatResult.message.content||"")),!0===(null===(h=null===(c=t.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===h?void 0:h.thinking_break)&&!0===(null===(m=null===(v=t.chatStream)||void 0===v?void 0:v.continueChatResult)||void 0===m?void 0:m.is_orchestrator)&&!1===(null===(f=null===(g=t.chatStream)||void 0===g?void 0:g.continueChatResult)||void 0===f?void 0:f.isEnd)&&(B.content="",n.push({responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1})),!1===(null===(C=null===(p=t.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===C?void 0:C.thinking_break)&&!0===(null===(x=null===(_=t.chatStream)||void 0===_?void 0:_.continueChatResult)||void 0===x?void 0:x.is_orchestrator)&&!0===(null===(y=null===(S=t.chatStream)||void 0===S?void 0:S.continueChatResult)||void 0===y?void 0:y.isEnd)&&(B.content=Rt(t.chatStream.continueChatResult.message.content)),!1===(null===(R=null===(b=t.chatStream)||void 0===b?void 0:b.continueChatResult)||void 0===R?void 0:R.thinking_break)&&!1===(null===(w=null===(j=t.chatStream)||void 0===j?void 0:j.continueChatResult)||void 0===w?void 0:w.is_orchestrator)&&!1===(null===(E=null===(k=t.chatStream)||void 0===k?void 0:k.continueChatResult)||void 0===E?void 0:E.isEnd)){if((H=t.chatStream.continueChatResult).explainability_id&&H.responded_by){var z=H.explainability_id,P=H.responded_by;a.has(z)||a.set(z,{responded_by:P,index:n.length})}a.has(t.chatStream.continueChatResult.explainability_id)?n[null==(U=a.get(t.chatStream.continueChatResult.explainability_id))?void 0:U.index]={responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(M=t.chatStream.continueChatResult.explainability_id)&&void 0!==M?M:"",isParallelToolResponse:!0}:n=e.__spreadArray(e.__spreadArray([],n,!0),[{responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(T=t.chatStream.continueChatResult.explainability_id)&&void 0!==T?T:"",isParallelToolResponse:!1}],!1)}if(!0===(null===(A=null===(I=t.chatStream)||void 0===I?void 0:I.continueChatResult)||void 0===A?void 0:A.thinking_break)&&!1===(null===(D=null===(N=t.chatStream)||void 0===N?void 0:N.continueChatResult)||void 0===D?void 0:D.is_orchestrator)&&!1===(null===(L=null===(q=t.chatStream)||void 0===q?void 0:q.continueChatResult)||void 0===L?void 0:L.isEnd)){var H,U;(H=t.chatStream.continueChatResult).explainability_id&&H.responded_by&&(z=H.explainability_id,P=H.responded_by,a.has(z)||a.set(z,{responded_by:P,index:n.length})),a.has(t.chatStream.continueChatResult.explainability_id)?n[null==(U=a.get(t.chatStream.continueChatResult.explainability_id))?void 0:U.index]={responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(F=t.chatStream.continueChatResult.explainability_id)&&void 0!==F?F:"",isParallelToolResponse:!0}:n.push({responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(W=t.chatStream.continueChatResult.explainability_id)&&void 0!==W?W:"",isParallelToolResponse:!1})}return e.__assign({orchestratorAndAgentsMessages:n},B)}(t,a,n);X.time=new Date,X.citations=O,X.isEnd=null===(A=null===(I=null==t?void 0:t.chatStream)||void 0===I?void 0:I.continueChatResult)||void 0===A?void 0:A.isEnd,X.requestId=null===(D=null===(N=null==t?void 0:t.chatStream)||void 0===N?void 0:N.continueChatResult)||void 0===D?void 0:D.requestId,X.sessionId=ce.current,null===(q=X.orchestratorAndAgentsMessages)||void 0===q||q.forEach(function(e){e&&e.header_message&&xt(e)}),(""!==(null==X?void 0:X.content)||(null==X?void 0:X.orchestratorAndAgentsMessages)&&(null==X?void 0:X.orchestratorAndAgentsMessages.length)>0)&&(we(!1),be(e.__spreadArray(e.__spreadArray([],ye,!0),[{role:"user",content:i||"",time:s,isFirstQuestionSent:o||!1,id:r||(null===(F=null===(L=null==t?void 0:t.chatStream)||void 0===L?void 0:L.continueChatResult)||void 0===F?void 0:F.requestId)||"",requestId:null!==(z=null===(B=null===(W=null==t?void 0:t.chatStream)||void 0===W?void 0:W.continueChatResult)||void 0===B?void 0:B.requestId)&&void 0!==z?z:""},X],!1))),Ie(null===(H=null===(P=null==t?void 0:t.chatStream)||void 0===P?void 0:P.continueChatResult)||void 0===H?void 0:H.isEnd)}},wt=function(t,n,a,s,i,r){var d,c,h=(void 0!==a?a:_e||"").trim(),v="Enter"===(null==t?void 0:t.key)&&!(null==t?void 0:t.shiftKey);if(v&&(null===(d=null==t?void 0:t.preventDefault)||void 0===d||d.call(t)),!(!h||ze&&!a||(null==t?void 0:t.key)&&!v)){if("I want to add a rule description"===h){Ie(!1),ge.current=!0,Pe(!0),!Xe&&h&&Ye(a||"manual_entry");var m=new Date;return be(function(t){return e.__spreadArray(e.__spreadArray([],t.map(function(t,n){var a;return e.__assign(e.__assign({},t),{content:null===(a=Rt(t.content))||void 0===a?void 0:a.replace("WaitMessage: ","")})}),!0),[{role:"user",content:h,time:m,isFirstQuestionSent:!1,id:i||l.v4()}],!1)}),St("smooth"),void setTimeout(function(){be(function(t){return e.__spreadArray(e.__spreadArray([],t,!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:l.v4(),citations:[],time:new Date}],!1)}),St("smooth"),setTimeout(function(){Pe(!1),Ie(!0)},500)},500)}Ie(!1),ge.current=!0,Pe(!0),!Xe&&h&&Ye(a||"manual_entry");var g=new Date;be(function(t){var n=t.map(function(t){var n;return e.__assign(e.__assign({},t),{content:null===(n=Rt(t.content))||void 0===n?void 0:n.replace("WaitMessage: ","")})});return i&&n.some(function(e){return e.id===i})?n.map(function(t){return t.id===i?e.__assign(e.__assign({},t),{content:h}):t}):e.__spreadArray(e.__spreadArray([],n,!0),[{role:"user",content:h,time:g,isFirstQuestionSent:!1,id:i||l.v4()}],!1)}),St("smooth");var f=new Map,p=[],C={WEBSOCKET_URL:E,organizationName:o,chatAssistantName:de,selectedAIModel:"gpt-4",replyMessage:"",userName:"Guest User",userEmailId:"guestUser@example.com",userId:"Guest User",query:h,requestId:"requestId-".concat(l.v4()),customPrompt:"",enableForBackend:!1,guestSessionId:ce.current,chatPreviewId:he.current,customMetaData:F,aiModel:"",onStreamEvent:function(e){return jt(e,f,p,g,h,n,i)},onStreamEnd:function(t){Ie(!0),Pe(!1),et(!1);var n=Date.now(),a=mt.current.get(gt.current);if(a){var s=Math.round((n-a)/1e3).toFixed(1);be(function(t){var n=e.__spreadArray([],t,!0).reverse().findIndex(function(e){return"assistant"===e.role});if(-1===n)return t;var a=t.length-1-n;return t.map(function(t,n){return n===a?e.__assign(e.__assign({},t),{finalTimeTaken:s}):t})})}},onError:function(e){console.error("Stream error:",e),Ie(!0),Pe(!1),et(!1)}};if(h)we(!0),null===(c=pe.current)||void 0===c||c.blur(),xe(""),St(),We(i?"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(C.requestId,Date.now()),gt.current=C.requestId,u.startChatStream(C);r&&r(!1)}},kt=n.useRef(null);n.useLayoutEffect(function(){kt.current=wt});var Et=n.useCallback(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return null===(t=kt.current)||void 0===t?void 0:t.call.apply(t,e.__spreadArray([kt],n,!1))},[]),Mt=n.useMemo(function(){return{p:function(n){n.node;var a=n.children;return e.__rest(n,["node","children"]),t.jsx("div",e.__assign({style:{margin:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"10px",fontFamily:"inherit"}},{children:a}))},button:function(n){n.node;var a=n.className,s=n.children,i=e.__rest(n,["node","className","children"]),o=_.extractTextFromChildren(s),r=i["data-value"],l=Xe===o||Xe===r,u=!!Xe,d="Tester Genie"===o;return t.jsx(m.ActionableButton,e.__assign({},i,{className:a,handleStream:Et,isStreamEnd:Te,disabled:u,isLastMessage:!0,style:{margin:0},isTesterGenie:d,"data-selected":l?"true":Xe?"false":void 0},{children:t.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[s,d&&t.jsxs("svg",e.__assign({width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"})]}))]}))}))}}},[Et,Te,Xe]),Tt=n.useMemo(function(){return ye.some(function(e){return e.isSkeleton})},[ye]),It=function(t){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(n){switch(n.label){case 0:return ue?[4,ue(t)]:[3,2];case 1:n.sent(),be(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[{role:"assistant",content:"Thanks for your feedback — this will help improve future suggestions.",id:l.v4(),citations:[],time:new Date,isEnd:!0}],!1)}),setTimeout(function(){return St("smooth")},100),n.label=2;case 2:return[2]}})})};return console.log(ye,"rendering messages"),t.jsxs("div",e.__assign({className:"".concat(p.default.customFont," ").concat(f.default.chatContainer),style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:ie&&!Tt?"0 0 20px 5px rgba(37, 99, 235, 0.5)":"none"}},{children:[t.jsxs("div",e.__assign({ref:me,className:f.default.scrollWrapper},{children:[t.jsx("div",e.__assign({ref:st,className:f.default.stickyHeader},{children:t.jsx(c.default,{resetChatHistory:function(){var e="".concat(ve,"/api/chat/resetHistory?name=").concat(de,"&organizationName=").concat(o);try{var t={method:"GET",params:{guestSessionId:ce.current},withCredentials:!0};r.http.get(e,t).then(function(){M(!0),qe(""),Ye(null),it.current.clear(),he.current="".concat(l.v4()),be([]),Ne(!0),null==z||z(),A&&A()}).catch(function(e){console.error(e)}).finally(function(){ce.current="".concat(de,"-").concat(o,"-").concat(l.v4())})}catch(e){we(!1),console.error(e)}},isStreamEnd:Te,chatTitle:L,onResize:K,chatSize:Z,movingTowards:O})})),t.jsxs("div",e.__assign({className:f.default.messagesList},{children:[t.jsxs("div",e.__assign({className:f.default.initialMessageRow},{children:[t.jsx("div",e.__assign({className:f.default.iconWrapper},{children:t.jsx(S.default,{})})),t.jsx("div",e.__assign({className:f.default.welcomeTextWrapper},{children:t.jsx("div",e.__assign({className:f.default.welcomeMarkdownWrapper},{children:t.jsx("span",{children:t.jsx(w.default,e.__assign({rehypePlugins:[k.default],components:Mt},{children:H}))})}))}))]})),ye.length>0&&ye.map(function(n,a){return t.jsxs("div",e.__assign({className:f.default.messageRow},{children:["assistant"===n.role?t.jsx("div",e.__assign({className:f.default.assistantIconContainer},{children:t.jsx(S.default,{})})):t.jsx("div",{className:f.default.userSpacer}),t.jsx("div",e.__assign({className:f.default.messageContent},{children:"assistant"===n.role?t.jsxs(t.Fragment,{children:[n.orchestratorAndAgentsMessages&&n.orchestratorAndAgentsMessages.length>0&&t.jsx(d.WatchMeWork,{orchestratorAndAgentsMessages:null==n?void 0:n.orchestratorAndAgentsMessages,isStreamEnd:Te,finalTimeTaken:null==n?void 0:n.finalTimeTaken},null==n?void 0:n.id),t.jsx(h.default,{index:a,content:null==n?void 0:n.content,role:null==n?void 0:n.role,messages:ye,handleStream:wt,isLastMessage:a===ye.length-1,onSave:U,citations:null==n?void 0:n.citations,setChatSize:K,chatSize:Z,isStreamEnd:Te,messageIsEnd:null==n?void 0:n.isEnd,onViewComparison:re,onTypeResponseClick:function(){var e;ct(!0),null===(e=pe.current)||void 0===e||e.focus()},onComparisonLinkClick:le,baseURL:ve,onFeedbackSubmit:It}),t.jsx("div",e.__assign({className:f.default.timestamp},{children:n.time&&!isNaN(new Date(n.time).getTime())?new Date(n.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}):t.jsxs("div",e.__assign({className:f.default.userMessageWrapper},{children:[t.jsxs("div",e.__assign({className:f.default.userMessageBubble,style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:n.isSkeleton||Tt||n.id!==rt?"none":"0 0 15px 3px rgba(37, 99, 235, 0.6)"}},{children:[n.isSkeleton?t.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"12px",minWidth:"280px",padding:"8px 0"}},{children:[t.jsx(v.Skeleton,{variant:"text",width:"100%",height:16}),t.jsx(v.Skeleton,{variant:"text",width:"80%",height:16})]})):t.jsx(h.default,{index:a,content:null==n?void 0:n.content,role:null==n?void 0:n.role,messages:ye,handleStream:wt,isLastMessage:a===ye.length-1,onSave:U,citations:null==n?void 0:n.citations,isStreamEnd:Te,messageIsEnd:null==n?void 0:n.isEnd,onViewComparison:re,onComparisonLinkClick:le,baseURL:ve,onFeedbackSubmit:It}),t.jsx("div",e.__assign({style:{marginTop:"0.5rem"}},{children:t.jsx(y.UserIcon,{})}))]})),t.jsx("div",e.__assign({className:f.default.userTimestamp},{children:new Date(n.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}))}))]}),n.id)}),je&&t.jsxs("div",e.__assign({className:f.default.loadingRow},{children:[t.jsx("div",e.__assign({className:f.default.iconWrapper,style:{marginTop:"0.2rem"}},{children:t.jsx(S.default,{})})),t.jsx("div",e.__assign({className:f.default.loadingTextWrapper},{children:t.jsx("span",{children:Fe})}))]})),t.jsx("div",{ref:fe,style:{float:"left",clear:"both"}})]}))]})),t.jsxs("div",e.__assign({className:f.default.inputAreaWrapper},{children:[ze&&t.jsxs(a.Box,e.__assign({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:[t.jsx("span",{children:"Instant Learning AI is thinking"}),t.jsx(a.Box,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(ft," 1.4s infinite ease-in-out both"),animationDelay:"-0.32s"}}),t.jsx(a.Box,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(ft," 1.4s infinite ease-in-out both"),animationDelay:"-0.16s"}}),t.jsx(a.Box,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(ft," 1.4s infinite ease-in-out both")}})]})),t.jsx(j.default,e.__assign({title:q?"Please wait for the validation to be completed.":""},{children:t.jsxs("div",e.__assign({className:"".concat(f.default.inputBoxContainer," ").concat(Ct?f.default.disabled:""),style:dt?{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:[ye.length>0&&!Oe&&t.jsx("div",e.__assign({onMouseDown:function(e){e.preventDefault(),St("smooth")},className:f.default.scrollToBottomBtn},{children:t.jsx(C.ScrollToBottom,{})})),t.jsxs("div",e.__assign({style:{width:"100%",display:"flex"}},{children:[t.jsx("textarea",{ref:pe,placeholder:J,value:_e||"",onChange:function(e){xe(e.target.value)},onFocus:function(){return Ze(!0)},onBlur:function(){return Ze(!1)},onKeyDown:function(e){return wt(e)},disabled:Ct,className:"no-scrollbar ".concat(f.default.chatTextarea),style:{minHeight:Ue?"120px":"50px",height:Ue?"120px":"50px",maxHeight:"120px"}}),t.jsx("span",e.__assign({className:f.default.sendButtonWrapper},{children:t.jsx("button",e.__assign({onClick:function(e){wt(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:_t,className:"".concat(f.default.sendButton," ").concat(_t?f.default.disabled:f.default.active)},{children:t.jsx(x.SendButton,{})}))}))]}))]}))}))]})),t.jsxs("div",e.__assign({className:f.default.footerTools},{children:[t.jsx(j.default,e.__assign({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:t.jsx("span",e.__assign({className:f.default.footerToolItem},{children:t.jsx(g.default,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),t.jsx(j.default,e.__assign({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:t.jsx("span",e.__assign({className:f.default.footerToolItem},{children:t.jsx(g.default,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]}))]}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),a=require("@mui/material"),s=require("@mui/material/Tooltip"),i=require("react-markdown"),o=require("rehype-raw"),r=require("../../../../api/transport.js"),l=require("uuid"),u=require("@e-llm-studio/streaming-response"),d=require("@e-llm-studio/watch-me-work"),c=require("./ChatHeader.js"),h=require("../MessageRendering/MessageRendering.js"),v=require("../atoms/SkeletonLoader/SkeletonLoader.js"),m=require("../MessageRendering/ClickableChatComponents.js"),f=require("../AudioWaveform.js"),g=require("./ChatComponent.module.css.js"),p=require("../../InstantLearning.module.css.js"),C=require("../_svg/ScrollToBottom.js"),_=require("../../helpers/utils.js"),x=require("../_svg/SendButton.js"),S=require("../_svg/SparkleIcon.js"),y=require("../_svg/UserIcon.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var R,j=b(s),w=b(i),k=b(o);exports.default=function(s){var i=s.chatAssistantName,o=s.organizationName,b=s.baseUrl,E=s.baseWebsocketUrl,M=s.setIsNewChatClicked;s.ThinkingBulbIconComponent;var T=s.isFormSaveClicked,I=s.setIsFormSavedClicked,A=s.onResetLearningData,N=s.sendMessageInChat,D=s.setSendMessageInChat,q=s.isFormValidating,L=s.chatTitle,F=s.customMetaData,W=s.headerMessageHandlers;s.aiResponse;var B=s.setAIResponse,z=s.onResetChat,P=s.initialChatMessage,H=void 0===P?"":P,U=s.onSave,Z=s.chatSize,K=s.setChatSize,O=s.movingTowards,G=s.setCitations,V=s.textareaPlaceholder,J=void 0===V?"Tell me more about this learning...":V,Q=s.setCurrentRequestId,X=s.showSavedMessage,Y=void 0!==X&&X,$=s.savedMessage,ee=s.isError,te=void 0!==ee&&ee,ne=s.errorMessage,ae=void 0===ne?"There was an error saving your changes.":ne;s.isSaving;var se=s.isHighlighted,ie=void 0!==se&&se,oe=s.onStreamingStateChange,re=s.onViewComparison;s.isCopyEnabled;var le=s.onComparisonLinkClick,ue=s.onSubmitFeedback,de=i,ce=n.useRef("".concat(de,"-").concat(o,"-").concat(l.v4())),he=n.useRef("".concat(l.v4())),ve=b,me=n.useRef(null),fe=n.useRef(!0),ge=n.useRef(null),pe=n.useRef(null),Ce=n.useState(""),_e=Ce[0],xe=Ce[1],Se=n.useState([]),ye=Se[0],be=Se[1],Re=n.useState(!1),je=Re[0],we=Re[1],ke=n.useState(!1);ke[0];var Ee=ke[1],Me=n.useState(!0),Te=Me[0],Ie=Me[1],Ae=n.useState(!0);Ae[0];var Ne=Ae[1],De=n.useState("");De[0];var qe=De[1],Le=n.useState(""),Fe=Le[0],We=Le[1],Be=n.useState(!1),ze=Be[0],Pe=Be[1],He=n.useState(!1),Ue=He[0],Ze=He[1],Ke=n.useState(!0),Oe=Ke[0],Ge=Ke[1],Ve=n.useState("100%");Ve[0];var Je=Ve[1],Qe=n.useState(null),Xe=Qe[0],Ye=Qe[1],$e=n.useState(!1);$e[0];var et=$e[1],tt=n.useState(!1),nt=tt[0],at=tt[1],st=n.useRef(null),it=n.useRef(new Set),ot=n.useState(null),rt=ot[0],lt=ot[1],ut=n.useState(!1),dt=ut[0],ct=ut[1],ht=n.useState(!1);ht[0],ht[1];var vt=n.useState(null);vt[0],vt[1],n.useRef(null),n.useRef(null);var mt=n.useRef(new Map),ft=n.useRef(""),gt=n.useRef(0),pt=n.useRef(!0),Ct=a.keyframes(R||(R=e.__makeTemplateObject(["\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 "]))),_t=n.useMemo(function(){return""===(null==_e?void 0:_e.trim())||ze},[_e,ze]),xt=n.useMemo(function(){return q},[q]),St=n.useMemo(function(){return _t||ze||q},[_t,ze,q]);n.useEffect(function(){null==oe||oe(ze)},[ze,oe]),n.useEffect(function(){return pt.current=!0,function(){pt.current=!1,gt.current+=1,ft.current&&E&&u.stopStreaming(ft.current,E,!1)}},[E]),n.useEffect(function(){var e=me.current,t=function(){if(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;Ge(n-t-a<=20)}};return e&&(e.addEventListener("scroll",t),t()),function(){e&&e.removeEventListener("scroll",t)}},[ye]);var yt=_.useHeaderObserver({handlers:W,setResult:B}).processHeaderMessage;n.useEffect(function(){Y&&at(!0)},[Y]),n.useEffect(function(){if(dt){var e=setTimeout(function(){ct(!1)},3e3);return function(){return clearTimeout(e)}}},[dt]),n.useEffect(function(){T&&(Et(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save this Learning"),I(!1))},[T]),n.useEffect(function(){if(N)try{if(N.startsWith("__SKELETON__:")){var t=N.split(":"),n=t[1],a=t.slice(2).join(":"),s={role:"user",content:"",id:n,time:new Date,isSkeleton:!0,skeletonContent:a};return be(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[s],!1)}),Et(new KeyboardEvent("keydown",{key:"Enter"}),!1,a,!1,n),lt(n),D&&D(""),void setTimeout(function(){lt(null)},2e3)}if(N.startsWith("__SKELETON_END__::")){var i=N.split("::")[1]||"";return be(function(t){return t.map(function(t){return t.isSkeleton?e.__assign(e.__assign({},t),{isSkeleton:!1,content:t.skeletonContent||i}):t})}),void(D&&D(""))}var o=l.v4();Et(new KeyboardEvent("keydown",{key:"Enter"}),!1,N,!1,o),lt(o),D&&D(""),setTimeout(function(){return lt(null)},2e3)}catch(e){console.error("Error handling sendMessageInChat signal",e)}},[N]),n.useEffect(function(){Rt(),jt();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)");Je(n)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var bt=n.useCallback(function(e){var t="string"==typeof e?e:"smooth";ge.current&&ge.current.scrollIntoView({behavior:t,block:"end"}),fe.current&&setTimeout(function(){ge.current&&fe.current&&ge.current.scrollIntoView({behavior:t,block:"end"})},100)},[]);n.useEffect(function(){if(!ze){var t="";if(nt?t=$||"Thank you teacher for teaching me, your rule has been saved successfully.":te&&(t=ae||"I'm sorry, I couldn't save your changes. Please try again."),t){var n={role:"assistant",content:t,id:l.v4(),citations:[],time:new Date};be(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)}),at(!1),setTimeout(function(){return bt("smooth")},100)}}},[nt,te,ze,$,ae,bt]),n.useEffect(function(){fe.current&&bt("smooth")},[bt]);var Rt=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(ve,"/api/chatbot/getChatSettings?name=").concat(de,"&organizationName=").concat(o),headers:{}};r.http.request(e).then(function(e){var t,n,a;(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.chatSettings)&&""!==(null===(a=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)||void 0===a?void 0:a.chatInitialMessage)&&Ne(!0)}).catch(function(e){console.error(e)})},jt=function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n;return e.__generator(this,function(e){t="".concat(ve,"/api/chat/history?name=").concat(de,"&organizationName=").concat(o);try{n={method:"GET",params:{guestSessionId:ce.current},withCredentials:!0},r.http.get(t,n).then(function(e){var t=e.data;t.length>0?(be(t),bt()):Ne(!0)}).catch(function(e){console.error(e)})}catch(e){we(!1),console.error(e)}return[2]})})};function wt(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var kt=function(t,n,a,s,i,o,r){var u,d,c,h,v,m,f,g,p,C,_,x,S,y,b,R,j,w,k,E,M,T,I,A,N,D,q,L,F,W,B,z,P,H;if(null===(d=null===(u=null==t?void 0:t.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===d?void 0:d.header_message){var U={header_message:t.chatStream.continueChatResult.header_message,responsedata:null===(v=null===(h=null===(c=null==t?void 0:t.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===h?void 0:h.message)||void 0===v?void 0:v.content};yt(U)}var Z=null===(m=null==t?void 0:t.chatStream)||void 0===m?void 0:m.continueChatResult,K=null==Z?void 0:Z.isEnd,O=(null===(f=null==Z?void 0:Z.message)||void 0===f?void 0:f.citations)||[];K&&O.length>0&&G&&G(O);var V={role:"assistant",content:"",id:l.v4()};if(null===(_=null===(C=null===(p=null===(g=null==t?void 0:t.chatStream)||void 0===g?void 0:g.continueChatResult)||void 0===p?void 0:p.message)||void 0===C?void 0:C.content)||void 0===_?void 0:_.includes("WaitMessage: "))Ee(!0),V.content=function(e){var t="WaitMessage: ",n=e.indexOf(t);if(-1!==n){var a=e.substring(n+13);return null==a?void 0:a.replaceAll("WaitMessage: ","")}return""}((null===(y=null===(S=null===(x=null==t?void 0:t.chatStream)||void 0===x?void 0:x.continueChatResult)||void 0===S?void 0:S.message)||void 0===y?void 0:y.content)+"\n\n"),""!==V.content&&(we(!1),be(e.__spreadArray(e.__spreadArray([],ye,!0),[{role:"user",content:i,time:s,isFirstQuestionSent:o||!1,id:r||(null===(R=null===(b=null==t?void 0:t.chatStream)||void 0===b?void 0:b.continueChatResult)||void 0===R?void 0:R.requestId)||"",reply:""},V],!1)));else{Ee(!1),V.content=null===(E=wt(null===(k=null===(w=null===(j=null==t?void 0:t.chatStream)||void 0===j?void 0:j.continueChatResult)||void 0===w?void 0:w.message)||void 0===k?void 0:k.content))||void 0===E?void 0:E.replaceAll("WaitMessage: ","");var J=null===(T=null===(M=null==t?void 0:t.chatStream)||void 0===M?void 0:M.continueChatResult)||void 0===T?void 0:T.requestId;"string"==typeof J&&J&&Q&&Q(J);var X=function(t,n,a){var s,i,o,r,u,d,c,h,v,m,f,g,p,C,_,x,S,y,b,R,j,w,k,E,M,T,I,A,N,D,q,L,F,W,B={role:"assistant",content:"",id:l.v4(),time:new Date,citations:[]};if(!1===(null===(i=null===(s=t.chatStream)||void 0===s?void 0:s.continueChatResult)||void 0===i?void 0:i.thinking_break)&&!0===(null===(r=null===(o=t.chatStream)||void 0===o?void 0:o.continueChatResult)||void 0===r?void 0:r.is_orchestrator)&&!1===(null===(d=null===(u=t.chatStream)||void 0===u?void 0:u.continueChatResult)||void 0===d?void 0:d.isEnd)&&(B.content=wt(t.chatStream.continueChatResult.message.content||"")),!0===(null===(h=null===(c=t.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===h?void 0:h.thinking_break)&&!0===(null===(m=null===(v=t.chatStream)||void 0===v?void 0:v.continueChatResult)||void 0===m?void 0:m.is_orchestrator)&&!1===(null===(g=null===(f=t.chatStream)||void 0===f?void 0:f.continueChatResult)||void 0===g?void 0:g.isEnd)&&(B.content="",n.push({responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1})),!1===(null===(C=null===(p=t.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===C?void 0:C.thinking_break)&&!0===(null===(x=null===(_=t.chatStream)||void 0===_?void 0:_.continueChatResult)||void 0===x?void 0:x.is_orchestrator)&&!0===(null===(y=null===(S=t.chatStream)||void 0===S?void 0:S.continueChatResult)||void 0===y?void 0:y.isEnd)&&(B.content=wt(t.chatStream.continueChatResult.message.content)),!1===(null===(R=null===(b=t.chatStream)||void 0===b?void 0:b.continueChatResult)||void 0===R?void 0:R.thinking_break)&&!1===(null===(w=null===(j=t.chatStream)||void 0===j?void 0:j.continueChatResult)||void 0===w?void 0:w.is_orchestrator)&&!1===(null===(E=null===(k=t.chatStream)||void 0===k?void 0:k.continueChatResult)||void 0===E?void 0:E.isEnd)){if((H=t.chatStream.continueChatResult).explainability_id&&H.responded_by){var z=H.explainability_id,P=H.responded_by;a.has(z)||a.set(z,{responded_by:P,index:n.length})}a.has(t.chatStream.continueChatResult.explainability_id)?n[null==(U=a.get(t.chatStream.continueChatResult.explainability_id))?void 0:U.index]={responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(M=t.chatStream.continueChatResult.explainability_id)&&void 0!==M?M:"",isParallelToolResponse:!0}:n=e.__spreadArray(e.__spreadArray([],n,!0),[{responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(T=t.chatStream.continueChatResult.explainability_id)&&void 0!==T?T:"",isParallelToolResponse:!1}],!1)}if(!0===(null===(A=null===(I=t.chatStream)||void 0===I?void 0:I.continueChatResult)||void 0===A?void 0:A.thinking_break)&&!1===(null===(D=null===(N=t.chatStream)||void 0===N?void 0:N.continueChatResult)||void 0===D?void 0:D.is_orchestrator)&&!1===(null===(L=null===(q=t.chatStream)||void 0===q?void 0:q.continueChatResult)||void 0===L?void 0:L.isEnd)){var H,U;(H=t.chatStream.continueChatResult).explainability_id&&H.responded_by&&(z=H.explainability_id,P=H.responded_by,a.has(z)||a.set(z,{responded_by:P,index:n.length})),a.has(t.chatStream.continueChatResult.explainability_id)?n[null==(U=a.get(t.chatStream.continueChatResult.explainability_id))?void 0:U.index]={responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(F=t.chatStream.continueChatResult.explainability_id)&&void 0!==F?F:"",isParallelToolResponse:!0}:n.push({responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(W=t.chatStream.continueChatResult.explainability_id)&&void 0!==W?W:"",isParallelToolResponse:!1})}return e.__assign({orchestratorAndAgentsMessages:n},B)}(t,a,n);X.time=new Date,X.citations=O,X.isEnd=null===(A=null===(I=null==t?void 0:t.chatStream)||void 0===I?void 0:I.continueChatResult)||void 0===A?void 0:A.isEnd,X.requestId=null===(D=null===(N=null==t?void 0:t.chatStream)||void 0===N?void 0:N.continueChatResult)||void 0===D?void 0:D.requestId,X.sessionId=ce.current,null===(q=X.orchestratorAndAgentsMessages)||void 0===q||q.forEach(function(e){e&&e.header_message&&yt(e)}),(""!==(null==X?void 0:X.content)||(null==X?void 0:X.orchestratorAndAgentsMessages)&&(null==X?void 0:X.orchestratorAndAgentsMessages.length)>0)&&(we(!1),be(e.__spreadArray(e.__spreadArray([],ye,!0),[{role:"user",content:i||"",time:s,isFirstQuestionSent:o||!1,id:r||(null===(F=null===(L=null==t?void 0:t.chatStream)||void 0===L?void 0:L.continueChatResult)||void 0===F?void 0:F.requestId)||"",requestId:null!==(z=null===(B=null===(W=null==t?void 0:t.chatStream)||void 0===W?void 0:W.continueChatResult)||void 0===B?void 0:B.requestId)&&void 0!==z?z:""},X],!1))),Ie(null===(H=null===(P=null==t?void 0:t.chatStream)||void 0===P?void 0:P.continueChatResult)||void 0===H?void 0:H.isEnd)}},Et=function(t,n,a,s,i,r){var d,c,h=(void 0!==a?a:_e||"").trim(),v="Enter"===(null==t?void 0:t.key)&&!(null==t?void 0:t.shiftKey);if(v&&(null===(d=null==t?void 0:t.preventDefault)||void 0===d||d.call(t)),!(!h||ze&&!a||(null==t?void 0:t.key)&&!v)){if("I want to add a rule description"===h){Ie(!1),fe.current=!0,Pe(!0),!Xe&&h&&Ye(a||"manual_entry");var m=new Date;return be(function(t){return e.__spreadArray(e.__spreadArray([],t.map(function(t,n){var a;return e.__assign(e.__assign({},t),{content:null===(a=wt(t.content))||void 0===a?void 0:a.replace("WaitMessage: ","")})}),!0),[{role:"user",content:h,time:m,isFirstQuestionSent:!1,id:i||l.v4()}],!1)}),bt("smooth"),void setTimeout(function(){be(function(t){return e.__spreadArray(e.__spreadArray([],t,!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:l.v4(),citations:[],time:new Date}],!1)}),bt("smooth"),setTimeout(function(){Pe(!1),Ie(!0)},500)},500)}Ie(!1),fe.current=!0,Pe(!0),!Xe&&h&&Ye(a||"manual_entry");var f=new Date,g=gt.current;be(function(t){var n=t.map(function(t){var n;return e.__assign(e.__assign({},t),{content:null===(n=wt(t.content))||void 0===n?void 0:n.replace("WaitMessage: ","")})});return i&&n.some(function(e){return e.id===i})?n.map(function(t){return t.id===i?e.__assign(e.__assign({},t),{content:h}):t}):e.__spreadArray(e.__spreadArray([],n,!0),[{role:"user",content:h,time:f,isFirstQuestionSent:!1,id:i||l.v4()}],!1)}),bt("smooth");var p=new Map,C=[],_={WEBSOCKET_URL:E,organizationName:o,chatAssistantName:de,selectedAIModel:"gpt-4",replyMessage:"",userName:"Guest User",userEmailId:"guestUser@example.com",userId:"Guest User",query:h,requestId:"requestId-".concat(l.v4()),customPrompt:"",enableForBackend:!1,guestSessionId:ce.current,chatPreviewId:he.current,customMetaData:F,aiModel:"",onStreamEvent:function(e){pt.current&>.current===g&&kt(e,p,C,f,h,n,i)},onStreamEnd:function(t){if(pt.current&>.current===g){Ie(!0),Pe(!1),et(!1);var n=Date.now(),a=mt.current.get(ft.current);if(a){var s=Math.round((n-a)/1e3).toFixed(1);be(function(t){var n=e.__spreadArray([],t,!0).reverse().findIndex(function(e){return"assistant"===e.role});if(-1===n)return t;var a=t.length-1-n;return t.map(function(t,n){return n===a?e.__assign(e.__assign({},t),{finalTimeTaken:s}):t})})}}},onError:function(e){pt.current&>.current===g&&(console.error("Stream error:",e),Ie(!0),Pe(!1),et(!1))}};if(h)we(!0),null===(c=pe.current)||void 0===c||c.blur(),xe(""),bt(),We(i?"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(_.requestId,Date.now()),ft.current=_.requestId,u.startChatStream(_);r&&r(!1)}},Mt=n.useRef(null);n.useLayoutEffect(function(){Mt.current=Et});var Tt=n.useCallback(function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return null===(t=Mt.current)||void 0===t?void 0:t.call.apply(t,e.__spreadArray([Mt],n,!1))},[]),It=n.useMemo(function(){return{p:function(n){n.node;var a=n.children;return e.__rest(n,["node","children"]),t.jsx("div",e.__assign({style:{margin:0,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"10px",fontFamily:"inherit"}},{children:a}))},button:function(n){n.node;var a=n.className,s=n.children,i=e.__rest(n,["node","className","children"]),o=_.extractTextFromChildren(s),r=i["data-value"],l=Xe===o||Xe===r,u=!!Xe,d="Tester Genie"===o;return t.jsx(m.ActionableButton,e.__assign({},i,{className:a,handleStream:Tt,isStreamEnd:Te,disabled:u,isLastMessage:!0,style:{margin:0},isTesterGenie:d,"data-selected":l?"true":Xe?"false":void 0},{children:t.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[s,d&&t.jsxs("svg",e.__assign({width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"}),t.jsx("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"})]}))]}))}))}}},[Tt,Te,Xe]),At=n.useMemo(function(){return ye.some(function(e){return e.isSkeleton})},[ye]),Nt=function(t){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(n){switch(n.label){case 0:return ue?[4,ue(t)]:[3,2];case 1:n.sent(),be(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[{role:"assistant",content:"Thanks for your feedback — this will help improve future suggestions.",id:l.v4(),citations:[],time:new Date,isEnd:!0}],!1)}),setTimeout(function(){return bt("smooth")},100),n.label=2;case 2:return[2]}})})};return console.log(ye,"rendering messages"),t.jsxs("div",e.__assign({className:"".concat(p.default.customFont," ").concat(g.default.chatContainer),style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:ie&&!At?"0 0 20px 5px rgba(37, 99, 235, 0.5)":"none"}},{children:[t.jsxs("div",e.__assign({ref:me,className:g.default.scrollWrapper},{children:[t.jsx("div",e.__assign({ref:st,className:g.default.stickyHeader},{children:t.jsx(c.default,{resetChatHistory:function(){var e="".concat(ve,"/api/chat/resetHistory?name=").concat(de,"&organizationName=").concat(o);try{var t={method:"GET",params:{guestSessionId:ce.current},withCredentials:!0};r.http.get(e,t).then(function(){M(!0),qe(""),Ye(null),it.current.clear(),he.current="".concat(l.v4()),be([]),Ne(!0),null==z||z(),A&&A()}).catch(function(e){console.error(e)}).finally(function(){ce.current="".concat(de,"-").concat(o,"-").concat(l.v4())})}catch(e){we(!1),console.error(e)}},isStreamEnd:Te,chatTitle:L,onResize:K,chatSize:Z,movingTowards:O})})),t.jsxs("div",e.__assign({className:g.default.messagesList},{children:[t.jsxs("div",e.__assign({className:g.default.initialMessageRow},{children:[t.jsx("div",e.__assign({className:g.default.iconWrapper},{children:t.jsx(S.default,{})})),t.jsx("div",e.__assign({className:g.default.welcomeTextWrapper},{children:t.jsx("div",e.__assign({className:g.default.welcomeMarkdownWrapper},{children:t.jsx("span",{children:t.jsx(w.default,e.__assign({rehypePlugins:[k.default],components:It},{children:H}))})}))}))]})),ye.length>0&&ye.map(function(n,a){return t.jsxs("div",e.__assign({className:g.default.messageRow},{children:["assistant"===n.role?t.jsx("div",e.__assign({className:g.default.assistantIconContainer},{children:t.jsx(S.default,{})})):t.jsx("div",{className:g.default.userSpacer}),t.jsx("div",e.__assign({className:g.default.messageContent},{children:"assistant"===n.role?t.jsxs(t.Fragment,{children:[n.orchestratorAndAgentsMessages&&n.orchestratorAndAgentsMessages.length>0&&t.jsx(d.WatchMeWork,{orchestratorAndAgentsMessages:null==n?void 0:n.orchestratorAndAgentsMessages,isStreamEnd:Te,finalTimeTaken:null==n?void 0:n.finalTimeTaken},null==n?void 0:n.id),t.jsx(h.default,{index:a,content:null==n?void 0:n.content,role:null==n?void 0:n.role,messages:ye,handleStream:Et,isLastMessage:a===ye.length-1,onSave:U,citations:null==n?void 0:n.citations,setChatSize:K,chatSize:Z,isStreamEnd:Te,messageIsEnd:null==n?void 0:n.isEnd,onViewComparison:re,onTypeResponseClick:function(){var e;ct(!0),null===(e=pe.current)||void 0===e||e.focus()},onComparisonLinkClick:le,baseURL:ve,onFeedbackSubmit:Nt}),t.jsx("div",e.__assign({className:g.default.timestamp},{children:n.time&&!isNaN(new Date(n.time).getTime())?new Date(n.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}):t.jsxs("div",e.__assign({className:g.default.userMessageWrapper},{children:[t.jsxs("div",e.__assign({className:g.default.userMessageBubble,style:{transition:"box-shadow 0.3s ease-in-out",boxShadow:n.isSkeleton||At||n.id!==rt?"none":"0 0 15px 3px rgba(37, 99, 235, 0.6)"}},{children:[n.isSkeleton?t.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"12px",minWidth:"280px",padding:"8px 0"}},{children:[t.jsx(v.Skeleton,{variant:"text",width:"100%",height:16}),t.jsx(v.Skeleton,{variant:"text",width:"80%",height:16})]})):t.jsx(h.default,{index:a,content:null==n?void 0:n.content,role:null==n?void 0:n.role,messages:ye,handleStream:Et,isLastMessage:a===ye.length-1,onSave:U,citations:null==n?void 0:n.citations,isStreamEnd:Te,messageIsEnd:null==n?void 0:n.isEnd,onViewComparison:re,onComparisonLinkClick:le,baseURL:ve,onFeedbackSubmit:Nt}),t.jsx("div",e.__assign({style:{marginTop:"0.5rem"}},{children:t.jsx(y.UserIcon,{})}))]})),t.jsx("div",e.__assign({className:g.default.userTimestamp},{children:new Date(n.time).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}))]}))}))]}),n.id)}),je&&t.jsxs("div",e.__assign({className:g.default.loadingRow},{children:[t.jsx("div",e.__assign({className:g.default.iconWrapper,style:{marginTop:"0.2rem"}},{children:t.jsx(S.default,{})})),t.jsx("div",e.__assign({className:g.default.loadingTextWrapper},{children:t.jsx("span",{children:Fe})}))]})),t.jsx("div",{ref:ge,style:{float:"left",clear:"both"}})]}))]})),t.jsxs("div",e.__assign({className:g.default.inputAreaWrapper},{children:[ze&&t.jsxs(a.Box,e.__assign({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:[t.jsx("span",{children:"Instant Learning AI is thinking"}),t.jsx(a.Box,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Ct," 1.4s infinite ease-in-out both"),animationDelay:"-0.32s"}}),t.jsx(a.Box,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Ct," 1.4s infinite ease-in-out both"),animationDelay:"-0.16s"}}),t.jsx(a.Box,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Ct," 1.4s infinite ease-in-out both")}})]})),t.jsx(j.default,e.__assign({title:q?"Please wait for the validation to be completed.":""},{children:t.jsxs("div",e.__assign({className:"".concat(g.default.inputBoxContainer," ").concat(xt?g.default.disabled:""),style:dt?{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:[ye.length>0&&!Oe&&t.jsx("div",e.__assign({onMouseDown:function(e){e.preventDefault(),bt("smooth")},className:g.default.scrollToBottomBtn},{children:t.jsx(C.ScrollToBottom,{})})),t.jsxs("div",e.__assign({style:{width:"100%",display:"flex"}},{children:[t.jsx("textarea",{ref:pe,placeholder:J,value:_e||"",onChange:function(e){xe(e.target.value)},onFocus:function(){return Ze(!0)},onBlur:function(){return Ze(!1)},onKeyDown:function(e){return Et(e)},disabled:xt,className:"no-scrollbar ".concat(g.default.chatTextarea),style:{minHeight:Ue?"120px":"50px",height:Ue?"120px":"50px",maxHeight:"120px"}}),t.jsx("span",e.__assign({className:g.default.sendButtonWrapper},{children:t.jsx("button",e.__assign({onClick:function(e){Et(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:St,className:"".concat(g.default.sendButton," ").concat(St?g.default.disabled:g.default.active)},{children:t.jsx(x.SendButton,{})}))}))]}))]}))}))]})),t.jsxs("div",e.__assign({className:g.default.footerTools},{children:[t.jsx(j.default,e.__assign({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:t.jsx("span",e.__assign({className:g.default.footerToolItem},{children:t.jsx(f.default,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),t.jsx(j.default,e.__assign({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:t.jsx("span",e.__assign({className:g.default.footerToolItem},{children:t.jsx(f.default,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=NormalChat.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),t=require("react"),n=require("../../organisms/TextSection/TextSection.js"),o=require("../../organisms/ScopeSection/ScopeSection.js"),s=require("../../organisms/ConditionSection/ConditionSection.js"),d=require("../../organisms/ConfigSection/ConfigSection.js"),a=require("../../InputDataReasoningCard.js"),l=require("../../_svg/ButtonCognitiveIcon.js");exports.BaseTemplate=function(r){var c,p,g,h,v,u,I,E,m,f,b,S,y,x,C,A,_,j,T,N,w,W,D,L,O,M,q,P,R,V,H,B,K,z=r.state,k=r.handlers,F=r.uiState,G=r.customNodes,J=void 0===G?{}:G,Q=t.useState({}),U=Q[0],X=Q[1],Y=t.useState(new Set),Z=Y[0],$=Y[1],ii=function(e){X(function(t){var n;return i.__assign(i.__assign({},t),((n={})[e]=!t[e],n))})},ei=function(i){var e,t=null===(e=z.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(t)&&t.length>0?t:z.citations||[]},ti={marginTop:"-17px",position:"relative",zIndex:1},ni=function(i){return!!F.isAiStreaming||(!!F.isReadOnly||!(!F.activeEditId||F.activeEditId.startsWith(i)))};return e.jsxs("div",i.__assign({className:"base-template-container",style:{display:"flex",flexDirection:"column",gap:"16px",width:"100%"}},{children:[J.top&&e.jsx("div",i.__assign({className:"custom-slot-top"},{children:J.top})),e.jsxs("div",i.__assign({className:"template-section"},{children:[e.jsx(n.TextSection,{id:"base-title",title:F.titleLabel||"Title",fieldName:F.titleLabel||"Title",rows:1,placeholder:"Enter a descriptive title",required:!0,value:z.title||"",onChange:k.onTitleChange,readOnly:ni("base-title"),isOpen:U.title,onToggle:function(){return ii("title")},isHighlighted:(null===(c=F.highlights)||void 0===c?void 0:c.get("title"))||!1,showCognitiveIcon:!!(null===(p=z.citation)||void 0===p?void 0:p.title),tooltipDescription:"Why this ".concat(F.titleLabel||"Title","?"),errorMessage:null===(g=F.validationErrors)||void 0===g?void 0:g.title,enableInlineEdit:!0,setSendMessageInChat:F.setSendMessageInChat,activeEditId:null!==(h=F.activeEditId)&&void 0!==h?h:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(v=F.pendingEditId)&&void 0!==v?v:null,setPendingEditId:F.setPendingEditId}),(null===(u=z.citation)||void 0===u?void 0:u.title)&&e.jsx("div",i.__assign({style:ti},{children:e.jsx(a.InputDataReasoningCard,{isVisible:U.title,citation:z.citation.title,citations:ei("title"),fieldName:F.titleLabel||"Title",fieldValue:z.title||""})}))]})),J.afterTitle&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterTitle})),F.showScope&&e.jsxs("div",i.__assign({className:"template-section"},{children:[e.jsx(o.ScopeSection,{id:"base-scope",title:F.scopeLabel||"",required:!1,scopeData:z.scopeData||{},onScopeChange:k.onScopeChange,openSections:Z,setOpenSections:$,stationOptions:F.stationOptions||[],tierOptions:F.tierOptions||[],tierLabel:F.tierLabel||"Where should this apply?",stationLabel:F.stationLabel||"Which scope should this belong to?",highlights:(null===(I=F.highlights)||void 0===I?void 0:I.get("scope"))||{},isOpen:U.scope,onToggle:function(){return ii("scope")},showCognitiveIcon:!!(null===(E=z.citation)||void 0===E?void 0:E.scope),cognitiveIcon:e.jsx(l.ButtonCognitiveIcon,{}),tooltipDescription:"Why this Scope?",errorMessage:(null===(m=F.validationErrors)||void 0===m?void 0:m.station)||(null===(f=F.validationErrors)||void 0===f?void 0:f.tiers),stationErrorMessage:null===(b=F.validationErrors)||void 0===b?void 0:b.station,tierErrorMessage:null===(S=F.validationErrors)||void 0===S?void 0:S.tiers,readOnly:ni("base-scope")}),(null===(y=z.citation)||void 0===y?void 0:y.scope)&&e.jsx("div",i.__assign({style:ti},{children:e.jsx(a.InputDataReasoningCard,{isVisible:U.scope,citation:z.citation.scope,citations:ei("scope"),fieldName:"Scope",fieldValue:(null===(C=null===(x=z.scopeData)||void 0===x?void 0:x.tiers)||void 0===C?void 0:C.join(", "))||""})}))]})),J.afterScope&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterScope})),e.jsxs("div",i.__assign({className:"template-section"},{children:[e.jsx(n.TextSection,{id:"base-description",title:F.descriptionLabel||"Description",fieldName:F.descriptionLabel||"Description",rows:3,placeholder:"Explain the behaviour or learning",required:!0,value:z.description||"",onChange:k.onDescriptionChange,readOnly:ni("base-description"),isOpen:U.description,onToggle:function(){return ii("description")},isHighlighted:(null===(A=F.highlights)||void 0===A?void 0:A.get("description"))||!1,showCognitiveIcon:!!(null===(_=z.citation)||void 0===_?void 0:_.description),tooltipDescription:"Why this ".concat(F.descriptionLabel||"Description","?"),errorMessage:null===(j=F.validationErrors)||void 0===j?void 0:j.description,enableInlineEdit:!0,setSendMessageInChat:F.setSendMessageInChat,activeEditId:null!==(T=F.activeEditId)&&void 0!==T?T:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(N=F.pendingEditId)&&void 0!==N?N:null,setPendingEditId:F.setPendingEditId}),(null===(w=z.citation)||void 0===w?void 0:w.description)&&e.jsx("div",i.__assign({style:ti},{children:e.jsx(a.InputDataReasoningCard,{isVisible:U.description,citation:z.citation.description,citations:ei("description"),fieldName:F.descriptionLabel||"Description",fieldValue:z.description||""})}))]})),J.afterDescription&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterDescription})),e.jsx("div",i.__assign({className:"template-section"},{children:e.jsx(s.ConditionSection,{id:"condition-wta-base",idPrefix:"condition-wta",title:F.whenToApplyLabel||"When to apply",required:!0,dividerRequired:!0,readOnly:ni("condition-wta"),conditions:z.whenToApplyConditions||[],onAdd:k.onAddWhenToApply,onRemove:function(i,e,t){return k.onRemoveWhenToApply(t)},onEdit:function(i,e,t,n){return k.onEditWhenToApply(t,n)},isHighlighted:(null===(W=F.highlights)||void 0===W?void 0:W.get("wta"))||!1,highlightedIds:F.highlightedIds,tooltipDescription:"Why this Condition?",citations:ei("whenToApply"),bordered:!0,addLabel:"Add ".concat(F.whenToApplyLabel||"When to apply"),isAiStreaming:F.isAiStreaming,errorMessage:(null===(D=F.validationErrors)||void 0===D?void 0:D.whenToApply)||F.conflictReason,index:0,tierKey:"base",activeEditId:null!==(L=F.activeEditId)&&void 0!==L?L:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(O=F.pendingEditId)&&void 0!==O?O:null,setPendingEditId:F.setPendingEditId,setSendMessageInChat:F.setSendMessageInChat})})),J.afterWhenToApply&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterWhenToApply})),e.jsx("div",i.__assign({className:"template-section"},{children:e.jsx(s.ConditionSection,{id:"condition-wnta-base",idPrefix:"condition-wnta",title:F.whenNotToApplyLabel||"When NOT to apply",required:!1,dividerRequired:!0,readOnly:ni("condition-wnta"),conditions:z.whenNotToApplyConditions||[],onAdd:k.onAddWhenNotToApply,onRemove:function(i,e,t){return k.onRemoveWhenToApply(t)},onEdit:function(i,e,t,n){return k.onEditWhenNotToApply(t,n)},isHighlighted:(null===(M=F.highlights)||void 0===M?void 0:M.get("wnta"))||!1,highlightedIds:F.highlightedIds,tooltipDescription:"Why this Condition?",citations:ei("whenNotToApply"),bordered:!0,addLabel:"Add ".concat(F.whenNotToApplyLabel||"When NOT to apply"),isAiStreaming:F.isAiStreaming,errorMessage:null===(q=F.validationErrors)||void 0===q?void 0:q.whenNotToApply,index:0,tierKey:"base",activeEditId:null!==(P=F.activeEditId)&&void 0!==P?P:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(R=F.pendingEditId)&&void 0!==R?R:null,setPendingEditId:F.setPendingEditId,setSendMessageInChat:F.setSendMessageInChat})})),J.afterWhenNotToApply&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterWhenNotToApply})),F.showConfiguration&&e.jsxs("div",i.__assign({className:"template-section"},{children:[e.jsx(d.ConfigSection,{id:"base-config",title:F.configLabel||"Configuration",required:!1,highlights:(null===(V=F.highlights)||void 0===V?void 0:V.get("config"))||{},bordered:!0,readOnly:ni("base-config"),onConfigChange:function(i,e){var t;return null===(t=k.onConfigChange)||void 0===t?void 0:t.call(k,i,e)},separationItems:F.separationItems||[],toggles:F.toggles||[],index:0,openSections:Z,setOpenSections:$,activeEditId:null!==(H=F.activeEditId)&&void 0!==H?H:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(B=F.pendingEditId)&&void 0!==B?B:null,setPendingEditId:F.setPendingEditId,isAiStreaming:F.isAiStreaming,setSendMessageInChat:F.setSendMessageInChat}),(null===(K=z.citation)||void 0===K?void 0:K.config)&&e.jsx("div",i.__assign({style:ti},{children:e.jsx(a.InputDataReasoningCard,{isVisible:U.config,citation:z.citation.config,citations:ei("config"),fieldName:F.configLabel||"Configuration",fieldValue:"Proposed Configuration"})}))]})),J.bottom&&e.jsx("div",i.__assign({className:"custom-slot-bottom"},{children:J.bottom}))]}))};
|
|
2
|
+
//# sourceMappingURL=BaseTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTemplate.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("lucide-react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=s(t),o=0,a=function(){return"cond-".concat(Date.now(),"-").concat(++o)},l="#CBD5E1",d="#9B8AFB",c="#7C3AED",g="#FDA29B",u="#344054",p="#1E293B",x="#334155",f="#64748B",h="#94A3B8",_="#98A2B3",y="#F04438",m="#8F2C23",b="#5925DC",j="#475569",v="#FFFFFF",w="#F8FAFC",C="#F1F5F9",F="#F9F5FF",k="#17B26A",S="#F04438",z="#64748B",D="6px",E="8px",A="Inter, sans-serif",B={width:38,height:38,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #D0D5DD",borderRadius:D,cursor:"pointer",background:v,flexShrink:0,transition:"background 0.15s"},R={width:"100%",boxSizing:"border-box",padding:"8px 11.5px",border:"1px solid #D0D5DD",borderRadius:D,fontSize:14,fontWeight:400,lineHeight:"100%",fontFamily:A,outline:"none",color:u,background:v},T={display:"flex",alignItems:"center",gap:4,marginBottom:8,color:u,fontSize:14,fontWeight:500,lineHeight:"130%",fontFamily:A},I={background:v,border:"1px solid ".concat(l),borderRadius:E,padding:16},W=n.jsx("span",e.__assign({style:{color:m,fontSize:12,lineHeight:1,display:"inline-flex",transform:"translateY(0.5px)"}},{children:"*"})),H={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"}},L=function(e){return e?Array.isArray(e)?e.filter(Boolean).join("\n"):e:""},M=function(e,n){if(!n&&!e)return"exact_match";if(!n)return"new_field";if(!e)return"new_field";var t=function(e){return e.trim().toLowerCase()};if(t(e)===t(n))return"exact_match";var i=new Set(t(e).split(/\s+/)),s=new Set(t(n).split(/\s+/));return Array.from(i).filter(function(e){return s.has(e)}).length/Math.max(i.size,s.size)>=.45?"partial_overlap":"conflict"},N=function(t){var i=t.relation,s=H[i];return n.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 9px",borderRadius:20,background:s.bg,border:"1px solid ".concat(s.border),fontSize:10,fontWeight:600,color:s.text,fontFamily:A,whiteSpace:"nowrap",flexShrink:0}},{children:[n.jsx("span",{style:{width:5,height:5,borderRadius:"50%",background:s.dot,flexShrink:0}}),s.label]}))},O=r.default.forwardRef(function(t,i){var s=t.label,r=t.value;return n.jsxs("div",e.__assign({ref:i,style:{display:"flex",flexDirection:"column"}},{children:[n.jsx("p",e.__assign({style:{margin:"0 0 5px 0",fontSize:12,color:f,fontFamily:A}},{children:s})),n.jsx("div",e.__assign({style:{flex:1,padding:"9px 12px",borderRadius:E,background:"#FFF3F2",border:"1px solid ".concat("#FECACA"),fontSize:13,lineHeight:"150%",color:r?p:h,fontFamily:A,fontStyle:r?"normal":"italic",wordBreak:"break-word",whiteSpace:"pre-wrap",minHeight:37}},{children:r||"—"}))]}))});O.displayName="FieldCell";var q=function(s){var r=s.formData,o=s.existingData,a=s.onClose,d=s.visible,c=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"),u=L(o.whenToApply),f=L(o.whenNotToApply),h=t.useMemo(function(){return[{label:"Title",proposed:r.name,existing:o.name||"",relation:M(r.name,o.name||"")},{label:"Description",proposed:r.description,existing:o.description||"",relation:M(r.description,o.description||"")},{label:"When to apply",proposed:c,existing:u,relation:M(c,u)},{label:"When NOT to Apply",proposed:g,existing:f,relation:g?M(g,f):f?"new_field":"exact_match"}]},[r.name,r.description,c,g,o.name,o.description,u,f]),_=h.reduce(function(e,n){return e[n.relation]=(e[n.relation]||0)+1,e},{}),y=t.useRef(null),m=t.useRef([]),j=t.useRef([]),w=t.useState([]),C=w[0],F=w[1];m.current=[],j.current=[];var k=t.useCallback(function(){if(y.current){var e=y.current.getBoundingClientRect(),n=[];h.forEach(function(t,i){var s=m.current[i],r=j.current[i];if(s&&r){s.style.height="auto",r.style.height="auto";var o=s.getBoundingClientRect(),a=r.getBoundingClientRect(),l=Math.max(o.height,a.height);s.style.height="".concat(l,"px"),r.style.height="".concat(l,"px");var d=s.getBoundingClientRect(),c=r.getBoundingClientRect(),g=d.top+d.height/2-e.top;n.push({x1:d.right-e.left,y1:g,x2:c.left-e.left,y2:g,relation:t.relation})}}),F(n)}},[h]);return t.useEffect(function(){var e=setTimeout(k,150);window.addEventListener("resize",k);var n=null;return y.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){return k()})})).observe(y.current),function(){clearTimeout(e),window.removeEventListener("resize",k),n&&n.disconnect()}},[k,d]),n.jsxs(n.Fragment,{children:[n.jsx("div",{onClick:a,style:{position:"absolute",inset:0,background:"rgba(15,23,42,0.18)",zIndex:10,opacity:d?1:0,transition:"opacity 0.25s ease",pointerEvents:d?"auto":"none"}}),n.jsxs("div",e.__assign({style:{position:"absolute",inset:0,background:v,zIndex:11,display:"flex",flexDirection:"column",transform:d?"translateX(0)":"translateX(100%)",transition:"transform 0.28s cubic-bezier(0.4,0,0.2,1)",borderRadius:E,overflow:"hidden"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",borderBottom:"1px solid ".concat(l),flexShrink:0,background:v}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[n.jsx("button",e.__assign({type:"button",onClick:a,style:e.__assign(e.__assign({},B),{width:32,height:32,border:"1px solid ".concat(l),borderRadius:D})},{children:n.jsx(i.ArrowLeft,{size:15,color:x})})),n.jsx("span",e.__assign({style:{fontSize:15,fontWeight:600,color:p,fontFamily:A,letterSpacing:"-0.01em"}},{children:"Category Comparison"}))]})),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"}},{children:Object.entries(_).map(function(t){var i=t[0],s=t[1];return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:4,padding:"3px 10px",borderRadius:20,background:H[i].bg,border:"1px solid ".concat(H[i].border),fontSize:11,fontWeight:600,color:H[i].text,fontFamily:A}},{children:[n.jsx("span",{style:{width:5,height:5,borderRadius:"50%",background:H[i].dot}}),s," ",H[i].label]}),i)})}))]})),n.jsx("div",e.__assign({style:{flex:1,overflowY:"auto",padding:16}},{children:n.jsxs("div",e.__assign({ref:y,style:{display:"grid",gridTemplateColumns:"1fr 140px 1fr",alignItems:"start",gap:"0",position:"relative"}},{children:[n.jsx("svg",e.__assign({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:C.map(function(t,i){var s=(t.x1+t.x2)/2,r=t.y1,o=H[t.relation];return n.jsxs("g",{children:[n.jsx("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:o.border,strokeWidth:"1.5"}),n.jsx("foreignObject",e.__assign({x:s-70,y:r-14,width:"140",height:"28"},{children:n.jsx("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:n.jsx(N,{relation:t.relation})}))}))]},i)})})),n.jsxs("div",e.__assign({style:{border:"1.5px dashed #CBD5E1",borderRadius:10,padding:14,display:"flex",flexDirection:"column",gap:14}},{children:[n.jsx("p",e.__assign({style:{margin:"0 0 2px 0",fontSize:13,fontWeight:600,color:p,fontFamily:A}},{children:"Category You're Creating"})),h.map(function(e,t){return n.jsx(O,{ref:function(e){m.current[t]=e},label:e.label,value:e.proposed},t)})]})),n.jsx("div",{}),n.jsxs("div",e.__assign({style:{border:"1.5px dashed #CBD5E1",borderRadius:10,padding:14,display:"flex",flexDirection:"column",gap:14}},{children:[n.jsxs("p",e.__assign({style:{margin:"0 0 2px 0",fontSize:13,fontWeight:600,color:b,fontFamily:A,display:"flex",alignItems:"center",gap:5}},{children:[n.jsx(i.Sparkles,{size:13,color:b}),"Existing Category"]})),h.map(function(e,t){return n.jsx(O,{ref:function(e){j.current[t]=e},label:e.label,value:e.existing},t)})]}))]}))}))]}))]})},K=function(t){var s=t.condition,r=t.index,o=t.isEditing,a=t.editText,c=t.onEditStart,p=t.onEditChange,x=t.onEditSave,f=t.onEditCancel,_=t.onRemove,y=t.readOnly,m=t.onBlurContainer,b={width:40,height:38,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderRight:"1px solid #D0D5DD",color:j,fontSize:14,fontFamily:A};return o?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12},onBlur:m},{children:[n.jsxs("div",e.__assign({style:{display:"flex",flex:1,alignItems:"center",background:v,border:"1px solid ".concat(d),borderRadius:E,overflow:"hidden"}},{children:[n.jsx("div",e.__assign({style:b},{children:r+1})),n.jsx("input",{type:"text",value:a,onChange:function(e){return p(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Enter"===e.key&&a.trim()?x():"Escape"===e.key&&f()},style:{flex:1,padding:"8px 11.5px",fontSize:14,fontFamily:A,color:u,border:"none",outline:"none",background:"transparent"}})]})),n.jsx("button",e.__assign({type:"button",disabled:!a.trim(),onClick:x,style:e.__assign(e.__assign({},B),{borderRadius:E,opacity:a.trim()?1:.5,cursor:a.trim()?"pointer":"not-allowed",background:a.trim()?v:w})},{children:n.jsx(i.Check,{size:18,color:k})})),n.jsx("button",e.__assign({type:"button",onClick:f,style:e.__assign(e.__assign({},B),{borderRadius:E})},{children:n.jsx(i.X,{size:18,color:S})}))]})):n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",flex:1,alignItems:"center",background:v,border:"1px solid #D0D5DD",borderRadius:E,overflow:"hidden",height:38}},{children:[n.jsx("div",e.__assign({style:e.__assign(e.__assign({},b),{height:"100%"})},{children:r+1})),n.jsx("div",e.__assign({style:{flex:1,padding:"0 11.5px",fontSize:14,fontFamily:A,display:"flex",alignItems:"center",height:"100%"}},{children:s.text?n.jsx("span",e.__assign({style:{color:u}},{children:s.text})):n.jsx("span",e.__assign({style:{color:h}},{children:"Enter condition"}))}))]})),!y&&n.jsxs(n.Fragment,{children:[n.jsx("button",e.__assign({type:"button",onClick:c,style:e.__assign(e.__assign({},B),{border:"1px solid ".concat(l),borderRadius:E})},{children:n.jsx(i.Pencil,{size:16,color:z})})),n.jsx("button",e.__assign({type:"button",onClick:_,style:e.__assign(e.__assign({},B),{border:"1px solid ".concat(g),borderRadius:E})},{children:n.jsx(i.Trash2,{size:16,color:S})}))]})]}))},P=function(t){var s=t.title,r=t.required,o=t.isExpanded,a=t.setIsExpanded,d=t.conditions,c=t.prefix,g=t.editingCondKey,p=t.editingCondText,x=t.setEditingCondKey,_=t.setEditingCondText,m=t.onAdd,j=t.onUpdate,v=t.onRemove,w=t.addLabel,C=t.readOnly,F=t.errorMessage,k=t.style,S=d.length>0;return n.jsxs("div",e.__assign({style:e.__assign({border:"1px solid ".concat(l),borderRadius:E,padding:16},k)},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8,cursor:S?"pointer":"default",userSelect:"none"},onClick:function(){S&&a(function(e){return!e})}},{children:[n.jsxs("label",e.__assign({style:e.__assign(e.__assign({},T),{marginBottom:0,cursor:S?"pointer":"default"})},{children:[r&&W,n.jsx("span",{children:s})]})),n.jsx("button",e.__assign({type:"button",style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"flex",alignItems:"center",transform:o?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s"}},{children:n.jsx(i.ChevronUp,{size:20,color:S?u:h})}))]})),o&&n.jsxs(n.Fragment,{children:[0===d.length&&n.jsx("p",e.__assign({style:{color:f,fontSize:14,fontStyle:"italic",fontWeight:300,fontFamily:A,margin:"0 0 12px 0"}},{children:"No conditions applied"})),n.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12,marginBottom:12}},{children:d.map(function(e,t){var i="".concat(c,"_").concat(e.id);return n.jsx(K,{condition:e,index:t,isEditing:g===i,editText:p,onEditStart:function(){x(i),_(e.text)},onEditChange:_,onEditSave:function(){p.trim()&&(j(e.id,p),x(null))},onEditCancel:function(){e.text?x(null):v(e.id)},onRemove:function(){return v(e.id)},readOnly:C,onBlurContainer:function(n){return function(e,n,t){if(!e.currentTarget.contains(e.relatedTarget)){var i="".concat(c,"_").concat(n);p.trim()||t?p.trim()&&j(n,p):v(n),g===i&&x(null)}}(n,e.id,e.text)}},e.id)})})),!C&&n.jsxs("button",e.__assign({type:"button",onClick:m,style:{display:"flex",alignItems:"center",gap:7,color:b,fontSize:14,fontWeight:500,fontFamily:A,background:"none",border:"none",cursor:"pointer",padding:0}},{children:[n.jsx(i.Plus,{size:16}),w]})),F&&n.jsx("p",e.__assign({style:{marginTop:8,color:y,fontSize:12,fontFamily:A,margin:"8px 0 0 0"}},{children:F}))]})]}))},U=function(s){var r=s.state,o=s.handlers,d=s.uiState,m=r.formData,w=r.nameLabel,H=void 0===w?"Category Name":w,L=r.namePlaceholder,M=void 0===L?"Enter category name":L,N=o.setFormData,O=d.readOnly,K=void 0!==O&&O,U=d.isAiStreaming,X=void 0!==U&&U;d.setActiveEditId,d.setSendMessageInChat;var Y=d.validationErrors,V=void 0===Y?{}:Y,Z=d.addExampleBtnRef,G=d.comparisonData,J=void 0===G?null:G,Q=d.onComparisonClose,$=t.useState(null),ee=$[0],ne=$[1],te=t.useState(""),ie=te[0],se=te[1],re=t.useState(null),oe=re[0],ae=re[1],le=t.useState(""),de=le[0],ce=le[1],ge=t.useState(!0),ue=ge[0],pe=ge[1],xe=t.useState(!0),fe=xe[0],he=xe[1],_e=t.useState(null),ye=_e[0],me=_e[1],be=t.useState(""),je=be[0],ve=be[1],we=t.useState(""),Ce=we[0],Fe=we[1],ke=t.useState([]),Se=ke[0],ze=ke[1],De=t.useState(!1),Ee=De[0],Ae=De[1],Be=t.useRef(null),Re=t.useState(!1),Te=Re[0],Ie=Re[1],We=t.useRef(X);t.useEffect(function(){J?requestAnimationFrame(function(){return Ae(!0)}):Ae(!1)},[J]),t.useEffect(function(){We.current&&!X&&Te&&Ie(!1),We.current=X},[X,Te]);var He=K,Le=t.useCallback(function(n,t){return N(function(i){var s;return e.__assign(e.__assign({},i),((s={})[n]=t,s))})},[N]),Me=function(n){var t=a();N(function(i){var s;return e.__assign(e.__assign({},i),((s={})[n]=e.__spreadArray(e.__spreadArray([],i[n],!0),[{id:t,text:""}],!1),s))}),ae("".concat("whenToApply"===n?"wta":"wnta","_").concat(t)),ce(""),"whenToApply"!==n||ue||pe(!0),"whenNotToApply"!==n||fe||he(!0)},Ne=function(n,t,i){return N(function(s){var r;return e.__assign(e.__assign({},s),((r={})[n]=s[n].map(function(n){return n.id===t?e.__assign(e.__assign({},n),{text:i}):n}),r))})},Oe=function(n,t){return N(function(i){var s;return e.__assign(e.__assign({},i),((s={})[n]=i[n].filter(function(e){return e.id!==t}),s))})},qe=function(n){return ze(function(t){return t.includes(n)?t.filter(function(e){return e!==n}):e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)})},Ke=t.useCallback(function(){var n=a();N(function(t){return e.__assign(e.__assign({},t),{occurrences:e.__spreadArray(e.__spreadArray([],t.occurrences||[],!0),[{id:n,title:"",description:""}],!1)})}),me(n),ve(""),Fe(""),ze(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)})},[N]),Pe=t.useCallback(function(){Ae(!1),setTimeout(function(){null==Q||Q()},280)},[Q]),Ue=function(t){return n.jsxs("button",e.__assign({ref:t?void 0:Z,type:"button",disabled:t,onClick:Ke,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.jsx(i.Plus,{size:14,color:b}),n.jsx("span",e.__assign({style:{color:b,fontSize:14,fontWeight:500,fontFamily:A}},{children:"Add example"}))]}))};return n.jsxs("div",e.__assign({style:{flex:1,overflowY:"auto",position:"relative"}},{children:[J&&n.jsx(q,{formData:m,existingData:J,onClose:Pe,visible:Ee}),Te&&X&&n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",color:"#141414",fontSize:13,fontWeight:500,fontStyle:"italic",marginBottom:12,paddingLeft:4,fontFamily:A}},{children:[n.jsx(i.Loader2Icon,{size:16,style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Updating category details..."]})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},I),{marginBottom:12})},{children:[n.jsxs("div",e.__assign({style:{marginBottom:12}},{children:[n.jsxs("label",e.__assign({style:T},{children:[W,n.jsx("span",{children:H})]})),He&&"name"!==ee?n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12}},{children:n.jsx("div",e.__assign({style:{flex:1,padding:"10px 14px",border:"1px solid #D0D5DD",borderRadius:D,fontSize:14,background:v,minHeight:42,display:"flex",alignItems:"center"}},{children:m.name?n.jsx("span",e.__assign({style:{color:u}},{children:m.name})):n.jsx("span",e.__assign({style:{color:_}},{children:M}))}))})):He&&"name"===ee?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12}},{children:[n.jsx("input",{type:"text",value:ie,onChange:function(e){return se(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Enter"===e.key?(Le("name",ie),ne(null)):"Escape"===e.key&&ne(null)},placeholder:M,style:e.__assign(e.__assign({},R),{flex:1,width:"auto",border:"1px solid ".concat(c)})}),n.jsx("button",e.__assign({type:"button",onClick:function(){Le("name",ie),ne(null)},style:B},{children:n.jsx(i.Check,{size:18,color:k})})),n.jsx("button",e.__assign({type:"button",onClick:function(){return ne(null)},style:B},{children:n.jsx(i.X,{size:18,color:S})}))]})):n.jsx("input",{type:"text",value:m.name,onChange:function(e){return Le("name",e.target.value)},placeholder:M,disabled:X,style:e.__assign(e.__assign({},R),{opacity:X?.6:1,cursor:X?"not-allowed":"text"})}),(null==V?void 0:V.name)&&n.jsx("p",e.__assign({style:{marginTop:4,color:y,fontSize:12,fontFamily:A,margin:"4px 0 0 0"}},{children:V.name}))]})),n.jsxs("div",e.__assign({style:{marginBottom:12}},{children:[n.jsxs("label",e.__assign({style:T},{children:[W,n.jsx("span",{children:"Category Description"})]})),He&&"description"!==ee?n.jsx("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:12}},{children:n.jsx("div",e.__assign({style:{flex:1,padding:"12px 14px",border:"1px solid #D0D5DD",borderRadius:D,fontSize:14,background:v,minHeight:80}},{children:m.description?n.jsx("span",e.__assign({style:{color:u,whiteSpace:"pre-wrap"}},{children:m.description})):n.jsx("span",e.__assign({style:{color:_}},{children:"Describe when this category should be applied"}))}))})):He&&"description"===ee?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:12}},{children:[n.jsx("textarea",{value:ie,onChange:function(e){return se(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Escape"===e.key&&ne(null)},placeholder:"Enter Description",rows:4,style:e.__assign(e.__assign({},R),{flex:1,width:"auto",border:"1px solid ".concat(c),resize:"none",lineHeight:"140%"})}),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:8}},{children:[n.jsx("button",e.__assign({type:"button",onClick:function(){Le("description",ie),ne(null)},style:B},{children:n.jsx(i.Check,{size:18,color:k})})),n.jsx("button",e.__assign({type:"button",onClick:function(){return ne(null)},style:B},{children:n.jsx(i.X,{size:18,color:S})}))]}))]})):n.jsx("textarea",{value:m.description,onChange:function(e){return Le("description",e.target.value)},placeholder:"Describe when this category should be applied.",disabled:X,style:e.__assign(e.__assign({},R),{height:60,paddingTop:7,paddingBottom:10.5,border:"1px solid ".concat(l),lineHeight:"140%",resize:"none",boxShadow:"0 1px 2px 0 rgba(18,18,23,0.05)",opacity:X?.6:1,cursor:X?"not-allowed":"text"})}),(null==V?void 0:V.description)&&n.jsx("p",e.__assign({style:{marginTop:4,color:y,fontSize:12,fontFamily:A,margin:"4px 0 0 0"}},{children:V.description}))]})),n.jsx(P,{title:"When to Apply",required:!0,isExpanded:ue,setIsExpanded:pe,conditions:m.whenToApply,prefix:"wta",editingCondKey:oe,editingCondText:de,setEditingCondKey:ae,setEditingCondText:ce,onAdd:function(){return Me("whenToApply")},onUpdate:function(e,n){return Ne("whenToApply",e,n)},onRemove:function(e){return Oe("whenToApply",e)},addLabel:"Add When to Apply",readOnly:X||K,errorMessage:null==V?void 0:V.whenToApply,style:{marginBottom:12}}),n.jsx(P,{title:"When NOT to Apply",required:!1,isExpanded:fe,setIsExpanded:he,conditions:m.whenNotToApply,prefix:"wnta",editingCondKey:oe,editingCondText:de,setEditingCondKey:ae,setEditingCondText:ce,onAdd:function(){return Me("whenNotToApply")},onUpdate:function(e,n){return Ne("whenNotToApply",e,n)},onRemove:function(e){return Oe("whenNotToApply",e)},addLabel:"Add When NOT to Apply",readOnly:X||K,errorMessage:null==V?void 0:V.whenNotToApply})]})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},I),{marginTop:12})},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12}},{children:[n.jsxs("div",{children:[n.jsxs("h4",e.__assign({style:{color:p,fontSize:14,fontWeight:500,lineHeight:"120%",letterSpacing:"0.02em",fontFamily:A,margin:"0 0 4px 0"}},{children:["Example (",(m.occurrences||[]).length,")"]})),n.jsx("p",e.__assign({style:{color:f,fontSize:12,fontWeight:300,lineHeight:"120%",letterSpacing:"0.02em",fontFamily:A,margin:0}},{children:"Add real examples to help the system understand this category"}))]}),(m.occurrences||[]).length>0&&!K&&Ue(null!==ye||X)]})),0===(m.occurrences||[]).length?n.jsxs("div",e.__assign({style:{border:"1px solid ".concat(l),borderRadius:E,background:v,padding:"24px 12px 12px",minHeight:181,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"}},{children:[n.jsx("div",e.__assign({style:{marginBottom:16}},{children:n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 56 56",fill:"none"},{children:[n.jsx("rect",{x:"4",y:"4",width:"48",height:"48",rx:"24",fill:"#F1F5F9"}),n.jsx("rect",{x:"4",y:"4",width:"48",height:"48",rx:"24",stroke:"#F8FAFC",strokeWidth:"8"}),n.jsx("rect",{width:"24",height:"24",transform:"translate(16 16)",fill:"#F1F5F9"}),n.jsx("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.jsx("p",e.__assign({style:{color:x,fontSize:12,fontWeight:500,lineHeight:"120%",fontFamily:A,margin:"0 0 8px 0"}},{children:"No example added yet"})),n.jsx("p",e.__assign({style:{color:f,fontSize:14,fontWeight:300,lineHeight:"140%",fontFamily:A,margin:"0 0 8px 0",maxWidth:530}},{children:"Add an example to show how this category is used, or generate one using chat."})),!K&&Ue(null!==ye||X)]})):n.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12}},{children:(m.occurrences||[]).map(function(t,s){var r=Se.includes(t.id);return ye===t.id?n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12,border:"1px solid ".concat(l),borderRadius:E,background:v,padding:16,boxShadow:"0 1px 3px rgba(0,0,0,0.07)"}},{children:[n.jsxs("div",{children:[n.jsx("label",e.__assign({style:e.__assign(e.__assign({},T),{marginBottom:8})},{children:n.jsx("span",e.__assign({style:{color:x}},{children:"Title/Subject"}))})),n.jsx("input",{type:"text",value:je,onChange:function(e){return ve(e.target.value)},placeholder:"e.g., Follow-up on client feedback from last meeting",style:e.__assign(e.__assign({},R),{border:"1px solid ".concat(l),lineHeight:"140%"})})]}),n.jsxs("div",{children:[n.jsxs("label",e.__assign({style:{display:"flex",alignItems:"center",gap:4,marginBottom:8}},{children:[n.jsx("span",e.__assign({style:{color:x,fontSize:14,fontWeight:500,fontFamily:A}},{children:"Message body"})),W]})),n.jsx("textarea",{ref:function(e){e&&ye===t.id&&!Be.current&&(Be.current=e),e&&(e.style.height="auto",e.style.height="".concat(e.scrollHeight,"px"))},value:Ce,onChange:function(e){Fe(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.__assign(e.__assign({},R),{border:"1px solid ".concat(l),overflow:"hidden",minHeight:60,lineHeight:"140%",resize:"none"})})]}),n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"flex-end",gap:12,marginTop:4}},{children:[n.jsx("button",e.__assign({type:"button",onClick:function(){t.title||t.description||N(function(n){return e.__assign(e.__assign({},n),{occurrences:(n.occurrences||[]).filter(function(e){return e.id!==t.id})})}),me(null),Be.current=null},style:{padding:"6px 12px",color:j,fontSize:14,fontWeight:500,lineHeight:"140%",fontFamily:A,background:"none",border:"none",cursor:"pointer",borderRadius:D}},{children:"Cancel"})),n.jsx("button",e.__assign({type:"button",disabled:!Ce.trim(),onClick:function(){var n;Ce.trim()&&(n=t.id,N(function(t){return e.__assign(e.__assign({},t),{occurrences:t.occurrences.map(function(t){return t.id===n?e.__assign(e.__assign({},t),{title:je,description:Ce}):t})})}),me(null),Be.current=null,ze(function(e){return e.filter(function(e){return e!==t.id})}))},style:{padding:"6px 12px",borderRadius:D,fontSize:14,fontWeight:500,lineHeight:"140%",fontFamily:A,cursor:Ce.trim()?"pointer":"not-allowed",background:Ce.trim()?F:v,border:"1px solid ".concat(Ce.trim()?F:"#E2E8F0"),color:Ce.trim()?b:h,transition:"background 0.15s"}},{children:"Save"}))]}))]}),t.id):n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",border:"1px solid #E2E8F0",borderRadius:E,background:v,overflow:"hidden",boxShadow:"0 1px 3px rgba(0,0,0,0.07)"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12,padding:12}},{children:[n.jsx("div",e.__assign({style:{width:20,height:20,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:C,borderRadius:D,color:j,fontSize:10,fontWeight:500,fontFamily:A}},{children:s+1})),n.jsx("div",e.__assign({style:{flex:1,fontSize:15,fontWeight:500,lineHeight:"140%",fontFamily:A,color:x,wordBreak:"break-word"}},{children:t.title||n.jsx("span",e.__assign({style:{color:h,fontWeight:400,fontSize:14}},{children:"Untitled example"}))})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:8,flexShrink:0}},{children:[!K&&n.jsxs(n.Fragment,{children:[n.jsx("button",e.__assign({type:"button",disabled:null!==ye||X,onClick:function(){me(t.id),ve(t.title),Fe(t.description),r||qe(t.id)},style:e.__assign(e.__assign({},B),{width:36,height:36,border:"1px solid #E2E8F0",borderRadius:D,opacity:null!==ye||X?.5:1,cursor:null!==ye||X?"not-allowed":"pointer"})},{children:n.jsx(i.Pencil,{size:16,color:z})})),n.jsx("button",e.__assign({type:"button",disabled:null!==ye||X,onClick:function(){return N(function(n){return e.__assign(e.__assign({},n),{occurrences:(n.occurrences||[]).filter(function(e){return e.id!==t.id})})})},style:e.__assign(e.__assign({},B),{width:36,height:36,border:"1px solid ".concat(g),borderRadius:D,opacity:null!==ye||X?.5:1,cursor:null!==ye||X?"not-allowed":"pointer"})},{children:n.jsx(i.Trash2,{size:16,color:S})}))]}),n.jsx("button",e.__assign({type:"button",onClick:function(){return qe(t.id)},style:e.__assign(e.__assign({},B),{width:36,height:36,border:"none",background:"transparent"})},{children:r?n.jsx(i.ChevronUp,{size:20,color:z}):n.jsx(i.ChevronDown,{size:20,color:z})}))]}))]})),r&&n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",padding:"4px 12px 16px"}},{children:[n.jsxs("div",e.__assign({style:{marginBottom:12}},{children:[n.jsx("p",e.__assign({style:{color:f,fontSize:13,lineHeight:"140%",fontFamily:A,margin:"0 0 4px 0"}},{children:"Title/Subject:"})),n.jsx("p",e.__assign({style:{color:p,fontSize:14,fontWeight:300,lineHeight:"150%",fontFamily:A,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0}},{children:t.title||n.jsx("span",e.__assign({style:{color:h,fontStyle:"italic"}},{children:"—"}))}))]})),n.jsxs("div",{children:[n.jsx("p",e.__assign({style:{color:f,fontSize:13,lineHeight:"140%",fontFamily:A,margin:"0 0 4px 0"}},{children:"Message body:"})),n.jsx("p",e.__assign({style:{color:p,fontSize:14,fontWeight:300,lineHeight:"150%",fontFamily:A,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0}},{children:t.description}))]})]}))]}),t.id)})}))]}))]}))};exports.CreateCategory=U,exports.default=U;
|
|
2
|
+
//# sourceMappingURL=CreateCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateCategory.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),t=require("../../organisms/ConditionSection/ConditionSection.js"),o=require("../../organisms/TextSection/TextSection.js");exports.WorkflowComposer=function(l){var r,d,s,u=l.state,a=l.handlers,p=l.uiState,g=(null==p?void 0:p.highlights)||{},h=n.useState({}),c=h[0],v=h[1],y=function(e){v(function(n){var t;return i.__assign(i.__assign({},n),((t={})[e]=!n[e],t))})},T=function(i){var e,n=null===(e=u.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(n)&&n.length>0?n:u.citations};return e.jsx("div",i.__assign({className:"simple-guideline-template"},{children:e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[e.jsx(o.TextSection,i.__assign({id:"guideline-title",title:"Guideline Title",rows:1,placeholder:"Enter a short, descriptive title for the guideline",required:!0,value:u.guidelineTitle,onChange:a.setGuidelineTitle,readOnly:null==p?void 0:p.isAiStreaming,isOpen:c.guidelineTitle,onToggle:function(){return y("guidelineTitle")},isHighlighted:g.guidelineTitle||!1,tooltipDescription:"Why this Title?",errorMessage:null===(r=null==p?void 0:p.validationErrors)||void 0===r?void 0:r.guidelineTitle},p)),e.jsx(o.TextSection,i.__assign({id:"guideline-description",title:"Guideline Description",rows:4,placeholder:"Describe what this guideline enforces or ensures",required:!0,value:u.guidelineDescription,onChange:a.setGuidelineDescription,readOnly:null==p?void 0:p.isAiStreaming,isOpen:c.guidelineDescription,onToggle:function(){return y("guidelineDescription")},isHighlighted:g.guidelineDescription||!1,tooltipDescription:"Why this Description?",errorMessage:null===(d=null==p?void 0:p.validationErrors)||void 0===d?void 0:d.guidelineDescription},p)),e.jsx(t.ConditionSection,i.__assign({id:"when-to-apply",title:"When to apply",required:!0,dividerRequired:!0,readOnly:null==p?void 0:p.isAiStreaming,conditions:u.whenToApplyConditions||[],onAdd:function(){return a.addWhenToApply()},onRemove:function(i,e,n){return a.removeWhenToApply(n)},onEdit:function(i,e,n,t){return a.editWhenToApply(n,t)},index:0,tierKey:"default",isHighlighted:g.wta||!1,highlightedIds:null==p?void 0:p.highlightedIds,tooltipDescription:"Why this Condition?",citations:T("whenToApply"),bordered:!0,addLabel:"Add When to apply",isAiStreaming:null==p?void 0:p.isAiStreaming,errorMessage:null===(s=null==p?void 0:p.validationErrors)||void 0===s?void 0:s.whenToApply},p)),e.jsx(t.ConditionSection,i.__assign({id:"when-not-to-apply",title:"When NOT to apply",required:!1,dividerRequired:!0,readOnly:null==p?void 0:p.isAiStreaming,conditions:u.whenNotToApplyConditions||[],onAdd:function(){return a.addWhenNotToApply()},onRemove:function(i,e,n){return a.removeWhenNotToApply(n)},onEdit:function(i,e,n,t){return a.editWhenNotToApply(n,t)},index:0,tierKey:"default",isHighlighted:g.wnta||!1,highlightedIds:null==p?void 0:p.highlightedIds,tooltipDescription:"Why this Condition?",citations:T("whenNotToApply"),bordered:!0,addLabel:"Add When NOT to apply",isAiStreaming:null==p?void 0:p.isAiStreaming},p))]}))}))};
|
|
2
|
+
//# sourceMappingURL=WorkflowComposer.js.map
|
package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowComposer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),i=require("./Cart.styles.js");function r(e){try{var t=new Date(e),n=t.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),s=t.toLocaleDateString("en-GB").replace(/\//g,"/");return"Added on - ".concat(n," | ").concat(s)}catch(t){return e}}function a(a){var l=a.items,d=a.onRemove,c=a.onProceed,u=n.useState(new Set),o=u[0],_=u[1];n.useEffect(function(){1!==l.length?_(function(t){var n=new Set(l.map(function(e){return e.instant_learning_id})),s=new Set(e.__spreadArray([],t,!0).filter(function(e){return n.has(e)}));return s.size===t.size?t:s}):_(new Set([l[0].instant_learning_id]))},[l]);var f=l.filter(function(e){return o.has(e.instant_learning_id)});return t.jsxs("section",e.__assign({style:i.default.cartSection},{children:[t.jsxs("div",e.__assign({style:i.default.cartHeaderRow},{children:[t.jsx("p",e.__assign({style:i.default.cartTitle},{children:"Guideline Cart"})),t.jsxs("span",e.__assign({style:i.default.cartBadge},{children:[l.length," Added"]}))]})),t.jsx("p",e.__assign({style:i.default.cartDescription},{children:l.length>1?"Click items to select them for this session":"Selected for this session"})),t.jsx("div",e.__assign({style:i.default.cartBody},{children:t.jsx("div",e.__assign({style:i.default.cartList},{children:0===l.length?t.jsx("div",e.__assign({style:i.default.emptyState},{children:"No guidelines added yet"})):l.map(function(n){var a=o.has(n.instant_learning_id);return t.jsxs("div",e.__assign({style:a?i.default.cartItemSelected:i.default.cartItem,onClick:function(){return e=n.instant_learning_id,void _(function(t){var n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});var e}},{children:[t.jsxs("div",e.__assign({style:i.default.cartItemTop},{children:[t.jsxs("div",e.__assign({style:i.default.cartItemTopLeft},{children:[t.jsx("span",e.__assign({style:a?i.default.cartCheckbox:i.default.cartCheckboxEmpty},{children:a&&t.jsx(s.Check,{size:12,strokeWidth:3})})),t.jsx("p",e.__assign({style:i.default.cartItemName},{children:n.instant_learning_title}))]})),t.jsxs("div",e.__assign({style:i.default.cartItemIcons},{children:[t.jsx(s.Eye,{size:16,strokeWidth:2}),t.jsx("button",e.__assign({type:"button",style:i.default.removeBtn,onClick:function(e){return function(e,t){e.stopPropagation(),_(function(e){if(!e.has(t))return e;var n=new Set(e);return n.delete(t),n}),d(t)}(e,n.instant_learning_id)}},{children:t.jsx(s.X,{size:16,strokeWidth:2})}))]}))]})),t.jsx("p",e.__assign({style:i.default.cartItemDescription},{children:n.instant_learning_description})),t.jsx("p",e.__assign({style:i.default.cartItemDate},{children:r(n.created_at)}))]}),n.instant_learning_id)})}))})),t.jsx("button",e.__assign({type:"button",style:f.length>0?i.default.proceedButton:i.default.proceedButtonDisabled,disabled:0===f.length,onClick:function(){return f.length>0&&c(f)}},{children:t.jsxs("span",{children:["Proceed with Selected",f.length>1?" (".concat(f.length,")"):""]})}))]}))}exports.Cart=a,exports.default=a;
|
|
2
|
+
//# sourceMappingURL=Cart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cart.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default={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"}};
|
|
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
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),s=require("lucide-react"),i=require("./GuidelineCard.styles.js");function n(e){try{var t=new Date(e),s=t.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),i=t.toLocaleDateString("en-GB").replace(/\//g,"/");return"Added on - ".concat(s," | ").concat(i)}catch(t){return e}}function r(r){var d=r.guideline,l=r.inCart,a=r.onToggleCart,o=r.onExplore;return t.jsxs("div",e.__assign({style:i.default.card},{children:[t.jsxs("div",e.__assign({style:i.default.cardTop},{children:[t.jsxs("div",e.__assign({style:i.default.cardTopLeft},{children:[t.jsx(s.BookOpen,{size:18,strokeWidth:2,color:"#6D5BFF"}),t.jsx("p",e.__assign({style:i.default.cardTitle},{children:d.instant_learning_title}))]})),t.jsxs("div",e.__assign({style:i.default.cardTopIcons},{children:[t.jsx(s.Eye,{size:16,strokeWidth:2}),t.jsx(s.MoreVertical,{size:16,strokeWidth:2}),t.jsx(s.UserCheck,{size:16,strokeWidth:2})]}))]})),t.jsx("p",e.__assign({style:i.default.cardDescription},{children:d.instant_learning_description})),t.jsx("p",e.__assign({style:i.default.cardDate},{children:n(d.created_at)})),t.jsxs("div",e.__assign({style:i.default.cardActionsRow},{children:[t.jsxs("button",e.__assign({type:"button",style:i.default.exploreButton,onClick:function(){return null==o?void 0:o(d)}},{children:[t.jsx(s.Compass,{size:15,strokeWidth:2.4}),t.jsx("span",{children:"Explore"})]})),l?t.jsxs("button",e.__assign({type:"button",style:i.default.cardAddedButton,onClick:function(){return a(d)}},{children:[t.jsx(s.Check,{size:16,strokeWidth:2.4}),t.jsx("span",{children:"Selected"})]})):t.jsxs("button",e.__assign({type:"button",style:i.default.cardAddButton,onClick:function(){return a(d)}},{children:[t.jsx(s.Plus,{size:16,strokeWidth:2.4}),t.jsx("span",{children:"Select"})]}))]}))]}))}exports.GuidelineCard=r,exports.default=r;
|
|
2
|
+
//# sourceMappingURL=GuidelineCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default={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}};
|
|
2
|
+
//# sourceMappingURL=GuidelineCard.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuidelineCard.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|