@e-llm-studio/instant-learning 1.3.0-alpha.27 → 1.3.0-alpha.270
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 +557 -6
- 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/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/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/ChatComponent.module.css.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/ConflictingReasoningCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/GapExplanationAccordion.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.styles.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/MarkdownRenderer.module.css.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/ChatFeedback.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/VariantLoadingOverlay.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/ButtonCognitiveIcon.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/SkeletonLoader/SkeletonLoader.module.css.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js.map +1 -0
- 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/ConfigSection/ConfigSection.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/ScopeSection/ScopeSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.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-OTJ/helpers/message-rendering-utils.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/LearningManagementWrapper.js.map +1 -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/marketplaceTheme.js +2 -0
- package/dist/cjs/features/IL-marketplace/marketplaceTheme.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/AuditLog/AuditLog.module.css.js +2 -0
- package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.module.css.js.map +1 -0
- package/dist/cjs/features/LearningManagement/AuditLog/ChangeLogDiff.js +1 -1
- package/dist/cjs/features/LearningManagement/HumanChanges/HumanChange.js +2 -0
- package/dist/cjs/features/LearningManagement/HumanChanges/HumanChange.js.map +1 -0
- package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagementTest.js +2 -0
- package/dist/cjs/features/LearningManagement/LearningManagementTest.js.map +1 -0
- package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/AccessManagementPanel.js +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.js +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/AccessPanel.module.css.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/ApprovalLearningDialog.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/DraftsAccordion.js +2 -0
- package/dist/cjs/features/LearningManagement/RuleContent/DraftsAccordion.js.map +1 -0
- 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/RenameScopeModal.js +1 -1
- 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/RuleTierList.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/StationsContent/StationsContent.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/CreateRuleSetLegacyModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/EmptyLearningState.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/components/StationOnboarding/DayToggleSelector.js +2 -0
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/DayToggleSelector.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationOnboardModal.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/useEnvStore.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/CardSkeleton.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/ConfirmationModal.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/CustomTooltip.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/DraftsAccordion.module.css.js +2 -0
- package/dist/cjs/features/LearningManagement/styles/DraftsAccordion.module.css.js.map +1 -0
- package/dist/cjs/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/ErrorStateDisplay.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/InputField.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/InstantLearningModal.module.css.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/OnboardingLoader.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/OverrideTimeline.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/RuleHeader.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/RuleTierList.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/ScopeTree.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/Sidebar.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/StationAutocomplete.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/StationOnboardModal.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/StationsContent.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/TemplateCard.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/TierCard.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/ToastContent.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/ToolTip.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/VariantCard.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/VariantList.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/common.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/skeleton.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/utils/learningFlow.js +2 -0
- package/dist/cjs/features/LearningManagement/utils/learningFlow.js.map +1 -0
- package/dist/cjs/features/LearningManagement/utils/learningMetadataUtils.js +2 -0
- package/dist/cjs/features/LearningManagement/utils/learningMetadataUtils.js.map +1 -0
- package/dist/cjs/features/LearningManagement/utils/saveDraft.js +2 -0
- package/dist/cjs/features/LearningManagement/utils/saveDraft.js.map +1 -0
- package/dist/cjs/features/LearningManagement/utils/treeUtils.js +1 -1
- 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/index.js +1 -1
- package/dist/cjs/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/cjs/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.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/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/ChatComponent.module.css.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/ConflictingReasoningCard.js +1 -1
- package/dist/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/features/IL-OTJ/_components/GapExplanationAccordion.js +1 -1
- package/dist/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/features/IL-OTJ/_components/ILPopup.styles.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/MarkdownRenderer.module.css.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/ChatFeedback.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.js +1 -1
- package/dist/features/IL-OTJ/_components/VariantLoadingOverlay.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/ButtonCognitiveIcon.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/SkeletonLoader/SkeletonLoader.module.css.js +1 -1
- package/dist/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js +2 -0
- package/dist/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js.map +1 -0
- 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/ConfigSection/ConfigSection.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/ScopeSection/ScopeSection.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.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-OTJ/helpers/message-rendering-utils.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/LearningManagementWrapper.js.map +1 -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/marketplaceTheme.js +2 -0
- package/dist/features/IL-marketplace/marketplaceTheme.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/AuditLog/AuditLog.module.css.js +2 -0
- package/dist/features/LearningManagement/AuditLog/AuditLog.module.css.js.map +1 -0
- package/dist/features/LearningManagement/AuditLog/ChangeLogDiff.js +1 -1
- package/dist/features/LearningManagement/HumanChanges/HumanChange.js +2 -0
- package/dist/features/LearningManagement/HumanChanges/HumanChange.js.map +1 -0
- package/dist/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/features/LearningManagement/LearningManagementTest.js +2 -0
- package/dist/features/LearningManagement/LearningManagementTest.js.map +1 -0
- package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/features/LearningManagement/RBAC/AccessManagementPanel.js +1 -1
- package/dist/features/LearningManagement/RBAC/AccessPanel.js +1 -1
- package/dist/features/LearningManagement/RBAC/AccessPanel.module.css.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/ApprovalLearningDialog.js +1 -1
- package/dist/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/features/LearningManagement/RuleContent/DraftsAccordion.js +2 -0
- package/dist/features/LearningManagement/RuleContent/DraftsAccordion.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/InstructionPromptBlock.js +2 -0
- package/dist/features/LearningManagement/RuleContent/InstructionPromptBlock.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/RenameScopeModal.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleTierList.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/StationsContent/StationsContent.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/CreateRuleSetLegacyModal.js +1 -1
- package/dist/features/LearningManagement/components/EmptyLearningState.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/components/StationOnboarding/DayToggleSelector.js +2 -0
- package/dist/features/LearningManagement/components/StationOnboarding/DayToggleSelector.js.map +1 -0
- package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.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/useEnvStore.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/CardSkeleton.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/ConfirmationModal.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/CustomTooltip.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/DraftsAccordion.module.css.js +2 -0
- package/dist/features/LearningManagement/styles/DraftsAccordion.module.css.js.map +1 -0
- package/dist/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/ErrorStateDisplay.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/InputField.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/InstantLearningModal.module.css.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/OnboardingLoader.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/OverrideTimeline.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/RuleHeader.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/RuleTierList.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/ScopeTree.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/Sidebar.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/StationAutocomplete.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/StationOnboardModal.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/StationsContent.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/TemplateCard.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/TierCard.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/ToastContent.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/ToolTip.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/VariantCard.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/VariantList.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/common.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/skeleton.module.css.js +1 -1
- package/dist/features/LearningManagement/utils/learningFlow.js +2 -0
- package/dist/features/LearningManagement/utils/learningFlow.js.map +1 -0
- package/dist/features/LearningManagement/utils/learningMetadataUtils.js +2 -0
- package/dist/features/LearningManagement/utils/learningMetadataUtils.js.map +1 -0
- package/dist/features/LearningManagement/utils/saveDraft.js +2 -0
- package/dist/features/LearningManagement/utils/saveDraft.js.map +1 -0
- package/dist/features/LearningManagement/utils/treeUtils.js +1 -1
- 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/index.js +1 -1
- package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.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 +174 -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/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 +16 -2
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts +55 -18
- 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 +16 -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/ChatComponents/NormalChat.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/CognitiveDecisioningCard.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/GapExplanationAccordion.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts +8 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.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/ClickableChatComponents.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/MessageRendering/RuleValidationCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.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/ButtonCognitiveIcon.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.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/cognitiveDecisioningThemeStyles.d.ts +98 -0
- package/dist/types/src/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.d.ts.map +1 -0
- 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 +2 -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/RuleComparison/AgentComposerRuleComparison.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.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-OTJ/helpers/message-rendering-utils.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 +68 -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 +94 -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 +96 -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 +10 -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 +35 -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 +33 -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/marketplaceTheme.d.ts +99 -0
- package/dist/types/src/features/IL-marketplace/marketplaceTheme.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 +151 -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 +443 -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/HumanChanges/HumanChange.d.ts +10 -0
- package/dist/types/src/features/LearningManagement/HumanChanges/HumanChange.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +40 -2
- 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 +16 -2
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RBAC/AccessManagementPanel.d.ts +0 -1
- package/dist/types/src/features/LearningManagement/RBAC/AccessManagementPanel.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts +0 -2
- package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/AddScopeApprovalSearchComponent.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/ApprovalLearningDialog.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/DraftsAccordion.d.ts +18 -0
- package/dist/types/src/features/LearningManagement/RuleContent/DraftsAccordion.d.ts.map +1 -0
- 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/RenameScopeModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts +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 +4 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleTierList.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleTierList.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/TierCard.d.ts +1 -0
- 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/StationsContent/StationsContent.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/StationsContent/StationsContent.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts +12 -0
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +62 -6
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts +6 -0
- package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts +13 -0
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts +71 -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 +11 -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 +4 -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/components/StationOnboarding/DayToggleSelector.d.ts +13 -0
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/DayToggleSelector.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.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 +11 -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 +9 -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 +225 -9
- package/dist/types/src/features/LearningManagement/store/useLMSConfigStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts +17 -0
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/types.d.ts +73 -8
- package/dist/types/src/features/LearningManagement/types.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/utils/learningFlow.d.ts +30 -0
- package/dist/types/src/features/LearningManagement/utils/learningFlow.d.ts.map +1 -0
- 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/features/LearningManagement/utils/saveDraft.d.ts +11 -0
- package/dist/types/src/features/LearningManagement/utils/saveDraft.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/utils/treeUtils.d.ts +2 -1
- package/dist/types/src/features/LearningManagement/utils/treeUtils.d.ts.map +1 -1
- 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/index.d.ts +51 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/Category/CategoryTeachMeRenderer.d.ts +1 -0
- package/dist/types/src/plugins/ValueTypes/Category/CategoryTeachMeRenderer.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/Default/DefaultTeachMeRenderer.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.d.ts +1 -0
- package/dist/types/src/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.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 +42 -17
- 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/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/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/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/styles/CreateLearningSetModal.module.css.js +0 -2
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as r,__assign as t}from"tslib";import{jsx as i}from"react/jsx-runtime";var o=function(o){var e=o.size,n=void 0===e?12:e,s=r(o,["size"]);return i("svg",t({width:n,height:n,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{children:i("path",{d:"M5.99998 10.7374H11.25M0.75 10.7374H1.72682C2.01217 10.7374 2.15485 10.7374 2.28912 10.7052C2.40816 10.6766 2.52196 10.6295 2.62635 10.5655C2.74408 10.4934 2.84497 10.3925 3.04675 10.1907L10.375 2.86244C10.8583 2.37919 10.8583 1.59569 10.375 1.11244C9.89177 0.629188 9.10826 0.629188 8.62501 1.11244L1.29674 8.4407C1.09496 8.64248 0.994069 8.74337 0.92192 8.8611C0.857953 8.96549 0.810815 9.07929 0.782235 9.19833C0.75 9.3326 0.75 9.47528 0.75 9.76064V10.7374Z",stroke:"#64748B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))};export{o as EditPencilIcon};
|
|
2
|
+
//# sourceMappingURL=EditPencilIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditPencilIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"../../../../../node_modules/style-inject/dist/style-inject.es.js";var o={skeleton:"SkeletonLoader-module_skeleton__CznvH","skeleton-loading":"SkeletonLoader-module_skeleton-loading__MVHfe","skeleton-text":"SkeletonLoader-module_skeleton-text__V5j2O","skeleton-title":"SkeletonLoader-module_skeleton-title__goxHt","skeleton-avatar":"SkeletonLoader-module_skeleton-avatar__Ihuh7","skeleton-image":"SkeletonLoader-module_skeleton-image__ddADp"};e(".SkeletonLoader-module_skeleton__CznvH{animation:SkeletonLoader-module_skeleton-loading__MVHfe 1.4s ease infinite;background:linear-gradient(90deg,#e0e0e0 25
|
|
1
|
+
import e from"../../../../../node_modules/style-inject/dist/style-inject.es.js";var o={skeleton:"SkeletonLoader-module_skeleton__CznvH","skeleton-loading":"SkeletonLoader-module_skeleton-loading__MVHfe","skeleton-text":"SkeletonLoader-module_skeleton-text__V5j2O","skeleton-title":"SkeletonLoader-module_skeleton-title__goxHt","skeleton-avatar":"SkeletonLoader-module_skeleton-avatar__Ihuh7","skeleton-image":"SkeletonLoader-module_skeleton-image__ddADp"};e(".SkeletonLoader-module_skeleton__CznvH{animation:SkeletonLoader-module_skeleton-loading__MVHfe 1.4s ease infinite;background:linear-gradient(90deg,var(--il-color-e0e0e0,#e0e0e0) 25%,var(--il-color-f0f0f0,#f0f0f0) 37%,var(--il-color-e0e0e0,#e0e0e0) 63%);background-size:400% 100%;border-radius:4px;display:inline-flex;margin:0}.SkeletonLoader-module_skeleton-text__V5j2O{height:14px;width:100%}.SkeletonLoader-module_skeleton-title__goxHt{height:20px;width:60%}.SkeletonLoader-module_skeleton-avatar__Ihuh7{border-radius:50%;height:48px;width:48px}.SkeletonLoader-module_skeleton-image__ddADp{border-radius:8px;height:180px;width:100%}@keyframes SkeletonLoader-module_skeleton-loading__MVHfe{0%{background-position:100% 0}to{background-position:0 0}}");export{o as default};
|
|
2
2
|
//# sourceMappingURL=SkeletonLoader.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as n,jsx as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as n,jsx as r}from"react/jsx-runtime";import{forwardRef as i,useRef as t,useCallback as o,useEffect as a}from"react";import l from"../../_svg/CognitiveDecisioning.js";import{AlertTriangle as c,ChevronUpIcon as d,ChevronDownIcon as s}from"lucide-react";import p from"../../TooltipComponent.js";import{ConflictReasoningCard as u}from"../../ConflictingReasoningCard.js";import{useLearningTemplateStore as g}from"../../../../LearningManagement/store/useLearningTemplateStore.js";var f=i(function(i,f){var x=i.rows,v=void 0===x?1:x,m=i.placeholder,h=i.value,b=i.onChange,y=i.onFocus,w=i.isHighlighted,C=void 0!==w&&w,k=i.customClass,S=i.showNumber,z=i.numberIndex,I=i.isReadOnly,T=void 0!==I&&I,D=i.isOpen,R=void 0!==D&&D,j=i.onToggle,E=i.showCognitiveIcon,F=void 0!==E&&E,L=i.cognitiveIcon,M=i.tooltipDescription,O=i.isConflicting,H=i.conflictMsg,N=i.conflictingReasoning,V=i.decisionStrength,W=i.conflictingGap,A=i.errorMessage,G=i.inputReadOnly,Y=void 0!==G&&G,_=i.citations,q=void 0===_?[]:_,B=function(){return L||r(l,{})},J=t(null),K=o(function(e){e.style.height="auto",e.style.height="".concat(e.scrollHeight,"px")},[]);a(function(){var e=function(){J.current&&K(J.current)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[K]);var P=o(function(e){J.current=e,f&&("function"==typeof f?f(e):f.current=e),e&&K(e)},[f,K]),Q=g(function(e){return e.backwardCompatibility})?"37, 99, 235":"89, 37, 220";return n("div",e({style:{width:"100%"}},{children:[n("div",e({style:{display:"flex",flexDirection:"column",width:"100%",border:"1px solid ".concat(O||A?"var(--il-danger, #ef4444)":C?"var(--il-primary, #5925DC)":"var(--il-border, #ccc)"),borderRadius:"0.5rem",backgroundColor:T?"var(--il-surface-alt, #f9fafb)":"var(--il-input-bg, #ffffff)",color:"var(--il-input-fg, #101828)",opacity:T?.8:1,cursor:T?"not-allowed":"text",pointerEvents:"auto",transition:"all 0.3s ease-in-out",overflow:"hidden",boxShadow:O&&C?"0 0 20px 3px rgba(239, 68, 68, 0.45)":C?"\n 0 0 12px 3px rgba(".concat(Q,", 0.3),\n -6px 0 10px rgba(").concat(Q,", 0.2),\n 6px 0 10px rgba(").concat(Q,", 0.2)\n "):"none"},onMouseEnter:function(e){C||O||T||(e.currentTarget.style.border="1px solid var(--il-primary, #5925DC)"),T&&(e.currentTarget.style.cursor="not-allowed")},onMouseLeave:function(e){C||O||T||(e.currentTarget.style.border="1px solid var(--il-border, #ccc)")}},{children:[r("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:O&&H&&r("div",e({style:{padding:"12px 12px 0 12px"}},{children:n("div",e({style:{display:"inline-flex",alignItems:"center",gap:"6px",backgroundColor:"#FFE9E980",padding:"4px 10px",borderRadius:"16px",color:"var(--il-danger, #b91c1c)",fontSize:"12px",fontWeight:500}},{children:[r(c,{size:14,strokeWidth:2}),H]}))}))})),n("div",e({style:{display:"flex",alignItems:"flex-start"}},{children:[S&&void 0!==z&&n("span",e({style:{fontSize:"14px",padding:"12px 0",width:"40px",textAlign:"center",color:"var(--il-muted, #666)"}},{children:[z,"."]})),r("textarea",{ref:P,rows:v,placeholder:m,className:"textarea ".concat(k),value:h,onChange:b,onFocus:y,readOnly:Y,style:{border:"none",background:"transparent",flex:1,padding:"12px 12px 12px 12px",fontFamily:"inherit",fontSize:"14px",color:"var(--il-input-fg, #101828)",resize:"both",width:"100%",boxSizing:"border-box",maxHeight:"200px",overflowY:"auto",outline:"none",display:"block",margin:"0 auto",alignSelf:"center",cursor:Y?"default":"text"},onInput:function(e){return K(e.target)}}),O&&N&&r(p,e({description:"View Conflict Details"},{children:n("button",e({onClick:function(e){e.preventDefault(),null==j||j()},style:{display:"flex",alignItems:"center",gap:"4px",padding:"4px 8px",border:"none",backgroundColor:"transparent",borderRadius:"4px",margin:"8px",cursor:"pointer",flexShrink:0}},{children:[B(),r(R?d:s,{size:14})]}))})),F&&!O&&r(p,e({description:null!=M?M:""},{children:n("button",e({onClick:function(e){e.preventDefault(),null==j||j()},style:{display:"flex",alignItems:"center",gap:"4px",padding:"4px 8px",border:"none",backgroundColor:"transparent",borderRadius:"4px",margin:"8px",cursor:"pointer",flexShrink:0}},{children:[B(),r(R?d:s,{size:14})]}))}))]}))]})),O&&R&&r("div",e({style:{marginTop:"8px"}},{children:r(u,{isVisible:!0,decisionStrength:V,reasoning:N,gap:W,citations:q})})),A&&r("div",e({style:{color:"var(--il-danger, #ef4444)",fontSize:"12px",marginTop:"4px"}},{children:A}))]}))});f.displayName="Textarea";export{f as Textarea};
|
|
2
2
|
//# sourceMappingURL=Textarea.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as r}from"tslib";var o={container:{border:"1px solid var(--il-border, #e3e6ea)",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-foreground, #19213d)",boxShadow:"none"},header:{borderBottom:"1px solid var(--il-border, #e3e6ea)",backgroundColor:"var(--il-secondary-bg, #f7f8fa)",color:"var(--il-foreground, #19213d)"},headerTitleText:{color:"var(--il-foreground, #19213d)"},badge:{border:"1px solid var(--il-primary, #2563eb)",backgroundColor:"color-mix(in srgb, var(--il-primary, #2563eb) 12%, var(--il-surface, #ffffff))",color:"var(--il-foreground, #19213d)"},sectionItem:{borderBottom:"1px solid var(--il-border, #e3e6ea)",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-foreground, #19213d)"},sectionButton:{background:"var(--il-surface, #ffffff)",color:"var(--il-foreground, #19213d)"},sectionHeaderGroup:{color:"var(--il-foreground, #19213d)"},sectionTitle:{color:"var(--il-foreground, #19213d)"},sectionSubtitle:{color:"var(--il-muted, #667085)"},textContent:{color:"var(--il-foreground, #19213d)"},pill:{gap:"2px",border:"none",backgroundColor:"transparent"}},e=function(e){return void 0===e&&(e={}),Object.fromEntries(Object.entries(o).map(function(o){var a=o[0],l=o[1];return[a,r(r({},l),e[a])]}))};export{o as cognitiveDecisioningThemeStyles,e as getCognitiveDecisioningThemeStyles};
|
|
2
|
+
//# sourceMappingURL=cognitiveDecisioningThemeStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cognitiveDecisioningThemeStyles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useRef as n,useEffect as e}from"react";var t="bpa-pending-edit-highlight-styles",o="bpa-pending-edit--pulse",r="bpa-pending-edit",i="\n@keyframes bpa-pending-edit-pulse {\n 0% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.40); outline-color: rgba(194, 65, 12, 0.95); }\n 50% { box-shadow: 0 0 0 8px rgba(194, 65, 12, 0.00); outline-color: rgba(194, 65, 12, 0.35); }\n 100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.40); outline-color: rgba(194, 65, 12, 0.95); }\n}\n.".concat(r," {\n /* outline (not border) so the ring never shifts the accordion's layout */\n outline: 2px solid rgba(194, 65, 12, 0.55);\n outline-offset: 2px;\n border-radius: 10px;\n transition: box-shadow 200ms ease, outline-color 200ms ease;\n}\n.").concat(o," {\n animation: bpa-pending-edit-pulse 1s ease-in-out 3;\n}\n@media (prefers-reduced-motion: reduce) {\n .").concat(o," { animation: none; box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.15); }\n}\n");function a(a){var u=n(0),c=n(null),d=n(null),l=function(){var n;d.current&&(clearTimeout(d.current),d.current=null),null===(n=c.current)||void 0===n||n.classList.remove(o,r),c.current=null},s=function(n){!function(){if("undefined"!=typeof document&&!document.getElementById(t)){var n=document.createElement("style");n.id=t,n.textContent=i,document.head.appendChild(n)}}(),requestAnimationFrame(function(){var e=document.querySelector('[data-edit-id="'.concat(n,'"]'));e&&(l(),c.current=e,e.classList.add(r,o),e.scrollIntoView({behavior:"smooth",block:"center"}),d.current=setTimeout(function(){e.classList.remove(o),d.current=null},3e3))})};e(function(){if(a)return s(a),l;l()},[a,u.current]);return{pulsePendingEdit:function(n){var e=n||a;e&&(u.current+=1,s(e))}}}export{a as default,a as usePendingEditHighlight};
|
|
2
|
+
//# sourceMappingURL=usePendingEditHighlight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePendingEditHighlight.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t,__spreadArray as n}from"tslib";import{useState as i,useRef as e,useEffect as r}from"react";var o=function(t){return!!t&&/[a-z0-9À-]/i.test(t)},a=function(t){return t.filter(function(t){return o(t.text)}).map(function(t,n){return"".concat(n+1,") ").concat(t.text.trim())}).join(" ")},l=function(t){return t.filter(function(t){return o(t.text)}).map(function(t){return t.text.trim()}).join("\n")},u=function(t,n){var i=new Set(n.map(function(t){return t.id})),e=new Set(t.map(function(t){return t.id})),r=t.filter(function(t){return!i.has(t.id)});return{added:n.filter(function(t){return!e.has(t.id)&&o(t.text)}),removed:r,edited:n.filter(function(n){var i=t.find(function(t){return t.id===n.id});return!!i&&i.text.trim()!==n.text.trim()})}},d=function(t){return t.removed.length>0&&0===t.added.length&&0===t.edited.length?"remove":"update"},c=function(t,n){var i="I have updated the instruction prompt through RHS";if(0===t.length)return i;var e=t.filter(function(t){return"remove"===t.action}),r=t.filter(function(t){return"update"===t.action}),o=[];e.length>0&&o.push("remove ".concat(e.map(function(t){return"".concat(t.label," - ").concat(t.value)}).join(", "))),r.length>0&&o.push("update details ".concat(r.map(function(t){return"".concat(t.label," - ").concat(t.value)}).join(", ")));var a=o.join("; ");return n?"".concat(a,". Also, ").concat(i.toLowerCase()):a};function f(f,v,p){var s=i(null),m=s[0],h=s[1],g=i(null),A=g[0],w=g[1],C=e(null==f?void 0:f.isAiStreaming);r(function(){C.current&&!(null==f?void 0:f.isAiStreaming)&&A&&w(null),C.current=null==f?void 0:f.isAiStreaming},[null==f?void 0:f.isAiStreaming,A]);var y=function(){var t,n;h(null),null===(t=null==f?void 0:f.setActiveEditId)||void 0===t||t.call(f,null),null===(n=null==f?void 0:f.setPendingEditId)||void 0===n||n.call(f,null)};return{variantEdit:m,pendingVariantId:A,handleStartVariantEdit:function(t,n,i,e){var r,o,a,l="variant-".concat(n,"-").concat(i);if((null==f?void 0:f.activeEditId)&&f.activeEditId!==l)null===(r=null==f?void 0:f.setPendingEditId)||void 0===r||r.call(f,f.activeEditId);else{var u=v(t);h({id:l,tierKey:n,variantIndex:i,label:e,original:u,draft:v(t)}),null===(o=null==f?void 0:f.setActiveEditId)||void 0===o||o.call(f,l),null===(a=null==f?void 0:f.setPendingEditId)||void 0===a||a.call(f,null)}},handleCancelVariantEdit:y,patchVariantDraft:function(n){h(function(i){return i?t(t({},i),{draft:t(t({},i.draft),n)}):i})},editDraftCondition:function(n,i,e){h(function(r){var o;return r?t(t({},r),{draft:t(t({},r.draft),(o={},o[n]=r.draft[n].map(function(n){return n.id===i?t(t({},n),{text:e}):n}),o))}):r})},removeDraftCondition:function(n,i){h(function(e){var r;return e?t(t({},e),{draft:t(t({},e.draft),(r={},r[n]=e.draft[n].filter(function(t){return t.id!==i}),r))}):e})},addDraftCondition:function(i){h(function(e){var r;return e?t(t({},e),{draft:t(t({},e.draft),(r={},r[i]=n(n([],e.draft[i],!0),[{id:"draft-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),text:""}],!1),r))}):e})},handleSaveVariantEdit:function(){var t,n;if(m){var i=m.draft,e=m.original,r=m.id,v={},s=[];i.ruleDescription.trim()!==e.ruleDescription.trim()&&(s.push({action:"update",label:"Description",value:i.ruleDescription.trim()||"None"}),v.ruleDescription=i.ruleDescription);var g=i.instructionPrompt.trim()!==e.instructionPrompt.trim();g&&(v.instructionPrompt=i.instructionPrompt);var A=u(e.whenToApplyConditions,i.whenToApplyConditions),C=u(e.whenNotToApplyConditions,i.whenNotToApplyConditions),E=a(i.whenToApplyConditions),x=a(i.whenNotToApplyConditions),I=E!==a(e.whenToApplyConditions),T=x!==a(e.whenNotToApplyConditions),S=function(t){return t.filter(function(t){return o(t.text)}).map(function(t){return t.text.trim()}).join(", ")};if(I){var D=d(A);s.push({action:D,label:"When to Apply",value:"remove"===D?S(A.removed):E||"None"}),v.whenToApplyText=l(i.whenToApplyConditions)}if(T){D=d(C);s.push({action:D,label:"When Not to Apply",value:"remove"===D?S(C.removed):x||"None"}),v.whenNotToApplyText=l(i.whenNotToApplyConditions)}if(0!==s.length||g){if(Object.keys(v).length>0&&(null==p||p(v,m)),null==f?void 0:f.setSendMessageInChat){var N="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8));f.setSendMessageInChat("__SKELETON__:".concat(N,":").concat(c(s,g))),w(r)}h(null),null===(t=null==f?void 0:f.setActiveEditId)||void 0===t||t.call(f,null),null===(n=null==f?void 0:f.setPendingEditId)||void 0===n||n.call(f,null)}else y()}}}}export{c as buildEditMessage,l as conditionsToStoreText,a as conditionsToText,u as diffConditions,o as hasMeaningfulText,f as useVariantEditSession};
|
|
2
|
+
//# sourceMappingURL=useVariantEditSession.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVariantEditSession.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as n}from"tslib";import{jsxs as i,jsx as t,Fragment as e}from"react/jsx-runtime";import{
|
|
1
|
+
import{__assign as n}from"tslib";import{jsxs as i,jsx as t,Fragment as e}from"react/jsx-runtime";import{Trash2 as o,Check as r,X as c,Pencil as l,AlertTriangle as a,Loader2Icon as d,Plus as s}from"lucide-react";import{useState as u,useRef as f,useEffect as v,useCallback as m}from"react";import{Button as g}from"../../atoms/Button/Button.js";import{Textarea as p}from"../../atoms/Textarea/Textarea.js";import{InputDataReasoningCard as h}from"../../InputDataReasoningCard.js";import x from"../../TooltipComponent.js";import{ButtonCognitiveIcon as y}from"../../_svg/ButtonCognitiveIcon.js";import{useLearningTemplateStore as b}from"../../../../LearningManagement/store/useLearningTemplateStore.js";var C=function(n){return!!n&&/[a-z0-9À-]/i.test(n)},N=function(N){var w=N.idPrefix,S=N.items,_=N.onAdd,I=N.onRemove,E=N.onEdit,k=N.index,z=N.tierKey,A=N.readOnly,j=void 0!==A&&A,T=N.placeholder,D=void 0===T?"Enter your condition":T,R=N.addLabel,M=void 0===R?"Add Condition":R,O=N.showAddButton,B=void 0===O||O;N.isHighlighted;var H=N.highlightedIds;N.footer;var L=N.tooltipDescription,W=N.citations,K=void 0===W?[]:W,P=N.setSendMessageInChat,V=N.fieldName,F=N.isAiStreaming,G=void 0!==F&&F,U=N.activeEditId,q=N.setActiveEditId,J=N.pendingEditId;N.setPendingEditId;var Q=N.errorMessage,X=N.hideEditControls,Y=void 0!==X&&X,Z=N.parentEditing,$=void 0!==Z&&Z,nn=b(function(n){return n.backwardCompatibility}),tn=u({}),en=tn[0],on=tn[1],rn=u(null),cn=rn[0],ln=rn[1],an=u(null),dn=an[0],sn=an[1],un=u(null),fn=un[0],vn=un[1],mn=f(G),gn=f(new Map),pn=f(S);v(function(){mn.current&&!G&&null!==fn&&vn(null),mn.current=G},[G,fn]);v(function(){var i=pn.current,t=S.filter(function(n){return!i.find(function(i){return i.id===n.id})});if(Y)return pn.current=S,void(t.length>0&&ln(t[t.length-1].id));if(t.length>0){var e=t[t.length-1],o="".concat(w,"-").concat(z,"-").concat(k,"-").concat(e.id);e.text&&""!==e.text.trim()||(q&&q(o),on(function(i){var t;return n(n({},i),((t={})[e.id]="",t))}),ln(e.id))}pn.current=S},[S,z,k,q,w,Y]),v(function(){if(cn){var n=gn.current.get(cn);if(n){n.focus();var i=n.value.length;n.setSelectionRange(i,i)}ln(null)}},[cn,S]);var hn=m(function(n){n&&(n.style.height="auto",n.style.height="".concat(n.scrollHeight,"px"))},[]),xn=Object.values(en).some(function(n){return!n||""===n.trim()}),yn=S.some(function(n){var i,t,e=en[n.id];return void 0!==e&&e.trim()===(null!==(t=null===(i=n.text)||void 0===i?void 0:i.trim())&&void 0!==t?t:"")}),bn=S.filter(function(n){return n.text&&""!==n.text.trim()}),Cn=new Set(bn.map(function(n){return n.text.trim()})).size!==bn.length,Nn=Y?!$||G||Cn||S.some(function(n){return!C(n.text)}):xn||Cn||null!==U||G,wn=xn||Cn||G||yn;return i("div",n({className:"condition-wrapper"},{children:[S.map(function(d,s){var u,f,v,m,b,C,N,_;if(d.id===fn&&G)return null;var A="".concat(w,"-").concat(z,"-").concat(k,"-").concat(d.id),T=d.id in en,R=null!==U&&U!==A,M=(null==H?void 0:H.has(d.id))&&!G,O=!!d.conflict,B=(null===(u=d.conflict)||void 0===u?void 0:u.reason)||(O?"Conflicting":null),W=Array.isArray(null===(f=d.conflict)||void 0===f?void 0:f.conflicting_reasoning)?d.conflict.conflicting_reasoning.map(function(n){return"- ".concat(n)}).join("\n"):(null===(v=d.conflict)||void 0===v?void 0:v.conflicting_reasoning)||null,F=(null===(m=d.conflict)||void 0===m?void 0:m.decision_strength)||null,Q=Array.isArray(null===(b=d.conflict)||void 0===b?void 0:b.conflicting_gap)?d.conflict.conflicting_gap.map(function(n){return"- ".concat(n)}).join("\n"):(null===(C=d.conflict)||void 0===C?void 0:C.conflicting_gap)||null,X=!!d.reasoning,Z=dn===d.id,nn=Y?null!==(N=d.text)&&void 0!==N?N:"":T?null!==(_=en[d.id])&&void 0!==_?_:"":d.text,tn=Y?j||G||!$:j||G||!T;return i("div",n({className:"condition-row-container","data-edit-id":A,style:{marginBottom:X&&Z?"16px":"8px"}},{children:[i("div",n({className:"condition-item ".concat(O?"border-red-500":""," ").concat(T?"is-editing":""),style:{pointerEvents:"auto"}},{children:[t("div",n({className:"condition-left"},{children:t(p,{ref:function(n){n?(gn.current.set(d.id,n),hn(n)):gn.current.delete(d.id)},rows:1,placeholder:D,value:nn,onChange:function(i){Y?$&&E(z,k,d.id,i.target.value):T&&on(function(t){var e;return n(n({},t),((e={})[d.id]=i.target.value,e))})},showNumber:!0,numberIndex:s+1,isReadOnly:j||G,inputReadOnly:tn,isOpen:Z&&!T,onToggle:function(){return n=d.id,void sn(function(i){return i===n?null:n});var n},showCognitiveIcon:X&&!T&&!O,cognitiveIcon:t(y,{color:"var(--il-rhs-cognitive-icon, var(--il-foreground, #ffffff))"}),tooltipDescription:L,isConflicting:O,conflictMsg:B,conflictingReasoning:W,isHighlighted:M,decisionStrength:F,conflictingGap:Q,citations:K})})),!j&&Y&&$&&t("div",n({className:"action-buttons"},{children:t(x,n({description:"Delete this condition"},{children:t(g,{onClick:function(){return I(z,k,d.id)},className:"btn-icon btn-delete",icon:t(o,{size:18}),disabled:G})}))})),!j&&!Y&&t("div",n({className:"action-buttons"},{children:T?t("div",n({className:"action-buttons-inline"},{children:i(e,{children:[t(x,n({description:"Apply"},{children:t(g,n({onClick:function(){return function(i){var t,e,o,r=null!==(t=en[i.id])&&void 0!==t?t:"";if(r.trim()&&!S.some(function(n){return n.id!==i.id&&n.text.trim()===r.trim()})){var c=null!==(o=null===(e=i.text)||void 0===e?void 0:e.trim())&&void 0!==o?o:"";if(r.trim()===c)return on(function(t){var e=n({},t);return delete e[i.id],e}),void(q&&q(null));var l=!c;if(P){var a="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),d="string"==typeof V&&""!==V.trim()?V:"field",s=l?"Add a new ".concat(d," condition: ").concat(r):"Update existing ".concat(d," condition: ").concat(c," with a new condition: ").concat(r);vn(i.id),P("__SKELETON__:".concat(a,":").concat(s))}on(function(t){var e=n({},t);return delete e[i.id],e}),q&&q(null)}}(d)},disabled:wn,className:"btn-apply",style:{cursor:wn?"not-allowed":"pointer",opacity:wn?.5:1},icon:t(r,{size:20,strokeWidth:2.5})},{children:"Apply"}))})),t(x,n({description:"Cancel"},{children:t(g,{onClick:function(){return function(i){var t=""===i.text||void 0===i.text;on(function(t){var e=n({},t);return delete e[i.id],e}),q&&q(null),t&&I(z,k,i.id)}(d)},className:"btn-cancel-inline",icon:t(c,{size:20,strokeWidth:2.5})})}))]})})):i("div",n({className:"action-buttons"},{children:[t(x,n({description:R?"Save active edits first":"Edit this condition"},{children:t(g,{onClick:function(){return function(i){var t="".concat(w,"-").concat(z,"-").concat(k,"-").concat(i.id);U&&U!==t||(q&&q(t),on(function(t){var e;return n(n({},t),((e={})[i.id]=i.text,e))}),ln(i.id))}(d)},className:"btn-icon btn-edit",icon:t(l,{size:18}),disabled:G||R})})),t(x,n({description:R?"Save active edits first":"Delete this condition"},{children:t(g,{onClick:function(){return function(i){var t,e="".concat(w,"-").concat(z,"-").concat(k,"-").concat(i.id);if(U===e&&q&&q(null),on(function(t){var e=n({},t);return delete e[i.id],e}),null===(t=i.text)||void 0===t?void 0:t.trim()){if(P){var o="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),r="string"==typeof V&&""!==V.trim()?V:"field";vn(i.id),P("__SKELETON__:".concat(o,":Remove ").concat(r," ").concat(i.text))}}else I(z,k,i.id)}(d)},className:"btn-icon btn-delete",icon:t(o,{size:18}),disabled:G||R})}))]}))}))]})),J===A&&T&&i("div",n({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[t(a,{size:14,style:{color:"var(--il-warning, #C2410C)"}}),t("div",n({style:{color:"var(--il-warning, #C2410C)",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]})),X&&!O&&t("div",n({style:{maxHeight:Z?"1000px":"0",overflow:"hidden",transition:"all 0.3s ease-in-out",marginTop:Z?"1.5px":"0"}},{children:t(h,{isVisible:Z,citation:d.reasoning,citations:K,fieldName:"Condition ".concat(s+1),fieldValue:d.text})}))]}),d.id)}),null!==fn&&G&&i(e,{children:[t("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "}),i("div",n({style:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"4px 0 12px 12px",color:"var(--il-muted, #141414)",fontSize:"13px",fontWeight:500,fontStyle:"italic"}},{children:[t(d,{style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Checking the correctness of your updated condition..."]}))]}),0===S.length&&t("div",n({style:{display:"flex",alignItems:"center",color:"var(--il-muted, #bbb)",fontFamily:"Inter",fontWeight:400,fontSize:"14px",fontStyle:"italic",lineHeight:"130%",height:"40px",marginBottom:"8px"}},{children:"No items to show"})),Q&&t("div",n({style:{color:"var(--il-danger, #ef4444)",fontSize:"12px",marginTop:"4px"}},{children:Q})),B&&!j&&i("div",n({className:"condition-add ".concat(Nn?"disabled":""),onClick:function(){return!Nn&&_()},role:"button",style:n({opacity:Nn?.5:1,cursor:Nn?"not-allowed":"pointer"},nn?{}:{color:"var(--il-primary, #5925DC)"})},{children:[t(s,{size:20,className:"condition-add-icon"}),t("span",n({className:"condition-add-text"},{children:M}))]}))]}))};export{N as ConditionList,C as hasMeaningfulText};
|
|
2
2
|
//# sourceMappingURL=ConditionList.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as i,Fragment as r}from"react/jsx-runtime";import{ChevronDown as n}from"lucide-react";import{useState as l,useCallback as o}from"react";var a=function(a){var c=a.id,s=a.required,d=a.title,p=a.subtitle,m=a.children,u=a.openSections,f=a.setOpenSections;a.dividerRequired;var h=a.defaultOpen,v=void 0===h||h,x=a.collapsible,y=void 0!==x&&x,g=a.bordered,b=void 0!==g&&g,w=a.customStyles,I=a.readOnly,N=a.headerActions,S=l(v),C=S[0],O=S[1],R=void 0!==u&&void 0!==f&&u.has(c),j=!y||(R?u.has(c):C),k=o(function(){y&&(R?f(function(e){var t=new Set(e);return t.has(c)?t.delete(c):t.add(c),t}):O(function(e){return!e}))},[c,f,y,R]);return t("div",e({className:"section-wrapper",style:b?{border:"1px solid var(--il-border, #ccc)",padding:"8px 12px",borderRadius:"8px"}:{}},{children:[t("div",e({className:"section-header",onClick:k,role:y?"button":"presentation",style:{cursor:y?"pointer":"default",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"4px"}},{children:[t("div",e({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"}},{children:[t("div",e({className:"section-header-title ".concat(j?"active":""),style:{display:"flex",alignItems:"center",gap:"1.5px"}},{children:[s&&i("span",e({style:{color:"var(--il-danger, #8F2C23)",marginRight:"2px"}},{children:"*"})),i("span",e({style:{cursor:I?"not-allowed":"pointer"}},{children:d}))]})),t("div",e({style:{display:"flex",alignItems:"center",gap:"8px"},onClick:function(e){return e.stopPropagation()}},{children:[N,y&&i(n,{size:24,className:"section-chevron ".concat(j?"open":"")})]}))]})),p&&i("div",e({style:{fontFamily:"Inter",fontWeight:400,fontSize:"12px",lineHeight:"130%",color:"var(--il-muted, #64748B)",marginLeft:"0px"}},{children:p}))]})),j&&i(r,{children:i("div",e({className:"section-content",style:w},{children:m}))})]}))};export{a as SectionWrapper};
|
|
2
2
|
//# sourceMappingURL=SectionWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as i,__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import{SectionWrapper as d}from"../../molecules/Sections/SectionWrapper.js";import{ConditionList as n}from"../../molecules/Condition/ConditionList.js";var o=function(o){var s=o.conditions,r=o.onAdd,a=o.onRemove,l=o.onEdit,g=o.index,h=o.isHighlighted,c=o.highlightedIds,p=o.footer,E=o.tooltipDescription,I=o.citations,m=o.addLabel,f=o.title,v=o.subtitle;o.sendMessageInChat;var C=o.setSendMessageInChat,u=o.readOnly,A=o.isAiStreaming,b=o.errorMessage,x=o.activeEditId,M=o.setActiveEditId,S=o.pendingEditId,y=o.setPendingEditId,P=o.idPrefix,O=o.hideEditControls,L=o.parentEditing,j=i(o,["conditions","onAdd","onRemove","onEdit","index","isHighlighted","highlightedIds","footer","tooltipDescription","citations","addLabel","title","subtitle","sendMessageInChat","setSendMessageInChat","readOnly","isAiStreaming","errorMessage","activeEditId","setActiveEditId","pendingEditId","setPendingEditId","idPrefix","hideEditControls","parentEditing"]);return t(d,e({},j,{readOnly:u,title:f,subtitle:v,collapsible:!0,defaultOpen:!0},{children:t(n,{items:s,onAdd:r,onRemove:a,onEdit:l,index:g,tierKey:j.tierKey,readOnly:u,isHighlighted:h,highlightedIds:c,footer:p,tooltipDescription:E,citations:I,addLabel:m,setSendMessageInChat:C,fieldName:f,isAiStreaming:A,activeEditId:x,setActiveEditId:M,pendingEditId:S,setPendingEditId:y,idPrefix:P,errorMessage:b,hideEditControls:O,parentEditing:L})}))};export{o as ConditionSection};
|
|
2
2
|
//# sourceMappingURL=ConditionSection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as n,__assign as e}from"tslib";import{jsxs as i,jsx as t,Fragment as o}from"react/jsx-runtime";import{SectionWrapper as r}from"../../molecules/Sections/SectionWrapper.js";import{SeparationRow as a}from"../../molecules/SeperationRow/SeparationRow.js";import{Toggle as l}from"../../atoms/Toggle/Toggle.js";import{Pencil as c,Loader2Icon as
|
|
1
|
+
import{__rest as n,__assign as e}from"tslib";import{jsxs as i,jsx as t,Fragment as o}from"react/jsx-runtime";import{SectionWrapper as r}from"../../molecules/Sections/SectionWrapper.js";import{SeparationRow as a}from"../../molecules/SeperationRow/SeparationRow.js";import{Toggle as l}from"../../atoms/Toggle/Toggle.js";import{Pencil as c,Loader2Icon as d,Check as s,AlertTriangle as p}from"lucide-react";import{useState as u,useRef as f,useEffect as g}from"react";var m=function(m){var h=m.separationItems,b=void 0===h?[]:h,v=m.toggles,y=void 0===v?[]:v;m.onConfigChange;var x=m.highlights,S=void 0===x?{}:x,_=m.index,k=m.openSections,C=m.readOnly,I=void 0!==C&&C,E=m.setOpenSections,w=m.activeEditId,j=m.setActiveEditId,z=m.pendingEditId,T=m.setPendingEditId,O=m.isAiStreaming,A=m.setSendMessageInChat,D=m.id,N=n(m,["separationItems","toggles","onConfigChange","highlights","index","openSections","readOnly","setOpenSections","activeEditId","setActiveEditId","pendingEditId","setPendingEditId","isAiStreaming","setSendMessageInChat","id"]),R=D||"config-section-".concat(null!=_?_:0),W=w===R,B=!!w&&w!==R,P=u(null),M=P[0],H=P[1],K=u(null),L=K[0],U=K[1],q=u(!1),F=q[0],G=q[1],J=f(O),Q="\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n ";g(function(){J.current&&!O&&F&&G(!1),J.current=O},[O,F]);var V,X,Y=I||!W||F,Z=i("div",e({style:{display:"flex",alignItems:"center"}},{children:[!I&&!W&&!F&&t("button",e({title:B?"Save active edits first":"Edit Configuration",onClick:function(n){n.stopPropagation(),B?T&&T(null!=w?w:null):(H(b.map(function(n){return e({},n)})),U(y.map(function(n){return e({},n)})),j&&j(R),E&&k&&!k.has(R)&&E(function(n){var e=new Set(n);return e.add(R),e}))},style:e(e({},{display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 8px",border:"1px solid var(--il-border, #e5e7eb)",borderRadius:"8px",cursor:"pointer",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-muted, #64748B)"}),{opacity:B?.5:1,cursor:B?"not-allowed":"pointer",border:"none",background:"transparent"})},{children:t(c,{size:16})})),F&&O&&i(o,{children:[t("style",{children:Q}),t(d,{size:16,style:{animation:"spin 1s linear infinite",color:"var(--il-muted, #64748B)"}})]})]})),$=(V=M?M.filter(function(n,e){var i=b[e];return!i||n.enabled!==i.enabled||n.global_min_separation_seconds!==i.global_min_separation_seconds}):[],X=L?L.filter(function(n,e){var i=y[e];return!i||n.enabled!==i.enabled}):[],0===V.length&&0===X.length);return t("div",e({"data-edit-id":R},{children:i(r,e({},N,{id:R,collapsible:!0,defaultOpen:!1,openSections:k,setOpenSections:E,headerActions:Z},{children:[i("div",e({className:"config-content-grid",style:{opacity:Y&&!I?.6:1,transition:"opacity 0.2s"}},{children:[(M||b).map(function(n,i){return t(a,{label:"".concat(n.label," Separation"),isEnabled:n.enabled,duration:n.global_min_separation_seconds,onToggle:function(){return function(n){W&&!F&&H(function(i){return i?i.map(function(i){return i.key===n.key?e(e({},i),{enabled:!i.enabled}):i}):null})}(n)},onDurationChange:function(i){return function(n,i){W&&!F&&H(function(t){return t?t.map(function(t){return t.key===n.key?e(e({},t),{global_min_separation_seconds:i}):t}):null})}(n,i)},isHighlighted:S["config_".concat(n.key)],isDisabled:Y},n.key)}),(L||y).map(function(n,o){return t("div",e({className:"separation-row-container"},{children:i("div",e({className:"separation-header-row"},{children:[t("div",e({className:"separation-label"},{children:n.label})),t(l,{isEnabled:n.enabled,onToggle:function(){return function(n){W&&!F&&U(function(i){return i?i.map(function(i){return i.key===n.key?e(e({},i),{enabled:!i.enabled}):i}):null})}(n)},isDisabled:Y})]}))}),n.key)})]})),F&&O&&i(o,{children:[t("style",{children:Q}),i("div",e({style:{display:"flex",alignItems:"center",padding:"4px 0 12px 12px",color:"var(--il-muted, #141414)",fontSize:"13px",fontWeight:500,fontStyle:"italic",marginTop:"8px"}},{children:[t(d,{style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Checking the correctness of your Configuration..."]}))]}),W&&!F&&i("div",e({style:{display:"flex",flexDirection:"column",marginTop:"12px"}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[t("button",e({onClick:function(){H(null),U(null),j&&j(null)},style:{background:"none",border:"none",color:"var(--il-muted, #64748B)",fontSize:"14px",fontWeight:"500",cursor:"pointer",padding:"0"}},{children:"Discard Changes"})),i("button",e({onClick:function(){if(M&&L){var n=M.filter(function(n,e){var i=b[e];return!i||n.enabled!==i.enabled||n.global_min_separation_seconds!==i.global_min_separation_seconds}),e=L.filter(function(n,e){var i=y[e];return!i||n.enabled!==i.enabled});if(0===n.length&&0===e.length)return H(null),U(null),void(j&&j(null));if(A){var i="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),t=[];n.length>0&&t.push("Enable ".concat(n.map(function(n){return"".concat(n.label," (").concat(n.global_min_separation_seconds,"min)")}).join(", "))),e.length>0&&t.push("enable ".concat(e.map(function(n){return"".concat(n.label," (").concat(n.enabled,")")}).join(", ")));var o="__SKELETON__:".concat(i,":Update Configuration - ").concat(t.join("; "));A(o)}G(!0),H(null),U(null),j&&j(null)}else j&&j(null)},disabled:$,style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderRadius:"12px",border:"none",backgroundColor:"var(--il-primary, #2563EB)",color:"var(--il-primary-fg, #ffffff)",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",cursor:$?"not-allowed":"pointer",opacity:$?.5:1}},{children:[t(s,{size:18,strokeWidth:2.5,color:"#ffffff"}),"Save Changes"]}))]})),z===R&&i("div",e({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[t(p,{size:14,style:{color:"var(--il-warning,#c2410c)"}}),t("div",e({style:{color:"var(--il-warning,#c2410c)",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]}))]}))]}))}))};export{m as ConfigSection};
|
|
2
2
|
//# sourceMappingURL=ConfigSection.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as e,__assign as r}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{SectionWrapper as t}from"../../molecules/Sections/SectionWrapper.js";import{Dropdown as n}from"../../atoms/Dropdown/Dropdown.js";var l=function(l){var a=l.id,d=l.title,s=l.value,m=l.onChange,p=l.options,u=l.placeholder,h=l.required,c=l.readOnly,g=l.errorMessage,v=l.isHighlighted,f=l.isAiStreaming,y=l.schema,S=e(l,["id","title","value","onChange","options","placeholder","required","readOnly","errorMessage","isHighlighted","isAiStreaming","schema"]),x=p||(null==y?void 0:y.options)||(Array.isArray(null==y?void 0:y.enum)?y.enum.map(function(e){return{label:e,value:e}}):[]),A=c||f;return i(t,r({},S,{id:a,required:h,readOnly:A,title:d,customStyles:{margin:"0 0.2rem 0.2rem 0.2rem"}},{children:o("div",r({style:{width:"100%"},"data-edit-id":a},{children:[i(n,{value:s||"",onChange:function(e){A||m&&m(e.target.value)},options:x,placeholder:u,isHighlighted:v,readOnly:A}),g&&i("div",r({style:{color:"#ef4444",fontSize:"12px",marginTop:"4px"}},{children:g}))]}))}))};export{l as DropdownSection};
|
|
2
|
+
//# sourceMappingURL=DropdownSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as i}from"tslib";import{jsx as o,jsxs as
|
|
1
|
+
import{__rest as e,__assign as i}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{SectionWrapper as t}from"../../molecules/Sections/SectionWrapper.js";import n from"../../_svg/CognitiveDecisioning.js";import{ChevronUpIcon as l,ChevronDownIcon as s}from"lucide-react";import a from"../../TooltipComponent.js";var d=function(d){var p=d.id,c=d.title,g=void 0===c?"Scope":c,h=d.required,x=void 0!==h&&h,u=d.openSections,f=d.setOpenSections,v=d.scopeData,m=d.onScopeChange;d.stationOptions;var b=d.tierOptions,y=void 0===b?[]:b;d.stationLabel;var S=d.tierLabel,C=void 0===S?"Where should this rule apply?":S,O=d.highlights,w=void 0===O?{}:O,I=d.isOpen,k=d.onToggle,z=d.showCognitiveIcon,j=d.cognitiveIcon,D=d.tooltipDescription,L=d.errorMessage,M=d.stationErrorMessage,T=d.tierErrorMessage,E=e(d,["id","title","required","openSections","setOpenSections","scopeData","onScopeChange","stationOptions","tierOptions","stationLabel","tierLabel","highlights","isOpen","onToggle","showCognitiveIcon","cognitiveIcon","tooltipDescription","errorMessage","stationErrorMessage","tierErrorMessage"]);return o(t,i({id:p,title:g,required:x,openSections:u,setOpenSections:f},E,{children:r("div",i({className:"scope-content"},{children:[y.length>0&&r("div",i({className:"form-group"},{children:[r("div",i({style:{display:"flex",alignItems:"center",gap:"4px",marginBottom:"4px"}},{children:[o("span",i({style:{color:"#8F2C23",lineHeight:1}},{children:"*"})),o("label",i({className:(null==E?void 0:E.readOnly)?"readOnly":"form-label",style:{margin:0}},{children:C}))]})),r("div",i({style:{display:"flex",alignItems:"center",gap:"12px",flexWrap:"wrap"}},{children:[o("div",i({className:"checkbox-group",style:{display:"flex",gap:"16px"}},{children:y.map(function(e){var t,n,l=w["scope_".concat(e)],s="tier-".concat(p,"-").concat(e.replace(/\s+/g,"-").toLowerCase());return r("div",i({className:"checkbox-item",style:{display:"flex",alignItems:"center",gap:"6px",position:"relative"}},{children:[o("input",{type:"radio",name:"scope-tiers-".concat(p),id:s,checked:null===(t=v.tiers)||void 0===t?void 0:t.includes(e),onChange:function(){m("tiers",[e])},disabled:(null==E?void 0:E.readOnly)||!1,style:{position:"absolute",opacity:0,cursor:"pointer",width:"16px",height:"16px",zIndex:1}}),o("div",i({style:{width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease",boxShadow:l?"0 0 14px 4px rgba(37, 99, 235, 0.35)":"none",borderRadius:"50%"}},{children:(null===(n=v.tiers)||void 0===n?void 0:n.includes(e))?o("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:"5px solid var(--il-primary, #2563EB)",backgroundColor:"var(--il-surface, #ffffff)",boxSizing:"border-box"}}):o("div",{style:{width:"16px",height:"16px",border:"1px solid var(--il-border, #64748B)",borderRadius:"50%",backgroundColor:"var(--il-surface, #ffffff)",boxSizing:"border-box"}})})),o("label",i({style:{color:(null==E?void 0:E.readOnly)?"var(--il-disabled, #9CA3AF)":void 0,cursor:(null==E?void 0:E.readOnly)?"not-allowed":"pointer",margin:0,fontSize:"14px"},htmlFor:s},{children:e}))]}),s)})})),o("div",i({style:{width:"fit-content"}},{children:o(a,i({description:null!=D?D:""},{children:z&&r("button",i({onClick:function(e){e.preventDefault(),null==k||k()},style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px",padding:"2px 6px ",flexShrink:0,border:"none",backgroundColor:"transparent",borderRadius:"4px",cursor:"pointer",outline:"none",maxWidth:"fit-content",transition:"background-color 0.2s ease",marginTop:"6px",marginLeft:"6px"}},{children:[j||o(n,{}),o(I?l:s,{size:16})]}))}))}))]})),T&&o("div",i({style:{color:"#ef4444",fontSize:"12px",marginTop:"4px"}},{children:T}))]})),L&&!M&&!T&&o("div",i({style:{color:"#ef4444",fontSize:"12px",marginTop:"4px"}},{children:L}))]}))}))};export{d as ScopeSection};
|
|
2
2
|
//# sourceMappingURL=ScopeSection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as
|
|
1
|
+
import{__rest as e,__assign as i}from"tslib";import{jsx as t,jsxs as n,Fragment as r}from"react/jsx-runtime";import{SectionWrapper as l}from"../../molecules/Sections/SectionWrapper.js";import{Textarea as o}from"../../atoms/Textarea/Textarea.js";import{ButtonCognitiveIcon as a}from"../../_svg/ButtonCognitiveIcon.js";import{useState as d,useRef as s,useEffect as c}from"react";import{Check as p,X as g,Pencil as f,AlertTriangle as u,Loader2Icon as m}from"lucide-react";var h=function(h){var v=h.rows,y=h.value,x=h.errorMessage,I=h.onChange,C=h.placeholder,b=h.title,w=h.subtitle,E=h.isHighlighted,S=h.isOpen,k=h.readOnly,O=h.showCognitiveIcon,T=h.onToggle,j=h.tooltipDescription,A=h.enableInlineEdit,z=h.setSendMessageInChat,D=h.isAiStreaming,M=h.fieldName,R=h.id,W=h.activeEditId,_=h.setActiveEditId,N=h.pendingEditId;h.setPendingEditId;var B=e(h,["rows","value","errorMessage","onChange","placeholder","title","subtitle","isHighlighted","isOpen","readOnly","showCognitiveIcon","onToggle","tooltipDescription","enableInlineEdit","setSendMessageInChat","isAiStreaming","fieldName","id","activeEditId","setActiveEditId","pendingEditId","setPendingEditId"]),H=d(null),P=H[0],K=H[1],L=d(!1),U=L[0],q=L[1],F=s(D);c(function(){F.current&&!D&&U&&q(!1),F.current=D},[D,U]);var G=null!==P,J=!!W&&W!==R&&A,Q=(null==P?void 0:P.trim())||"",V=Q===((null==y?void 0:y.trim())||"")||null!==P&&""===Q,X=k||D||A&&!G,Y=t("div",i({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"}},{children:t("span",{children:b})})),Z={display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",border:"1px solid var(--il-border, #e5e7eb)",borderRadius:"8px",cursor:"pointer",width:"36px",height:"36px",backgroundColor:"var(--il-surface, #ffffff)"},$={cursor:V?"not-allowed":"pointer",opacity:V?.5:1};return n(l,i({},B,{readOnly:k,title:Y,subtitle:w,customStyles:{margin:"0 0.2rem 0.2rem 0.2rem"}},{children:[n("div",i({className:"textarea-wrapper",style:{display:"flex",alignItems:"flex-start",gap:"8px",width:"100%"},"data-edit-id":R},{children:[t("div",i({style:{flex:1,minWidth:0}},{children:t(o,{cognitiveIcon:t(a,{}),rows:v,placeholder:C,value:G?P:y,onChange:function(e){G?K(e.target.value):I&&I(e.target.value)},isHighlighted:E,isOpen:S,isReadOnly:k||D,inputReadOnly:X,onToggle:T,showCognitiveIcon:O,tooltipDescription:j,errorMessage:x})})),A&&!k&&t("div",i({style:{display:"flex",flexDirection:"row",gap:"8px",marginTop:"0px"}},{children:G?n(r,{children:[n("button",i({title:"Apply",onClick:function(){if(null!==P){if(P===(null!=y?y:""))return K(null),void(_&&_(null));if(z){var e="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),i=M||"Description",t=P&&""!==P.trim()?"Update ".concat(i," with ").concat(P):"Remove ".concat(i);q(!0),z("__SKELETON__:".concat(e,":").concat(t))}K(null),_&&_(null)}},disabled:V,style:i(i(i({},Z),$),{backgroundColor:"var(--il-primary, #2563EB)",color:"var(--il-primary-fg, #ffffff)",width:"auto",padding:"8px 12px"})},{children:[t(p,{size:20,strokeWidth:2.5})," Apply"]})),t("button",i({title:"Cancel",onClick:function(){K(null),_&&_(null)},style:i(i({},Z),{borderColor:"var(--il-border,#E3E8E9)",color:"var(--il-danger,#dc2626)"})},{children:t(g,{size:20,strokeWidth:2.5})}))]}):t("button",i({title:J?"Save active edits first":"Edit",onClick:function(){W&&W!==R||(_&&_(R),K(null!=y?y:""))},disabled:D||J,style:i(i({},Z),{color:"var(--il-muted, #64748B)",cursor:D||J?"not-allowed":"pointer",opacity:D||J?.5:1})},{children:t(f,{size:20})}))}))]})),N===R&&G&&n("div",i({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[t(u,{size:14,style:{color:"var(--il-warning,#c2410c)"}}),t("div",i({style:{color:"var(--il-warning,#c2410c)",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]})),U&&D&&A&&n(r,{children:[t("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "}),n("div",i({style:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"4px 0 12px 12px",color:"var(--il-muted, #141414)",fontSize:"13px",fontWeight:500,fontStyle:"italic",marginTop:"8px"}},{children:[t(m,{style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Checking the correctness of your ",M||"description","..."]}))]})]}))};export{h as TextSection};
|
|
2
2
|
//# sourceMappingURL=TextSection.js.map
|
package/dist/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as n,__rest as t}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import o,{useState as l,useRef as a,useEffect as d,useMemo as s}from"react";import{Box as c,Typography as p,IconButton as h,Skeleton as u}from"@mui/material";import{ArrowLeft as g,ArrowRight as f}from"lucide-react";import x from"../../_svg/SparkleIcon.js";import{CognitiveDecisioningCard as m}from"@e-llm-studio/citation";import{ButtonCognitiveIcon as b}from"../../_svg/ButtonCognitiveIcon.js";var v=function(e,n){if(!n)return null;var t=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),i=n.match(t);return i?i[1].replace(/\\n/g,"\n"):null},y=function(e,n,t){var i=100*e;if(!t)return{bg:"#FFFFFF",border:"#E2E8F0",badgeBg:"#F1F5F9",badgeBorder:"#CBD5E1",badgeText:"#64748B",highlightBg:"transparent",label:"Not Defined"};var r=function(e){return e&&"null"!==e.toLowerCase()?e.split("_").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(" "):"Different"}(n);return i>=70?{bg:"#FEF2F2",border:"#FEE2E2",badgeBg:"#FEF2F2",badgeBorder:"#FECACA",badgeText:"#B91C1C",highlightBg:"#FECACA",label:r}:i>=40?{bg:"#FFFCF6",border:"#FFDD80",badgeBg:"#FEF9C3",badgeBorder:"#FEF08A",badgeText:"#A16207",highlightBg:"#FDDEB3",label:r}:{bg:"#FFFFFF",border:"#E2E8F0",badgeBg:"#F1F5F9",badgeBorder:"#CBD5E1",badgeText:"#64748B",highlightBg:"transparent",label:r}},w=o.forwardRef(function(n,t){var o=n.label,l=n.content,a=n.highlights,d=void 0===a?[]:a,s=n.styleVariant,h=n.isHighlighted,u=void 0!==h&&h,g=Array.isArray(l)?l.join("\n"):l||"",f="#B91C1C"===s.badgeText?{borderColor:"#EF4444",shadow:"rgba(239, 68, 68, 0.25)"}:"#A16207"===s.badgeText?{borderColor:"#F59E0B",shadow:"rgba(245, 158, 11, 0.25)"}:{borderColor:"#6366F1",shadow:"rgba(99, 102, 241, 0.25)"};return i(c,e({sx:{mb:1.5}},{children:[r(p,e({sx:{fontSize:"12px",color:"#19213D",mb:.5,fontWeight:500,lineHeight:"130%"}},{children:o})),r(c,e({ref:t,sx:{p:"8px 12px",borderRadius:"6px",border:u?"1.5px solid ".concat(f.borderColor):"1px solid ".concat(s.border),boxShadow:u?"0px 0px 0px 2px ".concat(f.shadow):"none",bgcolor:s.bg,fontSize:"13px",color:"#0B0E1A",lineHeight:1.4,minHeight:"28px",display:"flex",alignItems:"center",whiteSpace:"pre-line",wordBreak:"break-word"}},{children:r(c,{children:function(){if(!g)return r(p,e({sx:{color:"#94A3B8",fontSize:"12px",fontStyle:"italic"}},{children:"Not Defined"}));if(!d||0===d.length)return g;var n=d.filter(function(e){return e&&e.length>0}).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(0===n.length)return g;var t=new RegExp("(".concat(n.join("|"),")"),"gi");return g.split(t).map(function(n,t){return d.some(function(e){return e&&e.toLowerCase()===n.toLowerCase()})?r(c,e({component:"span",sx:{bgcolor:s.highlightBg,borderRadius:"2px",px:"2px"}},{children:n}),t):n})}()})}))]}))}),F=function(n){var t=n.data,o=n.isSelected,l=n.isCognitiveOpen,a=n.onToggleCognitive,d=n.onClick,s=t.summaryText||t.description||"",h=s.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),g=h?s.replace(h[0],"").trim():s,f=!!h;return i(c,e({id:"variant-card-".concat(t.id),onClick:d,sx:{minWidth:"280px",maxWidth:"280px",p:2,m:.5,bgcolor:o?"#EFF6FF99":"#FFFFFF",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s",display:"flex",flexDirection:"column",gap:1,flexShrink:0,opacity:t.isLoading?.7:1,border:o?"1.4px solid #2563EB":null,boxShadow:o?"none":"0px 2px 4px 0px #19213D14","&:hover":{borderColor:o?"#2563EB":"#CBD5E1",boxShadow:o?"none":"0px 4px 8px 0px #19213D1F"}}},{children:[r(c,e({sx:{display:"flex",alignItems:"center",gap:1.5}},{children:t.isLoading?r(u,{variant:"rounded",width:80,height:20}):i(c,e({sx:{bgcolor:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:600,px:1,py:.5,borderRadius:"100px",border:"1px solid #FFE1E1"}},{children:[void 0!==t.similarity?t.similarity:0,"% Similarity"]}))})),i(c,e({sx:{display:"flex",flexDirection:"column",gap:1}},{children:[r(p,e({sx:{fontWeight:500,fontSize:"14px",color:"#19213D",lineHeight:1.2}},{children:t.title})),t.isLoading?i(c,{children:[r(u,{width:"90%"}),r(u,{width:"60%"})]}):i(p,e({sx:{fontWeight:400,fontSize:"13px",color:"#666F8D",display:"-webkit-box",lineHeight:1.4}},{children:[g,f&&i(c,e({component:"span",onClick:function(e){e.stopPropagation(),o||d(),a()},sx:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",borderRadius:"4px",cursor:"pointer",transition:"all 0.2s ease",verticalAlign:"middle",marginLeft:"6px"}},{children:[r("div",e({style:{width:"13px",height:"13px",display:"flex",alignItems:"center"}},{children:r(b,{})})),r("svg",e({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:o&&l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:r("path",{d:"M6 9l6 6 6-6"})}))]}))]}))]}))]}))},_=function(o){var u,_,C=o.proposedRule,B=o.variants,E=void 0===B?[]:B,k=o.onSelectVariant,S=o.onSkip,A=o.onBack,D=o.targetVariantId,T=o.highlightedField,z=l(D||null),L=z[0],W=z[1],I=l(!1),R=I[0],j=I[1],H=l(null),M=H[0],O=H[1],V=a(null),G=a(null),N=a(null),P=l([]),U=P[0],$=P[1],q=l(!1),J=q[0],X=q[1],Y=l(!1),K=Y[0],Q=Y[1];d(function(){if(D&&W(D),O(null!=T?T:null),T){var e=setTimeout(function(){return O(null)},6e3);return function(){return clearTimeout(e)}}},[D,T]);var Z=s(function(){return n([],E,!0).sort(function(e,n){return(n.similarity||0)-(e.similarity||0)})},[E]),ee=s(function(){if(L){var e=String(L).trim();return E.find(function(n){return n.id&&String(n.id).trim()===e})||Z[0]}return Z.length>0?Z[0]:null},[L,E,Z]);d(function(){if(L&&V.current){var e=L.trim();setTimeout(function(){var n=document.getElementById("variant-card-".concat(e)),t=V.current;if(n&&t){var i=n.offsetLeft-t.offsetLeft-t.clientWidth/2+n.clientWidth/2;t.scrollTo({left:i,behavior:"smooth"})}},150)}},[L,Z]);var ne=ee||{title:"",description:"",wta:"",wnta:""},te=null==ee?void 0:ee.analysis,ie=(null===(_=null===(u=null==te?void 0:te.rule_difference_comparison)||void 0===u?void 0:u.summary)||void 0===_?void 0:_.overall_summary)||"",re=ie.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),oe=!!re,le=re?re[1]:"",ae=v("reason",le)||"",de=v("gap",le)||"",se=v("relevance_score",le)||"",ce=s(function(){return{ul:function(n){n.node;var i=t(n,["node"]);return r("ol",e({},i,{style:{paddingLeft:"1.25rem",listStyleType:"decimal",margin:0}}))},li:function(n){n.node;var i=t(n,["node"]);return r("li",e({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},ol:function(n){n.node;var i=t(n,["node"]);return r("li",e({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},a:function(n){var o=n.href,l=n.children,a=t(n,["href","children"]);if(!o)return r("a",e({},a,{children:l}));var d=o||"";try{d=decodeURIComponent(o)}catch(e){console.error("Error decoding href",e)}if(d.includes("variant_id=")){var s="",c="",p=d.match(/variant_id=([^?&]+)/);p&&(s=p[1]);var h=d.match(/field_name=([^&]+)/);return h&&(c=h[1]),i("button",e({type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),W(s),O(c),setTimeout(function(){return O(null)},6e3)},style:{background:"none",border:"none",outline:"none",borderRadius:"6px",padding:"1px 4px",color:"#0F172A",cursor:"pointer",fontSize:"13px",fontWeight:500,display:"inline-flex",alignItems:"center",gap:"2px",margin:"0 1px",verticalAlign:"baseline",textDecoration:"none",boxShadow:"none",WebkitAppearance:"none",MozAppearance:"none"},title:"View Comparison"},{children:[l,r("svg",e({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r("path",{d:"M10.2082 8.67708H2.0415M2.0415 8.67708L4.08317 6.63542M2.0415 8.67708L4.08317 10.7188M2.0415 3.57292H10.2082M10.2082 3.57292L8.1665 1.53125M10.2082 3.57292L8.1665 5.61458",stroke:"#0F172A",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}))]}))}return r("a",e({href:o,target:"_blank",rel:"noopener noreferrer",style:{color:"#7C3AED"}},a,{children:l}))}}},[]),pe=["title","description","when_to_apply","when_not_to_apply"],he={title:a(null),description:a(null),wta:a(null),wnta:a(null)},ue={title:a(null),description:a(null),wta:a(null),wnta:a(null)};d(function(){if(M){var e="when_to_apply"===M?"wta":"when_not_to_apply"===M?"wnta":M,n=he[e]||ue[e];n&&n.current&&setTimeout(function(){n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}},[M]);var ge=function(e){var n,t,i,r,o,l=null===(n=null==te?void 0:te.rule_difference_comparison)||void 0===n?void 0:n.fields,a="when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e,d=!(!C[a]&&!ne[a]);if(!l||!l[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var s=l[e];if(s.mappings){var c=s.mappings[0]||{};return{score:s.score,relation:c.relation||"",highlightsA:(null===(t=c.highlights)||void 0===t?void 0:t.ruleA_spans)||[],highlightsB:(null===(i=c.highlights)||void 0===i?void 0:i.ruleB_spans)||[],hasContent:d}}return{score:s.score,relation:s.relation||"",highlightsA:(null===(r=s.highlights)||void 0===r?void 0:r.ruleA_spans)||[],highlightsB:(null===(o=s.highlights)||void 0===o?void 0:o.ruleB_spans)||[],hasContent:d}},fe=function(){if(N.current){var e=N.current.getBoundingClientRect(),n=[];pe.forEach(function(t){var i="when_to_apply"===t?he.wta:"when_not_to_apply"===t?he.wnta:he[t],r="when_to_apply"===t?ue.wta:"when_not_to_apply"===t?ue.wnta:ue[t];if(i.current&&r.current){var o=ge(t),l=y(o.score,o.relation,o.hasContent),a=i.current.getBoundingClientRect(),d=r.current.getBoundingClientRect();n.push({x1:a.right-e.left,y1:a.top+a.height/2-e.top,x2:d.left-e.left,y2:d.top+d.height/2-e.top,style:l})}}),$(n)}};d(function(){var e=setTimeout(fe,250);window.addEventListener("resize",fe);var n=null;return N.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){fe()})})).observe(N.current),function(){clearTimeout(e),window.removeEventListener("resize",fe),n&&n.disconnect()}},[C,ne,te,R]),d(function(){var e=V.current;if(e){var n=function(){X(e.scrollLeft>0),Q(e.scrollLeft+e.clientWidth<e.scrollWidth-1)};return n(),e.addEventListener("scroll",n),window.addEventListener("resize",n),function(){e.removeEventListener("scroll",n),window.removeEventListener("resize",n)}}},[Z]),d(function(){!L&&!D&&Z.length>0&&!Z[0].isLoading&&W(Z[0].id)},[Z,L,D]);var xe=function(e){V.current&&V.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})};return i(c,e({sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"hidden"}},{children:[i(c,e({sx:{px:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#FFFFFF",border:"1.5px solid #EEF0F4"}},{children:[i(c,e({sx:{display:"flex",alignItems:"center",gap:1}},{children:[r(h,e({onClick:A,size:"small"},{children:r(g,{})})),r(p,e({sx:{fontSize:"16px",fontWeight:450,color:"#0F172A"}},{children:"Conflict Resolution"}))]})),r(h,e({onClick:S,size:"small"},{children:r(c,e({sx:{fontSize:24,lineHeight:.5}},{children:"×"}))}))]})),Z.length>0&&i(c,e({sx:{px:3,pb:.25}},{children:[i(c,e({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1}},{children:[r(p,e({sx:{fontSize:"13px",color:"#475569"}},{children:"Choose the guideline you want to compare with."})),i(c,e({sx:{display:"flex",gap:.5,flexShrink:0,ml:1}},{children:[r(h,e({onClick:function(){return xe("left")},size:"small",disabled:!J},{children:r(g,{size:18})})),r(h,e({onClick:function(){return xe("right")},size:"small",disabled:!K},{children:r(f,{size:18})}))]}))]})),r(c,e({ref:V,sx:{display:"flex",gap:1,overflowX:"auto",pb:.05,"&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"transparent",borderRadius:"10px"},"&::-webkit-scrollbar-thumb:hover":{background:"transparent"}}},{children:Z.map(function(e){return r(F,{data:e,isSelected:(null==ee?void 0:ee.id)===e.id,isCognitiveOpen:R,onToggleCognitive:function(){j(function(e){var n=!e;return n&&G.current&&G.current.scrollTo({top:0,behavior:"smooth"}),n})},onClick:function(){return W((n=e).id),k(n),void j(!1);var n}},e.id)})}))]})),r(c,e({ref:G,sx:{flex:1,overflowY:"auto",py:1.5,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",borderTop:ie&&oe&&R?"none":"1.5px solid #EEF0F4"}},{children:i(c,e({sx:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"}},{children:[ie&&oe&&R&&r(c,e({sx:{width:"100%",pb:1,animation:"fadeIn 0.2s ease-out","& > div > button":{display:"none !important"},"& > div > div":{marginTop:"0px"}}},{children:r(m,{headerIcon:r(b,{}),reasoning:ae,gap:de,score:se,mdComponents:ce,isOpen:!0,onToggle:function(){return j(!1)}})})),i(c,e({ref:N,sx:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative"}},{children:[r("svg",e({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:U.map(function(n,t){var o=(n.x1+n.x2)/2,l=(n.y1+n.y2)/2;return i("g",{children:[r("line",{x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,stroke:n.style.badgeBorder,strokeWidth:"1"}),r("foreignObject",e({x:o-125,y:l-16,width:"250",height:"32"},{children:r(c,e({sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:r(c,e({sx:{fontSize:"11px",bgcolor:n.style.badgeBg,color:n.style.badgeText,border:"1px solid ".concat(n.style.badgeBorder),borderRadius:"12px",px:1.5,py:.25,fontWeight:500,textAlign:"center",whiteSpace:"nowrap"}},{children:n.style.label}))}))}))]},t)})})),i(c,e({sx:{border:"1px dashed #B0B0B0",borderRadius:"8px",bgcolor:"#FFFFFF",display:"flex",flexDirection:"column",position:"relative",zIndex:2,filter:"drop-shadow(0px 2px 4px #F2F2F2)",minWidth:0}},{children:[r(c,e({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px dashed #B0B0B0",borderRadius:"8px 8px 0 0",display:"flex",minHeight:"24px",alignItems:"center"}},{children:r(p,e({sx:{fontSize:"16px",fontWeight:500,color:"#19213D"}},{children:"Conflicting Guideline 1"}))})),r(c,e({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:pe.map(function(e){var n=ge(e),t=y(n.score,n.relation,n.hasContent),i="when_to_apply"===e?he.wta:"when_not_to_apply"===e?he.wnta:he[e],o=C["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return r(w,{ref:i,label:"when_to_apply"===e?"When to apply":"when_not_to_apply"===e?"When NOT to apply":"title"===e?"Guideline Title":"Guideline Description",content:o,highlights:n.highlightsA,styleVariant:t,isHighlighted:M===e},"left-".concat(e))})}))]})),r(c,{sx:{width:"1px"}}),i(c,e({sx:{border:"1px solid #E3E6EA",borderRadius:"8px",bgcolor:"#FFFFFF",boxShadow:"0px 1px 4px #F7F4FE",position:"relative",zIndex:2,display:"flex",flexDirection:"column",minWidth:0}},{children:[r(c,e({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"24px",display:"flex",alignItems:"center"}},{children:i(p,e({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",display:"flex",alignItems:"center",gap:1}},{children:[r("div",e({style:{width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"}},{children:r(x,{})})),"Conflicting Guideline 2"]}))})),r(c,e({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:pe.map(function(e){var n=ge(e),t=y(n.score,n.relation,n.hasContent),i="when_to_apply"===e?ue.wta:"when_not_to_apply"===e?ue.wnta:ue[e],o=ne["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return r(w,{ref:i,label:"when_to_apply"===e?"When to apply":"when_not_to_apply"===e?"When NOT to apply":"title"===e?"Guideline Title":"Guideline Description",content:o,highlights:n.highlightsB,styleVariant:t,isHighlighted:M===e},"right-".concat(e))})}))]}))]}))]}))}))]}))};export{_ as default};
|
|
1
|
+
import{__assign as e,__spreadArray as n,__rest as t}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import o,{useState as l,useRef as a,useEffect as d,useMemo as s}from"react";import{Box as c,Typography as p,IconButton as h,Skeleton as u}from"@mui/material";import{ArrowLeft as g,ArrowRight as f}from"lucide-react";import x from"../../_svg/SparkleIcon.js";import{CognitiveDecisioningCard as m}from"@e-llm-studio/citation";import{ButtonCognitiveIcon as b}from"../../_svg/ButtonCognitiveIcon.js";import{getCognitiveDecisioningThemeStyles as v}from"../../cognitiveDecisioningThemeStyles.js";var y=function(e,n){if(!n)return null;var t=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),i=n.match(t);return i?i[1].replace(/\\n/g,"\n"):null},w=function(e,n,t){var i=100*e;if(!t)return{bg:"#FFFFFF",border:"#E2E8F0",badgeBg:"#F1F5F9",badgeBorder:"#CBD5E1",badgeText:"#64748B",highlightBg:"transparent",label:"Not Defined"};var r=function(e){return e&&"null"!==e.toLowerCase()?e.split("_").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(" "):"Different"}(n);return i>=70?{bg:"#FEF2F2",border:"#FEE2E2",badgeBg:"#FEF2F2",badgeBorder:"#FECACA",badgeText:"#B91C1C",highlightBg:"#FECACA",label:r}:i>=40?{bg:"#FFFCF6",border:"#FFDD80",badgeBg:"#FEF9C3",badgeBorder:"#FEF08A",badgeText:"#A16207",highlightBg:"#FDDEB3",label:r}:{bg:"#FFFFFF",border:"#E2E8F0",badgeBg:"#F1F5F9",badgeBorder:"#CBD5E1",badgeText:"#64748B",highlightBg:"transparent",label:r}},F=o.forwardRef(function(n,t){var o=n.label,l=n.content,a=n.highlights,d=void 0===a?[]:a,s=n.styleVariant,h=n.isHighlighted,u=void 0!==h&&h,g=Array.isArray(l)?l.join("\n"):l||"",f="#B91C1C"===s.badgeText?{borderColor:"#EF4444",shadow:"rgba(239, 68, 68, 0.25)"}:"#A16207"===s.badgeText?{borderColor:"#F59E0B",shadow:"rgba(245, 158, 11, 0.25)"}:{borderColor:"#6366F1",shadow:"rgba(99, 102, 241, 0.25)"};return i(c,e({sx:{mb:1.5}},{children:[r(p,e({sx:{fontSize:"12px",color:"#19213D",mb:.5,fontWeight:500,lineHeight:"130%"}},{children:o})),r(c,e({ref:t,sx:{p:"8px 12px",borderRadius:"6px",border:u?"1.5px solid ".concat(f.borderColor):"1px solid ".concat(s.border),boxShadow:u?"0px 0px 0px 2px ".concat(f.shadow):"none",bgcolor:s.bg,fontSize:"13px",color:"#0B0E1A",lineHeight:1.4,minHeight:"28px",display:"flex",alignItems:"center",whiteSpace:"pre-line",wordBreak:"break-word"}},{children:r(c,{children:function(){if(!g)return r(p,e({sx:{color:"#94A3B8",fontSize:"12px",fontStyle:"italic"}},{children:"Not Defined"}));if(!d||0===d.length)return g;var n=d.filter(function(e){return e&&e.length>0}).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(0===n.length)return g;var t=new RegExp("(".concat(n.join("|"),")"),"gi");return g.split(t).map(function(n,t){return d.some(function(e){return e&&e.toLowerCase()===n.toLowerCase()})?r(c,e({component:"span",sx:{bgcolor:s.highlightBg,borderRadius:"2px",px:"2px"}},{children:n}),t):n})}()})}))]}))}),_=function(n){var t=n.data,o=n.isSelected,l=n.isCognitiveOpen,a=n.onToggleCognitive,d=n.onClick,s=t.summaryText||t.description||"",h=s.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),g=h?s.replace(h[0],"").trim():s,f=!!h;return i(c,e({id:"variant-card-".concat(t.id),onClick:d,sx:{minWidth:"280px",maxWidth:"280px",p:2,m:.5,bgcolor:o?"#EFF6FF99":"#FFFFFF",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s",display:"flex",flexDirection:"column",gap:1,flexShrink:0,opacity:t.isLoading?.7:1,border:o?"1.4px solid #2563EB":null,boxShadow:o?"none":"0px 2px 4px 0px #19213D14","&:hover":{borderColor:o?"#2563EB":"#CBD5E1",boxShadow:o?"none":"0px 4px 8px 0px #19213D1F"}}},{children:[r(c,e({sx:{display:"flex",alignItems:"center",gap:1.5}},{children:t.isLoading?r(u,{variant:"rounded",width:80,height:20}):i(c,e({sx:{bgcolor:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:600,px:1,py:.5,borderRadius:"100px",border:"1px solid #FFE1E1"}},{children:[void 0!==t.similarity?t.similarity:0,"% Similarity"]}))})),i(c,e({sx:{display:"flex",flexDirection:"column",gap:1}},{children:[r(p,e({sx:{fontWeight:500,fontSize:"14px",color:"#19213D",lineHeight:1.2}},{children:t.title})),t.isLoading?i(c,{children:[r(u,{width:"90%"}),r(u,{width:"60%"})]}):i(p,e({sx:{fontWeight:400,fontSize:"13px",color:"#666F8D",display:"-webkit-box",lineHeight:1.4}},{children:[g,f&&i(c,e({component:"span",onClick:function(e){e.stopPropagation(),o||d(),a()},sx:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",borderRadius:"4px",cursor:"pointer",transition:"all 0.2s ease",verticalAlign:"middle",marginLeft:"6px"}},{children:[r("div",e({style:{width:"13px",height:"13px",display:"flex",alignItems:"center"}},{children:r(b,{})})),r("svg",e({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:o&&l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:r("path",{d:"M6 9l6 6 6-6"})}))]}))]}))]}))]}))},C=function(o){var u,C,B=o.proposedRule,E=o.variants,k=void 0===E?[]:E,S=o.onSelectVariant,A=o.onSkip,D=o.onBack,T=o.targetVariantId,z=o.highlightedField,L=l(T||null),W=L[0],I=L[1],R=l(!1),j=R[0],H=R[1],M=l(null),O=M[0],V=M[1],G=a(null),N=a(null),P=a(null),U=l([]),$=U[0],q=U[1],J=l(!1),X=J[0],Y=J[1],K=l(!1),Q=K[0],Z=K[1];d(function(){if(T&&I(T),V(null!=z?z:null),z){var e=setTimeout(function(){return V(null)},6e3);return function(){return clearTimeout(e)}}},[T,z]);var ee=s(function(){return n([],k,!0).sort(function(e,n){return(n.similarity||0)-(e.similarity||0)})},[k]),ne=s(function(){if(W){var e=String(W).trim();return k.find(function(n){return n.id&&String(n.id).trim()===e})||ee[0]}return ee.length>0?ee[0]:null},[W,k,ee]);d(function(){if(W&&G.current){var e=W.trim();setTimeout(function(){var n=document.getElementById("variant-card-".concat(e)),t=G.current;if(n&&t){var i=n.offsetLeft-t.offsetLeft-t.clientWidth/2+n.clientWidth/2;t.scrollTo({left:i,behavior:"smooth"})}},150)}},[W,ee]);var te=ne||{title:"",description:"",wta:"",wnta:""},ie=null==ne?void 0:ne.analysis,re=(null===(C=null===(u=null==ie?void 0:ie.rule_difference_comparison)||void 0===u?void 0:u.summary)||void 0===C?void 0:C.overall_summary)||"",oe=re.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),le=!!oe,ae=oe?oe[1]:"",de=y("reason",ae)||"",se=y("gap",ae)||"",ce=y("relevance_score",ae)||"",pe=s(function(){return{ul:function(n){n.node;var i=t(n,["node"]);return r("ol",e({},i,{style:{paddingLeft:"1.25rem",listStyleType:"decimal",margin:0}}))},li:function(n){n.node;var i=t(n,["node"]);return r("li",e({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},ol:function(n){n.node;var i=t(n,["node"]);return r("li",e({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},a:function(n){var o=n.href,l=n.children,a=t(n,["href","children"]);if(!o)return r("a",e({},a,{children:l}));var d=o||"";try{d=decodeURIComponent(o)}catch(e){console.error("Error decoding href",e)}if(d.includes("variant_id=")){var s="",c="",p=d.match(/variant_id=([^?&]+)/);p&&(s=p[1]);var h=d.match(/field_name=([^&]+)/);return h&&(c=h[1]),i("button",e({type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),I(s),V(c),setTimeout(function(){return V(null)},6e3)},style:{background:"none",border:"none",outline:"none",borderRadius:"6px",padding:"1px 4px",color:"#0F172A",cursor:"pointer",fontSize:"13px",fontWeight:500,display:"inline-flex",alignItems:"center",gap:"2px",margin:"0 1px",verticalAlign:"baseline",textDecoration:"none",boxShadow:"none",WebkitAppearance:"none",MozAppearance:"none"},title:"View Comparison"},{children:[l,r("svg",e({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r("path",{d:"M10.2082 8.67708H2.0415M2.0415 8.67708L4.08317 6.63542M2.0415 8.67708L4.08317 10.7188M2.0415 3.57292H10.2082M10.2082 3.57292L8.1665 1.53125M10.2082 3.57292L8.1665 5.61458",stroke:"#0F172A",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}))]}))}return r("a",e({href:o,target:"_blank",rel:"noopener noreferrer",style:{color:"#7C3AED"}},a,{children:l}))}}},[]),he=["title","description","when_to_apply","when_not_to_apply"],ue={title:a(null),description:a(null),wta:a(null),wnta:a(null)},ge={title:a(null),description:a(null),wta:a(null),wnta:a(null)};d(function(){if(O){var e="when_to_apply"===O?"wta":"when_not_to_apply"===O?"wnta":O,n=ue[e]||ge[e];n&&n.current&&setTimeout(function(){n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}},[O]);var fe=function(e){var n,t,i,r,o,l=null===(n=null==ie?void 0:ie.rule_difference_comparison)||void 0===n?void 0:n.fields,a="when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e,d=!(!B[a]&&!te[a]);if(!l||!l[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var s=l[e];if(s.mappings){var c=s.mappings[0]||{};return{score:s.score,relation:c.relation||"",highlightsA:(null===(t=c.highlights)||void 0===t?void 0:t.ruleA_spans)||[],highlightsB:(null===(i=c.highlights)||void 0===i?void 0:i.ruleB_spans)||[],hasContent:d}}return{score:s.score,relation:s.relation||"",highlightsA:(null===(r=s.highlights)||void 0===r?void 0:r.ruleA_spans)||[],highlightsB:(null===(o=s.highlights)||void 0===o?void 0:o.ruleB_spans)||[],hasContent:d}},xe=function(){if(P.current){var e=P.current.getBoundingClientRect(),n=[];he.forEach(function(t){var i="when_to_apply"===t?ue.wta:"when_not_to_apply"===t?ue.wnta:ue[t],r="when_to_apply"===t?ge.wta:"when_not_to_apply"===t?ge.wnta:ge[t];if(i.current&&r.current){var o=fe(t),l=w(o.score,o.relation,o.hasContent),a=i.current.getBoundingClientRect(),d=r.current.getBoundingClientRect();n.push({x1:a.right-e.left,y1:a.top+a.height/2-e.top,x2:d.left-e.left,y2:d.top+d.height/2-e.top,style:l})}}),q(n)}};d(function(){var e=setTimeout(xe,250);window.addEventListener("resize",xe);var n=null;return P.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){xe()})})).observe(P.current),function(){clearTimeout(e),window.removeEventListener("resize",xe),n&&n.disconnect()}},[B,te,ie,j]),d(function(){var e=G.current;if(e){var n=function(){Y(e.scrollLeft>0),Z(e.scrollLeft+e.clientWidth<e.scrollWidth-1)};return n(),e.addEventListener("scroll",n),window.addEventListener("resize",n),function(){e.removeEventListener("scroll",n),window.removeEventListener("resize",n)}}},[ee]),d(function(){!W&&!T&&ee.length>0&&!ee[0].isLoading&&I(ee[0].id)},[ee,W,T]);var me=function(e){G.current&&G.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})};return i(c,e({sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"hidden"}},{children:[i(c,e({sx:{px:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#FFFFFF",border:"1.5px solid #EEF0F4"}},{children:[i(c,e({sx:{display:"flex",alignItems:"center",gap:1}},{children:[r(h,e({onClick:D,size:"small"},{children:r(g,{})})),r(p,e({sx:{fontSize:"16px",fontWeight:450,color:"#0F172A"}},{children:"Conflict Resolution"}))]})),r(h,e({onClick:A,size:"small"},{children:r(c,e({sx:{fontSize:24,lineHeight:.5}},{children:"×"}))}))]})),ee.length>0&&i(c,e({sx:{px:3,pb:.25}},{children:[i(c,e({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1}},{children:[r(p,e({sx:{fontSize:"13px",color:"#475569"}},{children:"Choose the guideline you want to compare with."})),i(c,e({sx:{display:"flex",gap:.5,flexShrink:0,ml:1}},{children:[r(h,e({onClick:function(){return me("left")},size:"small",disabled:!X},{children:r(g,{size:18})})),r(h,e({onClick:function(){return me("right")},size:"small",disabled:!Q},{children:r(f,{size:18})}))]}))]})),r(c,e({ref:G,sx:{display:"flex",gap:1,overflowX:"auto",pb:.05,"&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"transparent",borderRadius:"10px"},"&::-webkit-scrollbar-thumb:hover":{background:"transparent"}}},{children:ee.map(function(e){return r(_,{data:e,isSelected:(null==ne?void 0:ne.id)===e.id,isCognitiveOpen:j,onToggleCognitive:function(){H(function(e){var n=!e;return n&&N.current&&N.current.scrollTo({top:0,behavior:"smooth"}),n})},onClick:function(){return I((n=e).id),S(n),void H(!1);var n}},e.id)})}))]})),r(c,e({ref:N,sx:{flex:1,overflowY:"auto",py:1.5,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",borderTop:re&&le&&j?"none":"1.5px solid #EEF0F4"}},{children:i(c,e({sx:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"}},{children:[re&&le&&j&&r(c,e({sx:{width:"100%",pb:1,animation:"fadeIn 0.2s ease-out","& > div > button":{display:"none !important"},"& > div > div":{marginTop:"0px"}}},{children:r(m,{headerIcon:r(b,{}),reasoning:de,gap:se,score:ce,mdComponents:pe,isOpen:!0,onToggle:function(){return H(!1)},styles:v()})})),i(c,e({ref:P,sx:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative"}},{children:[r("svg",e({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:$.map(function(n,t){var o=(n.x1+n.x2)/2,l=(n.y1+n.y2)/2;return i("g",{children:[r("line",{x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,stroke:n.style.badgeBorder,strokeWidth:"1"}),r("foreignObject",e({x:o-125,y:l-16,width:"250",height:"32"},{children:r(c,e({sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:r(c,e({sx:{fontSize:"11px",bgcolor:n.style.badgeBg,color:n.style.badgeText,border:"1px solid ".concat(n.style.badgeBorder),borderRadius:"12px",px:1.5,py:.25,fontWeight:500,textAlign:"center",whiteSpace:"nowrap"}},{children:n.style.label}))}))}))]},t)})})),i(c,e({sx:{border:"1px dashed #B0B0B0",borderRadius:"8px",bgcolor:"#FFFFFF",display:"flex",flexDirection:"column",position:"relative",zIndex:2,filter:"drop-shadow(0px 2px 4px #F2F2F2)",minWidth:0}},{children:[r(c,e({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px dashed #B0B0B0",borderRadius:"8px 8px 0 0",display:"flex",minHeight:"24px",alignItems:"center"}},{children:r(p,e({sx:{fontSize:"16px",fontWeight:500,color:"#19213D"}},{children:"Conflicting Guideline 1"}))})),r(c,e({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:he.map(function(e){var n=fe(e),t=w(n.score,n.relation,n.hasContent),i="when_to_apply"===e?ue.wta:"when_not_to_apply"===e?ue.wnta:ue[e],o=B["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return r(F,{ref:i,label:"when_to_apply"===e?"When to apply":"when_not_to_apply"===e?"When NOT to apply":"title"===e?"Guideline Title":"Guideline Description",content:o,highlights:n.highlightsA,styleVariant:t,isHighlighted:O===e},"left-".concat(e))})}))]})),r(c,{sx:{width:"1px"}}),i(c,e({sx:{border:"1px solid #E3E6EA",borderRadius:"8px",bgcolor:"#FFFFFF",boxShadow:"0px 1px 4px #F7F4FE",position:"relative",zIndex:2,display:"flex",flexDirection:"column",minWidth:0}},{children:[r(c,e({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"24px",display:"flex",alignItems:"center"}},{children:i(p,e({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",display:"flex",alignItems:"center",gap:1}},{children:[r("div",e({style:{width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"}},{children:r(x,{})})),"Conflicting Guideline 2"]}))})),r(c,e({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:he.map(function(e){var n=fe(e),t=w(n.score,n.relation,n.hasContent),i="when_to_apply"===e?ge.wta:"when_not_to_apply"===e?ge.wnta:ge[e],o=te["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return r(F,{ref:i,label:"when_to_apply"===e?"When to apply":"when_not_to_apply"===e?"When NOT to apply":"title"===e?"Guideline Title":"Guideline Description",content:o,highlights:n.highlightsB,styleVariant:t,isHighlighted:O===e},"right-".concat(e))})}))]}))]}))]}))}))]}))};export{C as default};
|
|
2
2
|
//# sourceMappingURL=AgentComposerRuleComparison.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as i}from"tslib";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useState as n,useRef as o,useEffect as l,useMemo as a}from"react";import{Box as c,IconButton as d,Typography as s,Skeleton as x}from"@mui/material";import{ArrowLeft as p,ArrowRight as f}from"lucide-react";import{CognitiveCompare as h}from"@
|
|
1
|
+
import{__spreadArray as e,__assign as i}from"tslib";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useState as n,useRef as o,useEffect as l,useMemo as a}from"react";import{Box as c,IconButton as d,Typography as s,Skeleton as x}from"@mui/material";import{ArrowLeft as p,ArrowRight as f}from"lucide-react";import{CognitiveCompare as h}from"@e-llm-studio/citation";var u=function(e){var n=e.data,o=e.isSelected,l=e.onClick,a=function(e){var i=String(null!=e?e:"").match(/(\d+(?:\.\d+)?)\s*%/);if(!i)return{bg:"#FEF2F2",text:"#B91C1C",border:"#FECACA"};var r=parseFloat(i[1]);return r<=34?{bg:"#EFF6FF",text:"#1D4ED8",border:"#BFDBFE"}:r<=75?{bg:"#FFF9EA",text:"#A16207",border:"#F2E5A1"}:{bg:"#FEF2F2",text:"#B91C1C",border:"#FECACA"}}(n.similarityScoreText);return r(c,i({id:"variant-card-".concat(n.id),onClick:l,sx:{minWidth:"280px",maxWidth:"280px",p:2,m:.5,bgcolor:o?"#EFF6FF99":"#FFFFFF",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s",display:"flex",flexDirection:"column",gap:1,flexShrink:0,opacity:n.isLoading?.7:1,border:o?"1.4px solid #2563EB":"1.4px solid transparent",boxShadow:o?"none":"0px 2px 4px 0px #19213D14","&:hover":{borderColor:o?"#2563EB":"#CBD5E1",boxShadow:o?"none":"0px 4px 8px 0px #19213D1F"}}},{children:[t(c,i({sx:{display:"flex",alignItems:"center",gap:1.5}},{children:n.isLoading?t(x,{variant:"rounded",width:80,height:20}):t(c,i({sx:{bgcolor:a.bg,color:a.text,fontSize:"11px",fontWeight:600,px:1,py:.5,borderRadius:"100px",border:"1px solid ".concat(a.border),textTransform:"capitalize"}},{children:n.similarityScoreText||"0% Similarity"}))})),t(c,i({sx:{display:"flex",flexDirection:"column",gap:1}},{children:r(c,i({sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"nowrap"}},{children:[n.isLoading?t(x,{width:"90%"}):t(s,i({title:n.title,sx:{fontWeight:500,fontSize:"14px",color:"#19213D",lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block"}},{children:n.title})),n.scope&&t(c,i({sx:{flexShrink:0,fontSize:"10px",fontWeight:600,color:"#19213D",bgcolor:"#FFF",border:"1px solid #EDEFF2",px:.75,py:.25,borderRadius:"6px",lineHeight:1.4,whiteSpace:"nowrap"}},{children:n.scope}))]}))}))]}))},g=function(e){if(null==e||""===e)return null;var i=parseFloat(String(e));if(isNaN(i))return null;var r=i<=1?100*i:i;return r<=34?{bg:"#EFF6FF",text:"#1D4ED8",border:"#BFDBFE"}:r<=75?{bg:"#FFF9EA",text:"#A16207",border:"#F2E5A1"}:{bg:"#FEF2F2",text:"#B91C1C",border:"#FECACA"}},F=function(x){var F=x.variants,m=void 0===F?[]:F,b=x.onSelectVariant,v=x.onSkip,y=x.onBack,E=x.targetVariantId,S=n(E||null),C=S[0],w=S[1],k=o(null);l(function(){E&&w(E)},[E]);var D=function(e){k.current&&k.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})};console.log("formatedData",m);var B=a(function(){if(C){var e=String(C).trim();return m.find(function(i){return i.id&&String(i.id).trim()===e})||m[0]}return m.length>0?m[0]:null},[C,m]);l(function(){if(C&&k.current){var e=C.trim();setTimeout(function(){var i=document.getElementById("variant-card-".concat(e)),r=k.current;if(i&&r){var t=i.offsetLeft-r.offsetLeft-r.clientWidth/2+i.clientWidth/2;r.scrollTo({left:t,behavior:"smooth"})}},150)}},[C,m]);l(function(){!C&&!E&&m.length>0&&!m[0].isLoading&&w(m[0].id)},[m,C,E]);var z=n(!1),L=z[0],A=z[1],T=n(!1),W=T[0],I=T[1];l(function(){var e=k.current;if(e){var i=function(){A(e.scrollLeft>0),I(e.scrollLeft+e.clientWidth<e.scrollWidth-1)};return i(),e.addEventListener("scroll",i),window.addEventListener("resize",i),function(){e.removeEventListener("scroll",i),window.removeEventListener("resize",i)}}},[m]);var R=a(function(){return e([],m,!0).sort(function(e,i){var r=function(e){var i=null==e?void 0:e.match(/(\d+(\.\d+)?)\s*%/);return i?parseFloat(i[1]):-1};return r(i.similarityScoreText)-r(e.similarityScoreText)})},[m]),H=(null==B?void 0:B.intentTreeData)||null,V=(null==B?void 0:B.behaviorTreeData)||null;return r(c,i({sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#FFFFFF",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"hidden"}},{children:[r(c,i({sx:{px:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#FFFFFF"}},{children:[r(c,i({sx:{display:"flex",alignItems:"center",gap:1}},{children:[t(d,i({onClick:y,size:"small"},{children:t(p,{})})),t(s,i({sx:{fontSize:"16px",fontWeight:450,color:"#0F172A"}},{children:"Learning Comparison"}))]})),t(d,i({onClick:v,size:"small"},{children:t(c,i({sx:{fontSize:24,lineHeight:.5}},{children:"×"}))}))]})),t(c,i({sx:{bgcolor:"#F6F7F9B2"}},{children:m.length>0&&r(c,i({sx:{pb:2}},{children:[r(c,i({sx:{px:3,display:"flex",alignItems:"center",justifyContent:"space-between",py:1}},{children:[t(s,i({sx:{fontSize:"13px",color:"#475569"}},{children:"Choose the Learning you want to compare with the rule you are creating."})),r(c,i({sx:{display:"flex",gap:.5,flexShrink:0,ml:1}},{children:[t(d,i({onClick:function(){return D("left")},size:"small",disabled:!L},{children:t(p,{size:18})})),t(d,i({onClick:function(){return D("right")},size:"small",disabled:!W},{children:t(f,{size:18})}))]}))]})),t(c,i({ref:k,sx:{display:"flex",gap:1,overflowX:"auto",px:3,"&::-webkit-scrollbar":{display:"none"}}},{children:R.map(function(e){return t(u,{data:e,isSelected:(null==B?void 0:B.id)===e.id,onClick:function(){return w((i=e).id),void b(i);var i}},e.id)})}))]}))})),r(c,i({sx:{display:"flex",flexDirection:"column",gap:3,margin:3,overflowY:"auto",backgroundColor:"#fff","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#CBD5E1",borderRadius:"10px"}}},{children:[H&&r(c,i({sx:{display:"flex",flexDirection:"column",borderRadius:"8px",border:"1px solid #E2E8F0"}},{children:[r(c,i({sx:{px:3,py:1.5,bgcolor:"#F8F9FB",borderBottom:"1px solid #E2E8F0",textAlign:"center"}},{children:[t(s,i({sx:{fontSize:"15px",fontWeight:600,color:"#0F172A",mb:.5}},{children:"Is the learning's intent matching?"})),t(s,i({sx:{fontSize:"13px",color:"#64748B"}},{children:"Checking if the learning you are creating is same as the existing learning."}))]})),t(h,{treeData:H,componentHeaderText:"Is the learning's intent matching?",displayConfig:{isHeaderVisible:!1,isToggleVisible:!1,maintainRelativeOrder:!1,isLoading:!1,expandLevels:1,enableDeviationSchemaBackwardCompatibility:!1},badgeStyleOverride:g},"intent-".concat(null==B?void 0:B.id))]})),V&&r(c,i({sx:{display:"flex",flexDirection:"column",borderRadius:"8px",border:"1px solid #E2E8F0"}},{children:[r(c,i({sx:{px:3,py:1.5,bgcolor:"#F8F9FB",borderBottom:"1px solid #E2E8F0",textAlign:"center"}},{children:[t(s,i({sx:{fontSize:"15px",fontWeight:600,color:"#0F172A",mb:.5}},{children:"Is the learning behavior matching?"})),t(s,i({sx:{fontSize:"13px",color:"#64748B"}},{children:"Checking if the variant you are trying to add is similar, overlapping or conflicting with the existing variant."}))]})),t(h,{treeData:V,componentHeaderText:"Is the learning behavior matching?",displayConfig:{isHeaderVisible:!1,isToggleVisible:!1,maintainRelativeOrder:!1,isLoading:!1,expandLevels:2,enableDeviationSchemaBackwardCompatibility:!1},badgeStyleOverride:g},"intent-".concat(null==B?void 0:B.id))]}))]}))]}))};export{F as default};
|
|
2
2
|
//# sourceMappingURL=RuleComparison.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as n,__rest as t}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import o,{useState as l,useRef as a,useEffect as s,useMemo as d}from"react";import{Box as c,Typography as p,IconButton as h,Skeleton as g}from"@mui/material";import{ArrowLeft as u,ArrowRight as x}from"lucide-react";import f from"../../_svg/SparkleIcon.js";import{CognitiveDecisioningCard as m}from"@e-llm-studio/citation";import{ButtonCognitiveIcon as b}from"../../_svg/ButtonCognitiveIcon.js";var v=function(e,n){if(!n)return null;var t=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),i=n.match(t);return i?i[1].replace(/\\n/g,"\n"):null},y=function(e,n,t){var i=100*e;if(!t)return{bg:"#FFFFFF",border:"#E2E8F0",badgeBg:"#F1F5F9",badgeBorder:"#CBD5E1",badgeText:"#64748B",highlightBg:"transparent",label:"Not Defined"};var r=function(e){return e.split("_").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(" ")}(n);return i>=70?{bg:"#FEF2F2",border:"#FEE2E2",badgeBg:"#FEF2F2",badgeBorder:"#FECACA",badgeText:"#B91C1C",highlightBg:"#FECACA",label:r}:i>=40?{bg:"#FFFCF6",border:"#FFDD80",badgeBg:"#FEF9C3",badgeBorder:"#FEF08A",badgeText:"#A16207",highlightBg:"#FDDEB3",label:r}:{bg:"#FFFFFF",border:"#E2E8F0",badgeBg:"#F1F5F9",badgeBorder:"#CBD5E1",badgeText:"#64748B",highlightBg:"transparent",label:r}},w=o.forwardRef(function(n,t){var o=n.label,l=n.content,a=n.highlights,s=void 0===a?[]:a,d=n.styleVariant,h=n.isHighlighted,g=void 0!==h&&h,u=Array.isArray(l)?l.join("\n"):l||"",x="#B91C1C"===d.badgeText?{borderColor:"#EF4444",shadow:"rgba(239, 68, 68, 0.25)"}:"#A16207"===d.badgeText?{borderColor:"#F59E0B",shadow:"rgba(245, 158, 11, 0.25)"}:{borderColor:"#6366F1",shadow:"rgba(99, 102, 241, 0.25)"};return i(c,e({sx:{mb:1.5}},{children:[r(p,e({sx:{fontSize:"12px",color:"#19213D",mb:.5,fontWeight:500,lineHeight:"130%"}},{children:o})),r(c,e({ref:t,sx:{p:"4px 12px",borderRadius:"6px",border:g?"1.5px solid ".concat(x.borderColor):"1px solid ".concat(d.border),boxShadow:g?"0px 0px 0px 2px ".concat(x.shadow):"none",bgcolor:d.bg,fontSize:"13px",color:"#0B0E1A",lineHeight:1.4,minHeight:"24px",display:"flex",alignItems:"center",whiteSpace:"pre-line",wordBreak:"break-word"}},{children:r(c,{children:function(){if(!u)return r(p,e({sx:{color:"#94A3B8",fontSize:"12px",fontStyle:"italic"}},{children:"Not Defined"}));if(!s||0===s.length)return u;var n=s.filter(function(e){return e&&e.length>0}).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(0===n.length)return u;var t=new RegExp("(".concat(n.join("|"),")"),"gi");return u.split(t).map(function(n,t){return s.some(function(e){return e&&e.toLowerCase()===n.toLowerCase()})?r(c,e({component:"span",sx:{bgcolor:d.highlightBg,borderRadius:"2px",px:"2px"}},{children:n}),t):n})}()})}))]}))}),F=function(n){var t=n.data,o=n.isSelected,l=n.isCognitiveOpen,a=n.onToggleCognitive,s=n.onClick,d=t.summaryText||t.description||"",h=d.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),u=h?d.replace(h[0],"").trim():d,x=!!h;return i(c,e({id:"variant-card-".concat(t.id),onClick:s,sx:{minWidth:"280px",maxWidth:"280px",p:2,m:.5,bgcolor:o?"#EFF6FF99":"#FFFFFF",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s",display:"flex",flexDirection:"column",gap:1,flexShrink:0,opacity:t.isLoading?.7:1,border:o?"1.4px solid #2563EB":null,boxShadow:o?"none":"0px 2px 4px 0px #19213D14","&:hover":{borderColor:o?"#2563EB":"#CBD5E1",boxShadow:o?"none":"0px 4px 8px 0px #19213D1F"}}},{children:[r(c,e({sx:{display:"flex",alignItems:"center",gap:1.5}},{children:t.isLoading?r(g,{variant:"rounded",width:80,height:20}):i(c,e({sx:{bgcolor:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:600,px:1,py:.5,borderRadius:"100px",border:"1px solid #FFE1E1"}},{children:[void 0!==t.similarity?t.similarity:0,"% Similarity"]}))})),i(c,e({sx:{display:"flex",flexDirection:"column",gap:1}},{children:[i(c,e({sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"nowrap"}},{children:[r(p,e({title:t.title,sx:{fontWeight:500,fontSize:"14px",color:"#19213D",lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block"}},{children:t.title})),t.scope&&r(c,e({sx:{flexShrink:0,fontSize:"10px",fontWeight:600,color:"#19213D",bgcolor:"#FFF",border:"1px solid #EDEFF2",px:.75,py:.25,borderRadius:"6px",lineHeight:1.4,whiteSpace:"nowrap"}},{children:t.scope}))]})),t.isLoading?i(c,{children:[r(g,{width:"90%"}),r(g,{width:"60%"})]}):i(c,e({title:u,sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[r(p,e({sx:{fontWeight:400,fontSize:"13px",color:"#666F8D",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"}},{children:u})),x&&i(c,e({onClick:function(e){e.stopPropagation(),o||s(),a()},sx:{display:"inline-flex",alignItems:"center",alignSelf:"flex-start",gap:"4px",padding:"2px 6px",borderRadius:"4px",cursor:"pointer",transition:"all 0.2s ease",marginLeft:"-4px","&:hover":{backgroundColor:"#F1F5F9"}}},{children:[r("div",e({style:{width:"13px",height:"13px",display:"flex",alignItems:"center"}},{children:r(b,{})})),r("svg",e({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:o&&l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:r("path",{d:"M6 9l6 6 6-6"})}))]}))]}))]}))]}))},_=function(o){var g,_,C=o.proposedRule,B=o.variants,E=void 0===B?[]:B,k=o.onSelectVariant;o.onAddAsVariant;var S=o.onSkip,A=o.onBack,L=o.targetVariantId,D=o.highlightedField,W=l(L||null),z=W[0],T=W[1],I=l(!1),R=I[0],j=I[1],H=l(null),O=H[0],M=H[1],V=a(null),N=a(null);s(function(){if(L&&T(L),M(null!=D?D:null),D){var e=setTimeout(function(){return M(null)},6e3);return function(){return clearTimeout(e)}}},[L,D]);var U=function(e){V.current&&V.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})},P=d(function(){return n([],E,!0).sort(function(e,n){return(n.similarity||0)-(e.similarity||0)})},[E]),Y=d(function(){if(z){var e=String(z).trim();return E.find(function(n){return n.id&&String(n.id).trim()===e})||P[0]}return P.length>0?P[0]:null},[z,E,P]);s(function(){if(z&&V.current){var e=z.trim();setTimeout(function(){var n=document.getElementById("variant-card-".concat(e)),t=V.current;if(n&&t){var i=n.offsetLeft-t.offsetLeft-t.clientWidth/2+n.clientWidth/2;t.scrollTo({left:i,behavior:"smooth"})}},150)}},[z,P]);var $=Y||{title:"",scope:"",description:"",wta:"",wnta:"",variantType:"Default"},q=null==Y?void 0:Y.analysis,J=(null===(_=null===(g=null==q?void 0:q.rule_difference_comparison)||void 0===g?void 0:g.summary)||void 0===_?void 0:_.overall_summary)||"",X=J.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),G=!!X,K=X?X[1]:"",Q=v("reason",K)||"",Z=v("gap",K)||"",ee=v("relevance_score",K)||"",ne=d(function(){return{ul:function(n){n.node;var i=t(n,["node"]);return r("ol",e({},i,{style:{paddingLeft:"1.25rem",listStyleType:"decimal",margin:0}}))},li:function(n){n.node;var i=t(n,["node"]);return r("li",e({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},ol:function(n){n.node;var i=t(n,["node"]);return r("li",e({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},a:function(n){var o=n.href,l=n.children,a=t(n,["href","children"]);if(!o)return r("a",e({},a,{children:l}));var s=o||"";try{s=decodeURIComponent(o)}catch(e){console.error("Error decoding href",e)}if(s.includes("variant_id=")){var d="",c="",p=s.match(/variant_id=([^?&]+)/);p&&(d=p[1]);var h=s.match(/field_name=([^&]+)/);return h&&(c=h[1]),i("button",e({type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),T(d),M(c),setTimeout(function(){return M(null)},6e3)},style:{background:"none",border:"none",outline:"none",borderRadius:"6px",padding:"1px 4px",color:"#0F172A",cursor:"pointer",fontSize:"13px",fontWeight:500,display:"inline-flex",alignItems:"center",gap:"2px",margin:"0 1px",verticalAlign:"baseline",textDecoration:"none",boxShadow:"none",WebkitAppearance:"none",MozAppearance:"none"},title:"View Comparison"},{children:[l,r("svg",e({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r("path",{d:"M10.2082 8.67708H2.0415M2.0415 8.67708L4.08317 6.63542M2.0415 8.67708L4.08317 10.7188M2.0415 3.57292H10.2082M10.2082 3.57292L8.1665 1.53125M10.2082 3.57292L8.1665 5.61458",stroke:"#0F172A",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}))]}))}return r("a",e({href:o,target:"_blank",rel:"noopener noreferrer",style:{color:"#7C3AED"}},a,{children:l}))}}},[]);s(function(){!z&&!L&&P.length>0&&!P[0].isLoading&&T(P[0].id)},[P,z,L]);var te=a(null),ie=l([]),re=ie[0],oe=ie[1],le=l(!1),ae=le[0],se=le[1],de=l(!1),ce=de[0],pe=de[1];s(function(){var e=V.current;if(e){var n=function(){se(e.scrollLeft>0),pe(e.scrollLeft+e.clientWidth<e.scrollWidth-1)};return n(),e.addEventListener("scroll",n),window.addEventListener("resize",n),function(){e.removeEventListener("scroll",n),window.removeEventListener("resize",n)}}},[P]);var he={title:a(null),scope:a(null),description:a(null),wta:a(null),wnta:a(null)},ge={title:a(null),scope:a(null),description:a(null),wta:a(null),wnta:a(null)};s(function(){if(O){var e="when_to_apply"===O?"wta":"when_not_to_apply"===O?"wnta":O,n=he[e]||ge[e];n&&n.current&&setTimeout(function(){n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}},[O]);var ue=function(e){var n,t,i,r,o,l=null===(n=null==q?void 0:q.rule_difference_comparison)||void 0===n?void 0:n.fields,a="when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e,s=!(!C[a]&&!$[a]);if(!l||!l[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var d=l[e];if(d.mappings){var c=d.mappings[0]||{};return{score:d.score,relation:c.relation||"",highlightsA:(null===(t=c.highlights)||void 0===t?void 0:t.ruleA_spans)||[],highlightsB:(null===(i=c.highlights)||void 0===i?void 0:i.ruleB_spans)||[],hasContent:s}}return{score:d.score,relation:d.relation||"",highlightsA:(null===(r=d.highlights)||void 0===r?void 0:r.ruleA_spans)||[],highlightsB:(null===(o=d.highlights)||void 0===o?void 0:o.ruleB_spans)||[],hasContent:s}},xe=["title","scope","description","when_to_apply","when_not_to_apply"],fe=function(){if(te.current){var e=te.current.getBoundingClientRect(),n=[];xe.forEach(function(t){var i="when_to_apply"===t?he.wta:"when_not_to_apply"===t?he.wnta:he[t],r="when_to_apply"===t?ge.wta:"when_not_to_apply"===t?ge.wnta:ge[t];if(i.current&&r.current){i.current.style.height="auto",r.current.style.height="auto";var o=i.current.getBoundingClientRect(),l=r.current.getBoundingClientRect(),a=Math.max(o.height,l.height);i.current.style.height="".concat(a,"px"),r.current.style.height="".concat(a,"px");var s=i.current.getBoundingClientRect(),d=r.current.getBoundingClientRect(),c=ue(t),p=y(c.score,c.relation,c.hasContent),h=s.top+s.height/2-e.top;n.push({x1:s.right-e.left,y1:h,x2:d.left-e.left,y2:h,style:p})}}),oe(n)}};return s(function(){var e=setTimeout(fe,250);window.addEventListener("resize",fe);var n=null;return te.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){fe()})})).observe(te.current),function(){clearTimeout(e),window.removeEventListener("resize",fe),n&&n.disconnect()}},[C,$,q,R]),i(c,e({sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"hidden"}},{children:[i(c,e({sx:{px:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#FFFFFF",border:"1.5px solid #EEF0F4"}},{children:[i(c,e({sx:{display:"flex",alignItems:"center",gap:1}},{children:[r(h,e({onClick:A,size:"small"},{children:r(u,{})})),r(p,e({sx:{fontSize:"16px",fontWeight:450,color:"#0F172A"}},{children:"Learning Comparison"}))]})),r(h,e({onClick:S,size:"small"},{children:r(c,e({sx:{fontSize:24,lineHeight:.5}},{children:"×"}))}))]})),P.length>0&&i(c,e({sx:{px:3,pb:.25}},{children:[i(c,e({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1}},{children:[r(p,e({sx:{fontSize:"13px",color:"#475569"}},{children:"Choose the Learning you want to compare with the rule you are creating."})),i(c,e({sx:{display:"flex",gap:.5,flexShrink:0,ml:1}},{children:[r(h,e({onClick:function(){return U("left")},size:"small",disabled:!ae},{children:r(u,{size:18})})),r(h,e({onClick:function(){return U("right")},size:"small",disabled:!ce},{children:r(x,{size:18})}))]}))]})),r(c,e({ref:V,sx:{display:"flex",gap:1,overflowX:"auto",pb:.05,"&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"transparent",borderRadius:"10px"},"&::-webkit-scrollbar-thumb:hover":{background:"transparent"}}},{children:P.map(function(e){return r(F,{data:e,isSelected:(null==Y?void 0:Y.id)===e.id,isCognitiveOpen:R,onToggleCognitive:function(){j(function(e){var n=!e;return n&&N.current&&N.current.scrollTo({top:0,behavior:"smooth"}),n})},onClick:function(){return T((n=e).id),k(n),void j(!1);var n}},e.id)})}))]})),r(c,e({ref:N,sx:{flex:1,overflowY:"auto",py:1.5,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",borderTop:J&&G&&R?"none":"1.5px solid #EEF0F4"}},{children:i(c,e({sx:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"}},{children:[J&&G&&R&&r(c,e({sx:{width:"100%",pb:1,animation:"fadeIn 0.2s ease-out","& > div > button":{display:"none !important"},"& > div > div":{marginTop:"0px"}}},{children:r(m,{headerIcon:r(b,{}),reasoning:Q,gap:Z,score:ee,mdComponents:ne,isOpen:!0,onToggle:function(){return j(!1)}})})),i(c,e({ref:te,sx:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative"}},{children:[r("svg",e({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:re.map(function(n,t){var o=(n.x1+n.x2)/2,l=n.y1;return i("g",{children:[r("line",{x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,stroke:n.style.badgeBorder,strokeWidth:"1"}),r("foreignObject",e({x:o-125,y:l-16,width:"250",height:"32"},{children:r(c,e({sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:r(c,e({sx:{fontSize:"11px",bgcolor:n.style.badgeBg,color:n.style.badgeText,border:"1px solid ".concat(n.style.badgeBorder),borderRadius:"12px",px:1.5,py:.25,fontWeight:500,textAlign:"center",whiteSpace:"nowrap"}},{children:n.style.label}))}))}))]},t)})})),i(c,e({sx:{border:"1px dashed #B0B0B0",borderRadius:"8px",bgcolor:"#FFFFFF",display:"flex",flexDirection:"column",position:"relative",zIndex:2,filter:"drop-shadow(0px 2px 4px #F2F2F2)",minWidth:0}},{children:[r(c,e({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px dashed #B0B0B0",borderRadius:"8px 8px 0 0",display:"flex",minHeight:"24px",alignItems:"center"}},{children:r(p,e({sx:{fontSize:"16px",fontWeight:500,color:"#19213D"}},{children:"Learning You’re Creating"}))})),r(c,e({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:xe.map(function(e){var n=ue(e),t=y(n.score,n.relation,n.hasContent),i="when_to_apply"===e?he.wta:"when_not_to_apply"===e?he.wnta:he[e],o=C["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return r(w,{ref:i,label:"when_to_apply"===e?"When to apply":"when_not_to_apply"===e?"When NOT to Apply":e.charAt(0).toUpperCase()+e.slice(1).replace("_"," "),content:o,highlights:n.highlightsA,styleVariant:t,isHighlighted:O===e},"left-".concat(e))})}))]})),r(c,{sx:{width:"1px"}}),i(c,e({sx:{border:"1px solid #E3E6EA",borderRadius:"8px",bgcolor:"#FFFFFF",boxShadow:"0px 1px 4px #F7F4FE",position:"relative",zIndex:2,display:"flex",flexDirection:"column",minWidth:0}},{children:[r(c,e({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"24px",display:"flex",alignItems:"center"}},{children:i(p,e({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",display:"flex",alignItems:"center",gap:1}},{children:[r("div",e({style:{width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"}},{children:r(f,{})})),"Existing Learning"]}))})),r(c,e({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:xe.map(function(e){var n=ue(e),t=y(n.score,n.relation,n.hasContent),i="when_to_apply"===e?ge.wta:"when_not_to_apply"===e?ge.wnta:ge[e],o=$["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return r(w,{ref:i,label:"when_to_apply"===e?"When to apply":"when_not_to_apply"===e?"When NOT to Apply":e.charAt(0).toUpperCase()+e.slice(1).replace("_"," "),content:o,highlights:n.highlightsB,styleVariant:t,isHighlighted:O===e},"right-".concat(e))})}))]}))]}))]}))}))]}))};export{_ as default};
|
|
1
|
+
import{__assign as e,__spreadArray as n,__rest as t}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import o,{useState as l,useRef as a,useEffect as s,useMemo as c}from"react";import{Box as d,Typography as p,IconButton as h,Skeleton as g}from"@mui/material";import{ArrowLeft as u,ArrowRight as x}from"lucide-react";import f from"../../_svg/SparkleIcon.js";import{CognitiveDecisioningCard as m}from"@e-llm-studio/citation";import{ButtonCognitiveIcon as b}from"../../_svg/ButtonCognitiveIcon.js";import{getCognitiveDecisioningThemeStyles as v}from"../../cognitiveDecisioningThemeStyles.js";var y=function(e,n){if(!n)return null;var t=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),i=n.match(t);return i?i[1].replace(/\\n/g,"\n"):null},w=function(e,n,t){var i=100*e;if(!t)return{bg:"#FFFFFF",border:"#E2E8F0",badgeBg:"#F1F5F9",badgeBorder:"#CBD5E1",badgeText:"#64748B",highlightBg:"transparent",label:"Not Defined"};var r=function(e){return e.split("_").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(" ")}(n);return i>=70?{bg:"#FEF2F2",border:"#FEE2E2",badgeBg:"#FEF2F2",badgeBorder:"#FECACA",badgeText:"#B91C1C",highlightBg:"#FECACA",label:r}:i>=40?{bg:"#FFFCF6",border:"#FFDD80",badgeBg:"#FEF9C3",badgeBorder:"#FEF08A",badgeText:"#A16207",highlightBg:"#FDDEB3",label:r}:{bg:"#FFFFFF",border:"#E2E8F0",badgeBg:"#F1F5F9",badgeBorder:"#CBD5E1",badgeText:"#64748B",highlightBg:"transparent",label:r}},F=o.forwardRef(function(n,t){var o=n.label,l=n.content,a=n.highlights,s=void 0===a?[]:a,c=n.styleVariant,h=n.isHighlighted,g=void 0!==h&&h,u=Array.isArray(l)?l.join("\n"):l||"",x="#B91C1C"===c.badgeText?{borderColor:"#EF4444",shadow:"rgba(239, 68, 68, 0.25)"}:"#A16207"===c.badgeText?{borderColor:"#F59E0B",shadow:"rgba(245, 158, 11, 0.25)"}:{borderColor:"#6366F1",shadow:"rgba(99, 102, 241, 0.25)"};return i(d,e({sx:{mb:1.5}},{children:[r(p,e({sx:{fontSize:"12px",color:"#19213D",mb:.5,fontWeight:500,lineHeight:"130%"}},{children:o})),r(d,e({ref:t,sx:{p:"4px 12px",borderRadius:"6px",border:g?"1.5px solid ".concat(x.borderColor):"1px solid ".concat(c.border),boxShadow:g?"0px 0px 0px 2px ".concat(x.shadow):"none",bgcolor:c.bg,fontSize:"13px",color:"#0B0E1A",lineHeight:1.4,minHeight:"24px",display:"flex",alignItems:"center",whiteSpace:"pre-line",wordBreak:"break-word"}},{children:r(d,{children:function(){if(!u)return r(p,e({sx:{color:"#94A3B8",fontSize:"12px",fontStyle:"italic"}},{children:"Not Defined"}));if(!s||0===s.length)return u;var n=s.filter(function(e){return e&&e.length>0}).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(0===n.length)return u;var t=new RegExp("(".concat(n.join("|"),")"),"gi");return u.split(t).map(function(n,t){return s.some(function(e){return e&&e.toLowerCase()===n.toLowerCase()})?r(d,e({component:"span",sx:{bgcolor:c.highlightBg,borderRadius:"2px",px:"2px"}},{children:n}),t):n})}()})}))]}))}),_=function(n){var t=n.data,o=n.isSelected,l=n.isCognitiveOpen,a=n.onToggleCognitive,s=n.onClick,c=t.summaryText||t.description||"",h=c.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),u=h?c.replace(h[0],"").trim():c,x=!!h;return i(d,e({id:"variant-card-".concat(t.id),onClick:s,sx:{minWidth:"280px",maxWidth:"280px",p:2,m:.5,bgcolor:o?"#EFF6FF99":"#FFFFFF",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s",display:"flex",flexDirection:"column",gap:1,flexShrink:0,opacity:t.isLoading?.7:1,border:o?"1.4px solid #2563EB":null,boxShadow:o?"none":"0px 2px 4px 0px #19213D14","&:hover":{borderColor:o?"#2563EB":"#CBD5E1",boxShadow:o?"none":"0px 4px 8px 0px #19213D1F"}}},{children:[r(d,e({sx:{display:"flex",alignItems:"center",gap:1.5}},{children:t.isLoading?r(g,{variant:"rounded",width:80,height:20}):i(d,e({sx:{bgcolor:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:600,px:1,py:.5,borderRadius:"100px",border:"1px solid #FFE1E1"}},{children:[void 0!==t.similarity?t.similarity:0,"% Similarity"]}))})),i(d,e({sx:{display:"flex",flexDirection:"column",gap:1}},{children:[i(d,e({sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"nowrap"}},{children:[r(p,e({title:t.title,sx:{fontWeight:500,fontSize:"14px",color:"#19213D",lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block"}},{children:t.title})),t.scope&&r(d,e({sx:{flexShrink:0,fontSize:"10px",fontWeight:600,color:"#19213D",bgcolor:"#FFF",border:"1px solid #EDEFF2",px:.75,py:.25,borderRadius:"6px",lineHeight:1.4,whiteSpace:"nowrap"}},{children:t.scope}))]})),t.isLoading?i(d,{children:[r(g,{width:"90%"}),r(g,{width:"60%"})]}):i(d,e({title:u,sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[r(p,e({sx:{fontWeight:400,fontSize:"13px",color:"#666F8D",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"}},{children:u})),x&&i(d,e({onClick:function(e){e.stopPropagation(),o||s(),a()},sx:{display:"inline-flex",alignItems:"center",alignSelf:"flex-start",gap:"4px",padding:"2px 6px",borderRadius:"4px",cursor:"pointer",transition:"all 0.2s ease",marginLeft:"-4px","&:hover":{backgroundColor:"#F1F5F9"}}},{children:[r("div",e({style:{width:"13px",height:"13px",display:"flex",alignItems:"center"}},{children:r(b,{})})),r("svg",e({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:o&&l?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:r("path",{d:"M6 9l6 6 6-6"})}))]}))]}))]}))]}))},C=function(o){var g,C,B=o.proposedRule,E=o.variants,k=void 0===E?[]:E,S=o.onSelectVariant;o.onAddAsVariant;var A=o.onSkip,D=o.onBack,L=o.targetVariantId,W=o.highlightedField,T=l(L||null),z=T[0],I=T[1],R=l(!1),j=R[0],H=R[1],O=l(null),M=O[0],V=O[1],N=a(null),U=a(null);s(function(){if(L&&I(L),V(null!=W?W:null),W){var e=setTimeout(function(){return V(null)},6e3);return function(){return clearTimeout(e)}}},[L,W]);var P=function(e){N.current&&N.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})},Y=c(function(){return n([],k,!0).sort(function(e,n){return(n.similarity||0)-(e.similarity||0)})},[k]),$=c(function(){if(z){var e=String(z).trim();return k.find(function(n){return n.id&&String(n.id).trim()===e})||Y[0]}return Y.length>0?Y[0]:null},[z,k,Y]);s(function(){if(z&&N.current){var e=z.trim();setTimeout(function(){var n=document.getElementById("variant-card-".concat(e)),t=N.current;if(n&&t){var i=n.offsetLeft-t.offsetLeft-t.clientWidth/2+n.clientWidth/2;t.scrollTo({left:i,behavior:"smooth"})}},150)}},[z,Y]);var q=$||{title:"",scope:"",description:"",wta:"",wnta:"",variantType:"Default"},J=null==$?void 0:$.analysis,X=(null===(C=null===(g=null==J?void 0:J.rule_difference_comparison)||void 0===g?void 0:g.summary)||void 0===C?void 0:C.overall_summary)||"",G=X.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),K=!!G,Q=G?G[1]:"",Z=y("reason",Q)||"",ee=y("gap",Q)||"",ne=y("relevance_score",Q)||"",te=c(function(){return{ul:function(n){n.node;var i=t(n,["node"]);return r("ol",e({},i,{style:{paddingLeft:"1.25rem",listStyleType:"decimal",margin:0}}))},li:function(n){n.node;var i=t(n,["node"]);return r("li",e({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},ol:function(n){n.node;var i=t(n,["node"]);return r("li",e({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},a:function(n){var o=n.href,l=n.children,a=t(n,["href","children"]);if(!o)return r("a",e({},a,{children:l}));var s=o||"";try{s=decodeURIComponent(o)}catch(e){console.error("Error decoding href",e)}if(s.includes("variant_id=")){var c="",d="",p=s.match(/variant_id=([^?&]+)/);p&&(c=p[1]);var h=s.match(/field_name=([^&]+)/);return h&&(d=h[1]),i("button",e({type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),I(c),V(d),setTimeout(function(){return V(null)},6e3)},style:{background:"none",border:"none",outline:"none",borderRadius:"6px",padding:"1px 4px",color:"#0F172A",cursor:"pointer",fontSize:"13px",fontWeight:500,display:"inline-flex",alignItems:"center",gap:"2px",margin:"0 1px",verticalAlign:"baseline",textDecoration:"none",boxShadow:"none",WebkitAppearance:"none",MozAppearance:"none"},title:"View Comparison"},{children:[l,r("svg",e({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r("path",{d:"M10.2082 8.67708H2.0415M2.0415 8.67708L4.08317 6.63542M2.0415 8.67708L4.08317 10.7188M2.0415 3.57292H10.2082M10.2082 3.57292L8.1665 1.53125M10.2082 3.57292L8.1665 5.61458",stroke:"#0F172A",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}))]}))}return r("a",e({href:o,target:"_blank",rel:"noopener noreferrer",style:{color:"#7C3AED"}},a,{children:l}))}}},[]);s(function(){!z&&!L&&Y.length>0&&!Y[0].isLoading&&I(Y[0].id)},[Y,z,L]);var ie=a(null),re=l([]),oe=re[0],le=re[1],ae=l(!1),se=ae[0],ce=ae[1],de=l(!1),pe=de[0],he=de[1];s(function(){var e=N.current;if(e){var n=function(){ce(e.scrollLeft>0),he(e.scrollLeft+e.clientWidth<e.scrollWidth-1)};return n(),e.addEventListener("scroll",n),window.addEventListener("resize",n),function(){e.removeEventListener("scroll",n),window.removeEventListener("resize",n)}}},[Y]);var ge={title:a(null),scope:a(null),description:a(null),wta:a(null),wnta:a(null)},ue={title:a(null),scope:a(null),description:a(null),wta:a(null),wnta:a(null)};s(function(){if(M){var e="when_to_apply"===M?"wta":"when_not_to_apply"===M?"wnta":M,n=ge[e]||ue[e];n&&n.current&&setTimeout(function(){n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}},[M]);var xe=function(e){var n,t,i,r,o,l=null===(n=null==J?void 0:J.rule_difference_comparison)||void 0===n?void 0:n.fields,a="when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e,s=!(!B[a]&&!q[a]);if(!l||!l[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var c=l[e];if(c.mappings){var d=c.mappings[0]||{};return{score:c.score,relation:d.relation||"",highlightsA:(null===(t=d.highlights)||void 0===t?void 0:t.ruleA_spans)||[],highlightsB:(null===(i=d.highlights)||void 0===i?void 0:i.ruleB_spans)||[],hasContent:s}}return{score:c.score,relation:c.relation||"",highlightsA:(null===(r=c.highlights)||void 0===r?void 0:r.ruleA_spans)||[],highlightsB:(null===(o=c.highlights)||void 0===o?void 0:o.ruleB_spans)||[],hasContent:s}},fe=["title","scope","description","when_to_apply","when_not_to_apply"],me=function(){if(ie.current){var e=ie.current.getBoundingClientRect(),n=[];fe.forEach(function(t){var i="when_to_apply"===t?ge.wta:"when_not_to_apply"===t?ge.wnta:ge[t],r="when_to_apply"===t?ue.wta:"when_not_to_apply"===t?ue.wnta:ue[t];if(i.current&&r.current){i.current.style.height="auto",r.current.style.height="auto";var o=i.current.getBoundingClientRect(),l=r.current.getBoundingClientRect(),a=Math.max(o.height,l.height);i.current.style.height="".concat(a,"px"),r.current.style.height="".concat(a,"px");var s=i.current.getBoundingClientRect(),c=r.current.getBoundingClientRect(),d=xe(t),p=w(d.score,d.relation,d.hasContent),h=s.top+s.height/2-e.top;n.push({x1:s.right-e.left,y1:h,x2:c.left-e.left,y2:h,style:p})}}),le(n)}};return s(function(){var e=setTimeout(me,250);window.addEventListener("resize",me);var n=null;return ie.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){me()})})).observe(ie.current),function(){clearTimeout(e),window.removeEventListener("resize",me),n&&n.disconnect()}},[B,q,J,j]),i(d,e({sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"hidden"}},{children:[i(d,e({sx:{px:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#FFFFFF",border:"1.5px solid #EEF0F4"}},{children:[i(d,e({sx:{display:"flex",alignItems:"center",gap:1}},{children:[r(h,e({onClick:D,size:"small"},{children:r(u,{})})),r(p,e({sx:{fontSize:"16px",fontWeight:450,color:"#0F172A"}},{children:"Learning Comparison"}))]})),r(h,e({onClick:A,size:"small"},{children:r(d,e({sx:{fontSize:24,lineHeight:.5}},{children:"×"}))}))]})),Y.length>0&&i(d,e({sx:{px:3,pb:.25}},{children:[i(d,e({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1}},{children:[r(p,e({sx:{fontSize:"13px",color:"#475569"}},{children:"Choose the Learning you want to compare with the rule you are creating."})),i(d,e({sx:{display:"flex",gap:.5,flexShrink:0,ml:1}},{children:[r(h,e({onClick:function(){return P("left")},size:"small",disabled:!se},{children:r(u,{size:18})})),r(h,e({onClick:function(){return P("right")},size:"small",disabled:!pe},{children:r(x,{size:18})}))]}))]})),r(d,e({ref:N,sx:{display:"flex",gap:1,overflowX:"auto",pb:.05,"&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"transparent",borderRadius:"10px"},"&::-webkit-scrollbar-thumb:hover":{background:"transparent"}}},{children:Y.map(function(e){return r(_,{data:e,isSelected:(null==$?void 0:$.id)===e.id,isCognitiveOpen:j,onToggleCognitive:function(){H(function(e){var n=!e;return n&&U.current&&U.current.scrollTo({top:0,behavior:"smooth"}),n})},onClick:function(){return I((n=e).id),S(n),void H(!1);var n}},e.id)})}))]})),r(d,e({ref:U,sx:{flex:1,overflowY:"auto",py:1.5,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",borderTop:X&&K&&j?"none":"1.5px solid #EEF0F4"}},{children:i(d,e({sx:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"}},{children:[X&&K&&j&&r(d,e({sx:{width:"100%",pb:1,animation:"fadeIn 0.2s ease-out","& > div > button":{display:"none !important"},"& > div > div":{marginTop:"0px"}}},{children:r(m,{headerIcon:r(b,{}),reasoning:Z,gap:ee,score:ne,mdComponents:te,isOpen:!0,onToggle:function(){return H(!1)},styles:v()})})),i(d,e({ref:ie,sx:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative"}},{children:[r("svg",e({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:oe.map(function(n,t){var o=(n.x1+n.x2)/2,l=n.y1;return i("g",{children:[r("line",{x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,stroke:n.style.badgeBorder,strokeWidth:"1"}),r("foreignObject",e({x:o-125,y:l-16,width:"250",height:"32"},{children:r(d,e({sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:r(d,e({sx:{fontSize:"11px",bgcolor:n.style.badgeBg,color:n.style.badgeText,border:"1px solid ".concat(n.style.badgeBorder),borderRadius:"12px",px:1.5,py:.25,fontWeight:500,textAlign:"center",whiteSpace:"nowrap"}},{children:n.style.label}))}))}))]},t)})})),i(d,e({sx:{border:"1px dashed #B0B0B0",borderRadius:"8px",bgcolor:"#FFFFFF",display:"flex",flexDirection:"column",position:"relative",zIndex:2,filter:"drop-shadow(0px 2px 4px #F2F2F2)",minWidth:0}},{children:[r(d,e({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px dashed #B0B0B0",borderRadius:"8px 8px 0 0",display:"flex",minHeight:"24px",alignItems:"center"}},{children:r(p,e({sx:{fontSize:"16px",fontWeight:500,color:"#19213D"}},{children:"Learning You’re Creating"}))})),r(d,e({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:fe.map(function(e){var n=xe(e),t=w(n.score,n.relation,n.hasContent),i="when_to_apply"===e?ge.wta:"when_not_to_apply"===e?ge.wnta:ge[e],o=B["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return r(F,{ref:i,label:"when_to_apply"===e?"When to apply":"when_not_to_apply"===e?"When NOT to Apply":e.charAt(0).toUpperCase()+e.slice(1).replace("_"," "),content:o,highlights:n.highlightsA,styleVariant:t,isHighlighted:M===e},"left-".concat(e))})}))]})),r(d,{sx:{width:"1px"}}),i(d,e({sx:{border:"1px solid #E3E6EA",borderRadius:"8px",bgcolor:"#FFFFFF",boxShadow:"0px 1px 4px #F7F4FE",position:"relative",zIndex:2,display:"flex",flexDirection:"column",minWidth:0}},{children:[r(d,e({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"24px",display:"flex",alignItems:"center"}},{children:i(p,e({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",display:"flex",alignItems:"center",gap:1}},{children:[r("div",e({style:{width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"}},{children:r(f,{})})),"Existing Learning"]}))})),r(d,e({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:fe.map(function(e){var n=xe(e),t=w(n.score,n.relation,n.hasContent),i="when_to_apply"===e?ue.wta:"when_not_to_apply"===e?ue.wnta:ue[e],o=q["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return r(F,{ref:i,label:"when_to_apply"===e?"When to apply":"when_not_to_apply"===e?"When NOT to Apply":e.charAt(0).toUpperCase()+e.slice(1).replace("_"," "),content:o,highlights:n.highlightsB,styleVariant:t,isHighlighted:M===e},"right-".concat(e))})}))]}))]}))]}))}))]}))};export{C as default};
|
|
2
2
|
//# sourceMappingURL=RuleComparisonNew.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import{BPARenderer as t}from"../../../../../schema-driven/BPARenderer.js";import{useTeachMeConfigStore as i}from"../../../../LearningManagement/store/useLMSConfigStore.js";var n=function(n){var o,a,l=n.state,d=n.handlers,s=n.uiState,u=i(function(e){var r;return null===(r=e.teachMeConfig)||void 0===r?void 0:r.learningMetadataComponents}),m=null!==(a=null===(o=null==u?void 0:u.teachMe)||void 0===o?void 0:o.properties)&&void 0!==a?a:null==u?void 0:u.properties;return m?r("div",e({style:{display:"flex",flexDirection:"column",gap:12,width:"100%",minWidth:0,maxWidth:"100%",boxSizing:"border-box"}},{children:r(t,{properties:m,uiState:s,state:l,handlers:d})})):null};export{n as SchemaDrivenCreateRule,n as default};
|
|
2
|
+
//# sourceMappingURL=SchemaDrivenCreateRule.js.map
|