@e-llm-studio/instant-learning 1.3.0-alpha.296 → 1.3.0-alpha.298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/6fbbe065ef78c384.gif +0 -0
- package/dist/cjs/6fbbe065ef78c384.gif +0 -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/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/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/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/BaseTemplate/BaseTemplate.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.js +1 -1
- 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/_components/templates/WorkflowComposer/WorkflowComposer.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/helpers/message-rendering-utils.js +1 -1
- 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/ChangeLogDiff.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagementTest.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/cjs/features/LearningManagement/RBAC/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/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/Sidebar.js +1 -1
- package/dist/cjs/features/LearningManagement/SidebarWrapper.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/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/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/public/ThinkingBulbIcon.gif.js +2 -0
- package/dist/cjs/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +1 -0
- package/dist/cjs/features/LearningManagement/queries/useLMSConfigQuery.js +1 -1
- 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/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/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/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/RadioTrafficLearning/RadioTrafficLearningRenderer.js +1 -1
- 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/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/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/ScopeSection/ScopeSection.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.js +1 -1
- 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/_components/templates/WorkflowComposer/WorkflowComposer.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +1 -0
- package/dist/features/IL-OTJ/helpers/message-rendering-utils.js +1 -1
- 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/ChangeLogDiff.js +1 -1
- package/dist/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/features/LearningManagement/LearningManagementTest.js +1 -1
- package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/features/LearningManagement/RBAC/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/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/Sidebar.js +1 -1
- package/dist/features/LearningManagement/SidebarWrapper.js +1 -1
- package/dist/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/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/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/public/ThinkingBulbIcon.gif.js +2 -0
- package/dist/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +1 -0
- package/dist/features/LearningManagement/queries/useLMSConfigQuery.js +1 -1
- 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/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/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/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/RadioTrafficLearning/RadioTrafficLearningRenderer.js +1 -1
- package/dist/service/InstantLearningService.js +1 -1
- package/dist/types/src/ThinkingBulbIconComponent.d.ts +4 -0
- package/dist/types/src/ThinkingBulbIconComponent.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 +0 -16
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts +1 -54
- 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 +1 -15
- 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 +1 -10
- 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 +0 -4
- 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 +1 -8
- 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 +1 -9
- 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/atoms/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/index.d.ts +0 -1
- 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 +1 -4
- 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 +1 -2
- 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/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/RuleComparisonNew.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.d.ts +1 -2
- 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 +0 -7
- 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/InstantLearning/_components/ContextualLearningForm.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearning/_components/LearningDetailsForm.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/AuditLog/AuditLog.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +2 -33
- 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 +2 -12
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RBAC/AccessManagementPanel.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/RBAC/AccessManagementPanel.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RBAC/AccessPanel.d.ts +2 -0
- 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 +0 -3
- 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/RenameScopeModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts +0 -2
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleTierList.d.ts +0 -2
- package/dist/types/src/features/LearningManagement/RuleContent/RuleTierList.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/TierCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts +0 -4
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/Sidebar.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/Sidebar.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts +0 -4
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +3 -44
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts +0 -17
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeSkeletonLoader.d.ts +0 -4
- 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 +1 -2
- 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 +0 -2
- 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 +1 -2
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/config.d.ts +0 -15
- package/dist/types/src/features/LearningManagement/config.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/constants.d.ts +0 -10
- package/dist/types/src/features/LearningManagement/constants.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts +0 -11
- package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts +8 -11
- package/dist/types/src/features/LearningManagement/queries/useApprovalQueries.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/queries/useLMSConfigQuery.d.ts +1 -8
- package/dist/types/src/features/LearningManagement/queries/useLMSConfigQuery.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts +0 -7
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useLMSConfigStore.d.ts +9 -162
- package/dist/types/src/features/LearningManagement/store/useLMSConfigStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts +0 -15
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/types.d.ts +8 -72
- package/dist/types/src/features/LearningManagement/types.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 +0 -50
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/Default/DefaultTeachMeRenderer.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -1
- package/dist/types/src/routes/ErrorBoundary.d.ts +22 -0
- package/dist/types/src/routes/ErrorBoundary.d.ts.map +1 -0
- package/dist/types/src/routes/Routes.d.ts +3 -0
- package/dist/types/src/routes/Routes.d.ts.map +1 -0
- package/dist/types/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 +1 -12
- 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 +3 -3
- package/dist/ComponentRegistry.js +0 -2
- package/dist/ComponentRegistry.js.map +0 -1
- package/dist/ContinueWithTemplateModal.js +0 -2
- package/dist/ContinueWithTemplateModal.js.map +0 -1
- package/dist/ContinueWithTemplateModal.module.css.js +0 -2
- package/dist/ContinueWithTemplateModal.module.css.js.map +0 -1
- package/dist/ILMarketplaceWrapper.js +0 -2
- package/dist/ILMarketplaceWrapper.js.map +0 -1
- package/dist/ILMarketplaceWrapper.module.css.js +0 -2
- package/dist/ILMarketplaceWrapper.module.css.js.map +0 -1
- package/dist/api/transport.js +0 -2
- package/dist/api/transport.js.map +0 -1
- package/dist/cjs/ComponentRegistry.js +0 -2
- package/dist/cjs/ComponentRegistry.js.map +0 -1
- package/dist/cjs/ContinueWithTemplateModal.js +0 -2
- package/dist/cjs/ContinueWithTemplateModal.js.map +0 -1
- package/dist/cjs/ContinueWithTemplateModal.module.css.js +0 -2
- package/dist/cjs/ContinueWithTemplateModal.module.css.js.map +0 -1
- package/dist/cjs/ILMarketplaceWrapper.js +0 -2
- package/dist/cjs/ILMarketplaceWrapper.js.map +0 -1
- package/dist/cjs/ILMarketplaceWrapper.module.css.js +0 -2
- package/dist/cjs/ILMarketplaceWrapper.module.css.js.map +0 -1
- package/dist/cjs/api/transport.js +0 -2
- package/dist/cjs/api/transport.js.map +0 -1
- package/dist/cjs/features/IL-OTJ/_components/_svg/EditPencilIcon.js +0 -2
- package/dist/cjs/features/IL-OTJ/_components/_svg/EditPencilIcon.js.map +0 -1
- package/dist/cjs/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js +0 -2
- package/dist/cjs/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js.map +0 -1
- package/dist/cjs/features/IL-OTJ/_components/hooks/usePendingEditHighlight.js +0 -2
- package/dist/cjs/features/IL-OTJ/_components/hooks/usePendingEditHighlight.js.map +0 -1
- package/dist/cjs/features/IL-OTJ/_components/hooks/useVariantEditSession.js +0 -2
- package/dist/cjs/features/IL-OTJ/_components/hooks/useVariantEditSession.js.map +0 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.js +0 -2
- package/dist/cjs/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.js.map +0 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js +0 -2
- package/dist/cjs/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryContent.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryContent.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryTab.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryTab.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineTooltip.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/GuidelineTooltip.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/LearningManagementWrapper.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/LearningManagementWrapper.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.module.css.js +0 -2
- package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.module.css.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/constants.js +0 -2
- package/dist/cjs/features/IL-marketplace/constants.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/hooks/useControllableState.js +0 -2
- package/dist/cjs/features/IL-marketplace/hooks/useControllableState.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/hooks/useDeleteGuidelineMutation.js +0 -2
- package/dist/cjs/features/IL-marketplace/hooks/useDeleteGuidelineMutation.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/hooks/useGuidelineSelection.js +0 -2
- package/dist/cjs/features/IL-marketplace/hooks/useGuidelineSelection.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.js +0 -2
- package/dist/cjs/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/hooks/useMarketplacePublishILKBData.js +0 -2
- package/dist/cjs/features/IL-marketplace/hooks/useMarketplacePublishILKBData.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/hooks/usePublishingFlowConfig.js +0 -2
- package/dist/cjs/features/IL-marketplace/hooks/usePublishingFlowConfig.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/icons/GuidelineSpinner.js +0 -2
- package/dist/cjs/features/IL-marketplace/icons/GuidelineSpinner.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/marketplaceTheme.js +0 -2
- package/dist/cjs/features/IL-marketplace/marketplaceTheme.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/queryClient.js +0 -2
- package/dist/cjs/features/IL-marketplace/queryClient.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/services/IL-marketplace.api.js +0 -2
- package/dist/cjs/features/IL-marketplace/services/IL-marketplace.api.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/services/guideline.cart.api.js +0 -2
- package/dist/cjs/features/IL-marketplace/services/guideline.cart.api.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/services/guideline.core.api.js +0 -2
- package/dist/cjs/features/IL-marketplace/services/guideline.core.api.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/services/guideline.runtime.config.js +0 -2
- package/dist/cjs/features/IL-marketplace/services/guideline.runtime.config.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/services/guideline.session.js +0 -2
- package/dist/cjs/features/IL-marketplace/services/guideline.session.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/services/instant-learning.api.js +0 -2
- package/dist/cjs/features/IL-marketplace/services/instant-learning.api.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/store/usePublishTemplateStore.js +0 -2
- package/dist/cjs/features/IL-marketplace/store/usePublishTemplateStore.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/store/usePublishingFlowConfigStore.js +0 -2
- package/dist/cjs/features/IL-marketplace/store/usePublishingFlowConfigStore.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/utils/guidelineFiles.js +0 -2
- package/dist/cjs/features/IL-marketplace/utils/guidelineFiles.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/utils/guidelineOverlay.js +0 -2
- package/dist/cjs/features/IL-marketplace/utils/guidelineOverlay.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/utils/microfrontend.js +0 -2
- package/dist/cjs/features/IL-marketplace/utils/microfrontend.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/utils/publishingFlow.js +0 -2
- package/dist/cjs/features/IL-marketplace/utils/publishingFlow.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/utils/session.js +0 -2
- package/dist/cjs/features/IL-marketplace/utils/session.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/utils.js +0 -2
- package/dist/cjs/features/IL-marketplace/utils.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/workspace/useGuidelineWorkspace.js +0 -2
- package/dist/cjs/features/IL-marketplace/workspace/useGuidelineWorkspace.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/workspace/workspace.context.js +0 -2
- package/dist/cjs/features/IL-marketplace/workspace/workspace.context.js.map +0 -1
- package/dist/cjs/features/IL-marketplace/workspace/workspace.runtime.js +0 -2
- package/dist/cjs/features/IL-marketplace/workspace/workspace.runtime.js.map +0 -1
- package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.module.css.js +0 -2
- package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.module.css.js.map +0 -1
- package/dist/cjs/features/LearningManagement/HumanChanges/HumanChange.js +0 -2
- package/dist/cjs/features/LearningManagement/HumanChanges/HumanChange.js.map +0 -1
- package/dist/cjs/features/LearningManagement/RuleContent/DraftsAccordion.js +0 -2
- package/dist/cjs/features/LearningManagement/RuleContent/DraftsAccordion.js.map +0 -1
- package/dist/cjs/features/LearningManagement/RuleContent/InstructionPromptBlock.js +0 -2
- package/dist/cjs/features/LearningManagement/RuleContent/InstructionPromptBlock.js.map +0 -1
- package/dist/cjs/features/LearningManagement/ScopeSelector.js +0 -2
- package/dist/cjs/features/LearningManagement/ScopeSelector.js.map +0 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModalDynamic.js +0 -2
- package/dist/cjs/features/LearningManagement/components/InstantLearningModalDynamic.js.map +0 -1
- package/dist/cjs/features/LearningManagement/components/PromptTextEditor.js +0 -2
- package/dist/cjs/features/LearningManagement/components/PromptTextEditor.js.map +0 -1
- package/dist/cjs/features/LearningManagement/store/useExternalWorkflowStore.js +0 -2
- package/dist/cjs/features/LearningManagement/store/useExternalWorkflowStore.js.map +0 -1
- package/dist/cjs/features/LearningManagement/styles/DraftsAccordion.module.css.js +0 -2
- package/dist/cjs/features/LearningManagement/styles/DraftsAccordion.module.css.js.map +0 -1
- package/dist/cjs/features/LearningManagement/styles/PromptTextEditor.module.css.js +0 -2
- package/dist/cjs/features/LearningManagement/styles/PromptTextEditor.module.css.js.map +0 -1
- package/dist/cjs/features/LearningManagement/utils/learningFlow.js +0 -2
- package/dist/cjs/features/LearningManagement/utils/learningFlow.js.map +0 -1
- package/dist/cjs/features/LearningManagement/utils/learningMetadataUtils.js +0 -2
- package/dist/cjs/features/LearningManagement/utils/learningMetadataUtils.js.map +0 -1
- package/dist/cjs/features/LearningManagement/utils/saveDraft.js +0 -2
- package/dist/cjs/features/LearningManagement/utils/saveDraft.js.map +0 -1
- package/dist/cjs/schema-driven/BPARenderer.js +0 -2
- package/dist/cjs/schema-driven/BPARenderer.js.map +0 -1
- package/dist/cjs/schema-driven/FallbackField.js +0 -2
- package/dist/cjs/schema-driven/FallbackField.js.map +0 -1
- package/dist/cjs/schema-driven/components/ConditionSectionField.js +0 -2
- package/dist/cjs/schema-driven/components/ConditionSectionField.js.map +0 -1
- package/dist/cjs/schema-driven/components/ConfigSectionField.js +0 -2
- package/dist/cjs/schema-driven/components/ConfigSectionField.js.map +0 -1
- package/dist/cjs/schema-driven/components/DropdownSectionField.js +0 -2
- package/dist/cjs/schema-driven/components/DropdownSectionField.js.map +0 -1
- package/dist/cjs/schema-driven/components/GlobalSetupAccordionField.js +0 -2
- package/dist/cjs/schema-driven/components/GlobalSetupAccordionField.js.map +0 -1
- package/dist/cjs/schema-driven/components/GroupEditRow.js +0 -2
- package/dist/cjs/schema-driven/components/GroupEditRow.js.map +0 -1
- package/dist/cjs/schema-driven/components/PromptTextEditorField.js +0 -2
- package/dist/cjs/schema-driven/components/PromptTextEditorField.js.map +0 -1
- package/dist/cjs/schema-driven/components/ScopeSectionField.js +0 -2
- package/dist/cjs/schema-driven/components/ScopeSectionField.js.map +0 -1
- package/dist/cjs/schema-driven/components/TextInputField.js +0 -2
- package/dist/cjs/schema-driven/components/TextInputField.js.map +0 -1
- package/dist/cjs/schema-driven/components/VariantListField.js +0 -2
- package/dist/cjs/schema-driven/components/VariantListField.js.map +0 -1
- package/dist/cjs/schema-driven/hooks/useParentEditEnabled.js +0 -2
- package/dist/cjs/schema-driven/hooks/useParentEditEnabled.js.map +0 -1
- package/dist/cjs/schema-driven/hooks/useSectionEditSession.js +0 -2
- package/dist/cjs/schema-driven/hooks/useSectionEditSession.js.map +0 -1
- package/dist/cjs/schema-driven/primitives/Accordion.js +0 -2
- package/dist/cjs/schema-driven/primitives/Accordion.js.map +0 -1
- package/dist/cjs/schema-driven/store/useDynamicFormStore.js +0 -2
- package/dist/cjs/schema-driven/store/useDynamicFormStore.js.map +0 -1
- package/dist/cjs/schema-driven/utils/PayloadUtils.js +0 -2
- package/dist/cjs/schema-driven/utils/PayloadUtils.js.map +0 -1
- package/dist/cjs/schema-driven/utils/aiReasoning.js +0 -2
- package/dist/cjs/schema-driven/utils/aiReasoning.js.map +0 -1
- package/dist/cjs/schema-driven/utils/conditionText.js +0 -2
- package/dist/cjs/schema-driven/utils/conditionText.js.map +0 -1
- package/dist/cjs/schema-driven/utils/editLock.js +0 -2
- package/dist/cjs/schema-driven/utils/editLock.js.map +0 -1
- package/dist/features/IL-OTJ/_components/_svg/EditPencilIcon.js +0 -2
- package/dist/features/IL-OTJ/_components/_svg/EditPencilIcon.js.map +0 -1
- package/dist/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js +0 -2
- package/dist/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js.map +0 -1
- package/dist/features/IL-OTJ/_components/hooks/usePendingEditHighlight.js +0 -2
- package/dist/features/IL-OTJ/_components/hooks/usePendingEditHighlight.js.map +0 -1
- package/dist/features/IL-OTJ/_components/hooks/useVariantEditSession.js +0 -2
- package/dist/features/IL-OTJ/_components/hooks/useVariantEditSession.js.map +0 -1
- package/dist/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.js +0 -2
- package/dist/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.js.map +0 -1
- package/dist/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js +0 -2
- package/dist/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineCart.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineCart.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineCart.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineCart.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineCartItem.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineCartItem.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineCartItem.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineCartItem.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineHeader.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineHeader.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineHeader.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineHeader.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineIconButton.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineIconButton.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineIconButton.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineIconButton.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineLibrary.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineLibrary.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineLibrary.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineLibrary.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryContent.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineLibraryContent.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryTab.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineLibraryTab.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/GuidelineTooltip.js +0 -2
- package/dist/features/IL-marketplace/components/GuidelineTooltip.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.js +0 -2
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.js.map +0 -1
- package/dist/features/IL-marketplace/components/LearningManagementWrapper.js +0 -2
- package/dist/features/IL-marketplace/components/LearningManagementWrapper.js.map +0 -1
- package/dist/features/IL-marketplace/components/VersionSelectDropdown.js +0 -2
- package/dist/features/IL-marketplace/components/VersionSelectDropdown.js.map +0 -1
- package/dist/features/IL-marketplace/components/VersionSelectDropdown.module.css.js +0 -2
- package/dist/features/IL-marketplace/components/VersionSelectDropdown.module.css.js.map +0 -1
- package/dist/features/IL-marketplace/constants.js +0 -2
- package/dist/features/IL-marketplace/constants.js.map +0 -1
- package/dist/features/IL-marketplace/hooks/useControllableState.js +0 -2
- package/dist/features/IL-marketplace/hooks/useControllableState.js.map +0 -1
- package/dist/features/IL-marketplace/hooks/useDeleteGuidelineMutation.js +0 -2
- package/dist/features/IL-marketplace/hooks/useDeleteGuidelineMutation.js.map +0 -1
- package/dist/features/IL-marketplace/hooks/useGuidelineSelection.js +0 -2
- package/dist/features/IL-marketplace/hooks/useGuidelineSelection.js.map +0 -1
- package/dist/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.js +0 -2
- package/dist/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.js.map +0 -1
- package/dist/features/IL-marketplace/hooks/useMarketplacePublishILKBData.js +0 -2
- package/dist/features/IL-marketplace/hooks/useMarketplacePublishILKBData.js.map +0 -1
- package/dist/features/IL-marketplace/hooks/usePublishingFlowConfig.js +0 -2
- package/dist/features/IL-marketplace/hooks/usePublishingFlowConfig.js.map +0 -1
- package/dist/features/IL-marketplace/icons/GuidelineSpinner.js +0 -2
- package/dist/features/IL-marketplace/icons/GuidelineSpinner.js.map +0 -1
- package/dist/features/IL-marketplace/marketplaceTheme.js +0 -2
- package/dist/features/IL-marketplace/marketplaceTheme.js.map +0 -1
- package/dist/features/IL-marketplace/queryClient.js +0 -2
- package/dist/features/IL-marketplace/queryClient.js.map +0 -1
- package/dist/features/IL-marketplace/services/IL-marketplace.api.js +0 -2
- package/dist/features/IL-marketplace/services/IL-marketplace.api.js.map +0 -1
- package/dist/features/IL-marketplace/services/guideline.cart.api.js +0 -2
- package/dist/features/IL-marketplace/services/guideline.cart.api.js.map +0 -1
- package/dist/features/IL-marketplace/services/guideline.core.api.js +0 -2
- package/dist/features/IL-marketplace/services/guideline.core.api.js.map +0 -1
- package/dist/features/IL-marketplace/services/guideline.runtime.config.js +0 -2
- package/dist/features/IL-marketplace/services/guideline.runtime.config.js.map +0 -1
- package/dist/features/IL-marketplace/services/guideline.session.js +0 -2
- package/dist/features/IL-marketplace/services/guideline.session.js.map +0 -1
- package/dist/features/IL-marketplace/services/instant-learning.api.js +0 -2
- package/dist/features/IL-marketplace/services/instant-learning.api.js.map +0 -1
- package/dist/features/IL-marketplace/store/usePublishTemplateStore.js +0 -2
- package/dist/features/IL-marketplace/store/usePublishTemplateStore.js.map +0 -1
- package/dist/features/IL-marketplace/store/usePublishingFlowConfigStore.js +0 -2
- package/dist/features/IL-marketplace/store/usePublishingFlowConfigStore.js.map +0 -1
- package/dist/features/IL-marketplace/utils/guidelineFiles.js +0 -2
- package/dist/features/IL-marketplace/utils/guidelineFiles.js.map +0 -1
- package/dist/features/IL-marketplace/utils/guidelineOverlay.js +0 -2
- package/dist/features/IL-marketplace/utils/guidelineOverlay.js.map +0 -1
- package/dist/features/IL-marketplace/utils/microfrontend.js +0 -2
- package/dist/features/IL-marketplace/utils/microfrontend.js.map +0 -1
- package/dist/features/IL-marketplace/utils/publishingFlow.js +0 -2
- package/dist/features/IL-marketplace/utils/publishingFlow.js.map +0 -1
- package/dist/features/IL-marketplace/utils/session.js +0 -2
- package/dist/features/IL-marketplace/utils/session.js.map +0 -1
- package/dist/features/IL-marketplace/utils.js +0 -2
- package/dist/features/IL-marketplace/utils.js.map +0 -1
- package/dist/features/IL-marketplace/workspace/useGuidelineWorkspace.js +0 -2
- package/dist/features/IL-marketplace/workspace/useGuidelineWorkspace.js.map +0 -1
- package/dist/features/IL-marketplace/workspace/workspace.context.js +0 -2
- package/dist/features/IL-marketplace/workspace/workspace.context.js.map +0 -1
- package/dist/features/IL-marketplace/workspace/workspace.runtime.js +0 -2
- package/dist/features/IL-marketplace/workspace/workspace.runtime.js.map +0 -1
- package/dist/features/LearningManagement/AuditLog/AuditLog.module.css.js +0 -2
- package/dist/features/LearningManagement/AuditLog/AuditLog.module.css.js.map +0 -1
- package/dist/features/LearningManagement/HumanChanges/HumanChange.js +0 -2
- package/dist/features/LearningManagement/HumanChanges/HumanChange.js.map +0 -1
- package/dist/features/LearningManagement/RuleContent/DraftsAccordion.js +0 -2
- package/dist/features/LearningManagement/RuleContent/DraftsAccordion.js.map +0 -1
- package/dist/features/LearningManagement/RuleContent/InstructionPromptBlock.js +0 -2
- package/dist/features/LearningManagement/RuleContent/InstructionPromptBlock.js.map +0 -1
- package/dist/features/LearningManagement/ScopeSelector.js +0 -2
- package/dist/features/LearningManagement/ScopeSelector.js.map +0 -1
- package/dist/features/LearningManagement/components/InstantLearningModalDynamic.js +0 -2
- package/dist/features/LearningManagement/components/InstantLearningModalDynamic.js.map +0 -1
- package/dist/features/LearningManagement/components/PromptTextEditor.js +0 -2
- package/dist/features/LearningManagement/components/PromptTextEditor.js.map +0 -1
- package/dist/features/LearningManagement/store/useExternalWorkflowStore.js +0 -2
- package/dist/features/LearningManagement/store/useExternalWorkflowStore.js.map +0 -1
- package/dist/features/LearningManagement/styles/DraftsAccordion.module.css.js +0 -2
- package/dist/features/LearningManagement/styles/DraftsAccordion.module.css.js.map +0 -1
- package/dist/features/LearningManagement/styles/PromptTextEditor.module.css.js +0 -2
- package/dist/features/LearningManagement/styles/PromptTextEditor.module.css.js.map +0 -1
- package/dist/features/LearningManagement/utils/learningFlow.js +0 -2
- package/dist/features/LearningManagement/utils/learningFlow.js.map +0 -1
- package/dist/features/LearningManagement/utils/learningMetadataUtils.js +0 -2
- package/dist/features/LearningManagement/utils/learningMetadataUtils.js.map +0 -1
- package/dist/features/LearningManagement/utils/saveDraft.js +0 -2
- package/dist/features/LearningManagement/utils/saveDraft.js.map +0 -1
- package/dist/schema-driven/BPARenderer.js +0 -2
- package/dist/schema-driven/BPARenderer.js.map +0 -1
- package/dist/schema-driven/FallbackField.js +0 -2
- package/dist/schema-driven/FallbackField.js.map +0 -1
- package/dist/schema-driven/components/ConditionSectionField.js +0 -2
- package/dist/schema-driven/components/ConditionSectionField.js.map +0 -1
- package/dist/schema-driven/components/ConfigSectionField.js +0 -2
- package/dist/schema-driven/components/ConfigSectionField.js.map +0 -1
- package/dist/schema-driven/components/DropdownSectionField.js +0 -2
- package/dist/schema-driven/components/DropdownSectionField.js.map +0 -1
- package/dist/schema-driven/components/GlobalSetupAccordionField.js +0 -2
- package/dist/schema-driven/components/GlobalSetupAccordionField.js.map +0 -1
- package/dist/schema-driven/components/GroupEditRow.js +0 -2
- package/dist/schema-driven/components/GroupEditRow.js.map +0 -1
- package/dist/schema-driven/components/PromptTextEditorField.js +0 -2
- package/dist/schema-driven/components/PromptTextEditorField.js.map +0 -1
- package/dist/schema-driven/components/ScopeSectionField.js +0 -2
- package/dist/schema-driven/components/ScopeSectionField.js.map +0 -1
- package/dist/schema-driven/components/TextInputField.js +0 -2
- package/dist/schema-driven/components/TextInputField.js.map +0 -1
- package/dist/schema-driven/components/VariantListField.js +0 -2
- package/dist/schema-driven/components/VariantListField.js.map +0 -1
- package/dist/schema-driven/hooks/useParentEditEnabled.js +0 -2
- package/dist/schema-driven/hooks/useParentEditEnabled.js.map +0 -1
- package/dist/schema-driven/hooks/useSectionEditSession.js +0 -2
- package/dist/schema-driven/hooks/useSectionEditSession.js.map +0 -1
- package/dist/schema-driven/primitives/Accordion.js +0 -2
- package/dist/schema-driven/primitives/Accordion.js.map +0 -1
- package/dist/schema-driven/store/useDynamicFormStore.js +0 -2
- package/dist/schema-driven/store/useDynamicFormStore.js.map +0 -1
- package/dist/schema-driven/utils/PayloadUtils.js +0 -2
- package/dist/schema-driven/utils/PayloadUtils.js.map +0 -1
- package/dist/schema-driven/utils/aiReasoning.js +0 -2
- package/dist/schema-driven/utils/aiReasoning.js.map +0 -1
- package/dist/schema-driven/utils/conditionText.js +0 -2
- package/dist/schema-driven/utils/conditionText.js.map +0 -1
- package/dist/schema-driven/utils/editLock.js +0 -2
- package/dist/schema-driven/utils/editLock.js.map +0 -1
- package/dist/types/src/ComponentRegistry.d.ts +0 -13
- package/dist/types/src/ComponentRegistry.d.ts.map +0 -1
- package/dist/types/src/ContinueWithTemplateModal.d.ts +0 -24
- package/dist/types/src/ContinueWithTemplateModal.d.ts.map +0 -1
- package/dist/types/src/ILMarketplaceMockTest.d.ts +0 -4
- package/dist/types/src/ILMarketplaceMockTest.d.ts.map +0 -1
- package/dist/types/src/ILMarketplaceWrapper.d.ts +0 -175
- package/dist/types/src/ILMarketplaceWrapper.d.ts.map +0 -1
- package/dist/types/src/PublishToMarketplaceTest.d.ts +0 -3
- package/dist/types/src/PublishToMarketplaceTest.d.ts.map +0 -1
- package/dist/types/src/api/transport.d.ts +0 -44
- package/dist/types/src/api/transport.d.ts.map +0 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/EditPencilIcon.d.ts +0 -7
- package/dist/types/src/features/IL-OTJ/_components/_svg/EditPencilIcon.d.ts.map +0 -1
- package/dist/types/src/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.d.ts +0 -98
- package/dist/types/src/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.d.ts.map +0 -1
- package/dist/types/src/features/IL-OTJ/_components/hooks/usePendingEditHighlight.d.ts +0 -5
- package/dist/types/src/features/IL-OTJ/_components/hooks/usePendingEditHighlight.d.ts.map +0 -1
- package/dist/types/src/features/IL-OTJ/_components/hooks/useVariantEditSession.d.ts +0 -74
- package/dist/types/src/features/IL-OTJ/_components/hooks/useVariantEditSession.d.ts.map +0 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.d.ts +0 -17
- package/dist/types/src/features/IL-OTJ/_components/organisms/DropdownSection/DropdownSection.d.ts.map +0 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/DropdownSection/index.d.ts +0 -2
- package/dist/types/src/features/IL-OTJ/_components/organisms/DropdownSection/index.d.ts.map +0 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.d.ts +0 -12
- package/dist/types/src/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineCardMenu.d.ts +0 -34
- package/dist/types/src/features/IL-marketplace/components/GuidelineCardMenu.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineCart.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/components/GuidelineCart.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartHeader.d.ts +0 -14
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartHeader.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartItem.d.ts +0 -16
- package/dist/types/src/features/IL-marketplace/components/GuidelineCartItem.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineConfirmDialog.d.ts +0 -18
- package/dist/types/src/features/IL-marketplace/components/GuidelineConfirmDialog.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineEmptyState.d.ts +0 -11
- package/dist/types/src/features/IL-marketplace/components/GuidelineEmptyState.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineFilterPanel.d.ts +0 -9
- package/dist/types/src/features/IL-marketplace/components/GuidelineFilterPanel.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineHeader.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/components/GuidelineHeader.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineIconButton.d.ts +0 -15
- package/dist/types/src/features/IL-marketplace/components/GuidelineIconButton.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLandingPage.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/components/GuidelineLandingPage.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts +0 -68
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts +0 -94
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts +0 -96
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryTab.d.ts +0 -27
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryTab.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineProceedButton.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/components/GuidelineProceedButton.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineSelectButton.d.ts +0 -11
- package/dist/types/src/features/IL-marketplace/components/GuidelineSelectButton.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts +0 -10
- package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineTooltip.d.ts +0 -10
- package/dist/types/src/features/IL-marketplace/components/GuidelineTooltip.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.d.ts +0 -3
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionBody.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.d.ts +0 -8
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsSelectionFooter.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.d.ts +0 -3
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationBody.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.d.ts +0 -8
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/LearningsValidationFooter.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.d.ts +0 -24
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishDetailsCards.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.d.ts +0 -8
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.d.ts +0 -5
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.d.ts +0 -3
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.constants.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts +0 -94
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.d.ts +0 -35
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.d.ts +0 -14
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryFooter.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.d.ts +0 -8
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsFooter.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts +0 -33
- package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/components/VersionSelectDropdown.d.ts +0 -13
- package/dist/types/src/features/IL-marketplace/components/VersionSelectDropdown.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/constants.d.ts +0 -183
- package/dist/types/src/features/IL-marketplace/constants.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/hooks/useControllableState.d.ts +0 -8
- package/dist/types/src/features/IL-marketplace/hooks/useControllableState.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/hooks/useDeleteGuidelineMutation.d.ts +0 -10
- package/dist/types/src/features/IL-marketplace/hooks/useDeleteGuidelineMutation.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/hooks/useGuidelineSelection.d.ts +0 -17
- package/dist/types/src/features/IL-marketplace/hooks/useGuidelineSelection.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/hooks/useGuidelineWorkspaceLegacyBridge.d.ts +0 -6
- package/dist/types/src/features/IL-marketplace/hooks/useGuidelineWorkspaceLegacyBridge.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/hooks/useMarketplaceApprovalStatus.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/hooks/useMarketplacePublishILKBData.d.ts +0 -29
- package/dist/types/src/features/IL-marketplace/hooks/useMarketplacePublishILKBData.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/hooks/usePublishingFlowConfig.d.ts +0 -16
- package/dist/types/src/features/IL-marketplace/hooks/usePublishingFlowConfig.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/icons/GuidelineSpinner.d.ts +0 -7
- package/dist/types/src/features/IL-marketplace/icons/GuidelineSpinner.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/index.d.ts +0 -42
- package/dist/types/src/features/IL-marketplace/index.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/marketplaceTheme.d.ts +0 -99
- package/dist/types/src/features/IL-marketplace/marketplaceTheme.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/queryClient.d.ts +0 -3
- package/dist/types/src/features/IL-marketplace/queryClient.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts +0 -168
- package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/guideline.api.d.ts +0 -2
- package/dist/types/src/features/IL-marketplace/services/guideline.api.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/guideline.cart.api.d.ts +0 -28
- package/dist/types/src/features/IL-marketplace/services/guideline.cart.api.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/guideline.chat.d.ts +0 -2
- package/dist/types/src/features/IL-marketplace/services/guideline.chat.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/guideline.content.d.ts +0 -2
- package/dist/types/src/features/IL-marketplace/services/guideline.content.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/guideline.core.api.d.ts +0 -51
- package/dist/types/src/features/IL-marketplace/services/guideline.core.api.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/guideline.runtime.config.d.ts +0 -47
- package/dist/types/src/features/IL-marketplace/services/guideline.runtime.config.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/guideline.session.d.ts +0 -10
- package/dist/types/src/features/IL-marketplace/services/guideline.session.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/instant-learning.api.d.ts +0 -112
- package/dist/types/src/features/IL-marketplace/services/instant-learning.api.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/services/instant-learning.wishlist.d.ts +0 -8
- package/dist/types/src/features/IL-marketplace/services/instant-learning.wishlist.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/store/usePublishTemplateStore.d.ts +0 -14
- package/dist/types/src/features/IL-marketplace/store/usePublishTemplateStore.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/store/usePublishingFlowConfigStore.d.ts +0 -132
- package/dist/types/src/features/IL-marketplace/store/usePublishingFlowConfigStore.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/types/add-context.types.d.ts +0 -40
- package/dist/types/src/features/IL-marketplace/types/add-context.types.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/types/api.types.d.ts +0 -116
- package/dist/types/src/features/IL-marketplace/types/api.types.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/types/file-item.d.ts +0 -60
- package/dist/types/src/features/IL-marketplace/types/file-item.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/types/guideline.api.types.d.ts +0 -11
- package/dist/types/src/features/IL-marketplace/types/guideline.api.types.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/types/guideline.types.d.ts +0 -42
- package/dist/types/src/features/IL-marketplace/types/guideline.types.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/types.d.ts +0 -443
- package/dist/types/src/features/IL-marketplace/types.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils/addContextHelpers.d.ts +0 -6
- package/dist/types/src/features/IL-marketplace/utils/addContextHelpers.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils/cn.d.ts +0 -3
- package/dist/types/src/features/IL-marketplace/utils/cn.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils/guidelineFiles.d.ts +0 -17
- package/dist/types/src/features/IL-marketplace/utils/guidelineFiles.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils/guidelineOverlay.d.ts +0 -3
- package/dist/types/src/features/IL-marketplace/utils/guidelineOverlay.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils/guidelineSort.d.ts +0 -3
- package/dist/types/src/features/IL-marketplace/utils/guidelineSort.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils/microfrontend.d.ts +0 -23
- package/dist/types/src/features/IL-marketplace/utils/microfrontend.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils/publishingFlow.d.ts +0 -35
- package/dist/types/src/features/IL-marketplace/utils/publishingFlow.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils/session.d.ts +0 -4
- package/dist/types/src/features/IL-marketplace/utils/session.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils/url.d.ts +0 -2
- package/dist/types/src/features/IL-marketplace/utils/url.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/utils.d.ts +0 -75
- package/dist/types/src/features/IL-marketplace/utils.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/workspace/useGuidelineWorkspace.d.ts +0 -44
- package/dist/types/src/features/IL-marketplace/workspace/useGuidelineWorkspace.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/workspace/workspace.context.d.ts +0 -9
- package/dist/types/src/features/IL-marketplace/workspace/workspace.context.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/workspace/workspace.runtime.d.ts +0 -12
- package/dist/types/src/features/IL-marketplace/workspace/workspace.runtime.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/workspace/workspace.selectors.d.ts +0 -5
- package/dist/types/src/features/IL-marketplace/workspace/workspace.selectors.d.ts.map +0 -1
- package/dist/types/src/features/IL-marketplace/workspace/workspace.types.d.ts +0 -89
- package/dist/types/src/features/IL-marketplace/workspace/workspace.types.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/HumanChanges/HumanChange.d.ts +0 -10
- package/dist/types/src/features/LearningManagement/HumanChanges/HumanChange.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/RuleContent/DraftsAccordion.d.ts +0 -18
- package/dist/types/src/features/LearningManagement/RuleContent/DraftsAccordion.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/RuleContent/InstructionPromptBlock.d.ts +0 -27
- package/dist/types/src/features/LearningManagement/RuleContent/InstructionPromptBlock.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/ScopeSelector.d.ts +0 -45
- package/dist/types/src/features/LearningManagement/ScopeSelector.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts +0 -75
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts +0 -44
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/store/useExternalWorkflowStore.d.ts +0 -38
- package/dist/types/src/features/LearningManagement/store/useExternalWorkflowStore.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/utils/learningFlow.d.ts +0 -30
- package/dist/types/src/features/LearningManagement/utils/learningFlow.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/utils/learningMetadataUtils.d.ts +0 -17
- package/dist/types/src/features/LearningManagement/utils/learningMetadataUtils.d.ts.map +0 -1
- package/dist/types/src/features/LearningManagement/utils/saveDraft.d.ts +0 -11
- package/dist/types/src/features/LearningManagement/utils/saveDraft.d.ts.map +0 -1
- package/dist/types/src/schema-driven/BPARenderer.d.ts +0 -14
- package/dist/types/src/schema-driven/BPARenderer.d.ts.map +0 -1
- package/dist/types/src/schema-driven/FallbackField.d.ts +0 -13
- package/dist/types/src/schema-driven/FallbackField.d.ts.map +0 -1
- package/dist/types/src/schema-driven/components/ConditionSectionField.d.ts +0 -3
- package/dist/types/src/schema-driven/components/ConditionSectionField.d.ts.map +0 -1
- package/dist/types/src/schema-driven/components/ConfigSectionField.d.ts +0 -3
- package/dist/types/src/schema-driven/components/ConfigSectionField.d.ts.map +0 -1
- package/dist/types/src/schema-driven/components/DropdownSectionField.d.ts +0 -3
- package/dist/types/src/schema-driven/components/DropdownSectionField.d.ts.map +0 -1
- package/dist/types/src/schema-driven/components/GlobalSetupAccordionField.d.ts +0 -3
- package/dist/types/src/schema-driven/components/GlobalSetupAccordionField.d.ts.map +0 -1
- package/dist/types/src/schema-driven/components/GroupEditRow.d.ts +0 -3
- package/dist/types/src/schema-driven/components/GroupEditRow.d.ts.map +0 -1
- package/dist/types/src/schema-driven/components/PromptTextEditorField.d.ts +0 -3
- package/dist/types/src/schema-driven/components/PromptTextEditorField.d.ts.map +0 -1
- package/dist/types/src/schema-driven/components/ScopeSectionField.d.ts +0 -3
- package/dist/types/src/schema-driven/components/ScopeSectionField.d.ts.map +0 -1
- package/dist/types/src/schema-driven/components/TextInputField.d.ts +0 -3
- package/dist/types/src/schema-driven/components/TextInputField.d.ts.map +0 -1
- package/dist/types/src/schema-driven/components/VariantListField.d.ts +0 -3
- package/dist/types/src/schema-driven/components/VariantListField.d.ts.map +0 -1
- package/dist/types/src/schema-driven/demoSchema.d.ts +0 -13
- package/dist/types/src/schema-driven/demoSchema.d.ts.map +0 -1
- package/dist/types/src/schema-driven/hooks/useParentEditEnabled.d.ts +0 -18
- package/dist/types/src/schema-driven/hooks/useParentEditEnabled.d.ts.map +0 -1
- package/dist/types/src/schema-driven/hooks/useSectionEditSession.d.ts +0 -34
- package/dist/types/src/schema-driven/hooks/useSectionEditSession.d.ts.map +0 -1
- package/dist/types/src/schema-driven/primitives/Accordion.d.ts +0 -21
- package/dist/types/src/schema-driven/primitives/Accordion.d.ts.map +0 -1
- package/dist/types/src/schema-driven/store/useDynamicFormStore.d.ts +0 -28
- package/dist/types/src/schema-driven/store/useDynamicFormStore.d.ts.map +0 -1
- package/dist/types/src/schema-driven/types.d.ts +0 -81
- package/dist/types/src/schema-driven/types.d.ts.map +0 -1
- package/dist/types/src/schema-driven/utils/PayloadUtils.d.ts +0 -82
- package/dist/types/src/schema-driven/utils/PayloadUtils.d.ts.map +0 -1
- package/dist/types/src/schema-driven/utils/aiReasoning.d.ts +0 -5
- package/dist/types/src/schema-driven/utils/aiReasoning.d.ts.map +0 -1
- package/dist/types/src/schema-driven/utils/conditionText.d.ts +0 -8
- package/dist/types/src/schema-driven/utils/conditionText.d.ts.map +0 -1
- package/dist/types/src/schema-driven/utils/editLock.d.ts +0 -39
- package/dist/types/src/schema-driven/utils/editLock.d.ts.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("lucide-react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=s(t),o=0,a=function(){return"cond-".concat(Date.now(),"-").concat(++o)},l="#CBD5E1",d="#9B8AFB",c="#7C3AED",g="#FDA29B",u="#344054",p="#1E293B",x="#334155",f="#64748B",h="#94A3B8",_="#98A2B3",y="#F04438",m="#8F2C23",b="#5925DC",j="#475569",v="#FFFFFF",w="#F8FAFC",C="#F1F5F9",F="#F9F5FF",k="#17B26A",S="#F04438",z="#64748B",D="6px",E="8px",A="Inter, sans-serif",B={width:38,height:38,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #D0D5DD",borderRadius:D,cursor:"pointer",background:v,flexShrink:0,transition:"background 0.15s"},R={width:"100%",boxSizing:"border-box",padding:"8px 11.5px",border:"1px solid #D0D5DD",borderRadius:D,fontSize:14,fontWeight:400,lineHeight:"100%",fontFamily:A,outline:"none",color:u,background:v},T={display:"flex",alignItems:"center",gap:4,marginBottom:8,color:u,fontSize:14,fontWeight:500,lineHeight:"130%",fontFamily:A},I={background:v,border:"1px solid ".concat(l),borderRadius:E,padding:16},W=n.jsx("span",e.__assign({style:{color:m,fontSize:12,lineHeight:1,display:"inline-flex",transform:"translateY(0.5px)"}},{children:"*"})),H={exact_match:{label:"Exact Match",bg:"#F0FDF4",border:"#BBF7D0",text:"#166534",dot:"#22C55E"},conflict:{label:"Conflict",bg:"#FEF2F2",border:"#FECACA",text:"#991B1B",dot:"#EF4444"},partial_overlap:{label:"Partial Match",bg:"#FFF7ED",border:"#FED7AA",text:"#92400E",dot:"#F97316"},new_field:{label:"New",bg:"#F5F3FF",border:"#DDD6FE",text:"#5925DC",dot:"#7C3AED"}},L=function(e){return e?Array.isArray(e)?e.filter(Boolean).join("\n"):e:""},M=function(e,n){if(!n&&!e)return"exact_match";if(!n)return"new_field";if(!e)return"new_field";var t=function(e){return e.trim().toLowerCase()};if(t(e)===t(n))return"exact_match";var i=new Set(t(e).split(/\s+/)),s=new Set(t(n).split(/\s+/));return Array.from(i).filter(function(e){return s.has(e)}).length/Math.max(i.size,s.size)>=.45?"partial_overlap":"conflict"},N=function(t){var i=t.relation,s=H[i];return n.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 9px",borderRadius:20,background:s.bg,border:"1px solid ".concat(s.border),fontSize:10,fontWeight:600,color:s.text,fontFamily:A,whiteSpace:"nowrap",flexShrink:0}},{children:[n.jsx("span",{style:{width:5,height:5,borderRadius:"50%",background:s.dot,flexShrink:0}}),s.label]}))},O=r.default.forwardRef(function(t,i){var s=t.label,r=t.value;return n.jsxs("div",e.__assign({ref:i,style:{display:"flex",flexDirection:"column"}},{children:[n.jsx("p",e.__assign({style:{margin:"0 0 5px 0",fontSize:12,color:f,fontFamily:A}},{children:s})),n.jsx("div",e.__assign({style:{flex:1,padding:"9px 12px",borderRadius:E,background:"#FFF3F2",border:"1px solid ".concat("#FECACA"),fontSize:13,lineHeight:"150%",color:r?p:h,fontFamily:A,fontStyle:r?"normal":"italic",wordBreak:"break-word",whiteSpace:"pre-wrap",minHeight:37}},{children:r||"—"}))]}))});O.displayName="FieldCell";var q=function(s){var r=s.formData,o=s.existingData,a=s.onClose,d=s.visible,c=r.whenToApply.map(function(e){return e.text}).filter(Boolean).join("\n"),g=r.whenNotToApply.map(function(e){return e.text}).filter(Boolean).join("\n"),u=L(o.whenToApply),f=L(o.whenNotToApply),h=t.useMemo(function(){return[{label:"Title",proposed:r.name,existing:o.name||"",relation:M(r.name,o.name||"")},{label:"Description",proposed:r.description,existing:o.description||"",relation:M(r.description,o.description||"")},{label:"When to apply",proposed:c,existing:u,relation:M(c,u)},{label:"When NOT to Apply",proposed:g,existing:f,relation:g?M(g,f):f?"new_field":"exact_match"}]},[r.name,r.description,c,g,o.name,o.description,u,f]),_=h.reduce(function(e,n){return e[n.relation]=(e[n.relation]||0)+1,e},{}),y=t.useRef(null),m=t.useRef([]),j=t.useRef([]),w=t.useState([]),C=w[0],F=w[1];m.current=[],j.current=[];var k=t.useCallback(function(){if(y.current){var e=y.current.getBoundingClientRect(),n=[];h.forEach(function(t,i){var s=m.current[i],r=j.current[i];if(s&&r){s.style.height="auto",r.style.height="auto";var o=s.getBoundingClientRect(),a=r.getBoundingClientRect(),l=Math.max(o.height,a.height);s.style.height="".concat(l,"px"),r.style.height="".concat(l,"px");var d=s.getBoundingClientRect(),c=r.getBoundingClientRect(),g=d.top+d.height/2-e.top;n.push({x1:d.right-e.left,y1:g,x2:c.left-e.left,y2:g,relation:t.relation})}}),F(n)}},[h]);return t.useEffect(function(){var e=setTimeout(k,150);window.addEventListener("resize",k);var n=null;return y.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){return k()})})).observe(y.current),function(){clearTimeout(e),window.removeEventListener("resize",k),n&&n.disconnect()}},[k,d]),n.jsxs(n.Fragment,{children:[n.jsx("div",{onClick:a,style:{position:"absolute",inset:0,background:"rgba(15,23,42,0.18)",zIndex:10,opacity:d?1:0,transition:"opacity 0.25s ease",pointerEvents:d?"auto":"none"}}),n.jsxs("div",e.__assign({style:{position:"absolute",inset:0,background:v,zIndex:11,display:"flex",flexDirection:"column",transform:d?"translateX(0)":"translateX(100%)",transition:"transform 0.28s cubic-bezier(0.4,0,0.2,1)",borderRadius:E,overflow:"hidden"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",borderBottom:"1px solid ".concat(l),flexShrink:0,background:v}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[n.jsx("button",e.__assign({type:"button",onClick:a,style:e.__assign(e.__assign({},B),{width:32,height:32,border:"1px solid ".concat(l),borderRadius:D})},{children:n.jsx(i.ArrowLeft,{size:15,color:x})})),n.jsx("span",e.__assign({style:{fontSize:15,fontWeight:600,color:p,fontFamily:A,letterSpacing:"-0.01em"}},{children:"Category Comparison"}))]})),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"}},{children:Object.entries(_).map(function(t){var i=t[0],s=t[1];return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:4,padding:"3px 10px",borderRadius:20,background:H[i].bg,border:"1px solid ".concat(H[i].border),fontSize:11,fontWeight:600,color:H[i].text,fontFamily:A}},{children:[n.jsx("span",{style:{width:5,height:5,borderRadius:"50%",background:H[i].dot}}),s," ",H[i].label]}),i)})}))]})),n.jsx("div",e.__assign({style:{flex:1,overflowY:"auto",padding:16}},{children:n.jsxs("div",e.__assign({ref:y,style:{display:"grid",gridTemplateColumns:"1fr 140px 1fr",alignItems:"start",gap:"0",position:"relative"}},{children:[n.jsx("svg",e.__assign({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:C.map(function(t,i){var s=(t.x1+t.x2)/2,r=t.y1,o=H[t.relation];return n.jsxs("g",{children:[n.jsx("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:o.border,strokeWidth:"1.5"}),n.jsx("foreignObject",e.__assign({x:s-70,y:r-14,width:"140",height:"28"},{children:n.jsx("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:n.jsx(N,{relation:t.relation})}))}))]},i)})})),n.jsxs("div",e.__assign({style:{border:"1.5px dashed #CBD5E1",borderRadius:10,padding:14,display:"flex",flexDirection:"column",gap:14}},{children:[n.jsx("p",e.__assign({style:{margin:"0 0 2px 0",fontSize:13,fontWeight:600,color:p,fontFamily:A}},{children:"Category You're Creating"})),h.map(function(e,t){return n.jsx(O,{ref:function(e){m.current[t]=e},label:e.label,value:e.proposed},t)})]})),n.jsx("div",{}),n.jsxs("div",e.__assign({style:{border:"1.5px dashed #CBD5E1",borderRadius:10,padding:14,display:"flex",flexDirection:"column",gap:14}},{children:[n.jsxs("p",e.__assign({style:{margin:"0 0 2px 0",fontSize:13,fontWeight:600,color:b,fontFamily:A,display:"flex",alignItems:"center",gap:5}},{children:[n.jsx(i.Sparkles,{size:13,color:b}),"Existing Category"]})),h.map(function(e,t){return n.jsx(O,{ref:function(e){j.current[t]=e},label:e.label,value:e.existing},t)})]}))]}))}))]}))]})},K=function(t){var s=t.condition,r=t.index,o=t.isEditing,a=t.editText,c=t.onEditStart,p=t.onEditChange,x=t.onEditSave,f=t.onEditCancel,_=t.onRemove,y=t.readOnly,m=t.onBlurContainer,b={width:40,height:38,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderRight:"1px solid #D0D5DD",color:j,fontSize:14,fontFamily:A};return o?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12},onBlur:m},{children:[n.jsxs("div",e.__assign({style:{display:"flex",flex:1,alignItems:"center",background:v,border:"1px solid ".concat(d),borderRadius:E,overflow:"hidden"}},{children:[n.jsx("div",e.__assign({style:b},{children:r+1})),n.jsx("input",{type:"text",value:a,onChange:function(e){return p(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Enter"===e.key&&a.trim()?x():"Escape"===e.key&&f()},style:{flex:1,padding:"8px 11.5px",fontSize:14,fontFamily:A,color:u,border:"none",outline:"none",background:"transparent"}})]})),n.jsx("button",e.__assign({type:"button",disabled:!a.trim(),onClick:x,style:e.__assign(e.__assign({},B),{borderRadius:E,opacity:a.trim()?1:.5,cursor:a.trim()?"pointer":"not-allowed",background:a.trim()?v:w})},{children:n.jsx(i.Check,{size:18,color:k})})),n.jsx("button",e.__assign({type:"button",onClick:f,style:e.__assign(e.__assign({},B),{borderRadius:E})},{children:n.jsx(i.X,{size:18,color:S})}))]})):n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",flex:1,alignItems:"center",background:v,border:"1px solid #D0D5DD",borderRadius:E,overflow:"hidden",height:38}},{children:[n.jsx("div",e.__assign({style:e.__assign(e.__assign({},b),{height:"100%"})},{children:r+1})),n.jsx("div",e.__assign({style:{flex:1,padding:"0 11.5px",fontSize:14,fontFamily:A,display:"flex",alignItems:"center",height:"100%"}},{children:s.text?n.jsx("span",e.__assign({style:{color:u}},{children:s.text})):n.jsx("span",e.__assign({style:{color:h}},{children:"Enter condition"}))}))]})),!y&&n.jsxs(n.Fragment,{children:[n.jsx("button",e.__assign({type:"button",onClick:c,style:e.__assign(e.__assign({},B),{border:"1px solid ".concat(l),borderRadius:E})},{children:n.jsx(i.Pencil,{size:16,color:z})})),n.jsx("button",e.__assign({type:"button",onClick:_,style:e.__assign(e.__assign({},B),{border:"1px solid ".concat(g),borderRadius:E})},{children:n.jsx(i.Trash2,{size:16,color:S})}))]})]}))},P=function(t){var s=t.title,r=t.required,o=t.isExpanded,a=t.setIsExpanded,d=t.conditions,c=t.prefix,g=t.editingCondKey,p=t.editingCondText,x=t.setEditingCondKey,_=t.setEditingCondText,m=t.onAdd,j=t.onUpdate,v=t.onRemove,w=t.addLabel,C=t.readOnly,F=t.errorMessage,k=t.style,S=d.length>0;return n.jsxs("div",e.__assign({style:e.__assign({border:"1px solid ".concat(l),borderRadius:E,padding:16},k)},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8,cursor:S?"pointer":"default",userSelect:"none"},onClick:function(){S&&a(function(e){return!e})}},{children:[n.jsxs("label",e.__assign({style:e.__assign(e.__assign({},T),{marginBottom:0,cursor:S?"pointer":"default"})},{children:[r&&W,n.jsx("span",{children:s})]})),n.jsx("button",e.__assign({type:"button",style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"flex",alignItems:"center",transform:o?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s"}},{children:n.jsx(i.ChevronUp,{size:20,color:S?u:h})}))]})),o&&n.jsxs(n.Fragment,{children:[0===d.length&&n.jsx("p",e.__assign({style:{color:f,fontSize:14,fontStyle:"italic",fontWeight:300,fontFamily:A,margin:"0 0 12px 0"}},{children:"No conditions applied"})),n.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12,marginBottom:12}},{children:d.map(function(e,t){var i="".concat(c,"_").concat(e.id);return n.jsx(K,{condition:e,index:t,isEditing:g===i,editText:p,onEditStart:function(){x(i),_(e.text)},onEditChange:_,onEditSave:function(){p.trim()&&(j(e.id,p),x(null))},onEditCancel:function(){e.text?x(null):v(e.id)},onRemove:function(){return v(e.id)},readOnly:C,onBlurContainer:function(n){return function(e,n,t){if(!e.currentTarget.contains(e.relatedTarget)){var i="".concat(c,"_").concat(n);p.trim()||t?p.trim()&&j(n,p):v(n),g===i&&x(null)}}(n,e.id,e.text)}},e.id)})})),!C&&n.jsxs("button",e.__assign({type:"button",onClick:m,style:{display:"flex",alignItems:"center",gap:7,color:b,fontSize:14,fontWeight:500,fontFamily:A,background:"none",border:"none",cursor:"pointer",padding:0}},{children:[n.jsx(i.Plus,{size:16}),w]})),F&&n.jsx("p",e.__assign({style:{marginTop:8,color:y,fontSize:12,fontFamily:A,margin:"8px 0 0 0"}},{children:F}))]})]}))},U=function(s){var r=s.state,o=s.handlers,d=s.uiState,m=r.formData,w=r.nameLabel,H=void 0===w?"Category Name":w,L=r.namePlaceholder,M=void 0===L?"Enter category name":L,N=o.setFormData,O=d.readOnly,K=void 0!==O&&O,U=d.isAiStreaming,X=void 0!==U&&U;d.setActiveEditId,d.setSendMessageInChat;var Y=d.validationErrors,V=void 0===Y?{}:Y,Z=d.addExampleBtnRef,G=d.comparisonData,J=void 0===G?null:G,Q=d.onComparisonClose,$=t.useState(null),ee=$[0],ne=$[1],te=t.useState(""),ie=te[0],se=te[1],re=t.useState(null),oe=re[0],ae=re[1],le=t.useState(""),de=le[0],ce=le[1],ge=t.useState(!0),ue=ge[0],pe=ge[1],xe=t.useState(!0),fe=xe[0],he=xe[1],_e=t.useState(null),ye=_e[0],me=_e[1],be=t.useState(""),je=be[0],ve=be[1],we=t.useState(""),Ce=we[0],Fe=we[1],ke=t.useState([]),Se=ke[0],ze=ke[1],De=t.useState(!1),Ee=De[0],Ae=De[1],Be=t.useRef(null),Re=t.useState(!1),Te=Re[0],Ie=Re[1],We=t.useRef(X);t.useEffect(function(){J?requestAnimationFrame(function(){return Ae(!0)}):Ae(!1)},[J]),t.useEffect(function(){We.current&&!X&&Te&&Ie(!1),We.current=X},[X,Te]);var He=K,Le=t.useCallback(function(n,t){return N(function(i){var s;return e.__assign(e.__assign({},i),((s={})[n]=t,s))})},[N]),Me=function(n){var t=a();N(function(i){var s;return e.__assign(e.__assign({},i),((s={})[n]=e.__spreadArray(e.__spreadArray([],i[n],!0),[{id:t,text:""}],!1),s))}),ae("".concat("whenToApply"===n?"wta":"wnta","_").concat(t)),ce(""),"whenToApply"!==n||ue||pe(!0),"whenNotToApply"!==n||fe||he(!0)},Ne=function(n,t,i){return N(function(s){var r;return e.__assign(e.__assign({},s),((r={})[n]=s[n].map(function(n){return n.id===t?e.__assign(e.__assign({},n),{text:i}):n}),r))})},Oe=function(n,t){return N(function(i){var s;return e.__assign(e.__assign({},i),((s={})[n]=i[n].filter(function(e){return e.id!==t}),s))})},qe=function(n){return ze(function(t){return t.includes(n)?t.filter(function(e){return e!==n}):e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)})},Ke=t.useCallback(function(){var n=a();N(function(t){return e.__assign(e.__assign({},t),{occurrences:e.__spreadArray(e.__spreadArray([],t.occurrences||[],!0),[{id:n,title:"",description:""}],!1)})}),me(n),ve(""),Fe(""),ze(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)})},[N]),Pe=t.useCallback(function(){Ae(!1),setTimeout(function(){null==Q||Q()},280)},[Q]),Ue=function(t){return n.jsxs("button",e.__assign({ref:t?void 0:Z,type:"button",disabled:t,onClick:Ke,style:{display:"flex",alignItems:"center",gap:7,padding:"7px 10.5px",background:"none",border:"none",cursor:t?"not-allowed":"pointer",opacity:t?.5:1,transition:"opacity 0.15s"}},{children:[n.jsx(i.Plus,{size:14,color:b}),n.jsx("span",e.__assign({style:{color:b,fontSize:14,fontWeight:500,fontFamily:A}},{children:"Add example"}))]}))};return n.jsxs("div",e.__assign({style:{flex:1,overflowY:"auto",position:"relative"}},{children:[J&&n.jsx(q,{formData:m,existingData:J,onClose:Pe,visible:Ee}),Te&&X&&n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",color:"#141414",fontSize:13,fontWeight:500,fontStyle:"italic",marginBottom:12,paddingLeft:4,fontFamily:A}},{children:[n.jsx(i.Loader2Icon,{size:16,style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Updating category details..."]})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},I),{marginBottom:12})},{children:[n.jsxs("div",e.__assign({style:{marginBottom:12}},{children:[n.jsxs("label",e.__assign({style:T},{children:[W,n.jsx("span",{children:H})]})),He&&"name"!==ee?n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12}},{children:n.jsx("div",e.__assign({style:{flex:1,padding:"10px 14px",border:"1px solid #D0D5DD",borderRadius:D,fontSize:14,background:v,minHeight:42,display:"flex",alignItems:"center"}},{children:m.name?n.jsx("span",e.__assign({style:{color:u}},{children:m.name})):n.jsx("span",e.__assign({style:{color:_}},{children:M}))}))})):He&&"name"===ee?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12}},{children:[n.jsx("input",{type:"text",value:ie,onChange:function(e){return se(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Enter"===e.key?(Le("name",ie),ne(null)):"Escape"===e.key&&ne(null)},placeholder:M,style:e.__assign(e.__assign({},R),{flex:1,width:"auto",border:"1px solid ".concat(c)})}),n.jsx("button",e.__assign({type:"button",onClick:function(){Le("name",ie),ne(null)},style:B},{children:n.jsx(i.Check,{size:18,color:k})})),n.jsx("button",e.__assign({type:"button",onClick:function(){return ne(null)},style:B},{children:n.jsx(i.X,{size:18,color:S})}))]})):n.jsx("input",{type:"text",value:m.name,onChange:function(e){return Le("name",e.target.value)},placeholder:M,disabled:X,style:e.__assign(e.__assign({},R),{opacity:X?.6:1,cursor:X?"not-allowed":"text"})}),(null==V?void 0:V.name)&&n.jsx("p",e.__assign({style:{marginTop:4,color:y,fontSize:12,fontFamily:A,margin:"4px 0 0 0"}},{children:V.name}))]})),n.jsxs("div",e.__assign({style:{marginBottom:12}},{children:[n.jsxs("label",e.__assign({style:T},{children:[W,n.jsx("span",{children:"Category Description"})]})),He&&"description"!==ee?n.jsx("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:12}},{children:n.jsx("div",e.__assign({style:{flex:1,padding:"12px 14px",border:"1px solid #D0D5DD",borderRadius:D,fontSize:14,background:v,minHeight:80}},{children:m.description?n.jsx("span",e.__assign({style:{color:u,whiteSpace:"pre-wrap"}},{children:m.description})):n.jsx("span",e.__assign({style:{color:_}},{children:"Describe when this category should be applied"}))}))})):He&&"description"===ee?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:12}},{children:[n.jsx("textarea",{value:ie,onChange:function(e){return se(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Escape"===e.key&&ne(null)},placeholder:"Enter Description",rows:4,style:e.__assign(e.__assign({},R),{flex:1,width:"auto",border:"1px solid ".concat(c),resize:"none",lineHeight:"140%"})}),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:8}},{children:[n.jsx("button",e.__assign({type:"button",onClick:function(){Le("description",ie),ne(null)},style:B},{children:n.jsx(i.Check,{size:18,color:k})})),n.jsx("button",e.__assign({type:"button",onClick:function(){return ne(null)},style:B},{children:n.jsx(i.X,{size:18,color:S})}))]}))]})):n.jsx("textarea",{value:m.description,onChange:function(e){return Le("description",e.target.value)},placeholder:"Describe when this category should be applied.",disabled:X,style:e.__assign(e.__assign({},R),{height:60,paddingTop:7,paddingBottom:10.5,border:"1px solid ".concat(l),lineHeight:"140%",resize:"none",boxShadow:"0 1px 2px 0 rgba(18,18,23,0.05)",opacity:X?.6:1,cursor:X?"not-allowed":"text"})}),(null==V?void 0:V.description)&&n.jsx("p",e.__assign({style:{marginTop:4,color:y,fontSize:12,fontFamily:A,margin:"4px 0 0 0"}},{children:V.description}))]})),n.jsx(P,{title:"When to Apply",required:!0,isExpanded:ue,setIsExpanded:pe,conditions:m.whenToApply,prefix:"wta",editingCondKey:oe,editingCondText:de,setEditingCondKey:ae,setEditingCondText:ce,onAdd:function(){return Me("whenToApply")},onUpdate:function(e,n){return Ne("whenToApply",e,n)},onRemove:function(e){return Oe("whenToApply",e)},addLabel:"Add When to Apply",readOnly:X||K,errorMessage:null==V?void 0:V.whenToApply,style:{marginBottom:12}}),n.jsx(P,{title:"When NOT to Apply",required:!1,isExpanded:fe,setIsExpanded:he,conditions:m.whenNotToApply,prefix:"wnta",editingCondKey:oe,editingCondText:de,setEditingCondKey:ae,setEditingCondText:ce,onAdd:function(){return Me("whenNotToApply")},onUpdate:function(e,n){return Ne("whenNotToApply",e,n)},onRemove:function(e){return Oe("whenNotToApply",e)},addLabel:"Add When NOT to Apply",readOnly:X||K,errorMessage:null==V?void 0:V.whenNotToApply})]})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},I),{marginTop:12})},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12}},{children:[n.jsxs("div",{children:[n.jsxs("h4",e.__assign({style:{color:p,fontSize:14,fontWeight:500,lineHeight:"120%",letterSpacing:"0.02em",fontFamily:A,margin:"0 0 4px 0"}},{children:["Example (",(m.occurrences||[]).length,")"]})),n.jsx("p",e.__assign({style:{color:f,fontSize:12,fontWeight:300,lineHeight:"120%",letterSpacing:"0.02em",fontFamily:A,margin:0}},{children:"Add real examples to help the system understand this category"}))]}),(m.occurrences||[]).length>0&&!K&&Ue(null!==ye||X)]})),0===(m.occurrences||[]).length?n.jsxs("div",e.__assign({style:{border:"1px solid ".concat(l),borderRadius:E,background:v,padding:"24px 12px 12px",minHeight:181,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"}},{children:[n.jsx("div",e.__assign({style:{marginBottom:16}},{children:n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 56 56",fill:"none"},{children:[n.jsx("rect",{x:"4",y:"4",width:"48",height:"48",rx:"24",fill:"#F1F5F9"}),n.jsx("rect",{x:"4",y:"4",width:"48",height:"48",rx:"24",stroke:"#F8FAFC",strokeWidth:"8"}),n.jsx("rect",{width:"24",height:"24",transform:"translate(16 16)",fill:"#F1F5F9"}),n.jsx("path",{d:"M25 19.5V18M21.0607 21.0607L20 20M21.0607 29L20 30.0607M29 21.0607L30.0607 20M19.5 25H18M31.8645 32.1896L29.3727 36.817C29.0881 37.3457 28.9457 37.61 28.7745 37.6769C28.6259 37.7349 28.4585 37.7185 28.324 37.6328C28.1689 37.534 28.0806 37.2471 27.9038 36.6733L24.4452 25.4453C24.3008 24.9765 24.2286 24.7421 24.2867 24.5838C24.3373 24.446 24.446 24.3373 24.5838 24.2867C24.7421 24.2286 24.9765 24.3008 25.4452 24.4452L36.6732 27.9038C37.247 28.0806 37.5339 28.169 37.6327 28.324C37.7185 28.4586 37.7348 28.6259 37.6768 28.7745C37.61 28.9458 37.3456 29.0881 36.817 29.3728L32.1896 31.8645C32.111 31.9068 32.0717 31.9279 32.0374 31.9551C32.0068 31.9792 31.9792 32.0068 31.9551 32.0374C31.9279 32.0717 31.9068 32.111 31.8645 32.1896Z",stroke:"#475569",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))})),n.jsx("p",e.__assign({style:{color:x,fontSize:12,fontWeight:500,lineHeight:"120%",fontFamily:A,margin:"0 0 8px 0"}},{children:"No example added yet"})),n.jsx("p",e.__assign({style:{color:f,fontSize:14,fontWeight:300,lineHeight:"140%",fontFamily:A,margin:"0 0 8px 0",maxWidth:530}},{children:"Add an example to show how this category is used, or generate one using chat."})),!K&&Ue(null!==ye||X)]})):n.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12}},{children:(m.occurrences||[]).map(function(t,s){var r=Se.includes(t.id);return ye===t.id?n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12,border:"1px solid ".concat(l),borderRadius:E,background:v,padding:16,boxShadow:"0 1px 3px rgba(0,0,0,0.07)"}},{children:[n.jsxs("div",{children:[n.jsx("label",e.__assign({style:e.__assign(e.__assign({},T),{marginBottom:8})},{children:n.jsx("span",e.__assign({style:{color:x}},{children:"Title/Subject"}))})),n.jsx("input",{type:"text",value:je,onChange:function(e){return ve(e.target.value)},placeholder:"e.g., Follow-up on client feedback from last meeting",style:e.__assign(e.__assign({},R),{border:"1px solid ".concat(l),lineHeight:"140%"})})]}),n.jsxs("div",{children:[n.jsxs("label",e.__assign({style:{display:"flex",alignItems:"center",gap:4,marginBottom:8}},{children:[n.jsx("span",e.__assign({style:{color:x,fontSize:14,fontWeight:500,fontFamily:A}},{children:"Message body"})),W]})),n.jsx("textarea",{ref:function(e){e&&ye===t.id&&!Be.current&&(Be.current=e),e&&(e.style.height="auto",e.style.height="".concat(e.scrollHeight,"px"))},value:Ce,onChange:function(e){Fe(e.target.value),e.target.style.height="auto",e.target.style.height="".concat(e.target.scrollHeight,"px")},placeholder:"e.g., Hi, here's the latest update on the project. Let us know if you have any questions.",rows:1,style:e.__assign(e.__assign({},R),{border:"1px solid ".concat(l),overflow:"hidden",minHeight:60,lineHeight:"140%",resize:"none"})})]}),n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"flex-end",gap:12,marginTop:4}},{children:[n.jsx("button",e.__assign({type:"button",onClick:function(){t.title||t.description||N(function(n){return e.__assign(e.__assign({},n),{occurrences:(n.occurrences||[]).filter(function(e){return e.id!==t.id})})}),me(null),Be.current=null},style:{padding:"6px 12px",color:j,fontSize:14,fontWeight:500,lineHeight:"140%",fontFamily:A,background:"none",border:"none",cursor:"pointer",borderRadius:D}},{children:"Cancel"})),n.jsx("button",e.__assign({type:"button",disabled:!Ce.trim(),onClick:function(){var n;Ce.trim()&&(n=t.id,N(function(t){return e.__assign(e.__assign({},t),{occurrences:t.occurrences.map(function(t){return t.id===n?e.__assign(e.__assign({},t),{title:je,description:Ce}):t})})}),me(null),Be.current=null,ze(function(e){return e.filter(function(e){return e!==t.id})}))},style:{padding:"6px 12px",borderRadius:D,fontSize:14,fontWeight:500,lineHeight:"140%",fontFamily:A,cursor:Ce.trim()?"pointer":"not-allowed",background:Ce.trim()?F:v,border:"1px solid ".concat(Ce.trim()?F:"#E2E8F0"),color:Ce.trim()?b:h,transition:"background 0.15s"}},{children:"Save"}))]}))]}),t.id):n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",border:"1px solid #E2E8F0",borderRadius:E,background:v,overflow:"hidden",boxShadow:"0 1px 3px rgba(0,0,0,0.07)"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12,padding:12}},{children:[n.jsx("div",e.__assign({style:{width:20,height:20,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:C,borderRadius:D,color:j,fontSize:10,fontWeight:500,fontFamily:A}},{children:s+1})),n.jsx("div",e.__assign({style:{flex:1,fontSize:15,fontWeight:500,lineHeight:"140%",fontFamily:A,color:x,wordBreak:"break-word"}},{children:t.title||n.jsx("span",e.__assign({style:{color:h,fontWeight:400,fontSize:14}},{children:"Untitled example"}))})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:8,flexShrink:0}},{children:[!K&&n.jsxs(n.Fragment,{children:[n.jsx("button",e.__assign({type:"button",disabled:null!==ye||X,onClick:function(){me(t.id),ve(t.title),Fe(t.description),r||qe(t.id)},style:e.__assign(e.__assign({},B),{width:36,height:36,border:"1px solid #E2E8F0",borderRadius:D,opacity:null!==ye||X?.5:1,cursor:null!==ye||X?"not-allowed":"pointer"})},{children:n.jsx(i.Pencil,{size:16,color:z})})),n.jsx("button",e.__assign({type:"button",disabled:null!==ye||X,onClick:function(){return N(function(n){return e.__assign(e.__assign({},n),{occurrences:(n.occurrences||[]).filter(function(e){return e.id!==t.id})})})},style:e.__assign(e.__assign({},B),{width:36,height:36,border:"1px solid ".concat(g),borderRadius:D,opacity:null!==ye||X?.5:1,cursor:null!==ye||X?"not-allowed":"pointer"})},{children:n.jsx(i.Trash2,{size:16,color:S})}))]}),n.jsx("button",e.__assign({type:"button",onClick:function(){return qe(t.id)},style:e.__assign(e.__assign({},B),{width:36,height:36,border:"none",background:"transparent"})},{children:r?n.jsx(i.ChevronUp,{size:20,color:z}):n.jsx(i.ChevronDown,{size:20,color:z})}))]}))]})),r&&n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",padding:"4px 12px 16px"}},{children:[n.jsxs("div",e.__assign({style:{marginBottom:12}},{children:[n.jsx("p",e.__assign({style:{color:f,fontSize:13,lineHeight:"140%",fontFamily:A,margin:"0 0 4px 0"}},{children:"Title/Subject:"})),n.jsx("p",e.__assign({style:{color:p,fontSize:14,fontWeight:300,lineHeight:"150%",fontFamily:A,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0}},{children:t.title||n.jsx("span",e.__assign({style:{color:h,fontStyle:"italic"}},{children:"—"}))}))]})),n.jsxs("div",{children:[n.jsx("p",e.__assign({style:{color:f,fontSize:13,lineHeight:"140%",fontFamily:A,margin:"0 0 4px 0"}},{children:"Message body:"})),n.jsx("p",e.__assign({style:{color:p,fontSize:14,fontWeight:300,lineHeight:"150%",fontFamily:A,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0}},{children:t.description}))]})]}))]}),t.id)})}))]}))]}))};exports.CreateCategory=U,exports.default=U;
|
|
2
|
+
//# sourceMappingURL=CreateCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateCategory.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("@mui/material"),r=require("lucide-react"),o=require("../../_svg/SparkleIcon.js"),s=require("@e-llm-studio/citation"),l=require("../../_svg/ButtonCognitiveIcon.js"),a=require("../../cognitiveDecisioningThemeStyles.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=function(e,n){if(!n)return null;var i=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),t=n.match(i);return t?t[1].replace(/\\n/g,"\n"):null},p=function(e,n,i){var t=100*e;if(!i)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 t>=70?{bg:"#FEF2F2",border:"#FEE2E2",badgeBg:"#FEF2F2",badgeBorder:"#FECACA",badgeText:"#B91C1C",highlightBg:"#FECACA",label:r}:t>=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}},x=d(i).default.forwardRef(function(i,r){var o=i.label,s=i.content,l=i.highlights,a=void 0===l?[]:l,d=i.styleVariant,c=i.isHighlighted,p=void 0!==c&&c,x=Array.isArray(s)?s.join("\n"):s||"",g="#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 n.jsxs(t.Box,e.__assign({sx:{mb:1.5}},{children:[n.jsx(t.Typography,e.__assign({sx:{fontSize:"12px",color:"#19213D",mb:.5,fontWeight:500,lineHeight:"130%"}},{children:o})),n.jsx(t.Box,e.__assign({ref:r,sx:{p:"8px 12px",borderRadius:"6px",border:p?"1.5px solid ".concat(g.borderColor):"1px solid ".concat(d.border),boxShadow:p?"0px 0px 0px 2px ".concat(g.shadow):"none",bgcolor:d.bg,fontSize:"13px",color:"#0B0E1A",lineHeight:1.4,minHeight:"28px",display:"flex",alignItems:"center",whiteSpace:"pre-line",wordBreak:"break-word"}},{children:n.jsx(t.Box,{children:function(){if(!x)return n.jsx(t.Typography,e.__assign({sx:{color:"#94A3B8",fontSize:"12px",fontStyle:"italic"}},{children:"Not Defined"}));if(!a||0===a.length)return x;var i=a.filter(function(e){return e&&e.length>0}).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(0===i.length)return x;var r=new RegExp("(".concat(i.join("|"),")"),"gi");return x.split(r).map(function(i,r){return a.some(function(e){return e&&e.toLowerCase()===i.toLowerCase()})?n.jsx(t.Box,e.__assign({component:"span",sx:{bgcolor:d.highlightBg,borderRadius:"2px",px:"2px"}},{children:i}),r):i})}()})}))]}))}),g=function(i){var r=i.data,o=i.isSelected,s=i.isCognitiveOpen,a=i.onToggleCognitive,d=i.onClick,c=r.summaryText||r.description||"",p=c.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),x=p?c.replace(p[0],"").trim():c,g=!!p;return n.jsxs(t.Box,e.__assign({id:"variant-card-".concat(r.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:r.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:[n.jsx(t.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1.5}},{children:r.isLoading?n.jsx(t.Skeleton,{variant:"rounded",width:80,height:20}):n.jsxs(t.Box,e.__assign({sx:{bgcolor:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:600,px:1,py:.5,borderRadius:"100px",border:"1px solid #FFE1E1"}},{children:[void 0!==r.similarity?r.similarity:0,"% Similarity"]}))})),n.jsxs(t.Box,e.__assign({sx:{display:"flex",flexDirection:"column",gap:1}},{children:[n.jsx(t.Typography,e.__assign({sx:{fontWeight:500,fontSize:"14px",color:"#19213D",lineHeight:1.2}},{children:r.title})),r.isLoading?n.jsxs(t.Box,{children:[n.jsx(t.Skeleton,{width:"90%"}),n.jsx(t.Skeleton,{width:"60%"})]}):n.jsxs(t.Typography,e.__assign({sx:{fontWeight:400,fontSize:"13px",color:"#666F8D",display:"-webkit-box",lineHeight:1.4}},{children:[x,g&&n.jsxs(t.Box,e.__assign({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:[n.jsx("div",e.__assign({style:{width:"13px",height:"13px",display:"flex",alignItems:"center"}},{children:n.jsx(l.ButtonCognitiveIcon,{})})),n.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:o&&s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:n.jsx("path",{d:"M6 9l6 6 6-6"})}))]}))]}))]}))]}))};exports.default=function(d){var h,u,f=d.proposedRule,_=d.variants,y=void 0===_?[]:_,m=d.onSelectVariant,b=d.onSkip,v=d.onBack,w=d.targetVariantId,F=d.highlightedField,B=i.useState(w||null),j=B[0],C=B[1],E=i.useState(!1),S=E[0],k=E[1],T=i.useState(null),A=T[0],R=T[1],D=i.useRef(null),I=i.useRef(null),L=i.useRef(null),z=i.useState([]),W=z[0],H=z[1],M=i.useState(!1),q=M[0],O=M[1],V=i.useState(!1),G=V[0],N=V[1];i.useEffect(function(){if(w&&C(w),R(null!=F?F:null),F){var e=setTimeout(function(){return R(null)},6e3);return function(){return clearTimeout(e)}}},[w,F]);var P=i.useMemo(function(){return e.__spreadArray([],y,!0).sort(function(e,n){return(n.similarity||0)-(e.similarity||0)})},[y]),U=i.useMemo(function(){if(j){var e=String(j).trim();return y.find(function(n){return n.id&&String(n.id).trim()===e})||P[0]}return P.length>0?P[0]:null},[j,y,P]);i.useEffect(function(){if(j&&D.current){var e=j.trim();setTimeout(function(){var n=document.getElementById("variant-card-".concat(e)),i=D.current;if(n&&i){var t=n.offsetLeft-i.offsetLeft-i.clientWidth/2+n.clientWidth/2;i.scrollTo({left:t,behavior:"smooth"})}},150)}},[j,P]);var $=U||{title:"",description:"",wta:"",wnta:""},J=null==U?void 0:U.analysis,X=(null===(u=null===(h=null==J?void 0:J.rule_difference_comparison)||void 0===h?void 0:h.summary)||void 0===u?void 0:u.overall_summary)||"",Y=X.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),K=!!Y,Q=Y?Y[1]:"",Z=c("reason",Q)||"",ee=c("gap",Q)||"",ne=c("relevance_score",Q)||"",ie=i.useMemo(function(){return{ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({},t,{style:{paddingLeft:"1.25rem",listStyleType:"decimal",margin:0}}))},li:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("li",e.__assign({},t,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:t.children}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("li",e.__assign({},t,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:t.children}))},a:function(i){var t=i.href,r=i.children,o=e.__rest(i,["href","children"]);if(!t)return n.jsx("a",e.__assign({},o,{children:r}));var s=t||"";try{s=decodeURIComponent(t)}catch(e){console.error("Error decoding href",e)}if(s.includes("variant_id=")){var l="",a="",d=s.match(/variant_id=([^?&]+)/);d&&(l=d[1]);var c=s.match(/field_name=([^&]+)/);return c&&(a=c[1]),n.jsxs("button",e.__assign({type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),C(l),R(a),setTimeout(function(){return R(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:[r,n.jsx("svg",e.__assign({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:n.jsx("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 n.jsx("a",e.__assign({href:t,target:"_blank",rel:"noopener noreferrer",style:{color:"#7C3AED"}},o,{children:r}))}}},[]),te=["title","description","when_to_apply","when_not_to_apply"],re={title:i.useRef(null),description:i.useRef(null),wta:i.useRef(null),wnta:i.useRef(null)},oe={title:i.useRef(null),description:i.useRef(null),wta:i.useRef(null),wnta:i.useRef(null)};i.useEffect(function(){if(A){var e="when_to_apply"===A?"wta":"when_not_to_apply"===A?"wnta":A,n=re[e]||oe[e];n&&n.current&&setTimeout(function(){n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}},[A]);var se=function(e){var n,i,t,r,o,s=null===(n=null==J?void 0:J.rule_difference_comparison)||void 0===n?void 0:n.fields,l="when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e,a=!(!f[l]&&!$[l]);if(!s||!s[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var d=s[e];if(d.mappings){var c=d.mappings[0]||{};return{score:d.score,relation:c.relation||"",highlightsA:(null===(i=c.highlights)||void 0===i?void 0:i.ruleA_spans)||[],highlightsB:(null===(t=c.highlights)||void 0===t?void 0:t.ruleB_spans)||[],hasContent:a}}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:a}},le=function(){if(L.current){var e=L.current.getBoundingClientRect(),n=[];te.forEach(function(i){var t="when_to_apply"===i?re.wta:"when_not_to_apply"===i?re.wnta:re[i],r="when_to_apply"===i?oe.wta:"when_not_to_apply"===i?oe.wnta:oe[i];if(t.current&&r.current){var o=se(i),s=p(o.score,o.relation,o.hasContent),l=t.current.getBoundingClientRect(),a=r.current.getBoundingClientRect();n.push({x1:l.right-e.left,y1:l.top+l.height/2-e.top,x2:a.left-e.left,y2:a.top+a.height/2-e.top,style:s})}}),H(n)}};i.useEffect(function(){var e=setTimeout(le,250);window.addEventListener("resize",le);var n=null;return L.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){le()})})).observe(L.current),function(){clearTimeout(e),window.removeEventListener("resize",le),n&&n.disconnect()}},[f,$,J,S]),i.useEffect(function(){var e=D.current;if(e){var n=function(){O(e.scrollLeft>0),N(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]),i.useEffect(function(){!j&&!w&&P.length>0&&!P[0].isLoading&&C(P[0].id)},[P,j,w]);var ae=function(e){D.current&&D.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})};return n.jsxs(t.Box,e.__assign({sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"hidden"}},{children:[n.jsxs(t.Box,e.__assign({sx:{px:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#FFFFFF",border:"1.5px solid #EEF0F4"}},{children:[n.jsxs(t.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1}},{children:[n.jsx(t.IconButton,e.__assign({onClick:v,size:"small"},{children:n.jsx(r.ArrowLeft,{})})),n.jsx(t.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:450,color:"#0F172A"}},{children:"Conflict Resolution"}))]})),n.jsx(t.IconButton,e.__assign({onClick:b,size:"small"},{children:n.jsx(t.Box,e.__assign({sx:{fontSize:24,lineHeight:.5}},{children:"×"}))}))]})),P.length>0&&n.jsxs(t.Box,e.__assign({sx:{px:3,pb:.25}},{children:[n.jsxs(t.Box,e.__assign({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1}},{children:[n.jsx(t.Typography,e.__assign({sx:{fontSize:"13px",color:"#475569"}},{children:"Choose the guideline you want to compare with."})),n.jsxs(t.Box,e.__assign({sx:{display:"flex",gap:.5,flexShrink:0,ml:1}},{children:[n.jsx(t.IconButton,e.__assign({onClick:function(){return ae("left")},size:"small",disabled:!q},{children:n.jsx(r.ArrowLeft,{size:18})})),n.jsx(t.IconButton,e.__assign({onClick:function(){return ae("right")},size:"small",disabled:!G},{children:n.jsx(r.ArrowRight,{size:18})}))]}))]})),n.jsx(t.Box,e.__assign({ref:D,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 n.jsx(g,{data:e,isSelected:(null==U?void 0:U.id)===e.id,isCognitiveOpen:S,onToggleCognitive:function(){k(function(e){var n=!e;return n&&I.current&&I.current.scrollTo({top:0,behavior:"smooth"}),n})},onClick:function(){return C((n=e).id),m(n),void k(!1);var n}},e.id)})}))]})),n.jsx(t.Box,e.__assign({ref:I,sx:{flex:1,overflowY:"auto",py:1.5,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",borderTop:X&&K&&S?"none":"1.5px solid #EEF0F4"}},{children:n.jsxs(t.Box,e.__assign({sx:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"}},{children:[X&&K&&S&&n.jsx(t.Box,e.__assign({sx:{width:"100%",pb:1,animation:"fadeIn 0.2s ease-out","& > div > button":{display:"none !important"},"& > div > div":{marginTop:"0px"}}},{children:n.jsx(s.CognitiveDecisioningCard,{headerIcon:n.jsx(l.ButtonCognitiveIcon,{}),reasoning:Z,gap:ee,score:ne,mdComponents:ie,isOpen:!0,onToggle:function(){return k(!1)},styles:a.getCognitiveDecisioningThemeStyles()})})),n.jsxs(t.Box,e.__assign({ref:L,sx:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative"}},{children:[n.jsx("svg",e.__assign({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:W.map(function(i,r){var o=(i.x1+i.x2)/2,s=(i.y1+i.y2)/2;return n.jsxs("g",{children:[n.jsx("line",{x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,stroke:i.style.badgeBorder,strokeWidth:"1"}),n.jsx("foreignObject",e.__assign({x:o-125,y:s-16,width:"250",height:"32"},{children:n.jsx(t.Box,e.__assign({sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:n.jsx(t.Box,e.__assign({sx:{fontSize:"11px",bgcolor:i.style.badgeBg,color:i.style.badgeText,border:"1px solid ".concat(i.style.badgeBorder),borderRadius:"12px",px:1.5,py:.25,fontWeight:500,textAlign:"center",whiteSpace:"nowrap"}},{children:i.style.label}))}))}))]},r)})})),n.jsxs(t.Box,e.__assign({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:[n.jsx(t.Box,e.__assign({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px dashed #B0B0B0",borderRadius:"8px 8px 0 0",display:"flex",minHeight:"24px",alignItems:"center"}},{children:n.jsx(t.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:500,color:"#19213D"}},{children:"Conflicting Guideline 1"}))})),n.jsx(t.Box,e.__assign({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:te.map(function(e){var i=se(e),t=p(i.score,i.relation,i.hasContent),r="when_to_apply"===e?re.wta:"when_not_to_apply"===e?re.wnta:re[e],o=f["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return n.jsx(x,{ref:r,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:i.highlightsA,styleVariant:t,isHighlighted:A===e},"left-".concat(e))})}))]})),n.jsx(t.Box,{sx:{width:"1px"}}),n.jsxs(t.Box,e.__assign({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:[n.jsx(t.Box,e.__assign({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"24px",display:"flex",alignItems:"center"}},{children:n.jsxs(t.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",display:"flex",alignItems:"center",gap:1}},{children:[n.jsx("div",e.__assign({style:{width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"}},{children:n.jsx(o.default,{})})),"Conflicting Guideline 2"]}))})),n.jsx(t.Box,e.__assign({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:te.map(function(e){var i=se(e),t=p(i.score,i.relation,i.hasContent),r="when_to_apply"===e?oe.wta:"when_not_to_apply"===e?oe.wnta:oe[e],o=$["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return n.jsx(x,{ref:r,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:i.highlightsB,styleVariant:t,isHighlighted:A===e},"right-".concat(e))})}))]}))]}))]}))}))]}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("@mui/material"),r=require("lucide-react"),o=require("../../_svg/SparkleIcon.js"),s=require("@e-llm-studio/citation"),l=require("../../_svg/ButtonCognitiveIcon.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=function(e,n){if(!n)return null;var i=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),t=n.match(i);return t?t[1].replace(/\\n/g,"\n"):null},c=function(e,n,i){var t=100*e;if(!i)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 t>=70?{bg:"#FEF2F2",border:"#FEE2E2",badgeBg:"#FEF2F2",badgeBorder:"#FECACA",badgeText:"#B91C1C",highlightBg:"#FECACA",label:r}:t>=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}},p=a(i).default.forwardRef(function(i,r){var o=i.label,s=i.content,l=i.highlights,a=void 0===l?[]:l,d=i.styleVariant,c=i.isHighlighted,p=void 0!==c&&c,x=Array.isArray(s)?s.join("\n"):s||"",g="#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 n.jsxs(t.Box,e.__assign({sx:{mb:1.5}},{children:[n.jsx(t.Typography,e.__assign({sx:{fontSize:"12px",color:"#19213D",mb:.5,fontWeight:500,lineHeight:"130%"}},{children:o})),n.jsx(t.Box,e.__assign({ref:r,sx:{p:"8px 12px",borderRadius:"6px",border:p?"1.5px solid ".concat(g.borderColor):"1px solid ".concat(d.border),boxShadow:p?"0px 0px 0px 2px ".concat(g.shadow):"none",bgcolor:d.bg,fontSize:"13px",color:"#0B0E1A",lineHeight:1.4,minHeight:"28px",display:"flex",alignItems:"center",whiteSpace:"pre-line",wordBreak:"break-word"}},{children:n.jsx(t.Box,{children:function(){if(!x)return n.jsx(t.Typography,e.__assign({sx:{color:"#94A3B8",fontSize:"12px",fontStyle:"italic"}},{children:"Not Defined"}));if(!a||0===a.length)return x;var i=a.filter(function(e){return e&&e.length>0}).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(0===i.length)return x;var r=new RegExp("(".concat(i.join("|"),")"),"gi");return x.split(r).map(function(i,r){return a.some(function(e){return e&&e.toLowerCase()===i.toLowerCase()})?n.jsx(t.Box,e.__assign({component:"span",sx:{bgcolor:d.highlightBg,borderRadius:"2px",px:"2px"}},{children:i}),r):i})}()})}))]}))}),x=function(i){var r=i.data,o=i.isSelected,s=i.isCognitiveOpen,a=i.onToggleCognitive,d=i.onClick,c=r.summaryText||r.description||"",p=c.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),x=p?c.replace(p[0],"").trim():c,g=!!p;return n.jsxs(t.Box,e.__assign({id:"variant-card-".concat(r.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:r.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:[n.jsx(t.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1.5}},{children:r.isLoading?n.jsx(t.Skeleton,{variant:"rounded",width:80,height:20}):n.jsxs(t.Box,e.__assign({sx:{bgcolor:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:600,px:1,py:.5,borderRadius:"100px",border:"1px solid #FFE1E1"}},{children:[void 0!==r.similarity?r.similarity:0,"% Similarity"]}))})),n.jsxs(t.Box,e.__assign({sx:{display:"flex",flexDirection:"column",gap:1}},{children:[n.jsx(t.Typography,e.__assign({sx:{fontWeight:500,fontSize:"14px",color:"#19213D",lineHeight:1.2}},{children:r.title})),r.isLoading?n.jsxs(t.Box,{children:[n.jsx(t.Skeleton,{width:"90%"}),n.jsx(t.Skeleton,{width:"60%"})]}):n.jsxs(t.Typography,e.__assign({sx:{fontWeight:400,fontSize:"13px",color:"#666F8D",display:"-webkit-box",lineHeight:1.4}},{children:[x,g&&n.jsxs(t.Box,e.__assign({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:[n.jsx("div",e.__assign({style:{width:"13px",height:"13px",display:"flex",alignItems:"center"}},{children:n.jsx(l.ButtonCognitiveIcon,{})})),n.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:o&&s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:n.jsx("path",{d:"M6 9l6 6 6-6"})}))]}))]}))]}))]}))};exports.default=function(a){var g,h,u=a.proposedRule,f=a.variants,_=void 0===f?[]:f,y=a.onSelectVariant,m=a.onSkip,b=a.onBack,v=a.targetVariantId,w=a.highlightedField,F=i.useState(v||null),B=F[0],j=F[1],C=i.useState(!1),E=C[0],S=C[1],k=i.useState(null),T=k[0],A=k[1],R=i.useRef(null),D=i.useRef(null),I=i.useRef(null),L=i.useState([]),z=L[0],W=L[1],H=i.useState(!1),M=H[0],q=H[1],O=i.useState(!1),V=O[0],G=O[1];i.useEffect(function(){if(v&&j(v),A(null!=w?w:null),w){var e=setTimeout(function(){return A(null)},6e3);return function(){return clearTimeout(e)}}},[v,w]);var N=i.useMemo(function(){return e.__spreadArray([],_,!0).sort(function(e,n){return(n.similarity||0)-(e.similarity||0)})},[_]),P=i.useMemo(function(){if(B){var e=String(B).trim();return _.find(function(n){return n.id&&String(n.id).trim()===e})||N[0]}return N.length>0?N[0]:null},[B,_,N]);i.useEffect(function(){if(B&&R.current){var e=B.trim();setTimeout(function(){var n=document.getElementById("variant-card-".concat(e)),i=R.current;if(n&&i){var t=n.offsetLeft-i.offsetLeft-i.clientWidth/2+n.clientWidth/2;i.scrollTo({left:t,behavior:"smooth"})}},150)}},[B,N]);var U=P||{title:"",description:"",wta:"",wnta:""},$=null==P?void 0:P.analysis,J=(null===(h=null===(g=null==$?void 0:$.rule_difference_comparison)||void 0===g?void 0:g.summary)||void 0===h?void 0:h.overall_summary)||"",X=J.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),Y=!!X,K=X?X[1]:"",Q=d("reason",K)||"",Z=d("gap",K)||"",ee=d("relevance_score",K)||"",ne=i.useMemo(function(){return{ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({},t,{style:{paddingLeft:"1.25rem",listStyleType:"decimal",margin:0}}))},li:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("li",e.__assign({},t,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:t.children}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("li",e.__assign({},t,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:t.children}))},a:function(i){var t=i.href,r=i.children,o=e.__rest(i,["href","children"]);if(!t)return n.jsx("a",e.__assign({},o,{children:r}));var s=t||"";try{s=decodeURIComponent(t)}catch(e){console.error("Error decoding href",e)}if(s.includes("variant_id=")){var l="",a="",d=s.match(/variant_id=([^?&]+)/);d&&(l=d[1]);var c=s.match(/field_name=([^&]+)/);return c&&(a=c[1]),n.jsxs("button",e.__assign({type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),j(l),A(a),setTimeout(function(){return A(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:[r,n.jsx("svg",e.__assign({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:n.jsx("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 n.jsx("a",e.__assign({href:t,target:"_blank",rel:"noopener noreferrer",style:{color:"#7C3AED"}},o,{children:r}))}}},[]),ie=["title","description","when_to_apply","when_not_to_apply"],te={title:i.useRef(null),description:i.useRef(null),wta:i.useRef(null),wnta:i.useRef(null)},re={title:i.useRef(null),description:i.useRef(null),wta:i.useRef(null),wnta:i.useRef(null)};i.useEffect(function(){if(T){var e="when_to_apply"===T?"wta":"when_not_to_apply"===T?"wnta":T,n=te[e]||re[e];n&&n.current&&setTimeout(function(){n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}},[T]);var oe=function(e){var n,i,t,r,o,s=null===(n=null==$?void 0:$.rule_difference_comparison)||void 0===n?void 0:n.fields,l="when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e,a=!(!u[l]&&!U[l]);if(!s||!s[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var d=s[e];if(d.mappings){var c=d.mappings[0]||{};return{score:d.score,relation:c.relation||"",highlightsA:(null===(i=c.highlights)||void 0===i?void 0:i.ruleA_spans)||[],highlightsB:(null===(t=c.highlights)||void 0===t?void 0:t.ruleB_spans)||[],hasContent:a}}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:a}},se=function(){if(I.current){var e=I.current.getBoundingClientRect(),n=[];ie.forEach(function(i){var t="when_to_apply"===i?te.wta:"when_not_to_apply"===i?te.wnta:te[i],r="when_to_apply"===i?re.wta:"when_not_to_apply"===i?re.wnta:re[i];if(t.current&&r.current){var o=oe(i),s=c(o.score,o.relation,o.hasContent),l=t.current.getBoundingClientRect(),a=r.current.getBoundingClientRect();n.push({x1:l.right-e.left,y1:l.top+l.height/2-e.top,x2:a.left-e.left,y2:a.top+a.height/2-e.top,style:s})}}),W(n)}};i.useEffect(function(){var e=setTimeout(se,250);window.addEventListener("resize",se);var n=null;return I.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){se()})})).observe(I.current),function(){clearTimeout(e),window.removeEventListener("resize",se),n&&n.disconnect()}},[u,U,$,E]),i.useEffect(function(){var e=R.current;if(e){var n=function(){q(e.scrollLeft>0),G(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)}}},[N]),i.useEffect(function(){!B&&!v&&N.length>0&&!N[0].isLoading&&j(N[0].id)},[N,B,v]);var le=function(e){R.current&&R.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})};return n.jsxs(t.Box,e.__assign({sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"hidden"}},{children:[n.jsxs(t.Box,e.__assign({sx:{px:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#FFFFFF",border:"1.5px solid #EEF0F4"}},{children:[n.jsxs(t.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1}},{children:[n.jsx(t.IconButton,e.__assign({onClick:b,size:"small"},{children:n.jsx(r.ArrowLeft,{})})),n.jsx(t.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:450,color:"#0F172A"}},{children:"Conflict Resolution"}))]})),n.jsx(t.IconButton,e.__assign({onClick:m,size:"small"},{children:n.jsx(t.Box,e.__assign({sx:{fontSize:24,lineHeight:.5}},{children:"×"}))}))]})),N.length>0&&n.jsxs(t.Box,e.__assign({sx:{px:3,pb:.25}},{children:[n.jsxs(t.Box,e.__assign({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1}},{children:[n.jsx(t.Typography,e.__assign({sx:{fontSize:"13px",color:"#475569"}},{children:"Choose the guideline you want to compare with."})),n.jsxs(t.Box,e.__assign({sx:{display:"flex",gap:.5,flexShrink:0,ml:1}},{children:[n.jsx(t.IconButton,e.__assign({onClick:function(){return le("left")},size:"small",disabled:!M},{children:n.jsx(r.ArrowLeft,{size:18})})),n.jsx(t.IconButton,e.__assign({onClick:function(){return le("right")},size:"small",disabled:!V},{children:n.jsx(r.ArrowRight,{size:18})}))]}))]})),n.jsx(t.Box,e.__assign({ref:R,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:N.map(function(e){return n.jsx(x,{data:e,isSelected:(null==P?void 0:P.id)===e.id,isCognitiveOpen:E,onToggleCognitive:function(){S(function(e){var n=!e;return n&&D.current&&D.current.scrollTo({top:0,behavior:"smooth"}),n})},onClick:function(){return j((n=e).id),y(n),void S(!1);var n}},e.id)})}))]})),n.jsx(t.Box,e.__assign({ref:D,sx:{flex:1,overflowY:"auto",py:1.5,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",borderTop:J&&Y&&E?"none":"1.5px solid #EEF0F4"}},{children:n.jsxs(t.Box,e.__assign({sx:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"}},{children:[J&&Y&&E&&n.jsx(t.Box,e.__assign({sx:{width:"100%",pb:1,animation:"fadeIn 0.2s ease-out","& > div > button":{display:"none !important"},"& > div > div":{marginTop:"0px"}}},{children:n.jsx(s.CognitiveDecisioningCard,{headerIcon:n.jsx(l.ButtonCognitiveIcon,{}),reasoning:Q,gap:Z,score:ee,mdComponents:ne,isOpen:!0,onToggle:function(){return S(!1)}})})),n.jsxs(t.Box,e.__assign({ref:I,sx:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative"}},{children:[n.jsx("svg",e.__assign({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:z.map(function(i,r){var o=(i.x1+i.x2)/2,s=(i.y1+i.y2)/2;return n.jsxs("g",{children:[n.jsx("line",{x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,stroke:i.style.badgeBorder,strokeWidth:"1"}),n.jsx("foreignObject",e.__assign({x:o-125,y:s-16,width:"250",height:"32"},{children:n.jsx(t.Box,e.__assign({sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:n.jsx(t.Box,e.__assign({sx:{fontSize:"11px",bgcolor:i.style.badgeBg,color:i.style.badgeText,border:"1px solid ".concat(i.style.badgeBorder),borderRadius:"12px",px:1.5,py:.25,fontWeight:500,textAlign:"center",whiteSpace:"nowrap"}},{children:i.style.label}))}))}))]},r)})})),n.jsxs(t.Box,e.__assign({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:[n.jsx(t.Box,e.__assign({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px dashed #B0B0B0",borderRadius:"8px 8px 0 0",display:"flex",minHeight:"24px",alignItems:"center"}},{children:n.jsx(t.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:500,color:"#19213D"}},{children:"Conflicting Guideline 1"}))})),n.jsx(t.Box,e.__assign({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:ie.map(function(e){var i=oe(e),t=c(i.score,i.relation,i.hasContent),r="when_to_apply"===e?te.wta:"when_not_to_apply"===e?te.wnta:te[e],o=u["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return n.jsx(p,{ref:r,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:i.highlightsA,styleVariant:t,isHighlighted:T===e},"left-".concat(e))})}))]})),n.jsx(t.Box,{sx:{width:"1px"}}),n.jsxs(t.Box,e.__assign({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:[n.jsx(t.Box,e.__assign({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"24px",display:"flex",alignItems:"center"}},{children:n.jsxs(t.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",display:"flex",alignItems:"center",gap:1}},{children:[n.jsx("div",e.__assign({style:{width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"}},{children:n.jsx(o.default,{})})),"Conflicting Guideline 2"]}))})),n.jsx(t.Box,e.__assign({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:ie.map(function(e){var i=oe(e),t=c(i.score,i.relation,i.hasContent),r="when_to_apply"===e?re.wta:"when_not_to_apply"===e?re.wnta:re[e],o=U["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return n.jsx(p,{ref:r,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:i.highlightsB,styleVariant:t,isHighlighted:T===e},"right-".concat(e))})}))]}))]}))]}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=AgentComposerRuleComparison.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("@mui/material"),r=require("lucide-react"),o=require("../../_svg/SparkleIcon.js"),s=require("@e-llm-studio/citation"),l=require("../../_svg/ButtonCognitiveIcon.js"),a=require("../../cognitiveDecisioningThemeStyles.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=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},p=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}},x=c(t).default.forwardRef(function(t,r){var o=t.label,s=t.content,l=t.highlights,a=void 0===l?[]:l,c=t.styleVariant,d=t.isHighlighted,p=void 0!==d&&d,x=Array.isArray(s)?s.join("\n"):s||"",g="#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 n.jsxs(i.Box,e.__assign({sx:{mb:1.5}},{children:[n.jsx(i.Typography,e.__assign({sx:{fontSize:"12px",color:"#19213D",mb:.5,fontWeight:500,lineHeight:"130%"}},{children:o})),n.jsx(i.Box,e.__assign({ref:r,sx:{p:"4px 12px",borderRadius:"6px",border:p?"1.5px solid ".concat(g.borderColor):"1px solid ".concat(c.border),boxShadow:p?"0px 0px 0px 2px ".concat(g.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:n.jsx(i.Box,{children:function(){if(!x)return n.jsx(i.Typography,e.__assign({sx:{color:"#94A3B8",fontSize:"12px",fontStyle:"italic"}},{children:"Not Defined"}));if(!a||0===a.length)return x;var t=a.filter(function(e){return e&&e.length>0}).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(0===t.length)return x;var r=new RegExp("(".concat(t.join("|"),")"),"gi");return x.split(r).map(function(t,r){return a.some(function(e){return e&&e.toLowerCase()===t.toLowerCase()})?n.jsx(i.Box,e.__assign({component:"span",sx:{bgcolor:c.highlightBg,borderRadius:"2px",px:"2px"}},{children:t}),r):t})}()})}))]}))}),g=function(t){var r=t.data,o=t.isSelected,s=t.isCognitiveOpen,a=t.onToggleCognitive,c=t.onClick,d=r.summaryText||r.description||"",p=d.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),x=p?d.replace(p[0],"").trim():d,g=!!p;return n.jsxs(i.Box,e.__assign({id:"variant-card-".concat(r.id),onClick:c,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:r.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:[n.jsx(i.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1.5}},{children:r.isLoading?n.jsx(i.Skeleton,{variant:"rounded",width:80,height:20}):n.jsxs(i.Box,e.__assign({sx:{bgcolor:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:600,px:1,py:.5,borderRadius:"100px",border:"1px solid #FFE1E1"}},{children:[void 0!==r.similarity?r.similarity:0,"% Similarity"]}))})),n.jsxs(i.Box,e.__assign({sx:{display:"flex",flexDirection:"column",gap:1}},{children:[n.jsxs(i.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"nowrap"}},{children:[n.jsx(i.Typography,e.__assign({title:r.title,sx:{fontWeight:500,fontSize:"14px",color:"#19213D",lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block"}},{children:r.title})),r.scope&&n.jsx(i.Box,e.__assign({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:r.scope}))]})),r.isLoading?n.jsxs(i.Box,{children:[n.jsx(i.Skeleton,{width:"90%"}),n.jsx(i.Skeleton,{width:"60%"})]}):n.jsxs(i.Box,e.__assign({title:x,sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[n.jsx(i.Typography,e.__assign({sx:{fontWeight:400,fontSize:"13px",color:"#666F8D",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"}},{children:x})),g&&n.jsxs(i.Box,e.__assign({onClick:function(e){e.stopPropagation(),o||c(),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:[n.jsx("div",e.__assign({style:{width:"13px",height:"13px",display:"flex",alignItems:"center"}},{children:n.jsx(l.ButtonCognitiveIcon,{})})),n.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:o&&s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:n.jsx("path",{d:"M6 9l6 6 6-6"})}))]}))]}))]}))]}))};exports.default=function(c){var h,u,f=c.proposedRule,_=c.variants,y=void 0===_?[]:_,b=c.onSelectVariant;c.onAddAsVariant;var m=c.onSkip,v=c.onBack,w=c.targetVariantId,F=c.highlightedField,B=t.useState(w||null),j=B[0],C=B[1],E=t.useState(!1),S=E[0],k=E[1],A=t.useState(null),T=A[0],R=A[1],D=t.useRef(null),L=t.useRef(null);t.useEffect(function(){if(w&&C(w),R(null!=F?F:null),F){var e=setTimeout(function(){return R(null)},6e3);return function(){return clearTimeout(e)}}},[w,F]);var I=function(e){D.current&&D.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})},W=t.useMemo(function(){return e.__spreadArray([],y,!0).sort(function(e,n){return(n.similarity||0)-(e.similarity||0)})},[y]),z=t.useMemo(function(){if(j){var e=String(j).trim();return y.find(function(n){return n.id&&String(n.id).trim()===e})||W[0]}return W.length>0?W[0]:null},[j,y,W]);t.useEffect(function(){if(j&&D.current){var e=j.trim();setTimeout(function(){var n=document.getElementById("variant-card-".concat(e)),t=D.current;if(n&&t){var i=n.offsetLeft-t.offsetLeft-t.clientWidth/2+n.clientWidth/2;t.scrollTo({left:i,behavior:"smooth"})}},150)}},[j,W]);var H=z||{title:"",scope:"",description:"",wta:"",wnta:"",variantType:"Default"},M=null==z?void 0:z.analysis,O=(null===(u=null===(h=null==M?void 0:M.rule_difference_comparison)||void 0===h?void 0:h.summary)||void 0===u?void 0:u.overall_summary)||"",q=O.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),V=!!q,N=q?q[1]:"",P=d("reason",N)||"",U=d("gap",N)||"",Y=d("relevance_score",N)||"",$=t.useMemo(function(){return{ul:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("ol",e.__assign({},i,{style:{paddingLeft:"1.25rem",listStyleType:"decimal",margin:0}}))},li:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("li",e.__assign({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},ol:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("li",e.__assign({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},a:function(t){var i=t.href,r=t.children,o=e.__rest(t,["href","children"]);if(!i)return n.jsx("a",e.__assign({},o,{children:r}));var s=i||"";try{s=decodeURIComponent(i)}catch(e){console.error("Error decoding href",e)}if(s.includes("variant_id=")){var l="",a="",c=s.match(/variant_id=([^?&]+)/);c&&(l=c[1]);var d=s.match(/field_name=([^&]+)/);return d&&(a=d[1]),n.jsxs("button",e.__assign({type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),C(l),R(a),setTimeout(function(){return R(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:[r,n.jsx("svg",e.__assign({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:n.jsx("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 n.jsx("a",e.__assign({href:i,target:"_blank",rel:"noopener noreferrer",style:{color:"#7C3AED"}},o,{children:r}))}}},[]);t.useEffect(function(){!j&&!w&&W.length>0&&!W[0].isLoading&&C(W[0].id)},[W,j,w]);var J=t.useRef(null),X=t.useState([]),G=X[0],K=X[1],Q=t.useState(!1),Z=Q[0],ee=Q[1],ne=t.useState(!1),te=ne[0],ie=ne[1];t.useEffect(function(){var e=D.current;if(e){var n=function(){ee(e.scrollLeft>0),ie(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)}}},[W]);var re={title:t.useRef(null),scope:t.useRef(null),description:t.useRef(null),wta:t.useRef(null),wnta:t.useRef(null)},oe={title:t.useRef(null),scope:t.useRef(null),description:t.useRef(null),wta:t.useRef(null),wnta:t.useRef(null)};t.useEffect(function(){if(T){var e="when_to_apply"===T?"wta":"when_not_to_apply"===T?"wnta":T,n=re[e]||oe[e];n&&n.current&&setTimeout(function(){n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}},[T]);var se=function(e){var n,t,i,r,o,s=null===(n=null==M?void 0:M.rule_difference_comparison)||void 0===n?void 0:n.fields,l="when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e,a=!(!f[l]&&!H[l]);if(!s||!s[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var c=s[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:a}}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:a}},le=["title","scope","description","when_to_apply","when_not_to_apply"],ae=function(){if(J.current){var e=J.current.getBoundingClientRect(),n=[];le.forEach(function(t){var i="when_to_apply"===t?re.wta:"when_not_to_apply"===t?re.wnta:re[t],r="when_to_apply"===t?oe.wta:"when_not_to_apply"===t?oe.wnta:oe[t];if(i.current&&r.current){i.current.style.height="auto",r.current.style.height="auto";var o=i.current.getBoundingClientRect(),s=r.current.getBoundingClientRect(),l=Math.max(o.height,s.height);i.current.style.height="".concat(l,"px"),r.current.style.height="".concat(l,"px");var a=i.current.getBoundingClientRect(),c=r.current.getBoundingClientRect(),d=se(t),x=p(d.score,d.relation,d.hasContent),g=a.top+a.height/2-e.top;n.push({x1:a.right-e.left,y1:g,x2:c.left-e.left,y2:g,style:x})}}),K(n)}};return t.useEffect(function(){var e=setTimeout(ae,250);window.addEventListener("resize",ae);var n=null;return J.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){ae()})})).observe(J.current),function(){clearTimeout(e),window.removeEventListener("resize",ae),n&&n.disconnect()}},[f,H,M,S]),n.jsxs(i.Box,e.__assign({sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"hidden"}},{children:[n.jsxs(i.Box,e.__assign({sx:{px:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#FFFFFF",border:"1.5px solid #EEF0F4"}},{children:[n.jsxs(i.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1}},{children:[n.jsx(i.IconButton,e.__assign({onClick:v,size:"small"},{children:n.jsx(r.ArrowLeft,{})})),n.jsx(i.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:450,color:"#0F172A"}},{children:"Learning Comparison"}))]})),n.jsx(i.IconButton,e.__assign({onClick:m,size:"small"},{children:n.jsx(i.Box,e.__assign({sx:{fontSize:24,lineHeight:.5}},{children:"×"}))}))]})),W.length>0&&n.jsxs(i.Box,e.__assign({sx:{px:3,pb:.25}},{children:[n.jsxs(i.Box,e.__assign({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1}},{children:[n.jsx(i.Typography,e.__assign({sx:{fontSize:"13px",color:"#475569"}},{children:"Choose the Learning you want to compare with the rule you are creating."})),n.jsxs(i.Box,e.__assign({sx:{display:"flex",gap:.5,flexShrink:0,ml:1}},{children:[n.jsx(i.IconButton,e.__assign({onClick:function(){return I("left")},size:"small",disabled:!Z},{children:n.jsx(r.ArrowLeft,{size:18})})),n.jsx(i.IconButton,e.__assign({onClick:function(){return I("right")},size:"small",disabled:!te},{children:n.jsx(r.ArrowRight,{size:18})}))]}))]})),n.jsx(i.Box,e.__assign({ref:D,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:W.map(function(e){return n.jsx(g,{data:e,isSelected:(null==z?void 0:z.id)===e.id,isCognitiveOpen:S,onToggleCognitive:function(){k(function(e){var n=!e;return n&&L.current&&L.current.scrollTo({top:0,behavior:"smooth"}),n})},onClick:function(){return C((n=e).id),b(n),void k(!1);var n}},e.id)})}))]})),n.jsx(i.Box,e.__assign({ref:L,sx:{flex:1,overflowY:"auto",py:1.5,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",borderTop:O&&V&&S?"none":"1.5px solid #EEF0F4"}},{children:n.jsxs(i.Box,e.__assign({sx:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"}},{children:[O&&V&&S&&n.jsx(i.Box,e.__assign({sx:{width:"100%",pb:1,animation:"fadeIn 0.2s ease-out","& > div > button":{display:"none !important"},"& > div > div":{marginTop:"0px"}}},{children:n.jsx(s.CognitiveDecisioningCard,{headerIcon:n.jsx(l.ButtonCognitiveIcon,{}),reasoning:P,gap:U,score:Y,mdComponents:$,isOpen:!0,onToggle:function(){return k(!1)},styles:a.getCognitiveDecisioningThemeStyles()})})),n.jsxs(i.Box,e.__assign({ref:J,sx:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative"}},{children:[n.jsx("svg",e.__assign({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:G.map(function(t,r){var o=(t.x1+t.x2)/2,s=t.y1;return n.jsxs("g",{children:[n.jsx("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:t.style.badgeBorder,strokeWidth:"1"}),n.jsx("foreignObject",e.__assign({x:o-125,y:s-16,width:"250",height:"32"},{children:n.jsx(i.Box,e.__assign({sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:n.jsx(i.Box,e.__assign({sx:{fontSize:"11px",bgcolor:t.style.badgeBg,color:t.style.badgeText,border:"1px solid ".concat(t.style.badgeBorder),borderRadius:"12px",px:1.5,py:.25,fontWeight:500,textAlign:"center",whiteSpace:"nowrap"}},{children:t.style.label}))}))}))]},r)})})),n.jsxs(i.Box,e.__assign({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:[n.jsx(i.Box,e.__assign({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px dashed #B0B0B0",borderRadius:"8px 8px 0 0",display:"flex",minHeight:"24px",alignItems:"center"}},{children:n.jsx(i.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:500,color:"#19213D"}},{children:"Learning You’re Creating"}))})),n.jsx(i.Box,e.__assign({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:le.map(function(e){var t=se(e),i=p(t.score,t.relation,t.hasContent),r="when_to_apply"===e?re.wta:"when_not_to_apply"===e?re.wnta:re[e],o=f["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return n.jsx(x,{ref:r,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:t.highlightsA,styleVariant:i,isHighlighted:T===e},"left-".concat(e))})}))]})),n.jsx(i.Box,{sx:{width:"1px"}}),n.jsxs(i.Box,e.__assign({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:[n.jsx(i.Box,e.__assign({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"24px",display:"flex",alignItems:"center"}},{children:n.jsxs(i.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",display:"flex",alignItems:"center",gap:1}},{children:[n.jsx("div",e.__assign({style:{width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"}},{children:n.jsx(o.default,{})})),"Existing Learning"]}))})),n.jsx(i.Box,e.__assign({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:le.map(function(e){var t=se(e),i=p(t.score,t.relation,t.hasContent),r="when_to_apply"===e?oe.wta:"when_not_to_apply"===e?oe.wnta:oe[e],o=H["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return n.jsx(x,{ref:r,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:t.highlightsB,styleVariant:i,isHighlighted:T===e},"right-".concat(e))})}))]}))]}))]}))}))]}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("@mui/material"),r=require("lucide-react"),o=require("../../_svg/SparkleIcon.js"),s=require("@e-llm-studio/citation"),l=require("../../_svg/ButtonCognitiveIcon.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=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},d=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}},p=a(t).default.forwardRef(function(t,r){var o=t.label,s=t.content,l=t.highlights,a=void 0===l?[]:l,c=t.styleVariant,d=t.isHighlighted,p=void 0!==d&&d,x=Array.isArray(s)?s.join("\n"):s||"",g="#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 n.jsxs(i.Box,e.__assign({sx:{mb:1.5}},{children:[n.jsx(i.Typography,e.__assign({sx:{fontSize:"12px",color:"#19213D",mb:.5,fontWeight:500,lineHeight:"130%"}},{children:o})),n.jsx(i.Box,e.__assign({ref:r,sx:{p:"4px 12px",borderRadius:"6px",border:p?"1.5px solid ".concat(g.borderColor):"1px solid ".concat(c.border),boxShadow:p?"0px 0px 0px 2px ".concat(g.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:n.jsx(i.Box,{children:function(){if(!x)return n.jsx(i.Typography,e.__assign({sx:{color:"#94A3B8",fontSize:"12px",fontStyle:"italic"}},{children:"Not Defined"}));if(!a||0===a.length)return x;var t=a.filter(function(e){return e&&e.length>0}).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(0===t.length)return x;var r=new RegExp("(".concat(t.join("|"),")"),"gi");return x.split(r).map(function(t,r){return a.some(function(e){return e&&e.toLowerCase()===t.toLowerCase()})?n.jsx(i.Box,e.__assign({component:"span",sx:{bgcolor:c.highlightBg,borderRadius:"2px",px:"2px"}},{children:t}),r):t})}()})}))]}))}),x=function(t){var r=t.data,o=t.isSelected,s=t.isCognitiveOpen,a=t.onToggleCognitive,c=t.onClick,d=r.summaryText||r.description||"",p=d.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),x=p?d.replace(p[0],"").trim():d,g=!!p;return n.jsxs(i.Box,e.__assign({id:"variant-card-".concat(r.id),onClick:c,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:r.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:[n.jsx(i.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1.5}},{children:r.isLoading?n.jsx(i.Skeleton,{variant:"rounded",width:80,height:20}):n.jsxs(i.Box,e.__assign({sx:{bgcolor:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:600,px:1,py:.5,borderRadius:"100px",border:"1px solid #FFE1E1"}},{children:[void 0!==r.similarity?r.similarity:0,"% Similarity"]}))})),n.jsxs(i.Box,e.__assign({sx:{display:"flex",flexDirection:"column",gap:1}},{children:[n.jsxs(i.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"nowrap"}},{children:[n.jsx(i.Typography,e.__assign({title:r.title,sx:{fontWeight:500,fontSize:"14px",color:"#19213D",lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block"}},{children:r.title})),r.scope&&n.jsx(i.Box,e.__assign({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:r.scope}))]})),r.isLoading?n.jsxs(i.Box,{children:[n.jsx(i.Skeleton,{width:"90%"}),n.jsx(i.Skeleton,{width:"60%"})]}):n.jsxs(i.Box,e.__assign({title:x,sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[n.jsx(i.Typography,e.__assign({sx:{fontWeight:400,fontSize:"13px",color:"#666F8D",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"}},{children:x})),g&&n.jsxs(i.Box,e.__assign({onClick:function(e){e.stopPropagation(),o||c(),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:[n.jsx("div",e.__assign({style:{width:"13px",height:"13px",display:"flex",alignItems:"center"}},{children:n.jsx(l.ButtonCognitiveIcon,{})})),n.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:o&&s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:n.jsx("path",{d:"M6 9l6 6 6-6"})}))]}))]}))]}))]}))};exports.default=function(a){var g,h,u=a.proposedRule,f=a.variants,_=void 0===f?[]:f,y=a.onSelectVariant;a.onAddAsVariant;var b=a.onSkip,m=a.onBack,v=a.targetVariantId,w=a.highlightedField,F=t.useState(v||null),B=F[0],j=F[1],C=t.useState(!1),E=C[0],S=C[1],k=t.useState(null),A=k[0],R=k[1],T=t.useRef(null),L=t.useRef(null);t.useEffect(function(){if(v&&j(v),R(null!=w?w:null),w){var e=setTimeout(function(){return R(null)},6e3);return function(){return clearTimeout(e)}}},[v,w]);var D=function(e){T.current&&T.current.scrollBy({left:"left"===e?-300:300,behavior:"smooth"})},I=t.useMemo(function(){return e.__spreadArray([],_,!0).sort(function(e,n){return(n.similarity||0)-(e.similarity||0)})},[_]),W=t.useMemo(function(){if(B){var e=String(B).trim();return _.find(function(n){return n.id&&String(n.id).trim()===e})||I[0]}return I.length>0?I[0]:null},[B,_,I]);t.useEffect(function(){if(B&&T.current){var e=B.trim();setTimeout(function(){var n=document.getElementById("variant-card-".concat(e)),t=T.current;if(n&&t){var i=n.offsetLeft-t.offsetLeft-t.clientWidth/2+n.clientWidth/2;t.scrollTo({left:i,behavior:"smooth"})}},150)}},[B,I]);var z=W||{title:"",scope:"",description:"",wta:"",wnta:"",variantType:"Default"},H=null==W?void 0:W.analysis,M=(null===(h=null===(g=null==H?void 0:H.rule_difference_comparison)||void 0===g?void 0:g.summary)||void 0===h?void 0:h.overall_summary)||"",O=M.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),q=!!O,V=O?O[1]:"",N=c("reason",V)||"",P=c("gap",V)||"",U=c("relevance_score",V)||"",Y=t.useMemo(function(){return{ul:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("ol",e.__assign({},i,{style:{paddingLeft:"1.25rem",listStyleType:"decimal",margin:0}}))},li:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("li",e.__assign({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},ol:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("li",e.__assign({},i,{style:{marginBottom:"4px",listStyleType:"decimal"}},{children:i.children}))},a:function(t){var i=t.href,r=t.children,o=e.__rest(t,["href","children"]);if(!i)return n.jsx("a",e.__assign({},o,{children:r}));var s=i||"";try{s=decodeURIComponent(i)}catch(e){console.error("Error decoding href",e)}if(s.includes("variant_id=")){var l="",a="",c=s.match(/variant_id=([^?&]+)/);c&&(l=c[1]);var d=s.match(/field_name=([^&]+)/);return d&&(a=d[1]),n.jsxs("button",e.__assign({type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),j(l),R(a),setTimeout(function(){return R(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:[r,n.jsx("svg",e.__assign({width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:n.jsx("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 n.jsx("a",e.__assign({href:i,target:"_blank",rel:"noopener noreferrer",style:{color:"#7C3AED"}},o,{children:r}))}}},[]);t.useEffect(function(){!B&&!v&&I.length>0&&!I[0].isLoading&&j(I[0].id)},[I,B,v]);var $=t.useRef(null),J=t.useState([]),X=J[0],G=J[1],K=t.useState(!1),Q=K[0],Z=K[1],ee=t.useState(!1),ne=ee[0],te=ee[1];t.useEffect(function(){var e=T.current;if(e){var n=function(){Z(e.scrollLeft>0),te(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)}}},[I]);var ie={title:t.useRef(null),scope:t.useRef(null),description:t.useRef(null),wta:t.useRef(null),wnta:t.useRef(null)},re={title:t.useRef(null),scope:t.useRef(null),description:t.useRef(null),wta:t.useRef(null),wnta:t.useRef(null)};t.useEffect(function(){if(A){var e="when_to_apply"===A?"wta":"when_not_to_apply"===A?"wnta":A,n=ie[e]||re[e];n&&n.current&&setTimeout(function(){n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}},[A]);var oe=function(e){var n,t,i,r,o,s=null===(n=null==H?void 0:H.rule_difference_comparison)||void 0===n?void 0:n.fields,l="when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e,a=!(!u[l]&&!z[l]);if(!s||!s[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var c=s[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:a}}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:a}},se=["title","scope","description","when_to_apply","when_not_to_apply"],le=function(){if($.current){var e=$.current.getBoundingClientRect(),n=[];se.forEach(function(t){var i="when_to_apply"===t?ie.wta:"when_not_to_apply"===t?ie.wnta:ie[t],r="when_to_apply"===t?re.wta:"when_not_to_apply"===t?re.wnta:re[t];if(i.current&&r.current){i.current.style.height="auto",r.current.style.height="auto";var o=i.current.getBoundingClientRect(),s=r.current.getBoundingClientRect(),l=Math.max(o.height,s.height);i.current.style.height="".concat(l,"px"),r.current.style.height="".concat(l,"px");var a=i.current.getBoundingClientRect(),c=r.current.getBoundingClientRect(),p=oe(t),x=d(p.score,p.relation,p.hasContent),g=a.top+a.height/2-e.top;n.push({x1:a.right-e.left,y1:g,x2:c.left-e.left,y2:g,style:x})}}),G(n)}};return t.useEffect(function(){var e=setTimeout(le,250);window.addEventListener("resize",le);var n=null;return $.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){le()})})).observe($.current),function(){clearTimeout(e),window.removeEventListener("resize",le),n&&n.disconnect()}},[u,z,H,E]),n.jsxs(i.Box,e.__assign({sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"hidden"}},{children:[n.jsxs(i.Box,e.__assign({sx:{px:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#FFFFFF",border:"1.5px solid #EEF0F4"}},{children:[n.jsxs(i.Box,e.__assign({sx:{display:"flex",alignItems:"center",gap:1}},{children:[n.jsx(i.IconButton,e.__assign({onClick:m,size:"small"},{children:n.jsx(r.ArrowLeft,{})})),n.jsx(i.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:450,color:"#0F172A"}},{children:"Learning Comparison"}))]})),n.jsx(i.IconButton,e.__assign({onClick:b,size:"small"},{children:n.jsx(i.Box,e.__assign({sx:{fontSize:24,lineHeight:.5}},{children:"×"}))}))]})),I.length>0&&n.jsxs(i.Box,e.__assign({sx:{px:3,pb:.25}},{children:[n.jsxs(i.Box,e.__assign({sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1}},{children:[n.jsx(i.Typography,e.__assign({sx:{fontSize:"13px",color:"#475569"}},{children:"Choose the Learning you want to compare with the rule you are creating."})),n.jsxs(i.Box,e.__assign({sx:{display:"flex",gap:.5,flexShrink:0,ml:1}},{children:[n.jsx(i.IconButton,e.__assign({onClick:function(){return D("left")},size:"small",disabled:!Q},{children:n.jsx(r.ArrowLeft,{size:18})})),n.jsx(i.IconButton,e.__assign({onClick:function(){return D("right")},size:"small",disabled:!ne},{children:n.jsx(r.ArrowRight,{size:18})}))]}))]})),n.jsx(i.Box,e.__assign({ref:T,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:I.map(function(e){return n.jsx(x,{data:e,isSelected:(null==W?void 0:W.id)===e.id,isCognitiveOpen:E,onToggleCognitive:function(){S(function(e){var n=!e;return n&&L.current&&L.current.scrollTo({top:0,behavior:"smooth"}),n})},onClick:function(){return j((n=e).id),y(n),void S(!1);var n}},e.id)})}))]})),n.jsx(i.Box,e.__assign({ref:L,sx:{flex:1,overflowY:"auto",py:1.5,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",borderTop:M&&q&&E?"none":"1.5px solid #EEF0F4"}},{children:n.jsxs(i.Box,e.__assign({sx:{display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"}},{children:[M&&q&&E&&n.jsx(i.Box,e.__assign({sx:{width:"100%",pb:1,animation:"fadeIn 0.2s ease-out","& > div > button":{display:"none !important"},"& > div > div":{marginTop:"0px"}}},{children:n.jsx(s.CognitiveDecisioningCard,{headerIcon:n.jsx(l.ButtonCognitiveIcon,{}),reasoning:N,gap:P,score:U,mdComponents:Y,isOpen:!0,onToggle:function(){return S(!1)}})})),n.jsxs(i.Box,e.__assign({ref:$,sx:{display:"grid",gridTemplateColumns:"1fr auto 1fr",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative"}},{children:[n.jsx("svg",e.__assign({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:X.map(function(t,r){var o=(t.x1+t.x2)/2,s=t.y1;return n.jsxs("g",{children:[n.jsx("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:t.style.badgeBorder,strokeWidth:"1"}),n.jsx("foreignObject",e.__assign({x:o-125,y:s-16,width:"250",height:"32"},{children:n.jsx(i.Box,e.__assign({sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:n.jsx(i.Box,e.__assign({sx:{fontSize:"11px",bgcolor:t.style.badgeBg,color:t.style.badgeText,border:"1px solid ".concat(t.style.badgeBorder),borderRadius:"12px",px:1.5,py:.25,fontWeight:500,textAlign:"center",whiteSpace:"nowrap"}},{children:t.style.label}))}))}))]},r)})})),n.jsxs(i.Box,e.__assign({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:[n.jsx(i.Box,e.__assign({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px dashed #B0B0B0",borderRadius:"8px 8px 0 0",display:"flex",minHeight:"24px",alignItems:"center"}},{children:n.jsx(i.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:500,color:"#19213D"}},{children:"Learning You’re Creating"}))})),n.jsx(i.Box,e.__assign({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:se.map(function(e){var t=oe(e),i=d(t.score,t.relation,t.hasContent),r="when_to_apply"===e?ie.wta:"when_not_to_apply"===e?ie.wnta:ie[e],o=u["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return n.jsx(p,{ref:r,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:t.highlightsA,styleVariant:i,isHighlighted:A===e},"left-".concat(e))})}))]})),n.jsx(i.Box,{sx:{width:"1px"}}),n.jsxs(i.Box,e.__assign({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:[n.jsx(i.Box,e.__assign({sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"24px",display:"flex",alignItems:"center"}},{children:n.jsxs(i.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",display:"flex",alignItems:"center",gap:1}},{children:[n.jsx("div",e.__assign({style:{width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"}},{children:n.jsx(o.default,{})})),"Existing Learning"]}))})),n.jsx(i.Box,e.__assign({sx:{p:"12px",display:"flex",flexDirection:"column"}},{children:se.map(function(e){var t=oe(e),i=d(t.score,t.relation,t.hasContent),r="when_to_apply"===e?re.wta:"when_not_to_apply"===e?re.wnta:re[e],o=z["when_to_apply"===e?"wta":"when_not_to_apply"===e?"wnta":e];return n.jsx(p,{ref:r,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:t.highlightsB,styleVariant:i,isHighlighted:A===e},"right-".concat(e))})}))]}))]}))]}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=RuleComparisonNew.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,r=require("../TrafficManager/CreateRule.js");exports.TemplateList=void 0,(t=exports.TemplateList||(exports.TemplateList={})).BaseTemplate="BASE_TEMPLATE",t.TrafficManager="TRAFFIC_MANAGER",t.testing="TESTING",t.CreateRule="CREATE_RULE",t.WorkflowComposer="WORKFLOW_COMPOSER",t.CreateCategory="CREATE_CATEGORY";var a=((e={})[exports.TemplateList.CreateRule]=r.CreateRule,e);exports.TemplateMap=a;
|
|
2
2
|
//# sourceMappingURL=templatesMap.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=require("react/jsx-runtime"),e=require("react"),t=require("../../InputDataReasoningCard.js"),o=require("../../organisms/ConditionSection/ConditionSection.js"),l=require("../../organisms/ConfigSection/ConfigSection.js"),r=require("../../organisms/ScopeSection/ScopeSection.js"),a=require("../../organisms/TextSection/TextSection.js"),d=require("../../AccordianSection.js"),s=require("../../_svg/ButtonCognitiveIcon.js"),u=require("../../_svg/EditPencilIcon.js"),c=require("lucide-react"),p=require("../../../../LearningManagement/store/useLearningTemplateStore.js"),v=require("../../hooks/useVariantEditSession.js");function f(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var g=f(e),h=function(e){var t=e.children,o=e.onAddVariant,l=e.isDisabled,r=e.showAddVariantBtn,a=void 0===r||r,d=e.showConnectorLines,s=void 0===d||d,u=g.default.Children.toArray(t);return n.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%",minWidth:0,maxWidth:"100%",boxSizing:"border-box"}},{children:[u.map(function(i,e){var t=e===u.length-1,o=s&&(!t||a);return n.jsxs(g.default.Fragment,{children:[i,o&&n.jsx("div",{style:{width:"2px",height:"20px",backgroundColor:"var(--il-border, #e2e8f0)",marginLeft:"30px"}})]},e)}),a&&n.jsx("div",i.__assign({onClick:l?void 0:o,style:{padding:"8px 16px",border:"1px solid var(--il-border, #E2E8F0)",borderRadius:"8px",color:l?"var(--il-disabled, #94A3B8)":"var(--il-secondary-fg, #475569)",fontSize:"14px",fontWeight:"500",cursor:l?"not-allowed":"pointer",backgroundColor:l?"var(--il-surface-alt, #f8fafc)":"var(--il-surface, #ffffff)",opacity:l?.7:1,userSelect:"none",transition:"all 0.2s ease"}},{children:"Add Variant"}))]}))};exports.CreateRule=function(f){var x,y,m,_,T,C,b,S,A,E,I,D,j,w=f.state,O=f.handlers,V=f.uiState,R=p.useLearningTemplateStore(function(i){return i.backwardCompatibility}),B=(null==V?void 0:V.highlights)||new Map,P=B.get("global_0")||{},W=e.useState({}),N=W[0],k=W[1],L=e.useState(null),z=L[0],q=L[1],M=e.useState(function(){var i,n,e;if((null==V?void 0:V.defaultTierOpen)>=0&&(null===(i=null==V?void 0:V.tierOptions)||void 0===i?void 0:i[V.defaultTierOpen]))return V.tierOptions[V.defaultTierOpen].toLowerCase().replace(/ /g,"_");var t=null===(e=null===(n=w.scopeData)||void 0===n?void 0:n.tiers)||void 0===e?void 0:e[0];return t?t.toLowerCase().replace(/ /g,"_"):null});M[0];var F=M[1],J="rule-setup"===(null==V?void 0:V.activeEditId),H=g.default.useRef(new Map),K=v.useVariantEditSession(V,function(n){var e,t;return{ruleDescription:(null==n?void 0:n.ruleDescription)||"",instructionPrompt:null!==(t=null!==(e=null==n?void 0:n.instructionPrompt)&&void 0!==e?e:null==V?void 0:V.instructionPrompt)&&void 0!==t?t:"",whenToApplyConditions:((null==n?void 0:n.whenToApplyConditions)||[]).map(function(n){return i.__assign({},n)}),whenNotToApplyConditions:((null==n?void 0:n.whenNotToApplyConditions)||[]).map(function(n){return i.__assign({},n)})}},function(i){var n;void 0!==i.instructionPrompt&&(null===(n=null==V?void 0:V.setInstructionPrompt)||void 0===n||n.call(V,i.instructionPrompt))}),$=K.variantEdit,U=K.pendingVariantId,Z=K.handleStartVariantEdit,G=K.handleCancelVariantEdit,Q=K.patchVariantDraft,X=K.editDraftCondition,Y=K.removeDraftCondition,ii=K.addDraftCondition,ni=K.handleSaveVariantEdit,ei=e.useState(null),ti=ei[0],oi=ei[1],li=e.useState(null),ri=li[0],ai=li[1],di=e.useState(!1),si=di[0],ui=di[1],ci=g.default.useRef(null==V?void 0:V.isAiStreaming);e.useEffect(function(){ci.current&&!(null==V?void 0:V.isAiStreaming)&&si&&ui(!1),ci.current=null==V?void 0:V.isAiStreaming},[null==V?void 0:V.isAiStreaming,si]);var pi=function(){var n,e;(null==V?void 0:V.activeEditId)&&"rule-setup"!==V.activeEditId||(null===(n=null==V?void 0:V.setActiveEditId)||void 0===n||n.call(V,"rule-setup"),oi(null!==(e=w.ruleTitle)&&void 0!==e?e:""),ai(w.scopeData?i.__assign({},w.scopeData):{}))},vi=function(){var i;oi(null),ai(null),null===(i=null==V?void 0:V.setActiveEditId)||void 0===i||i.call(V,null)},fi=function(){var i,n,e=null!=ti?ti:w.ruleTitle,t=null!=ri?ri:w.scopeData,o=e!==w.ruleTitle,l=JSON.stringify(t)!==JSON.stringify(w.scopeData);if(!o&&!l)return oi(null),ai(null),void(null===(i=null==V?void 0:V.setActiveEditId)||void 0===i||i.call(V,null));if(null==V?void 0:V.setSendMessageInChat){var r="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),a=[];if(o&&a.push((null==e?void 0:e.trim())?"with ".concat(e):"cleared"),l){var d=null==t?void 0:t.tiers,s=d&&d.length>0?"tiers: ".concat(d.join(", ")):"No Tier Selected";a.push(s)}var u=a.join(" and "),c=(null==V?void 0:V.ruleTitle)||"Rule Setup";V.setSendMessageInChat("__SKELETON__:".concat(r,":Update ").concat(c," ").concat(u))}ui(!0),oi(null),ai(null),null===(n=null==V?void 0:V.setActiveEditId)||void 0===n||n.call(V,null)},gi=null!==ti?null==ti?void 0:ti.trim():(w.ruleTitle||"").trim(),hi=null!=ri?ri:w.scopeData,xi=gi!==(w.ruleTitle||"").trim(),yi=JSON.stringify(hi)!==JSON.stringify(w.scopeData),mi=""===gi,_i=!xi&&!yi||mi,Ti=g.default.useRef(null==V?void 0:V.defaultVariantOpen),Ci=g.default.useRef(null==V?void 0:V.activeVariantAccordionIndex),bi=g.default.useRef(null==V?void 0:V.defaultTierOpen),Si=g.default.useRef(null===(x=w.scopeData)||void 0===x?void 0:x.tiers),Ai=g.default.useRef(w.variantsByTier);g.default.useEffect(function(){var i,n,e,t,o,l,r=null,a=!1;Ti.current!==(null==V?void 0:V.defaultVariantOpen)&&(a=!0,Ti.current=null==V?void 0:V.defaultVariantOpen),Ci.current!==(null==V?void 0:V.activeVariantAccordionIndex)&&(a=!0,Ci.current=null==V?void 0:V.activeVariantAccordionIndex),bi.current!==(null==V?void 0:V.defaultTierOpen)&&(a=!0,bi.current=null==V?void 0:V.defaultTierOpen);var d=(null===(i=w.scopeData)||void 0===i?void 0:i.tiers)||[];JSON.stringify(Si.current)!==JSON.stringify(d)&&(a=!0,Si.current=d,d.length>0&&F(d[0].toLowerCase().replace(/ /g,"_")));var s=(null===(n=null==V?void 0:V.tierOptions)||void 0===n?void 0:n.filter(function(i){var n,e;return null===(e=null===(n=w.scopeData)||void 0===n?void 0:n.tiers)||void 0===e?void 0:e.includes(i)}))||[],u=s.some(function(i){var n,e,t,o,l=i.toLowerCase().replace(/ /g,"_");return((null===(e=null===(n=Ai.current)||void 0===n?void 0:n[l])||void 0===e?void 0:e.length)||0)!==((null===(o=null===(t=w.variantsByTier)||void 0===t?void 0:t[l])||void 0===o?void 0:o.length)||0)});if(u&&(a=!0),a){var c=null!==(e=null==V?void 0:V.activeVariantAccordionIndex)&&void 0!==e?e:null==V?void 0:V.defaultVariantOpen;if(null==c||c<0)return q(null),void(Ai.current=w.variantsByTier);s.forEach(function(i,n){var e;if(!((null==V?void 0:V.defaultTierOpen)>=0&&n!==V.defaultTierOpen)){var t=i.toLowerCase().replace(/ /g,"_"),o=(null===(e=w.variantsByTier)||void 0===e?void 0:e[t])||[];o[c]&&(r="".concat(t,"-variant-").concat(c)),null!=(null==V?void 0:V.autoScrollVariantIndex)&&o[V.autoScrollVariantIndex]&&(r="".concat(t,"-variant-").concat(V.autoScrollVariantIndex))}}),r&&q(r)}if(null===z){var p=null!==(t=null==V?void 0:V.activeVariantAccordionIndex)&&void 0!==t?t:null==V?void 0:V.defaultVariantOpen;null!=p&&p>=0&&(null===(l=null===(o=null==V?void 0:V.tierOptions)||void 0===o?void 0:o.filter(function(i){var n,e;return null===(e=null===(n=w.scopeData)||void 0===n?void 0:n.tiers)||void 0===e?void 0:e.includes(i)}))||void 0===l||l.forEach(function(i,n){var e;if(!((null==V?void 0:V.defaultTierOpen)>=0&&n!==V.defaultTierOpen)){var t=i.toLowerCase().replace(/ /g,"_");((null===(e=w.variantsByTier)||void 0===e?void 0:e[t])||[])[p]&&q("".concat(t,"-variant-").concat(p))}}))}Ai.current=w.variantsByTier},[w.variantsByTier,null==V?void 0:V.defaultVariantOpen,null==V?void 0:V.activeVariantAccordionIndex,null===(y=w.scopeData)||void 0===y?void 0:y.tiers,null==V?void 0:V.tierOptions,null==V?void 0:V.autoScrollVariantIndex,null==V?void 0:V.defaultTierOpen]);var Ei=function(n){k(function(e){var t;return i.__assign(i.__assign({},e),((t={})[n]=!e[n],t))})},Ii=function(i){var n,e,t,o=i.split("_"),l=o[o.length-1],r=/^\d+$/.test(l)?o.slice(0,-1).join("_"):i,a=null===(n=w.fieldCitations)||void 0===n?void 0:n[r];if(Array.isArray(a)&&a.length>0)return a;var d=null===(e=w.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(d)&&d.length>0?d:null!==(t=w.citations)&&void 0!==t?t:[]},Di={marginTop:"-17px",position:"relative",zIndex:1};e.useEffect(function(){var i,n;null!=(null==V?void 0:V.autoScrollVariantIndex)&&v.hasMeaningfulText(w.ruleTitle)&&(null===(n=null===(i=null==V?void 0:V.tierOptions)||void 0===i?void 0:i.filter(function(i){var n,e;return null===(e=null===(n=w.scopeData)||void 0===n?void 0:n.tiers)||void 0===e?void 0:e.includes(i)}))||void 0===n||n.forEach(function(i){var n=i.toLowerCase().replace(/ /g,"_"),e="".concat(n,"-variant-").concat(V.autoScrollVariantIndex),t=H.current.get(e);t&&requestAnimationFrame(function(){setTimeout(function(){t.scrollIntoView({behavior:"smooth",block:"center"})},300)})}))},[null==V?void 0:V.scrollTrigger,w.ruleTitle]),console.log("CreateRule state:",w),console.log("CreateRule uiState:",V);var ji=!!(null==V?void 0:V.activeEditId),wi=J&&null!==ti?ti:w.ruleTitle,Oi=ji&&"rule-setup"!==(null==V?void 0:V.activeEditId);return n.jsxs("div",i.__assign({className:"traffic-manager-template"},{children:[n.jsx("div",i.__assign({"data-edit-id":"rule-setup"},{children:n.jsx(d.default,i.__assign({title:{type:"other",label:(null==V?void 0:V.setupLabel)||"Rule Setup"},actionButtons:R?function(e,t){if(J)return null;var o=!!(null==V?void 0:V.activeEditId)&&"rule-setup"!==V.activeEditId;return n.jsx("div",i.__assign({style:{position:"relative",display:"flex",flexDirection:"column"}},{children:n.jsx("button",i.__assign({title:o?"Save active edits first":"Edit",onClick:function(i){i.stopPropagation(),o?(null==V?void 0:V.setPendingEditId)&&V.setPendingEditId(V.activeEditId||null):(pi(),(null==V?void 0:V.setPendingEditId)&&V.setPendingEditId(null),e||t())},disabled:si,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"6px 8px",border:"1px solid var(--il-border, #e5e7eb)",borderRadius:"8px",cursor:si?"not-allowed":"pointer",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-muted, #64748B)",opacity:si?.5:1}},{children:si?"Validating...":R?n.jsx(c.Pencil,{size:14}):n.jsx(u.EditPencilIcon,{size:12})}))}))}:function(e,t){if(J){var o={display:"flex",alignItems:"center",gap:"6px",padding:"6px 10px",borderRadius:"6px",border:"1px solid var(--il-border, #CBD5E1)",color:"var(--il-primary, #2563EB)",fontSize:"13px",fontWeight:500};return n.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("button",i.__assign({onClick:function(i){i.stopPropagation(),fi()},disabled:_i||si,style:i.__assign(i.__assign({},o),{backgroundColor:si?"var(--il-primary-subtle, #f5f3ff)":"var(--il-surface, #ffffff)",cursor:_i||si?"not-allowed":"pointer",opacity:_i?.5:1,border:"1px solid var(--il-border, #CBD5E1)",color:"var(--il-primary, #2563EB)"})},{children:si?"Validating...":"Save"})),!si&&n.jsx("button",i.__assign({onClick:function(i){i.stopPropagation(),vi()},style:i.__assign(i.__assign({},o),{backgroundColor:"var(--il-surface, #ffffff)",cursor:"pointer",border:"1px solid var(--il-border, #CBD5E1)",color:"var(--il-primary, #2563EB)"})},{children:"Cancel"}))]}))}var l=(null==V?void 0:V.hideSetupEdit)&&"Edit"===(null==V?void 0:V.usedFor);return n.jsx(n.Fragment,{children:!l&&n.jsx("button",i.__assign({title:Oi?"Save active edits first":mi?"Add":"Edit",onClick:function(i){i.stopPropagation(),Oi?(null==V?void 0:V.setPendingEditId)&&V.setPendingEditId(V.activeEditId||null):(pi(),(null==V?void 0:V.setPendingEditId)&&V.setPendingEditId(null),e||t())},disabled:si,style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 10px ",border:"1px solid var(--il-border, #CBD5E1)",borderRadius:"6px",backgroundColor:"var(--il-surface, #ffffff)",color:si&&(null==V?void 0:V.isAiStreaming)?"var(--il-primary, #2563EB)":"var(--il-muted, #64748B)",fontSize:"13px",fontWeight:500,cursor:si?"not-allowed":"pointer",opacity:si?.5:1}},{children:si?"Validating...":n.jsxs(n.Fragment,{children:[n.jsx(u.EditPencilIcon,{size:12}),mi?"Add":"Edit"]})}))})},footerData:{ruleTitle:w.ruleTitle,stations:[w.scopeData.station],tiers:null===(m=w.scopeData)||void 0===m?void 0:m.tiers},defaultOpen:"Create"===(null==V?void 0:V.usedFor),readOnly:"Create"!==(null==V?void 0:V.usedFor),isAiStreaming:null==V?void 0:V.isAiStreaming,editFlow:R&&"Edit"===(null==V?void 0:V.usedFor),showAccentBorder:mi},{children:n.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[R&&si&&(null==V?void 0:V.isAiStreaming)&&n.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",color:"var(--il-foreground, #141414)",fontSize:"13px",fontWeight:500,fontStyle:"italic",marginBottom:"8px",paddingLeft:"4px"}},{children:[n.jsx(c.Loader2Icon,{size:16,style:{marginRight:8,animation:"spin 1s linear infinite"}},"loader"),"Checking the correctness of your Rule Setup..."]})),R?n.jsxs(n.Fragment,{children:[n.jsx(a.TextSection,i.__assign({id:"rule-title",title:V.ruleTitle||"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the learning",required:!0,value:wi,onChange:function(i){return J?oi(i):O.setRuleTitle(i)},readOnly:(null==V?void 0:V.isAiStreaming)||!J,isOpen:N.ruleTitle,onToggle:function(){return Ei("ruleTitle")},isHighlighted:P.ruleTitle||!1,showCognitiveIcon:w.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(_=V.validationErrors)||void 0===_?void 0:_.ruleTitle},V)),w.citation.ruleTitle&&n.jsx("div",i.__assign({style:Di},{children:n.jsx(t.InputDataReasoningCard,{isVisible:N.ruleTitle,citation:w.citation.ruleTitle,citations:Ii("ruleTitle"),fieldName:"Rule Title",fieldValue:w.ruleTitle})}))]}):n.jsxs(n.Fragment,{children:[n.jsx(a.TextSection,i.__assign({id:"rule-title",title:V.ruleTitle||"Rule Title",subtitle:null==V?void 0:V.ruleTitleInformation,rows:1,placeholder:"Enter a short, descriptive title for the learning",required:!0,value:wi,onChange:function(i){return J?oi(i):O.setRuleTitle(i)},readOnly:(null==V?void 0:V.isAiStreaming)||!J,isOpen:N.ruleTitle,onToggle:function(){return Ei("ruleTitle")},isHighlighted:P.ruleTitle||!1,showCognitiveIcon:w.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(T=V.validationErrors)||void 0===T?void 0:T.ruleTitle},V)),w.citation.ruleTitle&&n.jsx("div",i.__assign({style:Di},{children:n.jsx(t.InputDataReasoningCard,{isVisible:N.ruleTitle,citation:w.citation.ruleTitle,citations:Ii("ruleTitle"),fieldName:"Rule Title",fieldValue:w.ruleTitle})}))]}),(null===(C=null==V?void 0:V.tierOptions)||void 0===C?void 0:C.length)>1&&n.jsx(r.ScopeSection,i.__assign({id:"scope",title:"",required:!1,scopeData:J&&null!==ri?ri:w.scopeData,onScopeChange:function(n,e){J?ai(function(t){var o;return i.__assign(i.__assign({},null!=t?t:w.scopeData),((o={})[n]=e,o))}):O.onScopeChange(n,e)},tierLabel:"Which tier are you configuring this learning for?",stationLabel:"Which scope should this learning belong to?",highlights:P,isOpen:N.scopeData,onToggle:function(){return Ei("scopeData")},showCognitiveIcon:w.citation.scopeData,cognitiveIcon:n.jsx(s.ButtonCognitiveIcon,{}),tooltipDescription:"Why this Scope?",errorMessage:(null===(b=V.validationErrors)||void 0===b?void 0:b.station)||(null===(S=V.validationErrors)||void 0===S?void 0:S.tiers),stationErrorMessage:null===(A=V.validationErrors)||void 0===A?void 0:A.station,tierErrorMessage:null===(E=V.validationErrors)||void 0===E?void 0:E.tiers,readOnly:(null==V?void 0:V.isAiStreaming)||!J},V)),w.citation.scopeData&&n.jsx("div",i.__assign({style:Di},{children:n.jsx(t.InputDataReasoningCard,{isVisible:N.scopeData,citation:w.citation.scopeData,citations:Ii("scopeData"),fieldName:"Scope",fieldValue:null===(D=null===(I=w.scopeData)||void 0===I?void 0:I.tiers)||void 0===D?void 0:D.join(", ")})})),J?n.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[R&&n.jsxs("div",i.__assign({style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"16px"}},{children:[n.jsx("button",i.__assign({onClick:vi,style:{background:"none",border:"none",color:"var(--il-muted, #64748B)",fontSize:"14px",fontWeight:"500",cursor:"pointer",padding:"0"}},{children:"Discard Changes"})),n.jsxs("button",i.__assign({onClick:fi,disabled:_i,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",cursor:_i?"not-allowed":"pointer",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)",opacity:_i?.5:1}},{children:[n.jsx(c.Check,{size:18,strokeWidth:2.5,color:"var(--il-primary-fg, #ffffff)"}),"Save Changes"]}))]})),"rule-setup"===(null==V?void 0:V.pendingEditId)&&n.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[n.jsx(c.AlertTriangle,{size:14,style:{color:"var(--il-warning, #C2410C)"}}),n.jsx("div",i.__assign({style:{color:"var(--il-warning, #C2410C)",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]}))]})):null]}))}))})),(!(null==V?void 0:V.tierOptions)||0===V.tierOptions.length)&&n.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"32px 16px",marginTop:"8px",backgroundColor:"var(--il-surface-alt, #f8fafc)",border:"1px dashed var(--il-border, #E2E8F0)",borderRadius:"12px",color:"var(--il-disabled, #94A3B8)"}},{children:[n.jsx(c.AlertTriangle,{size:20,style:{color:"var(--il-disabled, #94A3B8)"}}),n.jsx("span",i.__assign({style:{fontSize:"13px",fontWeight:500,color:"var(--il-muted, #64748B)"}},{children:"No tiers found"}))]})),null===(j=null==V?void 0:V.tierOptions)||void 0===j?void 0:j.map(function(r,s){var p,f,x,y,m,_,T,C=r.toLowerCase().replace(/ /g,"_"),b=(null===(p=w.variantsByTier)||void 0===p?void 0:p[C])||[],S=null===(x=null===(f=w.scopeData)||void 0===f?void 0:f.tiers)||void 0===x?void 0:x.includes(r),A=b.length,E=!1;if(1===A){var I=b[0],D=!(null===(y=null==I?void 0:I.ruleDescription)||void 0===y?void 0:y.trim()),j=(null===(m=null==I?void 0:I.whenToApplyConditions)||void 0===m?void 0:m.some(function(i){return(null==i?void 0:i.text)&&""!==i.text.trim()}))||!1,P=(null===(_=null==I?void 0:I.whenNotToApplyConditions)||void 0===_?void 0:_.some(function(i){return(null==i?void 0:i.text)&&""!==i.text.trim()}))||!1;!D||j||P||(E=!0)}var W=E?void 0:"".concat(A," ").concat(1===A?"variant":"variants"," configured for this tier"),k=n.jsx(h,i.__assign({onAddVariant:function(){var i;return null===(i=O.addNewVariant)||void 0===i?void 0:i.call(O,C)},isDisabled:!S||(null==V?void 0:V.isAiStreaming),showAddVariantBtn:R&&"Edit"!==(null==V?void 0:V.usedFor)},{children:b.map(function(r,s){var p,f,g,h,x,y,m,_,T,b,A,E=r.variantType||"default",I="".concat(C,"-variant-").concat(s),D=!0===r.is_variant,j="default"===E||"default_variant"===E,P="".concat(C,"_").concat(s),W=B.get(P)||{},k=(null===(f=null===(p=V.separationItemsByTier)||void 0===p?void 0:p[C])||void 0===f?void 0:f.get(s))||[],L=(null===(h=null===(g=V.togglesByTier)||void 0===g?void 0:g[C])||void 0===h?void 0:h.get(s))||[],M=null===(x=null==V?void 0:V.activeEditId)||void 0===x?void 0:x.startsWith("condition-wta-".concat(C,"-").concat(s)),F=null===(y=null==V?void 0:V.activeEditId)||void 0===y?void 0:y.startsWith("condition-wnta-".concat(C,"-").concat(s)),J=!S||r.isReadOnly||(null==V?void 0:V.isAiStreaming),K=j?function(i){return i?i.replace(/_/g," ").replace(/([a-zA-Z])(\d)/g,"$1 $2").replace(/\b\w/g,function(i){return i.toUpperCase()}):"Variant 1"}(E):"".concat((null==V?void 0:V.variantPillLabel)||"Variant"," ").concat(s+1),ei="variant-".concat(C,"-").concat(s),ti=!R&&(null==$?void 0:$.id)===ei,oi=U===ei,li=ti?$.draft:null,ri=J||oi,ai=li?li.ruleDescription:r.ruleDescription||"",di=li?li.instructionPrompt:null!==(m=r.instructionPrompt)&&void 0!==m?m:V.instructionPrompt,si=li?li.whenToApplyConditions:r.whenToApplyConditions||[],ui=li?li.whenNotToApplyConditions:r.whenNotToApplyConditions||[],ci=!li||!v.hasMeaningfulText(li.ruleDescription)||!li.whenToApplyConditions.some(function(i){return v.hasMeaningfulText(i.text)});return n.jsx("div",i.__assign({ref:function(i){i?H.current.set(I,i):H.current.delete(I)},style:{width:"100%",opacity:S?1:.7},"data-edit-id":R?void 0:ei},{children:n.jsx(d.default,i.__assign({title:{type:j?"default":"variant",label:K,number:s+1,isNewVariant:D,isDefault:r.isDefault,isModified:r.isModified},defaultOpen:!0,expanded:z===I,onToggle:function(){var i,n=z===I;q(n?null:I),null===(i=null==V?void 0:V.setActiveVariantAccordionIndex)||void 0===i||i.call(V,n?null:s)},variant:"rule-behavior",footerData:{ruleTitle:E,description:r.ruleDescription||""},readOnly:J,actionButtons:R?void 0:function(e,t){if(R)return null;if(J&&!ti&&!oi)return null;if(ti||oi)return n.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("button",i.__assign({onClick:function(i){i.stopPropagation(),ni()},disabled:ci||oi,style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 10.5px",borderRadius:"6px",border:"1px solid var(--il-primary, #D9D6FE)",backgroundColor:oi?"var(--il-primary-subtle, #f5f3ff)":"var(--il-surface, #ffffff)",color:"var(--il-primary, #2563EB)",fontSize:"13px",fontWeight:500,cursor:ci||oi?"not-allowed":"pointer",opacity:ci?.5:1}},{children:oi?"Validating...":"Save"})),!oi&&n.jsx("button",i.__assign({onClick:function(i){i.stopPropagation(),G()},style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 10.5px",borderRadius:"6px",border:"1px solid var(--il-primary, #D9D6FE)",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-primary, #2563EB)",fontSize:"13px",fontWeight:500,cursor:"pointer"}},{children:"Cancel"}))]}));var o=!(v.hasMeaningfulText(r.ruleDescription)||r.whenToApplyConditions&&r.whenToApplyConditions.some(function(i){return v.hasMeaningfulText(i.text)})||r.whenNotToApplyConditions&&r.whenNotToApplyConditions.some(function(i){return v.hasMeaningfulText(i.text)}));return n.jsxs("button",i.__assign({title:ri?"Editing unavailable":o?"Add":"Edit",onClick:function(i){i.stopPropagation(),Z(r,C,s,K),e||t()},disabled:ri,style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 8px",border:"1px solid var(--il-border, #CBD5E1)",borderRadius:"6px",backgroundColor:"var(--il-surface, #ffffff)",color:"var(--il-muted, #64748B)",fontSize:"13px",fontWeight:500,cursor:ri?"not-allowed":"pointer",opacity:ri?.5:1,gap:"6px"}},{children:[n.jsx(u.EditPencilIcon,{size:12})," ",o?"Add":"Edit"]}))},isAiStreaming:null==V?void 0:V.isAiStreaming,alwaysShowActions:!R,showAccentBorder:!mi},{children:n.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[n.jsx(a.TextSection,i.__assign({id:"rule-description-".concat(C,"-").concat(s),title:V.ruleDescriptionTitle||"Rule Description",subtitle:null==V?void 0:V.ruleDescriptionInformation,rows:2,placeholder:"Explain the learning behaviour",required:!0,readOnly:R?J||ji&&(null==V?void 0:V.activeEditId)!=="rule-description-".concat(C,"-").concat(s):J||!ti,value:ai,onChange:function(i){return R?O.setRuleDescription(C,s,i):Q({ruleDescription:i})},isOpen:N["ruleDescription-".concat(C)],onToggle:function(){return Ei("ruleDescription-".concat(C))},isHighlighted:W.ruleDescription||!1,showCognitiveIcon:null===(_=w.citation)||void 0===_?void 0:_["ruleDescription_".concat(C)],tooltipDescription:"Why this Description?",errorMessage:null===(T=V.validationErrors)||void 0===T?void 0:T["ruleDescription-".concat(C,"-").concat(s)],enableInlineEdit:R,setSendMessageInChat:null==V?void 0:V.setSendMessageInChat,isAiStreaming:null==V?void 0:V.isAiStreaming,fieldName:"Rule Description"},V)),(null===(b=w.citation)||void 0===b?void 0:b["ruleDescription_".concat(C)])&&n.jsx("div",i.__assign({style:Di},{children:n.jsx(t.InputDataReasoningCard,{isVisible:N["ruleDescription-".concat(C)],citation:w.citation["ruleDescription_".concat(C)],citations:Ii("ruleDescription_".concat(C,"_").concat(s)),fieldName:"Rule Description",fieldValue:r.ruleDescription})})),n.jsx(o.ConditionSection,i.__assign({id:"when-to-apply-".concat(C,"-").concat(s),idPrefix:"condition-wta",title:V.whenToApplyTitle||"When to apply",subtitle:null==V?void 0:V.wtaInformation,required:!0,dividerRequired:!0,readOnly:R?J||ji&&!M:J,hideEditControls:!R,parentEditing:ti,conditions:si,onAdd:function(){return R?O.addWhenToApply(C,s):ii("whenToApplyConditions")},onRemove:function(i,n,e){return R?O.removeWhenToApply(i,n,e):Y("whenToApplyConditions",e)},onEdit:function(i,n,e,t){return R?O.editWhenToApply(i,n,e,t):X("whenToApplyConditions",e,t)},index:s,tierKey:C,isHighlighted:W.wta||!1,highlightedIds:null==V?void 0:V.highlightedIds,tooltipDescription:"Why this Condition?",citations:Ii("whenToApply_".concat(C,"_").concat(s)),bordered:!0,addLabel:(null==V?void 0:V.addWhenToApplyBtnLabel)||"Add When to apply",isAiStreaming:V.isAiStreaming,errorMessage:(null===(A=V.validationErrors)||void 0===A?void 0:A["whenToApply-".concat(C,"-").concat(s)])||(null==V?void 0:V.conflictReason)},V)),n.jsx(o.ConditionSection,i.__assign({id:"when-not-to-apply-".concat(C,"-").concat(s),idPrefix:"condition-wnta",title:V.whenNotToApplyTitle||"When NOT to apply",subtitle:null==V?void 0:V.wntaInformation,required:!1,dividerRequired:!0,readOnly:R?J||ji&&!F:J,hideEditControls:!R,parentEditing:ti,conditions:ui,onAdd:function(){return R?O.addWhenNotToApply(C,s):ii("whenNotToApplyConditions")},onRemove:function(i,n,e){return R?O.removeWhenNotToApply(i,n,e):Y("whenNotToApplyConditions",e)},onEdit:function(i,n,e,t){return R?O.editWhenNotToApply(i,n,e,t):X("whenNotToApplyConditions",e,t)},index:s,tierKey:C,isHighlighted:W.wnta||!1,highlightedIds:null==V?void 0:V.highlightedIds,tooltipDescription:"Why this Condition?",citations:Ii("whenNotToApply_".concat(C,"_").concat(s)),bordered:!0,addLabel:(null==V?void 0:V.addWhenNotToApplyBtnLabel)||"Add When NOT to apply",isAiStreaming:V.isAiStreaming},V)),(null==V?void 0:V.LazyPromptEditor)&&n.jsx(e.Suspense,i.__assign({fallback:n.jsx("div",i.__assign({style:{padding:"12px",fontSize:"13px",color:"var(--il-muted, #64748B)"}},{children:"Loading editor..."}))},{children:n.jsx(V.LazyPromptEditor,{id:"instruction-prompt-".concat(C,"-").concat(s),title:V.instructionPromptTitle,description:null==V?void 0:V.promptDescriptionInformation,value:di,onChange:function(i){var n;return R?null===(n=V.setInstructionPrompt)||void 0===n?void 0:n.call(V,i):Q({instructionPrompt:i})},readOnly:R?J:J||!ti,hideEditControls:!R,parentEditing:ti,enableViewToggle:null==V?void 0:V.instructionPromptViewToggle,isAiStreaming:null==V?void 0:V.isAiStreaming,tierKey:C,variantIndex:s,uiState:V})})),(null==V?void 0:V.showConfiguration)&&n.jsx(l.ConfigSection,i.__assign({id:"config-".concat(C,"-").concat(s),title:V.configTitle||"Configuration",required:!1,highlights:W,bordered:!0,readOnly:J||ji&&(null==V?void 0:V.activeEditId)!=="config-".concat(C,"-").concat(s),onConfigChange:function(i,n){return O.onConfigChange(C,s,i,n)},separationItems:k,toggles:L,index:s},V)),!R&&ti&&(null==V?void 0:V.pendingEditId)===ei&&n.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx(c.AlertTriangle,{size:14,style:{color:"var(--il-warning, #C2410C)"}}),n.jsx("div",i.__assign({style:{color:"var(--il-warning, #C2410C)",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]}))]}))}),I)}),"".concat(C,"-variant-").concat(s))})}));return 1===(null===(T=null==V?void 0:V.tierOptions)||void 0===T?void 0:T.length)?n.jsx(g.default.Fragment,{children:k},"tier-".concat(s)):n.jsx(d.default,i.__assign({variant:"tier-header",title:{type:"other",label:r},subtitle:W,defaultOpen:!0,footerData:{description:"Variants for ".concat(r)}},{children:k}),"tier-".concat(s))})]}))},exports.VariantListWrapper=h;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),t=require("../../InputDataReasoningCard.js"),o=require("../../organisms/ConditionSection/ConditionSection.js"),l=require("../../organisms/ConfigSection/ConfigSection.js"),r=require("../../organisms/ScopeSection/ScopeSection.js"),a=require("../../organisms/TextSection/TextSection.js"),d=require("../../AccordianSection.js"),s=require("../../_svg/ButtonCognitiveIcon.js"),u=require("lucide-react");function c(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var v=c(n),p=function(n){var t=n.children,o=n.onAddVariant,l=n.isDisabled,r=n.showAddVariantBtn,a=void 0===r||r,d=v.default.Children.toArray(t);return e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[d.map(function(i,n){var t=!(n===d.length-1)||a;return e.jsxs(v.default.Fragment,{children:[i,t&&e.jsx("div",{style:{width:"2px",height:"20px",backgroundColor:"#E2E8F0",marginLeft:"30px"}})]},n)}),a&&e.jsx("div",i.__assign({onClick:l?void 0:o,style:{padding:"8px 16px",border:"1px solid #E2E8F0",borderRadius:"8px",color:l?"#94a3b8":"#475569",fontSize:"14px",fontWeight:"500",cursor:l?"not-allowed":"pointer",backgroundColor:l?"#f8fafc":"#FFFFFF",opacity:l?.7:1,userSelect:"none",transition:"all 0.2s ease"}},{children:"Add Variant"}))]}))};exports.CreateRule=function(c){var g,f,h,x,y,_,T,S,m,C,D,A,I=c.state,b=c.handlers,j=c.uiState,O=(null==j?void 0:j.highlights)||new Map,E=O.get("global_0")||{},w=n.useState({}),R=w[0],V=w[1],N=n.useState(null),W=N[0],q=N[1],F=n.useState(function(){var i,e,n;if((null==j?void 0:j.defaultTierOpen)>=0&&(null===(i=null==j?void 0:j.tierOptions)||void 0===i?void 0:i[j.defaultTierOpen]))return j.tierOptions[j.defaultTierOpen].toLowerCase().replace(/ /g,"_");var t=null===(n=null===(e=I.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n[0];return t?t.toLowerCase().replace(/ /g,"_"):null});F[0];var L=F[1],B="rule-setup"===(null==j?void 0:j.activeEditId),M=v.default.useRef(new Map),k=n.useState(null),z=k[0],P=k[1],J=n.useState(null),H=J[0],K=J[1],$=n.useState(!1),U=$[0],Z=$[1],G=v.default.useRef(null==j?void 0:j.isAiStreaming);n.useEffect(function(){G.current&&!(null==j?void 0:j.isAiStreaming)&&U&&Z(!1),G.current=null==j?void 0:j.isAiStreaming},[null==j?void 0:j.isAiStreaming,U]);var Q=function(){var i;P(null),K(null),null===(i=null==j?void 0:j.setActiveEditId)||void 0===i||i.call(j,null)},X=function(){var i,e,n=null!=z?z:I.ruleTitle,t=null!=H?H:I.scopeData,o=n!==I.ruleTitle,l=JSON.stringify(t)!==JSON.stringify(I.scopeData);if(!o&&!l)return P(null),K(null),void(null===(i=null==j?void 0:j.setActiveEditId)||void 0===i||i.call(j,null));if(null==j?void 0:j.setSendMessageInChat){var r="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),a=[];if(o&&a.push((null==n?void 0:n.trim())?"Title with ".concat(n):"No Title"),l){var d=null==t?void 0:t.tiers,s=d&&d.length>0?"tiers: ".concat(d.join(", ")):"No Tier Selected";a.push(s)}var u=a.join(" and ");j.setSendMessageInChat("__SKELETON__:".concat(r,":Update Rule Setup ").concat(u))}Z(!0),P(null),K(null),null===(e=null==j?void 0:j.setActiveEditId)||void 0===e||e.call(j,null)},Y=null!==z?null==z?void 0:z.trim():(I.ruleTitle||"").trim(),ii=null!=H?H:I.scopeData,ei=Y!==(I.ruleTitle||"").trim(),ni=JSON.stringify(ii)!==JSON.stringify(I.scopeData),ti=!ei&&!ni||""===Y,oi=v.default.useRef(null==j?void 0:j.defaultVariantOpen),li=v.default.useRef(null==j?void 0:j.activeVariantAccordionIndex),ri=v.default.useRef(null==j?void 0:j.defaultTierOpen),ai=v.default.useRef(null===(g=I.scopeData)||void 0===g?void 0:g.tiers),di=v.default.useRef(I.variantsByTier);v.default.useEffect(function(){var i,e,n,t,o,l,r=null,a=!1;oi.current!==(null==j?void 0:j.defaultVariantOpen)&&(a=!0,oi.current=null==j?void 0:j.defaultVariantOpen),li.current!==(null==j?void 0:j.activeVariantAccordionIndex)&&(a=!0,li.current=null==j?void 0:j.activeVariantAccordionIndex),ri.current!==(null==j?void 0:j.defaultTierOpen)&&(a=!0,ri.current=null==j?void 0:j.defaultTierOpen);var d=(null===(i=I.scopeData)||void 0===i?void 0:i.tiers)||[];JSON.stringify(ai.current)!==JSON.stringify(d)&&(a=!0,ai.current=d,d.length>0&&L(d[0].toLowerCase().replace(/ /g,"_")));var s=(null===(e=null==j?void 0:j.tierOptions)||void 0===e?void 0:e.filter(function(i){var e,n;return null===(n=null===(e=I.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||[],u=s.some(function(i){var e,n,t,o,l=i.toLowerCase().replace(/ /g,"_");return((null===(n=null===(e=di.current)||void 0===e?void 0:e[l])||void 0===n?void 0:n.length)||0)!==((null===(o=null===(t=I.variantsByTier)||void 0===t?void 0:t[l])||void 0===o?void 0:o.length)||0)});if(u&&(a=!0),a){var c=null!==(n=null==j?void 0:j.activeVariantAccordionIndex)&&void 0!==n?n:null==j?void 0:j.defaultVariantOpen;if(null==c||c<0)return q(null),void(di.current=I.variantsByTier);s.forEach(function(i,e){var n;if(!((null==j?void 0:j.defaultTierOpen)>=0&&e!==j.defaultTierOpen)){var t=i.toLowerCase().replace(/ /g,"_"),o=(null===(n=I.variantsByTier)||void 0===n?void 0:n[t])||[];o[c]&&(r="".concat(t,"-variant-").concat(c)),null!=(null==j?void 0:j.autoScrollVariantIndex)&&o[j.autoScrollVariantIndex]&&(r="".concat(t,"-variant-").concat(j.autoScrollVariantIndex))}}),r&&q(r)}if(null===W){var v=null!==(t=null==j?void 0:j.activeVariantAccordionIndex)&&void 0!==t?t:null==j?void 0:j.defaultVariantOpen;null!=v&&v>=0&&(null===(l=null===(o=null==j?void 0:j.tierOptions)||void 0===o?void 0:o.filter(function(i){var e,n;return null===(n=null===(e=I.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||void 0===l||l.forEach(function(i,e){var n;if(!((null==j?void 0:j.defaultTierOpen)>=0&&e!==j.defaultTierOpen)){var t=i.toLowerCase().replace(/ /g,"_");((null===(n=I.variantsByTier)||void 0===n?void 0:n[t])||[])[v]&&q("".concat(t,"-variant-").concat(v))}}))}di.current=I.variantsByTier},[I.variantsByTier,null==j?void 0:j.defaultVariantOpen,null==j?void 0:j.activeVariantAccordionIndex,null===(f=I.scopeData)||void 0===f?void 0:f.tiers,null==j?void 0:j.tierOptions,null==j?void 0:j.autoScrollVariantIndex,null==j?void 0:j.defaultTierOpen]);var si=function(e){V(function(n){var t;return i.__assign(i.__assign({},n),((t={})[e]=!n[e],t))})},ui=function(i){var e,n,t,o=i.split("_"),l=o[o.length-1],r=/^\d+$/.test(l)?o.slice(0,-1).join("_"):i,a=null===(e=I.fieldCitations)||void 0===e?void 0:e[r];if(Array.isArray(a)&&a.length>0)return a;var d=null===(n=I.fieldCitations)||void 0===n?void 0:n[i];return Array.isArray(d)&&d.length>0?d:null!==(t=I.citations)&&void 0!==t?t:[]},ci={marginTop:"-17px",position:"relative",zIndex:1};n.useEffect(function(){var i,e;null!=(null==j?void 0:j.autoScrollVariantIndex)&&(null===(e=null===(i=null==j?void 0:j.tierOptions)||void 0===i?void 0:i.filter(function(i){var e,n;return null===(n=null===(e=I.scopeData)||void 0===e?void 0:e.tiers)||void 0===n?void 0:n.includes(i)}))||void 0===e||e.forEach(function(i){var e=i.toLowerCase().replace(/ /g,"_"),n="".concat(e,"-variant-").concat(j.autoScrollVariantIndex),t=M.current.get(n);t&&requestAnimationFrame(function(){setTimeout(function(){t.scrollIntoView({behavior:"smooth",block:"center"})},300)})}))},[null==j?void 0:j.scrollTrigger]),console.log("CreateRule state:",I),console.log("CreateRule uiState:",j);var vi=function(i){return i?i.replace(/_/g," ").replace(/([a-zA-Z])(\d)/g,"$1 $2").replace(/\b\w/g,function(i){return i.toUpperCase()}):"Variant 1"},pi=!!(null==j?void 0:j.activeEditId);return e.jsxs("div",i.__assign({className:"traffic-manager-template"},{children:[e.jsx("div",i.__assign({"data-edit-id":"rule-setup"},{children:e.jsx(d.default,i.__assign({title:{type:"other",label:(null==j?void 0:j.setupLabel)||"Rule Setup"},actionButtons:function(n,t){if(B)return null;var o=!!(null==j?void 0:j.activeEditId)&&"rule-setup"!==j.activeEditId;return e.jsx("div",i.__assign({style:{position:"relative",display:"flex",flexDirection:"column"}},{children:e.jsx("button",i.__assign({title:o?"Save active edits first":"Edit",onClick:function(e){e.stopPropagation(),o?(null==j?void 0:j.setPendingEditId)&&j.setPendingEditId(j.activeEditId||null):(!function(){var e,n;(null==j?void 0:j.activeEditId)&&"rule-setup"!==j.activeEditId||(null===(e=null==j?void 0:j.setActiveEditId)||void 0===e||e.call(j,"rule-setup"),P(null!==(n=I.ruleTitle)&&void 0!==n?n:""),K(I.scopeData?i.__assign({},I.scopeData):{}))}(),(null==j?void 0:j.setPendingEditId)&&j.setPendingEditId(null),n||t())},disabled:U,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"6px 8px",border:"1px solid #e5e7eb",borderRadius:"8px",cursor:U?"not-allowed":"pointer",backgroundColor:"#ffffff",color:"#6b7280",opacity:U?.5:1}},{children:e.jsx(u.Pencil,{size:14})}))}))},footerData:{ruleTitle:I.ruleTitle,stations:[I.scopeData.station],tiers:null===(h=I.scopeData)||void 0===h?void 0:h.tiers},defaultOpen:"Create"===(null==j?void 0:j.usedFor),readOnly:"Create"!==(null==j?void 0:j.usedFor),isAiStreaming:null==j?void 0:j.isAiStreaming,editFlow:"Edit"===(null==j?void 0:j.usedFor)},{children:e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[U&&(null==j?void 0:j.isAiStreaming)&&e.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",color:"#141414ff",fontSize:"13px",fontWeight:500,fontStyle:"italic",marginBottom:"8px",paddingLeft:"4px"}},{children:[e.jsx(u.Loader2Icon,{size:16,style:{marginRight:8,animation:"spin 1s linear infinite"}},"loader"),"Checking the correctness of your Rule Setup..."]})),e.jsx(a.TextSection,i.__assign({id:"rule-title",title:j.ruleTitle||"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the learning",required:!0,value:B&&null!==z?z:I.ruleTitle,onChange:function(i){return B?P(i):b.setRuleTitle(i)},readOnly:(null==j?void 0:j.isAiStreaming)||!B,isOpen:R.ruleTitle,onToggle:function(){return si("ruleTitle")},isHighlighted:E.ruleTitle||!1,showCognitiveIcon:I.citation.ruleTitle,tooltipDescription:"Why this Title?",errorMessage:null===(x=j.validationErrors)||void 0===x?void 0:x.ruleTitle},j)),I.citation.ruleTitle&&e.jsx("div",i.__assign({style:ci},{children:e.jsx(t.InputDataReasoningCard,{isVisible:R.ruleTitle,citation:I.citation.ruleTitle,citations:ui("ruleTitle"),fieldName:"Rule Title",fieldValue:I.ruleTitle})})),(null===(y=null==j?void 0:j.tierOptions)||void 0===y?void 0:y.length)>1&&e.jsx(r.ScopeSection,i.__assign({id:"scope",title:"",required:!1,scopeData:B&&null!==H?H:I.scopeData,onScopeChange:function(e,n){B?K(function(t){var o;return i.__assign(i.__assign({},null!=t?t:I.scopeData),((o={})[e]=n,o))}):b.onScopeChange(e,n)},tierLabel:"Which tier are you configuring this learning for?",stationLabel:"Which scope should this learning belong to?",highlights:E,isOpen:R.scopeData,onToggle:function(){return si("scopeData")},showCognitiveIcon:I.citation.scopeData,cognitiveIcon:e.jsx(s.ButtonCognitiveIcon,{}),tooltipDescription:"Why this Scope?",errorMessage:(null===(_=j.validationErrors)||void 0===_?void 0:_.station)||(null===(T=j.validationErrors)||void 0===T?void 0:T.tiers),stationErrorMessage:null===(S=j.validationErrors)||void 0===S?void 0:S.station,tierErrorMessage:null===(m=j.validationErrors)||void 0===m?void 0:m.tiers,readOnly:(null==j?void 0:j.isAiStreaming)||!B},j)),I.citation.scopeData&&e.jsx("div",i.__assign({style:ci},{children:e.jsx(t.InputDataReasoningCard,{isVisible:R.scopeData,citation:I.citation.scopeData,citations:ui("scopeData"),fieldName:"Scope",fieldValue:null===(D=null===(C=I.scopeData)||void 0===C?void 0:C.tiers)||void 0===D?void 0:D.join(", ")})})),B?e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[e.jsxs("div",i.__assign({style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"16px"}},{children:[e.jsx("button",i.__assign({onClick:Q,style:{background:"none",border:"none",color:"#6b7280",fontSize:"14px",fontWeight:"500",cursor:"pointer",padding:"0"}},{children:"Discard Changes"})),e.jsxs("button",i.__assign({onClick:X,disabled:ti,style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderRadius:"12px",border:"none",backgroundColor:"#2563eb",color:"#ffffff",fontSize:"14px",fontWeight:"500",cursor:ti?"not-allowed":"pointer",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)",opacity:ti?.5:1}},{children:[e.jsx(u.Check,{size:18,strokeWidth:2.5,color:"#ffffff"}),"Save Changes"]}))]})),"rule-setup"===(null==j?void 0:j.pendingEditId)&&e.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[e.jsx(u.AlertTriangle,{size:14,style:{color:"#C2410C"}}),e.jsx("div",i.__assign({style:{color:"#C2410C",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]}))]})):null]}))}))})),(!(null==j?void 0:j.tierOptions)||0===j.tierOptions.length)&&e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"32px 16px",marginTop:"8px",backgroundColor:"#FAFAFA",border:"1px dashed #E2E8F0",borderRadius:"12px",color:"#94a3b8"}},{children:[e.jsx(u.AlertTriangle,{size:20,style:{color:"#94a3b8"}}),e.jsx("span",i.__assign({style:{fontSize:"13px",fontWeight:500,color:"#64748b"}},{children:"No tiers found"}))]})),null===(A=null==j?void 0:j.tierOptions)||void 0===A?void 0:A.map(function(n,r){var s,u,c,g,f,h,x,y=n.toLowerCase().replace(/ /g,"_"),_=(null===(s=I.variantsByTier)||void 0===s?void 0:s[y])||[],T=null===(c=null===(u=I.scopeData)||void 0===u?void 0:u.tiers)||void 0===c?void 0:c.includes(n),S=_.length,m=!1;if(1===S){var C=_[0],D=!(null===(g=null==C?void 0:C.ruleDescription)||void 0===g?void 0:g.trim()),A=(null===(f=null==C?void 0:C.whenToApplyConditions)||void 0===f?void 0:f.some(function(i){return(null==i?void 0:i.text)&&""!==i.text.trim()}))||!1,E=(null===(h=null==C?void 0:C.whenNotToApplyConditions)||void 0===h?void 0:h.some(function(i){return(null==i?void 0:i.text)&&""!==i.text.trim()}))||!1;!D||A||E||(m=!0)}var w=m?void 0:"".concat(S," ").concat(1===S?"variant":"variants"," configured for this tier"),V=e.jsx(p,i.__assign({onAddVariant:function(){var i;return null===(i=b.addNewVariant)||void 0===i?void 0:i.call(b,y)},isDisabled:!T||(null==j?void 0:j.isAiStreaming),showAddVariantBtn:"Edit"!==(null==j?void 0:j.usedFor)},{children:_.map(function(n,r){var s,u,c,v,p,g,f,h,x,_,S=n.variantType||"default",m="".concat(y,"-variant-").concat(r),C=!0===n.is_variant,D="default"===S||"default_variant"===S,A="".concat(y,"_").concat(r),E=O.get(A)||{},w=(null===(u=null===(s=j.separationItemsByTier)||void 0===s?void 0:s[y])||void 0===u?void 0:u.get(r))||[],V=(null===(v=null===(c=j.togglesByTier)||void 0===c?void 0:c[y])||void 0===v?void 0:v.get(r))||[],N=null===(p=null==j?void 0:j.activeEditId)||void 0===p?void 0:p.startsWith("condition-wta-".concat(y,"-").concat(r)),F=null===(g=null==j?void 0:j.activeEditId)||void 0===g?void 0:g.startsWith("condition-wnta-".concat(y,"-").concat(r)),L=!T||n.isReadOnly||(null==j?void 0:j.isAiStreaming);return e.jsx("div",i.__assign({ref:function(i){i?M.current.set(m,i):M.current.delete(m)},style:{width:"100%",opacity:T?1:.7}},{children:e.jsx(d.default,i.__assign({title:{type:D?"default":"variant",label:vi(S),number:r+1,isNewVariant:C,isDefault:n.isDefault,isModified:n.isModified},defaultOpen:!0,expanded:W===m,onToggle:function(){var i,e=W===m;q(e?null:m),null===(i=null==j?void 0:j.setActiveVariantAccordionIndex)||void 0===i||i.call(j,e?null:r)},variant:"rule-behavior",footerData:{ruleTitle:S,description:n.ruleDescription||""},readOnly:L},{children:e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[e.jsx(a.TextSection,i.__assign({id:"rule-description-".concat(y,"-").concat(r),title:j.ruleDescriptionTitle||"Rule Description",rows:2,placeholder:"Explain the learning behaviour",required:!0,readOnly:L||pi&&(null==j?void 0:j.activeEditId)!=="rule-description-".concat(y,"-").concat(r),value:n.ruleDescription||"",onChange:function(i){return b.setRuleDescription(y,r,i)},isOpen:R["ruleDescription-".concat(y)],onToggle:function(){return si("ruleDescription-".concat(y))},isHighlighted:E.ruleDescription||!1,showCognitiveIcon:null===(f=I.citation)||void 0===f?void 0:f["ruleDescription_".concat(y)],tooltipDescription:"Why this Description?",errorMessage:null===(h=j.validationErrors)||void 0===h?void 0:h["ruleDescription-".concat(y,"-").concat(r)],enableInlineEdit:!0,setSendMessageInChat:null==j?void 0:j.setSendMessageInChat,isAiStreaming:null==j?void 0:j.isAiStreaming,fieldName:"Rule Description"},j)),(null===(x=I.citation)||void 0===x?void 0:x["ruleDescription_".concat(y)])&&e.jsx("div",i.__assign({style:ci},{children:e.jsx(t.InputDataReasoningCard,{isVisible:R["ruleDescription-".concat(y)],citation:I.citation["ruleDescription_".concat(y)],citations:ui("ruleDescription_".concat(y,"_").concat(r)),fieldName:"Rule Description",fieldValue:n.ruleDescription})})),e.jsx(o.ConditionSection,i.__assign({id:"when-to-apply-".concat(y,"-").concat(r),idPrefix:"condition-wta",title:j.whenToApplyTitle||"When to apply",required:!0,dividerRequired:!0,readOnly:L||pi&&!N,conditions:n.whenToApplyConditions||[],onAdd:function(){return b.addWhenToApply(y,r)},onRemove:function(i,e,n){return b.removeWhenToApply(i,e,n)},onEdit:function(i,e,n,t){return b.editWhenToApply(i,e,n,t)},index:r,tierKey:y,isHighlighted:E.wta||!1,highlightedIds:null==j?void 0:j.highlightedIds,tooltipDescription:"Why this Condition?",citations:ui("whenToApply_".concat(y,"_").concat(r)),bordered:!0,addLabel:(null==j?void 0:j.addWhenToApplyBtnLabel)||"Add When to apply",isAiStreaming:j.isAiStreaming,errorMessage:(null===(_=j.validationErrors)||void 0===_?void 0:_["whenToApply-".concat(y,"-").concat(r)])||(null==j?void 0:j.conflictReason)},j)),e.jsx(o.ConditionSection,i.__assign({id:"when-not-to-apply-".concat(y,"-").concat(r),idPrefix:"condition-wnta",title:j.whenNotToApplyTitle||"When NOT to apply",required:!1,dividerRequired:!0,readOnly:L||pi&&!F,conditions:n.whenNotToApplyConditions||[],onAdd:function(){return b.addWhenNotToApply(y,r)},onRemove:function(i,e,n){return b.removeWhenNotToApply(i,e,n)},onEdit:function(i,e,n,t){return b.editWhenNotToApply(i,e,n,t)},index:r,tierKey:y,isHighlighted:E.wnta||!1,highlightedIds:null==j?void 0:j.highlightedIds,tooltipDescription:"Why this Condition?",citations:ui("whenNotToApply_".concat(y,"_").concat(r)),bordered:!0,addLabel:(null==j?void 0:j.addWhenNotToApplyBtnLabel)||"Add When NOT to apply",isAiStreaming:j.isAiStreaming},j)),(null==j?void 0:j.showConfiguration)&&e.jsx(l.ConfigSection,i.__assign({id:"config-".concat(y,"-").concat(r),title:j.configTitle||"Configuration",required:!1,highlights:E,bordered:!0,readOnly:L||pi&&(null==j?void 0:j.activeEditId)!=="config-".concat(y,"-").concat(r),onConfigChange:function(i,e){return b.onConfigChange(y,r,i,e)},separationItems:w,toggles:V,index:r},j))]}))}),m)}),"".concat(y,"-variant-").concat(r))})}));return 1===(null===(x=null==j?void 0:j.tierOptions)||void 0===x?void 0:x.length)?e.jsx(v.default.Fragment,{children:V},"tier-".concat(r)):e.jsx(d.default,i.__assign({variant:"tier-header",title:{type:"other",label:n},subtitle:w,defaultOpen:!0,footerData:{description:"Variants for ".concat(n)}},{children:V}),"tier-".concat(r))})]}))};
|
|
2
2
|
//# sourceMappingURL=CreateRule.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),t=require("../../organisms/ConditionSection/ConditionSection.js"),o=require("../../organisms/TextSection/TextSection.js");exports.WorkflowComposer=function(l){var r,d,s,u=l.state,a=l.handlers,p=l.uiState,g=(null==p?void 0:p.highlights)||{},h=n.useState({}),c=h[0],v=h[1],y=function(e){v(function(n){var t;return i.__assign(i.__assign({},n),((t={})[e]=!n[e],t))})},T=function(i){var e,n=null===(e=u.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(n)&&n.length>0?n:u.citations};return e.jsx("div",i.__assign({className:"simple-guideline-template"},{children:e.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",gap:"20px"}},{children:[e.jsx(o.TextSection,i.__assign({id:"guideline-title",title:"Guideline Title",rows:1,placeholder:"Enter a short, descriptive title for the guideline",required:!0,value:u.guidelineTitle,onChange:a.setGuidelineTitle,readOnly:null==p?void 0:p.isAiStreaming,isOpen:c.guidelineTitle,onToggle:function(){return y("guidelineTitle")},isHighlighted:g.guidelineTitle||!1,tooltipDescription:"Why this Title?",errorMessage:null===(r=null==p?void 0:p.validationErrors)||void 0===r?void 0:r.guidelineTitle},p)),e.jsx(o.TextSection,i.__assign({id:"guideline-description",title:"Guideline Description",rows:4,placeholder:"Describe what this guideline enforces or ensures",required:!0,value:u.guidelineDescription,onChange:a.setGuidelineDescription,readOnly:null==p?void 0:p.isAiStreaming,isOpen:c.guidelineDescription,onToggle:function(){return y("guidelineDescription")},isHighlighted:g.guidelineDescription||!1,tooltipDescription:"Why this Description?",errorMessage:null===(d=null==p?void 0:p.validationErrors)||void 0===d?void 0:d.guidelineDescription},p)),e.jsx(t.ConditionSection,i.__assign({id:"when-to-apply",title:"When to apply",required:!0,dividerRequired:!0,readOnly:null==p?void 0:p.isAiStreaming,conditions:u.whenToApplyConditions||[],onAdd:function(){return a.addWhenToApply()},onRemove:function(i,e,n){return a.removeWhenToApply(n)},onEdit:function(i,e,n,t){return a.editWhenToApply(n,t)},index:0,tierKey:"default",isHighlighted:g.wta||!1,highlightedIds:null==p?void 0:p.highlightedIds,tooltipDescription:"Why this Condition?",citations:T("whenToApply"),bordered:!0,addLabel:"Add When to apply",isAiStreaming:null==p?void 0:p.isAiStreaming,errorMessage:null===(s=null==p?void 0:p.validationErrors)||void 0===s?void 0:s.whenToApply},p)),e.jsx(t.ConditionSection,i.__assign({id:"when-not-to-apply",title:"When NOT to apply",required:!1,dividerRequired:!0,readOnly:null==p?void 0:p.isAiStreaming,conditions:u.whenNotToApplyConditions||[],onAdd:function(){return a.addWhenNotToApply()},onRemove:function(i,e,n){return a.removeWhenNotToApply(n)},onEdit:function(i,e,n,t){return a.editWhenNotToApply(n,t)},index:0,tierKey:"default",isHighlighted:g.wnta||!1,highlightedIds:null==p?void 0:p.highlightedIds,tooltipDescription:"Why this Condition?",citations:T("whenNotToApply"),bordered:!0,addLabel:"Add When NOT to apply",isAiStreaming:null==p?void 0:p.isAiStreaming},p))]}))}))};
|
|
2
|
+
//# sourceMappingURL=WorkflowComposer.js.map
|
package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowComposer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function
|
|
1
|
+
"use strict";function e(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function r(r){try{return JSON.parse(r)}catch(a){var n=r.replace(/`/g,"\\`");return n=(n=(n=function(e){return e.replace(/,\s*([}\]])/g,"$1")}(n=n.replace(/"([^"\\]*(\\.[^"\\]*)*)"/g,function(e){return e.replace(/\n/g,"\\n")}))).replace(/<ai_reasoning>[\s\S]*?<\/ai_reasoning>/g,function(r){return e(r)})).replace(/<explaination[\s\S]*?<\/explaination>/g,function(r){return e(r)}),JSON.parse(n)}}Object.defineProperty(exports,"__esModule",{value:!0});exports.buildAiReasoning=function(e){if(!e)return null;var r={id:null==e?void 0:e.id,reason:null==e?void 0:e.reason,gap:null==e?void 0:e.gap,score:(null==e?void 0:e.relevance_score)||(null==e?void 0:e.score)};return!(r.id||r.reason||r.gap||null!=r.score&&""!==r.score)?null:r},exports.extractReasoningFromText=function(e){if(null==e)return{text:"",aiReasoning:null,segments:[]};var r="";r="string"==typeof e?e:Array.isArray(e)?e.map(function(e){return"string"==typeof e?e:JSON.stringify(e)}).join(", "):"object"==typeof e?JSON.stringify(e):String(e);for(var n,a=/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/gi,t=null,o=[],s=0,i=function(){n.index>s&&o.push({type:"text",content:r.substring(s,n.index)});var e=n[1];e=e.replace(/`/g,"\\`").replace(/\*\*/g,"\\*\\*").replace(/__/g,"\\_\\_").replace(/#/g,"\\#").replace(/\r/g,"").replace(/\n/g,"\\n");var i=function(r){var n=e.match(new RegExp("<".concat(r,">([\\s\\S]*?)<\\/").concat(r,">"),"i"));return n?n[1].replace(/\\n/g,"\n").trim():""},c={id:i("id"),reason:i("reason"),gap:i("gap"),score:i("relevance_score")||i("score")};t||(t=c),o.push({type:"reasoning",reasoning:c}),s=a.lastIndex};null!==(n=a.exec(r));)i();s<r.length&&o.push({type:"text",content:r.substring(s)});var c=r.replace(/<ai_reasoning>[\s\S]*?<\/ai_reasoning>/gi,"").trim();return 0===o.length&&c&&o.push({type:"text",content:c}),{text:c,aiReasoning:t,segments:o}},exports.parseJsonBlocks=function(e){for(var n,a=/<!--\s*```json\s+property="([^"]+)"\s*([\s\S]*?)```\s*-->/gi,t=[];null!==(n=a.exec(e));){var o=n[0],s=n[1],i=n[2].trim();try{var c=r(i);t.push({property:s,data:c,rawMatch:o})}catch(e){var l="".concat(s,"::").concat(i.slice(0,40));console.warn('Failed to parse JSON for property="'.concat(s,'" warnId="').concat(l,'":'),e),console.warn("👉 Raw JSON string:",i),console.warn("👉 Error:"),console.warn(e),t.push({property:s,data:null,rawMatch:o})}}return t},exports.safeParse=r,exports.sanitizeBlock=e;
|
|
2
2
|
//# sourceMappingURL=message-rendering-utils.js.map
|