@e-llm-studio/instant-learning 1.3.0-alpha.10 → 1.3.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js +2 -0
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/CreateRuleSetLegacyModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +2 -0
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
- package/dist/cjs/features/LearningManagement/store/usePermissionsStore.js +1 -1
- package/dist/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js +2 -0
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js.map +1 -0
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js +1 -1
- package/dist/features/LearningManagement/components/CreateRuleSetLegacyModal.js +1 -1
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +2 -0
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +1 -0
- package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
- package/dist/features/LearningManagement/store/usePermissionsStore.js +1 -1
- package/dist/types/src/AccordianHeadTest.d.ts +1 -2
- package/dist/types/src/AccordianHeadTest.d.ts.map +1 -1
- package/dist/types/src/App.d.ts +1 -2
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/CommonComponents/AccordianHead/AccordianHead.d.ts +1 -1
- package/dist/types/src/CommonComponents/AccordianHead/AccordianHead.d.ts.map +1 -1
- package/dist/types/src/CommonComponents/GradientSparkleIcon.d.ts +1 -2
- package/dist/types/src/CommonComponents/GradientSparkleIcon.d.ts.map +1 -1
- package/dist/types/src/CommonComponents/HelloWorld.d.ts +1 -1
- package/dist/types/src/CommonComponents/HelloWorld.d.ts.map +1 -1
- package/dist/types/src/CommonComponents/NoTableData.d.ts +1 -1
- package/dist/types/src/CommonComponents/NoTableData.d.ts.map +1 -1
- package/dist/types/src/CommonComponents/Spinner.d.ts +1 -2
- package/dist/types/src/CommonComponents/Spinner.d.ts.map +1 -1
- package/dist/types/src/GoogleFilePickerDemo.d.ts +1 -2
- package/dist/types/src/GoogleFilePickerDemo.d.ts.map +1 -1
- package/dist/types/src/ThinkingBulbIconComponent.d.ts +1 -2
- package/dist/types/src/ThinkingBulbIconComponent.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/DataSelector.d.ts +1 -1
- package/dist/types/src/features/DataSelector/DataSelector.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +1 -1
- package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +1 -1
- package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +1 -1
- package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts +1 -1
- package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +1 -2
- package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts +1 -2
- package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts +1 -1
- package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +1 -1
- package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +1 -1
- package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts +1 -2
- package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/src/features/DocumentLearning/_components/MessageRendering.d.ts +1 -2
- package/dist/types/src/features/DocumentLearning/_components/MessageRendering.d.ts.map +1 -1
- package/dist/types/src/features/DocumentLearning/_components/MinimizedThinkingSteps.d.ts +1 -2
- package/dist/types/src/features/DocumentLearning/_components/MinimizedThinkingSteps.d.ts.map +1 -1
- package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowDown.d.ts +1 -2
- package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowDown.d.ts.map +1 -1
- package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowIconBlue.d.ts +1 -2
- package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowIconBlue.d.ts.map +1 -1
- package/dist/types/src/features/DocumentLearning/_components/_svg/CompleteIconGreen.d.ts +1 -2
- package/dist/types/src/features/DocumentLearning/_components/_svg/CompleteIconGreen.d.ts.map +1 -1
- package/dist/types/src/features/DocumentLearning/_components/_svg/NewChatIcon.d.ts +1 -2
- package/dist/types/src/features/DocumentLearning/_components/_svg/NewChatIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +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 +1 -2
- package/dist/types/src/features/IL-OTJ/_components/AccordianSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatHeader.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatHeader.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ConflictingReasoningCard.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ConflictingReasoningCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CriticalGaps.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/CriticalGaps.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/GapExplanationAccordion.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/GapExplanationAccordion.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts +3 -3
- 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 +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 +3 -3
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MinimizedThinkingSteps.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/MinimizedThinkingSteps.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ViewFormUpdateCard.d.ts +1 -2
- 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 +1 -2
- package/dist/types/src/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/StepDetailView.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/StepDetailView.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.d.ts +9 -9
- package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ArrowDown.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/ArrowDown.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ArrowIconBlue.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/ArrowIconBlue.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/BookIcon.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/BookIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronDown.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronDown.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronIcon.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronUp.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronUp.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/CompleteIconGreen.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/CompleteIconGreen.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/GapIcon.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/GapIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/InfoIcon.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/InfoIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/LeftAndRightArrow.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/LeftAndRightArrow.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/Lightbulb.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/Lightbulb.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/NewChatIcon.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/NewChatIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/PencilEdit.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/PencilEdit.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/RadioButton.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/RadioButton.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/RightSideIcons.d.ts +8 -9
- package/dist/types/src/features/IL-OTJ/_components/_svg/RightSideIcons.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/ScrollToBottom.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/ScrollToBottom.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/SendButton.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/SendButton.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/SparkleIcon.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/SparkleIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/TickIcon.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/TickIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/UserIcon.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/UserIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/WarningIcon.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/WarningIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Button/Button.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Button/Button.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Toggle/Toggle.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/atoms/Toggle/Toggle.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.d.ts +1 -2
- 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/Testing/Testing.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/templates/Testing/Testing.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.d.ts +1 -2
- package/dist/types/src/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/store/CitationsContext.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/store/CitationsContext.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearning/_components/MessageRendering.d.ts +1 -2
- package/dist/types/src/features/InstantLearning/_components/MessageRendering.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearning/_components/MinimizedThinkingSteps.d.ts +1 -2
- package/dist/types/src/features/InstantLearning/_components/MinimizedThinkingSteps.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearning/_components/_svg/ArrowDown.d.ts +1 -2
- package/dist/types/src/features/InstantLearning/_components/_svg/ArrowDown.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearning/_components/_svg/ArrowIconBlue.d.ts +1 -2
- package/dist/types/src/features/InstantLearning/_components/_svg/ArrowIconBlue.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearning/_components/_svg/CompleteIconGreen.d.ts +1 -2
- package/dist/types/src/features/InstantLearning/_components/_svg/CompleteIconGreen.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearning/_components/_svg/NewChatIcon.d.ts +1 -2
- package/dist/types/src/features/InstantLearning/_components/_svg/NewChatIcon.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/CardSkeleton.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/components/CardSkeleton.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/LearningTemplateManagementSkeleton.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/components/LearningTemplateManagementSkeleton.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/RuleContentSkeleton.d.ts +1 -2
- package/dist/types/src/features/LearningManagement/components/RuleContentSkeleton.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/Skeleton.d.ts +1 -1
- package/dist/types/src/features/LearningManagement/components/Skeleton.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts +12 -0
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts.map +1 -0
- package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts +1 -2
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts +1 -2
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts +1 -2
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts +1 -2
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts.map +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts +1 -1
- package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts +1 -2
- package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -1
- package/dist/types/src/routes/Routes.d.ts +1 -2
- package/dist/types/src/routes/Routes.d.ts.map +1 -1
- package/dist/types/src/utils/CustomSkeleton.d.ts +1 -1
- package/dist/types/src/utils/CustomSkeleton.d.ts.map +1 -1
- package/dist/types/src/utils/SkeletonLoader.d.ts +1 -1
- package/dist/types/src/utils/SkeletonLoader.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as r,__generator as o,__spreadArray as i}from"tslib";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{useState as l,useEffect as a}from"react";import{v4 as p}from"uuid";import{IL_CONFIG_CONSTANTS as d}from"../config.js";import s from"../store/useAuthStore.js";import c from"../RuleContent/AddScopeApprovalSearchComponent.js";import{useAppSecRolesStore as u}from"../store/useAppSecRolesStore.js";import f from"../store/useEnvStore.js";import h from"./ScopeSkeletonLoader.js";var x=function(x){var m=x.isOpen,g=x.onClose,v=x.onSubmit,b=x.hasGlobalRuleSet,y=void 0!==b&&b;x.canCreateGlobal;var S=l("");
|
|
1
|
+
import{__assign as e,__awaiter as r,__generator as o,__spreadArray as i}from"tslib";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{useState as l,useEffect as a}from"react";import{v4 as p}from"uuid";import{IL_CONFIG_CONSTANTS as d}from"../config.js";import s from"../store/useAuthStore.js";import c from"../RuleContent/AddScopeApprovalSearchComponent.js";import{useAppSecRolesStore as u}from"../store/useAppSecRolesStore.js";import f from"../store/useEnvStore.js";import h from"./ScopeSkeletonLoader.js";var x=function(x){var m=x.isOpen,g=x.onClose,v=x.onSubmit,b=x.hasGlobalRuleSet,y=void 0!==b&&b;x.canCreateGlobal;var S=x.globalScopeId,C=void 0===S?null:S,k=l("");k[0];var E=k[1],w=l(""),B=w[0],_=w[1],D=l(""),R=D[0],z=D[1],q=l(!1),I=q[0],A=q[1],j=l({}),F=j[0],G=j[1],L=l("approval_required"),W=L[0],N=L[1],T=l([]),O=T[0],P=T[1],H=l([]),M=H[0],K=H[1],U=l(""),Y=U[0],J=U[1],Q=s().user,V=u(function(e){return e.roles}),X=f(function(e){return e.rbacConfig});if(a(function(){m&&(E(""),_(""),z(""),G({}),N("approval_required"),P([]),K([]),J(""))},[m]),!m)return null;var Z={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.3)"},modal:{position:"relative",width:"600px",borderRadius:"12px",backgroundColor:"#ffffff",padding:"24px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",maxHeight:"90vh",overflowY:"auto"},header:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"24px"},title:{margin:0,fontSize:"18px",fontWeight:500,color:"#19213D"},subtitle:{marginTop:"4px",fontSize:"14px",fontWeight:400,color:"#666F8D"},closeButton:{background:"none",border:"none",fontSize:"20px",cursor:"pointer",color:"#9CA3AF"},formGroup:{display:"flex",flexDirection:"column",marginBottom:"20px",gap:"6px"},label:{fontSize:"14px",fontWeight:500,color:"#19213D"},asterisk:{color:"#8F2C23",marginRight:"4px",fontSize:"16px",fontWeight:600},input:{width:"100%",padding:"8px 12px",borderRadius:"6px",border:"1px solid #E2E8F0",outline:"none",fontSize:"14px"},inputError:{border:"1px solid #8F2C23"},errorText:{margin:0,marginTop:"4px",fontSize:"12px",color:"#8F2C23"},textarea:{width:"100%",padding:"8px 12px",borderRadius:"6px",border:"1px solid #E2E8F0",outline:"none",fontSize:"14px",minHeight:"100px",maxHeight:"200px",overflowY:"auto",resize:"vertical"},footer:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"32px"},cancelBtn:{padding:"8px 16px",borderRadius:"6px",border:"1px solid #E2E8F0",backgroundColor:"transparent",color:"#64748B",fontSize:"14px",fontWeight:500,cursor:"pointer"},submitBtn:{padding:"8px 16px",borderRadius:"6px",border:"none",backgroundColor:"#2563EB",color:"#ffffff",fontSize:"14px",fontWeight:500,cursor:"pointer"},disabledBtn:{opacity:.5,cursor:"not-allowed"}};return I?t(h,{isLoading:I}):t("div",e({style:Z.overlay},{children:n("div",e({style:Z.modal},{children:[n("div",e({style:Z.header},{children:[n("div",{children:[t("h2",e({style:Z.title},{children:"Create Scope"})),t("p",e({style:Z.subtitle},{children:"Create a scope to group and manage rules."}))]}),t("button",e({onClick:g,style:Z.closeButton},{children:"✕"}))]})),n("div",{children:[n("div",e({style:Z.formGroup},{children:[n("label",e({style:Z.label},{children:[t("span",e({style:Z.asterisk},{children:"*"})),"Scope Name"]})),t("input",{type:"text",value:B,onChange:function(r){var o=r.target.value;if(o.length>50)return _(o.slice(0,50)),void G(function(r){return e(e({},r),{name:"Scope Name must be 50 characters or fewer"})});_(o),F.name&&G(function(r){return e(e({},r),{name:void 0})})},placeholder:"e.g. Global Learnings",style:e(e({},Z.input),F.name?Z.inputError:{})}),F.name&&t("p",e({style:Z.errorText},{children:F.name}))]})),n("div",e({style:Z.formGroup},{children:[n("label",e({style:Z.label},{children:[t("span",e({style:Z.asterisk},{children:"*"})),"Description"]})),t("input",{type:"text",value:R,onChange:function(r){var o=r.target.value;if(o.length>200)return z(o.slice(0,200)),void G(function(r){return e(e({},r),{description:"Description must be 200 characters or fewer"})});z(o),F.description&&G(function(r){return e(e({},r),{description:void 0})})},placeholder:"Enter short description for scope",style:e(e({},Z.input),F.description?Z.inputError:{})}),F.description&&t("p",e({style:Z.errorText},{children:F.description}))]})),n("div",e({style:e(e({},Z.formGroup),{gap:"12px"})},{children:[t("label",e({style:Z.label},{children:"Approval Settings"})),n("div",e({role:"radio","aria-checked":"approval_required"===W,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px"},onClick:function(){return N("approval_required")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||N("approval_required")}},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[t("div",e({style:{display:"flex",height:"16px",width:"16px",flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("approval_required"===W?"#2563EB":"#CBD5E1")}},{children:"approval_required"===W&&t("div",{style:{height:"8px",width:"8px",borderRadius:"50%",backgroundColor:"#2563EB"}})})),t("span",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:"Approval Required Before Publishing"}))]})),t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#666F8D"}},{children:"Learnings require approval before publishing."}))]})),"approval_required"===W&&t(c,{selectedApprovers:O,selectedGroupOfApprovers:M,onApproversChange:P,onGroupsChange:K}),Y&&t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#8F2C23"}},{children:Y})),n("div",e({role:"radio","aria-checked":"publish_without"===W,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px"},onClick:function(){N("publish_without"),J("")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(N("publish_without"),J(""))}},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[t("div",e({style:{display:"flex",height:"16px",width:"16px",flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("publish_without"===W?"#2563EB":"#CBD5E1")}},{children:"publish_without"===W&&t("div",{style:{height:"8px",width:"8px",borderRadius:"50%",backgroundColor:"#2563EB"}})})),t("span",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:"Publish Without Approval"}))]})),t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#666F8D"}},{children:"Learnings can be published directly."}))]}))]}))]}),n("div",e({style:Z.footer},{children:[t("button",e({onClick:g,disabled:I,style:e(e({},Z.cancelBtn),I?Z.disabledBtn:{})},{children:"Cancel"})),t("button",e({onClick:function(){return r(void 0,void 0,void 0,function(){var e,r,t,n,l,a,s,c;return o(this,function(o){switch(o.label){case 0:if(u={},f=!0,B.trim()||(u.name="Scope Name is required",f=!1),R.trim()||(u.description="Description is required",f=!1),G(u),!f)return[2];if("approval_required"===W&&0===O.length&&0===M.length)return J("Please select at least one approver or approver group."),[2];J(""),A(!0),e=y?"genreRuleSet":"globalRuleSet",r="approval_required"===W,console.log("topicData",e),t={topic:e,customScopeGroupName:d.CUSTOM_SCOPE_GROUP_NAME,scopeDescription:R,parentScopeId:y?C:null,customScopeName:B,customScopeId:p(),createByName:null==Q?void 0:Q.firstname,createdBy:null==Q?void 0:Q.email,approvalRequired:r,appsecData:{application:null==X?void 0:X.applicationId,module:null==X?void 0:X.moduleId,roles:i(i([],r?[{users:O.map(function(e){return e.email}),groups:M.map(function(e){return e._id}),role:null!==(a=null===(l=V.find(function(e){return"Learning Manager"===e.name}))||void 0===l?void 0:l._id)&&void 0!==a?a:""}]:[],!0),[{users:[null==Q?void 0:Q.email],groups:[],role:null!==(c=null===(s=V.find(function(e){return"Instant Learning Admin"===e.name}))||void 0===s?void 0:s._id)&&void 0!==c?c:""}],!1)}},o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,v(t)];case 2:return o.sent(),g(),[3,5];case 3:return n=o.sent(),console.error("Error in submission",n),[3,5];case 4:return A(!1),[7];case 5:return[2]}var u,f})})},disabled:I,style:e(e({},Z.submitBtn),I?Z.disabledBtn:{})},{children:I?"Creating...":"Create Scope"}))]}))]}))}))};export{x as default};
|
|
2
2
|
//# sourceMappingURL=CreateRuleSetLegacyModal.js.map
|
package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__awaiter as r,__generator as n,__spreadArray as t}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as u,useEffect as c}from"react";import{Dialog as d,Box as p,Typography as f,IconButton as m,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as v,Search as b,ArrowRight as x}from"lucide-react";import{Toast as S}from"primereact/toast";import{v4 as y}from"uuid";import w from"../../assets/Search-result(add new).svg.js";import C from"../../store/useAuthStore.js";import{IL_CONFIG_CONSTANTS as _}from"../../config.js";import{retrieveGenreScopes as O,fetchStationsByKeyword as F,searchScopes as T,inheritScope as A,deleteRuleSet as N,updateStation as M,createRuleSet as E}from"../../apis/scopeApis.js";import k from"./InputField.js";import D from"./StationAutocomplete.js";import z from"../CardSkeleton.js";import P from"./OnboardingLoader.js";import B from"./TemplateCard.js";var j=[{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"},{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"}],I=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],L=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],R=function(R){var W,U=R.isOpen,q=R.onClose,G=R.onBoardStation,Y=R.app_integration_id,H=R.token,K=R.stationNameParam,X=a(null),J=X[0],Q=X[1],V=a([]),Z=V[0],$=V[1],ee=a(0),re=ee[0],ne=ee[1],te=a(!0),oe=te[0],ie=te[1],le=a(!1),ae=le[0],se=le[1],ue=a([]),ce=ue[0],de=ue[1],pe=a(""),fe=pe[0],me=pe[1],he=a(""),ge=he[0],ve=he[1],be=a(!1),xe=be[0],Se=be[1],ye=a(!1),we=ye[0],Ce=ye[1],_e=a(null),Oe=_e[0],Fe=_e[1],Te=a(!1),Ae=Te[0],Ne=Te[1],Me=a(0),Ee=Me[0],ke=Me[1],De=a(""),ze=De[0],Pe=De[1],Be=C().user,je=s(null),Ie=s(null),Le=s(null),Re=s(null),We=a({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),Ue=We[0],qe=We[1],Ge=function(e,r){return e.find(function(e){return e.value===r})||null},Ye=u(function(){return Z.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[Z]),He=u(function(){var e,r,n;if(!Ue.genre)return null;var t=Z.find(function(e){return e.scope_name===Ue.genre});return t?{id:t.id,title:t.scope_name||"Unnamed Template",description:(null===(e=t.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(r=t.inheritance)||void 0===r?void 0:r[0])||void 0,rulesCount:t.rules_count||0,tiersCount:t.tier_count||0,isCopy:null!==(n=t.is_copy)&&void 0!==n&&n}:null},[Ue.genre,Z]);c(function(){return function(){Le.current&&clearTimeout(Le.current)}},[]);var Ke=function(e){return r(void 0,void 0,void 0,function(){var r,o,i;return n(this,function(n){switch(n.label){case 0:if(ae)return[2];se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,O({limit:"20",offset:String(e)})];case 2:return"success"===(null==(r=n.sent())?void 0:r.status)&&Array.isArray(null==r?void 0:r.data)?(o=r.data,$(function(r){if(0===e)return o;var n=new Set(r.map(function(e){return e.id})),i=o.filter(function(e){return!n.has(e.id)});return t(t([],r,!0),i,!0)}),o.length<20?ie(!1):ie(!0),ne(e+20)):ie(!1),[3,5];case 3:return i=n.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",i),ie(!1),[3,5];case 4:return se(!1),[7];case 5:return[2]}})})};c(function(){if(U&&($([]),ne(0),ie(!0),Ke(0),K)){Pe(K);r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,F(K,!0)];case 1:return!0===(null==(e=n.sent())?void 0:e.success)&&Array.isArray(null==e?void 0:e.data)&&(r=e.data.find(function(e){var r;return(null===(r=e.station_name)||void 0===r?void 0:r.toLowerCase())===K.toLowerCase()&&!e.ruleset_id}),r&&Q(r)),[3,3];case 2:return t=n.sent(),console.error("[StationOnboard] Error auto-selecting station:",t),[3,3];case 3:return[2]}})})}},[U,K]);c(function(){qe(J?function(r){var n;return e(e({},r),{region:null!==(n=J.market)&&void 0!==n?n:""})}:{region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""})},[J]),c(function(){var e=setTimeout(function(){ve(fe)},500);return function(){return clearTimeout(e)}},[fe]),c(function(){r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:if(!ge.trim())return de([]),[2];Se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,T({search_string:ge})];case 2:return"success"===(null==(e=n.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(r=e.data.map(function(e){var r,n,t;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(r=e.description)||void 0===r?void 0:r.trim())||"No description available.",inheritedText:(null===(n=e.inheritance)||void 0===n?void 0:n[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(t=e.is_copy)&&void 0!==t&&t}}),de(r)):de([]),[3,5];case 3:return t=n.sent(),console.error("[StationOnboard] Error searching scopes:",t),de([]),[3,5];case 4:return Se(!1),[7];case 5:return[2]}})})},[ge]),c(function(){!ge.trim()&&He&&Fe(He.id)},[ge,He]);var Xe=function(){setTimeout(function(){Re.current&&Re.current.scrollTo({top:Re.current.scrollHeight,behavior:"smooth"})},100)},Je=function(){Pe(""),Q(null),qe({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),de([]),me(""),Fe(null),q()},Qe=function(r,n){var t;if("primeTime"!==r){var o=null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"";qe(function(n){var t;return e(e({},n),((t={})[r]=String(o),t))}),"genre"===r&&(Ce(!0),Le.current&&clearTimeout(Le.current),Le.current=setTimeout(function(){var e=Z.find(function(e){return e.scope_name===o});Fe(e?e.id:null),Ce(!1)},800))}else{var i=(null==n?void 0:n.value)?String(n.value):"";qe(function(r){return e(e({},r),{primeTime:i?[i]:[]})})}},Ve=Boolean(J&&Ue.region&&Ue.primeTime.length>0&&Ue.genre);return o(d,e({open:U,onClose:Je,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"}}},{children:[i(S,{ref:je}),o(p,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[o(p,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[i(f,e({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),i(f,e({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),i(m,e({onClick:Je,disabled:Ae,sx:{color:"#19213D"}},{children:i(v,{size:24})}))]})),o(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(P,{isLoading:Ae,currentStep:Ee,onComplete:function(){Ne(!1);var e=Ie.current;Je(),G(e||void 0),Ie.current=null}}),o(p,e({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[o(p,e({ref:Re,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5",height:"100%",overflowY:"auto"}},{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),i(f,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[o(p,e({className:"space-y-1.5"},{children:[o("label",e({className:"text-sm font-medium text-[#19213D]"},{children:[i("span",e({className:"mr-0.5 text-xs font-semibold text-[#8F2C23]"},{children:"*"})),"Station Name/Call Letters"]})),i(D,{value:ze,onChange:Pe,onStationSelect:function(e){return Q(e)}})]})),i(k,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Ue.region||void 0,isSearchable:!1}),i(k,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:j,value:Ge(j,(null===(W=Ue.primeTime)||void 0===W?void 0:W[0])||""),onOptionChange:function(e){return Qe("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{required:!0,label:"Genre",placeholder:"Select Genre",options:Ye,value:Ge(Ye,Ue.genre),onOptionChange:function(e){return Qe("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ae&&oe&&Ke(re)},isLoadingOptions:ae,hasMoreOptions:oe})})),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Station Type",placeholder:"None",options:I,value:Ge(I,Ue.type),onOptionChange:function(r){Qe("type",r),"Low Sellout"!==(null==r?void 0:r.value)&&qe(function(r){return e(e({},r),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Ue.type&&i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:L,value:Ge(L,Ue.lowSelloutConfig),onOptionChange:function(e){return Qe("lowSelloutConfig",e)},isSearchable:!1})}))]}))]})),i(p,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column",height:"100%",overflowY:"auto"}},{children:Ue.genre?o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Matching scope for your station"})),i(p,e({sx:{display:"flex",flexDirection:"column",gap:2,mb:4}},{children:we?i(z,{}):He?i(B,e({},He,{isSelected:Oe===He.id,onSelect:Fe}),He.id):null})),i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),o("div",e({className:"relative mb-4 w-full"},{children:[i("input",{type:"text",value:fe,onChange:function(e){return me(e.target.value)},placeholder:"Search for station...",className:"w-full rounded-lg border border-[#E2E8F0] px-10 py-[7px] text-[12px] outline-none transition-all placeholder:text-[#BAC0CC] focus:border-blue-500 focus:ring-1 focus:ring-blue-500"}),i(b,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",size:16})]})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[xe&&i(z,{}),!xe&&0===ce.length&&ge.trim()&&o(f,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',ge,'".']})),!xe&&ce.map(function(r){return i(B,e({},r,{isSelected:Oe===r.id,onSelect:Fe}),r.id)})]}))]}):o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Fill in the station details to load AI recommended scopes"})),i(f,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:3}},{children:"AI will recommend the most relevant scope for this station."})),i(p,e({sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.5,py:10}},{children:i("img",{src:w,alt:"Empty Result"})}))]})}))]}))]})),o(p,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[i("button",e({onClick:Je,disabled:Ae,style:{padding:"7px 10px",borderRadius:"6px",color:"#64748B",border:"1px solid #E2E8F0",backgroundColor:"#fff",cursor:"pointer",fontSize:"14px",fontWeight:500}},{children:"Cancel"})),i("button",e({onClick:function(){return r(void 0,void 0,void 0,function(){var r,o,i,l,a,s,u,c,d,p,f,m,h,g,v,b,x,S;return n(this,function(n){switch(n.label){case 0:if(!J||!Oe)return console.error("[StationOnboard] Missing required data for onboarding"),[2];r=He?t([He],ce,!0):ce,o=r.find(function(e){return e.id===Oe}),i=null!==(h=null==o?void 0:o.isCopy)&&void 0!==h&&h,Ne(!0),ke(0),l=null,n.label=1;case 1:return n.trys.push([1,3,,4]),a={topic:"customRuleSet",customScopeGroupName:(null==_?void 0:_.CUSTOM_SCOPE_GROUP_NAME)||"Audacy-Traffic-Manager",scopeDescription:J.station_name||"New Station",parentScopeId:null,customScopeName:J.station_name||"New Station",customScopeId:y(),createByName:(null==Be?void 0:Be.firstname)||"System",createdBy:(null==Be?void 0:Be.email)||"system@audacy.com",applicationMappingId:Y},console.log("[StationOnboard] Step 1: Creating rule set with payload:",a),[4,E(a,H)];case 2:if(s=n.sent(),!(l=null===(g=null==s?void 0:s.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return ke(1),[3,4];case 3:return u=n.sent(),console.error("[StationOnboard] Error creating rule set:",u),null===(v=je.current)||void 0===v||v.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),Ne(!1),ke(0),[2];case 4:return n.trys.push([4,6,,11]),c={market:J.market,region:J.region,primetime_windows:Ue.primeTime,genre:Ue.genre,station_type:""===Ue.type?null:Ue.type,low_sellout_configurations:"Low Sellout"===Ue.type?Ue.lowSelloutConfig:null,ruleset_id:l,station_guid:J.station_guid,station_name:J.station_name||"New Station"},console.log("[StationOnboard] Step 2: Updating station with payload:",c),[4,M(c)];case 5:return n.sent(),ke(2),[3,11];case 6:d=n.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",d),409===d.status?(null===(b=je.current)||void 0===b||b.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),Q(null),Fe(null),Pe(""),qe(function(r){return e(e({},r),{region:""})})):null===(x=je.current)||void 0===x||x.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),n.label=7;case 7:return n.trys.push([7,9,,10]),[4,N(l,H)];case 8:return n.sent(),[3,10];case 9:return p=n.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",p),[3,10];case 10:return Ne(!1),ke(0),[2];case 11:return n.trys.push([11,13,,14]),f={source_scope_id:Oe,target_scope_id:l,is_copy_parent_variant_id:i},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,A(f)];case 12:return n.sent(),ke(3),[3,14];case 13:return m=n.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",m),null===(S=je.current)||void 0===S||S.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),Ne(!1),ke(0),[2];case 14:return Ie.current=l,[2]}})})},disabled:!Ve||Ae,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:Ve?"#2563EB":"#BFDBFE",color:"#fff",cursor:Ve&&!Ae?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:o(l,Ae?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(x,{size:16})]})}))]}))]}))};export{R as default};
|
|
2
|
+
//# sourceMappingURL=BackwardStationOnboardModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackwardStationOnboardModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as o,__generator as r,__spreadArray as n}from"tslib";import{jsxs as i,jsx as t,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as c,useEffect as p}from"react";import{Dialog as u,Box as d,Typography as f,IconButton as m,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as x,Search as v,ArrowRight as b}from"lucide-react";import{Toast as S}from"primereact/toast";import{v4 as y}from"uuid";import{retrieveGenreScopes as C,searchScopes as w,inheritScopeBackwardCompatible as _,createRuleSet as F}from"../../apis/scopeApis.js";import T from"./StationAutocomplete.js";import k from"../CardSkeleton.js";import E from"./OnboardingLoader.js";import z from"./TemplateCard.js";import D from"../../styles/StationOnboardModal.module.css.js";import B from"./InputField.js";import O from"../../store/useAuthStore.js";import{useConfigStore as I}from"../../store/useConfigStore.js";import{useLearningTemplateStore as A}from"../../store/useLearningTemplateStore.js";import{IL_CONFIG_CONSTANTS as R}from"../../config.js";import{useAppSecRolesStore as j}from"../../store/useAppSecRolesStore.js";import L from"../../store/useEnvStore.js";import N from"../../RuleContent/AddScopeApprovalSearchComponent.js";var M=[{label:"PT - Pacific Time",value:"Pacific Time"},{label:"MT - Mountain Time",value:"Mountain Time"},{label:"CT - Central Time",value:"Central Time"},{label:"ET - Eastern Time",value:"Eastern Time"}],W=[{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"},{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"}],q=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],P=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],G=function(G){var U,H=G.isOpen,K=G.onClose,Y=G.onBoardStation,Z=G.app_integration_id,V=G.token,X=a(null),J=X[0],Q=X[1],$=a([]),ee=$[0],oe=$[1],re=a(0),ne=re[0],ie=re[1],te=a(!0),le=te[0],ae=te[1],se=a(!1),ce=se[0],pe=se[1],ue=a([]),de=ue[0],fe=ue[1],me=a(""),he=me[0],ge=me[1],xe=a(""),ve=xe[0],be=xe[1],Se=a(!1),ye=Se[0],Ce=Se[1],we=a(!1),_e=we[0],Fe=we[1],Te=a(null),ke=Te[0],Ee=Te[1],ze=a(null);ze[0],ze[1];var De=a(!1),Be=De[0],Oe=De[1],Ie=a(0),Ae=Ie[0],Re=Ie[1],je=a(""),Le=je[0],Ne=je[1],Me=O().user,We=s(null),qe=s(null),Pe=s(null),Ge=s(null);I().configuration;var Ue=s(null),He=j(function(e){return e.roles}),Ke=L(function(e){return e.rbacConfig}),Ye=a("approval_required"),Ze=Ye[0],Ve=Ye[1],Xe=a([]),Je=Xe[0],Qe=Xe[1],$e=a([]),eo=$e[0],oo=$e[1],ro=a(""),no=ro[0],io=ro[1],to=a({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),lo=to[0],ao=to[1],so=function(e,o){return e.find(function(e){return e.value===o})||null},co=c(function(){return ee.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[ee]),po=c(function(){var e,o,r;if(!lo.genre)return null;var n=ee.find(function(e){return e.scope_name===lo.genre});return n?{id:n.id,title:n.scope_name||"Unnamed Template",description:(null===(e=n.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(o=n.inheritance)||void 0===o?void 0:o[0])||void 0,rulesCount:n.rules_count||0,tiersCount:n.tier_count||0,isCopy:null!==(r=n.is_copy)&&void 0!==r&&r}:null},[lo.genre,ee]);p(function(){return function(){Pe.current&&clearTimeout(Pe.current)}},[]);var uo=function(e){return o(void 0,void 0,void 0,function(){var o,i,t;return r(this,function(r){switch(r.label){case 0:if(ce)return[2];pe(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,C({limit:"20",offset:String(e)})];case 2:return"success"===(null==(o=r.sent())?void 0:o.status)&&Array.isArray(null==o?void 0:o.data)?(i=o.data,oe(function(o){if(0===e)return i;var r=new Set(o.map(function(e){return e.id})),t=i.filter(function(e){return!r.has(e.id)});return n(n([],o,!0),t,!0)}),i.length<20?ae(!1):ae(!0),ie(e+20)):ae(!1),[3,5];case 3:return t=r.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",t),ae(!1),[3,5];case 4:return pe(!1),[7];case 5:return[2]}})})};p(function(){H&&(oe([]),ie(0),ae(!0),uo(0))},[H]);p(function(){ao(J?function(o){var r;return e(e({},o),{region:null!==(r=J.market)&&void 0!==r?r:""})}:{region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""})},[J]),p(function(){var e=setTimeout(function(){be(he)},500);return function(){return clearTimeout(e)}},[he]),p(function(){o(void 0,void 0,void 0,function(){var e,o,n,i;return r(this,function(r){switch(r.label){case 0:if(!ve.trim())return fe([]),[2];Ce(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,w({search_string:ve.trim()})];case 2:return"success"===(null==(e=r.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(o=e.data.filter(function(e){var o,r=null!==(o=e.inheritance)&&void 0!==o?o:[],n=r.indexOf(e.scope_name);return!(n<=0)&&r[n-1]===lo.genre}),n=o.map(function(e){var o,r,n;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(o=e.description)||void 0===o?void 0:o.trim())||"No description available.",inheritedText:(null===(r=e.inheritance)||void 0===r?void 0:r[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(n=e.is_copy)&&void 0!==n&&n}}),fe(n)):fe([]),[3,5];case 3:return i=r.sent(),console.error("[StationOnboard] Error searching scopes:",i),fe([]),[3,5];case 4:return Ce(!1),[7];case 5:return[2]}})})},[ve,lo.genre]),p(function(){!ve.trim()&&po&&Ee(po.id)},[ve,po]);var fo=function(){setTimeout(function(){Ge.current&&Ge.current.scrollTo({top:Ge.current.scrollHeight,behavior:"smooth"})},100)},mo=function(){Ne(""),Q(null),ao({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),fe([]),ge(""),Ee(null),Ve("approval_required"),Qe([]),oo([]),io(""),K()},ho=function(o,r){var n;if("primeTime"!==o){var i=null!==(n=null==r?void 0:r.value)&&void 0!==n?n:"";ao(function(r){var n;return e(e({},r),((n={})[o]=String(i),n))}),"genre"===o&&(Fe(!0),Pe.current&&clearTimeout(Pe.current),Pe.current=setTimeout(function(){var e=ee.find(function(e){return e.scope_name===i});Ee(e?e.id:null),Fe(!1)},800))}else{var t=(null==r?void 0:r.value)?String(r.value):"";ao(function(o){return e(e({},o),{primeTime:t?[t]:[]})})}},go=Boolean(J&&lo.region&&lo.timezone&&lo.primeTime.length>0&&lo.genre);return i(u,e({open:H,onClose:mo,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"sans-serif"}}},{children:[t(S,{ref:We}),i(d,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[i(d,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[t(f,e({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),t(f,e({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),t(m,e({onClick:mo,disabled:Be,sx:{color:"#19213D"}},{children:t(x,{size:24})}))]})),i(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[t(E,{isLoading:Be,currentStep:Ae,onComplete:function(){Oe(!1);var e=qe.current;mo(),Y(e||void 0),qe.current=null}}),t(d,e({sx:{display:"flex",flex:1,flexDirection:"column",paddingY:"14px",paddingX:"20px",gap:2,overflowY:"auto"}},{children:i(d,e({sx:{display:"flex",gap:3}},{children:[i(d,e({ref:Ge,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5"}},{children:[t(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),t(f,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),i(d,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[i(d,e({className:D.formGroup},{children:[i("label",e({className:D.label},{children:[t("span",e({className:D.asterisk},{children:"*"})),"Station Name/Call Letters"]})),t(T,{value:Le,onChange:Ne,onStationSelect:function(e){return Q(e)}})]})),t(B,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:lo.region||void 0,isSearchable:!1}),t(B,{required:!0,label:"TimeZone",placeholder:"Select TimeZone",options:M,value:so(M,lo.timezone),onOptionChange:function(e){return ho("timezone",e)},isSearchable:!1}),t(B,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:W,value:so(W,(null===(U=lo.primeTime)||void 0===U?void 0:U[0])||""),onOptionChange:function(e){return ho("primeTime",e)},isSearchable:!1}),t(d,e({onClick:fo,sx:{width:"100%"}},{children:t(B,{label:"Station Type",placeholder:"None",options:q,value:so(q,lo.type),onOptionChange:function(o){ho("type",o),"Low Sellout"!==(null==o?void 0:o.value)&&ao(function(o){return e(e({},o),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===lo.type&&t(d,e({onClick:fo,sx:{width:"100%"}},{children:t(B,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:P,value:so(P,lo.lowSelloutConfig),onOptionChange:function(e){return ho("lowSelloutConfig",e)},isSearchable:!1})})),A.getState().backwardCompatibility&&i("div",e({ref:Ue,style:{display:"flex",flexDirection:"column",marginTop:"12px"}},{children:[t(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Approval Settings"})),t(f,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Configure who can approve learnings before they get published."})),i("div",e({style:{marginBottom:"12px",fontSize:"12px",color:"#8F2C23",gap:"16px"}},{children:[i("div",e({style:{marginBottom:"12px",fontSize:"12px",color:"#8F2C23",gap:"12px"}},{children:[i("div",e({role:"radio","aria-checked":"approval_required"===Ze,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",marginBottom:"8px"},onClick:function(){return Ve("approval_required")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||Ve("approval_required")}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[t("div",e({style:{display:"flex",height:"16px",width:"16px",flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("approval_required"===Ze?"#2563EB":"#CBD5E1")}},{children:"approval_required"===Ze&&t("div",{style:{height:"8px",width:"8px",borderRadius:"50%",backgroundColor:"#2563EB"}})})),t("span",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:"Approval Required Before Publishing"}))]})),t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#666F8D"}},{children:"Learnings require approval before publishing."}))]})),i("div",e({style:{gap:"16px"}},{children:["approval_required"===Ze&&t(N,{selectedApprovers:Je,selectedGroupOfApprovers:eo,onApproversChange:function(e){Qe(e),io("")},onGroupsChange:function(e){oo(e),io("")}}),no&&t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#8F2C23"}},{children:no}))]}))]})),i("div",e({role:"radio","aria-checked":"publish_without"===Ze,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px"},onClick:function(){Ve("publish_without"),io("")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(Ve("publish_without"),io(""))}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[t("div",e({style:{display:"flex",height:"16px",width:"16px",flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("publish_without"===Ze?"#2563EB":"#CBD5E1")}},{children:"publish_without"===Ze&&t("div",{style:{height:"8px",width:"8px",borderRadius:"50%",backgroundColor:"#2563EB"}})})),t("span",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:"Publish Without Approval"}))]})),t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#666F8D"}},{children:"Learnings can be published directly."}))]}))]}))]}))]}))]})),i(d,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column"}},{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:[t("span",e({style:{color:"#E53E3E",marginRight:"2px"}},{children:"*"})),"Select a scope for your station"]})),t(f,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:"16px"}},{children:"Your station will inherit the rules from the selected scope."})),t(d,e({sx:{mb:2}},{children:t(B,{required:!0,label:"",placeholder:"Select Genre",options:co,value:so(co,lo.genre),onOptionChange:function(e){return ho("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ce&&le&&uo(ne)},isLoadingOptions:ce,hasMoreOptions:le})})),t(d,e({sx:{mb:3}},{children:_e?t(k,{}):po?i(d,e({sx:{border:"1.5px solid #2563EB",borderRadius:"10px",p:"14px 16px",bgcolor:"#EFF6FF",display:"flex",alignItems:"flex-start",gap:"12px"}},{children:[t(d,e({sx:{width:36,height:36,borderRadius:"8px",bgcolor:"#DBEAFE",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:i("svg",e({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("circle",{cx:"12",cy:"12",r:"2"}),t("path",{d:"M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"})]}))})),i(d,e({sx:{flex:1,minWidth:0}},{children:[t(f,e({sx:{fontSize:"0.875rem",fontWeight:600,color:"#1E3A5F",mb:"2px"}},{children:po.title})),t(f,e({sx:{fontSize:"0.75rem",color:"#2563EB",mb:"8px"}},{children:po.description})),i(d,e({sx:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"}},{children:[po.inheritedText&&i(d,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px",display:"inline-flex",alignItems:"center",gap:"4px"}},{children:[i("svg",e({width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("polyline",{points:"15 3 21 3 21 9"}),t("path",{d:"M21 3L9 15"}),t("path",{d:"M3 21l6-6"})]})),po.inheritedText]})),i(d,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px"}},{children:[po.rulesCount," rules"]})),i(d,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px"}},{children:[po.tiersCount," Tiers"]}))]}))]}))]})):lo.genre?null:t(d,e({sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.4,py:6,gap:1}},{children:t(f,e({sx:{fontSize:"0.75rem",color:"#94A3B8"}},{children:"Select a genre to load the matching scope"}))}))})),lo.genre&&i(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:["Select an Existing Station from the “",lo.genre,"” Scope"," ",t(f,e({component:"span",sx:{fontSize:"1rem",fontWeight:400,color:"#64748B"}},{children:"(Optional)"}))]})),i(f,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:"12px"}},{children:["Please select an existing station under the “",lo.genre,"” category to copy its learnings."]})),i("div",e({className:D.searchWrapper,style:{marginBottom:"12px"}},{children:[t("input",{type:"text",value:he,onChange:function(e){return ge(e.target.value)},placeholder:"Search for station...",className:D.searchInput}),t(v,{className:D.searchIcon,size:16})]})),i(d,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[ye&&t(k,{}),!ye&&0===de.length&&ve.trim()&&i(f,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',ve,'".']})),!ye&&de.map(function(o){return t(z,e({},o,{isSelected:ke===o.id,onSelect:function(e){var o;Ee(ke===e?null!==(o=null==po?void 0:po.id)&&void 0!==o?o:null:e)}}),o.id)})]}))]})]}))]}))}))]})),i(d,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[t("button",e({onClick:mo,disabled:Be,style:{padding:"7px 10px",borderRadius:"6px",color:"#64748B",border:"1px solid #E2E8F0",backgroundColor:"#fff",cursor:"pointer",fontSize:"14px",fontWeight:500}},{children:"Cancel"})),t("button",e({onClick:function(){return o(void 0,void 0,void 0,function(){var e,o,i,t,l,a,s,c,p,u,d,f,m,h,g,x,v,b;return r(this,function(r){switch(r.label){case 0:if(!J||!ke)return console.error("[StationOnboard] Missing required data for onboarding"),[2];if(A.getState().backwardCompatibility&&"approval_required"===Ze&&0===Je.length&&0===eo.length)return io("Please select at least one approver or approver group."),setTimeout(function(){var e;null===(e=Ue.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50),[2];io(""),e=po?n([po],de,!0):de,o=e.find(function(e){return e.id===ke}),null==o?void 0:o.isCopy,Oe(!0),Re(0),i=null,r.label=1;case 1:return r.trys.push([1,3,,4]),t=A.getState().backwardCompatibility,l=t?{topic:"customRuleSet",customScopeGroupName:R.CUSTOM_SCOPE_GROUP_NAME,scopeDescription:J.station_name||"New Station",parentScopeId:null,customScopeName:J.station_name||"New Station",customScopeId:y(),createByName:(null==Me?void 0:Me.firstname)||"System",createdBy:(null==Me?void 0:Me.email)||"system@audacy.com",scopeType:"Station",approvalRequired:"approval_required"===Ze,audacyStationMetadata:{genre:lo.genre,low_sellout_configurations:"Low Sellout"===lo.type?lo.lowSelloutConfig:null,market:J.market,primetime_windows:lo.primeTime,region:J.region,station_guid:J.station_guid,station_type:""===lo.type?null:lo.type},appsecData:{application:null==Ke?void 0:Ke.applicationId,module:null==Ke?void 0:Ke.moduleId,roles:n(n([],"approval_required"===Ze?[{users:Je.map(function(e){return e.email}),groups:eo.map(function(e){return e._id}),role:null!==(f=null===(d=He.find(function(e){return"Learning Manager"===e.name}))||void 0===d?void 0:d._id)&&void 0!==f?f:""}]:[],!0),[{users:[null==Me?void 0:Me.email],groups:[],role:null!==(h=null===(m=He.find(function(e){return"Instant Learning Admin"===e.name}))||void 0===m?void 0:m._id)&&void 0!==h?h:""}],!1)}}:{topic:"customRuleSet",scope_reference_id:null,scopeDescription:"demo",parentScopeId:null,scopeName:J.station_name||"New Station",scopeReferenceMetadata:{},applicationMappingId:Z},console.log("[StationOnboard] Step 1: Creating rule set with payload:",l),[4,F(l,V)];case 2:if(a=r.sent(),!(i=null===(g=null==a?void 0:a.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return console.log("[StationOnboard] Step 1 Complete: Created scope with ID:",i),Re(1),[3,4];case 3:return s=r.sent(),console.error("[StationOnboard] Error creating rule set:",s),null===(x=We.current)||void 0===x||x.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),Oe(!1),Re(0),[2];case 4:return r.trys.push([4,6,,7]),c=null!==ke&&ke!==(null==po?void 0:po.id),p={source_scope_id:c?ke:null!==(v=null==po?void 0:po.id)&&void 0!==v?v:ke,target_scope_id:i,is_copy_parent_variant_id:c},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",p),[4,_(p)];case 5:return r.sent(),console.log("[StationOnboard] Step 3 Complete: Scope inherited"),Re(3),[3,7];case 6:return u=r.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",u),null===(b=We.current)||void 0===b||b.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),Oe(!1),Re(0),[2];case 7:return qe.current=i,console.log("[StationOnboard] Onboarding completed successfully!"),[2]}})})},disabled:!go||Be,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:go?"#2563EB":"#BFDBFE",color:"#fff",cursor:go&&!Be?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:i(l,Be?{children:[t(g,{size:16,color:"inherit"}),t("span",{children:"Onboarding..."})]}:{children:[t("span",{children:"Onboard Station"}),t(b,{size:16})]})}))]}))]}))};export{G as default};
|
|
1
|
+
import{__assign as e,__awaiter as o,__generator as r,__spreadArray as n}from"tslib";import{jsxs as i,jsx as t,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as c,useEffect as p}from"react";import{Dialog as u,Box as d,Typography as f,IconButton as m,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as x,Search as v,ArrowRight as b}from"lucide-react";import{Toast as S}from"primereact/toast";import{v4 as y}from"uuid";import{retrieveGenreScopes as C,searchScopes as w,inheritScopeBackwardCompatible as _,createRuleSet as F}from"../../apis/scopeApis.js";import T from"./StationAutocomplete.js";import k from"../CardSkeleton.js";import E from"./OnboardingLoader.js";import z from"./TemplateCard.js";import D from"../../styles/StationOnboardModal.module.css.js";import B from"./InputField.js";import O from"../../store/useAuthStore.js";import{useConfigStore as I}from"../../store/useConfigStore.js";import{useLearningTemplateStore as A}from"../../store/useLearningTemplateStore.js";import{IL_CONFIG_CONSTANTS as R}from"../../config.js";import{useAppSecRolesStore as j}from"../../store/useAppSecRolesStore.js";import L from"../../store/useEnvStore.js";import N from"../../RuleContent/AddScopeApprovalSearchComponent.js";var M=[{label:"PT - Pacific Time",value:"Pacific Time"},{label:"MT - Mountain Time",value:"Mountain Time"},{label:"CT - Central Time",value:"Central Time"},{label:"ET - Eastern Time",value:"Eastern Time"}],W=[{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"},{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"}],q=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],P=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],G=function(G){var U,H=G.isOpen,K=G.onClose,Y=G.onBoardStation,Z=G.app_integration_id,V=G.token,X=a(null),J=X[0],Q=X[1],$=a([]),ee=$[0],oe=$[1],re=a(0),ne=re[0],ie=re[1],te=a(!0),le=te[0],ae=te[1],se=a(!1),ce=se[0],pe=se[1],ue=a([]),de=ue[0],fe=ue[1],me=a(""),he=me[0],ge=me[1],xe=a(""),ve=xe[0],be=xe[1],Se=a(!1),ye=Se[0],Ce=Se[1],we=a(!1),_e=we[0],Fe=we[1],Te=a(null),ke=Te[0],Ee=Te[1],ze=a(null);ze[0],ze[1];var De=a(!1),Be=De[0],Oe=De[1],Ie=a(0),Ae=Ie[0],Re=Ie[1],je=a(""),Le=je[0],Ne=je[1],Me=O().user,We=s(null),qe=s(null),Pe=s(null),Ge=s(null);I().configuration;var Ue=s(null),He=j(function(e){return e.roles}),Ke=L(function(e){return e.rbacConfig}),Ye=a("approval_required"),Ze=Ye[0],Ve=Ye[1],Xe=a([]),Je=Xe[0],Qe=Xe[1],$e=a([]),eo=$e[0],oo=$e[1],ro=a(""),no=ro[0],io=ro[1],to=a({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),lo=to[0],ao=to[1],so=function(e,o){return e.find(function(e){return e.value===o})||null},co=c(function(){return ee.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[ee]),po=c(function(){var e,o,r;if(!lo.genre)return null;var n=ee.find(function(e){return e.scope_name===lo.genre});return n?{id:n.id,title:n.scope_name||"Unnamed Template",description:(null===(e=n.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(o=n.inheritance)||void 0===o?void 0:o[0])||void 0,rulesCount:n.rules_count||0,tiersCount:n.tier_count||0,isCopy:null!==(r=n.is_copy)&&void 0!==r&&r}:null},[lo.genre,ee]);p(function(){return function(){Pe.current&&clearTimeout(Pe.current)}},[]);var uo=function(e){return o(void 0,void 0,void 0,function(){var o,i,t;return r(this,function(r){switch(r.label){case 0:if(ce)return[2];pe(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,C({limit:"20",offset:String(e)})];case 2:return"success"===(null==(o=r.sent())?void 0:o.status)&&Array.isArray(null==o?void 0:o.data)?(i=o.data,oe(function(o){if(0===e)return i;var r=new Set(o.map(function(e){return e.id})),t=i.filter(function(e){return!r.has(e.id)});return n(n([],o,!0),t,!0)}),i.length<20?ae(!1):ae(!0),ie(e+20)):ae(!1),[3,5];case 3:return t=r.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",t),ae(!1),[3,5];case 4:return pe(!1),[7];case 5:return[2]}})})};p(function(){H&&(oe([]),ie(0),ae(!0),uo(0))},[H]);p(function(){ao(J?function(o){var r;return e(e({},o),{region:null!==(r=J.market)&&void 0!==r?r:""})}:{region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""})},[J]),p(function(){var e=setTimeout(function(){be(he)},500);return function(){return clearTimeout(e)}},[he]),p(function(){o(void 0,void 0,void 0,function(){var e,o,n,i;return r(this,function(r){switch(r.label){case 0:if(!ve.trim())return fe([]),[2];Ce(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,w({search_string:ve.trim()})];case 2:return"success"===(null==(e=r.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(o=e.data.filter(function(e){var o,r=null!==(o=e.inheritance)&&void 0!==o?o:[],n=r.indexOf(e.scope_name);return!(n<=0)&&r[n-1]===lo.genre}),n=o.map(function(e){var o,r,n;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(o=e.description)||void 0===o?void 0:o.trim())||"No description available.",inheritedText:(null===(r=e.inheritance)||void 0===r?void 0:r[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(n=e.is_copy)&&void 0!==n&&n}}),fe(n)):fe([]),[3,5];case 3:return i=r.sent(),console.error("[StationOnboard] Error searching scopes:",i),fe([]),[3,5];case 4:return Ce(!1),[7];case 5:return[2]}})})},[ve,lo.genre]),p(function(){!ve.trim()&&po&&Ee(po.id)},[ve,po]);var fo=function(){setTimeout(function(){Ge.current&&Ge.current.scrollTo({top:Ge.current.scrollHeight,behavior:"smooth"})},100)},mo=function(){Ne(""),Q(null),ao({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),fe([]),ge(""),Ee(null),Ve("approval_required"),Qe([]),oo([]),io(""),K()},ho=function(o,r){var n;if("primeTime"!==o){var i=null!==(n=null==r?void 0:r.value)&&void 0!==n?n:"";ao(function(r){var n;return e(e({},r),((n={})[o]=String(i),n))}),"genre"===o&&(Fe(!0),Pe.current&&clearTimeout(Pe.current),Pe.current=setTimeout(function(){var e=ee.find(function(e){return e.scope_name===i});Ee(e?e.id:null),Fe(!1)},800))}else{var t=(null==r?void 0:r.value)?String(r.value):"";ao(function(o){return e(e({},o),{primeTime:t?[t]:[]})})}},go=Boolean(J&&lo.region&&lo.timezone&&lo.primeTime.length>0&&lo.genre);return i(u,e({open:H,onClose:mo,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"sans-serif"}}},{children:[t(S,{ref:We}),i(d,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[i(d,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[t(f,e({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),t(f,e({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),t(m,e({onClick:mo,disabled:Be,sx:{color:"#19213D"}},{children:t(x,{size:24})}))]})),i(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[t(E,{isLoading:Be,currentStep:Ae,onComplete:function(){Oe(!1);var e=qe.current;mo(),Y(e||void 0),qe.current=null}}),t(d,e({sx:{display:"flex",flex:1,flexDirection:"column",paddingY:"14px",paddingX:"20px",gap:2,overflowY:"auto"}},{children:i(d,e({sx:{display:"flex",gap:3}},{children:[i(d,e({ref:Ge,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5"}},{children:[t(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),t(f,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),i(d,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[i(d,e({className:D.formGroup},{children:[i("label",e({className:D.label},{children:[t("span",e({className:D.asterisk},{children:"*"})),"Station Name/Call Letters"]})),t(T,{value:Le,onChange:Ne,onStationSelect:function(e){return Q(e)}})]})),t(B,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:lo.region||void 0,isSearchable:!1}),t(B,{required:!0,label:"TimeZone",placeholder:"Select TimeZone",options:M,value:so(M,lo.timezone),onOptionChange:function(e){return ho("timezone",e)},isSearchable:!1}),t(B,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:W,value:so(W,(null===(U=lo.primeTime)||void 0===U?void 0:U[0])||""),onOptionChange:function(e){return ho("primeTime",e)},isSearchable:!1}),t(d,e({onClick:fo,sx:{width:"100%"}},{children:t(B,{label:"Station Type",placeholder:"None",options:q,value:so(q,lo.type),onOptionChange:function(o){ho("type",o),"Low Sellout"!==(null==o?void 0:o.value)&&ao(function(o){return e(e({},o),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===lo.type&&t(d,e({onClick:fo,sx:{width:"100%"}},{children:t(B,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:P,value:so(P,lo.lowSelloutConfig),onOptionChange:function(e){return ho("lowSelloutConfig",e)},isSearchable:!1})})),A.getState().backwardCompatibility&&i("div",e({ref:Ue,style:{display:"flex",flexDirection:"column",marginTop:"12px"}},{children:[t(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Approval Settings"})),t(f,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Configure who can approve learnings before they get published."})),i("div",e({style:{marginBottom:"12px",fontSize:"12px",color:"#8F2C23",gap:"16px"}},{children:[i("div",e({style:{marginBottom:"12px",fontSize:"12px",color:"#8F2C23",gap:"12px"}},{children:[i("div",e({role:"radio","aria-checked":"approval_required"===Ze,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",marginBottom:"8px"},onClick:function(){return Ve("approval_required")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||Ve("approval_required")}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[t("div",e({style:{display:"flex",height:"16px",width:"16px",flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("approval_required"===Ze?"#2563EB":"#CBD5E1")}},{children:"approval_required"===Ze&&t("div",{style:{height:"8px",width:"8px",borderRadius:"50%",backgroundColor:"#2563EB"}})})),t("span",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:"Approval Required Before Publishing"}))]})),t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#666F8D"}},{children:"Learnings require approval before publishing."}))]})),i("div",e({style:{gap:"16px"}},{children:["approval_required"===Ze&&t(N,{selectedApprovers:Je,selectedGroupOfApprovers:eo,onApproversChange:function(e){Qe(e),io("")},onGroupsChange:function(e){oo(e),io("")}}),no&&t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#8F2C23"}},{children:no}))]}))]})),i("div",e({role:"radio","aria-checked":"publish_without"===Ze,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px"},onClick:function(){Ve("publish_without"),io("")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(Ve("publish_without"),io(""))}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[t("div",e({style:{display:"flex",height:"16px",width:"16px",flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("publish_without"===Ze?"#2563EB":"#CBD5E1")}},{children:"publish_without"===Ze&&t("div",{style:{height:"8px",width:"8px",borderRadius:"50%",backgroundColor:"#2563EB"}})})),t("span",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:"Publish Without Approval"}))]})),t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#666F8D"}},{children:"Learnings can be published directly."}))]}))]}))]}))]}))]})),i(d,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column"}},{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:[t("span",e({style:{color:"#E53E3E",marginRight:"2px"}},{children:"*"})),"Select a scope for your station"]})),t(f,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:"16px"}},{children:"Your station will inherit the rules from the selected scope."})),t(d,e({sx:{mb:2}},{children:t(B,{required:!0,label:"",placeholder:"Select Genre",options:co,value:so(co,lo.genre),onOptionChange:function(e){return ho("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ce&&le&&uo(ne)},isLoadingOptions:ce,hasMoreOptions:le})})),t(d,e({sx:{mb:3}},{children:_e?t(k,{}):po?i(d,e({sx:{border:"1.5px solid #2563EB",borderRadius:"10px",p:"14px 16px",bgcolor:"#EFF6FF",display:"flex",alignItems:"flex-start",gap:"12px"}},{children:[t(d,e({sx:{width:36,height:36,borderRadius:"8px",bgcolor:"#DBEAFE",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:i("svg",e({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("circle",{cx:"12",cy:"12",r:"2"}),t("path",{d:"M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"})]}))})),i(d,e({sx:{flex:1,minWidth:0}},{children:[t(f,e({sx:{fontSize:"0.875rem",fontWeight:600,color:"#1E3A5F",mb:"2px"}},{children:po.title})),t(f,e({sx:{fontSize:"0.75rem",color:"#2563EB",mb:"8px"}},{children:po.description})),i(d,e({sx:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"}},{children:[po.inheritedText&&i(d,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px",display:"inline-flex",alignItems:"center",gap:"4px"}},{children:[i("svg",e({width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("polyline",{points:"15 3 21 3 21 9"}),t("path",{d:"M21 3L9 15"}),t("path",{d:"M3 21l6-6"})]})),po.inheritedText]})),i(d,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px"}},{children:[po.rulesCount," rules"]})),i(d,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px"}},{children:[po.tiersCount," Tiers"]}))]}))]}))]})):lo.genre?null:t(d,e({sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.4,py:6,gap:1}},{children:t(f,e({sx:{fontSize:"0.75rem",color:"#94A3B8"}},{children:"Select a genre to load the matching scope"}))}))})),lo.genre&&i(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:["Select an Existing Station from the “",lo.genre,"” Scope"," ",t(f,e({component:"span",sx:{fontSize:"1rem",fontWeight:400,color:"#64748B"}},{children:"(Optional)"}))]})),i(f,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:"12px"}},{children:["Please select an existing station under the “",lo.genre,"” category to copy its learnings."]})),i("div",e({className:D.searchWrapper,style:{marginBottom:"12px"}},{children:[t("input",{type:"text",value:he,onChange:function(e){return ge(e.target.value)},placeholder:"Search for station...",className:D.searchInput}),t(v,{className:D.searchIcon,size:16})]})),i(d,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[ye&&t(k,{}),!ye&&0===de.length&&ve.trim()&&i(f,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',ve,'".']})),!ye&&de.map(function(o){return t(z,e({},o,{isSelected:ke===o.id,onSelect:function(e){var o;Ee(ke===e?null!==(o=null==po?void 0:po.id)&&void 0!==o?o:null:e)}}),o.id)})]}))]})]}))]}))}))]})),i(d,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[t("button",e({onClick:mo,disabled:Be,style:{padding:"7px 10px",borderRadius:"6px",color:"#64748B",border:"1px solid #E2E8F0",backgroundColor:"#fff",cursor:"pointer",fontSize:"14px",fontWeight:500}},{children:"Cancel"})),t("button",e({onClick:function(){return o(void 0,void 0,void 0,function(){var e,o,i,t,l,a,s,c,p,u,d,f,m,h,g,x,v,b,S;return r(this,function(r){switch(r.label){case 0:if(!J||!ke)return console.error("[StationOnboard] Missing required data for onboarding"),[2];if(A.getState().backwardCompatibility&&"approval_required"===Ze&&0===Je.length&&0===eo.length)return io("Please select at least one approver or approver group."),setTimeout(function(){var e;null===(e=Ue.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50),[2];io(""),e=po?n([po],de,!0):de,o=e.find(function(e){return e.id===ke}),null==o?void 0:o.isCopy,Oe(!0),Re(0),i=null,r.label=1;case 1:return r.trys.push([1,3,,4]),t=A.getState().backwardCompatibility,l=t?{topic:"customRuleSet",customScopeGroupName:R.CUSTOM_SCOPE_GROUP_NAME,scopeDescription:J.station_name||"New Station",parentScopeId:null!==(d=null==po?void 0:po.id)&&void 0!==d?d:null,customScopeName:J.station_name||"New Station",customScopeId:y(),createByName:(null==Me?void 0:Me.firstname)||"System",createdBy:(null==Me?void 0:Me.email)||"system@audacy.com",scopeType:"Station",approvalRequired:"approval_required"===Ze,audacyStationMetadata:{genre:lo.genre,low_sellout_configurations:"Low Sellout"===lo.type?lo.lowSelloutConfig:null,market:J.market,primetime_windows:lo.primeTime,region:J.region,station_guid:J.station_guid,station_type:""===lo.type?null:lo.type},appsecData:{application:null==Ke?void 0:Ke.applicationId,module:null==Ke?void 0:Ke.moduleId,roles:n(n([],"approval_required"===Ze?[{users:Je.map(function(e){return e.email}),groups:eo.map(function(e){return e._id}),role:null!==(m=null===(f=He.find(function(e){return"Learning Manager"===e.name}))||void 0===f?void 0:f._id)&&void 0!==m?m:""}]:[],!0),[{users:[null==Me?void 0:Me.email],groups:[],role:null!==(g=null===(h=He.find(function(e){return"Instant Learning Admin"===e.name}))||void 0===h?void 0:h._id)&&void 0!==g?g:""}],!1)}}:{topic:"customRuleSet",scope_reference_id:null,scopeDescription:"demo",parentScopeId:null,scopeName:J.station_name||"New Station",scopeReferenceMetadata:{},applicationMappingId:Z},console.log("[StationOnboard] Step 1: Creating rule set with payload:",l),[4,F(l,V)];case 2:if(a=r.sent(),!(i=null===(x=null==a?void 0:a.data)||void 0===x?void 0:x.scopeId))throw new Error("Failed to create scope - no scopeId returned");return console.log("[StationOnboard] Step 1 Complete: Created scope with ID:",i),Re(1),[3,4];case 3:return s=r.sent(),console.error("[StationOnboard] Error creating rule set:",s),null===(v=We.current)||void 0===v||v.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),Oe(!1),Re(0),[2];case 4:return r.trys.push([4,6,,7]),c=null!==ke&&ke!==(null==po?void 0:po.id),p={source_scope_id:c?ke:null!==(b=null==po?void 0:po.id)&&void 0!==b?b:ke,target_scope_id:i,is_copy_parent_variant_id:c},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",p),[4,_(p)];case 5:return r.sent(),console.log("[StationOnboard] Step 3 Complete: Scope inherited"),Re(3),[3,7];case 6:return u=r.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",u),null===(S=We.current)||void 0===S||S.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),Oe(!1),Re(0),[2];case 7:return qe.current=i,console.log("[StationOnboard] Onboarding completed successfully!"),[2]}})})},disabled:!go||Be,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:go?"#2563EB":"#BFDBFE",color:"#fff",cursor:go&&!Be?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:i(l,Be?{children:[t(g,{size:16,color:"inherit"}),t("span",{children:"Onboarding..."})]}:{children:[t("span",{children:"Onboard Station"}),t(b,{size:16})]})}))]}))]}))};export{G as default};
|
|
2
2
|
//# sourceMappingURL=StationOnboardModal.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as r,__generator as e}from"tslib";import{create as
|
|
1
|
+
import{__awaiter as r,__generator as e}from"tslib";import{create as n}from"zustand";import{appsecApi as i}from"../apis/scopeApis.js";import o from"./useEnvStore.js";var s=function(r,e){return!!e&&function(r){return r?"string"==typeof r?[r]:[r._id,r.id,r.resourceId,r.resource_id].filter(function(r){return"string"==typeof r&&r.length>0}):[]}(r).includes(e)},t=n(function(n,t){return{accessData:[],isLoading:!1,error:null,fetchPermissions:function(o,s){return r(void 0,void 0,void 0,function(){var r,t,a;return e(this,function(e){switch(e.label){case 0:if(!o)return[2];n({isLoading:!0,error:null}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i.get("/users/me",{params:{appId:o,resourceId:s}})];case 2:return r=e.sent(),n({accessData:(null===(a=r.data)||void 0===a?void 0:a.data)||[],isLoading:!1}),[3,4];case 3:return t=e.sent(),console.error("Failed to fetch permissions:",t),n({error:t.message||"Failed to fetch permissions",isLoading:!1}),[3,4];case 4:return[2]}})})},hasPermission:function(r,e){var n,i=t().accessData,a=null===(n=o.getState().rbacConfig)||void 0===n?void 0:n.applicationResourceId,u=function(r,e){return i.some(function(n){var i,o,t;return s(n.resourceId,e)&&null!==(t=null===(o=null===(i=n.role)||void 0===i?void 0:i.permissions)||void 0===o?void 0:o.some(function(e){return e.name===r}))&&void 0!==t&&t})};return!(!a||!u(r,a))||u(r,e)},hasGlobalPermission:function(r,e){return!!e&&(t().hasApplicationAccess(e)||t().hasPermission(r,e))},hasApplicationAccess:function(r){return!!r&&t().accessData.some(function(e){var n,i,o;return s(e.resourceId,r)&&null!==(o=null===(i=null===(n=e.role)||void 0===n?void 0:n.permissions)||void 0===i?void 0:i.some(function(r){return"ilotj.scope.access.application.user.add"===r.name}))&&void 0!==o&&o})},reset:function(){return n({accessData:[],isLoading:!1,error:null})}}});export{t as usePermissionsStore};
|
|
2
2
|
//# sourceMappingURL=usePermissionsStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordianHeadTest.d.ts","sourceRoot":"","sources":["../../../src/AccordianHeadTest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccordianHeadTest.d.ts","sourceRoot":"","sources":["../../../src/AccordianHeadTest.tsx"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB,4CAoBhC"}
|
package/dist/types/src/App.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":"AAcA,iBAAS,GAAG,4CAEX;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -4,6 +4,6 @@ type Props = {
|
|
|
4
4
|
state: "collapsed" | "expanded";
|
|
5
5
|
onStateChange: (state: "collapsed" | "expanded") => void;
|
|
6
6
|
};
|
|
7
|
-
export declare function AccordianHead(props: Props): import("react").JSX.Element;
|
|
7
|
+
export declare function AccordianHead(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=AccordianHead.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordianHead.d.ts","sourceRoot":"","sources":["../../../../../src/CommonComponents/AccordianHead/AccordianHead.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,KAAK,KAAK,GAAG;IACX,oBAAoB,EAAE,YAAY,CAAC;IACnC,KAAK,EAAE,WAAW,GAAG,UAAU,CAAC;IAChC,aAAa,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK
|
|
1
|
+
{"version":3,"file":"AccordianHead.d.ts","sourceRoot":"","sources":["../../../../../src/CommonComponents/AccordianHead/AccordianHead.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,KAAK,KAAK,GAAG;IACX,oBAAoB,EAAE,YAAY,CAAC;IACnC,KAAK,EAAE,WAAW,GAAG,UAAU,CAAC;IAChC,aAAa,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,2CAYzC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const GradientSparkleIcon: ({ color }: {
|
|
3
2
|
color?: string | undefined;
|
|
4
|
-
}) =>
|
|
3
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default GradientSparkleIcon;
|
|
6
5
|
//# sourceMappingURL=GradientSparkleIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GradientSparkleIcon.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/GradientSparkleIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GradientSparkleIcon.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/GradientSparkleIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,mBAAmB;;6CAqBxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const HelloWorld: () => import("react").JSX.Element;
|
|
1
|
+
export declare const HelloWorld: () => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=HelloWorld.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelloWorld.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/HelloWorld.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"HelloWorld.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/HelloWorld.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,+CAEtB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Props = {
|
|
2
2
|
colSpan: number;
|
|
3
3
|
};
|
|
4
|
-
declare const NoTableData: (props: Props) => import("react").JSX.Element;
|
|
4
|
+
declare const NoTableData: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export { NoTableData };
|
|
6
6
|
//# sourceMappingURL=NoTableData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoTableData.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/NoTableData.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACT,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,WAAW,UAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"NoTableData.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/NoTableData.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACT,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,WAAW,UAAW,KAAK,4CAYhC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/Spinner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAA;AAEpB,QAAA,MAAM,OAAO,+CAMZ,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleFilePickerDemo.d.ts","sourceRoot":"","sources":["../../../src/GoogleFilePickerDemo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GoogleFilePickerDemo.d.ts","sourceRoot":"","sources":["../../../src/GoogleFilePickerDemo.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,oBAAoB,4CAsD3C"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ThinkingBulbIconComponent: () => React.JSX.Element;
|
|
1
|
+
declare const ThinkingBulbIconComponent: () => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export default ThinkingBulbIconComponent;
|
|
4
3
|
//# sourceMappingURL=ThinkingBulbIconComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThinkingBulbIconComponent.d.ts","sourceRoot":"","sources":["../../../src/ThinkingBulbIconComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThinkingBulbIconComponent.d.ts","sourceRoot":"","sources":["../../../src/ThinkingBulbIconComponent.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,yBAAyB,+CAI9B,CAAA;AAED,eAAe,yBAAyB,CAAA"}
|
|
@@ -13,6 +13,6 @@ interface IProps {
|
|
|
13
13
|
export declare const goToNextScreenFunctionRef: {
|
|
14
14
|
current?: () => void;
|
|
15
15
|
};
|
|
16
|
-
declare const DataSelector: (props: IProps) =>
|
|
16
|
+
declare const DataSelector: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default DataSelector;
|
|
18
18
|
//# sourceMappingURL=DataSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSelector.d.ts","sourceRoot":"","sources":["../../../../../src/features/DataSelector/DataSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAStD,OAAO,EAAE,KAAK,EAAE,MAAM,6DAA6D,CAAC;AAUpF,UAAU,MAAM;IACZ,qBAAqB,CAAC,EAAE,KAAK,EAAE,CAAC;IAChC,wBAAwB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACzE,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;IAC5B,qBAAqB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACrE,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAG5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,eAAO,MAAM,yBAAyB,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAO,CAAC;AAEtE,QAAA,MAAM,YAAY,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"DataSelector.d.ts","sourceRoot":"","sources":["../../../../../src/features/DataSelector/DataSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAStD,OAAO,EAAE,KAAK,EAAE,MAAM,6DAA6D,CAAC;AAUpF,UAAU,MAAM;IACZ,qBAAqB,CAAC,EAAE,KAAK,EAAE,CAAC;IAChC,wBAAwB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACzE,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;IAC5B,qBAAqB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACrE,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAG5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,eAAO,MAAM,yBAAyB,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAO,CAAC;AAEtE,QAAA,MAAM,YAAY,UAAW,MAAM,4CAoJlC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSelectionOptionsScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/DataSelectionOptionsScreen.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"DataSelectionOptionsScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/DataSelectionOptionsScreen.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,0BAA0B,+CAmE/B,CAAA;AAED,eAAe,0BAA0B,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const RLEFDataPointsListInSelectedDataSetCollection: () => import("react").JSX.Element;
|
|
1
|
+
declare const RLEFDataPointsListInSelectedDataSetCollection: () => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default RLEFDataPointsListInSelectedDataSetCollection;
|
|
3
3
|
//# sourceMappingURL=RLEFDataPointsListInSelectedDataSetCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RLEFDataPointsListInSelectedDataSetCollection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,6CAA6C,
|
|
1
|
+
{"version":3,"file":"RLEFDataPointsListInSelectedDataSetCollection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,6CAA6C,+CAgDlD,CAAA;AAED,eAAe,6CAA6C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RLEFDataSetCollectionsList.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RLEFDataSetCollectionsList.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"RLEFDataSetCollectionsList.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RLEFDataSetCollectionsList.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,0BAA0B,+CAgF/B,CAAA;AAED,eAAe,0BAA0B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RlefDataTabsComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RlefDataTabsComponent.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"RlefDataTabsComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RlefDataTabsComponent.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,qBAAqB,+CA+D1B,CAAA;AAED,eAAe,qBAAqB,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const RlefHistoricalCopilotData: () => React.JSX.Element;
|
|
1
|
+
declare const RlefHistoricalCopilotData: () => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export default RlefHistoricalCopilotData;
|
|
4
3
|
//# sourceMappingURL=RlefHistoricalCopilotData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RlefHistoricalCopilotData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RlefHistoricalCopilotData.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RlefHistoricalCopilotData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RlefHistoricalCopilotData.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,yBAAyB,+CAuD9B,CAAA;AAED,eAAe,yBAAyB,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type TProps = {
|
|
3
2
|
userEmail: string;
|
|
4
3
|
};
|
|
@@ -9,6 +8,6 @@ export type TDataSet = {
|
|
|
9
8
|
createdAt: string;
|
|
10
9
|
dataPointsCount: string;
|
|
11
10
|
};
|
|
12
|
-
declare function SavedDataSetListScreen({ userEmail }: TProps): import("react").JSX.Element;
|
|
11
|
+
declare function SavedDataSetListScreen({ userEmail }: TProps): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export default SavedDataSetListScreen;
|
|
14
13
|
//# sourceMappingURL=SavedDataSetListScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SavedDataSetListScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/SavedDataSetListScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SavedDataSetListScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/SavedDataSetListScreen.tsx"],"names":[],"mappings":"AAIA,KAAK,MAAM,GAAG;IACV,SAAS,EAAG,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,iBAAS,sBAAsB,CAAC,EAAE,SAAS,EAAE,EAAG,MAAM,2CA6BrD;AAED,eAAe,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedDataList.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/SelectedDataList.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SelectedDataList.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/SelectedDataList.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,gBAAgB,+CAyErB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -6,6 +6,6 @@ type TProps = {
|
|
|
6
6
|
setDatasets: React.Dispatch<React.SetStateAction<TDataSet[]>>;
|
|
7
7
|
userEmail: string;
|
|
8
8
|
};
|
|
9
|
-
declare function DataSetElement({ dataSet, setDatasets, userEmail }: TProps): import("react").JSX.Element;
|
|
9
|
+
declare function DataSetElement({ dataSet, setDatasets, userEmail }: TProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default DataSetElement;
|
|
11
11
|
//# sourceMappingURL=DataSetElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSetElement.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAEvD,KAAK,MAAM,GAAG;IACV,OAAO,EAAE,QAAQ,CAAC;IAClB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC9D,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,iBAAS,cAAc,CAAC,EAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAC,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"DataSetElement.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAEvD,KAAK,MAAM,GAAG;IACV,OAAO,EAAE,QAAQ,CAAC;IAClB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC9D,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,iBAAS,cAAc,CAAC,EAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAC,EAAC,MAAM,2CA0E/D;AAED,eAAe,cAAc,CAAA"}
|
package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './Pagination.css';
|
|
3
2
|
declare function Pagination({ checked, openSelectedDataList }: {
|
|
4
3
|
checked: any;
|
|
5
4
|
openSelectedDataList: any;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default Pagination;
|
|
8
7
|
//# sourceMappingURL=Pagination.d.ts.map
|
package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/DataSelector/components/subcomponents/Pagination/Pagination.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/DataSelector/components/subcomponents/Pagination/Pagination.tsx"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAA;AAIzB,iBAAS,UAAU,CAAC,EAAC,OAAO,EAAE,oBAAoB,EAAC;;;CAAA,2CAalD;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const MessageRendering: ({ index, content, messages, handleStream, scrollToBottom }: {
|
|
3
2
|
index: number;
|
|
4
3
|
content: string;
|
|
5
4
|
messages: any;
|
|
6
5
|
handleStream: any;
|
|
7
6
|
scrollToBottom: any;
|
|
8
|
-
}) =>
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default MessageRendering;
|
|
10
9
|
//# sourceMappingURL=MessageRendering.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DocumentLearning/_components/MessageRendering.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DocumentLearning/_components/MessageRendering.tsx"],"names":[],"mappings":"AA8JA,QAAA,MAAM,gBAAgB;WAEP,MAAM;aACJ,MAAM;cACL,GAAG;kBACC,GAAG;oBACD,GAAG;6CA2pB1B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const MinimizedThinkingSteps: ({ orchestratorAndAgentsMessages, isStreamEnd, isCurrentMessage, name, ThinkingBulbIconComponent }: any) => React.JSX.Element;
|
|
1
|
+
declare const MinimizedThinkingSteps: ({ orchestratorAndAgentsMessages, isStreamEnd, isCurrentMessage, name, ThinkingBulbIconComponent }: any) => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export default MinimizedThinkingSteps;
|
|
4
3
|
//# sourceMappingURL=MinimizedThinkingSteps.d.ts.map
|
package/dist/types/src/features/DocumentLearning/_components/MinimizedThinkingSteps.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinimizedThinkingSteps.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DocumentLearning/_components/MinimizedThinkingSteps.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MinimizedThinkingSteps.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DocumentLearning/_components/MinimizedThinkingSteps.tsx"],"names":[],"mappings":"AAmEA,QAAA,MAAM,sBAAsB,sGAAuG,GAAG,4CAwIrI,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowDown.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/ArrowDown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArrowDown.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/ArrowDown.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS,+CAOd,CAAC;AAEF,eAAe,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowIconBlue.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/ArrowIconBlue.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArrowIconBlue.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/ArrowIconBlue.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,+CAOlB,CAAC;AAEF,eAAe,aAAa,CAAA"}
|
package/dist/types/src/features/DocumentLearning/_components/_svg/CompleteIconGreen.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompleteIconGreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/CompleteIconGreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompleteIconGreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/CompleteIconGreen.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,iBAAiB,+CAsBpB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|