@e-llm-studio/instant-learning 1.3.0-alpha.99 → 1.3.0-beta.0
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/README.md +5 -3
- package/dist/ComponentRegistry.js +2 -0
- package/dist/ComponentRegistry.js.map +1 -0
- package/dist/ContinueWithTemplateModal.js +2 -0
- package/dist/ContinueWithTemplateModal.js.map +1 -0
- package/dist/ContinueWithTemplateModal.module.css.js +2 -0
- package/dist/ContinueWithTemplateModal.module.css.js.map +1 -0
- package/dist/ILMarketplaceWrapper.js +2 -0
- package/dist/ILMarketplaceWrapper.js.map +1 -0
- package/dist/ILMarketplaceWrapper.module.css.js +2 -0
- package/dist/ILMarketplaceWrapper.module.css.js.map +1 -0
- package/dist/api/transport.js +2 -0
- package/dist/api/transport.js.map +1 -0
- package/dist/assets/csbrainicon.svg.js +2 -0
- package/dist/assets/csbrainicon.svg.js.map +1 -0
- package/dist/cjs/ComponentRegistry.js +2 -0
- package/dist/cjs/ComponentRegistry.js.map +1 -0
- package/dist/cjs/ContinueWithTemplateModal.js +2 -0
- package/dist/cjs/ContinueWithTemplateModal.js.map +1 -0
- package/dist/cjs/ContinueWithTemplateModal.module.css.js +2 -0
- package/dist/cjs/ContinueWithTemplateModal.module.css.js.map +1 -0
- package/dist/cjs/ILMarketplaceWrapper.js +2 -0
- package/dist/cjs/ILMarketplaceWrapper.js.map +1 -0
- package/dist/cjs/ILMarketplaceWrapper.module.css.js +2 -0
- package/dist/cjs/ILMarketplaceWrapper.module.css.js.map +1 -0
- package/dist/cjs/api/transport.js +2 -0
- package/dist/cjs/api/transport.js.map +1 -0
- package/dist/cjs/assets/csbrainicon.svg.js +2 -0
- package/dist/cjs/assets/csbrainicon.svg.js.map +1 -0
- package/dist/cjs/features/CognitiveSearch/CitationComponentMarkdownRender.js +2 -0
- package/dist/cjs/features/CognitiveSearch/CitationComponentMarkdownRender.js.map +1 -0
- package/dist/cjs/features/CognitiveSearch/CognitiveSearchErrorBoundary.js +2 -0
- package/dist/cjs/features/CognitiveSearch/CognitiveSearchErrorBoundary.js.map +1 -0
- package/dist/cjs/features/CognitiveSearch/CognitiveSearchResultCard.js +2 -0
- package/dist/cjs/features/CognitiveSearch/CognitiveSearchResultCard.js.map +1 -0
- package/dist/cjs/features/CognitiveSearch/CognitiveSearchResultCard.module.css.js +2 -0
- package/dist/cjs/features/CognitiveSearch/CognitiveSearchResultCard.module.css.js.map +1 -0
- package/dist/cjs/features/CognitiveSearch/CognitiveSearchWrapper.module.css.js +2 -0
- package/dist/cjs/features/CognitiveSearch/CognitiveSearchWrapper.module.css.js.map +1 -0
- package/dist/cjs/features/CognitiveSearch/cognitiveWrapper.js +2 -0
- package/dist/cjs/features/CognitiveSearch/cognitiveWrapper.js.map +1 -0
- package/dist/cjs/features/CognitiveSearch/rulebookcitation.js +2 -0
- package/dist/cjs/features/CognitiveSearch/rulebookcitation.js.map +1 -0
- package/dist/cjs/features/DocumentLearning/DocumentLearning.js +1 -1
- package/dist/cjs/features/DocumentLearning/_components/BookLearningForm.js +1 -1
- package/dist/cjs/features/DocumentLearning/_components/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/cjs/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js +1 -1
- package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/AccordianSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatHeader.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatHeader.module.css.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/NormalChat.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CitationLink.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ViewFormUpdateCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/_svg/EditPencilIcon.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/EditPencilIcon.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/hooks/usePendingEditHighlight.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/hooks/usePendingEditHighlight.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/hooks/useVariantEditSession.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/hooks/useVariantEditSession.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryContent.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryContent.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryTab.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryTab.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineTooltip.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineTooltip.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/LearningManagementWrapper.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/constants.js +2 -0
- package/dist/cjs/features/IL-marketplace/constants.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/hooks/useControllableState.js +2 -0
- package/dist/cjs/features/IL-marketplace/hooks/useControllableState.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/hooks/useDeleteGuidelineMutation.js +2 -0
- package/dist/cjs/features/IL-marketplace/hooks/useDeleteGuidelineMutation.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/hooks/useGuidelineSelection.js +2 -0
- package/dist/cjs/features/IL-marketplace/hooks/useGuidelineSelection.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.js +2 -0
- package/dist/cjs/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/hooks/useMarketplacePublishILKBData.js +2 -0
- package/dist/cjs/features/IL-marketplace/hooks/useMarketplacePublishILKBData.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/hooks/usePublishingFlowConfig.js +2 -0
- package/dist/cjs/features/IL-marketplace/hooks/usePublishingFlowConfig.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/icons/GuidelineSpinner.js +2 -0
- package/dist/cjs/features/IL-marketplace/icons/GuidelineSpinner.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/queryClient.js +2 -0
- package/dist/cjs/features/IL-marketplace/queryClient.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/services/IL-marketplace.api.js +2 -0
- package/dist/cjs/features/IL-marketplace/services/IL-marketplace.api.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/services/guideline.cart.api.js +2 -0
- package/dist/cjs/features/IL-marketplace/services/guideline.cart.api.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/services/guideline.core.api.js +2 -0
- package/dist/cjs/features/IL-marketplace/services/guideline.core.api.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/services/guideline.runtime.config.js +2 -0
- package/dist/cjs/features/IL-marketplace/services/guideline.runtime.config.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/services/guideline.session.js +2 -0
- package/dist/cjs/features/IL-marketplace/services/guideline.session.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/services/instant-learning.api.js +2 -0
- package/dist/cjs/features/IL-marketplace/services/instant-learning.api.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/store/usePublishTemplateStore.js +2 -0
- package/dist/cjs/features/IL-marketplace/store/usePublishTemplateStore.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/store/usePublishingFlowConfigStore.js +2 -0
- package/dist/cjs/features/IL-marketplace/store/usePublishingFlowConfigStore.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/utils/guidelineFiles.js +2 -0
- package/dist/cjs/features/IL-marketplace/utils/guidelineFiles.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/utils/guidelineOverlay.js +2 -0
- package/dist/cjs/features/IL-marketplace/utils/guidelineOverlay.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/utils/microfrontend.js +2 -0
- package/dist/cjs/features/IL-marketplace/utils/microfrontend.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/utils/publishingFlow.js +2 -0
- package/dist/cjs/features/IL-marketplace/utils/publishingFlow.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/utils/session.js +2 -0
- package/dist/cjs/features/IL-marketplace/utils/session.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/utils.js +2 -0
- package/dist/cjs/features/IL-marketplace/utils.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/workspace/useGuidelineWorkspace.js +2 -0
- package/dist/cjs/features/IL-marketplace/workspace/useGuidelineWorkspace.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/workspace/workspace.context.js +2 -0
- package/dist/cjs/features/IL-marketplace/workspace/workspace.context.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/workspace/workspace.runtime.js +2 -0
- package/dist/cjs/features/IL-marketplace/workspace/workspace.runtime.js.map +1 -0
- package/dist/cjs/features/InstantLearning/_components/ChatComponent.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ContextualChatComponent.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
- package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagementTest.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/AddScopeModal.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/InstructionPromptBlock.js +2 -0
- package/dist/cjs/features/LearningManagement/RuleContent/InstructionPromptBlock.js.map +1 -0
- package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/TierCard.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/cjs/features/LearningManagement/ScopeSelector.js +2 -0
- package/dist/cjs/features/LearningManagement/ScopeSelector.js.map +1 -0
- package/dist/cjs/features/LearningManagement/Sidebar.js +1 -1
- package/dist/cjs/features/LearningManagement/SidebarWrapper.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModalDynamic.js +2 -0
- package/dist/cjs/features/LearningManagement/components/InstantLearningModalDynamic.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/PromptTextEditor.js +2 -0
- package/dist/cjs/features/LearningManagement/components/PromptTextEditor.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/ScopeSkeletonLoader.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeMenu.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNodeHeader.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
- package/dist/cjs/features/LearningManagement/config.js +1 -1
- package/dist/cjs/features/LearningManagement/constants.js +1 -1
- package/dist/cjs/features/LearningManagement/hooks/useLearningTemplateQueryParams.js +1 -1
- package/dist/cjs/features/LearningManagement/queries/useLMSConfigQuery.js +1 -1
- package/dist/cjs/features/LearningManagement/store/useExternalWorkflowStore.js +2 -0
- package/dist/cjs/features/LearningManagement/store/useExternalWorkflowStore.js.map +1 -0
- package/dist/cjs/features/LearningManagement/store/useLMSConfigStore.js +1 -1
- package/dist/cjs/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/LearningContent.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/LearningContentSkeleton.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/LearningTemplateLayout.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/LearningTemplateManagement.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/LearningTemplateManagementSkeleton.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/PromptTextEditor.module.css.js +2 -0
- package/dist/cjs/features/LearningManagement/styles/PromptTextEditor.module.css.js.map +1 -0
- package/dist/cjs/features/LearningManagement/styles/RuleAccordion.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/Sidebar.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/StationsContent.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/utils/learningMetadataUtils.js +2 -0
- package/dist/cjs/features/LearningManagement/utils/learningMetadataUtils.js.map +1 -0
- package/dist/cjs/hooks/useAgentFix.js +1 -1
- package/dist/cjs/hooks/useAgentSuggestions.js +1 -1
- package/dist/cjs/hooks/useAgentValidation.js +1 -1
- package/dist/cjs/hooks/useExistingAgentCheck.js +1 -1
- package/dist/cjs/hooks/useExistingPromptCheck.js +1 -1
- package/dist/cjs/hooks/usePromptFix.js +1 -1
- package/dist/cjs/hooks/usePromptSuggestions.js +1 -1
- package/dist/cjs/hooks/usePromptValidation.js +1 -1
- package/dist/cjs/hooks/useQueries.js +2 -0
- package/dist/cjs/hooks/useQueries.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/cjs/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +1 -1
- package/dist/cjs/schema-driven/BPARenderer.js +2 -0
- package/dist/cjs/schema-driven/BPARenderer.js.map +1 -0
- package/dist/cjs/schema-driven/FallbackField.js +2 -0
- package/dist/cjs/schema-driven/FallbackField.js.map +1 -0
- package/dist/cjs/schema-driven/components/ConditionSectionField.js +2 -0
- package/dist/cjs/schema-driven/components/ConditionSectionField.js.map +1 -0
- package/dist/cjs/schema-driven/components/ConfigSectionField.js +2 -0
- package/dist/cjs/schema-driven/components/ConfigSectionField.js.map +1 -0
- package/dist/cjs/schema-driven/components/DropdownSectionField.js +2 -0
- package/dist/cjs/schema-driven/components/DropdownSectionField.js.map +1 -0
- package/dist/cjs/schema-driven/components/GlobalSetupAccordionField.js +2 -0
- package/dist/cjs/schema-driven/components/GlobalSetupAccordionField.js.map +1 -0
- package/dist/cjs/schema-driven/components/GroupEditRow.js +2 -0
- package/dist/cjs/schema-driven/components/GroupEditRow.js.map +1 -0
- package/dist/cjs/schema-driven/components/PromptTextEditorField.js +2 -0
- package/dist/cjs/schema-driven/components/PromptTextEditorField.js.map +1 -0
- package/dist/cjs/schema-driven/components/ScopeSectionField.js +2 -0
- package/dist/cjs/schema-driven/components/ScopeSectionField.js.map +1 -0
- package/dist/cjs/schema-driven/components/TextInputField.js +2 -0
- package/dist/cjs/schema-driven/components/TextInputField.js.map +1 -0
- package/dist/cjs/schema-driven/components/VariantListField.js +2 -0
- package/dist/cjs/schema-driven/components/VariantListField.js.map +1 -0
- package/dist/cjs/schema-driven/hooks/useParentEditEnabled.js +2 -0
- package/dist/cjs/schema-driven/hooks/useParentEditEnabled.js.map +1 -0
- package/dist/cjs/schema-driven/hooks/useSectionEditSession.js +2 -0
- package/dist/cjs/schema-driven/hooks/useSectionEditSession.js.map +1 -0
- package/dist/cjs/schema-driven/primitives/Accordion.js +2 -0
- package/dist/cjs/schema-driven/primitives/Accordion.js.map +1 -0
- package/dist/cjs/schema-driven/store/useDynamicFormStore.js +2 -0
- package/dist/cjs/schema-driven/store/useDynamicFormStore.js.map +1 -0
- package/dist/cjs/schema-driven/utils/PayloadUtils.js +2 -0
- package/dist/cjs/schema-driven/utils/PayloadUtils.js.map +1 -0
- package/dist/cjs/schema-driven/utils/aiReasoning.js +2 -0
- package/dist/cjs/schema-driven/utils/aiReasoning.js.map +1 -0
- package/dist/cjs/schema-driven/utils/conditionText.js +2 -0
- package/dist/cjs/schema-driven/utils/conditionText.js.map +1 -0
- package/dist/cjs/schema-driven/utils/editLock.js +2 -0
- package/dist/cjs/schema-driven/utils/editLock.js.map +1 -0
- package/dist/cjs/service/InstantLearningService.js +1 -1
- package/dist/cjs/utils/agentGenieAPI.js +1 -1
- package/dist/cjs/utils/bookGenieAPI.js +1 -1
- package/dist/cjs/utils/instantLearningAPI.js +1 -1
- package/dist/features/CognitiveSearch/CitationComponentMarkdownRender.js +2 -0
- package/dist/features/CognitiveSearch/CitationComponentMarkdownRender.js.map +1 -0
- package/dist/features/CognitiveSearch/CognitiveSearchErrorBoundary.js +2 -0
- package/dist/features/CognitiveSearch/CognitiveSearchErrorBoundary.js.map +1 -0
- package/dist/features/CognitiveSearch/CognitiveSearchResultCard.js +2 -0
- package/dist/features/CognitiveSearch/CognitiveSearchResultCard.js.map +1 -0
- package/dist/features/CognitiveSearch/CognitiveSearchResultCard.module.css.js +2 -0
- package/dist/features/CognitiveSearch/CognitiveSearchResultCard.module.css.js.map +1 -0
- package/dist/features/CognitiveSearch/CognitiveSearchWrapper.module.css.js +2 -0
- package/dist/features/CognitiveSearch/CognitiveSearchWrapper.module.css.js.map +1 -0
- package/dist/features/CognitiveSearch/cognitiveWrapper.js +2 -0
- package/dist/features/CognitiveSearch/cognitiveWrapper.js.map +1 -0
- package/dist/features/CognitiveSearch/rulebookcitation.js +2 -0
- package/dist/features/CognitiveSearch/rulebookcitation.js.map +1 -0
- package/dist/features/DocumentLearning/DocumentLearning.js +1 -1
- package/dist/features/DocumentLearning/_components/BookLearningForm.js +1 -1
- package/dist/features/DocumentLearning/_components/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js +1 -1
- package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/features/IL-OTJ/_components/AccordianSection.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatHeader.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatHeader.module.css.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/NormalChat.js +1 -1
- package/dist/features/IL-OTJ/_components/CitationLink.js +1 -1
- package/dist/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js +1 -1
- package/dist/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/features/IL-OTJ/_components/ViewFormUpdateCard.js +1 -1
- package/dist/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.js +1 -1
- package/dist/features/IL-OTJ/_components/_svg/EditPencilIcon.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/EditPencilIcon.js.map +1 -0
- package/dist/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/features/IL-OTJ/_components/hooks/usePendingEditHighlight.js +2 -0
- package/dist/features/IL-OTJ/_components/hooks/usePendingEditHighlight.js.map +1 -0
- package/dist/features/IL-OTJ/_components/hooks/useVariantEditSession.js +2 -0
- package/dist/features/IL-OTJ/_components/hooks/useVariantEditSession.js.map +1 -0
- package/dist/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.js +2 -0
- package/dist/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.js.map +1 -0
- package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCart.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCart.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCart.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCart.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCartItem.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCartItem.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineCartItem.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineCartItem.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineHeader.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineHeader.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineHeader.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineHeader.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineIconButton.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineIconButton.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineIconButton.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineIconButton.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLibrary.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLibrary.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLibrary.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLibrary.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryContent.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryContent.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryTab.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineLibraryTab.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineTooltip.js +2 -0
- package/dist/features/IL-marketplace/components/GuidelineTooltip.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.js +2 -0
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.js.map +1 -0
- package/dist/features/IL-marketplace/components/LearningManagementWrapper.js +2 -0
- package/dist/features/IL-marketplace/components/VersionSelectDropdown.js +2 -0
- package/dist/features/IL-marketplace/components/VersionSelectDropdown.js.map +1 -0
- package/dist/features/IL-marketplace/components/VersionSelectDropdown.module.css.js +2 -0
- package/dist/features/IL-marketplace/components/VersionSelectDropdown.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/constants.js +2 -0
- package/dist/features/IL-marketplace/constants.js.map +1 -0
- package/dist/features/IL-marketplace/hooks/useControllableState.js +2 -0
- package/dist/features/IL-marketplace/hooks/useControllableState.js.map +1 -0
- package/dist/features/IL-marketplace/hooks/useDeleteGuidelineMutation.js +2 -0
- package/dist/features/IL-marketplace/hooks/useDeleteGuidelineMutation.js.map +1 -0
- package/dist/features/IL-marketplace/hooks/useGuidelineSelection.js +2 -0
- package/dist/features/IL-marketplace/hooks/useGuidelineSelection.js.map +1 -0
- package/dist/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.js +2 -0
- package/dist/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.js.map +1 -0
- package/dist/features/IL-marketplace/hooks/useMarketplacePublishILKBData.js +2 -0
- package/dist/features/IL-marketplace/hooks/useMarketplacePublishILKBData.js.map +1 -0
- package/dist/features/IL-marketplace/hooks/usePublishingFlowConfig.js +2 -0
- package/dist/features/IL-marketplace/hooks/usePublishingFlowConfig.js.map +1 -0
- package/dist/features/IL-marketplace/icons/GuidelineSpinner.js +2 -0
- package/dist/features/IL-marketplace/icons/GuidelineSpinner.js.map +1 -0
- package/dist/features/IL-marketplace/queryClient.js +2 -0
- package/dist/features/IL-marketplace/queryClient.js.map +1 -0
- package/dist/features/IL-marketplace/services/IL-marketplace.api.js +2 -0
- package/dist/features/IL-marketplace/services/IL-marketplace.api.js.map +1 -0
- package/dist/features/IL-marketplace/services/guideline.cart.api.js +2 -0
- package/dist/features/IL-marketplace/services/guideline.cart.api.js.map +1 -0
- package/dist/features/IL-marketplace/services/guideline.core.api.js +2 -0
- package/dist/features/IL-marketplace/services/guideline.core.api.js.map +1 -0
- package/dist/features/IL-marketplace/services/guideline.runtime.config.js +2 -0
- package/dist/features/IL-marketplace/services/guideline.runtime.config.js.map +1 -0
- package/dist/features/IL-marketplace/services/guideline.session.js +2 -0
- package/dist/features/IL-marketplace/services/guideline.session.js.map +1 -0
- package/dist/features/IL-marketplace/services/instant-learning.api.js +2 -0
- package/dist/features/IL-marketplace/services/instant-learning.api.js.map +1 -0
- package/dist/features/IL-marketplace/store/usePublishTemplateStore.js +2 -0
- package/dist/features/IL-marketplace/store/usePublishTemplateStore.js.map +1 -0
- package/dist/features/IL-marketplace/store/usePublishingFlowConfigStore.js +2 -0
- package/dist/features/IL-marketplace/store/usePublishingFlowConfigStore.js.map +1 -0
- package/dist/features/IL-marketplace/utils/guidelineFiles.js +2 -0
- package/dist/features/IL-marketplace/utils/guidelineFiles.js.map +1 -0
- package/dist/features/IL-marketplace/utils/guidelineOverlay.js +2 -0
- package/dist/features/IL-marketplace/utils/guidelineOverlay.js.map +1 -0
- package/dist/features/IL-marketplace/utils/microfrontend.js +2 -0
- package/dist/features/IL-marketplace/utils/microfrontend.js.map +1 -0
- package/dist/features/IL-marketplace/utils/publishingFlow.js +2 -0
- package/dist/features/IL-marketplace/utils/publishingFlow.js.map +1 -0
- package/dist/features/IL-marketplace/utils/session.js +2 -0
- package/dist/features/IL-marketplace/utils/session.js.map +1 -0
- package/dist/features/IL-marketplace/utils.js +2 -0
- package/dist/features/IL-marketplace/utils.js.map +1 -0
- package/dist/features/IL-marketplace/workspace/useGuidelineWorkspace.js +2 -0
- package/dist/features/IL-marketplace/workspace/useGuidelineWorkspace.js.map +1 -0
- package/dist/features/IL-marketplace/workspace/workspace.context.js +2 -0
- package/dist/features/IL-marketplace/workspace/workspace.context.js.map +1 -0
- package/dist/features/IL-marketplace/workspace/workspace.runtime.js +2 -0
- package/dist/features/IL-marketplace/workspace/workspace.runtime.js.map +1 -0
- package/dist/features/InstantLearning/_components/ChatComponent.js +1 -1
- package/dist/features/InstantLearning/_components/ContextualChatComponent.js +1 -1
- package/dist/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
- package/dist/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
- package/dist/features/LearningManagement/AuditLog/AuditLog.js +1 -1
- package/dist/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/features/LearningManagement/LearningManagementTest.js +1 -1
- package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/features/LearningManagement/RBAC/AccessPanel.js +1 -1
- package/dist/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.js +1 -1
- package/dist/features/LearningManagement/RuleContent/AddScopeModal.js +1 -1
- package/dist/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/features/LearningManagement/RuleContent/InstructionPromptBlock.js +2 -0
- package/dist/features/LearningManagement/RuleContent/InstructionPromptBlock.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
- package/dist/features/LearningManagement/RuleContent/TierCard.js +1 -1
- package/dist/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/features/LearningManagement/ScopeSelector.js +2 -0
- package/dist/features/LearningManagement/ScopeSelector.js.map +1 -0
- package/dist/features/LearningManagement/Sidebar.js +1 -1
- package/dist/features/LearningManagement/SidebarWrapper.js +1 -1
- package/dist/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModalDynamic.js +2 -0
- package/dist/features/LearningManagement/components/InstantLearningModalDynamic.js.map +1 -0
- package/dist/features/LearningManagement/components/PromptTextEditor.js +2 -0
- package/dist/features/LearningManagement/components/PromptTextEditor.js.map +1 -0
- package/dist/features/LearningManagement/components/ScopeSkeletonLoader.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeMenu.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeNodeHeader.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
- package/dist/features/LearningManagement/config.js +1 -1
- package/dist/features/LearningManagement/constants.js +1 -1
- package/dist/features/LearningManagement/hooks/useLearningTemplateQueryParams.js +1 -1
- package/dist/features/LearningManagement/queries/useLMSConfigQuery.js +1 -1
- package/dist/features/LearningManagement/store/useExternalWorkflowStore.js +2 -0
- package/dist/features/LearningManagement/store/useExternalWorkflowStore.js.map +1 -0
- package/dist/features/LearningManagement/store/useLMSConfigStore.js +1 -1
- package/dist/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/features/LearningManagement/styles/LearningContent.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/LearningContentSkeleton.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/LearningTemplateLayout.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/LearningTemplateManagement.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/LearningTemplateManagementSkeleton.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/PromptTextEditor.module.css.js +2 -0
- package/dist/features/LearningManagement/styles/PromptTextEditor.module.css.js.map +1 -0
- package/dist/features/LearningManagement/styles/RuleAccordion.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/Sidebar.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/StationsContent.module.css.js +1 -1
- package/dist/features/LearningManagement/utils/learningMetadataUtils.js +2 -0
- package/dist/features/LearningManagement/utils/learningMetadataUtils.js.map +1 -0
- package/dist/hooks/useAgentFix.js +1 -1
- package/dist/hooks/useAgentSuggestions.js +1 -1
- package/dist/hooks/useAgentValidation.js +1 -1
- package/dist/hooks/useExistingAgentCheck.js +1 -1
- package/dist/hooks/useExistingPromptCheck.js +1 -1
- package/dist/hooks/usePromptFix.js +1 -1
- package/dist/hooks/usePromptSuggestions.js +1 -1
- package/dist/hooks/usePromptValidation.js +1 -1
- package/dist/hooks/useQueries.js +2 -0
- package/dist/hooks/useQueries.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +1 -1
- package/dist/schema-driven/BPARenderer.js +2 -0
- package/dist/schema-driven/BPARenderer.js.map +1 -0
- package/dist/schema-driven/FallbackField.js +2 -0
- package/dist/schema-driven/FallbackField.js.map +1 -0
- package/dist/schema-driven/components/ConditionSectionField.js +2 -0
- package/dist/schema-driven/components/ConditionSectionField.js.map +1 -0
- package/dist/schema-driven/components/ConfigSectionField.js +2 -0
- package/dist/schema-driven/components/ConfigSectionField.js.map +1 -0
- package/dist/schema-driven/components/DropdownSectionField.js +2 -0
- package/dist/schema-driven/components/DropdownSectionField.js.map +1 -0
- package/dist/schema-driven/components/GlobalSetupAccordionField.js +2 -0
- package/dist/schema-driven/components/GlobalSetupAccordionField.js.map +1 -0
- package/dist/schema-driven/components/GroupEditRow.js +2 -0
- package/dist/schema-driven/components/GroupEditRow.js.map +1 -0
- package/dist/schema-driven/components/PromptTextEditorField.js +2 -0
- package/dist/schema-driven/components/PromptTextEditorField.js.map +1 -0
- package/dist/schema-driven/components/ScopeSectionField.js +2 -0
- package/dist/schema-driven/components/ScopeSectionField.js.map +1 -0
- package/dist/schema-driven/components/TextInputField.js +2 -0
- package/dist/schema-driven/components/TextInputField.js.map +1 -0
- package/dist/schema-driven/components/VariantListField.js +2 -0
- package/dist/schema-driven/components/VariantListField.js.map +1 -0
- package/dist/schema-driven/hooks/useParentEditEnabled.js +2 -0
- package/dist/schema-driven/hooks/useParentEditEnabled.js.map +1 -0
- package/dist/schema-driven/hooks/useSectionEditSession.js +2 -0
- package/dist/schema-driven/hooks/useSectionEditSession.js.map +1 -0
- package/dist/schema-driven/primitives/Accordion.js +2 -0
- package/dist/schema-driven/primitives/Accordion.js.map +1 -0
- package/dist/schema-driven/store/useDynamicFormStore.js +2 -0
- package/dist/schema-driven/store/useDynamicFormStore.js.map +1 -0
- package/dist/schema-driven/utils/PayloadUtils.js +2 -0
- package/dist/schema-driven/utils/PayloadUtils.js.map +1 -0
- package/dist/schema-driven/utils/aiReasoning.js +2 -0
- package/dist/schema-driven/utils/aiReasoning.js.map +1 -0
- package/dist/schema-driven/utils/conditionText.js +2 -0
- package/dist/schema-driven/utils/conditionText.js.map +1 -0
- package/dist/schema-driven/utils/editLock.js +2 -0
- package/dist/schema-driven/utils/editLock.js.map +1 -0
- package/dist/service/InstantLearningService.js +1 -1
- package/dist/types/src/ComponentRegistry.d.ts +13 -0
- package/dist/types/src/ComponentRegistry.d.ts.map +1 -0
- package/dist/types/src/ContinueWithTemplateModal.d.ts +24 -0
- package/dist/types/src/ContinueWithTemplateModal.d.ts.map +1 -0
- package/dist/types/src/ILMarketplaceMockTest.d.ts +4 -0
- package/dist/types/src/ILMarketplaceMockTest.d.ts.map +1 -0
- package/dist/types/src/ILMarketplaceWrapper.d.ts +164 -0
- package/dist/types/src/ILMarketplaceWrapper.d.ts.map +1 -0
- package/dist/types/src/PublishToMarketplaceTest.d.ts +3 -0
- package/dist/types/src/PublishToMarketplaceTest.d.ts.map +1 -0
- package/dist/types/src/api/transport.d.ts +44 -0
- package/dist/types/src/api/transport.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/CitationComponentMarkdownRender.d.ts +27 -0
- package/dist/types/src/features/CognitiveSearch/CitationComponentMarkdownRender.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/CognitiveSearchErrorBoundary.d.ts +30 -0
- package/dist/types/src/features/CognitiveSearch/CognitiveSearchErrorBoundary.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/CognitiveSearchResultCard.d.ts +33 -0
- package/dist/types/src/features/CognitiveSearch/CognitiveSearchResultCard.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/CognitiveSearchTestfile.d.ts +3 -0
- package/dist/types/src/features/CognitiveSearch/CognitiveSearchTestfile.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/SearchResultSkeletonCard.d.ts +3 -0
- package/dist/types/src/features/CognitiveSearch/SearchResultSkeletonCard.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/cognitiveParser.d.ts +39 -0
- package/dist/types/src/features/CognitiveSearch/cognitiveParser.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/cognitiveSearch.types.d.ts +110 -0
- package/dist/types/src/features/CognitiveSearch/cognitiveSearch.types.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/cognitiveWrapper.d.ts +56 -0
- package/dist/types/src/features/CognitiveSearch/cognitiveWrapper.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/parseSearchResults.d.ts +6 -0
- package/dist/types/src/features/CognitiveSearch/parseSearchResults.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveSearch/rulebookcitation.d.ts +23 -0
- package/dist/types/src/features/CognitiveSearch/rulebookcitation.d.ts.map +1 -0
- package/dist/types/src/features/DocumentLearning/DocumentLearning.d.ts.map +1 -1
- package/dist/types/src/features/DocumentLearning/_components/BookLearningForm.d.ts.map +1 -1
- package/dist/types/src/features/DocumentLearning/_components/LearningDetailsForm.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts +10 -0
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts +53 -0
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +14 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/AccordianSection.d.ts +10 -1
- package/dist/types/src/features/IL-OTJ/_components/AccordianSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts +4 -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/ChatHeader.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CriticalGaps.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts +3 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts +9 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ViewFormUpdateCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/EditPencilIcon.d.ts +7 -0
- package/dist/types/src/features/IL-OTJ/_components/_svg/EditPencilIcon.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/hooks/usePendingEditHighlight.d.ts +5 -0
- package/dist/types/src/features/IL-OTJ/_components/hooks/usePendingEditHighlight.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/hooks/useVariantEditSession.d.ts +66 -0
- package/dist/types/src/features/IL-OTJ/_components/hooks/useVariantEditSession.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/index.d.ts +1 -0
- package/dist/types/src/features/IL-OTJ/_components/index.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +4 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts +2 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.d.ts +17 -0
- package/dist/types/src/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/organisms/DropdownSection/index.d.ts +2 -0
- package/dist/types/src/features/IL-OTJ/_components/organisms/DropdownSection/index.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.d.ts +12 -0
- package/dist/types/src/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.d.ts +2 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts +7 -0
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineCardMenu.d.ts +34 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineCardMenu.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineCart.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineCart.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartHeader.d.ts +14 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartHeader.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartItem.d.ts +16 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartItem.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineConfirmDialog.d.ts +18 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineConfirmDialog.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineEmptyState.d.ts +11 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineEmptyState.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineFilterPanel.d.ts +9 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineFilterPanel.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineHeader.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineHeader.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineIconButton.d.ts +15 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineIconButton.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLandingPage.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLandingPage.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts +67 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts +93 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts +95 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryTab.d.ts +27 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryTab.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineProceedButton.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineProceedButton.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineSelectButton.d.ts +11 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineSelectButton.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts +9 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineTooltip.d.ts +10 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineTooltip.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.d.ts +3 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.d.ts +8 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.d.ts +3 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.d.ts +8 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.d.ts +24 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.d.ts +8 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.d.ts +5 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.d.ts +3 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts +94 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.d.ts +39 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.d.ts +14 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.d.ts +8 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts +28 -0
- package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/VersionSelectDropdown.d.ts +13 -0
- package/dist/types/src/features/IL-marketplace/components/VersionSelectDropdown.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/constants.d.ts +183 -0
- package/dist/types/src/features/IL-marketplace/constants.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/hooks/useControllableState.d.ts +8 -0
- package/dist/types/src/features/IL-marketplace/hooks/useControllableState.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/hooks/useDeleteGuidelineMutation.d.ts +10 -0
- package/dist/types/src/features/IL-marketplace/hooks/useDeleteGuidelineMutation.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/hooks/useGuidelineSelection.d.ts +17 -0
- package/dist/types/src/features/IL-marketplace/hooks/useGuidelineSelection.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/hooks/useGuidelineWorkspaceLegacyBridge.d.ts +6 -0
- package/dist/types/src/features/IL-marketplace/hooks/useGuidelineWorkspaceLegacyBridge.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/hooks/useMarketplacePublishILKBData.d.ts +29 -0
- package/dist/types/src/features/IL-marketplace/hooks/useMarketplacePublishILKBData.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/hooks/usePublishingFlowConfig.d.ts +16 -0
- package/dist/types/src/features/IL-marketplace/hooks/usePublishingFlowConfig.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/icons/GuidelineSpinner.d.ts +7 -0
- package/dist/types/src/features/IL-marketplace/icons/GuidelineSpinner.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/index.d.ts +42 -0
- package/dist/types/src/features/IL-marketplace/index.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/queryClient.d.ts +3 -0
- package/dist/types/src/features/IL-marketplace/queryClient.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts +156 -0
- package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.api.d.ts +2 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.api.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.cart.api.d.ts +28 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.cart.api.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.chat.d.ts +2 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.chat.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.content.d.ts +2 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.content.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.core.api.d.ts +51 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.core.api.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.runtime.config.d.ts +47 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.runtime.config.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.session.d.ts +10 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.session.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/instant-learning.api.d.ts +112 -0
- package/dist/types/src/features/IL-marketplace/services/instant-learning.api.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/services/instant-learning.wishlist.d.ts +8 -0
- package/dist/types/src/features/IL-marketplace/services/instant-learning.wishlist.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/store/usePublishTemplateStore.d.ts +14 -0
- package/dist/types/src/features/IL-marketplace/store/usePublishTemplateStore.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/store/usePublishingFlowConfigStore.d.ts +132 -0
- package/dist/types/src/features/IL-marketplace/store/usePublishingFlowConfigStore.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/types/add-context.types.d.ts +40 -0
- package/dist/types/src/features/IL-marketplace/types/add-context.types.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/types/api.types.d.ts +116 -0
- package/dist/types/src/features/IL-marketplace/types/api.types.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/types/file-item.d.ts +60 -0
- package/dist/types/src/features/IL-marketplace/types/file-item.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/types/guideline.api.types.d.ts +11 -0
- package/dist/types/src/features/IL-marketplace/types/guideline.api.types.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/types/guideline.types.d.ts +42 -0
- package/dist/types/src/features/IL-marketplace/types/guideline.types.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/types.d.ts +434 -0
- package/dist/types/src/features/IL-marketplace/types.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils/addContextHelpers.d.ts +6 -0
- package/dist/types/src/features/IL-marketplace/utils/addContextHelpers.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils/cn.d.ts +3 -0
- package/dist/types/src/features/IL-marketplace/utils/cn.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils/guidelineFiles.d.ts +17 -0
- package/dist/types/src/features/IL-marketplace/utils/guidelineFiles.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils/guidelineOverlay.d.ts +3 -0
- package/dist/types/src/features/IL-marketplace/utils/guidelineOverlay.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils/guidelineSort.d.ts +3 -0
- package/dist/types/src/features/IL-marketplace/utils/guidelineSort.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils/microfrontend.d.ts +23 -0
- package/dist/types/src/features/IL-marketplace/utils/microfrontend.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils/publishingFlow.d.ts +35 -0
- package/dist/types/src/features/IL-marketplace/utils/publishingFlow.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils/session.d.ts +4 -0
- package/dist/types/src/features/IL-marketplace/utils/session.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils/url.d.ts +2 -0
- package/dist/types/src/features/IL-marketplace/utils/url.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/utils.d.ts +75 -0
- package/dist/types/src/features/IL-marketplace/utils.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/workspace/useGuidelineWorkspace.d.ts +44 -0
- package/dist/types/src/features/IL-marketplace/workspace/useGuidelineWorkspace.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/workspace/workspace.context.d.ts +9 -0
- package/dist/types/src/features/IL-marketplace/workspace/workspace.context.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/workspace/workspace.runtime.d.ts +12 -0
- package/dist/types/src/features/IL-marketplace/workspace/workspace.runtime.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/workspace/workspace.selectors.d.ts +5 -0
- package/dist/types/src/features/IL-marketplace/workspace/workspace.selectors.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/workspace/workspace.types.d.ts +89 -0
- package/dist/types/src/features/IL-marketplace/workspace/workspace.types.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearning/_components/ContextualLearningForm.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearning/_components/LearningDetailsForm.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/AuditLog/AuditLog.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +24 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts +9 -2
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/AddScopeModal.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/RuleContent/AddScopeModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/ContentLogic.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/InstructionPromptBlock.d.ts +27 -0
- package/dist/types/src/features/LearningManagement/RuleContent/InstructionPromptBlock.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/TierCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts +4 -0
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/ScopeSelector.d.ts +45 -0
- package/dist/types/src/features/LearningManagement/ScopeSelector.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/Sidebar.d.ts +2 -1
- package/dist/types/src/features/LearningManagement/Sidebar.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts +2 -1
- package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +44 -3
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts +4 -0
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts +62 -0
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts +44 -0
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/components/ScopeSkeletonLoader.d.ts +4 -0
- package/dist/types/src/features/LearningManagement/components/ScopeSkeletonLoader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeMenu.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts +2 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNodeHeader.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNodeHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts +2 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/config.d.ts +15 -0
- package/dist/types/src/features/LearningManagement/config.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/constants.d.ts +10 -0
- package/dist/types/src/features/LearningManagement/constants.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts +11 -0
- package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts +11 -8
- package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/queries/useLMSConfigQuery.d.ts +8 -1
- package/dist/types/src/features/LearningManagement/queries/useLMSConfigQuery.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts +4 -0
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useExternalWorkflowStore.d.ts +38 -0
- package/dist/types/src/features/LearningManagement/store/useExternalWorkflowStore.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/store/useLMSConfigStore.d.ts +162 -9
- package/dist/types/src/features/LearningManagement/store/useLMSConfigStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts +15 -0
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/types.d.ts +62 -6
- package/dist/types/src/features/LearningManagement/types.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/utils/learningMetadataUtils.d.ts +17 -0
- package/dist/types/src/features/LearningManagement/utils/learningMetadataUtils.d.ts.map +1 -0
- package/dist/types/src/hooks/useAgentFix.d.ts.map +1 -1
- package/dist/types/src/hooks/useAgentSuggestions.d.ts.map +1 -1
- package/dist/types/src/hooks/useAgentValidation.d.ts.map +1 -1
- package/dist/types/src/hooks/useExistingAgentCheck.d.ts.map +1 -1
- package/dist/types/src/hooks/useExistingPromptCheck.d.ts.map +1 -1
- package/dist/types/src/hooks/usePromptFix.d.ts.map +1 -1
- package/dist/types/src/hooks/usePromptSuggestions.d.ts.map +1 -1
- package/dist/types/src/hooks/usePromptValidation.d.ts.map +1 -1
- package/dist/types/src/hooks/useQueries.d.ts +12 -0
- package/dist/types/src/hooks/useQueries.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +46 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/Default/DefaultTeachMeRenderer.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -1
- package/dist/types/src/schema-driven/BPARenderer.d.ts +14 -0
- package/dist/types/src/schema-driven/BPARenderer.d.ts.map +1 -0
- package/dist/types/src/schema-driven/FallbackField.d.ts +13 -0
- package/dist/types/src/schema-driven/FallbackField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/components/ConditionSectionField.d.ts +3 -0
- package/dist/types/src/schema-driven/components/ConditionSectionField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/components/ConfigSectionField.d.ts +3 -0
- package/dist/types/src/schema-driven/components/ConfigSectionField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/components/DropdownSectionField.d.ts +3 -0
- package/dist/types/src/schema-driven/components/DropdownSectionField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/components/GlobalSetupAccordionField.d.ts +3 -0
- package/dist/types/src/schema-driven/components/GlobalSetupAccordionField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/components/GroupEditRow.d.ts +3 -0
- package/dist/types/src/schema-driven/components/GroupEditRow.d.ts.map +1 -0
- package/dist/types/src/schema-driven/components/PromptTextEditorField.d.ts +3 -0
- package/dist/types/src/schema-driven/components/PromptTextEditorField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/components/ScopeSectionField.d.ts +3 -0
- package/dist/types/src/schema-driven/components/ScopeSectionField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/components/TextInputField.d.ts +3 -0
- package/dist/types/src/schema-driven/components/TextInputField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/components/VariantListField.d.ts +3 -0
- package/dist/types/src/schema-driven/components/VariantListField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/demoSchema.d.ts +13 -0
- package/dist/types/src/schema-driven/demoSchema.d.ts.map +1 -0
- package/dist/types/src/schema-driven/hooks/useParentEditEnabled.d.ts +18 -0
- package/dist/types/src/schema-driven/hooks/useParentEditEnabled.d.ts.map +1 -0
- package/dist/types/src/schema-driven/hooks/useSectionEditSession.d.ts +34 -0
- package/dist/types/src/schema-driven/hooks/useSectionEditSession.d.ts.map +1 -0
- package/dist/types/src/schema-driven/primitives/Accordion.d.ts +21 -0
- package/dist/types/src/schema-driven/primitives/Accordion.d.ts.map +1 -0
- package/dist/types/src/schema-driven/store/useDynamicFormStore.d.ts +28 -0
- package/dist/types/src/schema-driven/store/useDynamicFormStore.d.ts.map +1 -0
- package/dist/types/src/schema-driven/types.d.ts +81 -0
- package/dist/types/src/schema-driven/types.d.ts.map +1 -0
- package/dist/types/src/schema-driven/utils/PayloadUtils.d.ts +82 -0
- package/dist/types/src/schema-driven/utils/PayloadUtils.d.ts.map +1 -0
- package/dist/types/src/schema-driven/utils/aiReasoning.d.ts +5 -0
- package/dist/types/src/schema-driven/utils/aiReasoning.d.ts.map +1 -0
- package/dist/types/src/schema-driven/utils/conditionText.d.ts +8 -0
- package/dist/types/src/schema-driven/utils/conditionText.d.ts.map +1 -0
- package/dist/types/src/schema-driven/utils/editLock.d.ts +39 -0
- package/dist/types/src/schema-driven/utils/editLock.d.ts.map +1 -0
- package/dist/types/src/service/API.d.ts.map +1 -1
- package/dist/types/src/service/GoogleFilePickerService.d.ts.map +1 -1
- package/dist/types/src/service/InstantLearningService.d.ts +12 -1
- package/dist/types/src/service/InstantLearningService.d.ts.map +1 -1
- package/dist/types/src/service/ModelService.d.ts.map +1 -1
- package/dist/types/src/service/SavedDataSetService.d.ts.map +1 -1
- package/dist/types/src/utils/bookGenieAPI.d.ts.map +1 -1
- package/dist/types/src/utils/date.d.ts.map +1 -1
- package/dist/types/src/utils/instantLearningAPI.d.ts.map +1 -1
- package/dist/utils/agentGenieAPI.js +1 -1
- package/dist/utils/bookGenieAPI.js +1 -1
- package/dist/utils/instantLearningAPI.js +1 -1
- package/package.json +35 -18
- package/dist/6fbbe065ef78c384.gif +0 -0
- package/dist/cjs/6fbbe065ef78c384.gif +0 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js +0 -2
- package/dist/cjs/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +0 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +0 -2
- package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +0 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js +0 -2
- package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +0 -1
- package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.js.map +0 -1
- package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.styles.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.styles.js.map +0 -1
- package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.js.map +0 -1
- package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.styles.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.styles.js.map +0 -1
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.js.map +0 -1
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js.map +0 -1
- package/dist/cjs/features/LSCGuidelinesCart/LearningManagementWrapper.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/api.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/api.js.map +0 -1
- package/dist/cjs/features/LSCGuidelinesCart/endpoints.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/endpoints.js.map +0 -1
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js +0 -2
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js.map +0 -1
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js +0 -2
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js.map +0 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +0 -2
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +0 -1
- package/dist/cjs/features/LearningManagement/public/ThinkingBulbIcon.gif.js +0 -2
- package/dist/cjs/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +0 -1
- package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +0 -2
- package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +0 -1
- package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js +0 -2
- package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +0 -1
- package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +0 -2
- package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +0 -1
- package/dist/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js +0 -2
- package/dist/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +0 -1
- package/dist/features/LSCGuidelinesCart/Cart/Cart.js +0 -2
- package/dist/features/LSCGuidelinesCart/Cart/Cart.js.map +0 -1
- package/dist/features/LSCGuidelinesCart/Cart/Cart.styles.js +0 -2
- package/dist/features/LSCGuidelinesCart/Cart/Cart.styles.js.map +0 -1
- package/dist/features/LSCGuidelinesCart/GuidelineCard.js +0 -2
- package/dist/features/LSCGuidelinesCart/GuidelineCard.js.map +0 -1
- package/dist/features/LSCGuidelinesCart/GuidelineCard.styles.js +0 -2
- package/dist/features/LSCGuidelinesCart/GuidelineCard.styles.js.map +0 -1
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.js +0 -2
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.js.map +0 -1
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +0 -2
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js.map +0 -1
- package/dist/features/LSCGuidelinesCart/LearningManagementWrapper.js +0 -2
- package/dist/features/LSCGuidelinesCart/api.js +0 -2
- package/dist/features/LSCGuidelinesCart/api.js.map +0 -1
- package/dist/features/LSCGuidelinesCart/endpoints.js +0 -2
- package/dist/features/LSCGuidelinesCart/endpoints.js.map +0 -1
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js +0 -2
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js.map +0 -1
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js +0 -2
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js.map +0 -1
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +0 -2
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +0 -1
- package/dist/features/LearningManagement/public/ThinkingBulbIcon.gif.js +0 -2
- package/dist/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +0 -1
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +0 -2
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +0 -1
- package/dist/types/src/ThinkingBulbIconComponent.d.ts +0 -4
- package/dist/types/src/ThinkingBulbIconComponent.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts +0 -10
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.styles.d.ts +0 -6
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.styles.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.d.ts +0 -11
- package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.styles.d.ts +0 -6
- package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.styles.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts +0 -11
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.d.ts +0 -6
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts +0 -14
- package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/api.d.ts +0 -3
- package/dist/types/src/features/LSCGuidelinesCart/api.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts +0 -4
- package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/interfacesApi.d.ts +0 -25
- package/dist/types/src/features/LSCGuidelinesCart/interfacesApi.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts +0 -12
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts.map +0 -1
- package/dist/types/src/routes/ErrorBoundary.d.ts +0 -22
- package/dist/types/src/routes/ErrorBoundary.d.ts.map +0 -1
- package/dist/types/src/routes/Routes.d.ts +0 -3
- package/dist/types/src/routes/Routes.d.ts.map +0 -1
- /package/dist/cjs/features/{LSCGuidelinesCart → IL-marketplace/components}/LearningManagementWrapper.js.map +0 -0
- /package/dist/features/{LSCGuidelinesCart → IL-marketplace/components}/LearningManagementWrapper.js.map +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as e,__assign as n,__awaiter as o,__generator as i,__spreadArray as t,__rest as l}from"tslib";import{jsx as a,jsxs as r,Fragment as s}from"react/jsx-runtime";import{useRef as d,useState as c,useMemo as u,useEffect as v,useCallback as g}from"react";import{startChatStream as h}from"@e-llm-studio/streaming-response";import{v4 as m}from"uuid";import p from"axios";import f from"react-markdown";import C from"./MinimizedThinkingSteps.js";import y from"./_svg/NewChatIcon.js";import b from"../InstantLearning.module.css.js";import w from"@mui/material/Tooltip";import _ from"json5";import x from"./AudioWaveform.js";import S from"./MessageRendering.js";import{sanitizePythonDictToJSON as L}from"../../../utils/instantLearning.utils.js";import{publishAgenticFeedbackForVariantIngestion as k}from"../../../service/InstantLearningService.js";import{keyframes as R,Box as A}from"@mui/material";import{parseValidationRecommendations as E}from"../../../utils/recommendationParser.js";var T,M=function(){return a("svg",n({width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a("path",{d:"M9.91158 12H7.45579H4L2.02268 4.13539C2.0111 4.0893 2.00193 4.04246 2.00046 3.99497C1.97811 3.27397 2.77209 2.77366 3.46029 3.10388L22 12L3.46029 20.8961C2.77983 21.2226 1.99597 20.7372 2.00002 20.0293C2.00038 19.9658 2.01455 19.9032 2.03296 19.8425L3.5 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))},I=function(e){var o=e.resetChatHistory,i=e.isStreamEnd;return r("div",n({className:b.customFont,style:{width:"100%",padding:"0.75rem 0rem",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#fff",borderBottom:"1px solid #e5e7eb",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.04)"}},{children:[r("span",n({style:{fontSize:"1.25rem",fontWeight:700,color:"#1f2937",flex:1,marginLeft:"0.5rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{children:[a("span",n({style:{color:"#5928ED"}},{children:"InstantLearning.AI"}))," Chat"]})),a(w,n({title:"New chat",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("div",n({onClick:function(){console.log(y,"hello"),i&&o()},style:{height:"1.8rem",width:"1.8rem",marginLeft:"1rem",marginRight:"0.5rem",cursor:i?"pointer":"not-allowed",backgroundColor:"transparent",transition:"transform 0.2s ease-in-out, opacity 0.2s",opacity:i?.8:.4,pointerEvents:i?"auto":"none"},onMouseOver:function(e){i&&(e.currentTarget.style.opacity="1")},onMouseOut:function(e){i&&(e.currentTarget.style.opacity="0.8")}},{children:a(y,{})}))}))]}))},F=function(e,n,l,a){return o(void 0,void 0,void 0,function(){var o,r,s,d,c,u,v,g,h,m;return i(this,function(i){switch(i.label){case 0:o=e.delete_current_learning,r=e.deleted_similar_learning_ids,s=e.deleted_conflicting_learning_ids,console.log("Processing delete tool call:",e),d=t(t([],r||[],!0),s||[],!0),c=0,u=d,i.label=1;case 1:if(!(c<u.length))return[3,6];v=u[c],i.label=2;case 2:return i.trys.push([2,4,,5]),g={status:"approved",metadata:{userName:"M Kathyayani",userEmailId:"madumbu.kathyayani@techolution.com",llm:"claude-3.5-sonnet",isVariantFlow:!0,isDeleteAction:!0,isAgentsFeedback:!0,variant:{id:v,scope:{name:"User",value:[{name:"M Kathyayani",email:"madumbu.kathyayani@techolution.com",userId:"8059658c-a65c-4e14-89aa-a5195f5d09f5"}]},topic:{id:null,value:"default"},variant:"Learning ID: ".concat(v),question:"",categories:[],created_at:(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),originalQuestion:"",parameterizedQuestion:"",conditions_whentoapply:"",conditions_whennottoapply:"",parentId:null}}},console.log("Deleting learning with ID: ".concat(v)),[4,k({baseUrl:n,organizationName:l,chatAssistantName:a,payload:g})];case 3:return(h=i.sent()).ok?console.log("Successfully deleted learning ".concat(v)):console.error("Failed to delete learning ".concat(v,":"),h.status,h.statusText),[3,5];case 4:return m=i.sent(),console.error("Error deleting learning ".concat(v,":"),m),[3,5];case 5:return c++,[3,1];case 6:return o&&console.log("Delete current learning flag is true - this will be handled later"),[2]}})})},D=function(e){var o=e.label,i=e.onToggle,t=c(!1),l=t[0],s=t[1],u=d(null);return v(function(){var e=u.current;e&&l&&(e.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.1)",e.style.transform="scale(1)",e.style.backgroundColor="#E8F5E9",e.style.color="#2E7D32")},[l]),r("span",n({ref:u,onClick:function(){var e=!l;s(e),i(o,e)},style:{cursor:"pointer",backgroundColor:l?"#E8F5E9":"#fbfaff",color:l?"#2E7D32":"#000000de",transition:"all 0.2s ease-in-out",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",transform:"scale(1)"},onMouseEnter:function(e){l||(e.currentTarget.style.boxShadow="0 4px 12px rgba(30, 136, 229, 0.3)",e.currentTarget.style.transform="scale(1.02)",e.currentTarget.style.backgroundColor="#f0f7ff",e.currentTarget.style.color="#1E88E5")},onMouseLeave:function(e){l||(e.currentTarget.style.boxShadow="0 2px 4px rgba(0, 0, 0, 0.2)",e.currentTarget.style.transform="scale(1)",e.currentTarget.style.backgroundColor="#fbfaff",e.currentTarget.style.color="#000000de")}},{children:[a("span",n({style:{fontWeight:"bold",fontSize:"16px",transition:"all 0.3s ease",transform:l?"scale(1.2)":"scale(1)",opacity:l?1:.9,paddingLeft:"0.25rem",paddingRight:"0.25rem"}},{children:l?"✓":"+"})),a("span",{children:o})]}))},N=function(y){y.chatAssistantLogoUrl;var N=y.chatAssistantName,O=y.organizationName,W=y.baseUrl,j=y.setInstantLearningSuggestions,B=y.formDataState,z=y.setFormDataState;y.hasUserFilledForm;var P=y.setHasUserFilledForm,K=y.baseWebsocketUrl,U=y.setIsNewChatClicked;y.selectedText,y.ChatIconComponent,y.ggcAssistantName;var G=y.ThinkingBulbIconComponent;y.hasUserWrittenModification;var H=y.setExtractedModification,J=y.setSave,V=y.setExtractedTooltip,q=y.setIsSaveLoading;y.isSaveLoading,y.save,y.instantLearningSuggestions,y.template;var Z=y.setShouldTriggerSave,Q=y.validationWtaResponse,Y=y.setValidationWtaResponse,$=y.learningWtaResponse,X=y.setLearningWtaResponse,ee=y.isFormSaveClicked,ne=y.setIsFormSavedClicked,oe=y.onDeleteLearning,ie=y.deleteLearningTrigger,te=y.setDeleteLearningTrigger;y.onMergeLearning;var le=y.mergeLearningTrigger,ae=y.setMergeLearningTrigger,re=y.onResetLearningData,se=y.setEditConflictingLearningTrigger,de=y.setEditSimilarLearningTrigger,ce=y.sendMessageInChat,ue=y.setSendMessageInChat,ve=y.setIsMergeLoading,ge=y.sendValidationMessage,he=y.setSendValidationMessage,me=y.setValidationRecommendations,pe=y.isFormValidating,fe=y.validationRecommendations,Ce=y.isFromDashboard,ye=y.fullMessageText,be=N,we=d("".concat(be,"-").concat(O,"-").concat(m())),_e=d("".concat(m())),xe=W,Se=d(null),Le=d(null),ke=c([]),Re=ke[0],Ae=ke[1],Ee=c(!1);Ee[0];var Te=Ee[1],Me=c(""),Ie=Me[0],Fe=Me[1],De=c(""),Ne=De[0],Oe=De[1],We=c([]),je=We[0],Be=We[1],ze=c(!1),Pe=ze[0],Ke=ze[1],Ue=c(!1);Ue[0];var Ge=Ue[1],He=c(!0),Je=He[0],Ve=He[1],qe=c(!0),Ze=qe[0],Qe=qe[1],Ye=c("");Ye[0];var $e=Ye[1],Xe=c(""),en=Xe[0],nn=Xe[1],on=c(!1),tn=on[0],ln=on[1],an=c(!1),rn=an[0],sn=an[1],dn=c(!1),cn=dn[0],un=dn[1],vn=c([]);vn[0];var gn=vn[1],hn=c(new Set),mn=hn[0],pn=hn[1],fn=c(new Set),Cn=fn[0],yn=fn[1],bn=d(""),wn=d(""),_n=d(new Set),xn=u(function(){return""===(null==Ie?void 0:Ie.trim())||tn},[Ie,tn]),Sn=u(function(){return tn||pe},[tn,pe]),Ln=u(function(){return xn||tn||pe},[xn,tn,pe]),kn=d(null),Rn=c("100%"),An=Rn[0],En=Rn[1],Tn=d(new Set);u(function(){var e,n,o;return!(""===(null===(e=null==B?void 0:B.original)||void 0===e?void 0:e.trim())||(null==B?void 0:B.isTooltipEnabled)&&""===(null===(n=null==B?void 0:B.tooltip)||void 0===n?void 0:n.trim())||(null==B?void 0:B.isModificationEnabled)&&""===(null===(o=null==B?void 0:B.modification)||void 0===o?void 0:o.trim()))},[B]);var Mn=R(T||(T=e(["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "],["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "]))),In=c(!1),Fn=In[0],Dn=In[1];v(function(){var e='Please tell me how I should correct "'.concat((null==B?void 0:B.original)||"",'"? ');Oe(e)},[B]),v(function(){var e=ce||ge;if(e){var n="Validation failed. Do you have any recommendations for me?"===e;Vn(new KeyboardEvent("keydown",{key:"Enter"}),!1,e,n),ue(""),he("")}},[ce,ge]),v(function(){var e=Se.current,n=function(){var e=Se.current;if(e){var n=e.scrollTop,o=e.scrollHeight,i=e.clientHeight;un(!(o-(n+i)<=35))}};return e&&(e.addEventListener("scroll",n),n()),function(){e&&e.removeEventListener("scroll",n)}},[cn,Je,je]);var Nn=g(function(){console.log('🧹 Performing UI Cleanup for "Delete Current Learning"'),z(function(e){return n(n({},e),{original:Ce?"":e.original,modification:"",tooltip:"",whenToApply:"",whenNotToApply:"",isTooltipEnabled:!1,isModificationEnabled:!0,_mergeUpdate:!1})}),Y&&Y(null),X&&X(null),me&&me(null),re&&re(),V&&V(""),gn([])},[z,Y,X,re,H,V,gn]);v(function(){if(je&&0!==je.length){var e=je[je.length-1],n=(null==e?void 0:e.orchestratorAndAgentsMessages)||[],o=/['"]delete_current_learning['"]\s*:\s*(true|false|True|False)/;n.forEach(function(n,i){var t=(null==n?void 0:n.responsedata)||"",l=e.requestId||e.id||"msg-".concat(je.length),a="".concat(l,"_orch_").concat(i);if(!Tn.current.has(a)){var r=t.match(o);if(r)"true"===r[1].toLowerCase()&&(console.log("✅ Delete detected in Effect - Triggering Cleanup for:",a),Tn.current.add(a),Nn())}})}},[je,Nn]);var On=g(function(e){return o(void 0,void 0,void 0,function(){var n,o,l,a,r,s,d;return i(this,function(i){switch(i.label){case 0:if(n=JSON.stringify({deleted_similar_learning_ids:e.deleted_similar_learning_ids||[],deleted_conflicting_learning_ids:e.deleted_conflicting_learning_ids||[],delete_current_learning:e.delete_current_learning||!1}),_n.current.has(n))return console.log("Delete operation already processed, skipping callback execution:",n),[2];_n.current.add(n),console.log("Processing new delete operation:",n),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,F(e,W,O,be)];case 2:return i.sent(),o=e.deleted_similar_learning_ids,l=void 0===o?[]:o,a=e.deleted_conflicting_learning_ids,r=void 0===a?[]:a,s=t(t([],l||[],!0),r||[],!0),pn(function(e){var n=new Set(e);return s.forEach(function(e){return n.add(e)}),console.log("Added deleted learning IDs to tracking set:",Array.from(n)),n}),console.log("UI state updated after deletion of learnings:",s),[3,4];case 3:throw d=i.sent(),_n.current.delete(n),console.error("Error processing delete operation:",d),d;case 4:return[2]}})})},[W,O,be,pn]),Wn=g(function(e){return o(void 0,void 0,void 0,function(){var o,t,l,a,r,s,d,c,u,v,g,h;return i(this,function(i){switch(i.label){case 0:ve(!0),console.log("🔴 MERGE CALLBACK - Processing merge tool call:",e),i.label=1;case 1:if(i.trys.push([1,6,7,8]),o=e.merge_learnings,t=e.similar_learnings,l=e.conditions_whentoapply,a=e.conditions_whennottoapply,console.log("🔴 MERGE CALLBACK - Extracted data:"),console.log("merge_learnings:",o),console.log("similar_learnings:",t),console.log("conditions_whentoapply:",l),console.log("conditions_whennottoapply:",a),!o||!t||!Array.isArray(t))return console.log("Invalid merge tool data, skipping"),[2];console.log(" MERGE CALLBACK - Current formDataState before replacement:",B),console.log(" MERGE CALLBACK - Current whenToApply:",null==B?void 0:B.whenToApply),console.log(" MERGE CALLBACK - Current whenNotToApply:",null==B?void 0:B.whenNotToApply),l&&Array.isArray(l)&&(console.log(" MERGE CALLBACK - UNCONDITIONALLY replacing whenToApply conditions:",l),r=l.join(" OR "),console.log(" MERGE CALLBACK - New whenToApply string:",r),z(function(e){console.log(" MERGE CALLBACK - Previous formDataState:",e);var o=n(n({},e),{whenToApply:r,_mergeUpdate:!0,_mergeWTA:l});return console.log("MERGE CALLBACK - New formDataState:",o),o})),a&&Array.isArray(a)&&(console.log(" MERGE CALLBACK - UNCONDITIONALLY replacing whenNotToApply conditions:",a),s=a.join(" OR "),console.log(" MERGE CALLBACK - New whenNotToApply string:",s),z(function(e){console.log(" MERGE CALLBACK - Previous formDataState for WNTA:",e);var o=n(n({},e),{whenNotToApply:s,_mergeUpdate:!0,_mergeWNTA:a});return console.log(" MERGE CALLBACK - New formDataState for WNTA:",o),o})),yn(function(e){var n=new Set(e);return t.forEach(function(e){return n.add(e)}),console.log("Added merged learning IDs to tracking set:",Array.from(n)),n}),d=0,c=t,i.label=2;case 2:return d<c.length?(u=c[d],console.log("Sending delete request for merged learning ID: ".concat(u)),v={status:"approved",metadata:{userName:"M Kathyayani",userEmailId:"madumbu.kathyayani@techolution.com",llm:"claude-3.5-sonnet",isVariantFlow:!0,isDeleteAction:!0,isAgentsFeedback:!0,variant:{id:u,scope:{name:"User",value:[{name:"M Kathyayani",email:"madumbu.kathyayani@techolution.com",userId:"8059658c-a65c-4e14-89aa-a5195f5d09f5"}]},topic:{id:null,value:"default"},variant:"Learning ID: ".concat(u),question:"",categories:[],created_at:(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),originalQuestion:"",parameterizedQuestion:"",conditions_whentoapply:"",conditions_whennottoapply:"",parentId:null}}},[4,k({baseUrl:W,organizationName:O,chatAssistantName:be,payload:v})]):[3,5];case 3:(g=i.sent()).ok?console.log("Successfully deleted merged learning ID ".concat(u)):console.error("Failed to delete merged learning ID ".concat(u,":"),g.statusText),i.label=4;case 4:return d++,[3,2];case 5:return[3,8];case 6:return h=i.sent(),console.error("Error processing merge operation:",h),[3,8];case 7:return console.log("switched off"),ve(!1),[7];case 8:return[2]}})})},[oe,yn,z,ve]),jn=function(e,n,o,i){return u(function(){for(var t,l=[],a=/['"]conditions_whentoapply['"]\s*:\s*(\[\s*\]|\[\s*\{\s*['"]when_to_apply['"]\s*:\s*(['"])(?:\\.|(?!\2).)*\2\s*,\s*['"]confidence_score['"]\s*:\s*\d+\s*\}(?:\s*,\s*\{\s*['"]when_to_apply['"]\s*:\s*(['"])(?:\\.|(?!\3).)*\3\s*,\s*['"]confidence_score['"]\s*:\s*\d+\s*\})*\s*\])\s*,\s*['"]conditions_whennottoapply['"]\s*:\s*(\[\s*\]|\[\s*\{\s*['"]when_not_to_apply['"]\s*:\s*(['"])(?:\\.|(?!\5).)*\5\s*,\s*['"]confidence_score['"]\s*:\s*\d+\s*\}(?:\s*,\s*\{\s*['"]when_not_to_apply['"]\s*:\s*(['"])(?:\\.|(?!\6).)*\6\s*,\s*['"]confidence_score['"]\s*:\s*\d+\s*\})*\s*\])/,r=/['"]is_valid['"]\s*:\s*(true|false|True|False)\s*,\s*['"]conflictingConditions['"]\s*:\s*\[\s*(?:\{[\s\S]*?['"]conflictType['"]\s*:\s*['"][^'"]+['"][\s\S]*?\}\s*,?\s*)*\]\s*,\s*['"]save['"]\s*:\s*(true|false|True|False)/,s=/['"]is_valid_db['"]\s*:\s*(true|false|True|False)[\s\S]*?['"]conflicting_learnings['"]\s*:\s*([\s\S]*?)\s*,\s*['"]similar_learnings['"]\s*:\s*([\s\S]*?)(?:,\s*['"]save['"]|\}$)/,d=/['"]delete_current_learning['"]\s*:\s*(true|false|True|False)\s*,\s*['"]deleted_similar_learning_ids['"]\s*:\s*\[[\s\S]*?\]\s*,\s*['"]deleted_conflicting_learning_ids['"]\s*:\s*\[[\s\S]*?\]/,c=/{\s*['"]merge_learnings['"]\s*:\s*(?:True|true)[\s\S]+?}/,u=/({[\s\S]*}|\[[\s\S]*\])/,v=/({[\s\S]*})/,g=function(e){var t=(null==e?void 0:e.responsedata)||"";console.log("🔍 RESPONSE DATA:",String(t)),String(t).includes("merge_learnings")&&(console.log("🔍 FOUND merge_learnings in response!"),console.log("🔍 Full response:",String(t))),String(t).includes("'merge_learnings'")&&(console.log("🔍 FOUND merge_learnings in response!"),console.log("🔍 Full response:",String(t)));var g=t.match(a);if(g)try{var h=_.parse("{".concat(g[0],"}")),m=function(e){return e&&/[a-zA-Z]/.test(e)};h.conditions_whentoapply&&Array.isArray(h.conditions_whentoapply)&&(h.conditions_whentoapply=h.conditions_whentoapply.filter(function(e){return e.when_to_apply&&m(e.when_to_apply)})),h.conditions_whennottoapply&&Array.isArray(h.conditions_whennottoapply)&&(h.conditions_whennottoapply=h.conditions_whennottoapply.filter(function(e){return e.when_not_to_apply&&m(e.when_not_to_apply)})),l.push(h)}catch(e){console.error("Failed to parse JSON:",e)}var p=t.match(r);if(console.log("validationObj before cond "),p)try{var f=L(p[0]||""),C=_.parse("{".concat(f,"}"));console.log("validationObj before set ",C),Y(C),console.log("validationObj after set in chat",Q)}catch(e){console.error("Failed to parse validation JSON:",e)}try{var y=L(t||""),b=_.parse(y);if(b&&"object"==typeof b&&"is_valid_db"in b&&"conflicting_learnings"in b&&"similar_learnings"in b)console.log("Found validation data in response:",b),X(b),console.log("dbVal after set in chat",$);else if(A=t.match(s))try{console.log("🔍 Regex Match Found. Attempting reconstruction...");var w=A[1],x=A[2],S=A[3],k='{\n "is_valid_db": '.concat((T=function(e){return e.replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/\bNone\b/g,"null")})(w),',\n "conflicting_learnings": ').concat(T(x),',\n "similar_learnings": ').concat(T(S),"\n }");console.log("📝 Reconstructed JSON (First 100 chars):",k.substring(0,100)+"...");var R=_.parse(k);X(R),console.log("✅ [Fix] dbVal parsed successfully via Group Capture")}catch(e){console.error("❌ Failed to parse validation JSON with regex fallback:",e),console.log("❌ Failed Match Groups:",A)}}catch(e){var A;if(console.log("JSON parsing failed, trying regex fallback for validation data"),A=t.match(s))try{var T;w=A[1],x=A[2],S=A[3],k='{\n "is_valid_db": '.concat((T=function(e){return e.replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/\bNone\b/g,"null")})(w),',\n "conflicting_learnings": ').concat(T(x),',\n "similar_learnings": ').concat(T(S),"\n }");console.log("🛠️ Reconstructed DB Validation JSON:",k.substring(0,100)+"...");R=_.parse(k);X(R),console.log("✅ [App] dbVal set via Regex Fallback:",R)}catch(e){console.error("Failed to parse validation JSON with regex fallback:",e),console.log("Failed string:",A[0])}}var M=t.match(d);if(M)try{var I=L(M[0]||""),F=_.parse("{".concat(I,"}"));console.log("Delete tool detected:",F),o&&o(F)}catch(e){console.error("Failed to parse delete tool JSON:",e)}console.log("🔍 Testing merge tool regex on response data...");var D=t.match(c);if(console.log("🔍 Merge tool regex match result:",D),D){console.log("🔍 MERGE TOOL REGEX MATCHED!");try{var N=D[0],O=L(N),W=_.parse(O);console.log("✅ Correctly parsed merge tool object:",W),i&&i(W)}catch(e){console.error("Failed to parse merge tool JSON:",e)}}var j=t.match(u);if(j&&t.includes("edit_actions"))try{console.log("Edit tool match found:",j[0]);O=L(j[0]);var B=_.parse(O);console.log("Edit tool detected and parsed successfully:",B),B.conflicting_learnings&&(se(B.conflicting_learnings),console.log("Setting edit conflicting learning trigger:",B.conflicting_learnings)),B.similar_learnings&&(de(B.similar_learnings),console.log("Setting edit similar learning trigger:",B.similar_learnings))}catch(e){console.error("Failed to parse edit tool JSON:",e)}var z=t.match(v);if(z)try{O=L(z[0]);var P=_.parse(O);if(P.recommended_whentoapply||P.recommended_whennottoapply){var K=E(P);n(K)}}catch(e){console.error("Failed to parse validation recommendations:",e)}},h=0,m=(null===(t=e[e.length-1])||void 0===t?void 0:t.orchestratorAndAgentsMessages)||[];h<m.length;h++){g(m[h])}return l},[e,o])}(je,me,On,Wn);v(function(){var e=(null==jn?void 0:jn[(null==jn?void 0:jn.length)-1])||null;e&&(j(e),console.log("Parsed suggestions:",jn))},[jn]),v(function(){if($&&0!==mn.size){var e=$.conflicting_learnings&&Object.values($.conflicting_learnings).some(function(e){return mn.has(e.id)}),o=$.similar_learnings&&Object.values($.similar_learnings).some(function(e){return mn.has(e.id)});if(e||o){var i=JSON.stringify({deletedIds:Array.from(mn).sort()});if(bn.current!==i){var t=n({},$);if(t.conflicting_learnings){var l=Object.values(t.conflicting_learnings).filter(function(e){return!mn.has(e.id)});console.log("[ChatComponent] Re-keying conflicting learnings:",{originalKeys:Object.keys(t.conflicting_learnings),remainingCount:l.length,remainingLearnings:l.map(function(e){return{id:e.id,variant:e.feedback.variant}})});var a={};l.forEach(function(e,n){var o=String.fromCharCode(65+n);a[o]=e,console.log("[ChatComponent] Conflicting learning ".concat(n," gets key '").concat(o,"':"),e.feedback.variant)}),t.conflicting_learnings=a,console.log("[ChatComponent] Final conflicting learnings keys:",Object.keys(a))}if(t.similar_learnings){var r=Object.values(t.similar_learnings).filter(function(e){return!mn.has(e.id)});console.log("[ChatComponent] Re-keying similar learnings:",{originalKeys:Object.keys(t.similar_learnings),remainingCount:r.length,remainingLearnings:r.map(function(e){return{id:e.id,variant:e.feedback.variant}})});var s={};r.forEach(function(e,n){var o=String.fromCharCode(65+n);s[o]=e,console.log("[ChatComponent] Similar learning ".concat(n," gets key '").concat(o,"':"),e.feedback.variant)}),t.similar_learnings=s,console.log("[ChatComponent] Final similar learnings keys:",Object.keys(s))}bn.current=i,console.log("Filtered learningWtaResponse after deletion:",t),X(t)}}}},[mn,$,X]),v(function(){if($&&0!==Cn.size&&($.similar_learnings&&Object.values($.similar_learnings).some(function(e){return Cn.has(e.id)}))){var e=JSON.stringify({mergedIds:Array.from(Cn).sort()});if(wn.current!==e){var o=n({},$);if(o.similar_learnings){var i=Object.values(o.similar_learnings).filter(function(e){return!Cn.has(e.id)});console.log("[ChatComponent] Re-keying similar learnings after merge:",{originalKeys:Object.keys(o.similar_learnings),remainingCount:i.length,remainingLearnings:i.map(function(e){return{id:e.id,variant:e.feedback.variant}})});var t={};i.forEach(function(e,n){var o=String.fromCharCode(65+n);t[o]=e,console.log("[ChatComponent] Similar learning ".concat(n," gets key '").concat(o,"':"),e.feedback.variant)}),o.similar_learnings=t,console.log("[ChatComponent] Final similar learnings keys after merge:",Object.keys(t))}wn.current=e,console.log("Filtered learningWtaResponse after merge:",o),X(o)}}},[Cn,$,X]);var Bn=function(e){return u(function(){for(var n,o,i=[],t=/['"](\w+)['"]\s*:\s*(['"])((?:\\.|(?!\2).)*)\2/g,l=0,a=(null===(o=e[e.length-1])||void 0===o?void 0:o.orchestratorAndAgentsMessages)||[];l<a.length;l++)for(var r=a[l],s=(null==r?void 0:r.responsedata)||"",d=void 0;null!==(d=t.exec(s));)try{var c=d[1],u=d[3];(u.startsWith("'")&&u.endsWith("'")||u.startsWith('"')&&u.endsWith('"'))&&(u=u.substring(1,u.length-1));var v=((n={})[c]=u,n);i.push(v)}catch(e){console.error("Failed to parse regex match for header message:",e)}return i},[e])}(je);v(function(){var e=null==Bn?void 0:Bn.find(function(e){return"modification"in e});e&&H(e.modification);var o=null==Bn?void 0:Bn.find(function(e){return"tooltip"in e});o&&V(o.tooltip);var i=null==Bn?void 0:Bn.find(function(e){return"original"in e});i&&(console.log("✅ Original Extracted:",i.original),z(function(e){return e.question===i.original?e:n(n({},e),{original:i.original,_extractedOriginalUpdate:!0})}))},[Bn]);!function(e,n){v(function(){for(var o,i=0,t=(null===(o=e[e.length-1])||void 0===o?void 0:o.orchestratorAndAgentsMessages)||[];i<t.length;i++){for(var l=t[i],a=(null==l?void 0:l.responsedata)||"",r=/<wta>([\s\S]*?)<\/wta>/gi,s=[],d=void 0;null!==(d=r.exec(a));)console.log("match wta suggestion",d),s.push(d[1]);s.length&&n(s)}},[e,n])}(je,gn);var zn=function(e){return u(function(){for(var n,o=[],i=/^\{\s*(['"])(\w+)\1\s*:\s*(['"])(.*?)\3\s*\}$/,t=0,l=(null===(n=e[e.length-1])||void 0===n?void 0:n.orchestratorAndAgentsMessages)||[];t<l.length;t++){var a=l[t],r=((null==a?void 0:a.responsedata)||"").match(i);if(r){console.log("match: ",r[0]);try{var s=_.parse(r[0]);o.push(s)}catch(e){console.error("Failed to parse JSON:",e)}}}return o},[e])}(je);v(function(){var e=(null==zn?void 0:zn[(null==zn?void 0:zn.length)-1])||null;e&&(console.log("latestParseTooltip: ",e),V(null==e?void 0:e.tooltip))},[zn]);var Pn=function(e){var n=c([]),o=n[0],i=n[1];return v(function(){for(var n,o=[],t=/\{\s*['"]save['"]\s*:\s*(True|False|true|false)\s*\}/,l=0,a=(null===(n=e[e.length-1])||void 0===n?void 0:n.orchestratorAndAgentsMessages)||[];l<a.length;l++){var r=a[l],s=((null==r?void 0:r.responsedata)||"").match(t);if(s)try{var d=s[0].replace(/\bTrue\b/,"true").replace(/\bFalse\b/,"false").replace(/'/g,'"');console.log("corrected:",d);var c=_.parse(d);!0===c.save&&Z(!0),o.push(c)}catch(e){console.error("Failed to parse JSON:",e)}}i(o)},[e]),o}(je);v(function(){var e=(null==Pn?void 0:Pn[(null==Pn?void 0:Pn.length)-1])||null;if(e&&"boolean"==typeof e.save){q(!0);var n=setTimeout(function(){q(!1),J(e.save)},200);return function(){clearTimeout(n)}}},[Pn]),v(function(){ee&&(Vn(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save it"),ne(!1))},[ee]),v(function(){if(ie&&oe){var e="Delete learning ".concat(ie);Vn(new KeyboardEvent("keydown",{key:"Enter"}),!1,e),te&&te(null)}},[ie,oe,te]),v(function(){Un(),Gn();var e=function(){var e,n=(null===(e=null==kn?void 0:kn.current)||void 0===e?void 0:e.clientHeight)||0,o="calc(100% - ".concat(n,"px - 10px");En(o)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var Kn=g(function(){var e=Se.current;e&&setTimeout(function(){e.scrollTo({top:e.scrollHeight,behavior:"smooth"}),un(!1)},100)},[]);v(function(){(null==Re?void 0:Re.length)>0&&Kn()},[Re]);var Un=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(xe,"/api/chatbot/getChatSettings?name=").concat(be,"&organizationName=").concat(O),headers:{}};p.request(e).then(function(e){var n,o,i;(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)&&""!==(null===(i=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chatSettings)||void 0===i?void 0:i.chatInitialMessage)&&Qe(!0)}).catch(function(e){console.error(e)})},Gn=function(){return o(void 0,void 0,void 0,function(){var e,n;return i(this,function(o){e="".concat(xe,"/api/chat/history?name=").concat(be,"&organizationName=").concat(O);try{n={method:"GET",params:{guestSessionId:we.current},withCredentials:!0},p.get(e,n).then(function(e){var n=e.data;n.length>0?(Be(n),Kn()):Qe(!0)}).catch(function(e){console.error(e)})}catch(e){Ke(!1),console.error(e)}return[2]})})};function Hn(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var Jn=function(e,o,i,l,a,r){var s,d,c,u,v,g,h,p,f,C,y,b,w,_,x,S,L,k;console.log("userInput: ",a);var R={role:"assistant",content:"",id:m()};if(null===(u=null===(c=null===(d=null===(s=null==e?void 0:e.chatStream)||void 0===s?void 0:s.continueChatResult)||void 0===d?void 0:d.message)||void 0===c?void 0:c.content)||void 0===u?void 0:u.includes("WaitMessage: "))Ke(!1),Ge(!0),R.content=function(e){var n="WaitMessage: ",o=e.indexOf(n);if(-1!==o){var i=e.substring(o+13);return null==i?void 0:i.replaceAll("WaitMessage: ","")}return""}((null===(h=null===(g=null===(v=null==e?void 0:e.chatStream)||void 0===v?void 0:v.continueChatResult)||void 0===g?void 0:g.message)||void 0===h?void 0:h.content)+"\n\n"),Be(t(t([],je,!0),[{role:"user",content:a,time:l,isFirstQuestionSent:r||!1,id:(null===(f=null===(p=null==e?void 0:e.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===f?void 0:f.requestId)||"",reply:""},R],!1));else{Ke(!1),Ge(!1),R.content=null===(w=Hn(null===(b=null===(y=null===(C=null==e?void 0:e.chatStream)||void 0===C?void 0:C.continueChatResult)||void 0===y?void 0:y.message)||void 0===b?void 0:b.content))||void 0===w?void 0:w.replaceAll("WaitMessage: ","");var A=function(e,o,i){var l,a,r,s,d,c,u,v,g,h,p,f,C,y,b,w,_,x,S,L,k,R,A,E,T,M,I,F,D,N,O,W,j,B,z,P,K,U,G,H,J,V,q,Z,Q,Y,$,X,ee,ne,oe,ie,te,le,ae,re,se,de,ce,ue,ve,ge,he,me,pe,fe,Ce,ye,be,we,_e,xe,Se,Le,ke,Re,Ae,Ee,Te,Me,Ie,Fe,De,Ne,Oe,We,je,Be,ze,Pe,Ke,Ue,Ge,He,Je,Ve,qe,Ze,Qe,Ye,$e,Xe,en,nn,on,tn,ln,an,rn,sn,dn,cn,un,vn,gn,hn,mn,pn,fn,Cn,yn,bn,wn,_n,xn,Sn,Ln,kn,Rn,An,En,Tn,Mn,In,Fn,Dn,Nn,On,Wn,jn,Bn,zn,Pn,Kn,Un,Gn,Jn,Vn,qn,Zn,Qn,Yn,$n,Xn,eo,no,oo,io,to,lo,ao,ro,so,co,uo,vo,go,ho,mo,po;console.log("event",e,Object.keys(e)),console.log("content: ",null==e?void 0:e.data);var fo={role:"assistant",content:"",id:m()};if(!1===(null===(r=null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.chatStream)||void 0===a?void 0:a.continueChatResult)||void 0===r?void 0:r.thinking_break)&&!0===(null===(c=null===(d=null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.chatStream)||void 0===d?void 0:d.continueChatResult)||void 0===c?void 0:c.is_orchestrator)&&!1===(null===(g=null===(v=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.chatStream)||void 0===v?void 0:v.continueChatResult)||void 0===g?void 0:g.isEnd)&&(fo.content=null===(y=Hn(null===(C=null===(f=null===(p=null===(h=null==e?void 0:e.data)||void 0===h?void 0:h.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===f?void 0:f.message)||void 0===C?void 0:C.content))||void 0===y?void 0:y.replaceAll("WaitMessage: ","")),!0===(null===(_=null===(w=null===(b=null==e?void 0:e.data)||void 0===b?void 0:b.chatStream)||void 0===w?void 0:w.continueChatResult)||void 0===_?void 0:_.thinking_break)&&!0===(null===(L=null===(S=null===(x=null==e?void 0:e.data)||void 0===x?void 0:x.chatStream)||void 0===S?void 0:S.continueChatResult)||void 0===L?void 0:L.is_orchestrator)&&!1===(null===(A=null===(R=null===(k=null==e?void 0:e.data)||void 0===k?void 0:k.chatStream)||void 0===R?void 0:R.continueChatResult)||void 0===A?void 0:A.isEnd)&&(fo.content="",o.push({responsedata:null===(I=null===(M=null===(T=null===(E=null==e?void 0:e.data)||void 0===E?void 0:E.chatStream)||void 0===T?void 0:T.continueChatResult)||void 0===M?void 0:M.message)||void 0===I?void 0:I.content,responseFrom:null===(N=null===(D=null===(F=null==e?void 0:e.data)||void 0===F?void 0:F.chatStream)||void 0===D?void 0:D.continueChatResult)||void 0===N?void 0:N.responded_by,header_message:null===(j=null===(W=null===(O=null==e?void 0:e.data)||void 0===O?void 0:O.chatStream)||void 0===W?void 0:W.continueChatResult)||void 0===j?void 0:j.header_message,finalResponseStatus:!1,explainability_id:null!==(K=null===(P=null===(z=null===(B=null==e?void 0:e.data)||void 0===B?void 0:B.chatStream)||void 0===z?void 0:z.continueChatResult)||void 0===P?void 0:P.explainability_id)&&void 0!==K?K:"",isParallelToolResponse:!1})),!1===(null===(H=null===(G=null===(U=null==e?void 0:e.data)||void 0===U?void 0:U.chatStream)||void 0===G?void 0:G.continueChatResult)||void 0===H?void 0:H.thinking_break)&&!0===(null===(q=null===(V=null===(J=null==e?void 0:e.data)||void 0===J?void 0:J.chatStream)||void 0===V?void 0:V.continueChatResult)||void 0===q?void 0:q.is_orchestrator)&&!0===(null===(Y=null===(Q=null===(Z=null==e?void 0:e.data)||void 0===Z?void 0:Z.chatStream)||void 0===Q?void 0:Q.continueChatResult)||void 0===Y?void 0:Y.isEnd)&&(fo.content=null===(oe=Hn(null===(ne=null===(ee=null===(X=null===($=null==e?void 0:e.data)||void 0===$?void 0:$.chatStream)||void 0===X?void 0:X.continueChatResult)||void 0===ee?void 0:ee.message)||void 0===ne?void 0:ne.content))||void 0===oe?void 0:oe.replaceAll("WaitMessage: ","")),!1===(null===(le=null===(te=null===(ie=null==e?void 0:e.data)||void 0===ie?void 0:ie.chatStream)||void 0===te?void 0:te.continueChatResult)||void 0===le?void 0:le.thinking_break)&&!1===(null===(se=null===(re=null===(ae=null==e?void 0:e.data)||void 0===ae?void 0:ae.chatStream)||void 0===re?void 0:re.continueChatResult)||void 0===se?void 0:se.is_orchestrator)&&!1===(null===(ue=null===(ce=null===(de=null==e?void 0:e.data)||void 0===de?void 0:de.chatStream)||void 0===ce?void 0:ce.continueChatResult)||void 0===ue?void 0:ue.isEnd)){if((bo=null===(ge=null===(ve=null==e?void 0:e.data)||void 0===ve?void 0:ve.chatStream)||void 0===ge?void 0:ge.continueChatResult).explainability_id&&bo.responded_by){var Co=bo.explainability_id,yo=bo.responded_by;i.has(Co)||i.set(Co,{responded_by:yo,index:o.length})}i.has(null===(me=null===(he=null==e?void 0:e.data)||void 0===he?void 0:he.chatStream)||void 0===me?void 0:me.continueChatResult.explainability_id)?o[Lo=null==(wo=i.get(null===(Ce=null===(fe=null===(pe=null==e?void 0:e.data)||void 0===pe?void 0:pe.chatStream)||void 0===fe?void 0:fe.continueChatResult)||void 0===Ce?void 0:Ce.explainability_id))?void 0:wo.index]={responsedata:null===(_e=null===(we=null===(be=null===(ye=null==e?void 0:e.data)||void 0===ye?void 0:ye.chatStream)||void 0===be?void 0:be.continueChatResult)||void 0===we?void 0:we.message)||void 0===_e?void 0:_e.content,responseFrom:null===(Le=null===(Se=null===(xe=null==e?void 0:e.data)||void 0===xe?void 0:xe.chatStream)||void 0===Se?void 0:Se.continueChatResult)||void 0===Le?void 0:Le.responded_by,header_message:null===(Ae=null===(Re=null===(ke=null==e?void 0:e.data)||void 0===ke?void 0:ke.chatStream)||void 0===Re?void 0:Re.continueChatResult)||void 0===Ae?void 0:Ae.header_message,finalResponseStatus:!0,explainability_id:null!==(Ie=null===(Me=null===(Te=null===(Ee=null==e?void 0:e.data)||void 0===Ee?void 0:Ee.chatStream)||void 0===Te?void 0:Te.continueChatResult)||void 0===Me?void 0:Me.explainability_id)&&void 0!==Ie?Ie:"",isParallelToolResponse:!0}:o=t(t([],o,!0),[{responsedata:null===(Oe=null===(Ne=null===(De=null===(Fe=null==e?void 0:e.data)||void 0===Fe?void 0:Fe.chatStream)||void 0===De?void 0:De.continueChatResult)||void 0===Ne?void 0:Ne.message)||void 0===Oe?void 0:Oe.content,responseFrom:null===(Be=null===(je=null===(We=null==e?void 0:e.data)||void 0===We?void 0:We.chatStream)||void 0===je?void 0:je.continueChatResult)||void 0===Be?void 0:Be.responded_by,header_message:null===(Ke=null===(Pe=null===(ze=null==e?void 0:e.data)||void 0===ze?void 0:ze.chatStream)||void 0===Pe?void 0:Pe.continueChatResult)||void 0===Ke?void 0:Ke.header_message,finalResponseStatus:!0,explainability_id:null!==(Je=null===(He=null===(Ge=null===(Ue=null==e?void 0:e.data)||void 0===Ue?void 0:Ue.chatStream)||void 0===Ge?void 0:Ge.continueChatResult)||void 0===He?void 0:He.explainability_id)&&void 0!==Je?Je:"",isParallelToolResponse:!1}],!1)}if(!0===(null===(Ze=null===(qe=null===(Ve=null==e?void 0:e.data)||void 0===Ve?void 0:Ve.chatStream)||void 0===qe?void 0:qe.continueChatResult)||void 0===Ze?void 0:Ze.thinking_break)&&!1===(null===($e=null===(Ye=null===(Qe=null==e?void 0:e.data)||void 0===Qe?void 0:Qe.chatStream)||void 0===Ye?void 0:Ye.continueChatResult)||void 0===$e?void 0:$e.is_orchestrator)&&!1===(null===(nn=null===(en=null===(Xe=null==e?void 0:e.data)||void 0===Xe?void 0:Xe.chatStream)||void 0===en?void 0:en.continueChatResult)||void 0===nn?void 0:nn.isEnd)){var bo,wo;(bo=null===(tn=null===(on=null==e?void 0:e.data)||void 0===on?void 0:on.chatStream)||void 0===tn?void 0:tn.continueChatResult).explainability_id&&bo.responded_by&&(Co=bo.explainability_id,yo=bo.responded_by,i.has(Co)||i.set(Co,{responded_by:yo,index:o.length})),i.has(null===(rn=null===(an=null===(ln=null==e?void 0:e.data)||void 0===ln?void 0:ln.chatStream)||void 0===an?void 0:an.continueChatResult)||void 0===rn?void 0:rn.explainability_id)?o[Lo=null==(wo=i.get(null===(cn=null===(dn=null===(sn=null==e?void 0:e.data)||void 0===sn?void 0:sn.chatStream)||void 0===dn?void 0:dn.continueChatResult)||void 0===cn?void 0:cn.explainability_id))?void 0:wo.index]={responsedata:null===(hn=null===(gn=null===(vn=null===(un=null==e?void 0:e.data)||void 0===un?void 0:un.chatStream)||void 0===vn?void 0:vn.continueChatResult)||void 0===gn?void 0:gn.message)||void 0===hn?void 0:hn.content,responseFrom:null===(fn=null===(pn=null===(mn=null==e?void 0:e.data)||void 0===mn?void 0:mn.chatStream)||void 0===pn?void 0:pn.continueChatResult)||void 0===fn?void 0:fn.responded_by,header_message:null===(bn=null===(yn=null===(Cn=null==e?void 0:e.data)||void 0===Cn?void 0:Cn.chatStream)||void 0===yn?void 0:yn.continueChatResult)||void 0===bn?void 0:bn.header_message,finalResponseStatus:!1,explainability_id:null!==(Sn=null===(xn=null===(_n=null===(wn=null==e?void 0:e.data)||void 0===wn?void 0:wn.chatStream)||void 0===_n?void 0:_n.continueChatResult)||void 0===xn?void 0:xn.explainability_id)&&void 0!==Sn?Sn:"",isParallelToolResponse:!0}:o.push({responsedata:null===(An=null===(Rn=null===(kn=null===(Ln=null==e?void 0:e.data)||void 0===Ln?void 0:Ln.chatStream)||void 0===kn?void 0:kn.continueChatResult)||void 0===Rn?void 0:Rn.message)||void 0===An?void 0:An.content,responseFrom:null===(Mn=null===(Tn=null===(En=null==e?void 0:e.data)||void 0===En?void 0:En.chatStream)||void 0===Tn?void 0:Tn.continueChatResult)||void 0===Mn?void 0:Mn.responded_by,header_message:null===(Dn=null===(Fn=null===(In=null==e?void 0:e.data)||void 0===In?void 0:In.chatStream)||void 0===Fn?void 0:Fn.continueChatResult)||void 0===Dn?void 0:Dn.header_message,finalResponseStatus:!1,explainability_id:null!==(jn=null===(Wn=null===(On=null===(Nn=null==e?void 0:e.data)||void 0===Nn?void 0:Nn.chatStream)||void 0===On?void 0:On.continueChatResult)||void 0===Wn?void 0:Wn.explainability_id)&&void 0!==jn?jn:"",isParallelToolResponse:!1})}var _o=null===(Kn=null===(Pn=null===(zn=null===(Bn=null==e?void 0:e.data)||void 0===Bn?void 0:Bn.chatStream)||void 0===zn?void 0:zn.continueChatResult)||void 0===Pn?void 0:Pn.message)||void 0===Kn?void 0:Kn.annotations,xo=(null===(Vn=null===(Jn=null===(Gn=null===(Un=null==e?void 0:e.data)||void 0===Un?void 0:Un.chatStream)||void 0===Gn?void 0:Gn.continueChatResult)||void 0===Jn?void 0:Jn.message)||void 0===Vn?void 0:Vn.userFeedbackId)||"",So={role:"assistant",content:fo.content,orchestratorAndAgentsMessages:o,time:new Date,requestId:null!==(Yn=null===(Qn=null===(Zn=null===(qn=null==e?void 0:e.data)||void 0===qn?void 0:qn.chatStream)||void 0===Zn?void 0:Zn.continueChatResult)||void 0===Qn?void 0:Qn.requestId)&&void 0!==Yn?Yn:"",citations:null===(no=null===(eo=null===(Xn=null===($n=null==e?void 0:e.data)||void 0===$n?void 0:$n.chatStream)||void 0===Xn?void 0:Xn.continueChatResult)||void 0===eo?void 0:eo.message)||void 0===no?void 0:no.citations,guides_utilized:null!==(ao=null===(lo=null===(to=null===(io=null===(oo=null==e?void 0:e.data)||void 0===oo?void 0:oo.chatStream)||void 0===io?void 0:io.continueChatResult)||void 0===to?void 0:to.message)||void 0===lo?void 0:lo.guides_utilized)&&void 0!==ao?ao:[],annotations:_o,resourceId:null===(co=null===(so=null===(ro=null==e?void 0:e.data)||void 0===ro?void 0:ro.chatStream)||void 0===so?void 0:so.continueChatResult)||void 0===co?void 0:co.resourceId,userFeedbackId:xo,citationDisplayType:null!==(mo=null===(ho=null===(go=null===(vo=null===(uo=null==e?void 0:e.data)||void 0===uo?void 0:uo.chatStream)||void 0===vo?void 0:vo.continueChatResult)||void 0===go?void 0:go.message)||void 0===ho?void 0:ho.citationDisplayType)&&void 0!==mo?mo:""};if(_o)for(var Lo=0;Lo<(null==_o?void 0:_o.length);Lo++){var ko=_o[Lo];So=n(n({},So),{content:null===(po=null==So?void 0:So.content)||void 0===po?void 0:po.replace(null==ko?void 0:ko.text,(null==ko?void 0:ko.text)+"<sup>".concat(Lo,"</sup>"))})}return So}({data:e},i,o);console.log("assistantObject",A),Be(t(t([],je,!0),[{role:"user",content:a||"",time:l,isFirstQuestionSent:r||!1,requestId:null!==(S=null===(x=null===(_=null==e?void 0:e.chatStream)||void 0===_?void 0:_.continueChatResult)||void 0===x?void 0:x.requestId)&&void 0!==S?S:""},A],!1)),Ve(null===(k=null===(L=null==e?void 0:e.chatStream)||void 0===L?void 0:L.continueChatResult)||void 0===k?void 0:k.isEnd)}},Vn=function(e,o,i,l){var a,r,s,d,c,u,v;void 0===l&&(l=!1);var g=(null==i?void 0:i.trim())||(null==Ie?void 0:Ie.trim())||"";if(!("Enter"!==e.key||e.shiftKey||""===(null==i?void 0:i.trim())&&""===(null==Ie?void 0:Ie.trim())||tn)){ln(!0),l&&Dn(!0);var p=new Date;Be(t(t([],je.map(function(e,o){var i;return n(n({},e),{content:null===(i=Hn(e.content))||void 0===i?void 0:i.replace("WaitMessage: ","")})}),!0),[{role:"user",content:g,time:p,isFirstQuestionSent:!1}],!1));var f=new Map,C=[];Te(!1);var y={WEBSOCKET_URL:K,organizationName:O,chatAssistantName:be,selectedAIModel:"gpt-4",replyMessage:"",userName:"Guest User",userEmailId:"guestUser@example.com",userId:"Guest User",query:(null==i?void 0:i.trim())||(null==Ie?void 0:Ie.trim())||"",requestId:"requestId-".concat(m()),customPrompt:"",enableForBackend:!1,guestSessionId:we.current,chatPreviewId:_e.current,customMetaData:n(n(n(n(n({},B),{whenToApply:null===(r=null===(a=null==B?void 0:B.whenToApply)||void 0===a?void 0:a.split(" OR "))||void 0===r?void 0:r.filter(function(e){return""!==e}),whenNotToApply:null===(d=null===(s=null==B?void 0:B.whenNotToApply)||void 0===s?void 0:s.split(" OR "))||void 0===d?void 0:d.filter(function(e){return""!==e}),isFirstQuestion:0===je.length,validation:!l&&(null!=Q?Q:null),conflicting_learnings:null!==(c=null==$?void 0:$.conflicting_learnings)&&void 0!==c?c:"",similar_learnings:null!==(u=null==$?void 0:$.similar_learnings)&&void 0!==u?u:""}),(null==fe?void 0:fe.wta)&&{recommended_whentoapply:fe.wta}),(null==fe?void 0:fe.wnta)&&{recommended_whennottoapply:fe.wnta}),{send_metadata_to_orchestrator:!0,ai_response:ye}),customMetaDataDebug:{conflicting_learnings_keys:(null==$?void 0:$.conflicting_learnings)?Object.keys($.conflicting_learnings):[],similar_learnings_keys:(null==$?void 0:$.similar_learnings)?Object.keys($.similar_learnings):[],conflicting_count:(null==$?void 0:$.conflicting_learnings)?Object.keys($.conflicting_learnings).length:0,similar_count:(null==$?void 0:$.similar_learnings)?Object.keys($.similar_learnings).length:0},aiModel:"",onStreamEvent:function(e){return Jn(e,f,C,p,g,o)},onStreamEnd:function(e){ln(!1),Dn(!1)},onError:function(e){console.error("Stream error:",e),ln(!1),Dn(!1)}};if(console.log("Custom MetaData Payload:",y.customMetaData),""!==(null==Ie?void 0:Ie.trim())||(null==i?void 0:i.trim())){Ke(!0),null===(v=Le.current)||void 0===v||v.blur(),Fe(""),Kn();for(var b="Thanks for sharing your thoughts. I'm putting together the most helpful suggestions now, so we can make sure this really fits your needs.".split(" "),w="",_=function(e){setTimeout(function(){w+=b[e]+" ",nn(w.trim())},25*e)},x=0;x<b.length;x++)_(x);h(y)}}},qn=d(new Set);return v(function(){if(le&&!tn){if(qn.current.has(le))return void console.log("[ChatComponent] ⚠️ Duplicate merge trigger ignored:",le);console.log("[ChatComponent] 🔴 MERGE TRIGGER RECEIVED:",le),qn.current.add(le);var e=null,n="A";if(null==$?void 0:$.similar_learnings){var o=Object.values($.similar_learnings),i=o.findIndex(function(e){return(null==e?void 0:e.id)===le});-1!==i&&(e=o[i],n=String.fromCharCode(65+i))}if(e){var t="Merge Similar Learning ".concat(n," with current learning");console.log("[ChatComponent] ✅ Sending merge message to chat:",t),Vn(new KeyboardEvent("keydown",{key:"Enter"}),!1,t),console.log("[ChatComponent] Message sent successfully")}else console.log("[ChatComponent] ❌ Learning not found for ID:",le);ae&&(ae(null),console.log("[ChatComponent] Trigger cleared"))}else le&&tn&&console.log("[ChatComponent] ⚠️ Merge trigger received but streaming in progress:",le)},[le,tn,ae]),u(function(){return{img:function(e){e.node;var o=l(e,["node"]);return a("img",n({},o,{style:{height:"100%",width:"100%",objectFit:"contain"},alt:(null==o?void 0:o.alt)||"",className:"w-full sm:max-w-lg md:max-w-2xl lg:max-w-4xl mx-auto"}))},p:function(e){e.node;var o=l(e,["node"]);return a("p",n({},o,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",fontSize:"1rem",lineHeight:"1.625rem",marginBottom:"1rem",marginTop:"10px"}},{children:null==o?void 0:o.children}))},code:function(e){e.node;var o=l(e,["node"]);return a("span",n({},o,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",fontSize:"1rem",lineHeight:"1.625rem"}},{children:null==o?void 0:o.children}))},ol:function(e){e.node;var o=l(e,["node"]);return a("ol",n({},o,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==o?void 0:o.children}))},ul:function(e){e.node;var o=l(e,["node"]);return a("ul",n({},o,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==o?void 0:o.children}))},wta:function(e){e.node;var n=l(e,["node"]);n.key||n["data-key"];var o=n.label||n.children||"Unknown label";return a(D,{label:o,onToggle:function(e,n){!function(e,n){var o=Array.isArray(e)?e[0]:e;null==Re||Re.length,Te(!0),Ae(function(e){return n?e.includes(o)?e:t(t([],e,!0),[o],!1):e.filter(function(e){return e!==o})})}(e,n)}})}}},[]),r("div",n({className:b.customFont,style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"#fbfaff",border:"1px solid #d1d5db",overflow:"hidden"}},{children:[r("div",n({style:{width:"100%",height:"100%",backgroundColor:"#fbfaff",maxWidth:"100%",overflow:"hidden"}},{children:[a("div",n({ref:kn},{children:a(I,{resetChatHistory:function(){var e="".concat(xe,"/api/chat/resetHistory?name=").concat(be,"&organizationName=").concat(O);Y(null),X(null);try{var o={method:"GET",params:{guestSessionId:we.current},withCredentials:!0};p.get(e,o).then(function(){H(""),V(""),U(!0),Te(!1),Ae([]),$e(""),pn(new Set),bn.current="",_n.current.clear(),qn.current.clear(),ae&&ae(null),_e.current="".concat(m()),P(!1),Be([]),Qe(!0),re?(console.log("[ChatComponent] 🔄 Calling onResetLearningData callback"),re()):console.log("[ChatComponent] ❌ onResetLearningData callback not available"),z(function(e){return n(n({},e),{original:Ce?"":e.original,modification:"",tooltip:"",whenToApply:"",whenNotToApply:"",isTooltipEnabled:!1,isModificationEnabled:!0})})}).catch(function(e){console.error(e)})}catch(e){Ke(!1),console.error(e)}},isStreamEnd:Je})})),r("div",n({style:{width:"100%",height:An,maxHeight:An,overflowY:"auto",backgroundColor:"#fbfaff"},ref:Se},{children:[a("div",n({className:"welcome-message",style:{alignItems:"flex-start",paddingLeft:"0.5rem",paddingTop:"1rem",maxWidth:"70%",fontSize:"1rem",lineHeight:"1.75rem",borderRadius:"0.5rem",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"#333",fontWeight:"700",textAlign:"left"}},{children:a("span",{children:"I'm here to help fine-tune your learning so it works as accurately as it should."})})),r("div",n({style:{display:"flex",flexDirection:"row",fontFamily:"inherit",padding:"16px 10px 0px 16px",maxWidth:"80%"}},{children:[a("div",n({style:{maxHeight:"32px",maxWidth:"32px",marginTop:"0.3rem"}},{children:r("svg",n({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[a("g",n({id:"bi:stars","clip-path":"url(#clip0_6004_60631)"},{children:a("path",{id:"Vector",d:"M11.4867 9.37021C11.6517 8.87521 12.3507 8.87521 12.5157 9.37021L13.4832 12.2757C13.6961 12.9144 14.0549 13.4947 14.5311 13.9707C15.0073 14.4466 15.5879 14.8051 16.2267 15.0177L19.1307 15.9852C19.6257 16.1502 19.6257 16.8492 19.1307 17.0142L16.2252 17.9817C15.5865 18.1947 15.0062 18.5535 14.5302 19.0297C14.0543 19.5059 13.6958 20.0864 13.4832 20.7252L12.5157 23.6292C12.4801 23.7376 12.4112 23.832 12.3188 23.8989C12.2264 23.9658 12.1153 24.0019 12.0012 24.0019C11.8871 24.0019 11.7759 23.9658 11.6835 23.8989C11.5912 23.832 11.5223 23.7376 11.4867 23.6292L10.5192 20.7237C10.3064 20.0852 9.9478 19.505 9.47187 19.029C8.99594 18.5531 8.41572 18.1945 7.77718 17.9817L4.87168 17.0142C4.76329 16.9786 4.6689 16.9097 4.60198 16.8173C4.53506 16.725 4.49904 16.6138 4.49904 16.4997C4.49904 16.3856 4.53506 16.2745 4.60198 16.1821C4.6689 16.0897 4.76329 16.0208 4.87168 15.9852L7.77718 15.0177C8.41572 14.8049 8.99594 14.4463 9.47187 13.9704C9.9478 13.4945 10.3064 12.9142 10.5192 12.2757L11.4867 9.37021ZM5.69218 1.72171C5.71369 1.65675 5.75512 1.60022 5.8106 1.56016C5.86607 1.52009 5.93275 1.49853 6.00118 1.49853C6.06961 1.49853 6.13629 1.52009 6.19176 1.56016C6.24724 1.60022 6.28867 1.65675 6.31018 1.72171L6.89068 3.46471C7.15018 4.24171 7.75918 4.85071 8.53618 5.11021L10.2792 5.69071C10.3441 5.71222 10.4007 5.75365 10.4407 5.80912C10.4808 5.86459 10.5024 5.93128 10.5024 5.99971C10.5024 6.06813 10.4808 6.13482 10.4407 6.19029C10.4007 6.24576 10.3441 6.2872 10.2792 6.30871L8.53618 6.88921C8.15274 7.01647 7.80431 7.23149 7.51864 7.51717C7.23296 7.80284 7.01794 8.15127 6.89068 8.53471L6.31018 10.2777C6.28867 10.3427 6.24724 10.3992 6.19176 10.4393C6.13629 10.4793 6.06961 10.5009 6.00118 10.5009C5.93275 10.5009 5.86607 10.4793 5.8106 10.4393C5.75512 10.3992 5.71369 10.3427 5.69218 10.2777L5.11168 8.53471C4.98442 8.15127 4.7694 7.80284 4.48372 7.51717C4.19805 7.23149 3.84962 7.01647 3.46618 6.88921L1.72318 6.30871C1.65822 6.2872 1.60169 6.24576 1.56163 6.19029C1.52156 6.13482 1.5 6.06813 1.5 5.99971C1.5 5.93128 1.52156 5.86459 1.56163 5.80912C1.60169 5.75365 1.65822 5.71222 1.72318 5.69071L3.46618 5.11021C3.84962 4.98295 4.19805 4.76792 4.48372 4.48225C4.7694 4.19657 4.98442 3.84815 5.11168 3.46471L5.69218 1.72171ZM16.2957 0.148207C16.3105 0.105497 16.3382 0.068461 16.3751 0.0422495C16.4119 0.016038 16.456 0.00195312 16.5012 0.00195312C16.5464 0.00195313 16.5905 0.016038 16.6273 0.0422495C16.6641 0.068461 16.6919 0.105497 16.7067 0.148207L17.0937 1.30921C17.2662 1.82821 17.6727 2.23471 18.1917 2.40721L19.3527 2.79421C19.3954 2.80901 19.4324 2.83676 19.4586 2.87359C19.4848 2.91042 19.4989 2.9545 19.4989 2.99971C19.4989 3.04491 19.4848 3.08899 19.4586 3.12582C19.4324 3.16265 19.3954 3.1904 19.3527 3.20521L18.1917 3.59221C17.9361 3.67771 17.7039 3.82139 17.5134 4.01193C17.3229 4.20247 17.1792 4.43467 17.0937 4.69021L16.7067 5.85121C16.6919 5.89392 16.6641 5.93095 16.6273 5.95717C16.5905 5.98338 16.5464 5.99746 16.5012 5.99746C16.456 5.99746 16.4119 5.98338 16.3751 5.95717C16.3382 5.93095 16.3105 5.89392 16.2957 5.85121L15.9087 4.69021C15.8232 4.43467 15.6795 4.20247 15.489 4.01193C15.2984 3.82139 15.0662 3.67771 14.8107 3.59221L13.6512 3.20521C13.6085 3.1904 13.5714 3.16265 13.5452 3.12582C13.519 3.08899 13.5049 3.04491 13.5049 2.99971C13.5049 2.9545 13.519 2.91042 13.5452 2.87359C13.5714 2.83676 13.6085 2.80901 13.6512 2.79421L14.8122 2.40721C15.3312 2.23471 15.7377 1.82821 15.9102 1.30921L16.2957 0.148207Z",fill:"#5928ed"})})),a("defs",{children:a("clipPath",n({id:"clip0_6004_60631"},{children:a("rect",{width:"24",height:"24",fill:"white"})}))})]}))})),a("div",n({style:{display:"flex",flexDirection:"column",fontWeight:400,color:"#000"}},{children:a("div",n({style:{display:"inline-flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:"1rem",paddingRight:"1rem",width:"100%",maxWidth:"100%",fontSize:"1rem",lineHeight:"1.75rem",marginBottom:"1rem",borderRadius:"0.5rem",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"#333"}},{children:a("span",{children:a(f,n({components:{p:function(e){e.node;var o=l(e,["node"]);return a("p",n({},o,{style:{margin:0}},{children:null==o?void 0:o.children}))}}},{children:Ne}))})}))}))]})),je.length?je.map(function(e,o){return r("div",n({style:{display:"flex",padding:"0.5rem 1rem",maxWidth:"100%"}},{children:["assistant"==(null==e?void 0:e.role)&&a("div",n({style:{maxHeight:"32px",maxWidth:"32px",marginTop:"0.5rem",marginRight:"1rem"}},{children:r("svg",n({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[a("g",n({id:"bi:stars","clip-path":"url(#clip0_6004_60631)"},{children:a("path",{id:"Vector",d:"M11.4867 9.37021C11.6517 8.87521 12.3507 8.87521 12.5157 9.37021L13.4832 12.2757C13.6961 12.9144 14.0549 13.4947 14.5311 13.9707C15.0073 14.4466 15.5879 14.8051 16.2267 15.0177L19.1307 15.9852C19.6257 16.1502 19.6257 16.8492 19.1307 17.0142L16.2252 17.9817C15.5865 18.1947 15.0062 18.5535 14.5302 19.0297C14.0543 19.5059 13.6958 20.0864 13.4832 20.7252L12.5157 23.6292C12.4801 23.7376 12.4112 23.832 12.3188 23.8989C12.2264 23.9658 12.1153 24.0019 12.0012 24.0019C11.8871 24.0019 11.7759 23.9658 11.6835 23.8989C11.5912 23.832 11.5223 23.7376 11.4867 23.6292L10.5192 20.7237C10.3064 20.0852 9.9478 19.505 9.47187 19.029C8.99594 18.5531 8.41572 18.1945 7.77718 17.9817L4.87168 17.0142C4.76329 16.9786 4.6689 16.9097 4.60198 16.8173C4.53506 16.725 4.49904 16.6138 4.49904 16.4997C4.49904 16.3856 4.53506 16.2745 4.60198 16.1821C4.6689 16.0897 4.76329 16.0208 4.87168 15.9852L7.77718 15.0177C8.41572 14.8049 8.99594 14.4463 9.47187 13.9704C9.9478 13.4945 10.3064 12.9142 10.5192 12.2757L11.4867 9.37021ZM5.69218 1.72171C5.71369 1.65675 5.75512 1.60022 5.8106 1.56016C5.86607 1.52009 5.93275 1.49853 6.00118 1.49853C6.06961 1.49853 6.13629 1.52009 6.19176 1.56016C6.24724 1.60022 6.28867 1.65675 6.31018 1.72171L6.89068 3.46471C7.15018 4.24171 7.75918 4.85071 8.53618 5.11021L10.2792 5.69071C10.3441 5.71222 10.4007 5.75365 10.4407 5.80912C10.4808 5.86459 10.5024 5.93128 10.5024 5.99971C10.5024 6.06813 10.4808 6.13482 10.4407 6.19029C10.4007 6.24576 10.3441 6.2872 10.2792 6.30871L8.53618 6.88921C8.15274 7.01647 7.80431 7.23149 7.51864 7.51717C7.23296 7.80284 7.01794 8.15127 6.89068 8.53471L6.31018 10.2777C6.28867 10.3427 6.24724 10.3992 6.19176 10.4393C6.13629 10.4793 6.06961 10.5009 6.00118 10.5009C5.93275 10.5009 5.86607 10.4793 5.8106 10.4393C5.75512 10.3992 5.71369 10.3427 5.69218 10.2777L5.11168 8.53471C4.98442 8.15127 4.7694 7.80284 4.48372 7.51717C4.19805 7.23149 3.84962 7.01647 3.46618 6.88921L1.72318 6.30871C1.65822 6.2872 1.60169 6.24576 1.56163 6.19029C1.52156 6.13482 1.5 6.06813 1.5 5.99971C1.5 5.93128 1.52156 5.86459 1.56163 5.80912C1.60169 5.75365 1.65822 5.71222 1.72318 5.69071L3.46618 5.11021C3.84962 4.98295 4.19805 4.76792 4.48372 4.48225C4.7694 4.19657 4.98442 3.84815 5.11168 3.46471L5.69218 1.72171ZM16.2957 0.148207C16.3105 0.105497 16.3382 0.068461 16.3751 0.0422495C16.4119 0.016038 16.456 0.00195312 16.5012 0.00195312C16.5464 0.00195313 16.5905 0.016038 16.6273 0.0422495C16.6641 0.068461 16.6919 0.105497 16.7067 0.148207L17.0937 1.30921C17.2662 1.82821 17.6727 2.23471 18.1917 2.40721L19.3527 2.79421C19.3954 2.80901 19.4324 2.83676 19.4586 2.87359C19.4848 2.91042 19.4989 2.9545 19.4989 2.99971C19.4989 3.04491 19.4848 3.08899 19.4586 3.12582C19.4324 3.16265 19.3954 3.1904 19.3527 3.20521L18.1917 3.59221C17.9361 3.67771 17.7039 3.82139 17.5134 4.01193C17.3229 4.20247 17.1792 4.43467 17.0937 4.69021L16.7067 5.85121C16.6919 5.89392 16.6641 5.93095 16.6273 5.95717C16.5905 5.98338 16.5464 5.99746 16.5012 5.99746C16.456 5.99746 16.4119 5.98338 16.3751 5.95717C16.3382 5.93095 16.3105 5.89392 16.2957 5.85121L15.9087 4.69021C15.8232 4.43467 15.6795 4.20247 15.489 4.01193C15.2984 3.82139 15.0662 3.67771 14.8107 3.59221L13.6512 3.20521C13.6085 3.1904 13.5714 3.16265 13.5452 3.12582C13.519 3.08899 13.5049 3.04491 13.5049 2.99971C13.5049 2.9545 13.519 2.91042 13.5452 2.87359C13.5714 2.83676 13.6085 2.80901 13.6512 2.79421L14.8122 2.40721C15.3312 2.23471 15.7377 1.82821 15.9102 1.30921L16.2957 0.148207Z",fill:"#5928ed"})})),a("defs",{children:a("clipPath",n({id:"clip0_6004_60631"},{children:a("rect",{width:"24",height:"24",fill:"white"})}))})]}))})),r("div",n({style:{width:"100%"}},{children:["assistant"===e.role&&e.orchestratorAndAgentsMessages&&e.orchestratorAndAgentsMessages.length>0&&a(C,{orchestratorAndAgentsMessages:null==e?void 0:e.orchestratorAndAgentsMessages,isStreamEnd:Je,isCurrentMessage:o===je.length-1,ThinkingBulbIconComponent:G}),"assistant"===(null==e?void 0:e.role)?a(S,{index:o,content:null==e?void 0:e.content,messages:je,handleStream:Vn}):a("span",{}),a("div",n({style:{display:"flex",justifyContent:"flex-end"}},{children:"user"===e.role?a("div",n({style:{backgroundColor:"#8694A10D",padding:"0 1rem",borderRadius:"8px",maxWidth:"80%"}},{children:a(S,{index:o,content:null==e?void 0:e.content,messages:je,handleStream:Vn,scrollToBottom:Kn})})):a("span",{})}))]}))]}))}):Ze&&a(s,{}),Pe&&r("div",n({style:{display:"flex",padding:"16px 16px 0px 16px"}},{children:[a("div",n({style:{maxHeight:"32px",maxWidth:"32px",marginTop:"0.2rem"}},{children:r("svg",n({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[a("g",n({id:"bi:stars","clip-path":"url(#clip0_6004_60631)"},{children:a("path",{id:"Vector",d:"M11.4867 9.37021C11.6517 8.87521 12.3507 8.87521 12.5157 9.37021L13.4832 12.2757C13.6961 12.9144 14.0549 13.4947 14.5311 13.9707C15.0073 14.4466 15.5879 14.8051 16.2267 15.0177L19.1307 15.9852C19.6257 16.1502 19.6257 16.8492 19.1307 17.0142L16.2252 17.9817C15.5865 18.1947 15.0062 18.5535 14.5302 19.0297C14.0543 19.5059 13.6958 20.0864 13.4832 20.7252L12.5157 23.6292C12.4801 23.7376 12.4112 23.832 12.3188 23.8989C12.2264 23.9658 12.1153 24.0019 12.0012 24.0019C11.8871 24.0019 11.7759 23.9658 11.6835 23.8989C11.5912 23.832 11.5223 23.7376 11.4867 23.6292L10.5192 20.7237C10.3064 20.0852 9.9478 19.505 9.47187 19.029C8.99594 18.5531 8.41572 18.1945 7.77718 17.9817L4.87168 17.0142C4.76329 16.9786 4.6689 16.9097 4.60198 16.8173C4.53506 16.725 4.49904 16.6138 4.49904 16.4997C4.49904 16.3856 4.53506 16.2745 4.60198 16.1821C4.6689 16.0897 4.76329 16.0208 4.87168 15.9852L7.77718 15.0177C8.41572 14.8049 8.99594 14.4463 9.47187 13.9704C9.9478 13.4945 10.3064 12.9142 10.5192 12.2757L11.4867 9.37021ZM5.69218 1.72171C5.71369 1.65675 5.75512 1.60022 5.8106 1.56016C5.86607 1.52009 5.93275 1.49853 6.00118 1.49853C6.06961 1.49853 6.13629 1.52009 6.19176 1.56016C6.24724 1.60022 6.28867 1.65675 6.31018 1.72171L6.89068 3.46471C7.15018 4.24171 7.75918 4.85071 8.53618 5.11021L10.2792 5.69071C10.3441 5.71222 10.4007 5.75365 10.4407 5.80912C10.4808 5.86459 10.5024 5.93128 10.5024 5.99971C10.5024 6.06813 10.4808 6.13482 10.4407 6.19029C10.4007 6.24576 10.3441 6.2872 10.2792 6.30871L8.53618 6.88921C8.15274 7.01647 7.80431 7.23149 7.51864 7.51717C7.23296 7.80284 7.01794 8.15127 6.89068 8.53471L6.31018 10.2777C6.28867 10.3427 6.24724 10.3992 6.19176 10.4393C6.13629 10.4793 6.06961 10.5009 6.00118 10.5009C5.93275 10.5009 5.86607 10.4793 5.8106 10.4393C5.75512 10.3992 5.71369 10.3427 5.69218 10.2777L5.11168 8.53471C4.98442 8.15127 4.7694 7.80284 4.48372 7.51717C4.19805 7.23149 3.84962 7.01647 3.46618 6.88921L1.72318 6.30871C1.65822 6.2872 1.60169 6.24576 1.56163 6.19029C1.52156 6.13482 1.5 6.06813 1.5 5.99971C1.5 5.93128 1.52156 5.86459 1.56163 5.80912C1.60169 5.75365 1.65822 5.71222 1.72318 5.69071L3.46618 5.11021C3.84962 4.98295 4.19805 4.76792 4.48372 4.48225C4.7694 4.19657 4.98442 3.84815 5.11168 3.46471L5.69218 1.72171ZM16.2957 0.148207C16.3105 0.105497 16.3382 0.068461 16.3751 0.0422495C16.4119 0.016038 16.456 0.00195312 16.5012 0.00195312C16.5464 0.00195313 16.5905 0.016038 16.6273 0.0422495C16.6641 0.068461 16.6919 0.105497 16.7067 0.148207L17.0937 1.30921C17.2662 1.82821 17.6727 2.23471 18.1917 2.40721L19.3527 2.79421C19.3954 2.80901 19.4324 2.83676 19.4586 2.87359C19.4848 2.91042 19.4989 2.9545 19.4989 2.99971C19.4989 3.04491 19.4848 3.08899 19.4586 3.12582C19.4324 3.16265 19.3954 3.1904 19.3527 3.20521L18.1917 3.59221C17.9361 3.67771 17.7039 3.82139 17.5134 4.01193C17.3229 4.20247 17.1792 4.43467 17.0937 4.69021L16.7067 5.85121C16.6919 5.89392 16.6641 5.93095 16.6273 5.95717C16.5905 5.98338 16.5464 5.99746 16.5012 5.99746C16.456 5.99746 16.4119 5.98338 16.3751 5.95717C16.3382 5.93095 16.3105 5.89392 16.2957 5.85121L15.9087 4.69021C15.8232 4.43467 15.6795 4.20247 15.489 4.01193C15.2984 3.82139 15.0662 3.67771 14.8107 3.59221L13.6512 3.20521C13.6085 3.1904 13.5714 3.16265 13.5452 3.12582C13.519 3.08899 13.5049 3.04491 13.5049 2.99971C13.5049 2.9545 13.519 2.91042 13.5452 2.87359C13.5714 2.83676 13.6085 2.80901 13.6512 2.79421L14.8122 2.40721C15.3312 2.23471 15.7377 1.82821 15.9102 1.30921L16.2957 0.148207Z",fill:"#5928ed"})})),a("defs",{children:a("clipPath",n({id:"clip0_6004_60631"},{children:a("rect",{width:"24",height:"24",fill:"white"})}))})]}))})),a("div",n({style:{display:"inline-flex",alignItems:"flex-start",paddingLeft:"1rem",paddingRight:"1rem",paddingBottom:"1rem",width:"100%",maxWidth:"100%",fontSize:"1rem",lineHeight:"1.75rem",marginBottom:"1rem",borderRadius:"0.5rem",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"#333"}},{children:a("span",{children:en})}))]}))]}))]})),r("div",n({style:{width:"95%",height:"content-fit",backgroundColor:"#fbfaff",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"end",position:"relative"}},{children:[a("div",n({style:{visibility:cn?"visible":"hidden",position:"absolute",top:"-3rem",zIndex:0,pointerEvents:"none"}},{children:a("button",n({onClick:Kn,style:{borderRadius:"9999px",padding:0,backgroundColor:"#fff",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",border:"1px solid #d1d5db",pointerEvents:"auto",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1,height:"2.25rem",width:"2.25rem",margin:"0.3rem"}},{children:a("svg",n({fill:"#000000",width:"16px",height:"16px",viewBox:"0 0 24 24",id:"down","data-name":"Flat Color",xmlns:"http://www.w3.org/2000/svg"},{children:a("path",{id:"primary",d:"M19.71,13.29a1,1,0,0,0-1.42,0L13,18.59V3a1,1,0,0,0-2,0V18.59l-5.29-5.3a1,1,0,0,0-1.42,1.42l7,7a1,1,0,0,0,1.42,0l7-7A1,1,0,0,0,19.71,13.29Z"})}))}))})),Fn&&r(A,n({sx:{display:"flex",alignItems:"center",gap:"8px",paddingBottom:"8px",paddingLeft:"4px",fontFamily:'"Plus Jakarta Sans", sans-serif',fontSize:"0.875rem",color:"#6b7280",width:"100%"}},{children:[a("span",{children:"Instant Learning AI is thinking"}),a(A,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Mn," 1.4s infinite ease-in-out both"),animationDelay:"-0.32s"}}),a(A,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Mn," 1.4s infinite ease-in-out both"),animationDelay:"-0.16s"}}),a(A,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Mn," 1.4s infinite ease-in-out both")}})]})),a(w,n({title:pe?"Please wait for the validation to be completed.":""},{children:a("div",n({style:{width:"100%",backgroundColor:"#fff",display:"flex",alignItems:"end",gap:"0.5rem",border:"1px solid #E5E7EB",borderRadius:"8px",cursor:Sn?"not-allowed":"default"}},{children:r("div",n({style:{width:"100%",display:"flex"}},{children:[a("textarea",{ref:Le,placeholder:"Tell me more about this learning...",value:Ie||"",onChange:function(e){return Fe(e.target.value)},onFocus:function(){return sn(!0)},onBlur:function(){return sn(!1)},onKeyDown:function(e){return Vn(e)},disabled:Sn,style:{flexGrow:1,padding:"0.5rem",borderRadius:"0.5rem",border:"none",fontSize:"1rem",lineHeight:"1.5rem",resize:"none",backgroundColor:"#fff",color:"inherit",minHeight:rn?"120px":"50px",height:rn?"120px":"50px",maxHeight:"120px",overflowY:"auto",fontFamily:"inherit",outline:"none",transition:"min-height 0.3s ease, background-color 0.3s ease",boxSizing:"border-box",cursor:Sn?"not-allowed":"text"}}),r("span",n({style:{display:"flex",flexDirection:"column",justifyContent:"end",alignItems:"end"}},{children:[" ",a("button",n({onClick:function(e){Vn(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:Ln,style:{padding:"0.5rem 0.75rem",borderRadius:"0.375rem",border:"none",backgroundColor:"white",color:Ln?"#d1d5db":"#5928ed",fontWeight:"bold",fontSize:"1rem",cursor:Ln?"not-allowed":"pointer",transition:"background-color 0.3s, color 0.3s",height:"50px"}},{children:a(M,{})}))]}))]}))}))}))]})),r("div",n({style:{width:"95%",display:"flex",gap:"0.25rem",flexDirection:"row"}},{children:[a(w,n({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("span",n({style:{width:"50%"}},{children:a(x,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),a(w,n({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("span",n({style:{width:"50%"}},{children:a(x,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]}))]}))};export{N as default};
|
|
1
|
+
import{__makeTemplateObject as e,__assign as n,__awaiter as o,__generator as i,__spreadArray as t,__rest as l}from"tslib";import{jsx as a,jsxs as r,Fragment as s}from"react/jsx-runtime";import{useRef as d,useState as c,useMemo as u,useEffect as v,useCallback as g}from"react";import{startChatStream as h}from"@e-llm-studio/streaming-response";import{v4 as m}from"uuid";import{http as p}from"../../../api/transport.js";import f from"react-markdown";import C from"./MinimizedThinkingSteps.js";import y from"./_svg/NewChatIcon.js";import b from"../InstantLearning.module.css.js";import w from"@mui/material/Tooltip";import _ from"json5";import x from"./AudioWaveform.js";import S from"./MessageRendering.js";import{sanitizePythonDictToJSON as L}from"../../../utils/instantLearning.utils.js";import{publishAgenticFeedbackForVariantIngestion as k}from"../../../service/InstantLearningService.js";import{keyframes as R,Box as A}from"@mui/material";import{parseValidationRecommendations as E}from"../../../utils/recommendationParser.js";var T,M=function(){return a("svg",n({width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a("path",{d:"M9.91158 12H7.45579H4L2.02268 4.13539C2.0111 4.0893 2.00193 4.04246 2.00046 3.99497C1.97811 3.27397 2.77209 2.77366 3.46029 3.10388L22 12L3.46029 20.8961C2.77983 21.2226 1.99597 20.7372 2.00002 20.0293C2.00038 19.9658 2.01455 19.9032 2.03296 19.8425L3.5 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))},I=function(e){var o=e.resetChatHistory,i=e.isStreamEnd;return r("div",n({className:b.customFont,style:{width:"100%",padding:"0.75rem 0rem",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#fff",borderBottom:"1px solid #e5e7eb",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.04)"}},{children:[r("span",n({style:{fontSize:"1.25rem",fontWeight:700,color:"#1f2937",flex:1,marginLeft:"0.5rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{children:[a("span",n({style:{color:"#5928ED"}},{children:"InstantLearning.AI"}))," Chat"]})),a(w,n({title:"New chat",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("div",n({onClick:function(){console.log(y,"hello"),i&&o()},style:{height:"1.8rem",width:"1.8rem",marginLeft:"1rem",marginRight:"0.5rem",cursor:i?"pointer":"not-allowed",backgroundColor:"transparent",transition:"transform 0.2s ease-in-out, opacity 0.2s",opacity:i?.8:.4,pointerEvents:i?"auto":"none"},onMouseOver:function(e){i&&(e.currentTarget.style.opacity="1")},onMouseOut:function(e){i&&(e.currentTarget.style.opacity="0.8")}},{children:a(y,{})}))}))]}))},F=function(e,n,l,a){return o(void 0,void 0,void 0,function(){var o,r,s,d,c,u,v,g,h,m;return i(this,function(i){switch(i.label){case 0:o=e.delete_current_learning,r=e.deleted_similar_learning_ids,s=e.deleted_conflicting_learning_ids,console.log("Processing delete tool call:",e),d=t(t([],r||[],!0),s||[],!0),c=0,u=d,i.label=1;case 1:if(!(c<u.length))return[3,6];v=u[c],i.label=2;case 2:return i.trys.push([2,4,,5]),g={status:"approved",metadata:{userName:"M Kathyayani",userEmailId:"madumbu.kathyayani@techolution.com",llm:"claude-3.5-sonnet",isVariantFlow:!0,isDeleteAction:!0,isAgentsFeedback:!0,variant:{id:v,scope:{name:"User",value:[{name:"M Kathyayani",email:"madumbu.kathyayani@techolution.com",userId:"8059658c-a65c-4e14-89aa-a5195f5d09f5"}]},topic:{id:null,value:"default"},variant:"Learning ID: ".concat(v),question:"",categories:[],created_at:(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),originalQuestion:"",parameterizedQuestion:"",conditions_whentoapply:"",conditions_whennottoapply:"",parentId:null}}},console.log("Deleting learning with ID: ".concat(v)),[4,k({baseUrl:n,organizationName:l,chatAssistantName:a,payload:g})];case 3:return(h=i.sent()).ok?console.log("Successfully deleted learning ".concat(v)):console.error("Failed to delete learning ".concat(v,":"),h.status,h.statusText),[3,5];case 4:return m=i.sent(),console.error("Error deleting learning ".concat(v,":"),m),[3,5];case 5:return c++,[3,1];case 6:return o&&console.log("Delete current learning flag is true - this will be handled later"),[2]}})})},D=function(e){var o=e.label,i=e.onToggle,t=c(!1),l=t[0],s=t[1],u=d(null);return v(function(){var e=u.current;e&&l&&(e.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.1)",e.style.transform="scale(1)",e.style.backgroundColor="#E8F5E9",e.style.color="#2E7D32")},[l]),r("span",n({ref:u,onClick:function(){var e=!l;s(e),i(o,e)},style:{cursor:"pointer",backgroundColor:l?"#E8F5E9":"#fbfaff",color:l?"#2E7D32":"#000000de",transition:"all 0.2s ease-in-out",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",transform:"scale(1)"},onMouseEnter:function(e){l||(e.currentTarget.style.boxShadow="0 4px 12px rgba(30, 136, 229, 0.3)",e.currentTarget.style.transform="scale(1.02)",e.currentTarget.style.backgroundColor="#f0f7ff",e.currentTarget.style.color="#1E88E5")},onMouseLeave:function(e){l||(e.currentTarget.style.boxShadow="0 2px 4px rgba(0, 0, 0, 0.2)",e.currentTarget.style.transform="scale(1)",e.currentTarget.style.backgroundColor="#fbfaff",e.currentTarget.style.color="#000000de")}},{children:[a("span",n({style:{fontWeight:"bold",fontSize:"16px",transition:"all 0.3s ease",transform:l?"scale(1.2)":"scale(1)",opacity:l?1:.9,paddingLeft:"0.25rem",paddingRight:"0.25rem"}},{children:l?"✓":"+"})),a("span",{children:o})]}))},N=function(y){y.chatAssistantLogoUrl;var N=y.chatAssistantName,O=y.organizationName,W=y.baseUrl,j=y.setInstantLearningSuggestions,B=y.formDataState,z=y.setFormDataState;y.hasUserFilledForm;var P=y.setHasUserFilledForm,K=y.baseWebsocketUrl,U=y.setIsNewChatClicked;y.selectedText,y.ChatIconComponent,y.ggcAssistantName;var G=y.ThinkingBulbIconComponent;y.hasUserWrittenModification;var H=y.setExtractedModification,J=y.setSave,V=y.setExtractedTooltip,q=y.setIsSaveLoading;y.isSaveLoading,y.save,y.instantLearningSuggestions,y.template;var Z=y.setShouldTriggerSave,Q=y.validationWtaResponse,Y=y.setValidationWtaResponse,$=y.learningWtaResponse,X=y.setLearningWtaResponse,ee=y.isFormSaveClicked,ne=y.setIsFormSavedClicked,oe=y.onDeleteLearning,ie=y.deleteLearningTrigger,te=y.setDeleteLearningTrigger;y.onMergeLearning;var le=y.mergeLearningTrigger,ae=y.setMergeLearningTrigger,re=y.onResetLearningData,se=y.setEditConflictingLearningTrigger,de=y.setEditSimilarLearningTrigger,ce=y.sendMessageInChat,ue=y.setSendMessageInChat,ve=y.setIsMergeLoading,ge=y.sendValidationMessage,he=y.setSendValidationMessage,me=y.setValidationRecommendations,pe=y.isFormValidating,fe=y.validationRecommendations,Ce=y.isFromDashboard,ye=y.fullMessageText,be=N,we=d("".concat(be,"-").concat(O,"-").concat(m())),_e=d("".concat(m())),xe=W,Se=d(null),Le=d(null),ke=c([]),Re=ke[0],Ae=ke[1],Ee=c(!1);Ee[0];var Te=Ee[1],Me=c(""),Ie=Me[0],Fe=Me[1],De=c(""),Ne=De[0],Oe=De[1],We=c([]),je=We[0],Be=We[1],ze=c(!1),Pe=ze[0],Ke=ze[1],Ue=c(!1);Ue[0];var Ge=Ue[1],He=c(!0),Je=He[0],Ve=He[1],qe=c(!0),Ze=qe[0],Qe=qe[1],Ye=c("");Ye[0];var $e=Ye[1],Xe=c(""),en=Xe[0],nn=Xe[1],on=c(!1),tn=on[0],ln=on[1],an=c(!1),rn=an[0],sn=an[1],dn=c(!1),cn=dn[0],un=dn[1],vn=c([]);vn[0];var gn=vn[1],hn=c(new Set),mn=hn[0],pn=hn[1],fn=c(new Set),Cn=fn[0],yn=fn[1],bn=d(""),wn=d(""),_n=d(new Set),xn=u(function(){return""===(null==Ie?void 0:Ie.trim())||tn},[Ie,tn]),Sn=u(function(){return tn||pe},[tn,pe]),Ln=u(function(){return xn||tn||pe},[xn,tn,pe]),kn=d(null),Rn=c("100%"),An=Rn[0],En=Rn[1],Tn=d(new Set);u(function(){var e,n,o;return!(""===(null===(e=null==B?void 0:B.original)||void 0===e?void 0:e.trim())||(null==B?void 0:B.isTooltipEnabled)&&""===(null===(n=null==B?void 0:B.tooltip)||void 0===n?void 0:n.trim())||(null==B?void 0:B.isModificationEnabled)&&""===(null===(o=null==B?void 0:B.modification)||void 0===o?void 0:o.trim()))},[B]);var Mn=R(T||(T=e(["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "],["\n 0%, 80%, 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1.0);\n }\n "]))),In=c(!1),Fn=In[0],Dn=In[1];v(function(){var e='Please tell me how I should correct "'.concat((null==B?void 0:B.original)||"",'"? ');Oe(e)},[B]),v(function(){var e=ce||ge;if(e){var n="Validation failed. Do you have any recommendations for me?"===e;Vn(new KeyboardEvent("keydown",{key:"Enter"}),!1,e,n),ue(""),he("")}},[ce,ge]),v(function(){var e=Se.current,n=function(){var e=Se.current;if(e){var n=e.scrollTop,o=e.scrollHeight,i=e.clientHeight;un(!(o-(n+i)<=35))}};return e&&(e.addEventListener("scroll",n),n()),function(){e&&e.removeEventListener("scroll",n)}},[cn,Je,je]);var Nn=g(function(){console.log('🧹 Performing UI Cleanup for "Delete Current Learning"'),z(function(e){return n(n({},e),{original:Ce?"":e.original,modification:"",tooltip:"",whenToApply:"",whenNotToApply:"",isTooltipEnabled:!1,isModificationEnabled:!0,_mergeUpdate:!1})}),Y&&Y(null),X&&X(null),me&&me(null),re&&re(),V&&V(""),gn([])},[z,Y,X,re,H,V,gn]);v(function(){if(je&&0!==je.length){var e=je[je.length-1],n=(null==e?void 0:e.orchestratorAndAgentsMessages)||[],o=/['"]delete_current_learning['"]\s*:\s*(true|false|True|False)/;n.forEach(function(n,i){var t=(null==n?void 0:n.responsedata)||"",l=e.requestId||e.id||"msg-".concat(je.length),a="".concat(l,"_orch_").concat(i);if(!Tn.current.has(a)){var r=t.match(o);if(r)"true"===r[1].toLowerCase()&&(console.log("✅ Delete detected in Effect - Triggering Cleanup for:",a),Tn.current.add(a),Nn())}})}},[je,Nn]);var On=g(function(e){return o(void 0,void 0,void 0,function(){var n,o,l,a,r,s,d;return i(this,function(i){switch(i.label){case 0:if(n=JSON.stringify({deleted_similar_learning_ids:e.deleted_similar_learning_ids||[],deleted_conflicting_learning_ids:e.deleted_conflicting_learning_ids||[],delete_current_learning:e.delete_current_learning||!1}),_n.current.has(n))return console.log("Delete operation already processed, skipping callback execution:",n),[2];_n.current.add(n),console.log("Processing new delete operation:",n),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,F(e,W,O,be)];case 2:return i.sent(),o=e.deleted_similar_learning_ids,l=void 0===o?[]:o,a=e.deleted_conflicting_learning_ids,r=void 0===a?[]:a,s=t(t([],l||[],!0),r||[],!0),pn(function(e){var n=new Set(e);return s.forEach(function(e){return n.add(e)}),console.log("Added deleted learning IDs to tracking set:",Array.from(n)),n}),console.log("UI state updated after deletion of learnings:",s),[3,4];case 3:throw d=i.sent(),_n.current.delete(n),console.error("Error processing delete operation:",d),d;case 4:return[2]}})})},[W,O,be,pn]),Wn=g(function(e){return o(void 0,void 0,void 0,function(){var o,t,l,a,r,s,d,c,u,v,g,h;return i(this,function(i){switch(i.label){case 0:ve(!0),console.log("🔴 MERGE CALLBACK - Processing merge tool call:",e),i.label=1;case 1:if(i.trys.push([1,6,7,8]),o=e.merge_learnings,t=e.similar_learnings,l=e.conditions_whentoapply,a=e.conditions_whennottoapply,console.log("🔴 MERGE CALLBACK - Extracted data:"),console.log("merge_learnings:",o),console.log("similar_learnings:",t),console.log("conditions_whentoapply:",l),console.log("conditions_whennottoapply:",a),!o||!t||!Array.isArray(t))return console.log("Invalid merge tool data, skipping"),[2];console.log(" MERGE CALLBACK - Current formDataState before replacement:",B),console.log(" MERGE CALLBACK - Current whenToApply:",null==B?void 0:B.whenToApply),console.log(" MERGE CALLBACK - Current whenNotToApply:",null==B?void 0:B.whenNotToApply),l&&Array.isArray(l)&&(console.log(" MERGE CALLBACK - UNCONDITIONALLY replacing whenToApply conditions:",l),r=l.join(" OR "),console.log(" MERGE CALLBACK - New whenToApply string:",r),z(function(e){console.log(" MERGE CALLBACK - Previous formDataState:",e);var o=n(n({},e),{whenToApply:r,_mergeUpdate:!0,_mergeWTA:l});return console.log("MERGE CALLBACK - New formDataState:",o),o})),a&&Array.isArray(a)&&(console.log(" MERGE CALLBACK - UNCONDITIONALLY replacing whenNotToApply conditions:",a),s=a.join(" OR "),console.log(" MERGE CALLBACK - New whenNotToApply string:",s),z(function(e){console.log(" MERGE CALLBACK - Previous formDataState for WNTA:",e);var o=n(n({},e),{whenNotToApply:s,_mergeUpdate:!0,_mergeWNTA:a});return console.log(" MERGE CALLBACK - New formDataState for WNTA:",o),o})),yn(function(e){var n=new Set(e);return t.forEach(function(e){return n.add(e)}),console.log("Added merged learning IDs to tracking set:",Array.from(n)),n}),d=0,c=t,i.label=2;case 2:return d<c.length?(u=c[d],console.log("Sending delete request for merged learning ID: ".concat(u)),v={status:"approved",metadata:{userName:"M Kathyayani",userEmailId:"madumbu.kathyayani@techolution.com",llm:"claude-3.5-sonnet",isVariantFlow:!0,isDeleteAction:!0,isAgentsFeedback:!0,variant:{id:u,scope:{name:"User",value:[{name:"M Kathyayani",email:"madumbu.kathyayani@techolution.com",userId:"8059658c-a65c-4e14-89aa-a5195f5d09f5"}]},topic:{id:null,value:"default"},variant:"Learning ID: ".concat(u),question:"",categories:[],created_at:(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}),originalQuestion:"",parameterizedQuestion:"",conditions_whentoapply:"",conditions_whennottoapply:"",parentId:null}}},[4,k({baseUrl:W,organizationName:O,chatAssistantName:be,payload:v})]):[3,5];case 3:(g=i.sent()).ok?console.log("Successfully deleted merged learning ID ".concat(u)):console.error("Failed to delete merged learning ID ".concat(u,":"),g.statusText),i.label=4;case 4:return d++,[3,2];case 5:return[3,8];case 6:return h=i.sent(),console.error("Error processing merge operation:",h),[3,8];case 7:return console.log("switched off"),ve(!1),[7];case 8:return[2]}})})},[oe,yn,z,ve]),jn=function(e,n,o,i){return u(function(){for(var t,l=[],a=/['"]conditions_whentoapply['"]\s*:\s*(\[\s*\]|\[\s*\{\s*['"]when_to_apply['"]\s*:\s*(['"])(?:\\.|(?!\2).)*\2\s*,\s*['"]confidence_score['"]\s*:\s*\d+\s*\}(?:\s*,\s*\{\s*['"]when_to_apply['"]\s*:\s*(['"])(?:\\.|(?!\3).)*\3\s*,\s*['"]confidence_score['"]\s*:\s*\d+\s*\})*\s*\])\s*,\s*['"]conditions_whennottoapply['"]\s*:\s*(\[\s*\]|\[\s*\{\s*['"]when_not_to_apply['"]\s*:\s*(['"])(?:\\.|(?!\5).)*\5\s*,\s*['"]confidence_score['"]\s*:\s*\d+\s*\}(?:\s*,\s*\{\s*['"]when_not_to_apply['"]\s*:\s*(['"])(?:\\.|(?!\6).)*\6\s*,\s*['"]confidence_score['"]\s*:\s*\d+\s*\})*\s*\])/,r=/['"]is_valid['"]\s*:\s*(true|false|True|False)\s*,\s*['"]conflictingConditions['"]\s*:\s*\[\s*(?:\{[\s\S]*?['"]conflictType['"]\s*:\s*['"][^'"]+['"][\s\S]*?\}\s*,?\s*)*\]\s*,\s*['"]save['"]\s*:\s*(true|false|True|False)/,s=/['"]is_valid_db['"]\s*:\s*(true|false|True|False)[\s\S]*?['"]conflicting_learnings['"]\s*:\s*([\s\S]*?)\s*,\s*['"]similar_learnings['"]\s*:\s*([\s\S]*?)(?:,\s*['"]save['"]|\}$)/,d=/['"]delete_current_learning['"]\s*:\s*(true|false|True|False)\s*,\s*['"]deleted_similar_learning_ids['"]\s*:\s*\[[\s\S]*?\]\s*,\s*['"]deleted_conflicting_learning_ids['"]\s*:\s*\[[\s\S]*?\]/,c=/{\s*['"]merge_learnings['"]\s*:\s*(?:True|true)[\s\S]+?}/,u=/({[\s\S]*}|\[[\s\S]*\])/,v=/({[\s\S]*})/,g=function(e){var t=(null==e?void 0:e.responsedata)||"";console.log("🔍 RESPONSE DATA:",String(t)),String(t).includes("merge_learnings")&&(console.log("🔍 FOUND merge_learnings in response!"),console.log("🔍 Full response:",String(t))),String(t).includes("'merge_learnings'")&&(console.log("🔍 FOUND merge_learnings in response!"),console.log("🔍 Full response:",String(t)));var g=t.match(a);if(g)try{var h=_.parse("{".concat(g[0],"}")),m=function(e){return e&&/[a-zA-Z]/.test(e)};h.conditions_whentoapply&&Array.isArray(h.conditions_whentoapply)&&(h.conditions_whentoapply=h.conditions_whentoapply.filter(function(e){return e.when_to_apply&&m(e.when_to_apply)})),h.conditions_whennottoapply&&Array.isArray(h.conditions_whennottoapply)&&(h.conditions_whennottoapply=h.conditions_whennottoapply.filter(function(e){return e.when_not_to_apply&&m(e.when_not_to_apply)})),l.push(h)}catch(e){console.error("Failed to parse JSON:",e)}var p=t.match(r);if(console.log("validationObj before cond "),p)try{var f=L(p[0]||""),C=_.parse("{".concat(f,"}"));console.log("validationObj before set ",C),Y(C),console.log("validationObj after set in chat",Q)}catch(e){console.error("Failed to parse validation JSON:",e)}try{var y=L(t||""),b=_.parse(y);if(b&&"object"==typeof b&&"is_valid_db"in b&&"conflicting_learnings"in b&&"similar_learnings"in b)console.log("Found validation data in response:",b),X(b),console.log("dbVal after set in chat",$);else if(A=t.match(s))try{console.log("🔍 Regex Match Found. Attempting reconstruction...");var w=A[1],x=A[2],S=A[3],k='{\n "is_valid_db": '.concat((T=function(e){return e.replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/\bNone\b/g,"null")})(w),',\n "conflicting_learnings": ').concat(T(x),',\n "similar_learnings": ').concat(T(S),"\n }");console.log("📝 Reconstructed JSON (First 100 chars):",k.substring(0,100)+"...");var R=_.parse(k);X(R),console.log("✅ [Fix] dbVal parsed successfully via Group Capture")}catch(e){console.error("❌ Failed to parse validation JSON with regex fallback:",e),console.log("❌ Failed Match Groups:",A)}}catch(e){var A;if(console.log("JSON parsing failed, trying regex fallback for validation data"),A=t.match(s))try{var T;w=A[1],x=A[2],S=A[3],k='{\n "is_valid_db": '.concat((T=function(e){return e.replace(/\bTrue\b/g,"true").replace(/\bFalse\b/g,"false").replace(/\bNone\b/g,"null")})(w),',\n "conflicting_learnings": ').concat(T(x),',\n "similar_learnings": ').concat(T(S),"\n }");console.log("🛠️ Reconstructed DB Validation JSON:",k.substring(0,100)+"...");R=_.parse(k);X(R),console.log("✅ [App] dbVal set via Regex Fallback:",R)}catch(e){console.error("Failed to parse validation JSON with regex fallback:",e),console.log("Failed string:",A[0])}}var M=t.match(d);if(M)try{var I=L(M[0]||""),F=_.parse("{".concat(I,"}"));console.log("Delete tool detected:",F),o&&o(F)}catch(e){console.error("Failed to parse delete tool JSON:",e)}console.log("🔍 Testing merge tool regex on response data...");var D=t.match(c);if(console.log("🔍 Merge tool regex match result:",D),D){console.log("🔍 MERGE TOOL REGEX MATCHED!");try{var N=D[0],O=L(N),W=_.parse(O);console.log("✅ Correctly parsed merge tool object:",W),i&&i(W)}catch(e){console.error("Failed to parse merge tool JSON:",e)}}var j=t.match(u);if(j&&t.includes("edit_actions"))try{console.log("Edit tool match found:",j[0]);O=L(j[0]);var B=_.parse(O);console.log("Edit tool detected and parsed successfully:",B),B.conflicting_learnings&&(se(B.conflicting_learnings),console.log("Setting edit conflicting learning trigger:",B.conflicting_learnings)),B.similar_learnings&&(de(B.similar_learnings),console.log("Setting edit similar learning trigger:",B.similar_learnings))}catch(e){console.error("Failed to parse edit tool JSON:",e)}var z=t.match(v);if(z)try{O=L(z[0]);var P=_.parse(O);if(P.recommended_whentoapply||P.recommended_whennottoapply){var K=E(P);n(K)}}catch(e){console.error("Failed to parse validation recommendations:",e)}},h=0,m=(null===(t=e[e.length-1])||void 0===t?void 0:t.orchestratorAndAgentsMessages)||[];h<m.length;h++){g(m[h])}return l},[e,o])}(je,me,On,Wn);v(function(){var e=(null==jn?void 0:jn[(null==jn?void 0:jn.length)-1])||null;e&&(j(e),console.log("Parsed suggestions:",jn))},[jn]),v(function(){if($&&0!==mn.size){var e=$.conflicting_learnings&&Object.values($.conflicting_learnings).some(function(e){return mn.has(e.id)}),o=$.similar_learnings&&Object.values($.similar_learnings).some(function(e){return mn.has(e.id)});if(e||o){var i=JSON.stringify({deletedIds:Array.from(mn).sort()});if(bn.current!==i){var t=n({},$);if(t.conflicting_learnings){var l=Object.values(t.conflicting_learnings).filter(function(e){return!mn.has(e.id)});console.log("[ChatComponent] Re-keying conflicting learnings:",{originalKeys:Object.keys(t.conflicting_learnings),remainingCount:l.length,remainingLearnings:l.map(function(e){return{id:e.id,variant:e.feedback.variant}})});var a={};l.forEach(function(e,n){var o=String.fromCharCode(65+n);a[o]=e,console.log("[ChatComponent] Conflicting learning ".concat(n," gets key '").concat(o,"':"),e.feedback.variant)}),t.conflicting_learnings=a,console.log("[ChatComponent] Final conflicting learnings keys:",Object.keys(a))}if(t.similar_learnings){var r=Object.values(t.similar_learnings).filter(function(e){return!mn.has(e.id)});console.log("[ChatComponent] Re-keying similar learnings:",{originalKeys:Object.keys(t.similar_learnings),remainingCount:r.length,remainingLearnings:r.map(function(e){return{id:e.id,variant:e.feedback.variant}})});var s={};r.forEach(function(e,n){var o=String.fromCharCode(65+n);s[o]=e,console.log("[ChatComponent] Similar learning ".concat(n," gets key '").concat(o,"':"),e.feedback.variant)}),t.similar_learnings=s,console.log("[ChatComponent] Final similar learnings keys:",Object.keys(s))}bn.current=i,console.log("Filtered learningWtaResponse after deletion:",t),X(t)}}}},[mn,$,X]),v(function(){if($&&0!==Cn.size&&($.similar_learnings&&Object.values($.similar_learnings).some(function(e){return Cn.has(e.id)}))){var e=JSON.stringify({mergedIds:Array.from(Cn).sort()});if(wn.current!==e){var o=n({},$);if(o.similar_learnings){var i=Object.values(o.similar_learnings).filter(function(e){return!Cn.has(e.id)});console.log("[ChatComponent] Re-keying similar learnings after merge:",{originalKeys:Object.keys(o.similar_learnings),remainingCount:i.length,remainingLearnings:i.map(function(e){return{id:e.id,variant:e.feedback.variant}})});var t={};i.forEach(function(e,n){var o=String.fromCharCode(65+n);t[o]=e,console.log("[ChatComponent] Similar learning ".concat(n," gets key '").concat(o,"':"),e.feedback.variant)}),o.similar_learnings=t,console.log("[ChatComponent] Final similar learnings keys after merge:",Object.keys(t))}wn.current=e,console.log("Filtered learningWtaResponse after merge:",o),X(o)}}},[Cn,$,X]);var Bn=function(e){return u(function(){for(var n,o,i=[],t=/['"](\w+)['"]\s*:\s*(['"])((?:\\.|(?!\2).)*)\2/g,l=0,a=(null===(o=e[e.length-1])||void 0===o?void 0:o.orchestratorAndAgentsMessages)||[];l<a.length;l++)for(var r=a[l],s=(null==r?void 0:r.responsedata)||"",d=void 0;null!==(d=t.exec(s));)try{var c=d[1],u=d[3];(u.startsWith("'")&&u.endsWith("'")||u.startsWith('"')&&u.endsWith('"'))&&(u=u.substring(1,u.length-1));var v=((n={})[c]=u,n);i.push(v)}catch(e){console.error("Failed to parse regex match for header message:",e)}return i},[e])}(je);v(function(){var e=null==Bn?void 0:Bn.find(function(e){return"modification"in e});e&&H(e.modification);var o=null==Bn?void 0:Bn.find(function(e){return"tooltip"in e});o&&V(o.tooltip);var i=null==Bn?void 0:Bn.find(function(e){return"original"in e});i&&(console.log("✅ Original Extracted:",i.original),z(function(e){return e.question===i.original?e:n(n({},e),{original:i.original,_extractedOriginalUpdate:!0})}))},[Bn]);!function(e,n){v(function(){for(var o,i=0,t=(null===(o=e[e.length-1])||void 0===o?void 0:o.orchestratorAndAgentsMessages)||[];i<t.length;i++){for(var l=t[i],a=(null==l?void 0:l.responsedata)||"",r=/<wta>([\s\S]*?)<\/wta>/gi,s=[],d=void 0;null!==(d=r.exec(a));)console.log("match wta suggestion",d),s.push(d[1]);s.length&&n(s)}},[e,n])}(je,gn);var zn=function(e){return u(function(){for(var n,o=[],i=/^\{\s*(['"])(\w+)\1\s*:\s*(['"])(.*?)\3\s*\}$/,t=0,l=(null===(n=e[e.length-1])||void 0===n?void 0:n.orchestratorAndAgentsMessages)||[];t<l.length;t++){var a=l[t],r=((null==a?void 0:a.responsedata)||"").match(i);if(r){console.log("match: ",r[0]);try{var s=_.parse(r[0]);o.push(s)}catch(e){console.error("Failed to parse JSON:",e)}}}return o},[e])}(je);v(function(){var e=(null==zn?void 0:zn[(null==zn?void 0:zn.length)-1])||null;e&&(console.log("latestParseTooltip: ",e),V(null==e?void 0:e.tooltip))},[zn]);var Pn=function(e){var n=c([]),o=n[0],i=n[1];return v(function(){for(var n,o=[],t=/\{\s*['"]save['"]\s*:\s*(True|False|true|false)\s*\}/,l=0,a=(null===(n=e[e.length-1])||void 0===n?void 0:n.orchestratorAndAgentsMessages)||[];l<a.length;l++){var r=a[l],s=((null==r?void 0:r.responsedata)||"").match(t);if(s)try{var d=s[0].replace(/\bTrue\b/,"true").replace(/\bFalse\b/,"false").replace(/'/g,'"');console.log("corrected:",d);var c=_.parse(d);!0===c.save&&Z(!0),o.push(c)}catch(e){console.error("Failed to parse JSON:",e)}}i(o)},[e]),o}(je);v(function(){var e=(null==Pn?void 0:Pn[(null==Pn?void 0:Pn.length)-1])||null;if(e&&"boolean"==typeof e.save){q(!0);var n=setTimeout(function(){q(!1),J(e.save)},200);return function(){clearTimeout(n)}}},[Pn]),v(function(){ee&&(Vn(new KeyboardEvent("keydown",{key:"Enter"}),!1,"Save it"),ne(!1))},[ee]),v(function(){if(ie&&oe){var e="Delete learning ".concat(ie);Vn(new KeyboardEvent("keydown",{key:"Enter"}),!1,e),te&&te(null)}},[ie,oe,te]),v(function(){Un(),Gn();var e=function(){var e,n=(null===(e=null==kn?void 0:kn.current)||void 0===e?void 0:e.clientHeight)||0,o="calc(100% - ".concat(n,"px - 10px");En(o)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]);var Kn=g(function(){var e=Se.current;e&&setTimeout(function(){e.scrollTo({top:e.scrollHeight,behavior:"smooth"}),un(!1)},100)},[]);v(function(){(null==Re?void 0:Re.length)>0&&Kn()},[Re]);var Un=function(){var e={method:"get",maxBodyLength:1/0,url:"".concat(xe,"/api/chatbot/getChatSettings?name=").concat(be,"&organizationName=").concat(O),headers:{}};p.request(e).then(function(e){var n,o,i;(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.chatSettings)&&""!==(null===(i=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.chatSettings)||void 0===i?void 0:i.chatInitialMessage)&&Qe(!0)}).catch(function(e){console.error(e)})},Gn=function(){return o(void 0,void 0,void 0,function(){var e,n;return i(this,function(o){e="".concat(xe,"/api/chat/history?name=").concat(be,"&organizationName=").concat(O);try{n={method:"GET",params:{guestSessionId:we.current},withCredentials:!0},p.get(e,n).then(function(e){var n=e.data;n.length>0?(Be(n),Kn()):Qe(!0)}).catch(function(e){console.error(e)})}catch(e){Ke(!1),console.error(e)}return[2]})})};function Hn(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,function(e){return null==e?void 0:e.replace(/\*/g,"*")})}var Jn=function(e,o,i,l,a,r){var s,d,c,u,v,g,h,p,f,C,y,b,w,_,x,S,L,k;console.log("userInput: ",a);var R={role:"assistant",content:"",id:m()};if(null===(u=null===(c=null===(d=null===(s=null==e?void 0:e.chatStream)||void 0===s?void 0:s.continueChatResult)||void 0===d?void 0:d.message)||void 0===c?void 0:c.content)||void 0===u?void 0:u.includes("WaitMessage: "))Ke(!1),Ge(!0),R.content=function(e){var n="WaitMessage: ",o=e.indexOf(n);if(-1!==o){var i=e.substring(o+13);return null==i?void 0:i.replaceAll("WaitMessage: ","")}return""}((null===(h=null===(g=null===(v=null==e?void 0:e.chatStream)||void 0===v?void 0:v.continueChatResult)||void 0===g?void 0:g.message)||void 0===h?void 0:h.content)+"\n\n"),Be(t(t([],je,!0),[{role:"user",content:a,time:l,isFirstQuestionSent:r||!1,id:(null===(f=null===(p=null==e?void 0:e.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===f?void 0:f.requestId)||"",reply:""},R],!1));else{Ke(!1),Ge(!1),R.content=null===(w=Hn(null===(b=null===(y=null===(C=null==e?void 0:e.chatStream)||void 0===C?void 0:C.continueChatResult)||void 0===y?void 0:y.message)||void 0===b?void 0:b.content))||void 0===w?void 0:w.replaceAll("WaitMessage: ","");var A=function(e,o,i){var l,a,r,s,d,c,u,v,g,h,p,f,C,y,b,w,_,x,S,L,k,R,A,E,T,M,I,F,D,N,O,W,j,B,z,P,K,U,G,H,J,V,q,Z,Q,Y,$,X,ee,ne,oe,ie,te,le,ae,re,se,de,ce,ue,ve,ge,he,me,pe,fe,Ce,ye,be,we,_e,xe,Se,Le,ke,Re,Ae,Ee,Te,Me,Ie,Fe,De,Ne,Oe,We,je,Be,ze,Pe,Ke,Ue,Ge,He,Je,Ve,qe,Ze,Qe,Ye,$e,Xe,en,nn,on,tn,ln,an,rn,sn,dn,cn,un,vn,gn,hn,mn,pn,fn,Cn,yn,bn,wn,_n,xn,Sn,Ln,kn,Rn,An,En,Tn,Mn,In,Fn,Dn,Nn,On,Wn,jn,Bn,zn,Pn,Kn,Un,Gn,Jn,Vn,qn,Zn,Qn,Yn,$n,Xn,eo,no,oo,io,to,lo,ao,ro,so,co,uo,vo,go,ho,mo,po;console.log("event",e,Object.keys(e)),console.log("content: ",null==e?void 0:e.data);var fo={role:"assistant",content:"",id:m()};if(!1===(null===(r=null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.chatStream)||void 0===a?void 0:a.continueChatResult)||void 0===r?void 0:r.thinking_break)&&!0===(null===(c=null===(d=null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.chatStream)||void 0===d?void 0:d.continueChatResult)||void 0===c?void 0:c.is_orchestrator)&&!1===(null===(g=null===(v=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.chatStream)||void 0===v?void 0:v.continueChatResult)||void 0===g?void 0:g.isEnd)&&(fo.content=null===(y=Hn(null===(C=null===(f=null===(p=null===(h=null==e?void 0:e.data)||void 0===h?void 0:h.chatStream)||void 0===p?void 0:p.continueChatResult)||void 0===f?void 0:f.message)||void 0===C?void 0:C.content))||void 0===y?void 0:y.replaceAll("WaitMessage: ","")),!0===(null===(_=null===(w=null===(b=null==e?void 0:e.data)||void 0===b?void 0:b.chatStream)||void 0===w?void 0:w.continueChatResult)||void 0===_?void 0:_.thinking_break)&&!0===(null===(L=null===(S=null===(x=null==e?void 0:e.data)||void 0===x?void 0:x.chatStream)||void 0===S?void 0:S.continueChatResult)||void 0===L?void 0:L.is_orchestrator)&&!1===(null===(A=null===(R=null===(k=null==e?void 0:e.data)||void 0===k?void 0:k.chatStream)||void 0===R?void 0:R.continueChatResult)||void 0===A?void 0:A.isEnd)&&(fo.content="",o.push({responsedata:null===(I=null===(M=null===(T=null===(E=null==e?void 0:e.data)||void 0===E?void 0:E.chatStream)||void 0===T?void 0:T.continueChatResult)||void 0===M?void 0:M.message)||void 0===I?void 0:I.content,responseFrom:null===(N=null===(D=null===(F=null==e?void 0:e.data)||void 0===F?void 0:F.chatStream)||void 0===D?void 0:D.continueChatResult)||void 0===N?void 0:N.responded_by,header_message:null===(j=null===(W=null===(O=null==e?void 0:e.data)||void 0===O?void 0:O.chatStream)||void 0===W?void 0:W.continueChatResult)||void 0===j?void 0:j.header_message,finalResponseStatus:!1,explainability_id:null!==(K=null===(P=null===(z=null===(B=null==e?void 0:e.data)||void 0===B?void 0:B.chatStream)||void 0===z?void 0:z.continueChatResult)||void 0===P?void 0:P.explainability_id)&&void 0!==K?K:"",isParallelToolResponse:!1})),!1===(null===(H=null===(G=null===(U=null==e?void 0:e.data)||void 0===U?void 0:U.chatStream)||void 0===G?void 0:G.continueChatResult)||void 0===H?void 0:H.thinking_break)&&!0===(null===(q=null===(V=null===(J=null==e?void 0:e.data)||void 0===J?void 0:J.chatStream)||void 0===V?void 0:V.continueChatResult)||void 0===q?void 0:q.is_orchestrator)&&!0===(null===(Y=null===(Q=null===(Z=null==e?void 0:e.data)||void 0===Z?void 0:Z.chatStream)||void 0===Q?void 0:Q.continueChatResult)||void 0===Y?void 0:Y.isEnd)&&(fo.content=null===(oe=Hn(null===(ne=null===(ee=null===(X=null===($=null==e?void 0:e.data)||void 0===$?void 0:$.chatStream)||void 0===X?void 0:X.continueChatResult)||void 0===ee?void 0:ee.message)||void 0===ne?void 0:ne.content))||void 0===oe?void 0:oe.replaceAll("WaitMessage: ","")),!1===(null===(le=null===(te=null===(ie=null==e?void 0:e.data)||void 0===ie?void 0:ie.chatStream)||void 0===te?void 0:te.continueChatResult)||void 0===le?void 0:le.thinking_break)&&!1===(null===(se=null===(re=null===(ae=null==e?void 0:e.data)||void 0===ae?void 0:ae.chatStream)||void 0===re?void 0:re.continueChatResult)||void 0===se?void 0:se.is_orchestrator)&&!1===(null===(ue=null===(ce=null===(de=null==e?void 0:e.data)||void 0===de?void 0:de.chatStream)||void 0===ce?void 0:ce.continueChatResult)||void 0===ue?void 0:ue.isEnd)){if((bo=null===(ge=null===(ve=null==e?void 0:e.data)||void 0===ve?void 0:ve.chatStream)||void 0===ge?void 0:ge.continueChatResult).explainability_id&&bo.responded_by){var Co=bo.explainability_id,yo=bo.responded_by;i.has(Co)||i.set(Co,{responded_by:yo,index:o.length})}i.has(null===(me=null===(he=null==e?void 0:e.data)||void 0===he?void 0:he.chatStream)||void 0===me?void 0:me.continueChatResult.explainability_id)?o[Lo=null==(wo=i.get(null===(Ce=null===(fe=null===(pe=null==e?void 0:e.data)||void 0===pe?void 0:pe.chatStream)||void 0===fe?void 0:fe.continueChatResult)||void 0===Ce?void 0:Ce.explainability_id))?void 0:wo.index]={responsedata:null===(_e=null===(we=null===(be=null===(ye=null==e?void 0:e.data)||void 0===ye?void 0:ye.chatStream)||void 0===be?void 0:be.continueChatResult)||void 0===we?void 0:we.message)||void 0===_e?void 0:_e.content,responseFrom:null===(Le=null===(Se=null===(xe=null==e?void 0:e.data)||void 0===xe?void 0:xe.chatStream)||void 0===Se?void 0:Se.continueChatResult)||void 0===Le?void 0:Le.responded_by,header_message:null===(Ae=null===(Re=null===(ke=null==e?void 0:e.data)||void 0===ke?void 0:ke.chatStream)||void 0===Re?void 0:Re.continueChatResult)||void 0===Ae?void 0:Ae.header_message,finalResponseStatus:!0,explainability_id:null!==(Ie=null===(Me=null===(Te=null===(Ee=null==e?void 0:e.data)||void 0===Ee?void 0:Ee.chatStream)||void 0===Te?void 0:Te.continueChatResult)||void 0===Me?void 0:Me.explainability_id)&&void 0!==Ie?Ie:"",isParallelToolResponse:!0}:o=t(t([],o,!0),[{responsedata:null===(Oe=null===(Ne=null===(De=null===(Fe=null==e?void 0:e.data)||void 0===Fe?void 0:Fe.chatStream)||void 0===De?void 0:De.continueChatResult)||void 0===Ne?void 0:Ne.message)||void 0===Oe?void 0:Oe.content,responseFrom:null===(Be=null===(je=null===(We=null==e?void 0:e.data)||void 0===We?void 0:We.chatStream)||void 0===je?void 0:je.continueChatResult)||void 0===Be?void 0:Be.responded_by,header_message:null===(Ke=null===(Pe=null===(ze=null==e?void 0:e.data)||void 0===ze?void 0:ze.chatStream)||void 0===Pe?void 0:Pe.continueChatResult)||void 0===Ke?void 0:Ke.header_message,finalResponseStatus:!0,explainability_id:null!==(Je=null===(He=null===(Ge=null===(Ue=null==e?void 0:e.data)||void 0===Ue?void 0:Ue.chatStream)||void 0===Ge?void 0:Ge.continueChatResult)||void 0===He?void 0:He.explainability_id)&&void 0!==Je?Je:"",isParallelToolResponse:!1}],!1)}if(!0===(null===(Ze=null===(qe=null===(Ve=null==e?void 0:e.data)||void 0===Ve?void 0:Ve.chatStream)||void 0===qe?void 0:qe.continueChatResult)||void 0===Ze?void 0:Ze.thinking_break)&&!1===(null===($e=null===(Ye=null===(Qe=null==e?void 0:e.data)||void 0===Qe?void 0:Qe.chatStream)||void 0===Ye?void 0:Ye.continueChatResult)||void 0===$e?void 0:$e.is_orchestrator)&&!1===(null===(nn=null===(en=null===(Xe=null==e?void 0:e.data)||void 0===Xe?void 0:Xe.chatStream)||void 0===en?void 0:en.continueChatResult)||void 0===nn?void 0:nn.isEnd)){var bo,wo;(bo=null===(tn=null===(on=null==e?void 0:e.data)||void 0===on?void 0:on.chatStream)||void 0===tn?void 0:tn.continueChatResult).explainability_id&&bo.responded_by&&(Co=bo.explainability_id,yo=bo.responded_by,i.has(Co)||i.set(Co,{responded_by:yo,index:o.length})),i.has(null===(rn=null===(an=null===(ln=null==e?void 0:e.data)||void 0===ln?void 0:ln.chatStream)||void 0===an?void 0:an.continueChatResult)||void 0===rn?void 0:rn.explainability_id)?o[Lo=null==(wo=i.get(null===(cn=null===(dn=null===(sn=null==e?void 0:e.data)||void 0===sn?void 0:sn.chatStream)||void 0===dn?void 0:dn.continueChatResult)||void 0===cn?void 0:cn.explainability_id))?void 0:wo.index]={responsedata:null===(hn=null===(gn=null===(vn=null===(un=null==e?void 0:e.data)||void 0===un?void 0:un.chatStream)||void 0===vn?void 0:vn.continueChatResult)||void 0===gn?void 0:gn.message)||void 0===hn?void 0:hn.content,responseFrom:null===(fn=null===(pn=null===(mn=null==e?void 0:e.data)||void 0===mn?void 0:mn.chatStream)||void 0===pn?void 0:pn.continueChatResult)||void 0===fn?void 0:fn.responded_by,header_message:null===(bn=null===(yn=null===(Cn=null==e?void 0:e.data)||void 0===Cn?void 0:Cn.chatStream)||void 0===yn?void 0:yn.continueChatResult)||void 0===bn?void 0:bn.header_message,finalResponseStatus:!1,explainability_id:null!==(Sn=null===(xn=null===(_n=null===(wn=null==e?void 0:e.data)||void 0===wn?void 0:wn.chatStream)||void 0===_n?void 0:_n.continueChatResult)||void 0===xn?void 0:xn.explainability_id)&&void 0!==Sn?Sn:"",isParallelToolResponse:!0}:o.push({responsedata:null===(An=null===(Rn=null===(kn=null===(Ln=null==e?void 0:e.data)||void 0===Ln?void 0:Ln.chatStream)||void 0===kn?void 0:kn.continueChatResult)||void 0===Rn?void 0:Rn.message)||void 0===An?void 0:An.content,responseFrom:null===(Mn=null===(Tn=null===(En=null==e?void 0:e.data)||void 0===En?void 0:En.chatStream)||void 0===Tn?void 0:Tn.continueChatResult)||void 0===Mn?void 0:Mn.responded_by,header_message:null===(Dn=null===(Fn=null===(In=null==e?void 0:e.data)||void 0===In?void 0:In.chatStream)||void 0===Fn?void 0:Fn.continueChatResult)||void 0===Dn?void 0:Dn.header_message,finalResponseStatus:!1,explainability_id:null!==(jn=null===(Wn=null===(On=null===(Nn=null==e?void 0:e.data)||void 0===Nn?void 0:Nn.chatStream)||void 0===On?void 0:On.continueChatResult)||void 0===Wn?void 0:Wn.explainability_id)&&void 0!==jn?jn:"",isParallelToolResponse:!1})}var _o=null===(Kn=null===(Pn=null===(zn=null===(Bn=null==e?void 0:e.data)||void 0===Bn?void 0:Bn.chatStream)||void 0===zn?void 0:zn.continueChatResult)||void 0===Pn?void 0:Pn.message)||void 0===Kn?void 0:Kn.annotations,xo=(null===(Vn=null===(Jn=null===(Gn=null===(Un=null==e?void 0:e.data)||void 0===Un?void 0:Un.chatStream)||void 0===Gn?void 0:Gn.continueChatResult)||void 0===Jn?void 0:Jn.message)||void 0===Vn?void 0:Vn.userFeedbackId)||"",So={role:"assistant",content:fo.content,orchestratorAndAgentsMessages:o,time:new Date,requestId:null!==(Yn=null===(Qn=null===(Zn=null===(qn=null==e?void 0:e.data)||void 0===qn?void 0:qn.chatStream)||void 0===Zn?void 0:Zn.continueChatResult)||void 0===Qn?void 0:Qn.requestId)&&void 0!==Yn?Yn:"",citations:null===(no=null===(eo=null===(Xn=null===($n=null==e?void 0:e.data)||void 0===$n?void 0:$n.chatStream)||void 0===Xn?void 0:Xn.continueChatResult)||void 0===eo?void 0:eo.message)||void 0===no?void 0:no.citations,guides_utilized:null!==(ao=null===(lo=null===(to=null===(io=null===(oo=null==e?void 0:e.data)||void 0===oo?void 0:oo.chatStream)||void 0===io?void 0:io.continueChatResult)||void 0===to?void 0:to.message)||void 0===lo?void 0:lo.guides_utilized)&&void 0!==ao?ao:[],annotations:_o,resourceId:null===(co=null===(so=null===(ro=null==e?void 0:e.data)||void 0===ro?void 0:ro.chatStream)||void 0===so?void 0:so.continueChatResult)||void 0===co?void 0:co.resourceId,userFeedbackId:xo,citationDisplayType:null!==(mo=null===(ho=null===(go=null===(vo=null===(uo=null==e?void 0:e.data)||void 0===uo?void 0:uo.chatStream)||void 0===vo?void 0:vo.continueChatResult)||void 0===go?void 0:go.message)||void 0===ho?void 0:ho.citationDisplayType)&&void 0!==mo?mo:""};if(_o)for(var Lo=0;Lo<(null==_o?void 0:_o.length);Lo++){var ko=_o[Lo];So=n(n({},So),{content:null===(po=null==So?void 0:So.content)||void 0===po?void 0:po.replace(null==ko?void 0:ko.text,(null==ko?void 0:ko.text)+"<sup>".concat(Lo,"</sup>"))})}return So}({data:e},i,o);console.log("assistantObject",A),Be(t(t([],je,!0),[{role:"user",content:a||"",time:l,isFirstQuestionSent:r||!1,requestId:null!==(S=null===(x=null===(_=null==e?void 0:e.chatStream)||void 0===_?void 0:_.continueChatResult)||void 0===x?void 0:x.requestId)&&void 0!==S?S:""},A],!1)),Ve(null===(k=null===(L=null==e?void 0:e.chatStream)||void 0===L?void 0:L.continueChatResult)||void 0===k?void 0:k.isEnd)}},Vn=function(e,o,i,l){var a,r,s,d,c,u,v;void 0===l&&(l=!1);var g=(null==i?void 0:i.trim())||(null==Ie?void 0:Ie.trim())||"";if(!("Enter"!==e.key||e.shiftKey||""===(null==i?void 0:i.trim())&&""===(null==Ie?void 0:Ie.trim())||tn)){ln(!0),l&&Dn(!0);var p=new Date;Be(t(t([],je.map(function(e,o){var i;return n(n({},e),{content:null===(i=Hn(e.content))||void 0===i?void 0:i.replace("WaitMessage: ","")})}),!0),[{role:"user",content:g,time:p,isFirstQuestionSent:!1}],!1));var f=new Map,C=[];Te(!1);var y={WEBSOCKET_URL:K,organizationName:O,chatAssistantName:be,selectedAIModel:"gpt-4",replyMessage:"",userName:"Guest User",userEmailId:"guestUser@example.com",userId:"Guest User",query:(null==i?void 0:i.trim())||(null==Ie?void 0:Ie.trim())||"",requestId:"requestId-".concat(m()),customPrompt:"",enableForBackend:!1,guestSessionId:we.current,chatPreviewId:_e.current,customMetaData:n(n(n(n(n({},B),{whenToApply:null===(r=null===(a=null==B?void 0:B.whenToApply)||void 0===a?void 0:a.split(" OR "))||void 0===r?void 0:r.filter(function(e){return""!==e}),whenNotToApply:null===(d=null===(s=null==B?void 0:B.whenNotToApply)||void 0===s?void 0:s.split(" OR "))||void 0===d?void 0:d.filter(function(e){return""!==e}),isFirstQuestion:0===je.length,validation:!l&&(null!=Q?Q:null),conflicting_learnings:null!==(c=null==$?void 0:$.conflicting_learnings)&&void 0!==c?c:"",similar_learnings:null!==(u=null==$?void 0:$.similar_learnings)&&void 0!==u?u:""}),(null==fe?void 0:fe.wta)&&{recommended_whentoapply:fe.wta}),(null==fe?void 0:fe.wnta)&&{recommended_whennottoapply:fe.wnta}),{send_metadata_to_orchestrator:!0,ai_response:ye}),customMetaDataDebug:{conflicting_learnings_keys:(null==$?void 0:$.conflicting_learnings)?Object.keys($.conflicting_learnings):[],similar_learnings_keys:(null==$?void 0:$.similar_learnings)?Object.keys($.similar_learnings):[],conflicting_count:(null==$?void 0:$.conflicting_learnings)?Object.keys($.conflicting_learnings).length:0,similar_count:(null==$?void 0:$.similar_learnings)?Object.keys($.similar_learnings).length:0},aiModel:"",onStreamEvent:function(e){return Jn(e,f,C,p,g,o)},onStreamEnd:function(e){ln(!1),Dn(!1)},onError:function(e){console.error("Stream error:",e),ln(!1),Dn(!1)}};if(console.log("Custom MetaData Payload:",y.customMetaData),""!==(null==Ie?void 0:Ie.trim())||(null==i?void 0:i.trim())){Ke(!0),null===(v=Le.current)||void 0===v||v.blur(),Fe(""),Kn();for(var b="Thanks for sharing your thoughts. I'm putting together the most helpful suggestions now, so we can make sure this really fits your needs.".split(" "),w="",_=function(e){setTimeout(function(){w+=b[e]+" ",nn(w.trim())},25*e)},x=0;x<b.length;x++)_(x);h(y)}}},qn=d(new Set);return v(function(){if(le&&!tn){if(qn.current.has(le))return void console.log("[ChatComponent] ⚠️ Duplicate merge trigger ignored:",le);console.log("[ChatComponent] 🔴 MERGE TRIGGER RECEIVED:",le),qn.current.add(le);var e=null,n="A";if(null==$?void 0:$.similar_learnings){var o=Object.values($.similar_learnings),i=o.findIndex(function(e){return(null==e?void 0:e.id)===le});-1!==i&&(e=o[i],n=String.fromCharCode(65+i))}if(e){var t="Merge Similar Learning ".concat(n," with current learning");console.log("[ChatComponent] ✅ Sending merge message to chat:",t),Vn(new KeyboardEvent("keydown",{key:"Enter"}),!1,t),console.log("[ChatComponent] Message sent successfully")}else console.log("[ChatComponent] ❌ Learning not found for ID:",le);ae&&(ae(null),console.log("[ChatComponent] Trigger cleared"))}else le&&tn&&console.log("[ChatComponent] ⚠️ Merge trigger received but streaming in progress:",le)},[le,tn,ae]),u(function(){return{img:function(e){e.node;var o=l(e,["node"]);return a("img",n({},o,{style:{height:"100%",width:"100%",objectFit:"contain"},alt:(null==o?void 0:o.alt)||"",className:"w-full sm:max-w-lg md:max-w-2xl lg:max-w-4xl mx-auto"}))},p:function(e){e.node;var o=l(e,["node"]);return a("p",n({},o,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",fontSize:"1rem",lineHeight:"1.625rem",marginBottom:"1rem",marginTop:"10px"}},{children:null==o?void 0:o.children}))},code:function(e){e.node;var o=l(e,["node"]);return a("span",n({},o,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",fontSize:"1rem",lineHeight:"1.625rem"}},{children:null==o?void 0:o.children}))},ol:function(e){e.node;var o=l(e,["node"]);return a("ol",n({},o,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==o?void 0:o.children}))},ul:function(e){e.node;var o=l(e,["node"]);return a("ul",n({},o,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==o?void 0:o.children}))},wta:function(e){e.node;var n=l(e,["node"]);n.key||n["data-key"];var o=n.label||n.children||"Unknown label";return a(D,{label:o,onToggle:function(e,n){!function(e,n){var o=Array.isArray(e)?e[0]:e;null==Re||Re.length,Te(!0),Ae(function(e){return n?e.includes(o)?e:t(t([],e,!0),[o],!1):e.filter(function(e){return e!==o})})}(e,n)}})}}},[]),r("div",n({className:b.customFont,style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"#fbfaff",border:"1px solid #d1d5db",overflow:"hidden"}},{children:[r("div",n({style:{width:"100%",height:"100%",backgroundColor:"#fbfaff",maxWidth:"100%",overflow:"hidden"}},{children:[a("div",n({ref:kn},{children:a(I,{resetChatHistory:function(){var e="".concat(xe,"/api/chat/resetHistory?name=").concat(be,"&organizationName=").concat(O);Y(null),X(null);try{var o={method:"GET",params:{guestSessionId:we.current},withCredentials:!0};p.get(e,o).then(function(){H(""),V(""),U(!0),Te(!1),Ae([]),$e(""),pn(new Set),bn.current="",_n.current.clear(),qn.current.clear(),ae&&ae(null),_e.current="".concat(m()),P(!1),Be([]),Qe(!0),re?(console.log("[ChatComponent] 🔄 Calling onResetLearningData callback"),re()):console.log("[ChatComponent] ❌ onResetLearningData callback not available"),z(function(e){return n(n({},e),{original:Ce?"":e.original,modification:"",tooltip:"",whenToApply:"",whenNotToApply:"",isTooltipEnabled:!1,isModificationEnabled:!0})})}).catch(function(e){console.error(e)})}catch(e){Ke(!1),console.error(e)}},isStreamEnd:Je})})),r("div",n({style:{width:"100%",height:An,maxHeight:An,overflowY:"auto",backgroundColor:"#fbfaff"},ref:Se},{children:[a("div",n({className:"welcome-message",style:{alignItems:"flex-start",paddingLeft:"0.5rem",paddingTop:"1rem",maxWidth:"70%",fontSize:"1rem",lineHeight:"1.75rem",borderRadius:"0.5rem",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"#333",fontWeight:"700",textAlign:"left"}},{children:a("span",{children:"I'm here to help fine-tune your learning so it works as accurately as it should."})})),r("div",n({style:{display:"flex",flexDirection:"row",fontFamily:"inherit",padding:"16px 10px 0px 16px",maxWidth:"80%"}},{children:[a("div",n({style:{maxHeight:"32px",maxWidth:"32px",marginTop:"0.3rem"}},{children:r("svg",n({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[a("g",n({id:"bi:stars","clip-path":"url(#clip0_6004_60631)"},{children:a("path",{id:"Vector",d:"M11.4867 9.37021C11.6517 8.87521 12.3507 8.87521 12.5157 9.37021L13.4832 12.2757C13.6961 12.9144 14.0549 13.4947 14.5311 13.9707C15.0073 14.4466 15.5879 14.8051 16.2267 15.0177L19.1307 15.9852C19.6257 16.1502 19.6257 16.8492 19.1307 17.0142L16.2252 17.9817C15.5865 18.1947 15.0062 18.5535 14.5302 19.0297C14.0543 19.5059 13.6958 20.0864 13.4832 20.7252L12.5157 23.6292C12.4801 23.7376 12.4112 23.832 12.3188 23.8989C12.2264 23.9658 12.1153 24.0019 12.0012 24.0019C11.8871 24.0019 11.7759 23.9658 11.6835 23.8989C11.5912 23.832 11.5223 23.7376 11.4867 23.6292L10.5192 20.7237C10.3064 20.0852 9.9478 19.505 9.47187 19.029C8.99594 18.5531 8.41572 18.1945 7.77718 17.9817L4.87168 17.0142C4.76329 16.9786 4.6689 16.9097 4.60198 16.8173C4.53506 16.725 4.49904 16.6138 4.49904 16.4997C4.49904 16.3856 4.53506 16.2745 4.60198 16.1821C4.6689 16.0897 4.76329 16.0208 4.87168 15.9852L7.77718 15.0177C8.41572 14.8049 8.99594 14.4463 9.47187 13.9704C9.9478 13.4945 10.3064 12.9142 10.5192 12.2757L11.4867 9.37021ZM5.69218 1.72171C5.71369 1.65675 5.75512 1.60022 5.8106 1.56016C5.86607 1.52009 5.93275 1.49853 6.00118 1.49853C6.06961 1.49853 6.13629 1.52009 6.19176 1.56016C6.24724 1.60022 6.28867 1.65675 6.31018 1.72171L6.89068 3.46471C7.15018 4.24171 7.75918 4.85071 8.53618 5.11021L10.2792 5.69071C10.3441 5.71222 10.4007 5.75365 10.4407 5.80912C10.4808 5.86459 10.5024 5.93128 10.5024 5.99971C10.5024 6.06813 10.4808 6.13482 10.4407 6.19029C10.4007 6.24576 10.3441 6.2872 10.2792 6.30871L8.53618 6.88921C8.15274 7.01647 7.80431 7.23149 7.51864 7.51717C7.23296 7.80284 7.01794 8.15127 6.89068 8.53471L6.31018 10.2777C6.28867 10.3427 6.24724 10.3992 6.19176 10.4393C6.13629 10.4793 6.06961 10.5009 6.00118 10.5009C5.93275 10.5009 5.86607 10.4793 5.8106 10.4393C5.75512 10.3992 5.71369 10.3427 5.69218 10.2777L5.11168 8.53471C4.98442 8.15127 4.7694 7.80284 4.48372 7.51717C4.19805 7.23149 3.84962 7.01647 3.46618 6.88921L1.72318 6.30871C1.65822 6.2872 1.60169 6.24576 1.56163 6.19029C1.52156 6.13482 1.5 6.06813 1.5 5.99971C1.5 5.93128 1.52156 5.86459 1.56163 5.80912C1.60169 5.75365 1.65822 5.71222 1.72318 5.69071L3.46618 5.11021C3.84962 4.98295 4.19805 4.76792 4.48372 4.48225C4.7694 4.19657 4.98442 3.84815 5.11168 3.46471L5.69218 1.72171ZM16.2957 0.148207C16.3105 0.105497 16.3382 0.068461 16.3751 0.0422495C16.4119 0.016038 16.456 0.00195312 16.5012 0.00195312C16.5464 0.00195313 16.5905 0.016038 16.6273 0.0422495C16.6641 0.068461 16.6919 0.105497 16.7067 0.148207L17.0937 1.30921C17.2662 1.82821 17.6727 2.23471 18.1917 2.40721L19.3527 2.79421C19.3954 2.80901 19.4324 2.83676 19.4586 2.87359C19.4848 2.91042 19.4989 2.9545 19.4989 2.99971C19.4989 3.04491 19.4848 3.08899 19.4586 3.12582C19.4324 3.16265 19.3954 3.1904 19.3527 3.20521L18.1917 3.59221C17.9361 3.67771 17.7039 3.82139 17.5134 4.01193C17.3229 4.20247 17.1792 4.43467 17.0937 4.69021L16.7067 5.85121C16.6919 5.89392 16.6641 5.93095 16.6273 5.95717C16.5905 5.98338 16.5464 5.99746 16.5012 5.99746C16.456 5.99746 16.4119 5.98338 16.3751 5.95717C16.3382 5.93095 16.3105 5.89392 16.2957 5.85121L15.9087 4.69021C15.8232 4.43467 15.6795 4.20247 15.489 4.01193C15.2984 3.82139 15.0662 3.67771 14.8107 3.59221L13.6512 3.20521C13.6085 3.1904 13.5714 3.16265 13.5452 3.12582C13.519 3.08899 13.5049 3.04491 13.5049 2.99971C13.5049 2.9545 13.519 2.91042 13.5452 2.87359C13.5714 2.83676 13.6085 2.80901 13.6512 2.79421L14.8122 2.40721C15.3312 2.23471 15.7377 1.82821 15.9102 1.30921L16.2957 0.148207Z",fill:"#5928ed"})})),a("defs",{children:a("clipPath",n({id:"clip0_6004_60631"},{children:a("rect",{width:"24",height:"24",fill:"white"})}))})]}))})),a("div",n({style:{display:"flex",flexDirection:"column",fontWeight:400,color:"#000"}},{children:a("div",n({style:{display:"inline-flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:"1rem",paddingRight:"1rem",width:"100%",maxWidth:"100%",fontSize:"1rem",lineHeight:"1.75rem",marginBottom:"1rem",borderRadius:"0.5rem",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"#333"}},{children:a("span",{children:a(f,n({components:{p:function(e){e.node;var o=l(e,["node"]);return a("p",n({},o,{style:{margin:0}},{children:null==o?void 0:o.children}))}}},{children:Ne}))})}))}))]})),je.length?je.map(function(e,o){return r("div",n({style:{display:"flex",padding:"0.5rem 1rem",maxWidth:"100%"}},{children:["assistant"==(null==e?void 0:e.role)&&a("div",n({style:{maxHeight:"32px",maxWidth:"32px",marginTop:"0.5rem",marginRight:"1rem"}},{children:r("svg",n({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[a("g",n({id:"bi:stars","clip-path":"url(#clip0_6004_60631)"},{children:a("path",{id:"Vector",d:"M11.4867 9.37021C11.6517 8.87521 12.3507 8.87521 12.5157 9.37021L13.4832 12.2757C13.6961 12.9144 14.0549 13.4947 14.5311 13.9707C15.0073 14.4466 15.5879 14.8051 16.2267 15.0177L19.1307 15.9852C19.6257 16.1502 19.6257 16.8492 19.1307 17.0142L16.2252 17.9817C15.5865 18.1947 15.0062 18.5535 14.5302 19.0297C14.0543 19.5059 13.6958 20.0864 13.4832 20.7252L12.5157 23.6292C12.4801 23.7376 12.4112 23.832 12.3188 23.8989C12.2264 23.9658 12.1153 24.0019 12.0012 24.0019C11.8871 24.0019 11.7759 23.9658 11.6835 23.8989C11.5912 23.832 11.5223 23.7376 11.4867 23.6292L10.5192 20.7237C10.3064 20.0852 9.9478 19.505 9.47187 19.029C8.99594 18.5531 8.41572 18.1945 7.77718 17.9817L4.87168 17.0142C4.76329 16.9786 4.6689 16.9097 4.60198 16.8173C4.53506 16.725 4.49904 16.6138 4.49904 16.4997C4.49904 16.3856 4.53506 16.2745 4.60198 16.1821C4.6689 16.0897 4.76329 16.0208 4.87168 15.9852L7.77718 15.0177C8.41572 14.8049 8.99594 14.4463 9.47187 13.9704C9.9478 13.4945 10.3064 12.9142 10.5192 12.2757L11.4867 9.37021ZM5.69218 1.72171C5.71369 1.65675 5.75512 1.60022 5.8106 1.56016C5.86607 1.52009 5.93275 1.49853 6.00118 1.49853C6.06961 1.49853 6.13629 1.52009 6.19176 1.56016C6.24724 1.60022 6.28867 1.65675 6.31018 1.72171L6.89068 3.46471C7.15018 4.24171 7.75918 4.85071 8.53618 5.11021L10.2792 5.69071C10.3441 5.71222 10.4007 5.75365 10.4407 5.80912C10.4808 5.86459 10.5024 5.93128 10.5024 5.99971C10.5024 6.06813 10.4808 6.13482 10.4407 6.19029C10.4007 6.24576 10.3441 6.2872 10.2792 6.30871L8.53618 6.88921C8.15274 7.01647 7.80431 7.23149 7.51864 7.51717C7.23296 7.80284 7.01794 8.15127 6.89068 8.53471L6.31018 10.2777C6.28867 10.3427 6.24724 10.3992 6.19176 10.4393C6.13629 10.4793 6.06961 10.5009 6.00118 10.5009C5.93275 10.5009 5.86607 10.4793 5.8106 10.4393C5.75512 10.3992 5.71369 10.3427 5.69218 10.2777L5.11168 8.53471C4.98442 8.15127 4.7694 7.80284 4.48372 7.51717C4.19805 7.23149 3.84962 7.01647 3.46618 6.88921L1.72318 6.30871C1.65822 6.2872 1.60169 6.24576 1.56163 6.19029C1.52156 6.13482 1.5 6.06813 1.5 5.99971C1.5 5.93128 1.52156 5.86459 1.56163 5.80912C1.60169 5.75365 1.65822 5.71222 1.72318 5.69071L3.46618 5.11021C3.84962 4.98295 4.19805 4.76792 4.48372 4.48225C4.7694 4.19657 4.98442 3.84815 5.11168 3.46471L5.69218 1.72171ZM16.2957 0.148207C16.3105 0.105497 16.3382 0.068461 16.3751 0.0422495C16.4119 0.016038 16.456 0.00195312 16.5012 0.00195312C16.5464 0.00195313 16.5905 0.016038 16.6273 0.0422495C16.6641 0.068461 16.6919 0.105497 16.7067 0.148207L17.0937 1.30921C17.2662 1.82821 17.6727 2.23471 18.1917 2.40721L19.3527 2.79421C19.3954 2.80901 19.4324 2.83676 19.4586 2.87359C19.4848 2.91042 19.4989 2.9545 19.4989 2.99971C19.4989 3.04491 19.4848 3.08899 19.4586 3.12582C19.4324 3.16265 19.3954 3.1904 19.3527 3.20521L18.1917 3.59221C17.9361 3.67771 17.7039 3.82139 17.5134 4.01193C17.3229 4.20247 17.1792 4.43467 17.0937 4.69021L16.7067 5.85121C16.6919 5.89392 16.6641 5.93095 16.6273 5.95717C16.5905 5.98338 16.5464 5.99746 16.5012 5.99746C16.456 5.99746 16.4119 5.98338 16.3751 5.95717C16.3382 5.93095 16.3105 5.89392 16.2957 5.85121L15.9087 4.69021C15.8232 4.43467 15.6795 4.20247 15.489 4.01193C15.2984 3.82139 15.0662 3.67771 14.8107 3.59221L13.6512 3.20521C13.6085 3.1904 13.5714 3.16265 13.5452 3.12582C13.519 3.08899 13.5049 3.04491 13.5049 2.99971C13.5049 2.9545 13.519 2.91042 13.5452 2.87359C13.5714 2.83676 13.6085 2.80901 13.6512 2.79421L14.8122 2.40721C15.3312 2.23471 15.7377 1.82821 15.9102 1.30921L16.2957 0.148207Z",fill:"#5928ed"})})),a("defs",{children:a("clipPath",n({id:"clip0_6004_60631"},{children:a("rect",{width:"24",height:"24",fill:"white"})}))})]}))})),r("div",n({style:{width:"100%"}},{children:["assistant"===e.role&&e.orchestratorAndAgentsMessages&&e.orchestratorAndAgentsMessages.length>0&&a(C,{orchestratorAndAgentsMessages:null==e?void 0:e.orchestratorAndAgentsMessages,isStreamEnd:Je,isCurrentMessage:o===je.length-1,ThinkingBulbIconComponent:G}),"assistant"===(null==e?void 0:e.role)?a(S,{index:o,content:null==e?void 0:e.content,messages:je,handleStream:Vn}):a("span",{}),a("div",n({style:{display:"flex",justifyContent:"flex-end"}},{children:"user"===e.role?a("div",n({style:{backgroundColor:"#8694A10D",padding:"0 1rem",borderRadius:"8px",maxWidth:"80%"}},{children:a(S,{index:o,content:null==e?void 0:e.content,messages:je,handleStream:Vn,scrollToBottom:Kn})})):a("span",{})}))]}))]}))}):Ze&&a(s,{}),Pe&&r("div",n({style:{display:"flex",padding:"16px 16px 0px 16px"}},{children:[a("div",n({style:{maxHeight:"32px",maxWidth:"32px",marginTop:"0.2rem"}},{children:r("svg",n({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[a("g",n({id:"bi:stars","clip-path":"url(#clip0_6004_60631)"},{children:a("path",{id:"Vector",d:"M11.4867 9.37021C11.6517 8.87521 12.3507 8.87521 12.5157 9.37021L13.4832 12.2757C13.6961 12.9144 14.0549 13.4947 14.5311 13.9707C15.0073 14.4466 15.5879 14.8051 16.2267 15.0177L19.1307 15.9852C19.6257 16.1502 19.6257 16.8492 19.1307 17.0142L16.2252 17.9817C15.5865 18.1947 15.0062 18.5535 14.5302 19.0297C14.0543 19.5059 13.6958 20.0864 13.4832 20.7252L12.5157 23.6292C12.4801 23.7376 12.4112 23.832 12.3188 23.8989C12.2264 23.9658 12.1153 24.0019 12.0012 24.0019C11.8871 24.0019 11.7759 23.9658 11.6835 23.8989C11.5912 23.832 11.5223 23.7376 11.4867 23.6292L10.5192 20.7237C10.3064 20.0852 9.9478 19.505 9.47187 19.029C8.99594 18.5531 8.41572 18.1945 7.77718 17.9817L4.87168 17.0142C4.76329 16.9786 4.6689 16.9097 4.60198 16.8173C4.53506 16.725 4.49904 16.6138 4.49904 16.4997C4.49904 16.3856 4.53506 16.2745 4.60198 16.1821C4.6689 16.0897 4.76329 16.0208 4.87168 15.9852L7.77718 15.0177C8.41572 14.8049 8.99594 14.4463 9.47187 13.9704C9.9478 13.4945 10.3064 12.9142 10.5192 12.2757L11.4867 9.37021ZM5.69218 1.72171C5.71369 1.65675 5.75512 1.60022 5.8106 1.56016C5.86607 1.52009 5.93275 1.49853 6.00118 1.49853C6.06961 1.49853 6.13629 1.52009 6.19176 1.56016C6.24724 1.60022 6.28867 1.65675 6.31018 1.72171L6.89068 3.46471C7.15018 4.24171 7.75918 4.85071 8.53618 5.11021L10.2792 5.69071C10.3441 5.71222 10.4007 5.75365 10.4407 5.80912C10.4808 5.86459 10.5024 5.93128 10.5024 5.99971C10.5024 6.06813 10.4808 6.13482 10.4407 6.19029C10.4007 6.24576 10.3441 6.2872 10.2792 6.30871L8.53618 6.88921C8.15274 7.01647 7.80431 7.23149 7.51864 7.51717C7.23296 7.80284 7.01794 8.15127 6.89068 8.53471L6.31018 10.2777C6.28867 10.3427 6.24724 10.3992 6.19176 10.4393C6.13629 10.4793 6.06961 10.5009 6.00118 10.5009C5.93275 10.5009 5.86607 10.4793 5.8106 10.4393C5.75512 10.3992 5.71369 10.3427 5.69218 10.2777L5.11168 8.53471C4.98442 8.15127 4.7694 7.80284 4.48372 7.51717C4.19805 7.23149 3.84962 7.01647 3.46618 6.88921L1.72318 6.30871C1.65822 6.2872 1.60169 6.24576 1.56163 6.19029C1.52156 6.13482 1.5 6.06813 1.5 5.99971C1.5 5.93128 1.52156 5.86459 1.56163 5.80912C1.60169 5.75365 1.65822 5.71222 1.72318 5.69071L3.46618 5.11021C3.84962 4.98295 4.19805 4.76792 4.48372 4.48225C4.7694 4.19657 4.98442 3.84815 5.11168 3.46471L5.69218 1.72171ZM16.2957 0.148207C16.3105 0.105497 16.3382 0.068461 16.3751 0.0422495C16.4119 0.016038 16.456 0.00195312 16.5012 0.00195312C16.5464 0.00195313 16.5905 0.016038 16.6273 0.0422495C16.6641 0.068461 16.6919 0.105497 16.7067 0.148207L17.0937 1.30921C17.2662 1.82821 17.6727 2.23471 18.1917 2.40721L19.3527 2.79421C19.3954 2.80901 19.4324 2.83676 19.4586 2.87359C19.4848 2.91042 19.4989 2.9545 19.4989 2.99971C19.4989 3.04491 19.4848 3.08899 19.4586 3.12582C19.4324 3.16265 19.3954 3.1904 19.3527 3.20521L18.1917 3.59221C17.9361 3.67771 17.7039 3.82139 17.5134 4.01193C17.3229 4.20247 17.1792 4.43467 17.0937 4.69021L16.7067 5.85121C16.6919 5.89392 16.6641 5.93095 16.6273 5.95717C16.5905 5.98338 16.5464 5.99746 16.5012 5.99746C16.456 5.99746 16.4119 5.98338 16.3751 5.95717C16.3382 5.93095 16.3105 5.89392 16.2957 5.85121L15.9087 4.69021C15.8232 4.43467 15.6795 4.20247 15.489 4.01193C15.2984 3.82139 15.0662 3.67771 14.8107 3.59221L13.6512 3.20521C13.6085 3.1904 13.5714 3.16265 13.5452 3.12582C13.519 3.08899 13.5049 3.04491 13.5049 2.99971C13.5049 2.9545 13.519 2.91042 13.5452 2.87359C13.5714 2.83676 13.6085 2.80901 13.6512 2.79421L14.8122 2.40721C15.3312 2.23471 15.7377 1.82821 15.9102 1.30921L16.2957 0.148207Z",fill:"#5928ed"})})),a("defs",{children:a("clipPath",n({id:"clip0_6004_60631"},{children:a("rect",{width:"24",height:"24",fill:"white"})}))})]}))})),a("div",n({style:{display:"inline-flex",alignItems:"flex-start",paddingLeft:"1rem",paddingRight:"1rem",paddingBottom:"1rem",width:"100%",maxWidth:"100%",fontSize:"1rem",lineHeight:"1.75rem",marginBottom:"1rem",borderRadius:"0.5rem",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"#333"}},{children:a("span",{children:en})}))]}))]}))]})),r("div",n({style:{width:"95%",height:"content-fit",backgroundColor:"#fbfaff",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"end",position:"relative"}},{children:[a("div",n({style:{visibility:cn?"visible":"hidden",position:"absolute",top:"-3rem",zIndex:0,pointerEvents:"none"}},{children:a("button",n({onClick:Kn,style:{borderRadius:"9999px",padding:0,backgroundColor:"#fff",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",border:"1px solid #d1d5db",pointerEvents:"auto",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1,height:"2.25rem",width:"2.25rem",margin:"0.3rem"}},{children:a("svg",n({fill:"#000000",width:"16px",height:"16px",viewBox:"0 0 24 24",id:"down","data-name":"Flat Color",xmlns:"http://www.w3.org/2000/svg"},{children:a("path",{id:"primary",d:"M19.71,13.29a1,1,0,0,0-1.42,0L13,18.59V3a1,1,0,0,0-2,0V18.59l-5.29-5.3a1,1,0,0,0-1.42,1.42l7,7a1,1,0,0,0,1.42,0l7-7A1,1,0,0,0,19.71,13.29Z"})}))}))})),Fn&&r(A,n({sx:{display:"flex",alignItems:"center",gap:"8px",paddingBottom:"8px",paddingLeft:"4px",fontFamily:'"Plus Jakarta Sans", sans-serif',fontSize:"0.875rem",color:"#6b7280",width:"100%"}},{children:[a("span",{children:"Instant Learning AI is thinking"}),a(A,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Mn," 1.4s infinite ease-in-out both"),animationDelay:"-0.32s"}}),a(A,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Mn," 1.4s infinite ease-in-out both"),animationDelay:"-0.16s"}}),a(A,{sx:{width:"5px",height:"5px",bgcolor:"#6b7280",borderRadius:"50%",animation:"".concat(Mn," 1.4s infinite ease-in-out both")}})]})),a(w,n({title:pe?"Please wait for the validation to be completed.":""},{children:a("div",n({style:{width:"100%",backgroundColor:"#fff",display:"flex",alignItems:"end",gap:"0.5rem",border:"1px solid #E5E7EB",borderRadius:"8px",cursor:Sn?"not-allowed":"default"}},{children:r("div",n({style:{width:"100%",display:"flex"}},{children:[a("textarea",{ref:Le,placeholder:"Tell me more about this learning...",value:Ie||"",onChange:function(e){return Fe(e.target.value)},onFocus:function(){return sn(!0)},onBlur:function(){return sn(!1)},onKeyDown:function(e){return Vn(e)},disabled:Sn,style:{flexGrow:1,padding:"0.5rem",borderRadius:"0.5rem",border:"none",fontSize:"1rem",lineHeight:"1.5rem",resize:"none",backgroundColor:"#fff",color:"inherit",minHeight:rn?"120px":"50px",height:rn?"120px":"50px",maxHeight:"120px",overflowY:"auto",fontFamily:"inherit",outline:"none",transition:"min-height 0.3s ease, background-color 0.3s ease",boxSizing:"border-box",cursor:Sn?"not-allowed":"text"}}),r("span",n({style:{display:"flex",flexDirection:"column",justifyContent:"end",alignItems:"end"}},{children:[" ",a("button",n({onClick:function(e){Vn(new KeyboardEvent("keydown",{key:"Enter"}))},disabled:Ln,style:{padding:"0.5rem 0.75rem",borderRadius:"0.375rem",border:"none",backgroundColor:"white",color:Ln?"#d1d5db":"#5928ed",fontWeight:"bold",fontSize:"1rem",cursor:Ln?"not-allowed":"pointer",transition:"background-color 0.3s, color 0.3s",height:"50px"}},{children:a(M,{})}))]}))]}))}))}))]})),r("div",n({style:{width:"95%",display:"flex",gap:"0.25rem",flexDirection:"row"}},{children:[a(w,n({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("span",n({style:{width:"50%"}},{children:a(x,{amplitude:1,variant:"speaker",isActive:!1,onClick:function(){return null},disabled:!1})}))})),a(w,n({title:"Coming soon",placement:"top",arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"0.875rem",padding:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}}}},{children:a("span",n({style:{width:"50%"}},{children:a(x,{amplitude:1,variant:"microphone",isActive:!1,onClick:function(){return null},disabled:!1})}))}))]}))]}))};export{N as default};
|
|
2
2
|
//# sourceMappingURL=ChatComponent.js.map
|