@sim-design/training 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +481 -15
- package/dist/{ArrowLeftOutlined-CiSQq3bL.js → ArrowLeftOutlined-BxA84GXs.js} +1 -1
- package/dist/ArrowLeftOutlined-D785XjyB.js +12 -0
- package/dist/{AssessmentPlugin-Bx4VrBdV.js → AssessmentPlugin-D_iesmyg.js} +7 -7
- package/dist/AssessmentPlugin-zRr-IsdA.js +607 -0
- package/dist/CaseAnalysisPlugin-CXuQpkPd.js +2196 -0
- package/dist/CaseAnalysisPlugin-DytlXsRD.js +2196 -0
- package/dist/CaseDetailContent-DT5nCtRT.js +28613 -0
- package/dist/CaseDetailContent-Y7Q430MG.js +28595 -0
- package/dist/{CharacterDialoguePanel-Bvdab3qj.js → CharacterDialoguePanel-CdtUl-Sv.js} +178 -139
- package/dist/CharacterDialoguePanel-D_4YNFZv.js +815 -0
- package/dist/{CheckCircleFilled-Byo8CDfW.js → CheckCircleFilled-CnslIY7j.js} +1 -1
- package/dist/CheckCircleFilled-NvZaC2sk.js +12 -0
- package/dist/DecisionMakingPlugin-B_KQUFzW.js +1385 -0
- package/dist/DecisionMakingPlugin-ILLGek3S.js +1385 -0
- package/dist/{DecisionSelectPlugin-DtQ2KV34.js → DecisionSelectPlugin-BGQiHGBK.js} +20 -11
- package/dist/DecisionSelectPlugin-Bqmh6XGh.js +872 -0
- package/dist/{DecisionShared-Dh9oeQFT.js → DecisionShared-BHq1lEqt.js} +2 -2
- package/dist/DecisionShared-Be-zKZLT.js +65 -0
- package/dist/DeleteOutlined-BvMjU7m5.js +12 -0
- package/dist/DeleteOutlined-Dqy6M2LH.js +12 -0
- package/dist/{CustomLayoutRenderer--rnQrqQ2.js → DialogueFormPlugin-BpCeFadt.js} +22724 -21631
- package/dist/DialogueFormPlugin-CXlbxX-z.js +123617 -0
- package/dist/DialoguePlugin-CO7Nzv0K.js +596 -0
- package/dist/DialoguePlugin-DDNdsylz.js +596 -0
- package/dist/DocumentReviewPlugin-2CnKQwVG.js +1967 -0
- package/dist/DocumentReviewPlugin-qYYrnjvE.js +1967 -0
- package/dist/{EyeOutlined-XvOAKlLs.js → EyeOutlined-BrKCNjui.js} +1 -1
- package/dist/EyeOutlined-CW0tYV0f.js +12 -0
- package/dist/FormFillingPlugin-C3h8ySOZ.js +969 -0
- package/dist/FormFillingPlugin-CPmd76Qr.js +969 -0
- package/dist/HolderOutlined-CH0tShWu.js +12 -0
- package/dist/HolderOutlined-Dm6TBtqf.js +12 -0
- package/dist/ModelEditor-BjEbFloQ.js +11753 -0
- package/dist/ModelEditor-CwR67DFQ.js +11753 -0
- package/dist/{ProcessOperationPlugin-IijngDlX.js → ProcessOperationPlugin-1Lz431aC.js} +12 -12
- package/dist/ProcessOperationPlugin-BkmdG3ch.js +88 -0
- package/dist/QAPlugin-0C4kpq3J.js +172 -0
- package/dist/QAPlugin-UC8uywcg.js +172 -0
- package/dist/{ReloadOutlined-Daor2m11.js → ReloadOutlined-BZ92nlYF.js} +1 -1
- package/dist/ReloadOutlined-CYoPOwLl.js +12 -0
- package/dist/{SettingOutlined-CLEOgXB-.js → SettingOutlined-F466s0Ti.js} +33 -65
- package/dist/SettingOutlined-c2hikCfN.js +60 -0
- package/dist/StarFilled-Bilmj6UK.js +28 -0
- package/dist/StarFilled-CtH30fL0.js +28 -0
- package/dist/StrategyLabPlugin-CvO07sXV.js +12445 -0
- package/dist/StrategyLabPlugin-DUqZYctQ.js +12445 -0
- package/dist/ThunderboltOutlined-BpmoCKdV.js +28 -0
- package/dist/ThunderboltOutlined-DDQFi5Cv.js +28 -0
- package/dist/TrainingModelContainer-DqCsdC7C.js +11241 -0
- package/dist/TrainingModelContainer-yi8W6KFl.js +11241 -0
- package/dist/{UndoOutlined-ChUQYUul.js → UndoOutlined-6JZVzmdX.js} +26 -42
- package/dist/UndoOutlined-Dw6_9_OL.js +68 -0
- package/dist/{WarningFilled-1Rc4hr0C.js → WarningFilled-Cy1tvuQy.js} +1 -1
- package/dist/WarningFilled-lkr453eh.js +12 -0
- package/dist/{adapters-D1FFZFoA.js → adapters-BbCnXSYo.js} +2 -2
- package/dist/{analysisTools-CXyOvSZT.js → analysisTools-Cp5-3DaU.js} +59 -12
- package/dist/creator.js +4 -2
- package/dist/designTokens-walF_QkZ.js +23 -0
- package/dist/images/healthcare/bg.jpg +0 -0
- package/dist/{index-CYjdXPgc.js → index-C71iHgSs.js} +2640 -2722
- package/dist/{index-XuBVjlmu.js → index-CBvqcbIU.js} +7214 -7643
- package/dist/index-D94YNWTb.js +433 -0
- package/dist/index-DSYmOXnQ.js +6486 -0
- package/dist/index-fP97rKeQ.js +433 -0
- package/dist/index.js +8 -6
- package/dist/judgement-xTGXlDcn.js +29 -0
- package/dist/runtime.js +1 -1
- package/dist/sortable.esm-bm_c5vmI.js +3307 -0
- package/dist/types.js +1 -1
- package/dist/useDialogueLogic-D1lkUKUZ.js +576 -0
- package/dist/useDialogueLogic-vOJ9XRNP.js +576 -0
- package/dist-types/client/src/admin/CaseDataEditor.d.ts +20 -0
- package/dist-types/client/src/admin/CaseEditor.d.ts +19 -0
- package/dist-types/client/src/admin/DialogueFormCheckRulesEditor.d.ts +11 -0
- package/dist-types/client/src/admin/DialogueFormInitDataEditor.d.ts +31 -0
- package/dist-types/client/src/admin/InitDataEditors.d.ts +7 -0
- package/dist-types/client/src/admin/ModelEditor.d.ts +11 -0
- package/dist-types/client/src/admin/ModelPreview.d.ts +13 -0
- package/dist-types/client/src/admin/OptionSelector.d.ts +32 -0
- package/dist-types/client/src/admin/StageStepEditor.d.ts +20 -0
- package/dist-types/client/src/admin/StepAnswerKeyEditor.d.ts +19 -0
- package/dist-types/client/src/admin/StepByStepCreator.d.ts +27 -0
- package/dist-types/client/src/admin/components/AbilityMapEditor.d.ts +12 -0
- package/dist-types/client/src/admin/components/CasePreview.d.ts +8 -0
- package/dist-types/client/src/admin/components/StepAbilitySelector.d.ts +9 -0
- package/dist-types/client/src/admin/constants/creatorConstants.d.ts +39 -0
- package/dist-types/client/src/admin/editors/CaseAnalysisEditor.d.ts +11 -0
- package/dist-types/client/src/admin/editors/DecisionMakingEditor.d.ts +7 -0
- package/dist-types/client/src/admin/editors/DialogueEditor.d.ts +12 -0
- package/dist-types/client/src/admin/editors/DocumentReviewEditor.d.ts +7 -0
- package/dist-types/client/src/admin/editors/DocumentReviewRuntimeRulesEditor.d.ts +15 -0
- package/dist-types/client/src/admin/editors/FormFillingEditor.d.ts +33 -0
- package/dist-types/client/src/admin/editors/ModelUIConfigEditor.d.ts +5 -0
- package/dist-types/client/src/admin/editors/QAEditor.d.ts +6 -0
- package/dist-types/client/src/admin/editors/RouterEditors.d.ts +18 -0
- package/dist-types/client/src/admin/editors/StepBriefingEditor.d.ts +14 -0
- package/dist-types/client/src/admin/editors/StrategyLabEditor.d.ts +24 -0
- package/dist-types/client/src/admin/editors/decisionEditorParts.d.ts +18 -0
- package/dist-types/client/src/admin/editors/index.d.ts +8 -0
- package/dist-types/client/src/admin/editors/shared.d.ts +17 -0
- package/dist-types/client/src/admin/hooks/useStep1Intent.d.ts +16 -0
- package/dist-types/client/src/admin/hooks/useStep2Outline.d.ts +41 -0
- package/dist-types/client/src/admin/hooks/useStep3Details.d.ts +123 -0
- package/dist-types/client/src/admin/hooks/useStep4Cases.d.ts +48 -0
- package/dist-types/client/src/admin/hooks/useStep5Validation.d.ts +16 -0
- package/dist-types/client/src/admin/landingValidation.d.ts +74 -0
- package/dist-types/client/src/admin/schemaFieldUtils.d.ts +55 -0
- package/dist-types/client/src/admin/services.d.ts +461 -0
- package/dist-types/client/src/admin/shared-editors.d.ts +31 -0
- package/dist-types/client/src/admin/types/creatorArtifacts.d.ts +140 -0
- package/dist-types/client/src/components/AbilityMapView.d.ts +15 -0
- package/dist-types/client/src/components/CaseDetail/CaseDetailContent.d.ts +12 -0
- package/dist-types/client/src/components/ConversationalDataCollector/IntentConfirmPanel.d.ts +20 -0
- package/dist-types/client/src/components/ConversationalDataCollector/index.d.ts +7 -0
- package/dist-types/client/src/components/ConversationalDataCollector/intentState.d.ts +24 -0
- package/dist-types/client/src/components/ConversationalDataCollector/types.d.ts +95 -0
- package/dist-types/client/src/components/ConversationalDataCollector/utils.d.ts +62 -0
- package/dist-types/client/src/components/CustomLayoutRenderer.d.ts +8 -0
- package/dist-types/client/src/components/MarkdownRenderer.d.ts +15 -0
- package/dist-types/client/src/components/StrategyLabScene/VisualInputComponents.d.ts +85 -0
- package/dist-types/client/src/components/StrategyLabScene/components/AdversarialView.d.ts +18 -0
- package/dist-types/client/src/components/StrategyLabScene/components/BottomBar.d.ts +22 -0
- package/dist-types/client/src/components/StrategyLabScene/components/CharacterCard.d.ts +14 -0
- package/dist-types/client/src/components/StrategyLabScene/components/CharacterDialoguePanel.d.ts +32 -0
- package/dist-types/client/src/components/StrategyLabScene/components/CollaborativeView.d.ts +20 -0
- package/dist-types/client/src/components/StrategyLabScene/components/ComparisonView.d.ts +16 -0
- package/dist-types/client/src/components/StrategyLabScene/components/DecisionInput.d.ts +27 -0
- package/dist-types/client/src/components/StrategyLabScene/components/DecisionSwitcher.d.ts +14 -0
- package/dist-types/client/src/components/StrategyLabScene/components/EvaluationReport.d.ts +13 -0
- package/dist-types/client/src/components/StrategyLabScene/components/NodeChainPanels.d.ts +32 -0
- package/dist-types/client/src/components/StrategyLabScene/components/ProgressSteps.d.ts +15 -0
- package/dist-types/client/src/components/StrategyLabScene/components/SandboxView.d.ts +19 -0
- package/dist-types/client/src/components/StrategyLabScene/components/ScenarioPanel.d.ts +17 -0
- package/dist-types/client/src/components/StrategyLabScene/components/SimulationAnimation.d.ts +13 -0
- package/dist-types/client/src/components/StrategyLabScene/components/SimulationResult.d.ts +15 -0
- package/dist-types/client/src/components/StrategyLabScene/components/StressTestView.d.ts +22 -0
- package/dist-types/client/src/components/StrategyLabScene/themeMatching.d.ts +21 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/education.d.ts +45 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/healthcare.d.ts +7 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/index.d.ts +22 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/professional.d.ts +7 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/technology.d.ts +7 -0
- package/dist-types/client/src/components/StrategyLabScene/types.d.ts +82 -0
- package/dist-types/client/src/components/StrategyLabScene/views/UnifiedStrategyLabView.d.ts +72 -0
- package/dist-types/client/src/components/TrainingEngine/BriefingQAChat.d.ts +19 -0
- package/dist-types/client/src/components/TrainingEngine/CaseInfoModal.d.ts +12 -0
- package/dist-types/client/src/components/TrainingEngine/CaseSelector.d.ts +15 -0
- package/dist-types/client/src/components/TrainingEngine/ClassicView.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/DashboardHomePage.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/EnhancedStudentProfilePanel.d.ts +9 -0
- package/dist-types/client/src/components/TrainingEngine/EvaluationPanel.d.ts +8 -0
- package/dist-types/client/src/components/TrainingEngine/GlobalQAPanel.d.ts +34 -0
- package/dist-types/client/src/components/TrainingEngine/GuidanceHistoryDrawer.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/GuidancePanel.d.ts +3 -0
- package/dist-types/client/src/components/TrainingEngine/ImmersiveGameView.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/PluginRenderer.d.ts +15 -0
- package/dist-types/client/src/components/TrainingEngine/ProgressTracker.d.ts +3 -0
- package/dist-types/client/src/components/TrainingEngine/StageAssessingOverlay.d.ts +17 -0
- package/dist-types/client/src/components/TrainingEngine/StageAssessmentPanel.d.ts +10 -0
- package/dist-types/client/src/components/TrainingEngine/StepExecutor.d.ts +20 -0
- package/dist-types/client/src/components/TrainingEngine/StepNodeMap.d.ts +15 -0
- package/dist-types/client/src/components/TrainingEngine/StudentProfilePanel.d.ts +6 -0
- package/dist-types/client/src/components/TrainingEngine/ThemeContext.d.ts +8 -0
- package/dist-types/client/src/components/TrainingEngine/TrainingMaterialsSidebar.d.ts +21 -0
- package/dist-types/client/src/components/TrainingEngine/TrainingModelContainer.d.ts +42 -0
- package/dist-types/client/src/components/TrainingEngine/ViewProps.d.ts +37 -0
- package/dist-types/client/src/components/TrainingEngine/profileDataSelectors.d.ts +23 -0
- package/dist-types/client/src/components/TrainingEngine/stepInitData.d.ts +42 -0
- package/dist-types/client/src/components/TrainingEngine/targetAbilityUtils.d.ts +11 -0
- package/dist-types/client/src/components/VisualizationRenderer/ChartRenderer.d.ts +12 -0
- package/dist-types/client/src/components/VisualizationRenderer/types.d.ts +41 -0
- package/dist-types/client/src/config/appConfig.d.ts +15 -0
- package/dist-types/client/src/configs/agentConfig.d.ts +66 -0
- package/dist-types/client/src/configs/intentDiscoveryConfig.d.ts +22 -0
- package/dist-types/client/src/data/mockTrainingModel.d.ts +10 -0
- package/dist-types/client/src/hooks/useAIService.d.ts +17 -0
- package/dist-types/client/src/hooks/useDialogueLogic.d.ts +53 -0
- package/dist-types/client/src/hooks/useFormFillingLogic.d.ts +26 -0
- package/dist-types/client/src/hooks/useFormRealtimeGuidance.d.ts +45 -0
- package/dist-types/client/src/hooks/useRealtimeGuidance.d.ts +66 -0
- package/dist-types/client/src/hooks/useStageAssessment.d.ts +8 -0
- package/dist-types/client/src/hooks/useStepExecution.d.ts +14 -0
- package/dist-types/client/src/hooks/useTrainingModel.d.ts +30 -0
- package/dist-types/client/src/lib/creator.d.ts +1 -0
- package/dist-types/client/src/lib/index.d.ts +1 -0
- package/dist-types/client/src/lib/types.d.ts +113 -22
- package/dist-types/client/src/plugins/AssessmentPlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/CaseAnalysisPlugin.d.ts +9 -0
- package/dist-types/client/src/plugins/CaseAnalysisPluginView.d.ts +26 -0
- package/dist-types/client/src/plugins/DecisionSelectPlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/DialogueFormPlugin.d.ts +9 -0
- package/dist-types/client/src/plugins/DialogueFormPluginView.d.ts +37 -0
- package/dist-types/client/src/plugins/DialoguePlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/DialoguePluginView.d.ts +44 -0
- package/dist-types/client/src/plugins/DocumentReview/DocumentCard.d.ts +47 -0
- package/dist-types/client/src/plugins/DocumentReview/LayoutComponents.d.ts +47 -0
- package/dist-types/client/src/plugins/DocumentReview/MarkListPanel.d.ts +51 -0
- package/dist-types/client/src/plugins/DocumentReview/MarkModal.d.ts +37 -0
- package/dist-types/client/src/plugins/DocumentReview/ResultPanel.d.ts +32 -0
- package/dist-types/client/src/plugins/DocumentReview/Toolbar.d.ts +31 -0
- package/dist-types/client/src/plugins/DocumentReview/designTokens.d.ts +76 -0
- package/dist-types/client/src/plugins/DocumentReviewPlugin.d.ts +14 -0
- package/dist-types/client/src/plugins/ProcessOperationPlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/QAPlugin.d.ts +9 -0
- package/dist-types/client/src/plugins/StrategyLabPlugin.d.ts +7 -0
- package/dist-types/client/src/plugins/decision-making/DecisionMakingPlugin.d.ts +4 -0
- package/dist-types/client/src/plugins/decision-making/DecisionWorkspace.d.ts +23 -0
- package/dist-types/client/src/plugins/decision-making/MaterialsPanel.d.ts +18 -0
- package/dist-types/client/src/plugins/decision-making/logic.d.ts +46 -0
- package/dist-types/client/src/plugins/decision-making/scoring.d.ts +79 -0
- package/dist-types/client/src/plugins/decision-making/styles.d.ts +743 -0
- package/dist-types/client/src/plugins/decision-making/types.d.ts +179 -0
- package/dist-types/client/src/plugins/form-filling/DocumentFormLayout.d.ts +22 -0
- package/dist-types/client/src/plugins/form-filling/FormAssistPanel.d.ts +20 -0
- package/dist-types/client/src/plugins/form-filling/FormFillingPlugin.d.ts +15 -0
- package/dist-types/client/src/plugins/form-filling/forms.d.ts +28 -0
- package/dist-types/client/src/plugins/form-filling/scoring.d.ts +86 -0
- package/dist-types/client/src/plugins/form-filling/useFormFilling.d.ts +42 -0
- package/dist-types/client/src/plugins/form-filling/validationRules.d.ts +26 -0
- package/dist-types/client/src/plugins/shared/DecisionShared.d.ts +54 -0
- package/dist-types/client/src/plugins/shared/FrameworkWidget.d.ts +19 -0
- package/dist-types/client/src/plugins/shared/PluginFooter.d.ts +4 -0
- package/dist-types/client/src/plugins/shared/PluginHeader.d.ts +4 -0
- package/dist-types/client/src/plugins/shared/analysisTools.d.ts +30 -0
- package/dist-types/client/src/plugins/shared/disturbanceUtils.d.ts +5 -0
- package/dist-types/client/src/plugins/shared/index.d.ts +5 -0
- package/dist-types/client/src/plugins/shared/jsonRepair.d.ts +39 -0
- package/dist-types/client/src/plugins/shared/judgement.d.ts +46 -0
- package/dist-types/client/src/plugins/shared/nodeChain.d.ts +15 -0
- package/dist-types/client/src/plugins/shared/renderFieldGrid.d.ts +16 -0
- package/dist-types/client/src/plugins/shared/reportBlocks.d.ts +33 -0
- package/dist-types/client/src/plugins/shared/reportEvaluation.d.ts +30 -0
- package/dist-types/client/src/plugins/shared/reportExport.d.ts +12 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/BlockPropertiesPanel.d.ts +9 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/BlockToolbox.d.ts +11 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/ReportWorkbench.d.ts +20 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/SortableBlock.d.ts +15 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/factory.d.ts +14 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/outlineDraft.d.ts +7 -0
- package/dist-types/client/src/plugins/shared/simulationEngine.d.ts +112 -0
- package/dist-types/client/src/plugins/shared/simulationModes.d.ts +21 -0
- package/dist-types/client/src/plugins/shared/themes.d.ts +5 -0
- package/dist-types/client/src/plugins/shared/types.d.ts +1247 -0
- package/dist-types/client/src/services/AICommandHandler.d.ts +68 -0
- package/dist-types/client/src/services/cozeApiClient.d.ts +44 -0
- package/dist-types/client/src/services/mockApi.d.ts +48 -0
- package/dist-types/client/src/services/storageService.d.ts +88 -0
- package/dist-types/client/src/stores/abilityStore.d.ts +33 -0
- package/dist-types/client/src/stores/dialogueStore.d.ts +30 -0
- package/dist-types/client/src/stores/formRegistryStore.d.ts +45 -0
- package/dist-types/client/src/stores/guidanceStore.d.ts +17 -0
- package/dist-types/client/src/stores/stepEvidenceStore.d.ts +14 -0
- package/dist-types/client/src/stores/strategyLabStore.d.ts +46 -0
- package/dist-types/client/src/stores/trainingStore.d.ts +84 -0
- package/dist-types/client/src/types/ai-commands.d.ts +144 -0
- package/dist-types/client/src/types.d.ts +17 -0
- package/dist-types/client/src/utils/abilityMapGenerator.d.ts +27 -0
- package/dist-types/client/src/utils/formUtils.d.ts +66 -0
- package/dist-types/client/src/utils/rule-engine.d.ts +36 -0
- package/dist-types/shared/types/index.d.ts +592 -0
- package/package.json +5 -3
- package/dist/CaseAnalysisPlugin-CQvF9_zr.js +0 -416
- package/dist/DialogueFormPlugin-C9ssnVMr.js +0 -959
- package/dist/DialoguePlugin-DU00QpmQ.js +0 -416
- package/dist/DocumentReviewPlugin-HNOZY1T4.js +0 -977
- package/dist/FormFillingPlugin-DURWsioi.js +0 -445
- package/dist/ModelEditor-BPJsPR0S.js +0 -8264
- package/dist/PluginHeader-B-GESJmT.js +0 -87
- package/dist/QAPlugin-Bh_UjK1N.js +0 -184
- package/dist/RadarChart-C5ZM0kWt.js +0 -24963
- package/dist/StrategyLabPlugin-DGeZsr_7.js +0 -14361
- package/dist/ThunderboltOutlined-nH_FO_4A.js +0 -44
- package/dist/ToolOutlined-DtuNJDB2.js +0 -28
- package/dist/TrainingModelContainer-DpW-uB8O.js +0 -11883
- package/dist/WarningOutlined-5g1d66hO.js +0 -164
- package/dist/judgement-D_9i7x9S.js +0 -20
- package/dist/useDialogueLogic-IHELcN3X.js +0 -368
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { j as t } from "./
|
|
1
|
+
import { j as t } from "./CaseDetailContent-Y7Q430MG.js";
|
|
2
2
|
import { useState as m } from "react";
|
|
3
|
-
import { Alert as y, Card as S, Steps as i, Button as
|
|
4
|
-
import { a as f } from "./judgement-
|
|
5
|
-
const
|
|
3
|
+
import { Alert as y, Card as S, Steps as i, Button as n } from "antd";
|
|
4
|
+
import { a as f } from "./judgement-xTGXlDcn.js";
|
|
5
|
+
const k = ({
|
|
6
6
|
initData: e,
|
|
7
|
-
|
|
8
|
-
onFinish:
|
|
7
|
+
runtimeRules: j,
|
|
8
|
+
onFinish: c
|
|
9
9
|
}) => {
|
|
10
|
-
const [l,
|
|
11
|
-
s.includes(r) ||
|
|
10
|
+
const [l, u] = m(0), [s, d] = m([]), o = (e == null ? void 0 : e.systemSteps) || [], g = (r) => {
|
|
11
|
+
s.includes(r) || d([...s, r]), r < o.length - 1 && u(r + 1);
|
|
12
12
|
}, h = () => {
|
|
13
|
-
|
|
13
|
+
c({
|
|
14
14
|
stepId: (e == null ? void 0 : e.stepId) || "unknown",
|
|
15
15
|
operationType: "process-operation",
|
|
16
16
|
operationData: {
|
|
@@ -61,7 +61,7 @@ const b = ({
|
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ t.jsx("div", { style: { marginTop: "16px" }, children: l < o.length && /* @__PURE__ */ t.jsx(
|
|
64
|
-
|
|
64
|
+
n,
|
|
65
65
|
{
|
|
66
66
|
type: "primary",
|
|
67
67
|
onClick: () => g(l),
|
|
@@ -71,7 +71,7 @@ const b = ({
|
|
|
71
71
|
) })
|
|
72
72
|
] }),
|
|
73
73
|
/* @__PURE__ */ t.jsx(
|
|
74
|
-
|
|
74
|
+
n,
|
|
75
75
|
{
|
|
76
76
|
type: "primary",
|
|
77
77
|
size: "large",
|
|
@@ -84,5 +84,5 @@ const b = ({
|
|
|
84
84
|
] });
|
|
85
85
|
};
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
k as default
|
|
88
88
|
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { j as t } from "./CaseDetailContent-DT5nCtRT.js";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
|
+
import { Alert as y, Card as S, Steps as i, Button as n } from "antd";
|
|
4
|
+
import { a as f } from "./judgement-xTGXlDcn.js";
|
|
5
|
+
const k = ({
|
|
6
|
+
initData: e,
|
|
7
|
+
runtimeRules: j,
|
|
8
|
+
onFinish: c
|
|
9
|
+
}) => {
|
|
10
|
+
const [l, u] = m(0), [s, d] = m([]), o = (e == null ? void 0 : e.systemSteps) || [], g = (r) => {
|
|
11
|
+
s.includes(r) || d([...s, r]), r < o.length - 1 && u(r + 1);
|
|
12
|
+
}, h = () => {
|
|
13
|
+
c({
|
|
14
|
+
stepId: (e == null ? void 0 : e.stepId) || "unknown",
|
|
15
|
+
operationType: "process-operation",
|
|
16
|
+
operationData: {
|
|
17
|
+
completedSteps: s,
|
|
18
|
+
totalSteps: o.length
|
|
19
|
+
},
|
|
20
|
+
operationLog: s.map((r) => ({
|
|
21
|
+
action: "step-complete",
|
|
22
|
+
step: o[r],
|
|
23
|
+
timestamp: Date.now()
|
|
24
|
+
})),
|
|
25
|
+
timestamp: Date.now(),
|
|
26
|
+
evidenceSummary: f({
|
|
27
|
+
sourceStepId: (e == null ? void 0 : e.stepId) || "unknown",
|
|
28
|
+
sourceStepName: (e == null ? void 0 : e.stepName) || "流程操作",
|
|
29
|
+
sourceType: "process-operation",
|
|
30
|
+
title: `${(e == null ? void 0 : e.stepName) || "流程操作"}摘要`,
|
|
31
|
+
summary: `已完成 ${s.length}/${o.length} 个操作步骤。`,
|
|
32
|
+
keyFacts: [
|
|
33
|
+
{ label: "完成步骤数", value: String(s.length) },
|
|
34
|
+
{ label: "总步骤数", value: String(o.length) }
|
|
35
|
+
]
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ t.jsxs("div", { style: { padding: "20px" }, children: [
|
|
40
|
+
/* @__PURE__ */ t.jsx(
|
|
41
|
+
y,
|
|
42
|
+
{
|
|
43
|
+
message: "流程操作插件",
|
|
44
|
+
description: "这是一个占位符插件。实际应该模拟系统界面操作。",
|
|
45
|
+
type: "info",
|
|
46
|
+
showIcon: !0,
|
|
47
|
+
style: { marginBottom: "16px" }
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
o.length > 0 && /* @__PURE__ */ t.jsxs(S, { title: "操作步骤", size: "small", style: { marginBottom: "16px" }, children: [
|
|
51
|
+
/* @__PURE__ */ t.jsx(
|
|
52
|
+
i,
|
|
53
|
+
{
|
|
54
|
+
direction: "vertical",
|
|
55
|
+
current: l,
|
|
56
|
+
items: o.map((r, p) => ({
|
|
57
|
+
title: r,
|
|
58
|
+
description: s.includes(p) ? "已完成" : "",
|
|
59
|
+
status: s.includes(p) ? "finish" : p === l ? "process" : "wait"
|
|
60
|
+
}))
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ t.jsx("div", { style: { marginTop: "16px" }, children: l < o.length && /* @__PURE__ */ t.jsx(
|
|
64
|
+
n,
|
|
65
|
+
{
|
|
66
|
+
type: "primary",
|
|
67
|
+
onClick: () => g(l),
|
|
68
|
+
disabled: s.includes(l),
|
|
69
|
+
children: "完成当前步骤"
|
|
70
|
+
}
|
|
71
|
+
) })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ t.jsx(
|
|
74
|
+
n,
|
|
75
|
+
{
|
|
76
|
+
type: "primary",
|
|
77
|
+
size: "large",
|
|
78
|
+
onClick: h,
|
|
79
|
+
block: !0,
|
|
80
|
+
disabled: s.length < o.length,
|
|
81
|
+
children: "完成所有操作"
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
] });
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
k as default
|
|
88
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { g as z, c as E, j as s, d as L } from "./CaseDetailContent-Y7Q430MG.js";
|
|
2
|
+
import { useState as i, useRef as P, useCallback as N } from "react";
|
|
3
|
+
import { message as w, Card as U, List as R, Tag as h, Spin as H, Space as M, Input as O, Button as T } from "antd";
|
|
4
|
+
import { a as G, b as J, M as W } from "./TrainingModelContainer-DqCsdC7C.js";
|
|
5
|
+
const { TextArea: Y } = O, D = ({
|
|
6
|
+
initData: e,
|
|
7
|
+
runtimeRules: _,
|
|
8
|
+
onFinish: f
|
|
9
|
+
}) => {
|
|
10
|
+
const [x, b] = i(""), [c, u] = i([]), [y, I] = i(!1), k = z("TUTOR_AGENT"), $ = (e == null ? void 0 : e.currentUser) || { userId: "student-001", name: "学生" }, C = (e == null ? void 0 : e.domain) || "银行", { callAI: v, ready: a } = E(k, $), A = P(!0), B = (r) => {
|
|
11
|
+
var m;
|
|
12
|
+
if (!A.current)
|
|
13
|
+
return r;
|
|
14
|
+
const l = (e == null ? void 0 : e.context) || "", p = ((m = e == null ? void 0 : e.currentStep) == null ? void 0 : m.name) || "", t = (e == null ? void 0 : e.modelName) || "", o = (e == null ? void 0 : e.businessType) || "", n = (e == null ? void 0 : e.targetPosition) || "";
|
|
15
|
+
return `
|
|
16
|
+
## 实训场景信息
|
|
17
|
+
- 模型名称:${t}
|
|
18
|
+
- 业务领域:${C}
|
|
19
|
+
- 业务类型:${o}
|
|
20
|
+
- 目标岗位:${n}
|
|
21
|
+
- 当前步骤:${p}
|
|
22
|
+
|
|
23
|
+
## 场景上下文
|
|
24
|
+
${l || "(无额外上下文)"}
|
|
25
|
+
|
|
26
|
+
## 学生的问题
|
|
27
|
+
${r}
|
|
28
|
+
`.trim();
|
|
29
|
+
}, S = N(async () => {
|
|
30
|
+
var p;
|
|
31
|
+
if (!x.trim()) {
|
|
32
|
+
w.warning("请输入问题");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (!a) {
|
|
36
|
+
w.error("AI服务未就绪,请稍后再试");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const r = x.trim(), l = Date.now();
|
|
40
|
+
I(!0), b(""), u((t) => [...t, { id: l, question: r, answer: "", timestamp: l, streaming: !0 }]);
|
|
41
|
+
try {
|
|
42
|
+
const t = B(r);
|
|
43
|
+
let o = "";
|
|
44
|
+
await v(t, (d, g) => {
|
|
45
|
+
if (g)
|
|
46
|
+
o = d;
|
|
47
|
+
else {
|
|
48
|
+
o += d;
|
|
49
|
+
const Q = o.trimStart().startsWith("{") ? "" : o;
|
|
50
|
+
u((q) => q.map((j) => j.id === l ? { ...j, answer: Q } : j));
|
|
51
|
+
}
|
|
52
|
+
}), A.current = !1;
|
|
53
|
+
let n = o, m;
|
|
54
|
+
try {
|
|
55
|
+
const d = JSON.parse(o);
|
|
56
|
+
n = ((p = d.data) == null ? void 0 : p.content) ?? d.answer ?? o, m = d.relatedKnowledge;
|
|
57
|
+
} catch {
|
|
58
|
+
}
|
|
59
|
+
u((d) => d.map((g) => g.id === l ? { ...g, answer: n || "抱歉,我暂时无法回答这个问题", relatedKnowledge: m, streaming: !1 } : g));
|
|
60
|
+
} catch (t) {
|
|
61
|
+
console.error("获取回答失败:", t), w.error("获取回答失败,请重试"), u((o) => o.map((n) => n.id === l ? { ...n, answer: "抱歉,AI服务暂时不可用,请稍后再试", streaming: !1 } : n));
|
|
62
|
+
} finally {
|
|
63
|
+
I(!1);
|
|
64
|
+
}
|
|
65
|
+
}, [x, a, v, e]), K = () => {
|
|
66
|
+
f == null || f({
|
|
67
|
+
stepId: (e == null ? void 0 : e.stepId) || "unknown",
|
|
68
|
+
operationType: "qa",
|
|
69
|
+
operationData: {
|
|
70
|
+
qaHistory: c,
|
|
71
|
+
totalQuestions: c.length
|
|
72
|
+
},
|
|
73
|
+
operationLog: [],
|
|
74
|
+
timestamp: Date.now()
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ s.jsxs("div", { style: { padding: "20px" }, children: [
|
|
78
|
+
(e == null ? void 0 : e.title) && /* @__PURE__ */ s.jsxs(U, { size: "small", style: { marginBottom: "16px", backgroundColor: "#f0f9ff" }, children: [
|
|
79
|
+
/* @__PURE__ */ s.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
80
|
+
/* @__PURE__ */ s.jsx(G, { style: { color: "#1890ff" } }),
|
|
81
|
+
/* @__PURE__ */ s.jsx("strong", { children: e.title })
|
|
82
|
+
] }),
|
|
83
|
+
e.description && /* @__PURE__ */ s.jsx("p", { style: { margin: "8px 0 0", color: "#666" }, children: e.description })
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ s.jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
style: {
|
|
89
|
+
border: "1px solid #d9d9d9",
|
|
90
|
+
borderRadius: "8px",
|
|
91
|
+
padding: "16px",
|
|
92
|
+
height: "400px",
|
|
93
|
+
overflowY: "auto",
|
|
94
|
+
marginBottom: "16px",
|
|
95
|
+
backgroundColor: "#fafafa"
|
|
96
|
+
},
|
|
97
|
+
children: c.length === 0 ? /* @__PURE__ */ s.jsxs("div", { style: { textAlign: "center", color: "#999", paddingTop: "100px" }, children: [
|
|
98
|
+
/* @__PURE__ */ s.jsx(J, { style: { fontSize: "48px", marginBottom: "16px" } }),
|
|
99
|
+
/* @__PURE__ */ s.jsx("p", { children: "暂无问答记录" }),
|
|
100
|
+
/* @__PURE__ */ s.jsx("p", { children: "请在下方输入您的问题" })
|
|
101
|
+
] }) : /* @__PURE__ */ s.jsx(
|
|
102
|
+
R,
|
|
103
|
+
{
|
|
104
|
+
dataSource: c,
|
|
105
|
+
renderItem: (r) => /* @__PURE__ */ s.jsxs(R.Item, { style: { display: "block", border: "none", padding: "8px 0" }, children: [
|
|
106
|
+
/* @__PURE__ */ s.jsxs("div", { style: { marginBottom: "8px" }, children: [
|
|
107
|
+
/* @__PURE__ */ s.jsx(h, { color: "blue", children: "问题" }),
|
|
108
|
+
/* @__PURE__ */ s.jsx("span", { children: r.question })
|
|
109
|
+
] }),
|
|
110
|
+
/* @__PURE__ */ s.jsxs("div", { style: { marginLeft: "24px" }, children: [
|
|
111
|
+
/* @__PURE__ */ s.jsx(h, { color: "green", children: "回答" }),
|
|
112
|
+
r.streaming ? r.answer ? /* @__PURE__ */ s.jsxs("span", { style: { whiteSpace: "pre-wrap" }, children: [
|
|
113
|
+
r.answer,
|
|
114
|
+
/* @__PURE__ */ s.jsx("span", { style: { opacity: 0.45 }, children: "▋" })
|
|
115
|
+
] }) : /* @__PURE__ */ s.jsx(H, { size: "small" }) : /* @__PURE__ */ s.jsx(W, { content: r.answer })
|
|
116
|
+
] }),
|
|
117
|
+
r.relatedKnowledge && r.relatedKnowledge.length > 0 && /* @__PURE__ */ s.jsxs("div", { style: { marginLeft: "24px", marginTop: "8px" }, children: [
|
|
118
|
+
/* @__PURE__ */ s.jsx(h, { children: "相关知识点" }),
|
|
119
|
+
r.relatedKnowledge.map((l, p) => /* @__PURE__ */ s.jsx(h, { color: "orange", children: l }, p))
|
|
120
|
+
] })
|
|
121
|
+
] })
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ s.jsxs(M.Compact, { style: { width: "100%", marginBottom: "16px" }, children: [
|
|
127
|
+
/* @__PURE__ */ s.jsx(
|
|
128
|
+
Y,
|
|
129
|
+
{
|
|
130
|
+
value: x,
|
|
131
|
+
onChange: (r) => b(r.target.value),
|
|
132
|
+
onPressEnter: (r) => {
|
|
133
|
+
r.shiftKey || (r.preventDefault(), S());
|
|
134
|
+
},
|
|
135
|
+
placeholder: "请输入您的业务问题... (Shift+Enter换行,Enter发送)",
|
|
136
|
+
autoSize: { minRows: 2, maxRows: 4 },
|
|
137
|
+
style: { flex: 1 },
|
|
138
|
+
disabled: y || !a
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ s.jsx(
|
|
142
|
+
T,
|
|
143
|
+
{
|
|
144
|
+
type: "primary",
|
|
145
|
+
icon: /* @__PURE__ */ s.jsx(L, {}),
|
|
146
|
+
onClick: S,
|
|
147
|
+
disabled: !x.trim() || y || !a,
|
|
148
|
+
loading: y,
|
|
149
|
+
style: { height: "auto" },
|
|
150
|
+
children: "提问"
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
] }),
|
|
154
|
+
/* @__PURE__ */ s.jsx("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ s.jsxs(
|
|
155
|
+
T,
|
|
156
|
+
{
|
|
157
|
+
type: "primary",
|
|
158
|
+
size: "large",
|
|
159
|
+
onClick: K,
|
|
160
|
+
disabled: c.length === 0,
|
|
161
|
+
children: [
|
|
162
|
+
"完成答疑 (",
|
|
163
|
+
c.length,
|
|
164
|
+
" 个问题)"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
) })
|
|
168
|
+
] });
|
|
169
|
+
};
|
|
170
|
+
export {
|
|
171
|
+
D as default
|
|
172
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { g as z, c as E, j as s, d as L } from "./CaseDetailContent-DT5nCtRT.js";
|
|
2
|
+
import { useState as i, useRef as P, useCallback as N } from "react";
|
|
3
|
+
import { message as w, Card as U, List as R, Tag as h, Spin as H, Space as M, Input as O, Button as T } from "antd";
|
|
4
|
+
import { a as G, b as J, M as W } from "./TrainingModelContainer-yi8W6KFl.js";
|
|
5
|
+
const { TextArea: Y } = O, D = ({
|
|
6
|
+
initData: e,
|
|
7
|
+
runtimeRules: _,
|
|
8
|
+
onFinish: f
|
|
9
|
+
}) => {
|
|
10
|
+
const [x, b] = i(""), [c, u] = i([]), [y, I] = i(!1), k = z("TUTOR_AGENT"), $ = (e == null ? void 0 : e.currentUser) || { userId: "student-001", name: "学生" }, C = (e == null ? void 0 : e.domain) || "银行", { callAI: v, ready: a } = E(k, $), A = P(!0), B = (r) => {
|
|
11
|
+
var m;
|
|
12
|
+
if (!A.current)
|
|
13
|
+
return r;
|
|
14
|
+
const l = (e == null ? void 0 : e.context) || "", p = ((m = e == null ? void 0 : e.currentStep) == null ? void 0 : m.name) || "", t = (e == null ? void 0 : e.modelName) || "", o = (e == null ? void 0 : e.businessType) || "", n = (e == null ? void 0 : e.targetPosition) || "";
|
|
15
|
+
return `
|
|
16
|
+
## 实训场景信息
|
|
17
|
+
- 模型名称:${t}
|
|
18
|
+
- 业务领域:${C}
|
|
19
|
+
- 业务类型:${o}
|
|
20
|
+
- 目标岗位:${n}
|
|
21
|
+
- 当前步骤:${p}
|
|
22
|
+
|
|
23
|
+
## 场景上下文
|
|
24
|
+
${l || "(无额外上下文)"}
|
|
25
|
+
|
|
26
|
+
## 学生的问题
|
|
27
|
+
${r}
|
|
28
|
+
`.trim();
|
|
29
|
+
}, S = N(async () => {
|
|
30
|
+
var p;
|
|
31
|
+
if (!x.trim()) {
|
|
32
|
+
w.warning("请输入问题");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (!a) {
|
|
36
|
+
w.error("AI服务未就绪,请稍后再试");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const r = x.trim(), l = Date.now();
|
|
40
|
+
I(!0), b(""), u((t) => [...t, { id: l, question: r, answer: "", timestamp: l, streaming: !0 }]);
|
|
41
|
+
try {
|
|
42
|
+
const t = B(r);
|
|
43
|
+
let o = "";
|
|
44
|
+
await v(t, (d, g) => {
|
|
45
|
+
if (g)
|
|
46
|
+
o = d;
|
|
47
|
+
else {
|
|
48
|
+
o += d;
|
|
49
|
+
const Q = o.trimStart().startsWith("{") ? "" : o;
|
|
50
|
+
u((q) => q.map((j) => j.id === l ? { ...j, answer: Q } : j));
|
|
51
|
+
}
|
|
52
|
+
}), A.current = !1;
|
|
53
|
+
let n = o, m;
|
|
54
|
+
try {
|
|
55
|
+
const d = JSON.parse(o);
|
|
56
|
+
n = ((p = d.data) == null ? void 0 : p.content) ?? d.answer ?? o, m = d.relatedKnowledge;
|
|
57
|
+
} catch {
|
|
58
|
+
}
|
|
59
|
+
u((d) => d.map((g) => g.id === l ? { ...g, answer: n || "抱歉,我暂时无法回答这个问题", relatedKnowledge: m, streaming: !1 } : g));
|
|
60
|
+
} catch (t) {
|
|
61
|
+
console.error("获取回答失败:", t), w.error("获取回答失败,请重试"), u((o) => o.map((n) => n.id === l ? { ...n, answer: "抱歉,AI服务暂时不可用,请稍后再试", streaming: !1 } : n));
|
|
62
|
+
} finally {
|
|
63
|
+
I(!1);
|
|
64
|
+
}
|
|
65
|
+
}, [x, a, v, e]), K = () => {
|
|
66
|
+
f == null || f({
|
|
67
|
+
stepId: (e == null ? void 0 : e.stepId) || "unknown",
|
|
68
|
+
operationType: "qa",
|
|
69
|
+
operationData: {
|
|
70
|
+
qaHistory: c,
|
|
71
|
+
totalQuestions: c.length
|
|
72
|
+
},
|
|
73
|
+
operationLog: [],
|
|
74
|
+
timestamp: Date.now()
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ s.jsxs("div", { style: { padding: "20px" }, children: [
|
|
78
|
+
(e == null ? void 0 : e.title) && /* @__PURE__ */ s.jsxs(U, { size: "small", style: { marginBottom: "16px", backgroundColor: "#f0f9ff" }, children: [
|
|
79
|
+
/* @__PURE__ */ s.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
80
|
+
/* @__PURE__ */ s.jsx(G, { style: { color: "#1890ff" } }),
|
|
81
|
+
/* @__PURE__ */ s.jsx("strong", { children: e.title })
|
|
82
|
+
] }),
|
|
83
|
+
e.description && /* @__PURE__ */ s.jsx("p", { style: { margin: "8px 0 0", color: "#666" }, children: e.description })
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ s.jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
style: {
|
|
89
|
+
border: "1px solid #d9d9d9",
|
|
90
|
+
borderRadius: "8px",
|
|
91
|
+
padding: "16px",
|
|
92
|
+
height: "400px",
|
|
93
|
+
overflowY: "auto",
|
|
94
|
+
marginBottom: "16px",
|
|
95
|
+
backgroundColor: "#fafafa"
|
|
96
|
+
},
|
|
97
|
+
children: c.length === 0 ? /* @__PURE__ */ s.jsxs("div", { style: { textAlign: "center", color: "#999", paddingTop: "100px" }, children: [
|
|
98
|
+
/* @__PURE__ */ s.jsx(J, { style: { fontSize: "48px", marginBottom: "16px" } }),
|
|
99
|
+
/* @__PURE__ */ s.jsx("p", { children: "暂无问答记录" }),
|
|
100
|
+
/* @__PURE__ */ s.jsx("p", { children: "请在下方输入您的问题" })
|
|
101
|
+
] }) : /* @__PURE__ */ s.jsx(
|
|
102
|
+
R,
|
|
103
|
+
{
|
|
104
|
+
dataSource: c,
|
|
105
|
+
renderItem: (r) => /* @__PURE__ */ s.jsxs(R.Item, { style: { display: "block", border: "none", padding: "8px 0" }, children: [
|
|
106
|
+
/* @__PURE__ */ s.jsxs("div", { style: { marginBottom: "8px" }, children: [
|
|
107
|
+
/* @__PURE__ */ s.jsx(h, { color: "blue", children: "问题" }),
|
|
108
|
+
/* @__PURE__ */ s.jsx("span", { children: r.question })
|
|
109
|
+
] }),
|
|
110
|
+
/* @__PURE__ */ s.jsxs("div", { style: { marginLeft: "24px" }, children: [
|
|
111
|
+
/* @__PURE__ */ s.jsx(h, { color: "green", children: "回答" }),
|
|
112
|
+
r.streaming ? r.answer ? /* @__PURE__ */ s.jsxs("span", { style: { whiteSpace: "pre-wrap" }, children: [
|
|
113
|
+
r.answer,
|
|
114
|
+
/* @__PURE__ */ s.jsx("span", { style: { opacity: 0.45 }, children: "▋" })
|
|
115
|
+
] }) : /* @__PURE__ */ s.jsx(H, { size: "small" }) : /* @__PURE__ */ s.jsx(W, { content: r.answer })
|
|
116
|
+
] }),
|
|
117
|
+
r.relatedKnowledge && r.relatedKnowledge.length > 0 && /* @__PURE__ */ s.jsxs("div", { style: { marginLeft: "24px", marginTop: "8px" }, children: [
|
|
118
|
+
/* @__PURE__ */ s.jsx(h, { children: "相关知识点" }),
|
|
119
|
+
r.relatedKnowledge.map((l, p) => /* @__PURE__ */ s.jsx(h, { color: "orange", children: l }, p))
|
|
120
|
+
] })
|
|
121
|
+
] })
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ s.jsxs(M.Compact, { style: { width: "100%", marginBottom: "16px" }, children: [
|
|
127
|
+
/* @__PURE__ */ s.jsx(
|
|
128
|
+
Y,
|
|
129
|
+
{
|
|
130
|
+
value: x,
|
|
131
|
+
onChange: (r) => b(r.target.value),
|
|
132
|
+
onPressEnter: (r) => {
|
|
133
|
+
r.shiftKey || (r.preventDefault(), S());
|
|
134
|
+
},
|
|
135
|
+
placeholder: "请输入您的业务问题... (Shift+Enter换行,Enter发送)",
|
|
136
|
+
autoSize: { minRows: 2, maxRows: 4 },
|
|
137
|
+
style: { flex: 1 },
|
|
138
|
+
disabled: y || !a
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ s.jsx(
|
|
142
|
+
T,
|
|
143
|
+
{
|
|
144
|
+
type: "primary",
|
|
145
|
+
icon: /* @__PURE__ */ s.jsx(L, {}),
|
|
146
|
+
onClick: S,
|
|
147
|
+
disabled: !x.trim() || y || !a,
|
|
148
|
+
loading: y,
|
|
149
|
+
style: { height: "auto" },
|
|
150
|
+
children: "提问"
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
] }),
|
|
154
|
+
/* @__PURE__ */ s.jsx("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ s.jsxs(
|
|
155
|
+
T,
|
|
156
|
+
{
|
|
157
|
+
type: "primary",
|
|
158
|
+
size: "large",
|
|
159
|
+
onClick: K,
|
|
160
|
+
disabled: c.length === 0,
|
|
161
|
+
children: [
|
|
162
|
+
"完成答疑 (",
|
|
163
|
+
c.length,
|
|
164
|
+
" 个问题)"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
) })
|
|
168
|
+
] });
|
|
169
|
+
};
|
|
170
|
+
export {
|
|
171
|
+
D as default
|
|
172
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as o, _ as l } from "./
|
|
1
|
+
import { I as o, _ as l } from "./CaseDetailContent-Y7Q430MG.js";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
var r = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, name: "reload", theme: "outlined" }, c = function(a, t) {
|
|
4
4
|
return /* @__PURE__ */ e.createElement(o, l({}, a, {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { I as o, _ as l } from "./CaseDetailContent-DT5nCtRT.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
var r = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, name: "reload", theme: "outlined" }, c = function(a, t) {
|
|
4
|
+
return /* @__PURE__ */ e.createElement(o, l({}, a, {
|
|
5
|
+
ref: t,
|
|
6
|
+
icon: r
|
|
7
|
+
}));
|
|
8
|
+
}, n = /* @__PURE__ */ e.forwardRef(c);
|
|
9
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "ReloadOutlined");
|
|
10
|
+
export {
|
|
11
|
+
n as R
|
|
12
|
+
};
|