@e-llm-studio/instant-learning 1.3.0-alpha.247 → 1.3.0-alpha.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -6
- package/dist/ContinueWithTemplateModal.js +1 -1
- package/dist/ContinueWithTemplateModal.module.css.js +1 -1
- package/dist/ILMarketplaceWrapper.js +1 -1
- package/dist/ILMarketplaceWrapper.module.css.js +1 -1
- package/dist/cjs/ContinueWithTemplateModal.js +1 -1
- package/dist/cjs/ContinueWithTemplateModal.module.css.js +1 -1
- package/dist/cjs/ILMarketplaceWrapper.js +1 -1
- package/dist/cjs/ILMarketplaceWrapper.module.css.js +1 -1
- package/dist/cjs/features/IL-OTJ/ILOTJ.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.module.css.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatHeader.module.css.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CitationLink.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/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/RuleValidationCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.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/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/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/TrafficManager/CreateRule.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCart.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineCartItem.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineHeader.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineIconButton.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/LearningManagementWrapper.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/VersionSelectDropdown.module.css.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/RBAC/AccessPanel.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.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/components/CreateLearningSetModal.js +2 -0
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeMenu.js +1 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationOnboardModal.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/CreateLearningSetModal.module.css.js +2 -0
- package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +1 -0
- 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/PromptTextEditor.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/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/index.js +1 -1
- package/dist/cjs/schema-driven/BPARenderer.js +1 -1
- package/dist/cjs/schema-driven/components/GlobalSetupAccordionField.js +1 -1
- package/dist/cjs/schema-driven/components/GroupEditRow.js +1 -1
- package/dist/cjs/schema-driven/components/PromptTextEditorField.js +1 -1
- package/dist/cjs/schema-driven/components/VariantListField.js +1 -1
- package/dist/cjs/schema-driven/primitives/Accordion.js +1 -1
- package/dist/features/IL-OTJ/ILOTJ.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.module.css.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatHeader.module.css.js +1 -1
- package/dist/features/IL-OTJ/_components/CitationLink.js +1 -1
- package/dist/features/IL-OTJ/_components/CriticalGaps.js +1 -1
- package/dist/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/features/IL-OTJ/_components/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/RuleValidationCard.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/RuleVariantCard.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/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/RuleComparison/AgentComposerRuleComparison.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCardMenu.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCart.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCartHeader.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineCartItem.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineConfirmDialog.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineEmptyState.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineFilterPanel.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineHeader.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineIconButton.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLibrary.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineProceedButton.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineSelectButton.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishEmptyState.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepBody.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepFooter.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishStepper.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +1 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/ReleaseSummaryBody.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/TemplateDetailsBody.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/LearningManagementWrapper.js +1 -1
- package/dist/features/IL-marketplace/components/VersionSelectDropdown.module.css.js +1 -1
- package/dist/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/features/LearningManagement/LearningManagementTest.js +1 -1
- package/dist/features/LearningManagement/RBAC/AccessPanel.module.css.js +1 -1
- package/dist/features/LearningManagement/RuleContent/ApprovalLearningDialog.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleContent.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/components/CreateLearningSetModal.js +2 -0
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js.map +1 -0
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeMenu.js +1 -1
- package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.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/CreateLearningSetModal.module.css.js +2 -0
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +1 -0
- 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/PromptTextEditor.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/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/index.js +1 -1
- package/dist/schema-driven/BPARenderer.js +1 -1
- package/dist/schema-driven/components/GlobalSetupAccordionField.js +1 -1
- package/dist/schema-driven/components/GroupEditRow.js +1 -1
- package/dist/schema-driven/components/PromptTextEditorField.js +1 -1
- package/dist/schema-driven/components/VariantListField.js +1 -1
- package/dist/schema-driven/primitives/Accordion.js +1 -1
- package/dist/types/src/ContinueWithTemplateModal.d.ts.map +1 -1
- package/dist/types/src/ILMarketplaceMockTest.d.ts.map +1 -1
- package/dist/types/src/ILMarketplaceWrapper.d.ts +1 -10
- package/dist/types/src/ILMarketplaceWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts +0 -3
- 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.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/AccordianSection.d.ts.map +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/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/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/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/TrafficManager/CreateRule.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts +2 -3
- package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts +1 -4
- package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/types.d.ts +1 -1
- package/dist/types/src/features/IL-marketplace/types.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +2 -5
- package/dist/types/src/features/LearningManagement/LearningManagement.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/TierCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.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/StationOnboarding/StationOnboardModal.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/6fbbe065ef78c384.gif +0 -0
- package/dist/cjs/6fbbe065ef78c384.gif +0 -0
- 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-marketplace/marketplaceTheme.js +0 -2
- package/dist/cjs/features/IL-marketplace/marketplaceTheme.js.map +0 -1
- package/dist/cjs/features/LearningManagement/public/ThinkingBulbIcon.gif.js +0 -2
- package/dist/cjs/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +0 -1
- package/dist/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.js +0 -2
- package/dist/features/IL-OTJ/_components/cognitiveDecisioningThemeStyles.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/LearningManagement/public/ThinkingBulbIcon.gif.js +0 -2
- package/dist/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +0 -1
- package/dist/types/src/ThinkingBulbIconComponent.d.ts +0 -4
- package/dist/types/src/ThinkingBulbIconComponent.d.ts.map +0 -1
- package/dist/types/src/features/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-marketplace/marketplaceTheme.d.ts +0 -99
- package/dist/types/src/features/IL-marketplace/marketplaceTheme.d.ts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react"),o=require("../_svg/SparkleIcon.js"),i={title:"Help us improve this response!",submitButtonText:"Submit Feedback",fields:[{id:"severity",label:"1. How would you rate this issue?",type:"radio",options:["Critical","High","Moderate","Low"]},{id:"what_went_wrong",label:"2. What went wrong?",type:"textarea",placeholder:"Tell us what didn't work or what you expected instead..."}]};exports.default=function(s){var l=s.isLastMessage,a=s.isStreamEnd,u=s.role,d=s.content,c=s.messages,f=s.index,p=s.onFeedbackSubmit,g=s.feedbackConfig||i,x=n.useState(!1),b=x[0],y=x[1],_=n.useState({}),h=_[0],v=_[1],m=n.useState(!1),w=m[0],j=m[1],S=n.useState(null),k=S[0],C=S[1],E=n.useState(!1),T=E[0],B=E[1],z=n.useState(!1),F=z[0],q=z[1];n.useEffect(function(){if(0===Object.keys(h).length){var e={};g.fields.forEach(function(t){e[t.id]=""}),v(e)}},[g.fields]);var M=function(t,n){v(function(r){var o;return e.__assign(e.__assign({},r),((o={})[t]=n,o))})};if(!(l||w&&f===c.length-2)||"assistant"!==u||!a||"Thanks for your feedback — this will help improve future suggestions."===d)return null;var I=g.fields.some(function(e){var t;return""!==(null===(t=h[e.id])||void 0===t?void 0:t.trim())});return t.jsxs(t.Fragment,{children:[t.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",alignItems:"flex-end",marginTop:"4px"}},{children:t.jsxs("div",e.__assign({style:{display:"flex",gap:"12px"}},{children:[t.jsx("button",e.__assign({onClick:function(){w||("up"===k?C(null):(C("up"),y(!1)))},style:{background:"none",border:"none",cursor:"pointer",color:"up"===k?"#2563EB":"#94a3b8"},onMouseEnter:function(e){"up"!==k&&(e.currentTarget.style.color="#2563EB")},onMouseLeave:function(e){"up"!==k&&(e.currentTarget.style.color="#94a3b8")}},{children:t.jsx(r.ThumbsUp,{size:18,fill:"up"===k?"currentColor":"none"})})),t.jsx("button",e.__assign({onClick:function(){w||("down"===k?(C(null),y(!1)):(C("down"),y(!0)))},style:{background:"none",border:"none",cursor:"pointer",color:"down"===k?"#2563EB":"#94a3b8"},onMouseEnter:function(e){"down"!==k&&(e.currentTarget.style.color="#2563EB")},onMouseLeave:function(e){"down"!==k&&(e.currentTarget.style.color="#94a3b8")}},{children:t.jsx(r.ThumbsDown,{size:18,fill:"down"===k?"currentColor":"none"})}))]}))})),b&&!w&&"down"===k&&t.jsxs("div",e.__assign({style:{position:"relative",marginTop:"16px"}},{children:[t.jsx("div",e.__assign({style:{position:"absolute",left:"calc(-32px - 0.7rem)",top:"0",width:"32px",display:"flex",justifyContent:"center"}},{children:t.jsx(o.default,{})})),t.jsxs("div",e.__assign({style:{border:"1px solid #E3E6EA",borderRadius:"8px",padding:"14px",backgroundColor:"#ffffff",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[t.jsx("div",e.__assign({style:{fontSize:"12px",fontWeight:500,color:"#334155",marginBottom:"12px"}},{children:g.title})),g.fields.map(function(n,r){var o;return t.jsxs("div",e.__assign({style:{marginBottom:r===g.fields.length-1?"0":"16px"}},{children:[t.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:500,color:"#17212B",marginBottom:"8px"}},{children:n.label})),"radio"===n.type&&t.jsx("div",e.__assign({style:{display:"flex",gap:"16px",fontSize:"14px",color:"#334155",flexWrap:"wrap"}},{children:null===(o=n.options)||void 0===o?void 0:o.map(function(r){return t.jsxs("label",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"}},{children:[t.jsx("input",{type:"radio",name:"feedback-".concat(n.id),value:r,checked:h[n.id]===r,onChange:function(e){return M(n.id,e.target.value)},style:{cursor:"pointer",accentColor:"#3b82f6"}}),r]}),r)})})),"text"===n.type&&t.jsx("input",{type:"text",style:{width:"100%",padding:"10px",border:"1px solid #E3E6EA",borderRadius:"6px",fontSize:"14px",fontFamily:"inherit",outline:"none"},placeholder:n.placeholder,value:h[n.id]||"",onChange:function(e){return M(n.id,e.target.value)},onFocus:function(e){return e.target.style.borderColor="#3b82f6"},onBlur:function(e){return e.target.style.borderColor="#cbd5e1"}}),"textarea"===n.type&&t.jsx("textarea",{style:{width:"100%",minHeight:"80px",padding:"10px",border:"1px solid #E3E6EA",borderRadius:"6px",fontSize:"14px",fontFamily:"inherit",resize:"vertical",outline:"none"},placeholder:n.placeholder,value:h[n.id]||"",onChange:function(e){return M(n.id,e.target.value)},onFocus:function(e){return e.target.style.borderColor="#3b82f6"},onBlur:function(e){return e.target.style.borderColor="#cbd5e1"}})]}),n.id)}),F&&t.jsx("div",e.__assign({style:{display:"flex",justifyContent:"flex-end",marginTop:"6px"}},{children:t.jsx("span",e.__assign({style:{color:"#ef4444",fontSize:"12px",fontWeight:500}},{children:"Submission failed, try again."}))}))]})),I&&t.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",alignItems:"flex-end",marginTop:"12px"}},{children:t.jsx("button",e.__assign({onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,o;return e.__generator(this,function(i){switch(i.label){case 0:t=c[f],n=c[f-1],r=(null==n?void 0:n.time)?new Date(n.time).toISOString():(new Date).toISOString(),o=e.__assign(e.__assign({},h),{user_query:"user"===(null==n?void 0:n.role)?n.content:"",query_time:r,session_id:(null==t?void 0:t.sessionId)||"",request_id:(null==t?void 0:t.requestId)||""}),void 0!==h.what_went_wrong&&(o.what_went_wrong=h.what_went_wrong),void 0!==h.severity&&(o.severity=h.severity),B(!0),q(!1),i.label=1;case 1:return i.trys.push([1,4,5,6]),p?[4,p(o)]:[3,3];case 2:i.sent(),i.label=3;case 3:return j(!0),y(!1),[3,6];case 4:return i.sent(),q(!0),[3,6];case 5:return B(!1),[7];case 6:return[2]}})})},disabled:T,style:{backgroundColor:T?"#93c5fd":"#3b82f6",color:"#ffffff",padding:"6px 12px",borderRadius:"8px",fontSize:"14px",fontWeight:500,border:"none",cursor:T?"not-allowed":"pointer",transition:"background-color 0.2s"},onMouseEnter:function(e){T||(e.currentTarget.style.backgroundColor="#0069F5")},onMouseLeave:function(e){T||(e.currentTarget.style.backgroundColor="#3b82f6")}},{children:T?"Submitting...":g.submitButtonText||"Submit Feedback"}))}))]}))]})};
|
|
2
2
|
//# sourceMappingURL=ChatFeedback.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),n=require("react"),i=require("../../helpers/utils.js"),o=require("../_svg/TickIcon.js"),t=require("../ChatComponents/ChatComponent.js"),a=require("../_svg/SparkleIcon.js"),s=require("lucide-react"),l=function(n){var i=n.label,o=n.onToggle,t=n.isSelected,a=n.disabled;return r.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",cursor:a?"not-allowed":"pointer",margin:"8px 24px 8px 0",userSelect:"none",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"14px",color:a?"var(--il-disabled, #9ca3af)":"var(--il-foreground, #000000de)",verticalAlign:"middle",opacity:a&&!t?.6:1},onClick:function(){return!a&&o(i,!t)}},{children:[r.jsx("div",e.__assign({style:{width:"18px",height:"18px",borderRadius:"4px",border:t?"none":"2px solid ".concat(a?"var(--il-disabled, #e5e7eb)":"var(--il-border, #cfd8dc)"),backgroundColor:t?a?"var(--il-disabled, #90caf9)":"var(--il-primary, #2661eb)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"8px",transition:"all 0.2s ease",color:"var(--il-primary-fg, white)",flexShrink:0}},{children:t&&r.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"var(--il-primary-fg, white)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))})),r.jsx("span",{children:i})]}))};exports.ActionableButton=function(l){var d,c=l.node,u=l.className,g=l.children,p=l.handleStream,f=l.onAction,b=l.disabled,v=l.isStreamEnd,x=void 0===v||v,h=l.style;l.isLastMessage;var y=l.onTypeResponseClick,m=e.__rest(l,["node","className","children","handleStream","onAction","disabled","isStreamEnd","style","isLastMessage","onTypeResponseClick"]),_=i.extractTextFromChildren(g),k=n.useState(!1),C=k[0],j=k[1],w=n.useState(!1),F=w[0],T=w[1],S=n.useState(null),R=S[0],E=S[1],z=n.useState(!1),A=z[0],G=z[1],L=n.useState(""),W=L[0],M=L[1],I="typeYourAnswer"===((null===(d=null==c?void 0:c.properties)||void 0===d?void 0:d.id)||m.id)||"type your response"===_.toLowerCase().trim(),P=m["data-selected"],B="true"===P,D="true"===P||"false"===P,N=m["data-value"],q=n.useState(!1),J=q[0],H=q[1],K=B||I&&J;if(!1===x&&!b&&!D&&!I)return null;var U={padding:"0.3rem 0.8rem",borderRadius:"4px",fontSize:"0.9rem",fontWeight:"500",fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",transition:"all 0.2s ease",border:"1px solid"},O={display:"inline-block",width:"12px",height:"12px",border:"2px solid currentColor",borderTopColor:"transparent",borderRadius:"50%",animation:"spin 0.6s linear infinite",flexShrink:0};if("clickable-button"===u){var Y=(null==m?void 0:m.isTesterGenie)&&(C||null!==R),$=b||D&&!B||Y,Q={background:(null==m?void 0:m.isTesterGenie)?"linear-gradient(135deg, #e0eaff, #ede9fe, #dbeafe, #e0eaff)":"var(--il-surface, #fff)",color:(null==m?void 0:m.isTesterGenie)?"var(--il-primary, #6d28d9)":"var(--il-foreground, #272727ff)",borderColor:(null==m?void 0:m.isTesterGenie)?"var(--il-primary, rgba(139, 92, 246, 0.35))":"var(--il-border, #272727ff)",cursor:"pointer",opacity:1};return D||I?Q=K?{background:"color-mix(in srgb, var(--il-success, #16a34a) 14%, transparent)",color:"var(--il-success, #047857)",borderColor:"var(--il-success, #55a78fff)",cursor:I?"pointer":"default",opacity:1}:{background:"var(--il-secondary-bg, #f3f4f6)",color:"var(--il-disabled, #64676A)",borderColor:"var(--il-border, #a8a8a8ff)",cursor:"default",opacity:.6}:(b||Y)&&(Q={background:"var(--il-secondary-bg, #f3f4f6)",color:"var(--il-disabled, #64676A)",borderColor:"var(--il-border, #C0C0C2)",cursor:"not-allowed",opacity:1}),r.jsxs(r.Fragment,{children:[r.jsx("style",{children:"\n @keyframes spin { to { transform: rotate(360deg); } }\n @keyframes tgShimmer {\n 0%, 100% { background-position: 0% 50%; }\n 50% { background-position: 100% 50%; }\n }\n "}),r.jsx("button",e.__assign({className:u,onClick:function(r){return e.__awaiter(void 0,void 0,void 0,function(){var n,i,o,a;return e.__generator(this,function(e){switch(e.label){case 0:return r.preventDefault(),I?(H(!0),y&&y(),[2]):$?[2]:(n=N||_,f?(f(n),[3,8]):[3,1]);case 1:if(!(null==m?void 0:m.isTesterGenie))return[3,7];e.label=2;case 2:return e.trys.push([2,4,5,6]),j(!0),[4,t.autoGeneratePrompt(m.baseURL)];case 3:return i=e.sent(),E((null===(a=null==i?void 0:i.result)||void 0===a?void 0:a.Answer)||""),[3,6];case 4:return o=e.sent(),console.error("Error in TesterGenie click:",o),[3,6];case 5:return j(!1),[7];case 6:return[3,8];case 7:p(new KeyboardEvent("keydown",{key:"Enter"}),!1,n,j),e.label=8;case 8:return[2]}})})},disabled:$,style:(null==m?void 0:m.isTesterGenie)?e.__assign(e.__assign({padding:"0.3rem 0.8rem",margin:"10px 8px 8px 0",background:Q.background,backgroundSize:(null==m?void 0:m.isTesterGenie)?"250% 250%":void 0,animation:(null==m?void 0:m.isTesterGenie)&&!$?"tgShimmer 6s ease infinite":void 0,color:Q.color,border:"1.5px solid ".concat(Q.borderColor),borderRadius:"6px",cursor:Q.cursor,fontSize:"0.9rem",fontWeight:"500",transition:"color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease",fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",alignItems:"center",gap:"3px",pointerEvents:$?"none":"auto",opacity:Q.opacity,boxShadow:(null==m?void 0:m.isTesterGenie)?"0 1px 4px rgba(124, 58, 237, 0.1)":"none"},h),{marginLeft:"8px",width:"fit-content"}):e.__assign({display:"flex",alignItems:"center",padding:"5px 8px",background:K?"var(--il-hover, #EFF4FF)":"transparent",border:"1px solid ".concat(K?"var(--il-primary, #B2CCFF)":"transparent"),borderRadius:"6px",cursor:$?"not-allowed":"pointer",textAlign:"left",fontFamily:"Plus Jakarta Sans, sans-serif",opacity:$?.6:1},h),onMouseEnter:function(e){$||(null==m?void 0:m.isTesterGenie)||K||(e.currentTarget.style.background="var(--il-hover, #EFF4FF)",e.currentTarget.style.borderColor="var(--il-primary, #B2CCFF)")},onMouseLeave:function(e){$||(null==m?void 0:m.isTesterGenie)||K||(e.currentTarget.style.background="transparent",e.currentTarget.style.borderColor="transparent")}},m,{children:C&&(null==m?void 0:m.isTesterGenie)&&null===R?r.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[r.jsx("span",{style:O}),"Finding an interesting usecase to test..."]})):r.jsx(r.Fragment,{children:(null==m?void 0:m.isTesterGenie)?g:r.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",width:"100%"}},{children:[r.jsx("div",e.__assign({style:{width:"28px",height:"28px",borderRadius:"50%",border:K?"1px solid var(--il-border, #D0D5DD)":"1px solid var(--il-primary, #B2CCFF)",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",backgroundColor:K?"var(--il-hover, #D1E0FF)":"var(--il-surface, #fff)",flexShrink:0}},{children:r.jsx(s.ArrowRight,{color:K?"var(--il-primary, #004EEB)":"var(--il-muted, #667085)",size:20})})),r.jsx("span",e.__assign({style:{fontSize:"14px",color:"var(--il-foreground, #344054)",fontFamily:"Inter",fontWeight:"500"}},{children:g}))]}))})})),(null==m?void 0:m.isTesterGenie)&&null!==R&&r.jsxs("div",e.__assign({style:{marginTop:"6px",borderRadius:"8px",border:"1px solid var(--il-border, #e5e7eb)",background:"var(--il-surface, #f9fafb)",color:"var(--il-foreground, #111827)",padding:"14px 16px",maxWidth:"520px",fontFamily:"Plus Jakarta Sans, sans-serif"},onWheel:function(e){return e.stopPropagation()}},{children:[r.jsxs("p",e.__assign({style:{margin:"0 0 4px 0",fontSize:"1rem",color:"var(--il-foreground, #111827)"}},{children:[r.jsx("span",e.__assign({style:{height:"1.2em",width:"1.2em",marginRight:"4px"}},{children:r.jsx(a.default,{})})),"Your prompt is ready!"]})),r.jsx("p",e.__assign({style:{margin:"14px 0 14px 0",fontSize:"0.95rem",fontWeight:"600",color:"var(--il-foreground, #111827)",whiteSpace:"pre-wrap"}},{children:R})),r.jsx("p",e.__assign({style:{margin:"0 0 4px 0",fontSize:"1rem",color:"var(--il-foreground, #111827)",lineHeight:"1.55"}},{children:"Would you like to proceed with this prompt, or generate a new one?"})),r.jsxs("div",e.__assign({style:{display:"flex",gap:"6px",flexWrap:"wrap"}},{children:[r.jsxs("button",e.__assign({disabled:F||C,style:e.__assign(e.__assign({},U),{background:"linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))",color:"#5b21b6",borderColor:"#7c3aed",opacity:F||C?.6:1,cursor:F||C?"not-allowed":"pointer"}),onMouseEnter:function(e){F||C||(e.currentTarget.style.background="linear-gradient(to right, rgb(221, 214, 254), rgb(196, 181, 253))")},onMouseLeave:function(e){F||C||(e.currentTarget.style.background="linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))")},onClick:function(){p(new KeyboardEvent("keydown",{key:"Enter"}),!1,R,j),E(null),G(!1),M("")}},{children:[r.jsx(o.TickIcon,{color:"#5b21b6"})," Proceed"]})),r.jsx("button",e.__assign({disabled:F||C,style:e.__assign(e.__assign({},U),{background:F?"var(--il-secondary-bg, #f3f4f6)":"var(--il-surface, #fff)",color:F?"var(--il-disabled, #64676A)":"var(--il-foreground, #272727)",borderColor:"var(--il-border, #272727)",cursor:F||C?"not-allowed":"pointer",opacity:F||C?.7:1}),onMouseEnter:function(e){F||C||(e.currentTarget.style.background="linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))",e.currentTarget.style.borderColor="#7c3aed",e.currentTarget.style.color="#5b21b6")},onMouseLeave:function(e){F||C||(e.currentTarget.style.background="var(--il-surface, #fff)",e.currentTarget.style.borderColor="var(--il-border, #272727)",e.currentTarget.style.color="var(--il-foreground, #272727)")},onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var r,n,i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),T(!0),[4,t.autoGeneratePrompt(m.baseUrl,W||void 0)];case 1:return r=e.sent(),E((null===(i=null==r?void 0:r.result)||void 0===i?void 0:i.Answer)||""),[3,4];case 2:return n=e.sent(),console.error("Error regenerating prompt:",n),[3,4];case 3:return T(!1),[7];case 4:return[2]}})})}},{children:F?r.jsxs(r.Fragment,{children:[r.jsx("span",{style:O})," Regenerating..."]}):r.jsxs(r.Fragment,{children:[r.jsxs("svg",e.__assign({width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0}},{children:[r.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),r.jsx("path",{d:"M3 3v5h5"})]})),"Regenerate"]})})),r.jsx("button",e.__assign({disabled:F||C,style:e.__assign(e.__assign({},U),{background:"var(--il-surface, #fff)",color:A?"var(--il-primary, #5b21b6)":"var(--il-muted, #64676A)",borderColor:A?"var(--il-primary, #7c3aed)":"var(--il-border, #C0C0C2)",cursor:F||C?"not-allowed":"pointer",opacity:F||C?.6:1}),onMouseEnter:function(e){F||C||(e.currentTarget.style.borderColor="var(--il-primary, #7c3aed)",e.currentTarget.style.color="var(--il-primary, #5b21b6)")},onMouseLeave:function(e){F||C||A||(e.currentTarget.style.borderColor="var(--il-border, #C0C0C2)",e.currentTarget.style.color="var(--il-muted, #64676A)")},onClick:function(){return G(function(e){return!e})}},{children:A?"✕ Hide Inputs":" Give Inputs"}))]})),A&&r.jsxs("div",e.__assign({style:{marginTop:"12px",paddingTop:"12px",borderTop:"1px solid var(--il-border, #e5e7eb)"}},{children:[r.jsx("p",e.__assign({style:{margin:"0 0 6px 0",fontSize:"1rem",color:"var(--il-muted, #6b7280)"}},{children:"Help us generate better prompt (optional)"})),r.jsx("textarea",{placeholder:"e.g. Provide usecases for seperation rules",value:W,onChange:function(e){return M(e.target.value)},rows:3,onKeyDown:function(e){e.stopPropagation()},onWheel:function(e){e.stopPropagation()},style:{width:"100%",minWidth:"420px",maxWidth:"100%",padding:"10px 12px",borderRadius:"6px",border:"1px solid var(--il-input-border, #d1d5db)",fontSize:"0.9rem",fontFamily:"Plus Jakarta Sans, sans-serif",color:"var(--il-input-fg, #111827)",background:"var(--il-input-bg, #fff)",resize:"vertical",outline:"none",boxSizing:"border-box",lineHeight:"1.5",transition:"border-color 0.2s ease"},onFocus:function(e){e.currentTarget.style.borderColor="var(--il-focus, #7c3aed)"},onBlur:function(e){e.currentTarget.style.borderColor="var(--il-input-border, #d1d5db)"}}),r.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",marginTop:"8px"}},{children:[r.jsx("button",e.__assign({disabled:C||!W.trim(),style:e.__assign(e.__assign({},U),{background:C||!W.trim()?"var(--il-secondary-bg, #f3f4f6)":"linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))",color:C||!W.trim()?"var(--il-disabled, #64676A)":"var(--il-primary, #5b21b6)",borderColor:C||!W.trim()?"var(--il-border, #C0C0C2)":"var(--il-primary, #7c3aed)",cursor:C||!W.trim()?"not-allowed":"pointer",opacity:C||!W.trim()?.7:1}),onMouseEnter:function(e){!C&&W.trim()&&(e.currentTarget.style.background="linear-gradient(to right, rgb(221, 214, 254), rgb(196, 181, 253))")},onMouseLeave:function(e){!C&&W.trim()&&(e.currentTarget.style.background="linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))")},onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var r,n,i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),j(!0),[4,t.autoGeneratePrompt(m.baseUrl,W)];case 1:return r=e.sent(),E((null===(i=null==r?void 0:r.result)||void 0===i?void 0:i.Answer)||""),G(!1),[3,4];case 2:return n=e.sent(),console.error("Error generating with direction:",n),[3,4];case 3:return j(!1),[7];case 4:return[2]}})})}},{children:C?r.jsxs(r.Fragment,{children:[r.jsx("span",{style:O})," Generating..."]}):r.jsx(r.Fragment,{children:"✦ Generate"})})),r.jsx("button",e.__assign({disabled:C,style:e.__assign(e.__assign({},U),{background:"var(--il-surface, #fff)",color:"var(--il-muted, #64676A)",borderColor:"var(--il-border, #C0C0C2)",cursor:C?"not-allowed":"pointer",opacity:C?.5:1}),onMouseEnter:function(e){C||(e.currentTarget.style.borderColor="var(--il-border, #272727)",e.currentTarget.style.color="var(--il-foreground, #272727)")},onMouseLeave:function(e){C||(e.currentTarget.style.borderColor="var(--il-border, #C0C0C2)",e.currentTarget.style.color="var(--il-muted, #64676A)")},onClick:function(){return M("")}},{children:"Clear"}))]}))]}))]}))]})}return r.jsx("button",e.__assign({className:u},m,{children:g}))},exports.ActionableCheckbox=function(n){n.node;var o=n.className,t=n.children,a=n.selectedItems,s=n.onToggle,d=n.isSubmitted,c=n.disabled;e.__rest(n,["node","className","children","selectedItems","onToggle","isSubmitted","disabled"]);var u=i.extractTextFromChildren(t),g=u.trim();return"clickable-box"===o?d?a.includes(g)?r.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",margin:"4px 24px 4px 0",color:"#2661eb",fontWeight:600,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[r.jsx("span",e.__assign({style:{marginRight:"6px",fontSize:"16px"}},{children:"✓"}))," ",u]})):null:r.jsx(l,{label:u,isSelected:a.includes(g),onToggle:s,disabled:c}):r.jsx("span",e.__assign({className:o},{children:t}))},exports.CheckboxSelector=l,exports.RuleDisplay=function(n){var i=n.content,o=function(e){var r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp("<".concat(r,">([\\s\\S]*?)<\\/").concat(r,">"),"i"),o=i.match(n);return o?o[1].trim():"*No ".concat(e," tag found.*")},t=o("reasoning_new"),a=o("proposed_rule"),s=o("wta_new"),l=o("wnta_new");return r.jsxs("div",e.__assign({style:{padding:"16px 16px",maxWidth:"100%",border:"1px solid var(--il-primary, #A78BFA)",borderRadius:"8px",backgroundColor:"var(--il-primary-subtle, #F6F4FF)"}},{children:[r.jsx("div",e.__assign({style:{color:"var(--il-secondary-fg, #4B5563)",fontSize:"1rem",lineHeight:"1.5rem",marginBottom:"1rem",fontFamily:"inherit",maxWidth:"90%"}},{children:t})),r.jsxs("div",e.__assign({style:{border:"1px solid var(--il-border, #ddd)",borderRadius:"8px",padding:"16px",backgroundColor:"var(--il-surface, #FFFFFF)",color:"var(--il-foreground, #19213D)",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.05)"}},{children:[r.jsxs("div",e.__assign({style:{paddingLeft:"12px",marginBottom:"12px",fontFamily:"inherit"}},{children:[r.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"var(--il-muted, #666F8D)",fontFamily:"inherit"}},{children:"Proposed Rule"})),r.jsx("div",e.__assign({style:{fontSize:"0.95rem",color:"var(--il-foreground, #374151)",fontFamily:"inherit"}},{children:a}))]})),r.jsxs("div",e.__assign({style:{marginBottom:"12px",paddingLeft:"12px",fontFamily:"inherit"}},{children:[r.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"var(--il-muted, #666F8D)",fontFamily:"inherit"}},{children:"When to apply"})),r.jsx("div",e.__assign({style:{fontSize:"0.9rem",color:"var(--il-foreground, #374151)",fontFamily:"inherit"}},{children:s}))]})),r.jsxs("div",e.__assign({style:{paddingLeft:"12px",fontFamily:"inherit"}},{children:[r.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"var(--il-muted, #666F8D)",fontFamily:"inherit"}},{children:"When NOT to apply"})),r.jsx("div",e.__assign({style:{fontSize:"0.9rem",color:"var(--il-foreground, #374151)",fontFamily:"inherit"}},{children:l}))]}))]}))]}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),n=require("react"),t=require("../../helpers/utils.js"),i=require("../_svg/TickIcon.js"),o=require("../ChatComponents/ChatComponent.js"),s=require("../_svg/SparkleIcon.js"),a=require("lucide-react"),l=function(n){var t=n.label,i=n.onToggle,o=n.isSelected,s=n.disabled;return r.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",cursor:s?"not-allowed":"pointer",margin:"8px 24px 8px 0",userSelect:"none",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"14px",color:s?"#9ca3af":"#000000de",verticalAlign:"middle",opacity:s&&!o?.6:1},onClick:function(){return!s&&i(t,!o)}},{children:[r.jsx("div",e.__assign({style:{width:"18px",height:"18px",borderRadius:"4px",border:o?"none":"2px solid ".concat(s?"#e5e7eb":"#cfd8dc"),backgroundColor:o?s?"#90caf9":"#2661eb":"transparent",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"8px",transition:"all 0.2s ease",color:"white",flexShrink:0}},{children:o&&r.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))})),r.jsx("span",{children:t})]}))};exports.ActionableButton=function(l){var d,c=l.node,u=l.className,g=l.children,p=l.handleStream,f=l.onAction,x=l.disabled,b=l.isStreamEnd,h=void 0===b||b,y=l.style;l.isLastMessage;var m=l.onTypeResponseClick,_=e.__rest(l,["node","className","children","handleStream","onAction","disabled","isStreamEnd","style","isLastMessage","onTypeResponseClick"]),v=t.extractTextFromChildren(g),C=n.useState(!1),k=C[0],j=C[1],w=n.useState(!1),F=w[0],T=w[1],S=n.useState(null),R=S[0],E=S[1],z=n.useState(!1),A=z[0],G=z[1],L=n.useState(""),W=L[0],M=L[1],I="typeYourAnswer"===((null===(d=null==c?void 0:c.properties)||void 0===d?void 0:d.id)||_.id)||"type your response"===v.toLowerCase().trim(),P=_["data-selected"],B="true"===P,D="true"===P||"false"===P,N=_["data-value"],q=n.useState(!1),J=q[0],H=q[1],K=B||I&&J;if(!1===h&&!x&&!D&&!I)return null;var U={padding:"0.3rem 0.8rem",borderRadius:"4px",fontSize:"0.9rem",fontWeight:"500",fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",transition:"all 0.2s ease",border:"1px solid"},O={display:"inline-block",width:"12px",height:"12px",border:"2px solid currentColor",borderTopColor:"transparent",borderRadius:"50%",animation:"spin 0.6s linear infinite",flexShrink:0};if("clickable-button"===u){var Y=(null==_?void 0:_.isTesterGenie)&&(k||null!==R),$=x||D&&!B||Y,Q={background:(null==_?void 0:_.isTesterGenie)?"linear-gradient(135deg, #e0eaff, #ede9fe, #dbeafe, #e0eaff)":"#fff",color:(null==_?void 0:_.isTesterGenie)?"#6d28d9":"#272727ff",borderColor:(null==_?void 0:_.isTesterGenie)?"rgba(139, 92, 246, 0.35)":"#272727ff",cursor:"pointer",opacity:1};return D||I?Q=K?{background:"linear-gradient(to right, rgb(236, 253, 245), rgb(209, 250, 229))",color:"#047857",borderColor:"#55a78fff",cursor:I?"pointer":"default",opacity:1}:{background:"#f3f4f6",color:"#64676A",borderColor:"#a8a8a8ff",cursor:"default",opacity:.6}:(x||Y)&&(Q={background:"#f3f4f6",color:"#64676A",borderColor:"#C0C0C2",cursor:"not-allowed",opacity:1}),r.jsxs(r.Fragment,{children:[r.jsx("style",{children:"\n @keyframes spin { to { transform: rotate(360deg); } }\n @keyframes tgShimmer {\n 0%, 100% { background-position: 0% 50%; }\n 50% { background-position: 100% 50%; }\n }\n "}),r.jsx("button",e.__assign({className:u,onClick:function(r){return e.__awaiter(void 0,void 0,void 0,function(){var n,t,i,s;return e.__generator(this,function(e){switch(e.label){case 0:return r.preventDefault(),I?(H(!0),m&&m(),[2]):$?[2]:(n=N||v,f?(f(n),[3,8]):[3,1]);case 1:if(!(null==_?void 0:_.isTesterGenie))return[3,7];e.label=2;case 2:return e.trys.push([2,4,5,6]),j(!0),[4,o.autoGeneratePrompt(_.baseURL)];case 3:return t=e.sent(),E((null===(s=null==t?void 0:t.result)||void 0===s?void 0:s.Answer)||""),[3,6];case 4:return i=e.sent(),console.error("Error in TesterGenie click:",i),[3,6];case 5:return j(!1),[7];case 6:return[3,8];case 7:p(new KeyboardEvent("keydown",{key:"Enter"}),!1,n,j),e.label=8;case 8:return[2]}})})},disabled:$,style:(null==_?void 0:_.isTesterGenie)?e.__assign(e.__assign({padding:"0.3rem 0.8rem",margin:"10px 8px 8px 0",background:Q.background,backgroundSize:(null==_?void 0:_.isTesterGenie)?"250% 250%":void 0,animation:(null==_?void 0:_.isTesterGenie)&&!$?"tgShimmer 6s ease infinite":void 0,color:Q.color,border:"1.5px solid ".concat(Q.borderColor),borderRadius:"6px",cursor:Q.cursor,fontSize:"0.9rem",fontWeight:"500",transition:"color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease",fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",alignItems:"center",gap:"3px",pointerEvents:$?"none":"auto",opacity:Q.opacity,boxShadow:(null==_?void 0:_.isTesterGenie)?"0 1px 4px rgba(124, 58, 237, 0.1)":"none"},y),{marginLeft:"8px",width:"fit-content"}):e.__assign({display:"flex",alignItems:"center",padding:"5px 8px",background:K?"linear-gradient(to right, #EFF4FF)":"transparent",border:"1px solid ".concat(K?"#B2CCFF":"transparent"),borderRadius:"6px",cursor:$?"not-allowed":"pointer",textAlign:"left",fontFamily:"Plus Jakarta Sans, sans-serif",opacity:$?.6:1},y),onMouseEnter:function(e){$||(null==_?void 0:_.isTesterGenie)||K||(e.currentTarget.style.background="linear-gradient(to right, #EFF4FF)",e.currentTarget.style.borderColor="#B2CCFF")},onMouseLeave:function(e){$||(null==_?void 0:_.isTesterGenie)||K||(e.currentTarget.style.background="transparent",e.currentTarget.style.borderColor="transparent")}},_,{children:k&&(null==_?void 0:_.isTesterGenie)&&null===R?r.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[r.jsx("span",{style:O}),"Finding an interesting usecase to test..."]})):r.jsx(r.Fragment,{children:(null==_?void 0:_.isTesterGenie)?g:r.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",width:"100%"}},{children:[r.jsx("div",e.__assign({style:{width:"28px",height:"28px",borderRadius:"50%",border:K?"1px solid #D0D5DD":"1px solid #B2CCFF",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",backgroundColor:K?"#D1E0FF":"#fff",flexShrink:0}},{children:r.jsx(a.ArrowRight,{color:K?"#004EEB":"#667085",size:20})})),r.jsx("span",e.__assign({style:{fontSize:"14px",color:"#344054",fontFamily:"Inter",fontWeight:"500"}},{children:g}))]}))})})),(null==_?void 0:_.isTesterGenie)&&null!==R&&r.jsxs("div",e.__assign({style:{marginTop:"6px",borderRadius:"8px",border:"1px solid #e5e7eb",background:"#f9fafb",padding:"14px 16px",maxWidth:"520px",fontFamily:"Plus Jakarta Sans, sans-serif"},onWheel:function(e){return e.stopPropagation()}},{children:[r.jsxs("p",e.__assign({style:{margin:"0 0 4px 0",fontSize:"1rem",color:"#111827"}},{children:[r.jsx("span",e.__assign({style:{height:"1.2em",width:"1.2em",marginRight:"4px"}},{children:r.jsx(s.default,{})})),"Your prompt is ready!"]})),r.jsx("p",e.__assign({style:{margin:"14px 0 14px 0",fontSize:"0.95rem",fontWeight:"600",color:"#111827",whiteSpace:"pre-wrap"}},{children:R})),r.jsx("p",e.__assign({style:{margin:"0 0 4px 0",fontSize:"1rem",color:"#111827",lineHeight:"1.55"}},{children:"Would you like to proceed with this prompt, or generate a new one?"})),r.jsxs("div",e.__assign({style:{display:"flex",gap:"6px",flexWrap:"wrap"}},{children:[r.jsxs("button",e.__assign({disabled:F||k,style:e.__assign(e.__assign({},U),{background:"linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))",color:"#5b21b6",borderColor:"#7c3aed",opacity:F||k?.6:1,cursor:F||k?"not-allowed":"pointer"}),onMouseEnter:function(e){F||k||(e.currentTarget.style.background="linear-gradient(to right, rgb(221, 214, 254), rgb(196, 181, 253))")},onMouseLeave:function(e){F||k||(e.currentTarget.style.background="linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))")},onClick:function(){p(new KeyboardEvent("keydown",{key:"Enter"}),!1,R,j),E(null),G(!1),M("")}},{children:[r.jsx(i.TickIcon,{color:"#5b21b6"})," Proceed"]})),r.jsx("button",e.__assign({disabled:F||k,style:e.__assign(e.__assign({},U),{background:F?"#f3f4f6":"#fff",color:F?"#64676A":"#272727",borderColor:F?"#C0C0C2":"#272727",cursor:F||k?"not-allowed":"pointer",opacity:F||k?.7:1}),onMouseEnter:function(e){F||k||(e.currentTarget.style.background="linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))",e.currentTarget.style.borderColor="#7c3aed",e.currentTarget.style.color="#5b21b6")},onMouseLeave:function(e){F||k||(e.currentTarget.style.background="#fff",e.currentTarget.style.borderColor="#272727",e.currentTarget.style.color="#272727")},onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var r,n,t;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),T(!0),[4,o.autoGeneratePrompt(_.baseUrl,W||void 0)];case 1:return r=e.sent(),E((null===(t=null==r?void 0:r.result)||void 0===t?void 0:t.Answer)||""),[3,4];case 2:return n=e.sent(),console.error("Error regenerating prompt:",n),[3,4];case 3:return T(!1),[7];case 4:return[2]}})})}},{children:F?r.jsxs(r.Fragment,{children:[r.jsx("span",{style:O})," Regenerating..."]}):r.jsxs(r.Fragment,{children:[r.jsxs("svg",e.__assign({width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0}},{children:[r.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),r.jsx("path",{d:"M3 3v5h5"})]})),"Regenerate"]})})),r.jsx("button",e.__assign({disabled:F||k,style:e.__assign(e.__assign({},U),{background:"#fff",color:A?"#5b21b6":"#64676A",borderColor:A?"#7c3aed":"#C0C0C2",cursor:F||k?"not-allowed":"pointer",opacity:F||k?.6:1}),onMouseEnter:function(e){F||k||(e.currentTarget.style.borderColor="#7c3aed",e.currentTarget.style.color="#5b21b6")},onMouseLeave:function(e){F||k||A||(e.currentTarget.style.borderColor="#C0C0C2",e.currentTarget.style.color="#64676A")},onClick:function(){return G(function(e){return!e})}},{children:A?"✕ Hide Inputs":" Give Inputs"}))]})),A&&r.jsxs("div",e.__assign({style:{marginTop:"12px",paddingTop:"12px",borderTop:"1px solid #e5e7eb"}},{children:[r.jsx("p",e.__assign({style:{margin:"0 0 6px 0",fontSize:"1rem",color:"#6b7280"}},{children:"Help us generate better prompt (optional)"})),r.jsx("textarea",{placeholder:"e.g. Provide usecases for seperation rules",value:W,onChange:function(e){return M(e.target.value)},rows:3,onKeyDown:function(e){e.stopPropagation()},onWheel:function(e){e.stopPropagation()},style:{width:"100%",minWidth:"420px",maxWidth:"100%",padding:"10px 12px",borderRadius:"6px",border:"1px solid #d1d5db",fontSize:"0.9rem",fontFamily:"Plus Jakarta Sans, sans-serif",color:"#111827",background:"#fff",resize:"vertical",outline:"none",boxSizing:"border-box",lineHeight:"1.5",transition:"border-color 0.2s ease"},onFocus:function(e){e.currentTarget.style.borderColor="#7c3aed"},onBlur:function(e){e.currentTarget.style.borderColor="#d1d5db"}}),r.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",marginTop:"8px"}},{children:[r.jsx("button",e.__assign({disabled:k||!W.trim(),style:e.__assign(e.__assign({},U),{background:k||!W.trim()?"#f3f4f6":"linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))",color:k||!W.trim()?"#64676A":"#5b21b6",borderColor:k||!W.trim()?"#C0C0C2":"#7c3aed",cursor:k||!W.trim()?"not-allowed":"pointer",opacity:k||!W.trim()?.7:1}),onMouseEnter:function(e){!k&&W.trim()&&(e.currentTarget.style.background="linear-gradient(to right, rgb(221, 214, 254), rgb(196, 181, 253))")},onMouseLeave:function(e){!k&&W.trim()&&(e.currentTarget.style.background="linear-gradient(to right, rgb(237, 233, 254), rgb(221, 214, 254))")},onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var r,n,t;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),j(!0),[4,o.autoGeneratePrompt(_.baseUrl,W)];case 1:return r=e.sent(),E((null===(t=null==r?void 0:r.result)||void 0===t?void 0:t.Answer)||""),G(!1),[3,4];case 2:return n=e.sent(),console.error("Error generating with direction:",n),[3,4];case 3:return j(!1),[7];case 4:return[2]}})})}},{children:k?r.jsxs(r.Fragment,{children:[r.jsx("span",{style:O})," Generating..."]}):r.jsx(r.Fragment,{children:"✦ Generate"})})),r.jsx("button",e.__assign({disabled:k,style:e.__assign(e.__assign({},U),{background:"#fff",color:"#64676A",borderColor:"#C0C0C2",cursor:k?"not-allowed":"pointer",opacity:k?.5:1}),onMouseEnter:function(e){k||(e.currentTarget.style.borderColor="#272727",e.currentTarget.style.color="#272727")},onMouseLeave:function(e){k||(e.currentTarget.style.borderColor="#C0C0C2",e.currentTarget.style.color="#64676A")},onClick:function(){return M("")}},{children:"Clear"}))]}))]}))]}))]})}return r.jsx("button",e.__assign({className:u},_,{children:g}))},exports.ActionableCheckbox=function(n){n.node;var i=n.className,o=n.children,s=n.selectedItems,a=n.onToggle,d=n.isSubmitted,c=n.disabled;e.__rest(n,["node","className","children","selectedItems","onToggle","isSubmitted","disabled"]);var u=t.extractTextFromChildren(o),g=u.trim();return"clickable-box"===i?d?s.includes(g)?r.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",margin:"4px 24px 4px 0",color:"#2661eb",fontWeight:600,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[r.jsx("span",e.__assign({style:{marginRight:"6px",fontSize:"16px"}},{children:"✓"}))," ",u]})):null:r.jsx(l,{label:u,isSelected:s.includes(g),onToggle:a,disabled:c}):r.jsx("span",e.__assign({className:i},{children:o}))},exports.CheckboxSelector=l,exports.RuleDisplay=function(n){var t=n.content,i=function(e){var r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp("<".concat(r,">([\\s\\S]*?)<\\/").concat(r,">"),"i"),i=t.match(n);return i?i[1].trim():"*No ".concat(e," tag found.*")},o=i("reasoning_new"),s=i("proposed_rule"),a=i("wta_new"),l=i("wnta_new");return r.jsxs("div",e.__assign({style:{padding:"16px 16px",maxWidth:"100%",border:"1px solid #A78BFA",borderRadius:"8px",backgroundColor:"#F6F4FF"}},{children:[r.jsx("div",e.__assign({style:{color:"#4B5563",fontSize:"1rem",lineHeight:"1.5rem",marginBottom:"1rem",fontFamily:"inherit",maxWidth:"90%"}},{children:o})),r.jsxs("div",e.__assign({style:{border:"1px solid #ddd",borderRadius:"8px",padding:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.05)"}},{children:[r.jsxs("div",e.__assign({style:{paddingLeft:"12px",marginBottom:"12px",fontFamily:"inherit"}},{children:[r.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"#666F8D",fontFamily:"inherit"}},{children:"Proposed Rule"})),r.jsx("div",e.__assign({style:{fontSize:"0.95rem",color:"#374151",fontFamily:"inherit"}},{children:s}))]})),r.jsxs("div",e.__assign({style:{marginBottom:"12px",paddingLeft:"12px",fontFamily:"inherit"}},{children:[r.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"#666F8D",fontFamily:"inherit"}},{children:"When to apply"})),r.jsx("div",e.__assign({style:{fontSize:"0.9rem",color:"#374151",fontFamily:"inherit"}},{children:a}))]})),r.jsxs("div",e.__assign({style:{paddingLeft:"12px",fontFamily:"inherit"}},{children:[r.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"#666F8D",fontFamily:"inherit"}},{children:"When NOT to apply"})),r.jsx("div",e.__assign({style:{fontSize:"0.9rem",color:"#374151",fontFamily:"inherit"}},{children:l}))]}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=ClickableChatComponents.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("react"),n=require("../_svg/InfoIcon.js");exports.default=function(t){t.validationType;var r=t.decisionStrength,l=t.ruleId,o=t.title,a=t.tier,d=t.descriptionText,x=t.reasoningNode,p=t.customStyles,g=t.onViewComparison,c=t.disabled,u=s.useState(!1),f=u[0],h=u[1],_=e.__assign({display:"flex",flexDirection:"column",border:"1px solid #E3E6EA",borderRadius:"8px",padding:"14px 16px",gap:"8px",backgroundColor:"#fff"},null==p?void 0:p.container);e.__assign({display:"flex",alignItems:"center",gap:"4px",backgroundColor:"#E0F2FE80",color:"#0369A1",padding:"0.5px 9px",borderRadius:"9999px",fontSize:"12px",fontWeight:500},null==p?void 0:p.headerTag);var y=e.__assign({display:"flex",alignItems:"center",gap:"4px",backgroundColor:"#FEE2E2",color:"#B91C1C",padding:"0.5px 7px",borderRadius:"6px",fontSize:"12px",fontWeight:500},null==p?void 0:p.strengthBadgeStyle),v=e.__assign({display:"flex",flexDirection:"row",alignItems:"center",padding:"8px",gap:"8px",width:"100%",maxWidth:"140px",height:"44px",backgroundColor:c?"#F2F4F7":f?"#EFF4FF":"transparent",border:c?"1px solid #D0D5DD":f?"1px solid #B2CCFF":"1px solid transparent",borderRadius:"8px",cursor:c?"not-allowed":"pointer",opacity:c?.6:1,boxSizing:"border-box",transition:"all 0.2s ease"},null==p?void 0:p.button);return i.jsxs("div",e.__assign({style:_},{children:[i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[i.jsxs("div",e.__assign({style:y},{children:[i.jsx(n.default,{})," ","Conflicting Learning Found"]})),r&&i.jsx("div",e.__assign({style:y},{children:i.jsx("span",{children:r})}))]})),i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"6px"}},{children:[i.jsxs("h3",e.__assign({style:e.__assign({fontSize:"14px",fontWeight:500,color:"#19213D",margin:0},null==p?void 0:p.title)},{children:[o," ",a?"— ".concat(a):""]})),i.jsxs("div",e.__assign({style:e.__assign({fontSize:"14px",fontWeight:400,color:"#666F8D",lineHeight:"1.5"},null==p?void 0:p.description)},{children:[i.jsx("span",{children:d}),x]}))]})),i.jsxs("button",e.__assign({style:v,onClick:function(){h(!0),g(l,r)},disabled:c},{children:[i.jsxs("svg",e.__assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[i.jsx("rect",{x:"0.5",y:"0.5",width:"27",height:"27",rx:"13.5",fill:f?"#D1E0FF":"transparent",stroke:f?"#D1E0FF":"#D0D5DD",style:{transition:"all 0.2s ease"}}),i.jsx("path",{d:"M9.33399 13.9974L18.6673 13.9974M18.6673 13.9974L14.0007 18.6641M18.6673 13.9974L14.0007 9.33073",stroke:f?"#004EEB":"#667085",strokeWidth:"1.52381",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"stroke 0.2s ease"}})]})),i.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:500,fontFamily:"'Inter', sans-serif",color:"#1D2939",lineHeight:"20px",display:"flex",alignItems:"center"}},{children:"Compare"}))]}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=RuleValidationCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("../_svg/PencilEdit.js"),t=require("../_svg/RadioButton.js");exports.RuleVariantCard=function(s){var r=s.variantName,a=void 0===r?"Default Variant":r,o=s.decisionStrength,l=void 0===o?90:o,d=s.children,p=s.isEditable,g=s.isSelected,c=void 0!==g&&g,x=s.onToggle,f=s.onEdit,h=s.styleOverrides,u=void 0===h?{}:h,_={container:e.__assign({border:c?"1px solid #2563EB":"1px solid #E5E7EB",borderRadius:"8px",padding:"16px",backgroundColor:"#FFFFFF",marginBottom:"12px",fontFamily:'"Inter", "Plus Jakarta Sans", sans-serif',boxShadow:"0 1px 2px rgba(0,0,0,0.05)",position:"relative"},u.container),headerRow:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"12px",width:"100%",flexWrap:"wrap",gap:"8px"},leftGroup:{display:"flex",alignItems:"center",gap:"6px",flexWrap:"wrap",flex:"1 1 auto",marginRight:"8px"},badge:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"20px",padding:"0 6px",borderRadius:"4px",fontSize:"11px",fontWeight:500,lineHeight:"100%",whiteSpace:"nowrap",backgroundColor:"#F7F8FA",border:"1px solid #F0F2F5",color:"#374151"},divider:{color:"#CBD5E1",fontSize:"14px",fontWeight:300,display:"inline-block"},strengthText:{fontSize:"12px",color:"#37383B",fontWeight:400,display:"flex",alignItems:"center",gap:"3px",whiteSpace:"nowrap"},strengthValue:{fontWeight:700},editBtn:{display:"flex",alignItems:"center",gap:"4px",background:"none",border:"none",cursor:"pointer",color:"#475569",fontSize:"12px",fontWeight:500,padding:"2px 0",whiteSpace:"nowrap",alignSelf:"flex-start"},selectionWrapper:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:"2px"},content:{fontSize:"13px",color:"#37383B",lineHeight:"1.5",fontWeight:400,marginTop:"4px",display:"block",wordBreak:"break-word"}},y=a.toLowerCase().includes("default")?_.badge:e.__assign(e.__assign({},_.badge),{backgroundColor:"#FDF2F899",color:"#DB2777",borderColor:"#FDF2F8"});return i.jsxs("div",e.__assign({style:_.container},{children:[i.jsxs("div",e.__assign({style:_.headerRow},{children:[i.jsxs("div",e.__assign({style:_.leftGroup},{children:[p&&i.jsx("div",e.__assign({style:_.selectionWrapper,onClick:function(){return x&&x(!c)}},{children:i.jsx(t.default,{isSelected:c})})),i.jsx("div",e.__assign({style:y},{children:a})),i.jsx("span",e.__assign({style:_.divider},{children:"|"})),i.jsxs("span",e.__assign({style:_.strengthText},{children:["Decision Strength ",i.jsxs("span",e.__assign({style:_.strengthValue},{children:[l,"%"]}))]}))]})),p&&i.jsxs("button",e.__assign({style:_.editBtn,onClick:f},{children:[i.jsx(n.EditIcon,{}),"Edit"]}))]})),i.jsx("div",e.__assign({style:_.content},{children:i.jsx("span",e.__assign({style:{display:"inline"}},{children:d}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=RuleVariantCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),r=require("lucide-react"),s=require("@e-llm-studio/citation"),t=require("./_svg/ButtonCognitiveIcon.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(i);exports.ViewFormUpdateCard=function(i){var o=i.data,l=i.cardMdComponents,p=a.default.useState(!0),c=p[0],d=p[1],g=a.default.useState({}),u=g[0],x=g[1];return o&&o.fields&&Array.isArray(o.fields)?n.jsxs("span",e.__assign({style:{display:"inline",verticalAlign:"middle",marginLeft:"4px"}},{children:[n.jsxs("button",e.__assign({onClick:function(){return d(!c)},style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"6px 4px",borderRadius:"8px",border:"none",backgroundColor:"#F5F3FF",color:"#6D28D9",fontWeight:500,fontSize:"14px",cursor:"pointer"}},{children:[n.jsx(r.FileText,{size:15}),n.jsx("span",{children:"View Updated Details"}),c?n.jsx(r.ChevronUp,{size:16}):n.jsx(r.ChevronDown,{size:16})]})),c&&n.jsxs("div",e.__assign({style:{position:"relative",zIndex:10,marginTop:"8px",width:"100%",minWidth:"300px",border:"1px solid #F1F5F9",borderRadius:"8px",backgroundColor:"#FFFFFF",padding:"12px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1)"}},{children:[n.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:600,color:"#475569",marginBottom:"4px"}},{children:o.title})),n.jsx("div",e.__assign({style:{backgroundColor:"#F8FAFC",borderRadius:"8px",padding:"12px",display:"flex",flexDirection:"column",gap:"12px"}},{children:o.fields.map(function(i,o){var a=i.segments&&i.segments.length>0?i.segments:[{type:"text",content:i.label}];return n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"6px"}},{children:[n.jsxs("div",e.__assign({style:{fontSize:"14px",color:"#1E293B",lineHeight:"1.6",fontWeight:400}},{children:[n.jsxs("span",{children:[o+1,"."]}),a.map(function(i,s){if("text"===i.type)return n.jsx("span",e.__assign({style:{whiteSpace:"pre-wrap"}},{children:i.content}),s);if("reasoning"===i.type){var a="".concat(o,"-").concat(s),l=u[a];return n.jsxs("span",e.__assign({onClick:function(n){n.stopPropagation(),x(function(n){var i;return e.__assign(e.__assign({},n),((i={})[a]=!n[a],i))})},style:{display:"inline-flex",alignItems:"center",gap:"2px",margin:"0 4px",cursor:"pointer",verticalAlign:"middle"}},{children:[n.jsx(t.ButtonCognitiveIcon,{size:18}),l?n.jsx(r.ChevronUp,{size:12,color:"#667085"}):n.jsx(r.ChevronDown,{size:12,color:"#667085"})]}),s)}return null})]})),a.map(function(i,r){var a,p="".concat(o,"-").concat(r);return"reasoning"===i.type&&u[p]?n.jsx("div",e.__assign({style:{width:"100%",marginTop:"4px"}},{children:n.jsx(s.CognitiveDecisioningCard,{reasoningTitle:"Decision Making Factors",reasoningSubtitle:"Why is this Suggested?",gapTitle:"Gaps in Decision",gapSubtitle:"What's missing or unclear?",headerIcon:n.jsx(t.ButtonCognitiveIcon,{}),reasoning:null===(a=i.reasoning.reason)||void 0===a?void 0:a.replace(/\\n/g,"\n"),gap:i.reasoning.gap,score:i.reasoning.score,isOpen:!0,onToggle:function(){return x(function(n){var i;return e.__assign(e.__assign({},n),((i={})[p]=!1,i))})},hideTrigger:!0,mdComponents:l,styles:{pill:{gap:"2px",border:"none",backgroundColor:"transparent"}}})}),"card-".concat(r)):null})]}),o)})}))]}))]})):null};
|
|
2
2
|
//# sourceMappingURL=ViewFormUpdateCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),r=require("@e-llm-studio/citation"),o=require("./_svg/ButtonCognitiveIcon.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(n);exports.ViewIdentifiedFieldsCard=function(n){var t=n.data,l=n.cardMdComponents,d=a.default.useState(!0),g=d[0],p=d[1],c=a.default.useState({}),x=c[0],u=c[1];return i.jsxs("span",e.__assign({style:{display:"inline",verticalAlign:"middle",marginLeft:"4px"}},{children:[i.jsxs("button",e.__assign({onClick:function(){return p(!g)},style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"6px 4px",borderRadius:"8px",border:"none",backgroundColor:"#F5F3FF",color:"#6D28D9",fontWeight:500,fontSize:"14px",cursor:"pointer"}},{children:[i.jsx(s.FileText,{size:15}),i.jsx("span",{children:"View Identified Details"}),g?i.jsx(s.ChevronUp,{size:16}):i.jsx(s.ChevronDown,{size:16})]})),g&&i.jsxs("div",e.__assign({style:{position:"relative",zIndex:10,marginTop:"8px",marginBottom:"8px",width:"100%",minWidth:"300px",border:"1px solid #F1F5F9",borderRadius:"8px",backgroundColor:"#FFFFFF",padding:"12px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1)"}},{children:[i.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:600,color:"#475569",marginBottom:"4px"}},{children:t.title})),i.jsx("div",e.__assign({style:{backgroundColor:"#F8FAFC",borderRadius:"8px",padding:"12px",display:"flex",flexDirection:"column",gap:"12px"}},{children:t.fields.map(function(n,t){var a=x[t];return i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"6px"}},{children:[i.jsxs("div",e.__assign({style:{fontSize:"14px",color:"#1E293B",lineHeight:"1.6",fontWeight:400}},{children:[i.jsxs("span",{children:[t+1,". ",n.label]}),n.reasoning&&i.jsxs("span",e.__assign({onClick:function(i){i.stopPropagation(),u(function(i){var n;return e.__assign(e.__assign({},i),((n={})[t]=!i[t],n))})},style:{display:"inline-flex",alignItems:"center",gap:"2px",marginLeft:"6px",cursor:"pointer",verticalAlign:"middle"}},{children:[i.jsx(o.ButtonCognitiveIcon,{size:18}),a?i.jsx(s.ChevronUp,{size:12,color:"#667085"}):i.jsx(s.ChevronDown,{size:12,color:"#667085"})]}))]})),n.reasoning&&a&&i.jsx("div",e.__assign({style:{width:"100%"}},{children:i.jsx(r.CognitiveDecisioningCard,{reasoningTitle:"Decision Making Factors",reasoningSubtitle:"Why is this Suggested?",gapTitle:"Gaps in Decision",gapSubtitle:"What's missing or unclear?",headerIcon:i.jsx(o.ButtonCognitiveIcon,{}),reasoning:n.reasoning.reason.replace(/\\n/g,"\n"),gap:n.reasoning.gap,score:n.reasoning.score,isOpen:!0,onToggle:function(){return u(function(i){var n;return e.__assign(e.__assign({},i),((n={})[t]=!1,n))})},hideTrigger:!0,mdComponents:l,styles:{pill:{gap:"2px",border:"none",backgroundColor:"transparent"}}})}))]}),t)})}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=ViewIdentifiedFieldsCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),e=require("react/jsx-runtime");exports.ButtonCognitiveIcon=function(i){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),e=require("react/jsx-runtime");exports.ButtonCognitiveIcon=function(i){var s=i.size,t=void 0===s?20:s,l=C.__rest(i,["size"]);return e.jsxs("svg",C.__assign({width:t,height:t,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l,{children:[e.jsxs("g",C.__assign({"clip-path":"url(#clip0_7146_59770)"},{children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.870143 7.4728C1.05898 7.12852 1.27464 6.8046 1.51383 6.50373L1.18293 7.96614C0.979942 8.80183 0.898342 9.61402 1.17775 10.2711C1.21942 10.3691 1.26815 10.4612 1.32333 10.5469C1.31329 10.7241 1.31151 10.9023 1.31813 11.0806C1.35384 12.0427 1.63248 12.9774 2.12537 13.7883C2.61826 14.5994 3.30759 15.2574 4.12238 15.6948C4.23255 15.7549 4.32499 15.8457 4.38965 15.9572C4.45431 16.0686 4.48873 16.1966 4.48918 16.3274V19.2231C4.48918 19.3163 4.47174 19.4086 4.43785 19.4947C4.40397 19.5808 4.3543 19.6591 4.29169 19.7249C4.22908 19.7908 4.15475 19.8432 4.07294 19.8788C3.99114 19.9145 3.90346 19.9328 3.81492 19.9328C3.72637 19.9328 3.63869 19.9145 3.55689 19.8788C3.47508 19.8432 3.40075 19.7908 3.33814 19.7249C3.27553 19.6591 3.22587 19.5808 3.19198 19.4947C3.1581 19.4086 3.14066 19.3163 3.14066 19.2231V16.7453C1.68401 15.8205 0.630139 14.3313 0.205569 12.5974C-0.219001 10.8635 0.0196202 9.02345 0.870143 7.4728ZM2.90096 5.19659C2.88899 5.25028 2.87501 5.30914 2.85914 5.37342L2.35372 7.6047C2.74036 7.06579 3.22081 6.60571 3.77188 6.25032C3.86004 6.19348 3.94964 6.13953 4.04056 6.08854L4.37488 4.7326C4.4043 4.6181 4.42962 4.50778 4.45073 4.40202C3.89913 4.59451 3.3785 4.86265 2.90096 5.19659ZM5.56585 4.12493C5.53444 4.42314 5.47335 4.72393 5.39987 5.0116L5.25401 5.6033C5.6147 5.51175 5.98526 5.46115 6.35938 5.45343C7.27383 5.43458 8.17653 5.67261 8.97455 6.14302C9.77256 6.61343 10.437 7.29923 10.8996 8.1298C11.3621 8.96038 11.606 9.90572 11.6062 10.8685V15.3246C11.6062 15.4318 11.5657 15.5346 11.4937 15.6104C11.4216 15.6863 11.324 15.7288 11.2221 15.7288H9.10545C8.92662 15.7288 8.75512 15.8037 8.62867 15.9367C8.50223 16.0699 8.43119 16.2504 8.43119 16.4386V19.2231C8.43119 19.4114 8.50223 19.5919 8.62867 19.7249C8.75512 19.8581 8.92662 19.9328 9.10545 19.9328C9.28428 19.9328 9.45578 19.8581 9.58223 19.7249C9.70867 19.5919 9.77971 19.4114 9.77971 19.2231V17.1483H11.2221C11.4496 17.1483 11.6749 17.1012 11.8851 17.0096C12.0953 16.9179 12.2863 16.7836 12.4472 16.6142C12.6081 16.4448 12.7357 16.2438 12.8228 16.0225C12.9099 15.8013 12.9547 15.5641 12.9547 15.3246V10.8696C12.9545 9.65475 12.6467 8.46189 12.0631 7.4138C11.4794 6.36573 10.641 5.50029 9.63407 4.90657C8.38865 4.18261 6.95913 3.91301 5.56585 4.12493ZM3.70049 8.44134C3.42465 8.78904 3.20515 9.1864 3.05432 9.61774C2.98799 9.80743 2.93585 10.0011 2.89791 10.1971C3.31428 10.1882 3.71718 10.1018 4.57574 9.3851L5.00851 9.00583C5.17133 8.85685 5.2371 8.62777 5.20005 8.40752L5.17831 8.31379C5.07205 8.04339 4.74203 7.96266 4.50119 8.1089C4.25222 8.26007 3.98261 8.37306 3.70049 8.44134ZM6.15774 7.88766C6.02755 7.55613 5.82305 7.3186 5.58321 7.1627C6.10638 7.00991 6.65842 6.97659 7.20161 7.07001C8.06073 7.21777 8.84495 7.67345 9.42154 8.35994C9.80992 8.82213 9.70204 9.48646 9.30287 9.86461C8.12912 10.9809 6.18401 12.4277 4.25076 12.9671C3.75882 13.1034 3.21941 12.8535 3.03925 12.3198C2.92908 11.9929 2.86081 11.6548 2.8344 11.314C3.15405 11.3123 3.55309 11.2871 4.0591 11.0503C4.53459 10.8279 5.0516 10.4444 5.70426 9.84718C6.24535 9.35195 6.37813 8.59572 6.18673 7.97158L6.1743 7.92908L6.15774 7.88766Z",fill:"#344054"}),e.jsx("path",{d:"M2.78566 10.2017C2.21589 10.2017 1.79754 9.83133 2.19656 8.2028L2.85082 5.3137C2.96495 4.85111 2.98338 4.66616 2.85082 4.66616C2.36416 4.7953 2.60848 4.71503 2.19651 4.89983L1.91211 4.39986C3.29881 3.15966 3.32335 2.83187 4.00636 2.83187C4.57614 2.83187 4.6714 3.55367 4.38607 4.66428L3.63745 7.70142C3.50444 8.23827 3.56196 8.42321 3.69406 8.42321C3.98316 8.35428 4.2596 8.24005 4.5145 8.08528C4.75852 7.93711 5.09207 8.01872 5.19962 8.29281C5.27637 8.54288 5.21676 8.82053 5.02834 8.99293C3.76206 10.1516 3.31404 10.2017 2.78566 10.2017ZM4.0972 0.00281947C4.22705 -0.00766091 4.35753 0.0111517 4.47993 0.0580007C4.60232 0.10485 4.71381 0.178656 4.80694 0.274487C4.90007 0.370319 4.97269 0.485969 5.01996 0.61371C5.06723 0.74145 5.08806 0.878339 5.08105 1.01523V1.01265C5.06571 1.36127 4.9234 1.69028 4.68365 1.93134C4.44391 2.17242 4.12517 2.30702 3.79362 2.3072L3.76707 2.30677C3.63546 2.32186 3.50354 2.30544 3.3788 2.25874C3.25407 2.21205 3.14097 2.13628 3.04797 2.0371C2.95497 1.93792 2.88447 1.8179 2.84174 1.68601C2.79934 1.55514 2.78536 1.41595 2.80082 1.27867C2.81343 0.928866 2.95678 0.598439 3.1997 0.359319C3.44286 0.119957 3.76606 -0.00849914 4.09883 0.00195941L4.0972 0.00281947Z",fill:"#344054"})]})),e.jsx("defs",{children:e.jsx("clipPath",C.__assign({id:"clip0_7146_59770"},{children:e.jsx("rect",{width:"13",height:"20",fill:"white"})}))})]}))};
|
|
2
2
|
//# sourceMappingURL=ButtonCognitiveIcon.js.map
|
package/dist/cjs/features/IL-OTJ/_components/atoms/SkeletonLoader/SkeletonLoader.module.css.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../../../../../node_modules/style-inject/dist/style-inject.es.js").default(".SkeletonLoader-module_skeleton__CznvH{animation:SkeletonLoader-module_skeleton-loading__MVHfe 1.4s ease infinite;background:linear-gradient(90deg
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../../../../../node_modules/style-inject/dist/style-inject.es.js").default(".SkeletonLoader-module_skeleton__CznvH{animation:SkeletonLoader-module_skeleton-loading__MVHfe 1.4s ease infinite;background:linear-gradient(90deg,#e0e0e0 25%,#f0f0f0 37%,#e0e0e0 63%);background-size:400% 100%;border-radius:4px;display:inline-flex;margin:0}.SkeletonLoader-module_skeleton-text__V5j2O{height:14px;width:100%}.SkeletonLoader-module_skeleton-title__goxHt{height:20px;width:60%}.SkeletonLoader-module_skeleton-avatar__Ihuh7{border-radius:50%;height:48px;width:48px}.SkeletonLoader-module_skeleton-image__ddADp{border-radius:8px;height:180px;width:100%}@keyframes SkeletonLoader-module_skeleton-loading__MVHfe{0%{background-position:100% 0}to{background-position:0 0}}"),exports.default={skeleton:"SkeletonLoader-module_skeleton__CznvH","skeleton-loading":"SkeletonLoader-module_skeleton-loading__MVHfe","skeleton-text":"SkeletonLoader-module_skeleton-text__V5j2O","skeleton-title":"SkeletonLoader-module_skeleton-title__goxHt","skeleton-avatar":"SkeletonLoader-module_skeleton-avatar__Ihuh7","skeleton-image":"SkeletonLoader-module_skeleton-image__ddADp"};
|
|
2
2
|
//# sourceMappingURL=SkeletonLoader.module.css.js.map
|
|
@@ -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"),r=require("../../_svg/CognitiveDecisioning.js"),t=require("lucide-react"),o=require("../../TooltipComponent.js"),s=require("../../ConflictingReasoningCard.js"),a=require("../../../../LearningManagement/store/useLearningTemplateStore.js"),l=i.forwardRef(function(l,c){var d=l.rows,p=void 0===d?1:d,u=l.placeholder,x=l.value,g=l.onChange,f=l.onFocus,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),r=require("../../_svg/CognitiveDecisioning.js"),t=require("lucide-react"),o=require("../../TooltipComponent.js"),s=require("../../ConflictingReasoningCard.js"),a=require("../../../../LearningManagement/store/useLearningTemplateStore.js"),l=i.forwardRef(function(l,c){var d=l.rows,p=void 0===d?1:d,u=l.placeholder,x=l.value,g=l.onChange,f=l.onFocus,h=l.isHighlighted,b=void 0!==h&&h,v=l.customClass,y=l.showNumber,_=l.numberIndex,j=l.isReadOnly,C=void 0!==j&&j,m=l.isOpen,w=void 0!==m&&m,k=l.onToggle,z=l.showCognitiveIcon,I=void 0!==z&&z,S=l.cognitiveIcon,T=l.tooltipDescription,R=l.isConflicting,D=l.conflictMsg,q=l.conflictingReasoning,E=l.decisionStrength,L=l.conflictingGap,M=l.errorMessage,F=l.inputReadOnly,O=void 0!==F&&F,H=l.citations,N=void 0===H?[]:H,A=function(){return S||n.jsx(r.default,{})},U=i.useRef(null),V=i.useCallback(function(e){e.style.height="auto",e.style.height="".concat(e.scrollHeight,"px")},[]);i.useEffect(function(){var e=function(){U.current&&V(U.current)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[V]);var W=i.useCallback(function(e){U.current=e,c&&("function"==typeof c?c(e):c.current=e),e&&V(e)},[c,V]),B=a.useLearningTemplateStore(function(e){return e.backwardCompatibility}),G=B?"37, 99, 235":"89, 37, 220",P=B?"#2563EB":"#5925DC";return n.jsxs("div",e.__assign({style:{width:"100%"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",width:"100%",border:"1px solid ".concat(R||M?"#ef4444":b?P:"#ccc"),borderRadius:"0.5rem",backgroundColor:C?"#f9fafb":"white",opacity:C?.8:1,cursor:C?"not-allowed":"text",pointerEvents:"auto",transition:"all 0.3s ease-in-out",overflow:"hidden",boxShadow:R&&b?"0 0 20px 3px rgba(239, 68, 68, 0.45)":b?"\n 0 0 12px 3px rgba(".concat(G,", 0.3),\n -6px 0 10px rgba(").concat(G,", 0.2),\n 6px 0 10px rgba(").concat(G,", 0.2)\n "):"none"},onMouseEnter:function(e){b||R||C||(e.currentTarget.style.border="1px solid black"),C&&(e.currentTarget.style.cursor="not-allowed")},onMouseLeave:function(e){b||R||C||(e.currentTarget.style.border="1px solid #ccc")}},{children:[n.jsx("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:R&&D&&n.jsx("div",e.__assign({style:{padding:"12px 12px 0 12px"}},{children:n.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",gap:"6px",backgroundColor:"#FFE9E980",padding:"4px 10px",borderRadius:"16px",color:"#b91c1c",fontSize:"12px",fontWeight:500}},{children:[n.jsx(t.AlertTriangle,{size:14,strokeWidth:2}),D]}))}))})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start"}},{children:[y&&void 0!==_&&n.jsxs("span",e.__assign({style:{fontSize:"14px",padding:"12px 0",width:"40px",textAlign:"center",color:"#666"}},{children:[_,"."]})),n.jsx("textarea",{ref:W,rows:p,placeholder:u,className:"textarea ".concat(v),value:x,onChange:g,onFocus:f,readOnly:O,style:{border:"none",background:"transparent",flex:1,padding:"12px 12px 12px 12px",fontFamily:"inherit",fontSize:"14px",color:"#101828",resize:"both",width:"100%",boxSizing:"border-box",maxHeight:"200px",overflowY:"auto",outline:"none",display:"block",margin:"0 auto",alignSelf:"center",cursor:O?"default":"text"},onInput:function(e){return V(e.target)}}),R&&q&&n.jsx(o.default,e.__assign({description:"View Conflict Details"},{children:n.jsxs("button",e.__assign({onClick:function(e){e.preventDefault(),null==k||k()},style:{display:"flex",alignItems:"center",gap:"4px",padding:"4px 8px",border:"none",backgroundColor:"transparent",borderRadius:"4px",margin:"8px",cursor:"pointer",flexShrink:0}},{children:[A(),w?n.jsx(t.ChevronUpIcon,{size:14}):n.jsx(t.ChevronDownIcon,{size:14})]}))})),I&&!R&&n.jsx(o.default,e.__assign({description:null!=T?T:""},{children:n.jsxs("button",e.__assign({onClick:function(e){e.preventDefault(),null==k||k()},style:{display:"flex",alignItems:"center",gap:"4px",padding:"4px 8px",border:"none",backgroundColor:"transparent",borderRadius:"4px",margin:"8px",cursor:"pointer",flexShrink:0}},{children:[A(),w?n.jsx(t.ChevronUpIcon,{size:14}):n.jsx(t.ChevronDownIcon,{size:14})]}))}))]}))]})),R&&w&&n.jsx("div",e.__assign({style:{marginTop:"8px"}},{children:n.jsx(s.ConflictReasoningCard,{isVisible:!0,decisionStrength:E,reasoning:q,gap:L,citations:N})})),M&&n.jsx("div",e.__assign({style:{color:"#ef4444",fontSize:"12px",marginTop:"4px"}},{children:M}))]}))});l.displayName="Textarea",exports.Textarea=l;
|
|
2
2
|
//# sourceMappingURL=Textarea.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),i=require("react/jsx-runtime"),t=require("lucide-react"),e=require("react"),o=require("../../atoms/Button/Button.js"),s=require("../../atoms/Textarea/Textarea.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),i=require("react/jsx-runtime"),t=require("lucide-react"),e=require("react"),o=require("../../atoms/Button/Button.js"),s=require("../../atoms/Textarea/Textarea.js"),a=require("../../InputDataReasoningCard.js"),c=require("../../TooltipComponent.js"),r=require("../../_svg/ButtonCognitiveIcon.js"),l=require("../../../../LearningManagement/store/useLearningTemplateStore.js"),d=function(n){return!!n&&/[a-z0-9À-]/i.test(n)};exports.ConditionList=function(u){var g=u.idPrefix,f=u.items,v=u.onAdd,x=u.onRemove,p=u.onEdit,_=u.index,h=u.tierKey,m=u.readOnly,j=void 0!==m&&m,y=u.placeholder,b=void 0===y?"Enter your condition":y,C=u.addLabel,S=void 0===C?"Add Condition":C,N=u.showAddButton,w=void 0===N||N;u.isHighlighted;var E=u.highlightedIds;u.footer;var I=u.tooltipDescription,T=u.citations,k=void 0===T?[]:T,A=u.setSendMessageInChat,z=u.fieldName,B=u.isAiStreaming,R=void 0!==B&&B,q=u.activeEditId,D=u.setActiveEditId,M=u.pendingEditId;u.setPendingEditId;var L=u.errorMessage,O=u.hideEditControls,P=void 0!==O&&O,H=u.parentEditing,W=void 0!==H&&H,F=l.useLearningTemplateStore(function(n){return n.backwardCompatibility}),K=F?"#2563EB":"#5925DC",V=e.useState({}),G=V[0],U=V[1],X=e.useState(null),J=X[0],Q=X[1],Y=e.useState(null),Z=Y[0],$=Y[1],nn=e.useState(null),tn=nn[0],en=nn[1],on=e.useRef(R),sn=e.useRef(new Map),an=e.useRef(f);e.useEffect(function(){on.current&&!R&&null!==tn&&en(null),on.current=R},[R,tn]);e.useEffect(function(){var i=an.current,t=f.filter(function(n){return!i.find(function(i){return i.id===n.id})});if(P)return an.current=f,void(t.length>0&&Q(t[t.length-1].id));if(t.length>0){var e=t[t.length-1],o="".concat(g,"-").concat(h,"-").concat(_,"-").concat(e.id);e.text&&""!==e.text.trim()||(D&&D(o),U(function(i){var t;return n.__assign(n.__assign({},i),((t={})[e.id]="",t))}),Q(e.id))}an.current=f},[f,h,_,D,g,P]),e.useEffect(function(){if(J){var n=sn.current.get(J);if(n){n.focus();var i=n.value.length;n.setSelectionRange(i,i)}Q(null)}},[J,f]);var cn=e.useCallback(function(n){n&&(n.style.height="auto",n.style.height="".concat(n.scrollHeight,"px"))},[]),rn=Object.values(G).some(function(n){return!n||""===n.trim()}),ln=f.some(function(n){var i,t,e=G[n.id];return void 0!==e&&e.trim()===(null!==(t=null===(i=n.text)||void 0===i?void 0:i.trim())&&void 0!==t?t:"")}),dn=f.filter(function(n){return n.text&&""!==n.text.trim()}),un=new Set(dn.map(function(n){return n.text.trim()})).size!==dn.length,gn=P?!W||R||un||f.some(function(n){return!d(n.text)}):rn||un||null!==q||R,fn=rn||un||R||ln;return i.jsxs("div",n.__assign({className:"condition-wrapper"},{children:[f.map(function(e,l){var d,u,v,m,y,C,S,N;if(e.id===tn&&R)return null;var w="".concat(g,"-").concat(h,"-").concat(_,"-").concat(e.id),T=e.id in G,B=null!==q&&q!==w,L=(null==E?void 0:E.has(e.id))&&!R,O=!!e.conflict,H=(null===(d=e.conflict)||void 0===d?void 0:d.reason)||(O?"Conflicting":null),F=Array.isArray(null===(u=e.conflict)||void 0===u?void 0:u.conflicting_reasoning)?e.conflict.conflicting_reasoning.map(function(n){return"- ".concat(n)}).join("\n"):(null===(v=e.conflict)||void 0===v?void 0:v.conflicting_reasoning)||null,K=(null===(m=e.conflict)||void 0===m?void 0:m.decision_strength)||null,V=Array.isArray(null===(y=e.conflict)||void 0===y?void 0:y.conflicting_gap)?e.conflict.conflicting_gap.map(function(n){return"- ".concat(n)}).join("\n"):(null===(C=e.conflict)||void 0===C?void 0:C.conflicting_gap)||null,X=!!e.reasoning,J=Z===e.id,Y=P?null!==(S=e.text)&&void 0!==S?S:"":T?null!==(N=G[e.id])&&void 0!==N?N:"":e.text,nn=P?j||R||!W:j||R||!T;return i.jsxs("div",n.__assign({className:"condition-row-container","data-edit-id":w,style:{marginBottom:X&&J?"16px":"8px"}},{children:[i.jsxs("div",n.__assign({className:"condition-item ".concat(O?"border-red-500":""," ").concat(T?"is-editing":""),style:{pointerEvents:"auto"}},{children:[i.jsx("div",n.__assign({className:"condition-left"},{children:i.jsx(s.Textarea,{ref:function(n){n?(sn.current.set(e.id,n),cn(n)):sn.current.delete(e.id)},rows:1,placeholder:b,value:Y,onChange:function(i){P?W&&p(h,_,e.id,i.target.value):T&&U(function(t){var o;return n.__assign(n.__assign({},t),((o={})[e.id]=i.target.value,o))})},showNumber:!0,numberIndex:l+1,isReadOnly:j||R,inputReadOnly:nn,isOpen:J&&!T,onToggle:function(){return n=e.id,void $(function(i){return i===n?null:n});var n},showCognitiveIcon:X&&!T&&!O,cognitiveIcon:i.jsx(r.ButtonCognitiveIcon,{}),tooltipDescription:I,isConflicting:O,conflictMsg:H,conflictingReasoning:F,isHighlighted:L,decisionStrength:K,conflictingGap:V,citations:k})})),!j&&P&&W&&i.jsx("div",n.__assign({className:"action-buttons"},{children:i.jsx(c.default,n.__assign({description:"Delete this condition"},{children:i.jsx(o.Button,{onClick:function(){return x(h,_,e.id)},className:"btn-icon btn-delete",icon:i.jsx(t.Trash2,{size:18}),disabled:R})}))})),!j&&!P&&i.jsx("div",n.__assign({className:"action-buttons"},{children:T?i.jsx("div",n.__assign({className:"action-buttons-inline"},{children:i.jsxs(i.Fragment,{children:[i.jsx(c.default,n.__assign({description:"Apply"},{children:i.jsx(o.Button,n.__assign({onClick:function(){return function(i){var t,e,o,s=null!==(t=G[i.id])&&void 0!==t?t:"";if(s.trim()&&!f.some(function(n){return n.id!==i.id&&n.text.trim()===s.trim()})){var a=null!==(o=null===(e=i.text)||void 0===e?void 0:e.trim())&&void 0!==o?o:"";if(s.trim()===a)return U(function(t){var e=n.__assign({},t);return delete e[i.id],e}),void(D&&D(null));var c=!a;if(A){var r="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),l="string"==typeof z&&""!==z.trim()?z:"field",d=c?"Add a new ".concat(l," condition: ").concat(s):"Update existing ".concat(l," condition: ").concat(a," with a new condition: ").concat(s);en(i.id),A("__SKELETON__:".concat(r,":").concat(d))}U(function(t){var e=n.__assign({},t);return delete e[i.id],e}),D&&D(null)}}(e)},disabled:fn,className:"btn-apply",style:{cursor:fn?"not-allowed":"pointer",opacity:fn?.5:1},icon:i.jsx(t.Check,{size:20,strokeWidth:2.5})},{children:"Apply"}))})),i.jsx(c.default,n.__assign({description:"Cancel"},{children:i.jsx(o.Button,{onClick:function(){return function(i){var t=""===i.text||void 0===i.text;U(function(t){var e=n.__assign({},t);return delete e[i.id],e}),D&&D(null),t&&x(h,_,i.id)}(e)},className:"btn-cancel-inline",icon:i.jsx(t.X,{size:20,strokeWidth:2.5})})}))]})})):i.jsxs("div",n.__assign({className:"action-buttons"},{children:[i.jsx(c.default,n.__assign({description:B?"Save active edits first":"Edit this condition"},{children:i.jsx(o.Button,{onClick:function(){return function(i){var t="".concat(g,"-").concat(h,"-").concat(_,"-").concat(i.id);q&&q!==t||(D&&D(t),U(function(t){var e;return n.__assign(n.__assign({},t),((e={})[i.id]=i.text,e))}),Q(i.id))}(e)},className:"btn-icon btn-edit",icon:i.jsx(t.Pencil,{size:18}),disabled:R||B})})),i.jsx(c.default,n.__assign({description:B?"Save active edits first":"Delete this condition"},{children:i.jsx(o.Button,{onClick:function(){return function(i){var t,e="".concat(g,"-").concat(h,"-").concat(_,"-").concat(i.id);if(q===e&&D&&D(null),U(function(t){var e=n.__assign({},t);return delete e[i.id],e}),null===(t=i.text)||void 0===t?void 0:t.trim()){if(A){var o="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),s="string"==typeof z&&""!==z.trim()?z:"field";en(i.id),A("__SKELETON__:".concat(o,":Remove ").concat(s," ").concat(i.text))}}else x(h,_,i.id)}(e)},className:"btn-icon btn-delete",icon:i.jsx(t.Trash2,{size:18}),disabled:R||B})}))]}))}))]})),M===w&&T&&i.jsxs("div",n.__assign({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[i.jsx(t.AlertTriangle,{size:14,style:{color:"#C2410C"}}),i.jsx("div",n.__assign({style:{color:"#C2410C",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]})),X&&!O&&i.jsx("div",n.__assign({style:{maxHeight:J?"1000px":"0",overflow:"hidden",transition:"all 0.3s ease-in-out",marginTop:J?"1.5px":"0"}},{children:i.jsx(a.InputDataReasoningCard,{isVisible:J,citation:e.reasoning,citations:k,fieldName:"Condition ".concat(l+1),fieldValue:e.text})}))]}),e.id)}),null!==tn&&R&&i.jsxs(i.Fragment,{children:[i.jsx("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "}),i.jsxs("div",n.__assign({style:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"4px 0 12px 12px",color:"#141414ff",fontSize:"13px",fontWeight:500,fontStyle:"italic"}},{children:[i.jsx(t.Loader2Icon,{style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Checking the correctness of your updated condition..."]}))]}),0===f.length&&i.jsx("div",n.__assign({style:{display:"flex",alignItems:"center",color:"#bbb",fontFamily:"Inter",fontWeight:400,fontSize:"14px",fontStyle:"italic",lineHeight:"130%",height:"40px",marginBottom:"8px"}},{children:"No items to show"})),L&&i.jsx("div",n.__assign({style:{color:"#ef4444",fontSize:"12px",marginTop:"4px"}},{children:L})),w&&!j&&i.jsxs("div",n.__assign({className:"condition-add ".concat(gn?"disabled":""),onClick:function(){return!gn&&v()},role:"button",style:n.__assign({opacity:gn?.5:1,cursor:gn?"not-allowed":"pointer"},F?{}:{color:K})},{children:[i.jsx(t.Plus,{size:20,className:"condition-add-icon"}),i.jsx("span",n.__assign({className:"condition-add-text"},{children:S}))]}))]}))},exports.hasMeaningfulText=d;
|
|
2
2
|
//# sourceMappingURL=ConditionList.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),i=require("lucide-react"),t=require("react");exports.SectionWrapper=function(n){var r=n.id,a=n.required,l=n.title,c=n.subtitle,o=n.children,d=n.openSections,p=n.setOpenSections;n.dividerRequired;var u=n.defaultOpen,x=void 0===u||u,g=n.collapsible,h=void 0!==g&&g,v=n.bordered,_=void 0!==v&&v,f=n.customStyles,y=n.readOnly,m=n.headerActions,j=t.useState(x),b=j[0],S=j[1],q=void 0!==d&&void 0!==p&&d.has(r),w=!h||(q?d.has(r):b),C=t.useCallback(function(){h&&(q?p(function(e){var s=new Set(e);return s.has(r)?s.delete(r):s.add(r),s}):S(function(e){return!e}))},[r,p,h,q]),I=_?{border:"1px solid #ccc",padding:"8px 12px",borderRadius:"8px"}:{};return s.jsxs("div",e.__assign({className:"section-wrapper",style:I},{children:[s.jsxs("div",e.__assign({className:"section-header",onClick:C,role:h?"button":"presentation",style:{cursor:h?"pointer":"default",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"4px"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"}},{children:[s.jsxs("div",e.__assign({className:"section-header-title ".concat(w?"active":""),style:{display:"flex",alignItems:"center",gap:"1.5px"}},{children:[a&&s.jsx("span",e.__assign({style:{color:"#8F2C23",marginRight:"2px"}},{children:"*"})),s.jsx("span",e.__assign({style:{cursor:y?"not-allowed":"pointer"}},{children:l}))]})),s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"},onClick:function(e){return e.stopPropagation()}},{children:[m,h&&s.jsx(i.ChevronDown,{size:24,className:"section-chevron ".concat(w?"open":"")})]}))]})),c&&s.jsx("div",e.__assign({style:{fontFamily:"Inter",fontWeight:400,fontSize:"12px",lineHeight:"130%",color:"#64748B",marginLeft:"0px"}},{children:c}))]})),w&&s.jsx(s.Fragment,{children:s.jsx("div",e.__assign({className:"section-content",style:f},{children:o}))})]}))};
|
|
2
2
|
//# sourceMappingURL=SectionWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react/jsx-runtime"),i=require("../../molecules/Sections/SectionWrapper.js"),t=require("../../molecules/SeperationRow/SeparationRow.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react/jsx-runtime"),i=require("../../molecules/Sections/SectionWrapper.js"),t=require("../../molecules/SeperationRow/SeparationRow.js"),s=require("../../atoms/Toggle/Toggle.js"),a=require("lucide-react"),o=require("react");exports.ConfigSection=function(r){var l=r.separationItems,c=void 0===l?[]:l,d=r.toggles,g=void 0===d?[]:d;r.onConfigChange;var u=r.highlights,p=void 0===u?{}:u,f=r.index,_=r.openSections,x=r.readOnly,b=void 0!==x&&x,h=r.setOpenSections,m=r.activeEditId,y=r.setActiveEditId,v=r.pendingEditId,j=r.setPendingEditId,S=r.isAiStreaming,C=r.setSendMessageInChat,k=r.id,I=n.__rest(r,["separationItems","toggles","onConfigChange","highlights","index","openSections","readOnly","setOpenSections","activeEditId","setActiveEditId","pendingEditId","setPendingEditId","isAiStreaming","setSendMessageInChat","id"]),E=k||"config-section-".concat(null!=f?f:0),w=m===E,T=!!m&&m!==E,z=o.useState(null),O=z[0],q=z[1],A=o.useState(null),R=A[0],D=A[1],P=o.useState(!1),W=P[0],N=P[1],M=o.useRef(S),L="\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n ";o.useEffect(function(){M.current&&!S&&W&&N(!1),M.current=S},[S,W]);var F,H,K=b||!w||W,U=e.jsxs("div",n.__assign({style:{display:"flex",alignItems:"center"}},{children:[!b&&!w&&!W&&e.jsx("button",n.__assign({title:T?"Save active edits first":"Edit Configuration",onClick:function(e){e.stopPropagation(),T?j&&j(null!=m?m:null):(q(c.map(function(e){return n.__assign({},e)})),D(g.map(function(e){return n.__assign({},e)})),y&&y(E),h&&_&&!_.has(E)&&h(function(n){var e=new Set(n);return e.add(E),e}))},style:n.__assign(n.__assign({},{display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 8px",border:"1px solid #e5e7eb",borderRadius:"8px",cursor:"pointer",backgroundColor:"#ffffff",color:"#6b7280"}),{opacity:T?.5:1,cursor:T?"not-allowed":"pointer",border:"none",background:"transparent"})},{children:e.jsx(a.Pencil,{size:16})})),W&&S&&e.jsxs(e.Fragment,{children:[e.jsx("style",{children:L}),e.jsx(a.Loader2Icon,{size:16,style:{animation:"spin 1s linear infinite",color:"#6b7280"}})]})]})),B=(F=O?O.filter(function(n,e){var i=c[e];return!i||n.enabled!==i.enabled||n.global_min_separation_seconds!==i.global_min_separation_seconds}):[],H=R?R.filter(function(n,e){var i=g[e];return!i||n.enabled!==i.enabled}):[],0===F.length&&0===H.length);return e.jsx("div",n.__assign({"data-edit-id":E},{children:e.jsxs(i.SectionWrapper,n.__assign({},I,{id:E,collapsible:!0,defaultOpen:!1,openSections:_,setOpenSections:h,headerActions:U},{children:[e.jsxs("div",n.__assign({className:"config-content-grid",style:{opacity:K&&!b?.6:1,transition:"opacity 0.2s"}},{children:[(O||c).map(function(i,s){return e.jsx(t.SeparationRow,{label:"".concat(i.label," Separation"),isEnabled:i.enabled,duration:i.global_min_separation_seconds,onToggle:function(){return function(e){w&&!W&&q(function(i){return i?i.map(function(i){return i.key===e.key?n.__assign(n.__assign({},i),{enabled:!i.enabled}):i}):null})}(i)},onDurationChange:function(e){return function(e,i){w&&!W&&q(function(t){return t?t.map(function(t){return t.key===e.key?n.__assign(n.__assign({},t),{global_min_separation_seconds:i}):t}):null})}(i,e)},isHighlighted:p["config_".concat(i.key)],isDisabled:K},i.key)}),(R||g).map(function(i,t){return e.jsx("div",n.__assign({className:"separation-row-container"},{children:e.jsxs("div",n.__assign({className:"separation-header-row"},{children:[e.jsx("div",n.__assign({className:"separation-label"},{children:i.label})),e.jsx(s.Toggle,{isEnabled:i.enabled,onToggle:function(){return function(e){w&&!W&&D(function(i){return i?i.map(function(i){return i.key===e.key?n.__assign(n.__assign({},i),{enabled:!i.enabled}):i}):null})}(i)},isDisabled:K})]}))}),i.key)})]})),W&&S&&e.jsxs(e.Fragment,{children:[e.jsx("style",{children:L}),e.jsxs("div",n.__assign({style:{display:"flex",alignItems:"center",padding:"4px 0 12px 12px",color:"#141414ff",fontSize:"13px",fontWeight:500,fontStyle:"italic",marginTop:"8px"}},{children:[e.jsx(a.Loader2Icon,{style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Checking the correctness of your Configuration..."]}))]}),w&&!W&&e.jsxs("div",n.__assign({style:{display:"flex",flexDirection:"column",marginTop:"12px"}},{children:[e.jsxs("div",n.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[e.jsx("button",n.__assign({onClick:function(){q(null),D(null),y&&y(null)},style:{background:"none",border:"none",color:"#6b7280",fontSize:"14px",fontWeight:"500",cursor:"pointer",padding:"0"}},{children:"Discard Changes"})),e.jsxs("button",n.__assign({onClick:function(){if(O&&R){var n=O.filter(function(n,e){var i=c[e];return!i||n.enabled!==i.enabled||n.global_min_separation_seconds!==i.global_min_separation_seconds}),e=R.filter(function(n,e){var i=g[e];return!i||n.enabled!==i.enabled});if(0===n.length&&0===e.length)return q(null),D(null),void(y&&y(null));if(C){var i="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),t=[];n.length>0&&t.push("Enable ".concat(n.map(function(n){return"".concat(n.label," (").concat(n.global_min_separation_seconds,"min)")}).join(", "))),e.length>0&&t.push("enable ".concat(e.map(function(n){return"".concat(n.label," (").concat(n.enabled,")")}).join(", ")));var s="__SKELETON__:".concat(i,":Update Configuration - ").concat(t.join("; "));C(s)}N(!0),q(null),D(null),y&&y(null)}else y&&y(null)},disabled:B,style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderRadius:"12px",border:"none",backgroundColor:"#2563eb",color:"#ffffff",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",cursor:B?"not-allowed":"pointer",opacity:B?.5:1}},{children:[e.jsx(a.Check,{size:18,strokeWidth:2.5,color:"#ffffff"}),"Save Changes"]}))]})),v===E&&e.jsxs("div",n.__assign({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[e.jsx(a.AlertTriangle,{size:14,style:{color:"#C2410C"}}),e.jsx("div",n.__assign({style:{color:"#C2410C",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]}))]}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=ConfigSection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("../../molecules/Sections/SectionWrapper.js"),n=require("../../_svg/CognitiveDecisioning.js"),o=require("lucide-react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("../../molecules/Sections/SectionWrapper.js"),n=require("../../_svg/CognitiveDecisioning.js"),o=require("lucide-react"),t=require("../../TooltipComponent.js");exports.ScopeSection=function(r){var l=r.id,a=r.title,c=void 0===a?"Scope":a,d=r.required,p=void 0!==d&&d,g=r.openSections,x=r.setOpenSections,h=r.scopeData,u=r.onScopeChange;r.stationOptions;var v=r.tierOptions,_=void 0===v?[]:v;r.stationLabel;var b=r.tierLabel,y=void 0===b?"Where should this rule apply?":b,j=r.highlights,f=void 0===j?{}:j,m=r.isOpen,S=r.onToggle,C=r.showCognitiveIcon,O=r.cognitiveIcon,w=r.tooltipDescription,I=r.errorMessage,k=r.stationErrorMessage,q=r.tierErrorMessage,z=e.__rest(r,["id","title","required","openSections","setOpenSections","scopeData","onScopeChange","stationOptions","tierOptions","stationLabel","tierLabel","highlights","isOpen","onToggle","showCognitiveIcon","cognitiveIcon","tooltipDescription","errorMessage","stationErrorMessage","tierErrorMessage"]);return i.jsx(s.SectionWrapper,e.__assign({id:l,title:c,required:p,openSections:g,setOpenSections:x},z,{children:i.jsxs("div",e.__assign({className:"scope-content"},{children:[_.length>0&&i.jsxs("div",e.__assign({className:"form-group"},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px",marginBottom:"4px"}},{children:[i.jsx("span",e.__assign({style:{color:"#8F2C23",lineHeight:1}},{children:"*"})),i.jsx("label",e.__assign({className:(null==z?void 0:z.readOnly)?"readOnly":"form-label",style:{margin:0}},{children:y}))]})),i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px",flexWrap:"wrap"}},{children:[i.jsx("div",e.__assign({className:"checkbox-group",style:{display:"flex",gap:"16px"}},{children:_.map(function(s){var n,o,t=f["scope_".concat(s)],r="tier-".concat(l,"-").concat(s.replace(/\s+/g,"-").toLowerCase());return i.jsxs("div",e.__assign({className:"checkbox-item",style:{display:"flex",alignItems:"center",gap:"6px",position:"relative"}},{children:[i.jsx("input",{type:"radio",name:"scope-tiers-".concat(l),id:r,checked:null===(n=h.tiers)||void 0===n?void 0:n.includes(s),onChange:function(){u("tiers",[s])},disabled:(null==z?void 0:z.readOnly)||!1,style:{position:"absolute",opacity:0,cursor:"pointer",width:"16px",height:"16px",zIndex:1}}),i.jsx("div",e.__assign({style:{width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease",boxShadow:t?"0 0 14px 4px rgba(37, 99, 235, 0.35)":"none",borderRadius:"50%"}},{children:(null===(o=h.tiers)||void 0===o?void 0:o.includes(s))?i.jsx("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:"5px solid #2563EB",backgroundColor:"white",boxSizing:"border-box"}}):i.jsx("div",{style:{width:"16px",height:"16px",border:"1px solid #64748B",borderRadius:"50%",backgroundColor:"white",boxSizing:"border-box"}})})),i.jsx("label",e.__assign({style:{color:(null==z?void 0:z.readOnly)?"#9CA3AF":void 0,cursor:(null==z?void 0:z.readOnly)?"not-allowed":"pointer",margin:0,fontSize:"14px"},htmlFor:r},{children:s}))]}),r)})})),i.jsx("div",e.__assign({style:{width:"fit-content"}},{children:i.jsx(t.default,e.__assign({description:null!=w?w:""},{children:C&&i.jsxs("button",e.__assign({onClick:function(e){e.preventDefault(),null==S||S()},style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px",padding:"2px 6px ",flexShrink:0,border:"none",backgroundColor:"transparent",borderRadius:"4px",cursor:"pointer",outline:"none",maxWidth:"fit-content",transition:"background-color 0.2s ease",marginTop:"6px",marginLeft:"6px"}},{children:[O||i.jsx(n.default,{}),m?i.jsx(o.ChevronUpIcon,{size:16}):i.jsx(o.ChevronDownIcon,{size:16})]}))}))}))]})),q&&i.jsx("div",e.__assign({style:{color:"#ef4444",fontSize:"12px",marginTop:"4px"}},{children:q}))]})),I&&!k&&!q&&i.jsx("div",e.__assign({style:{color:"#ef4444",fontSize:"12px",marginTop:"4px"}},{children:I}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=ScopeSection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("../../molecules/Sections/SectionWrapper.js"),n=require("../../atoms/Textarea/Textarea.js"),s=require("../../_svg/ButtonCognitiveIcon.js"),r=require("react"),l=require("lucide-react");exports.TextSection=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("../../molecules/Sections/SectionWrapper.js"),n=require("../../atoms/Textarea/Textarea.js"),s=require("../../_svg/ButtonCognitiveIcon.js"),r=require("react"),l=require("lucide-react");exports.TextSection=function(o){var a=o.rows,d=o.value,c=o.errorMessage,g=o.onChange,p=o.placeholder,u=o.title,x=o.subtitle,h=o.isHighlighted,f=o.isOpen,_=o.readOnly,y=o.showCognitiveIcon,m=o.onToggle,v=o.tooltipDescription,j=o.enableInlineEdit,C=o.setSendMessageInChat,I=o.isAiStreaming,b=o.fieldName,w=o.id,E=o.activeEditId,S=o.setActiveEditId,T=o.pendingEditId;o.setPendingEditId;var k=e.__rest(o,["rows","value","errorMessage","onChange","placeholder","title","subtitle","isHighlighted","isOpen","readOnly","showCognitiveIcon","onToggle","tooltipDescription","enableInlineEdit","setSendMessageInChat","isAiStreaming","fieldName","id","activeEditId","setActiveEditId","pendingEditId","setPendingEditId"]),O=r.useState(null),A=O[0],q=O[1],M=r.useState(!1),z=M[0],D=M[1],R=r.useRef(I);r.useEffect(function(){R.current&&!I&&z&&D(!1),R.current=I},[I,z]);var W=null!==A,P=!!E&&E!==w&&j,N=(null==A?void 0:A.trim())||"",B=N===((null==d?void 0:d.trim())||"")||null!==A&&""===N,H=_||I||j&&!W,F=i.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"}},{children:i.jsx("span",{children:u})})),L={display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",border:"1px solid #e5e7eb",borderRadius:"8px",cursor:"pointer",width:"36px",height:"36px",backgroundColor:"#ffffff"},K={cursor:B?"not-allowed":"pointer",opacity:B?.5:1};return i.jsxs(t.SectionWrapper,e.__assign({},k,{readOnly:_,title:F,subtitle:x,customStyles:{margin:"0 0.2rem 0.2rem 0.2rem"}},{children:[i.jsxs("div",e.__assign({className:"textarea-wrapper",style:{display:"flex",alignItems:"flex-start",gap:"8px",width:"100%"},"data-edit-id":w},{children:[i.jsx("div",e.__assign({style:{flex:1,minWidth:0}},{children:i.jsx(n.Textarea,{cognitiveIcon:i.jsx(s.ButtonCognitiveIcon,{}),rows:a,placeholder:p,value:W?A:d,onChange:function(e){W?q(e.target.value):g&&g(e.target.value)},isHighlighted:h,isOpen:f,isReadOnly:_||I,inputReadOnly:H,onToggle:m,showCognitiveIcon:y,tooltipDescription:v,errorMessage:c})})),j&&!_&&i.jsx("div",e.__assign({style:{display:"flex",flexDirection:"row",gap:"8px",marginTop:"0px"}},{children:W?i.jsxs(i.Fragment,{children:[i.jsxs("button",e.__assign({title:"Apply",onClick:function(){if(null!==A){if(A===(null!=d?d:""))return q(null),void(S&&S(null));if(C){var e="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),i=b||"Description",t=A&&""!==A.trim()?"Update ".concat(i," with ").concat(A):"Remove ".concat(i);D(!0),C("__SKELETON__:".concat(e,":").concat(t))}q(null),S&&S(null)}},disabled:B,style:e.__assign(e.__assign(e.__assign({},L),K),{backgroundColor:"#2563EB",color:"white",width:"auto",padding:"8px 12px"})},{children:[i.jsx(l.Check,{size:20,strokeWidth:2.5})," Apply"]})),i.jsx("button",e.__assign({title:"Cancel",onClick:function(){q(null),S&&S(null)},style:e.__assign(e.__assign({},L),{borderColor:"#E3E8E9",color:"#dc2626"})},{children:i.jsx(l.X,{size:20,strokeWidth:2.5})}))]}):i.jsx("button",e.__assign({title:P?"Save active edits first":"Edit",onClick:function(){E&&E!==w||(S&&S(w),q(null!=d?d:""))},disabled:I||P,style:e.__assign(e.__assign({},L),{color:"#6b7280",cursor:I||P?"not-allowed":"pointer",opacity:I||P?.5:1})},{children:i.jsx(l.Pencil,{size:20})}))}))]})),T===w&&W&&i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[i.jsx(l.AlertTriangle,{size:14,style:{color:"#C2410C"}}),i.jsx("div",e.__assign({style:{color:"#C2410C",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]})),z&&I&&j&&i.jsxs(i.Fragment,{children:[i.jsx("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "}),i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"4px 0 12px 12px",color:"#141414ff",fontSize:"13px",fontWeight:500,fontStyle:"italic",marginTop:"8px"}},{children:[i.jsx(l.Loader2Icon,{style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Checking the correctness of your ",b||"description","..."]}))]})]}))};
|
|
2
2
|
//# sourceMappingURL=TextSection.js.map
|