@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
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
import { u as U, a as Z, r as S, j as s, R as D, b as ee } from "./CaseDetailContent-Y7Q430MG.js";
|
|
2
|
+
import se, { useState as Q, useMemo as u } from "react";
|
|
3
|
+
import { Radio as X, Space as re } from "antd";
|
|
4
|
+
import { n as oe, a as te } from "./judgement-xTGXlDcn.js";
|
|
5
|
+
import { b as ne, g as H } from "./DecisionShared-Be-zKZLT.js";
|
|
6
|
+
import { R } from "./CheckCircleFilled-NvZaC2sk.js";
|
|
7
|
+
import { R as le } from "./ArrowLeftOutlined-BxA84GXs.js";
|
|
8
|
+
import { R as ie } from "./TrainingModelContainer-DqCsdC7C.js";
|
|
9
|
+
function t(r, L) {
|
|
10
|
+
const f = (r.startsWith("#") ? r.slice(1, 7) : r).slice(0, 6);
|
|
11
|
+
if (f.length !== 6) return r;
|
|
12
|
+
const p = parseInt(f.slice(0, 2), 16), z = parseInt(f.slice(2, 4), 16), i = parseInt(f.slice(4, 6), 16);
|
|
13
|
+
return `rgba(${p},${z},${i},${L})`;
|
|
14
|
+
}
|
|
15
|
+
const ye = ({ initData: r, runtimeRules: L, onFinish: f }) => {
|
|
16
|
+
var N, q, K, Y;
|
|
17
|
+
const [p, z] = Q({}), [i, I] = Q(0), { currentCase: T } = U(), h = Z((o) => o.filledData), e = u(() => {
|
|
18
|
+
var o;
|
|
19
|
+
return ne((o = r == null ? void 0 : r.uiConfig) == null ? void 0 : o.theme);
|
|
20
|
+
}, [(N = r == null ? void 0 : r.uiConfig) == null ? void 0 : N.theme]), O = u(() => oe(r == null ? void 0 : r.decisionMode, r), [r]), y = u(() => T || {}, [T]), d = u(
|
|
21
|
+
() => ((r == null ? void 0 : r.assessmentQuestions) || (r == null ? void 0 : r.questions) || []).map((o) => ({
|
|
22
|
+
...o,
|
|
23
|
+
question: S(o.question || "", y, h),
|
|
24
|
+
options: (o.options || []).map((n) => typeof n == "string" ? S(n, y, h) : {
|
|
25
|
+
...n,
|
|
26
|
+
label: S(n.label || "", y, h),
|
|
27
|
+
value: typeof n.value == "string" ? S(n.value, y, h) : n.value
|
|
28
|
+
})
|
|
29
|
+
})),
|
|
30
|
+
[r, y, h]
|
|
31
|
+
);
|
|
32
|
+
u(() => (r == null ? void 0 : r.previousEvidence) || [], [r]);
|
|
33
|
+
const C = u(
|
|
34
|
+
() => S((r == null ? void 0 : r.stepName) || "评估问卷", y, h),
|
|
35
|
+
[r == null ? void 0 : r.stepName, y, h]
|
|
36
|
+
), w = Object.keys(p).length, a = w === d.length && d.length > 0, _ = d.length > 0 ? Math.round(w / d.length * 100) : 0, m = d[i], F = (m == null ? void 0 : m.id) || String(i), b = !!p[F], E = (o, n) => {
|
|
37
|
+
z((g) => ({ ...g, [o]: n }));
|
|
38
|
+
}, M = () => d.reduce((o, n, g) => {
|
|
39
|
+
var $;
|
|
40
|
+
const c = n.id || String(g), l = p[c], v = ($ = n.options) == null ? void 0 : $.find(
|
|
41
|
+
(x) => typeof x == "string" ? x === l : x.value === l || x.label === l
|
|
42
|
+
);
|
|
43
|
+
return !v || typeof v == "string" ? o : o + (v.score || 0);
|
|
44
|
+
}, 0), A = (o) => o >= 8 ? "R4" : o >= 6 ? "R3" : o >= 4 ? "R2" : "R1", B = u(() => a ? M() : 0, [p, d, a]), W = u(() => A(B), [B]), G = () => {
|
|
45
|
+
const o = M(), n = A(o), g = d.map((l, v) => {
|
|
46
|
+
var P;
|
|
47
|
+
const $ = l.id || String(v), x = p[$], j = (P = l.options) == null ? void 0 : P.find(
|
|
48
|
+
(k) => typeof k == "string" ? k === x : k.value === x || k.label === x
|
|
49
|
+
);
|
|
50
|
+
return `${l.question}:${typeof j == "string" ? j : (j == null ? void 0 : j.label) || x || "未作答"}`;
|
|
51
|
+
}), c = te({
|
|
52
|
+
sourceStepId: (r == null ? void 0 : r.stepId) || "unknown",
|
|
53
|
+
sourceStepName: C,
|
|
54
|
+
sourceType: "decision-making",
|
|
55
|
+
title: `${C}结果`,
|
|
56
|
+
summary: `评估结论为 ${n},总分 ${o} 分。`,
|
|
57
|
+
keyFacts: [
|
|
58
|
+
{ label: "决策模式", value: O },
|
|
59
|
+
{ label: "结论等级", value: n },
|
|
60
|
+
{ label: "评估得分", value: String(o) },
|
|
61
|
+
{ label: "题目数量", value: String(d.length) }
|
|
62
|
+
],
|
|
63
|
+
conclusion: n
|
|
64
|
+
});
|
|
65
|
+
f({
|
|
66
|
+
stepId: (r == null ? void 0 : r.stepId) || "unknown",
|
|
67
|
+
operationType: "assessment",
|
|
68
|
+
operationData: { answers: p, riskLevel: n, score: o, basis: g },
|
|
69
|
+
operationLog: [{ action: "assessment-complete", answers: p, riskLevel: n, score: o, timestamp: Date.now() }],
|
|
70
|
+
timestamp: Date.now(),
|
|
71
|
+
evidenceSummary: c
|
|
72
|
+
});
|
|
73
|
+
}, V = () => {
|
|
74
|
+
i > 0 && I(i - 1);
|
|
75
|
+
}, J = () => {
|
|
76
|
+
i < d.length - 1 && I(i + 1);
|
|
77
|
+
};
|
|
78
|
+
return se.useEffect(() => {
|
|
79
|
+
const o = "assessment-scrollbar-style";
|
|
80
|
+
if (!document.getElementById(o)) {
|
|
81
|
+
const n = document.createElement("style");
|
|
82
|
+
n.id = o, n.textContent = `
|
|
83
|
+
.assessment-scroll::-webkit-scrollbar {
|
|
84
|
+
width: 4px;
|
|
85
|
+
height: 4px;
|
|
86
|
+
}
|
|
87
|
+
.assessment-scroll::-webkit-scrollbar-track {
|
|
88
|
+
background: transparent;
|
|
89
|
+
}
|
|
90
|
+
.assessment-scroll::-webkit-scrollbar-thumb {
|
|
91
|
+
background: rgba(102, 126, 234, 0.25);
|
|
92
|
+
border-radius: 2px;
|
|
93
|
+
}
|
|
94
|
+
.assessment-scroll::-webkit-scrollbar-thumb:hover {
|
|
95
|
+
background: rgba(102, 126, 234, 0.45);
|
|
96
|
+
}
|
|
97
|
+
`, document.head.appendChild(n);
|
|
98
|
+
}
|
|
99
|
+
}, []), /* @__PURE__ */ s.jsxs("div", { className: "assessment-scroll", style: {
|
|
100
|
+
height: "100%",
|
|
101
|
+
background: "linear-gradient(to bottom, #F8F9FC 0%, #FFFFFF 100%)",
|
|
102
|
+
borderRadius: e.radius.md,
|
|
103
|
+
border: `1px solid ${e.border}`,
|
|
104
|
+
overflow: "auto"
|
|
105
|
+
}, children: [
|
|
106
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
107
|
+
padding: "16px 24px",
|
|
108
|
+
background: "linear-gradient(135deg, #667EEA 0%, #764BA2 100%)",
|
|
109
|
+
borderBottom: `2px solid ${t(e.primary, 0.2)}`,
|
|
110
|
+
position: "relative",
|
|
111
|
+
overflow: "hidden"
|
|
112
|
+
}, children: [
|
|
113
|
+
/* @__PURE__ */ s.jsx("div", { style: {
|
|
114
|
+
position: "absolute",
|
|
115
|
+
top: 0,
|
|
116
|
+
right: 0,
|
|
117
|
+
width: "200px",
|
|
118
|
+
height: "200px",
|
|
119
|
+
background: "radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%)",
|
|
120
|
+
borderRadius: "50%",
|
|
121
|
+
transform: "translate(30%, -30%)"
|
|
122
|
+
} }),
|
|
123
|
+
/* @__PURE__ */ s.jsxs("div", { style: { position: "relative", zIndex: 1 }, children: [
|
|
124
|
+
/* @__PURE__ */ s.jsx("div", { style: {
|
|
125
|
+
fontSize: 18,
|
|
126
|
+
fontWeight: 700,
|
|
127
|
+
color: "#FFFFFF",
|
|
128
|
+
letterSpacing: "0.5px",
|
|
129
|
+
marginBottom: 4
|
|
130
|
+
}, children: C }),
|
|
131
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
132
|
+
fontSize: 13,
|
|
133
|
+
color: "rgba(255,255,255,0.85)",
|
|
134
|
+
display: "flex",
|
|
135
|
+
alignItems: "center",
|
|
136
|
+
gap: 6
|
|
137
|
+
}, children: [
|
|
138
|
+
/* @__PURE__ */ s.jsx("span", { style: {
|
|
139
|
+
width: 4,
|
|
140
|
+
height: 4,
|
|
141
|
+
borderRadius: "50%",
|
|
142
|
+
background: "rgba(255,255,255,0.6)"
|
|
143
|
+
} }),
|
|
144
|
+
"请根据实际情况逐题作答,系统将自动计算评估结论"
|
|
145
|
+
] })
|
|
146
|
+
] })
|
|
147
|
+
] }),
|
|
148
|
+
/* @__PURE__ */ s.jsxs("div", { style: { display: "flex", height: "600px" }, children: [
|
|
149
|
+
/* @__PURE__ */ s.jsxs(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
className: "assessment-scroll",
|
|
153
|
+
style: {
|
|
154
|
+
width: "35%",
|
|
155
|
+
flexShrink: 0,
|
|
156
|
+
background: "linear-gradient(to bottom, #F0F4FF 0%, #FAFBFF 100%)",
|
|
157
|
+
borderRight: `2px solid ${t(e.primary, 0.15)}`,
|
|
158
|
+
display: "flex",
|
|
159
|
+
flexDirection: "column",
|
|
160
|
+
position: "relative",
|
|
161
|
+
height: "100%",
|
|
162
|
+
overflowY: "auto",
|
|
163
|
+
overflowX: "hidden"
|
|
164
|
+
},
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ s.jsx("div", { style: {
|
|
167
|
+
position: "absolute",
|
|
168
|
+
left: 0,
|
|
169
|
+
top: 0,
|
|
170
|
+
bottom: 0,
|
|
171
|
+
width: "3px",
|
|
172
|
+
background: `linear-gradient(to bottom, ${e.primary} 0%, ${e.success} 100%)`
|
|
173
|
+
} }),
|
|
174
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
175
|
+
background: "#FFFFFF",
|
|
176
|
+
borderBottom: `1px solid ${t(e.border, 0.5)}`,
|
|
177
|
+
padding: "20px 20px 18px",
|
|
178
|
+
position: "relative"
|
|
179
|
+
}, children: [
|
|
180
|
+
/* @__PURE__ */ s.jsx("div", { style: {
|
|
181
|
+
position: "absolute",
|
|
182
|
+
top: 0,
|
|
183
|
+
right: 0,
|
|
184
|
+
width: "120px",
|
|
185
|
+
height: "120px",
|
|
186
|
+
background: `radial-gradient(circle, ${t(e.primary, 0.08)} 0%, transparent 70%)`,
|
|
187
|
+
borderRadius: "50%",
|
|
188
|
+
transform: "translate(40%, -40%)"
|
|
189
|
+
} }),
|
|
190
|
+
/* @__PURE__ */ s.jsxs("div", { style: { position: "relative", zIndex: 1 }, children: [
|
|
191
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
192
|
+
fontSize: 11,
|
|
193
|
+
color: e.textMuted,
|
|
194
|
+
marginBottom: 10,
|
|
195
|
+
fontWeight: 600,
|
|
196
|
+
textTransform: "uppercase",
|
|
197
|
+
letterSpacing: "1px",
|
|
198
|
+
display: "flex",
|
|
199
|
+
alignItems: "center",
|
|
200
|
+
gap: 6
|
|
201
|
+
}, children: [
|
|
202
|
+
/* @__PURE__ */ s.jsx("span", { style: {
|
|
203
|
+
width: 6,
|
|
204
|
+
height: 6,
|
|
205
|
+
borderRadius: "50%",
|
|
206
|
+
background: a ? e.success : e.primary
|
|
207
|
+
} }),
|
|
208
|
+
"答题进度"
|
|
209
|
+
] }),
|
|
210
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
211
|
+
display: "flex",
|
|
212
|
+
alignItems: "baseline",
|
|
213
|
+
gap: 12,
|
|
214
|
+
marginBottom: 12
|
|
215
|
+
}, children: [
|
|
216
|
+
/* @__PURE__ */ s.jsx("span", { style: {
|
|
217
|
+
fontSize: 42,
|
|
218
|
+
fontWeight: 800,
|
|
219
|
+
color: a ? e.success : e.primary,
|
|
220
|
+
letterSpacing: "1px",
|
|
221
|
+
lineHeight: 1,
|
|
222
|
+
textShadow: `0 2px 8px ${t(a ? e.success : e.primary, 0.2)}`
|
|
223
|
+
}, children: w }),
|
|
224
|
+
/* @__PURE__ */ s.jsxs("span", { style: {
|
|
225
|
+
fontSize: 16,
|
|
226
|
+
color: e.textMuted,
|
|
227
|
+
fontWeight: 600
|
|
228
|
+
}, children: [
|
|
229
|
+
"/ ",
|
|
230
|
+
d.length,
|
|
231
|
+
" 题"
|
|
232
|
+
] })
|
|
233
|
+
] }),
|
|
234
|
+
/* @__PURE__ */ s.jsx("div", { style: {
|
|
235
|
+
height: 8,
|
|
236
|
+
background: t(e.border, 0.3),
|
|
237
|
+
borderRadius: 4,
|
|
238
|
+
overflow: "hidden",
|
|
239
|
+
marginTop: 8
|
|
240
|
+
}, children: /* @__PURE__ */ s.jsx("div", { style: {
|
|
241
|
+
height: "100%",
|
|
242
|
+
width: `${_}%`,
|
|
243
|
+
background: a ? `linear-gradient(90deg, ${e.success} 0%, ${t(e.success, 0.7)} 100%)` : `linear-gradient(90deg, ${e.primary} 0%, ${t(e.primary, 0.7)} 100%)`,
|
|
244
|
+
borderRadius: 4,
|
|
245
|
+
transition: "width 0.4s ease"
|
|
246
|
+
} }) })
|
|
247
|
+
] })
|
|
248
|
+
] }),
|
|
249
|
+
/* @__PURE__ */ s.jsxs("div", { style: { flex: 1, padding: "16px 16px 12px" }, children: [
|
|
250
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
251
|
+
display: "flex",
|
|
252
|
+
alignItems: "center",
|
|
253
|
+
gap: 8,
|
|
254
|
+
marginBottom: 14
|
|
255
|
+
}, children: [
|
|
256
|
+
/* @__PURE__ */ s.jsx("div", { style: {
|
|
257
|
+
width: 32,
|
|
258
|
+
height: 32,
|
|
259
|
+
borderRadius: "50%",
|
|
260
|
+
background: `linear-gradient(135deg, ${e.primary} 0%, ${t(e.primary, 0.7)} 100%)`,
|
|
261
|
+
display: "flex",
|
|
262
|
+
alignItems: "center",
|
|
263
|
+
justifyContent: "center",
|
|
264
|
+
boxShadow: `0 2px 8px ${t(e.primary, 0.25)}`
|
|
265
|
+
}, children: /* @__PURE__ */ s.jsx(D, { style: { color: "#fff", fontSize: 15 } }) }),
|
|
266
|
+
/* @__PURE__ */ s.jsxs("div", { style: { flex: 1 }, children: [
|
|
267
|
+
/* @__PURE__ */ s.jsx("div", { style: { fontSize: 15, fontWeight: 700, color: e.text }, children: "题目列表" }),
|
|
268
|
+
/* @__PURE__ */ s.jsx("div", { style: { fontSize: 11, color: e.textLight }, children: "点击跳转到对应题目" })
|
|
269
|
+
] })
|
|
270
|
+
] }),
|
|
271
|
+
/* @__PURE__ */ s.jsx("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: d.map((o, n) => {
|
|
272
|
+
const g = o.id || String(n), c = !!p[g], l = n === i;
|
|
273
|
+
return /* @__PURE__ */ s.jsxs(
|
|
274
|
+
"button",
|
|
275
|
+
{
|
|
276
|
+
onClick: () => I(n),
|
|
277
|
+
style: {
|
|
278
|
+
width: "100%",
|
|
279
|
+
display: "flex",
|
|
280
|
+
alignItems: "center",
|
|
281
|
+
gap: 10,
|
|
282
|
+
padding: "12px 14px",
|
|
283
|
+
background: l ? `linear-gradient(to right, ${e.primaryLight} 0%, ${t(e.primary, 0.05)} 100%)` : "#FFFFFF",
|
|
284
|
+
border: `2px solid ${l ? e.primary : c ? e.successBorder : t(e.border, 0.5)}`,
|
|
285
|
+
borderRadius: 8,
|
|
286
|
+
cursor: "pointer",
|
|
287
|
+
fontSize: 13,
|
|
288
|
+
color: l ? e.primary : e.text,
|
|
289
|
+
fontWeight: l ? 600 : 400,
|
|
290
|
+
textAlign: "left",
|
|
291
|
+
transition: "all 0.2s ease",
|
|
292
|
+
boxShadow: l ? `0 2px 8px ${t(e.primary, 0.15)}` : "none",
|
|
293
|
+
minWidth: 0
|
|
294
|
+
},
|
|
295
|
+
children: [
|
|
296
|
+
/* @__PURE__ */ s.jsx("div", { style: {
|
|
297
|
+
width: 28,
|
|
298
|
+
height: 28,
|
|
299
|
+
borderRadius: "50%",
|
|
300
|
+
background: c ? e.successLight : l ? e.primaryLight : t(e.bg, 0.5),
|
|
301
|
+
border: `1.5px solid ${c ? e.successBorder : l ? e.primaryBorder : t(e.border, 0.6)}`,
|
|
302
|
+
display: "flex",
|
|
303
|
+
alignItems: "center",
|
|
304
|
+
justifyContent: "center",
|
|
305
|
+
flexShrink: 0,
|
|
306
|
+
fontSize: 12,
|
|
307
|
+
fontWeight: 700,
|
|
308
|
+
color: c ? e.success : l ? e.primary : e.textMuted
|
|
309
|
+
}, children: c ? /* @__PURE__ */ s.jsx(ee, { style: { fontSize: 12 } }) : n + 1 }),
|
|
310
|
+
/* @__PURE__ */ s.jsx("span", { style: {
|
|
311
|
+
flex: 1,
|
|
312
|
+
overflow: "hidden",
|
|
313
|
+
textOverflow: "ellipsis",
|
|
314
|
+
whiteSpace: "nowrap",
|
|
315
|
+
minWidth: 0
|
|
316
|
+
}, children: o.question }),
|
|
317
|
+
l && /* @__PURE__ */ s.jsx("span", { style: {
|
|
318
|
+
fontSize: 10,
|
|
319
|
+
color: e.primary,
|
|
320
|
+
background: t(e.primary, 0.1),
|
|
321
|
+
borderRadius: 3,
|
|
322
|
+
padding: "2px 6px",
|
|
323
|
+
fontWeight: 600,
|
|
324
|
+
flexShrink: 0
|
|
325
|
+
}, children: "当前" })
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
g
|
|
329
|
+
);
|
|
330
|
+
}) })
|
|
331
|
+
] })
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
),
|
|
335
|
+
/* @__PURE__ */ s.jsx(
|
|
336
|
+
"div",
|
|
337
|
+
{
|
|
338
|
+
className: "assessment-scroll",
|
|
339
|
+
style: {
|
|
340
|
+
flex: 1,
|
|
341
|
+
padding: "20px 24px",
|
|
342
|
+
display: "flex",
|
|
343
|
+
flexDirection: "column",
|
|
344
|
+
gap: 18,
|
|
345
|
+
background: "#FFFFFF",
|
|
346
|
+
height: "100%",
|
|
347
|
+
overflowY: "auto",
|
|
348
|
+
overflowX: "hidden"
|
|
349
|
+
},
|
|
350
|
+
children: m ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
351
|
+
/* @__PURE__ */ s.jsxs(
|
|
352
|
+
"div",
|
|
353
|
+
{
|
|
354
|
+
className: "assessment-scroll",
|
|
355
|
+
style: {
|
|
356
|
+
background: `linear-gradient(to bottom, ${t(e.bg, 0.3)} 0%, #FFFFFF 100%)`,
|
|
357
|
+
border: `2px solid ${b ? e.successBorder : t(e.border, 0.5)}`,
|
|
358
|
+
borderRadius: 10,
|
|
359
|
+
padding: "20px",
|
|
360
|
+
position: "relative",
|
|
361
|
+
overflowY: "auto",
|
|
362
|
+
overflowX: "hidden"
|
|
363
|
+
},
|
|
364
|
+
children: [
|
|
365
|
+
/* @__PURE__ */ s.jsx("div", { style: {
|
|
366
|
+
position: "absolute",
|
|
367
|
+
top: -30,
|
|
368
|
+
right: -30,
|
|
369
|
+
width: "150px",
|
|
370
|
+
height: "150px",
|
|
371
|
+
background: `radial-gradient(circle, ${t(b ? e.success : e.primary, 0.08)} 0%, transparent 70%)`,
|
|
372
|
+
borderRadius: "50%"
|
|
373
|
+
} }),
|
|
374
|
+
/* @__PURE__ */ s.jsxs("div", { style: { position: "relative", zIndex: 1 }, children: [
|
|
375
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
376
|
+
display: "inline-flex",
|
|
377
|
+
alignItems: "center",
|
|
378
|
+
gap: 8,
|
|
379
|
+
background: b ? e.successLight : e.primaryLight,
|
|
380
|
+
border: `1.5px solid ${b ? e.successBorder : e.primaryBorder}`,
|
|
381
|
+
borderRadius: 6,
|
|
382
|
+
padding: "6px 12px",
|
|
383
|
+
marginBottom: 16
|
|
384
|
+
}, children: [
|
|
385
|
+
/* @__PURE__ */ s.jsxs("span", { style: {
|
|
386
|
+
fontSize: 14,
|
|
387
|
+
fontWeight: 700,
|
|
388
|
+
color: b ? e.success : e.primary
|
|
389
|
+
}, children: [
|
|
390
|
+
"第 ",
|
|
391
|
+
i + 1,
|
|
392
|
+
" 题"
|
|
393
|
+
] }),
|
|
394
|
+
b && /* @__PURE__ */ s.jsx(R, { style: { color: e.success, fontSize: 14 } })
|
|
395
|
+
] }),
|
|
396
|
+
/* @__PURE__ */ s.jsx("div", { style: {
|
|
397
|
+
fontSize: 16,
|
|
398
|
+
fontWeight: 600,
|
|
399
|
+
color: e.text,
|
|
400
|
+
lineHeight: 1.7,
|
|
401
|
+
marginBottom: 20
|
|
402
|
+
}, children: m.question }),
|
|
403
|
+
/* @__PURE__ */ s.jsx(
|
|
404
|
+
X.Group,
|
|
405
|
+
{
|
|
406
|
+
value: p[F],
|
|
407
|
+
onChange: (o) => E(F, o.target.value),
|
|
408
|
+
style: { width: "100%" },
|
|
409
|
+
children: /* @__PURE__ */ s.jsx(re, { direction: "vertical", size: 10, style: { width: "100%" }, children: (q = m.options) == null ? void 0 : q.map((o) => {
|
|
410
|
+
const n = typeof o == "string" ? o : o.value, g = typeof o == "string" ? o : o.label, c = p[F] === n;
|
|
411
|
+
return /* @__PURE__ */ s.jsxs(
|
|
412
|
+
"div",
|
|
413
|
+
{
|
|
414
|
+
onClick: () => E(F, n),
|
|
415
|
+
style: {
|
|
416
|
+
display: "flex",
|
|
417
|
+
alignItems: "center",
|
|
418
|
+
gap: 12,
|
|
419
|
+
padding: "14px 16px",
|
|
420
|
+
borderRadius: 8,
|
|
421
|
+
border: `2px solid ${c ? e.primary : t(e.border, 0.5)}`,
|
|
422
|
+
background: c ? `linear-gradient(135deg, ${t(e.primary, 0.08)} 0%, ${t(e.primary, 0.03)} 100%)` : "#FFFFFF",
|
|
423
|
+
cursor: "pointer",
|
|
424
|
+
transition: "all 0.2s ease",
|
|
425
|
+
boxShadow: c ? `0 2px 8px ${t(e.primary, 0.15)}` : "none"
|
|
426
|
+
},
|
|
427
|
+
onMouseEnter: (l) => {
|
|
428
|
+
c || (l.currentTarget.style.borderColor = t(e.primary, 0.4), l.currentTarget.style.boxShadow = "0 2px 6px rgba(0,0,0,0.06)");
|
|
429
|
+
},
|
|
430
|
+
onMouseLeave: (l) => {
|
|
431
|
+
c || (l.currentTarget.style.borderColor = t(e.border, 0.5), l.currentTarget.style.boxShadow = "none");
|
|
432
|
+
},
|
|
433
|
+
children: [
|
|
434
|
+
/* @__PURE__ */ s.jsx(X, { value: n, style: { margin: 0 } }),
|
|
435
|
+
/* @__PURE__ */ s.jsx("span", { style: {
|
|
436
|
+
fontSize: 14,
|
|
437
|
+
color: c ? e.primary : e.text,
|
|
438
|
+
fontWeight: c ? 600 : 400,
|
|
439
|
+
flex: 1
|
|
440
|
+
}, children: g }),
|
|
441
|
+
c && /* @__PURE__ */ s.jsx(R, { style: { color: e.primary, fontSize: 16 } })
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
n
|
|
445
|
+
);
|
|
446
|
+
}) })
|
|
447
|
+
}
|
|
448
|
+
)
|
|
449
|
+
] })
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
),
|
|
453
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
454
|
+
display: "flex",
|
|
455
|
+
gap: 12,
|
|
456
|
+
alignItems: "center"
|
|
457
|
+
}, children: [
|
|
458
|
+
/* @__PURE__ */ s.jsxs(
|
|
459
|
+
"button",
|
|
460
|
+
{
|
|
461
|
+
onClick: V,
|
|
462
|
+
disabled: i === 0,
|
|
463
|
+
style: {
|
|
464
|
+
flex: 1,
|
|
465
|
+
height: 48,
|
|
466
|
+
border: `2px solid ${i === 0 ? t(e.border, 0.5) : e.primary}`,
|
|
467
|
+
borderRadius: 8,
|
|
468
|
+
fontSize: 14,
|
|
469
|
+
fontWeight: 600,
|
|
470
|
+
cursor: i === 0 ? "not-allowed" : "pointer",
|
|
471
|
+
background: i === 0 ? t(e.bg, 0.3) : "#FFFFFF",
|
|
472
|
+
color: i === 0 ? e.textLight : e.primary,
|
|
473
|
+
transition: "all 0.2s ease",
|
|
474
|
+
display: "flex",
|
|
475
|
+
alignItems: "center",
|
|
476
|
+
justifyContent: "center",
|
|
477
|
+
gap: 8
|
|
478
|
+
},
|
|
479
|
+
children: [
|
|
480
|
+
/* @__PURE__ */ s.jsx(le, { style: { fontSize: 14 } }),
|
|
481
|
+
"上一题"
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
),
|
|
485
|
+
/* @__PURE__ */ s.jsxs(
|
|
486
|
+
"button",
|
|
487
|
+
{
|
|
488
|
+
onClick: J,
|
|
489
|
+
disabled: i === d.length - 1,
|
|
490
|
+
style: {
|
|
491
|
+
flex: 1,
|
|
492
|
+
height: 48,
|
|
493
|
+
border: `2px solid ${i === d.length - 1 ? t(e.border, 0.5) : e.primary}`,
|
|
494
|
+
borderRadius: 8,
|
|
495
|
+
fontSize: 14,
|
|
496
|
+
fontWeight: 600,
|
|
497
|
+
cursor: i === d.length - 1 ? "not-allowed" : "pointer",
|
|
498
|
+
background: i === d.length - 1 ? t(e.bg, 0.3) : "#FFFFFF",
|
|
499
|
+
color: i === d.length - 1 ? e.textLight : e.primary,
|
|
500
|
+
transition: "all 0.2s ease",
|
|
501
|
+
display: "flex",
|
|
502
|
+
alignItems: "center",
|
|
503
|
+
justifyContent: "center",
|
|
504
|
+
gap: 8
|
|
505
|
+
},
|
|
506
|
+
children: [
|
|
507
|
+
"下一题",
|
|
508
|
+
/* @__PURE__ */ s.jsx(ie, { style: { fontSize: 14 } })
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
)
|
|
512
|
+
] }),
|
|
513
|
+
a && /* @__PURE__ */ s.jsxs("div", { style: {
|
|
514
|
+
background: `linear-gradient(135deg, ${t(e.successLight, 0.5)} 0%, ${t(e.primaryLight, 0.3)} 100%)`,
|
|
515
|
+
border: `2px solid ${e.successBorder}`,
|
|
516
|
+
borderRadius: 10,
|
|
517
|
+
padding: "18px 20px"
|
|
518
|
+
}, children: [
|
|
519
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
520
|
+
display: "flex",
|
|
521
|
+
alignItems: "center",
|
|
522
|
+
gap: 10,
|
|
523
|
+
marginBottom: 14
|
|
524
|
+
}, children: [
|
|
525
|
+
/* @__PURE__ */ s.jsx(R, { style: { color: e.success, fontSize: 20 } }),
|
|
526
|
+
/* @__PURE__ */ s.jsx("span", { style: { fontSize: 15, fontWeight: 700, color: e.success }, children: "评估完成" })
|
|
527
|
+
] }),
|
|
528
|
+
/* @__PURE__ */ s.jsxs("div", { style: { display: "flex", gap: 20, marginBottom: 16 }, children: [
|
|
529
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
530
|
+
display: "flex",
|
|
531
|
+
flexDirection: "column",
|
|
532
|
+
gap: 4,
|
|
533
|
+
padding: "10px 14px",
|
|
534
|
+
background: "#FFFFFF",
|
|
535
|
+
border: `1.5px solid ${t(e.primaryBorder, 0.6)}`,
|
|
536
|
+
borderRadius: 8
|
|
537
|
+
}, children: [
|
|
538
|
+
/* @__PURE__ */ s.jsx("span", { style: { fontSize: 11, color: e.textLight, fontWeight: 600, textTransform: "uppercase" }, children: "评估得分" }),
|
|
539
|
+
/* @__PURE__ */ s.jsx("span", { style: { fontSize: 20, fontWeight: 800, color: e.primary }, children: B })
|
|
540
|
+
] }),
|
|
541
|
+
/* @__PURE__ */ s.jsxs("div", { style: {
|
|
542
|
+
display: "flex",
|
|
543
|
+
flexDirection: "column",
|
|
544
|
+
gap: 4,
|
|
545
|
+
padding: "10px 14px",
|
|
546
|
+
background: "#FFFFFF",
|
|
547
|
+
border: `1.5px solid ${H(W, (K = r == null ? void 0 : r.uiConfig) == null ? void 0 : K.theme).border}`,
|
|
548
|
+
borderRadius: 8
|
|
549
|
+
}, children: [
|
|
550
|
+
/* @__PURE__ */ s.jsx("span", { style: { fontSize: 11, color: e.textLight, fontWeight: 600, textTransform: "uppercase" }, children: "结论等级" }),
|
|
551
|
+
/* @__PURE__ */ s.jsx("span", { style: {
|
|
552
|
+
fontSize: 20,
|
|
553
|
+
fontWeight: 800,
|
|
554
|
+
color: H(W, (Y = r == null ? void 0 : r.uiConfig) == null ? void 0 : Y.theme).color
|
|
555
|
+
}, children: W })
|
|
556
|
+
] })
|
|
557
|
+
] })
|
|
558
|
+
] }),
|
|
559
|
+
/* @__PURE__ */ s.jsxs(
|
|
560
|
+
"button",
|
|
561
|
+
{
|
|
562
|
+
onClick: G,
|
|
563
|
+
disabled: !a,
|
|
564
|
+
style: {
|
|
565
|
+
width: "100%",
|
|
566
|
+
height: 52,
|
|
567
|
+
border: "none",
|
|
568
|
+
borderRadius: 10,
|
|
569
|
+
fontSize: 15,
|
|
570
|
+
fontWeight: 700,
|
|
571
|
+
cursor: a ? "pointer" : "not-allowed",
|
|
572
|
+
background: a ? `linear-gradient(135deg, ${e.success} 0%, ${t(e.success, 0.85)} 100%)` : "#E8E8E8",
|
|
573
|
+
color: a ? "#FFFFFF" : "#BFBFBF",
|
|
574
|
+
boxShadow: a ? `0 4px 16px ${t(e.success, 0.3)}` : "none",
|
|
575
|
+
transition: "all 0.25s ease",
|
|
576
|
+
display: "flex",
|
|
577
|
+
alignItems: "center",
|
|
578
|
+
justifyContent: "center",
|
|
579
|
+
gap: 10,
|
|
580
|
+
letterSpacing: "0.5px"
|
|
581
|
+
},
|
|
582
|
+
onMouseEnter: (o) => {
|
|
583
|
+
a && (o.currentTarget.style.transform = "translateY(-2px)", o.currentTarget.style.boxShadow = `0 6px 20px ${t(e.success, 0.4)}`);
|
|
584
|
+
},
|
|
585
|
+
onMouseLeave: (o) => {
|
|
586
|
+
a && (o.currentTarget.style.transform = "none", o.currentTarget.style.boxShadow = `0 4px 16px ${t(e.success, 0.3)}`);
|
|
587
|
+
},
|
|
588
|
+
children: [
|
|
589
|
+
a && /* @__PURE__ */ s.jsx(R, { style: { fontSize: 18 } }),
|
|
590
|
+
a ? "提交评估结果" : `请完成所有题目 (${w}/${d.length})`
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
)
|
|
594
|
+
] }) : /* @__PURE__ */ s.jsx("div", { style: {
|
|
595
|
+
padding: "40px 20px",
|
|
596
|
+
textAlign: "center",
|
|
597
|
+
color: e.textLight,
|
|
598
|
+
fontSize: 14
|
|
599
|
+
}, children: "暂无题目" })
|
|
600
|
+
}
|
|
601
|
+
)
|
|
602
|
+
] })
|
|
603
|
+
] });
|
|
604
|
+
};
|
|
605
|
+
export {
|
|
606
|
+
ye as default
|
|
607
|
+
};
|