@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,164 +0,0 @@
|
|
|
1
|
-
import { I as a, _ as r } from "./RadarChart-C5ZM0kWt.js";
|
|
2
|
-
import * as e from "react";
|
|
3
|
-
var i = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z" } }] }, name: "alert", theme: "outlined" }, l = function(t, c) {
|
|
4
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
5
|
-
ref: c,
|
|
6
|
-
icon: i
|
|
7
|
-
}));
|
|
8
|
-
}, o = /* @__PURE__ */ e.forwardRef(l);
|
|
9
|
-
process.env.NODE_ENV !== "production" && (o.displayName = "AlertOutlined");
|
|
10
|
-
var s = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z" } }] }, name: "arrow-right", theme: "outlined" }, d = function(t, c) {
|
|
11
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
12
|
-
ref: c,
|
|
13
|
-
icon: s
|
|
14
|
-
}));
|
|
15
|
-
}, u = /* @__PURE__ */ e.forwardRef(d);
|
|
16
|
-
process.env.NODE_ENV !== "production" && (u.displayName = "ArrowRightOutlined");
|
|
17
|
-
var v = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z" } }] }, name: "bar-chart", theme: "outlined" }, f = function(t, c) {
|
|
18
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
19
|
-
ref: c,
|
|
20
|
-
icon: v
|
|
21
|
-
}));
|
|
22
|
-
}, h = /* @__PURE__ */ e.forwardRef(f);
|
|
23
|
-
process.env.NODE_ENV !== "production" && (h.displayName = "BarChartOutlined");
|
|
24
|
-
var m = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z" } }] }, name: "bulb", theme: "outlined" }, O = function(t, c) {
|
|
25
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
26
|
-
ref: c,
|
|
27
|
-
icon: m
|
|
28
|
-
}));
|
|
29
|
-
}, p = /* @__PURE__ */ e.forwardRef(O);
|
|
30
|
-
process.env.NODE_ENV !== "production" && (p.displayName = "BulbOutlined");
|
|
31
|
-
var g = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, name: "close-circle", theme: "outlined" }, E = function(t, c) {
|
|
32
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
33
|
-
ref: c,
|
|
34
|
-
icon: g
|
|
35
|
-
}));
|
|
36
|
-
}, N = /* @__PURE__ */ e.forwardRef(E);
|
|
37
|
-
process.env.NODE_ENV !== "production" && (N.displayName = "CloseCircleOutlined");
|
|
38
|
-
var z = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, R = function(t, c) {
|
|
39
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
40
|
-
ref: c,
|
|
41
|
-
icon: z
|
|
42
|
-
}));
|
|
43
|
-
}, w = /* @__PURE__ */ e.forwardRef(R);
|
|
44
|
-
process.env.NODE_ENV !== "production" && (w.displayName = "CloseOutlined");
|
|
45
|
-
var L = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, V = function(t, c) {
|
|
46
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
47
|
-
ref: c,
|
|
48
|
-
icon: L
|
|
49
|
-
}));
|
|
50
|
-
}, C = /* @__PURE__ */ e.forwardRef(V);
|
|
51
|
-
process.env.NODE_ENV !== "production" && (C.displayName = "DownOutlined");
|
|
52
|
-
var $ = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z" } }, { tag: "path", attrs: { d: "M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z" } }] }, name: "form", theme: "outlined" }, M = function(t, c) {
|
|
53
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
54
|
-
ref: c,
|
|
55
|
-
icon: $
|
|
56
|
-
}));
|
|
57
|
-
}, b = /* @__PURE__ */ e.forwardRef(M);
|
|
58
|
-
process.env.NODE_ENV !== "production" && (b.displayName = "FormOutlined");
|
|
59
|
-
var B = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z" } }] }, name: "history", theme: "outlined" }, H = function(t, c) {
|
|
60
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
61
|
-
ref: c,
|
|
62
|
-
icon: B
|
|
63
|
-
}));
|
|
64
|
-
}, y = /* @__PURE__ */ e.forwardRef(H);
|
|
65
|
-
process.env.NODE_ENV !== "production" && (y.displayName = "HistoryOutlined");
|
|
66
|
-
var D = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z" } }] }, name: "line-chart", theme: "outlined" }, x = function(t, c) {
|
|
67
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
68
|
-
ref: c,
|
|
69
|
-
icon: D
|
|
70
|
-
}));
|
|
71
|
-
}, I = /* @__PURE__ */ e.forwardRef(x);
|
|
72
|
-
process.env.NODE_ENV !== "production" && (I.displayName = "LineChartOutlined");
|
|
73
|
-
var _ = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z" } }] }, name: "lock", theme: "outlined" }, A = function(t, c) {
|
|
74
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
75
|
-
ref: c,
|
|
76
|
-
icon: _
|
|
77
|
-
}));
|
|
78
|
-
}, S = /* @__PURE__ */ e.forwardRef(A);
|
|
79
|
-
process.env.NODE_ENV !== "production" && (S.displayName = "LockOutlined");
|
|
80
|
-
var k = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z" } }] }, name: "logout", theme: "outlined" }, F = function(t, c) {
|
|
81
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
82
|
-
ref: c,
|
|
83
|
-
icon: k
|
|
84
|
-
}));
|
|
85
|
-
}, Q = /* @__PURE__ */ e.forwardRef(F);
|
|
86
|
-
process.env.NODE_ENV !== "production" && (Q.displayName = "LogoutOutlined");
|
|
87
|
-
var T = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z" } }] }, name: "ordered-list", theme: "outlined" }, U = function(t, c) {
|
|
88
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
89
|
-
ref: c,
|
|
90
|
-
icon: T
|
|
91
|
-
}));
|
|
92
|
-
}, W = /* @__PURE__ */ e.forwardRef(U);
|
|
93
|
-
process.env.NODE_ENV !== "production" && (W.displayName = "OrderedListOutlined");
|
|
94
|
-
var j = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" }, q = function(t, c) {
|
|
95
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
96
|
-
ref: c,
|
|
97
|
-
icon: j
|
|
98
|
-
}));
|
|
99
|
-
}, G = /* @__PURE__ */ e.forwardRef(q);
|
|
100
|
-
process.env.NODE_ENV !== "production" && (G.displayName = "QuestionCircleOutlined");
|
|
101
|
-
var J = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M666.7 505.5l-246-178A8 8 0 00408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z" } }, { tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, name: "right-circle", theme: "outlined" }, K = function(t, c) {
|
|
102
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
103
|
-
ref: c,
|
|
104
|
-
icon: J
|
|
105
|
-
}));
|
|
106
|
-
}, P = /* @__PURE__ */ e.forwardRef(K);
|
|
107
|
-
process.env.NODE_ENV !== "production" && (P.displayName = "RightCircleOutlined");
|
|
108
|
-
var X = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z" } }] }, name: "rise", theme: "outlined" }, Y = function(t, c) {
|
|
109
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
110
|
-
ref: c,
|
|
111
|
-
icon: X
|
|
112
|
-
}));
|
|
113
|
-
}, Z = /* @__PURE__ */ e.forwardRef(Y);
|
|
114
|
-
process.env.NODE_ENV !== "production" && (Z.displayName = "RiseOutlined");
|
|
115
|
-
var e1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z" } }] }, name: "star", theme: "outlined" }, t1 = function(t, c) {
|
|
116
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
117
|
-
ref: c,
|
|
118
|
-
icon: e1
|
|
119
|
-
}));
|
|
120
|
-
}, c1 = /* @__PURE__ */ e.forwardRef(t1);
|
|
121
|
-
process.env.NODE_ENV !== "production" && (c1.displayName = "StarOutlined");
|
|
122
|
-
var a1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z" } }] }, name: "team", theme: "outlined" }, r1 = function(t, c) {
|
|
123
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
124
|
-
ref: c,
|
|
125
|
-
icon: a1
|
|
126
|
-
}));
|
|
127
|
-
}, n1 = /* @__PURE__ */ e.forwardRef(r1);
|
|
128
|
-
process.env.NODE_ENV !== "production" && (n1.displayName = "TeamOutlined");
|
|
129
|
-
var i1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, name: "up", theme: "outlined" }, l1 = function(t, c) {
|
|
130
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
131
|
-
ref: c,
|
|
132
|
-
icon: i1
|
|
133
|
-
}));
|
|
134
|
-
}, o1 = /* @__PURE__ */ e.forwardRef(l1);
|
|
135
|
-
process.env.NODE_ENV !== "production" && (o1.displayName = "UpOutlined");
|
|
136
|
-
var s1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z" } }] }, name: "warning", theme: "outlined" }, d1 = function(t, c) {
|
|
137
|
-
return /* @__PURE__ */ e.createElement(a, r({}, t, {
|
|
138
|
-
ref: c,
|
|
139
|
-
icon: s1
|
|
140
|
-
}));
|
|
141
|
-
}, u1 = /* @__PURE__ */ e.forwardRef(d1);
|
|
142
|
-
process.env.NODE_ENV !== "production" && (u1.displayName = "WarningOutlined");
|
|
143
|
-
export {
|
|
144
|
-
u as R,
|
|
145
|
-
p as a,
|
|
146
|
-
G as b,
|
|
147
|
-
w as c,
|
|
148
|
-
n1 as d,
|
|
149
|
-
o as e,
|
|
150
|
-
u1 as f,
|
|
151
|
-
N as g,
|
|
152
|
-
o1 as h,
|
|
153
|
-
C as i,
|
|
154
|
-
c1 as j,
|
|
155
|
-
P as k,
|
|
156
|
-
h as l,
|
|
157
|
-
W as m,
|
|
158
|
-
b as n,
|
|
159
|
-
I as o,
|
|
160
|
-
Q as p,
|
|
161
|
-
S as q,
|
|
162
|
-
y as r,
|
|
163
|
-
Z as s
|
|
164
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const t = (r) => r === "material-review" ? "material-review" : "identity-verification", c = (r, e) => r === "assessment" || r === "select" ? r : e != null && e.options ? "select" : "assessment", o = (r = [], e = []) => r.length > 0 ? r : e, a = (r) => ({
|
|
2
|
-
...r,
|
|
3
|
-
rawRef: r.sourceStepId
|
|
4
|
-
}), u = (r = [], e) => r.find((s) => s.sourceType === e), l = (r = []) => r.map((e, s) => ({
|
|
5
|
-
id: `${e.sourceStepId}-${s}`,
|
|
6
|
-
label: e.title,
|
|
7
|
-
category: "风险性",
|
|
8
|
-
result: e.riskFlags && e.riskFlags.length > 0 ? "warning" : "pass",
|
|
9
|
-
comment: e.summary,
|
|
10
|
-
evidence: e.keyFacts.map((n) => `${n.label}:${n.value}`),
|
|
11
|
-
stepId: e.rawRef || e.sourceStepId
|
|
12
|
-
}));
|
|
13
|
-
export {
|
|
14
|
-
a,
|
|
15
|
-
l as b,
|
|
16
|
-
t as c,
|
|
17
|
-
o as d,
|
|
18
|
-
u as f,
|
|
19
|
-
c as n
|
|
20
|
-
};
|
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import { useState as J, useRef as B, useCallback as G, useEffect as X } from "react";
|
|
2
|
-
import { message as Y } from "antd";
|
|
3
|
-
import { b as D, c as Z, a as re, p as ce } from "./TrainingModelContainer-DpW-uB8O.js";
|
|
4
|
-
import { g as ee, f as te, a as ue, r as le } from "./RadarChart-C5ZM0kWt.js";
|
|
5
|
-
function de(e, a) {
|
|
6
|
-
const { requiredTopics: o, mustConfirm: r } = e;
|
|
7
|
-
if (!(o != null && o.length) && !r) return "";
|
|
8
|
-
const g = [`
|
|
9
|
-
## 考核检查(请在 checkResult 中返回结果)`];
|
|
10
|
-
return o != null && o.length && g.push(`必须涉及的话题:${o.join("、")}`), r && g.push(`需要${a}认可:是`), g.join(`
|
|
11
|
-
`);
|
|
12
|
-
}
|
|
13
|
-
const me = (e, a = {}) => {
|
|
14
|
-
const o = ee("COACH_AGENT"), {
|
|
15
|
-
domain: r = "金融",
|
|
16
|
-
tellerRoleName: g = "服务人员",
|
|
17
|
-
customerRoleName: y = "客户"
|
|
18
|
-
} = a, [I, $] = J(null), [F, v] = J(!1), b = B(/* @__PURE__ */ new Set()), w = B(!1), c = B(null), M = (n) => `
|
|
19
|
-
## 实训场景信息
|
|
20
|
-
- 模型名称:${n.modelName || ""}
|
|
21
|
-
- 业务领域:${r}
|
|
22
|
-
- 业务类型:${n.businessType || ""}
|
|
23
|
-
- 目标岗位:${n.targetPosition || g}
|
|
24
|
-
|
|
25
|
-
## 当前对话情况
|
|
26
|
-
${g}刚刚说的话:
|
|
27
|
-
"${n.tellerMessage}"
|
|
28
|
-
|
|
29
|
-
${y}的回复:
|
|
30
|
-
${n.customerMessage || "(尚未回复)"}
|
|
31
|
-
|
|
32
|
-
## 对话历史
|
|
33
|
-
${n.dialogueHistory || "(对话刚开始)"}
|
|
34
|
-
|
|
35
|
-
## ${y}当前情绪
|
|
36
|
-
${n.customerEmotion || "neutral"}
|
|
37
|
-
## 评估要求
|
|
38
|
-
请基于以上信息评估${g}的话术,判断是否需要指导,并给出具体的指导建议(如果需要)。评估重点包括但不限于:
|
|
39
|
-
- 语气是否得当
|
|
40
|
-
- 用词是否专业
|
|
41
|
-
- 是否有不当用语
|
|
42
|
-
- 是否重要信息遗漏
|
|
43
|
-
- 客户情绪变化
|
|
44
|
-
${de(n, y)}
|
|
45
|
-
`.trim(), Q = (n) => {
|
|
46
|
-
const p = [];
|
|
47
|
-
p.push(`${g}:"${n.tellerMessage}"`), n.customerMessage && p.push(`${y}回复:"${n.customerMessage}"`), n.customerEmotion && n.customerEmotion !== "neutral" && p.push(`${y}当前情绪:${n.customerEmotion}`);
|
|
48
|
-
const R = f(n);
|
|
49
|
-
return R && p.push(R), p.join(`
|
|
50
|
-
`);
|
|
51
|
-
}, f = (n) => {
|
|
52
|
-
const { requiredTopics: p, mustConfirm: R } = n, h = p == null ? void 0 : p.filter((x) => !b.current.has(x)), l = R && !w.current;
|
|
53
|
-
if (!(h != null && h.length) && !l) return "";
|
|
54
|
-
const N = [`
|
|
55
|
-
## 剩余考核项`];
|
|
56
|
-
return h != null && h.length && N.push(`未覆盖话题:${h.join("、")}`), l && N.push(`需要${y}认可:是`), N.join(`
|
|
57
|
-
`);
|
|
58
|
-
}, u = G(
|
|
59
|
-
async (n) => {
|
|
60
|
-
var p;
|
|
61
|
-
if (!e || !o)
|
|
62
|
-
return console.warn("无法获取实时指导:缺少 token 或 botId"), null;
|
|
63
|
-
v(!0);
|
|
64
|
-
try {
|
|
65
|
-
const R = c.current ? Q(n) : M(n), h = await te({
|
|
66
|
-
botId: o,
|
|
67
|
-
prompt: R,
|
|
68
|
-
token: e,
|
|
69
|
-
conversationId: c.current || void 0,
|
|
70
|
-
autoSaveHistory: !0
|
|
71
|
-
});
|
|
72
|
-
if (h.conversationId && (c.current = h.conversationId), !h.response)
|
|
73
|
-
return console.warn("实时指导返回空响应"), null;
|
|
74
|
-
let l;
|
|
75
|
-
try {
|
|
76
|
-
l = JSON.parse(h.response);
|
|
77
|
-
} catch {
|
|
78
|
-
console.warn("实时指导返回非 JSON 格式,尝试解析文本");
|
|
79
|
-
const C = n.tellerMessage.toLowerCase();
|
|
80
|
-
let A = null;
|
|
81
|
-
return (C.includes("怎么了") || C.includes("干什么")) && (A = {
|
|
82
|
-
severity: "warning",
|
|
83
|
-
message: "语气可能引起客户不适",
|
|
84
|
-
suggestion: '建议使用"请问有什么可以帮您"等更友好的表达'
|
|
85
|
-
}), (C.includes("开户") || C.includes("办理")) && !C.includes("费用") && !C.includes("手续费") && !C.includes("需要") && (A = {
|
|
86
|
-
severity: "info",
|
|
87
|
-
message: "建议告知客户相关费用和所需材料",
|
|
88
|
-
suggestion: '可以说"开户需要携带身份证,可能会收取一定手续费"'
|
|
89
|
-
}), (C.includes("不行") || C.includes("不能")) && (A = {
|
|
90
|
-
severity: "warning",
|
|
91
|
-
message: "直接拒绝可能引起客户反感",
|
|
92
|
-
suggestion: '建议使用"目前暂时不支持"等更委婉的表达'
|
|
93
|
-
}), A ? ($(A), D.getState().addGuidance({
|
|
94
|
-
severity: A.severity,
|
|
95
|
-
message: A.message,
|
|
96
|
-
suggestion: A.suggestion
|
|
97
|
-
}), A) : null;
|
|
98
|
-
}
|
|
99
|
-
const N = l.type === "guidance" && l.data, x = N ? l.severity || l.data.severity : l.severity, H = N ? l.data.message : l.message, U = N ? l.data.suggestion : l.suggestion, W = N ? !0 : l.needGuidance, P = N ? (p = l.data) == null ? void 0 : p.checkResult : l.checkResult;
|
|
100
|
-
if (P && (Array.isArray(P.coveredTopics) && P.coveredTopics.forEach((C) => b.current.add(C)), P.confirmed === !0 && (w.current = !0)), !W || !x || !H)
|
|
101
|
-
return $(null), null;
|
|
102
|
-
const E = {
|
|
103
|
-
severity: x,
|
|
104
|
-
message: H,
|
|
105
|
-
suggestion: U
|
|
106
|
-
};
|
|
107
|
-
return $(E), D.getState().addGuidance({
|
|
108
|
-
severity: E.severity,
|
|
109
|
-
message: E.message,
|
|
110
|
-
suggestion: E.suggestion
|
|
111
|
-
}), E;
|
|
112
|
-
} catch (R) {
|
|
113
|
-
return console.error("获取实时指导失败:", R), null;
|
|
114
|
-
} finally {
|
|
115
|
-
v(!1);
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
[e, o]
|
|
119
|
-
), j = G(() => {
|
|
120
|
-
$(null);
|
|
121
|
-
}, []), S = G(() => [...b.current], []), k = G(() => w.current, []), O = G(() => {
|
|
122
|
-
b.current = /* @__PURE__ */ new Set(), w.current = !1, c.current = null;
|
|
123
|
-
}, []), V = G((n) => {
|
|
124
|
-
c.current = n;
|
|
125
|
-
}, []), K = G(() => c.current, []);
|
|
126
|
-
return {
|
|
127
|
-
guidance: I,
|
|
128
|
-
// 当前指导信息
|
|
129
|
-
loading: F,
|
|
130
|
-
// 是否正在获取指导
|
|
131
|
-
evaluateGuidance: u,
|
|
132
|
-
// 评估并获取指导
|
|
133
|
-
clearGuidance: j,
|
|
134
|
-
// 清除指导
|
|
135
|
-
getCoveredTopics: S,
|
|
136
|
-
// 获取 AI 已判定覆盖的话题列表
|
|
137
|
-
isConfirmed: k,
|
|
138
|
-
// AI 角色是否已认可学生主张
|
|
139
|
-
resetCheckState: O,
|
|
140
|
-
// 重置考核检查状态(切换案例/步骤时调用)
|
|
141
|
-
setGuidanceConversationId: V,
|
|
142
|
-
// 设置会话 ID(从缓存恢复时使用)
|
|
143
|
-
getGuidanceConversationId: K
|
|
144
|
-
// 获取当前会话 ID(持久化时使用)
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
function $e(e, a = {}) {
|
|
148
|
-
const {
|
|
149
|
-
onRealtimeData: o,
|
|
150
|
-
onMessageReceived: r,
|
|
151
|
-
buildPrompt: g,
|
|
152
|
-
enableRealtimeGuidance: y = !0,
|
|
153
|
-
checkRules: I
|
|
154
|
-
} = a, $ = (e == null ? void 0 : e.stepId) || "", F = (e == null ? void 0 : e.botId) || ee("ACTOR_AGENT"), v = (e == null ? void 0 : e.currentUser) || { userId: "student-001" }, b = (e == null ? void 0 : e.tellerRoleName) || (e == null ? void 0 : e.targetPosition) || "柜员", w = (e == null ? void 0 : e.customerRoleName) || "客户", c = (e == null ? void 0 : e.domain) || "银行", { filledData: M } = ue(), Q = { ...(e == null ? void 0 : e.caseData) || {}, ...e || {} }, f = B(Z.getState().getDialogue($)), [u, j] = J(() => {
|
|
155
|
-
var s, t, i, m, d;
|
|
156
|
-
return (t = (s = f.current) == null ? void 0 : s.messages) != null && t.length ? f.current.messages : [{
|
|
157
|
-
role: "customer",
|
|
158
|
-
content: ((m = (i = e == null ? void 0 : e.caseData) == null ? void 0 : i.customerInfo) == null ? void 0 : m.purpose) || ((d = e == null ? void 0 : e.customerInfo) == null ? void 0 : d.purpose) || "你好",
|
|
159
|
-
timestamp: Date.now()
|
|
160
|
-
}];
|
|
161
|
-
}), [S, k] = J(""), [O, V] = J(
|
|
162
|
-
() => {
|
|
163
|
-
var s;
|
|
164
|
-
return ((s = f.current) == null ? void 0 : s.dialogueLog) || [];
|
|
165
|
-
}
|
|
166
|
-
), [K, n] = J(!1), { callAI: p, ready: R, error: h, token: l, setConversationId: N, getConversationId: x } = re(F, v);
|
|
167
|
-
X(() => {
|
|
168
|
-
var s;
|
|
169
|
-
(s = f.current) != null && s.conversationId && N(f.current.conversationId);
|
|
170
|
-
}, [N]);
|
|
171
|
-
const {
|
|
172
|
-
evaluateGuidance: H,
|
|
173
|
-
getCoveredTopics: U,
|
|
174
|
-
isConfirmed: W,
|
|
175
|
-
resetCheckState: P,
|
|
176
|
-
setGuidanceConversationId: E,
|
|
177
|
-
getGuidanceConversationId: C
|
|
178
|
-
} = me(l, {
|
|
179
|
-
domain: c,
|
|
180
|
-
tellerRoleName: b,
|
|
181
|
-
customerRoleName: w
|
|
182
|
-
});
|
|
183
|
-
X(() => {
|
|
184
|
-
var s;
|
|
185
|
-
(s = f.current) != null && s.guidanceConversationId && E(f.current.guidanceConversationId);
|
|
186
|
-
}, [E]), X(() => {
|
|
187
|
-
$ && Z.getState().saveDialogue($, {
|
|
188
|
-
messages: u,
|
|
189
|
-
dialogueLog: O,
|
|
190
|
-
conversationId: x(),
|
|
191
|
-
guidanceConversationId: C()
|
|
192
|
-
});
|
|
193
|
-
}, [u, O, $, x, C]);
|
|
194
|
-
const A = G((s) => {
|
|
195
|
-
const { data: t } = s, i = {
|
|
196
|
-
role: "customer",
|
|
197
|
-
content: t.content,
|
|
198
|
-
timestamp: Date.now(),
|
|
199
|
-
emotion: t.emotion,
|
|
200
|
-
feedback: t.feedback
|
|
201
|
-
};
|
|
202
|
-
if (j((m) => [...m, i]), r == null || r(i), t.talkQuality && t.feedback) {
|
|
203
|
-
const d = {
|
|
204
|
-
excellent: { type: "success", text: "优秀" },
|
|
205
|
-
good: { type: "success", text: "良好" },
|
|
206
|
-
average: { type: "info", text: "一般" },
|
|
207
|
-
poor: { type: "warning", text: "需改进" }
|
|
208
|
-
}[t.talkQuality];
|
|
209
|
-
Y.open({
|
|
210
|
-
type: d.type,
|
|
211
|
-
content: `话术质量:${d.text} - ${t.feedback}`,
|
|
212
|
-
duration: 8
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
}, [r]), q = G(async (s) => {
|
|
216
|
-
if (!R) {
|
|
217
|
-
Y.error("AI服务未就绪");
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
n(!0);
|
|
221
|
-
try {
|
|
222
|
-
const t = g ? g(s, u, e) : ge(
|
|
223
|
-
s,
|
|
224
|
-
u,
|
|
225
|
-
e,
|
|
226
|
-
b,
|
|
227
|
-
w,
|
|
228
|
-
c,
|
|
229
|
-
Q,
|
|
230
|
-
M
|
|
231
|
-
);
|
|
232
|
-
await p(t, (i, m) => {
|
|
233
|
-
if (m) {
|
|
234
|
-
const { command: d, cleanContent: T } = ce(i, "dialogue");
|
|
235
|
-
if (d)
|
|
236
|
-
A(d);
|
|
237
|
-
else {
|
|
238
|
-
try {
|
|
239
|
-
const L = JSON.parse(T);
|
|
240
|
-
if (L && L.type) return;
|
|
241
|
-
} catch {
|
|
242
|
-
}
|
|
243
|
-
const _ = {
|
|
244
|
-
role: "customer",
|
|
245
|
-
content: T,
|
|
246
|
-
timestamp: Date.now()
|
|
247
|
-
};
|
|
248
|
-
j((L) => [...L, _]), r == null || r(_);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
} catch (t) {
|
|
253
|
-
console.error("AI调用失败:", t), Y.error("AI回复失败,请重试");
|
|
254
|
-
const i = {
|
|
255
|
-
role: "customer",
|
|
256
|
-
content: fe(s, e),
|
|
257
|
-
timestamp: Date.now()
|
|
258
|
-
};
|
|
259
|
-
j((m) => [...m, i]), r == null || r(i);
|
|
260
|
-
} finally {
|
|
261
|
-
n(!1);
|
|
262
|
-
}
|
|
263
|
-
}, [R, p, u, e, A, g, r, b, w, c]), oe = G(() => {
|
|
264
|
-
var i;
|
|
265
|
-
if (!S.trim()) return;
|
|
266
|
-
const s = S, t = {
|
|
267
|
-
role: "teller",
|
|
268
|
-
content: s,
|
|
269
|
-
timestamp: Date.now()
|
|
270
|
-
};
|
|
271
|
-
if (j((m) => [...m, t]), V((m) => [...m, t]), o == null || o({
|
|
272
|
-
type: "dialogue",
|
|
273
|
-
message: t
|
|
274
|
-
}), y) {
|
|
275
|
-
const m = u.slice(-4).map((z) => `${z.role === "teller" ? b : w}: ${z.content}`).join(`
|
|
276
|
-
`), d = [...u].reverse().find((z) => z.role === "customer"), T = (d == null ? void 0 : d.emotion) || "neutral", _ = (I == null ? void 0 : I.requiredTopics) || ((i = I == null ? void 0 : I.dialogueRules) == null ? void 0 : i.requiredTopics), L = I == null ? void 0 : I.mustConfirm;
|
|
277
|
-
H({
|
|
278
|
-
tellerMessage: s,
|
|
279
|
-
customerMessage: d == null ? void 0 : d.content,
|
|
280
|
-
dialogueHistory: m,
|
|
281
|
-
customerEmotion: T,
|
|
282
|
-
modelName: e == null ? void 0 : e.modelName,
|
|
283
|
-
businessType: e == null ? void 0 : e.businessType,
|
|
284
|
-
targetPosition: e == null ? void 0 : e.targetPosition,
|
|
285
|
-
requiredTopics: _,
|
|
286
|
-
mustConfirm: L
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
q(s), k("");
|
|
290
|
-
}, [S, u, o, y, H, q, b, w]), se = G((s) => {
|
|
291
|
-
var t;
|
|
292
|
-
if (!s) return { canComplete: !0 };
|
|
293
|
-
if (s.minRounds && O.length < s.minRounds)
|
|
294
|
-
return { canComplete: !1, reason: `至少需要 ${s.minRounds} 轮对话` };
|
|
295
|
-
if (((t = s.requiredTopics) == null ? void 0 : t.length) > 0) {
|
|
296
|
-
const i = u.filter((T) => T.role === "teller").map((T) => T.content).join(" "), m = new Set(U()), d = s.requiredTopics.filter(
|
|
297
|
-
(T) => !i.includes(T) && !m.has(T)
|
|
298
|
-
);
|
|
299
|
-
if (d.length > 0)
|
|
300
|
-
return { canComplete: !1, reason: `还需涉及:${d.join("、")}` };
|
|
301
|
-
}
|
|
302
|
-
return { canComplete: !0 };
|
|
303
|
-
}, [O, u, U]), ne = G(() => {
|
|
304
|
-
$ && Z.getState().clearStep($), P();
|
|
305
|
-
}, [$, P]);
|
|
306
|
-
return {
|
|
307
|
-
messages: u,
|
|
308
|
-
input: S,
|
|
309
|
-
dialogueLog: O,
|
|
310
|
-
aiResponding: K,
|
|
311
|
-
aiError: h,
|
|
312
|
-
ready: R,
|
|
313
|
-
setInput: k,
|
|
314
|
-
handleSend: oe,
|
|
315
|
-
checkCompletion: se,
|
|
316
|
-
isConfirmed: W,
|
|
317
|
-
cleanup: ne
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
function ge(e, a, o, r = "柜员", g = "客户", y = "银行", I, $) {
|
|
321
|
-
const F = (o == null ? void 0 : o.roleConfig) || {}, v = o == null ? void 0 : o.caseData, b = (o == null ? void 0 : o.scenario) || `${y}业务办理`, w = le(b, I || v, $), c = (v == null ? void 0 : v.customerInfo) || (o == null ? void 0 : o.customerInfo) || {}, M = (v == null ? void 0 : v.businessData) || (o == null ? void 0 : o.businessData) || {};
|
|
322
|
-
if (!a.some((f) => f.role === "teller")) {
|
|
323
|
-
const f = [], u = (c == null ? void 0 : c.name) || (c == null ? void 0 : c.姓名) || (c == null ? void 0 : c.customerName);
|
|
324
|
-
return u && f.push(`姓名:${u}`), Object.entries(F).forEach(([j, S]) => {
|
|
325
|
-
if (j === "角色编号") return;
|
|
326
|
-
let k;
|
|
327
|
-
Array.isArray(S) ? k = S.join("、") : typeof S == "object" && S !== null ? k = JSON.stringify(S, null, 2) : k = String(S || ""), k && f.push(`${j}:${k}`);
|
|
328
|
-
}), `
|
|
329
|
-
【场景信息】
|
|
330
|
-
场景:${w}
|
|
331
|
-
|
|
332
|
-
【角色设定】
|
|
333
|
-
你扮演的角色信息如下${u ? `,你的名字是"${u}"` : ""}:
|
|
334
|
-
${f.length > 0 ? f.join(`
|
|
335
|
-
`) : "(无特殊设定)"}
|
|
336
|
-
|
|
337
|
-
【客户信息】
|
|
338
|
-
${JSON.stringify(c, null, 2)}
|
|
339
|
-
|
|
340
|
-
【业务数据】
|
|
341
|
-
${JSON.stringify(M, null, 2)}
|
|
342
|
-
|
|
343
|
-
【对话要求】
|
|
344
|
-
请以JSON格式返回你的回复,格式如下:
|
|
345
|
-
{
|
|
346
|
-
"type": "dialogue",
|
|
347
|
-
"data": {
|
|
348
|
-
"role": "customer",
|
|
349
|
-
"content": "你的回复内容",
|
|
350
|
-
"emotion": "neutral",
|
|
351
|
-
"talkQuality": "good",
|
|
352
|
-
"feedback": "对${r}话术的简短评价(可选)"
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
${r}: ${e}
|
|
357
|
-
`.trim();
|
|
358
|
-
}
|
|
359
|
-
return `${r}: ${e}`;
|
|
360
|
-
}
|
|
361
|
-
function fe(e, a) {
|
|
362
|
-
var r, g, y;
|
|
363
|
-
const o = e.toLowerCase();
|
|
364
|
-
return o.includes("您好") || o.includes("你好") ? "你好!" : o.includes("办理") || o.includes("业务") ? ((g = (r = a == null ? void 0 : a.caseData) == null ? void 0 : r.customerInfo) == null ? void 0 : g.purpose) || ((y = a == null ? void 0 : a.customerInfo) == null ? void 0 : y.purpose) || "我想开个储蓄账户" : o.includes("材料") || o.includes("证件") ? "我带了身份证,还需要什么吗?" : o.includes("开户") || o.includes("账户") ? "开储蓄账户需要多少钱?有什么要求吗?" : o.includes("费用") || o.includes("手续费") ? "好的,我明白了。" : "好的,谢谢!";
|
|
365
|
-
}
|
|
366
|
-
export {
|
|
367
|
-
$e as u
|
|
368
|
-
};
|