@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.
Files changed (278) hide show
  1. package/README.md +481 -15
  2. package/dist/{ArrowLeftOutlined-CiSQq3bL.js → ArrowLeftOutlined-BxA84GXs.js} +1 -1
  3. package/dist/ArrowLeftOutlined-D785XjyB.js +12 -0
  4. package/dist/{AssessmentPlugin-Bx4VrBdV.js → AssessmentPlugin-D_iesmyg.js} +7 -7
  5. package/dist/AssessmentPlugin-zRr-IsdA.js +607 -0
  6. package/dist/CaseAnalysisPlugin-CXuQpkPd.js +2196 -0
  7. package/dist/CaseAnalysisPlugin-DytlXsRD.js +2196 -0
  8. package/dist/CaseDetailContent-DT5nCtRT.js +28613 -0
  9. package/dist/CaseDetailContent-Y7Q430MG.js +28595 -0
  10. package/dist/{CharacterDialoguePanel-Bvdab3qj.js → CharacterDialoguePanel-CdtUl-Sv.js} +178 -139
  11. package/dist/CharacterDialoguePanel-D_4YNFZv.js +815 -0
  12. package/dist/{CheckCircleFilled-Byo8CDfW.js → CheckCircleFilled-CnslIY7j.js} +1 -1
  13. package/dist/CheckCircleFilled-NvZaC2sk.js +12 -0
  14. package/dist/DecisionMakingPlugin-B_KQUFzW.js +1385 -0
  15. package/dist/DecisionMakingPlugin-ILLGek3S.js +1385 -0
  16. package/dist/{DecisionSelectPlugin-DtQ2KV34.js → DecisionSelectPlugin-BGQiHGBK.js} +20 -11
  17. package/dist/DecisionSelectPlugin-Bqmh6XGh.js +872 -0
  18. package/dist/{DecisionShared-Dh9oeQFT.js → DecisionShared-BHq1lEqt.js} +2 -2
  19. package/dist/DecisionShared-Be-zKZLT.js +65 -0
  20. package/dist/DeleteOutlined-BvMjU7m5.js +12 -0
  21. package/dist/DeleteOutlined-Dqy6M2LH.js +12 -0
  22. package/dist/{CustomLayoutRenderer--rnQrqQ2.js → DialogueFormPlugin-BpCeFadt.js} +22724 -21631
  23. package/dist/DialogueFormPlugin-CXlbxX-z.js +123617 -0
  24. package/dist/DialoguePlugin-CO7Nzv0K.js +596 -0
  25. package/dist/DialoguePlugin-DDNdsylz.js +596 -0
  26. package/dist/DocumentReviewPlugin-2CnKQwVG.js +1967 -0
  27. package/dist/DocumentReviewPlugin-qYYrnjvE.js +1967 -0
  28. package/dist/{EyeOutlined-XvOAKlLs.js → EyeOutlined-BrKCNjui.js} +1 -1
  29. package/dist/EyeOutlined-CW0tYV0f.js +12 -0
  30. package/dist/FormFillingPlugin-C3h8ySOZ.js +969 -0
  31. package/dist/FormFillingPlugin-CPmd76Qr.js +969 -0
  32. package/dist/HolderOutlined-CH0tShWu.js +12 -0
  33. package/dist/HolderOutlined-Dm6TBtqf.js +12 -0
  34. package/dist/ModelEditor-BjEbFloQ.js +11753 -0
  35. package/dist/ModelEditor-CwR67DFQ.js +11753 -0
  36. package/dist/{ProcessOperationPlugin-IijngDlX.js → ProcessOperationPlugin-1Lz431aC.js} +12 -12
  37. package/dist/ProcessOperationPlugin-BkmdG3ch.js +88 -0
  38. package/dist/QAPlugin-0C4kpq3J.js +172 -0
  39. package/dist/QAPlugin-UC8uywcg.js +172 -0
  40. package/dist/{ReloadOutlined-Daor2m11.js → ReloadOutlined-BZ92nlYF.js} +1 -1
  41. package/dist/ReloadOutlined-CYoPOwLl.js +12 -0
  42. package/dist/{SettingOutlined-CLEOgXB-.js → SettingOutlined-F466s0Ti.js} +33 -65
  43. package/dist/SettingOutlined-c2hikCfN.js +60 -0
  44. package/dist/StarFilled-Bilmj6UK.js +28 -0
  45. package/dist/StarFilled-CtH30fL0.js +28 -0
  46. package/dist/StrategyLabPlugin-CvO07sXV.js +12445 -0
  47. package/dist/StrategyLabPlugin-DUqZYctQ.js +12445 -0
  48. package/dist/ThunderboltOutlined-BpmoCKdV.js +28 -0
  49. package/dist/ThunderboltOutlined-DDQFi5Cv.js +28 -0
  50. package/dist/TrainingModelContainer-DqCsdC7C.js +11241 -0
  51. package/dist/TrainingModelContainer-yi8W6KFl.js +11241 -0
  52. package/dist/{UndoOutlined-ChUQYUul.js → UndoOutlined-6JZVzmdX.js} +26 -42
  53. package/dist/UndoOutlined-Dw6_9_OL.js +68 -0
  54. package/dist/{WarningFilled-1Rc4hr0C.js → WarningFilled-Cy1tvuQy.js} +1 -1
  55. package/dist/WarningFilled-lkr453eh.js +12 -0
  56. package/dist/{adapters-D1FFZFoA.js → adapters-BbCnXSYo.js} +2 -2
  57. package/dist/{analysisTools-CXyOvSZT.js → analysisTools-Cp5-3DaU.js} +59 -12
  58. package/dist/creator.js +4 -2
  59. package/dist/designTokens-walF_QkZ.js +23 -0
  60. package/dist/images/healthcare/bg.jpg +0 -0
  61. package/dist/{index-CYjdXPgc.js → index-C71iHgSs.js} +2640 -2722
  62. package/dist/{index-XuBVjlmu.js → index-CBvqcbIU.js} +7214 -7643
  63. package/dist/index-D94YNWTb.js +433 -0
  64. package/dist/index-DSYmOXnQ.js +6486 -0
  65. package/dist/index-fP97rKeQ.js +433 -0
  66. package/dist/index.js +8 -6
  67. package/dist/judgement-xTGXlDcn.js +29 -0
  68. package/dist/runtime.js +1 -1
  69. package/dist/sortable.esm-bm_c5vmI.js +3307 -0
  70. package/dist/types.js +1 -1
  71. package/dist/useDialogueLogic-D1lkUKUZ.js +576 -0
  72. package/dist/useDialogueLogic-vOJ9XRNP.js +576 -0
  73. package/dist-types/client/src/admin/CaseDataEditor.d.ts +20 -0
  74. package/dist-types/client/src/admin/CaseEditor.d.ts +19 -0
  75. package/dist-types/client/src/admin/DialogueFormCheckRulesEditor.d.ts +11 -0
  76. package/dist-types/client/src/admin/DialogueFormInitDataEditor.d.ts +31 -0
  77. package/dist-types/client/src/admin/InitDataEditors.d.ts +7 -0
  78. package/dist-types/client/src/admin/ModelEditor.d.ts +11 -0
  79. package/dist-types/client/src/admin/ModelPreview.d.ts +13 -0
  80. package/dist-types/client/src/admin/OptionSelector.d.ts +32 -0
  81. package/dist-types/client/src/admin/StageStepEditor.d.ts +20 -0
  82. package/dist-types/client/src/admin/StepAnswerKeyEditor.d.ts +19 -0
  83. package/dist-types/client/src/admin/StepByStepCreator.d.ts +27 -0
  84. package/dist-types/client/src/admin/components/AbilityMapEditor.d.ts +12 -0
  85. package/dist-types/client/src/admin/components/CasePreview.d.ts +8 -0
  86. package/dist-types/client/src/admin/components/StepAbilitySelector.d.ts +9 -0
  87. package/dist-types/client/src/admin/constants/creatorConstants.d.ts +39 -0
  88. package/dist-types/client/src/admin/editors/CaseAnalysisEditor.d.ts +11 -0
  89. package/dist-types/client/src/admin/editors/DecisionMakingEditor.d.ts +7 -0
  90. package/dist-types/client/src/admin/editors/DialogueEditor.d.ts +12 -0
  91. package/dist-types/client/src/admin/editors/DocumentReviewEditor.d.ts +7 -0
  92. package/dist-types/client/src/admin/editors/DocumentReviewRuntimeRulesEditor.d.ts +15 -0
  93. package/dist-types/client/src/admin/editors/FormFillingEditor.d.ts +33 -0
  94. package/dist-types/client/src/admin/editors/ModelUIConfigEditor.d.ts +5 -0
  95. package/dist-types/client/src/admin/editors/QAEditor.d.ts +6 -0
  96. package/dist-types/client/src/admin/editors/RouterEditors.d.ts +18 -0
  97. package/dist-types/client/src/admin/editors/StepBriefingEditor.d.ts +14 -0
  98. package/dist-types/client/src/admin/editors/StrategyLabEditor.d.ts +24 -0
  99. package/dist-types/client/src/admin/editors/decisionEditorParts.d.ts +18 -0
  100. package/dist-types/client/src/admin/editors/index.d.ts +8 -0
  101. package/dist-types/client/src/admin/editors/shared.d.ts +17 -0
  102. package/dist-types/client/src/admin/hooks/useStep1Intent.d.ts +16 -0
  103. package/dist-types/client/src/admin/hooks/useStep2Outline.d.ts +41 -0
  104. package/dist-types/client/src/admin/hooks/useStep3Details.d.ts +123 -0
  105. package/dist-types/client/src/admin/hooks/useStep4Cases.d.ts +48 -0
  106. package/dist-types/client/src/admin/hooks/useStep5Validation.d.ts +16 -0
  107. package/dist-types/client/src/admin/landingValidation.d.ts +74 -0
  108. package/dist-types/client/src/admin/schemaFieldUtils.d.ts +55 -0
  109. package/dist-types/client/src/admin/services.d.ts +461 -0
  110. package/dist-types/client/src/admin/shared-editors.d.ts +31 -0
  111. package/dist-types/client/src/admin/types/creatorArtifacts.d.ts +140 -0
  112. package/dist-types/client/src/components/AbilityMapView.d.ts +15 -0
  113. package/dist-types/client/src/components/CaseDetail/CaseDetailContent.d.ts +12 -0
  114. package/dist-types/client/src/components/ConversationalDataCollector/IntentConfirmPanel.d.ts +20 -0
  115. package/dist-types/client/src/components/ConversationalDataCollector/index.d.ts +7 -0
  116. package/dist-types/client/src/components/ConversationalDataCollector/intentState.d.ts +24 -0
  117. package/dist-types/client/src/components/ConversationalDataCollector/types.d.ts +95 -0
  118. package/dist-types/client/src/components/ConversationalDataCollector/utils.d.ts +62 -0
  119. package/dist-types/client/src/components/CustomLayoutRenderer.d.ts +8 -0
  120. package/dist-types/client/src/components/MarkdownRenderer.d.ts +15 -0
  121. package/dist-types/client/src/components/StrategyLabScene/VisualInputComponents.d.ts +85 -0
  122. package/dist-types/client/src/components/StrategyLabScene/components/AdversarialView.d.ts +18 -0
  123. package/dist-types/client/src/components/StrategyLabScene/components/BottomBar.d.ts +22 -0
  124. package/dist-types/client/src/components/StrategyLabScene/components/CharacterCard.d.ts +14 -0
  125. package/dist-types/client/src/components/StrategyLabScene/components/CharacterDialoguePanel.d.ts +32 -0
  126. package/dist-types/client/src/components/StrategyLabScene/components/CollaborativeView.d.ts +20 -0
  127. package/dist-types/client/src/components/StrategyLabScene/components/ComparisonView.d.ts +16 -0
  128. package/dist-types/client/src/components/StrategyLabScene/components/DecisionInput.d.ts +27 -0
  129. package/dist-types/client/src/components/StrategyLabScene/components/DecisionSwitcher.d.ts +14 -0
  130. package/dist-types/client/src/components/StrategyLabScene/components/EvaluationReport.d.ts +13 -0
  131. package/dist-types/client/src/components/StrategyLabScene/components/NodeChainPanels.d.ts +32 -0
  132. package/dist-types/client/src/components/StrategyLabScene/components/ProgressSteps.d.ts +15 -0
  133. package/dist-types/client/src/components/StrategyLabScene/components/SandboxView.d.ts +19 -0
  134. package/dist-types/client/src/components/StrategyLabScene/components/ScenarioPanel.d.ts +17 -0
  135. package/dist-types/client/src/components/StrategyLabScene/components/SimulationAnimation.d.ts +13 -0
  136. package/dist-types/client/src/components/StrategyLabScene/components/SimulationResult.d.ts +15 -0
  137. package/dist-types/client/src/components/StrategyLabScene/components/StressTestView.d.ts +22 -0
  138. package/dist-types/client/src/components/StrategyLabScene/themeMatching.d.ts +21 -0
  139. package/dist-types/client/src/components/StrategyLabScene/themes/education.d.ts +45 -0
  140. package/dist-types/client/src/components/StrategyLabScene/themes/healthcare.d.ts +7 -0
  141. package/dist-types/client/src/components/StrategyLabScene/themes/index.d.ts +22 -0
  142. package/dist-types/client/src/components/StrategyLabScene/themes/professional.d.ts +7 -0
  143. package/dist-types/client/src/components/StrategyLabScene/themes/technology.d.ts +7 -0
  144. package/dist-types/client/src/components/StrategyLabScene/types.d.ts +82 -0
  145. package/dist-types/client/src/components/StrategyLabScene/views/UnifiedStrategyLabView.d.ts +72 -0
  146. package/dist-types/client/src/components/TrainingEngine/BriefingQAChat.d.ts +19 -0
  147. package/dist-types/client/src/components/TrainingEngine/CaseInfoModal.d.ts +12 -0
  148. package/dist-types/client/src/components/TrainingEngine/CaseSelector.d.ts +15 -0
  149. package/dist-types/client/src/components/TrainingEngine/ClassicView.d.ts +7 -0
  150. package/dist-types/client/src/components/TrainingEngine/DashboardHomePage.d.ts +7 -0
  151. package/dist-types/client/src/components/TrainingEngine/EnhancedStudentProfilePanel.d.ts +9 -0
  152. package/dist-types/client/src/components/TrainingEngine/EvaluationPanel.d.ts +8 -0
  153. package/dist-types/client/src/components/TrainingEngine/GlobalQAPanel.d.ts +34 -0
  154. package/dist-types/client/src/components/TrainingEngine/GuidanceHistoryDrawer.d.ts +7 -0
  155. package/dist-types/client/src/components/TrainingEngine/GuidancePanel.d.ts +3 -0
  156. package/dist-types/client/src/components/TrainingEngine/ImmersiveGameView.d.ts +7 -0
  157. package/dist-types/client/src/components/TrainingEngine/PluginRenderer.d.ts +15 -0
  158. package/dist-types/client/src/components/TrainingEngine/ProgressTracker.d.ts +3 -0
  159. package/dist-types/client/src/components/TrainingEngine/StageAssessingOverlay.d.ts +17 -0
  160. package/dist-types/client/src/components/TrainingEngine/StageAssessmentPanel.d.ts +10 -0
  161. package/dist-types/client/src/components/TrainingEngine/StepExecutor.d.ts +20 -0
  162. package/dist-types/client/src/components/TrainingEngine/StepNodeMap.d.ts +15 -0
  163. package/dist-types/client/src/components/TrainingEngine/StudentProfilePanel.d.ts +6 -0
  164. package/dist-types/client/src/components/TrainingEngine/ThemeContext.d.ts +8 -0
  165. package/dist-types/client/src/components/TrainingEngine/TrainingMaterialsSidebar.d.ts +21 -0
  166. package/dist-types/client/src/components/TrainingEngine/TrainingModelContainer.d.ts +42 -0
  167. package/dist-types/client/src/components/TrainingEngine/ViewProps.d.ts +37 -0
  168. package/dist-types/client/src/components/TrainingEngine/profileDataSelectors.d.ts +23 -0
  169. package/dist-types/client/src/components/TrainingEngine/stepInitData.d.ts +42 -0
  170. package/dist-types/client/src/components/TrainingEngine/targetAbilityUtils.d.ts +11 -0
  171. package/dist-types/client/src/components/VisualizationRenderer/ChartRenderer.d.ts +12 -0
  172. package/dist-types/client/src/components/VisualizationRenderer/types.d.ts +41 -0
  173. package/dist-types/client/src/config/appConfig.d.ts +15 -0
  174. package/dist-types/client/src/configs/agentConfig.d.ts +66 -0
  175. package/dist-types/client/src/configs/intentDiscoveryConfig.d.ts +22 -0
  176. package/dist-types/client/src/data/mockTrainingModel.d.ts +10 -0
  177. package/dist-types/client/src/hooks/useAIService.d.ts +17 -0
  178. package/dist-types/client/src/hooks/useDialogueLogic.d.ts +53 -0
  179. package/dist-types/client/src/hooks/useFormFillingLogic.d.ts +26 -0
  180. package/dist-types/client/src/hooks/useFormRealtimeGuidance.d.ts +45 -0
  181. package/dist-types/client/src/hooks/useRealtimeGuidance.d.ts +66 -0
  182. package/dist-types/client/src/hooks/useStageAssessment.d.ts +8 -0
  183. package/dist-types/client/src/hooks/useStepExecution.d.ts +14 -0
  184. package/dist-types/client/src/hooks/useTrainingModel.d.ts +30 -0
  185. package/dist-types/client/src/lib/creator.d.ts +1 -0
  186. package/dist-types/client/src/lib/index.d.ts +1 -0
  187. package/dist-types/client/src/lib/types.d.ts +113 -22
  188. package/dist-types/client/src/plugins/AssessmentPlugin.d.ts +8 -0
  189. package/dist-types/client/src/plugins/CaseAnalysisPlugin.d.ts +9 -0
  190. package/dist-types/client/src/plugins/CaseAnalysisPluginView.d.ts +26 -0
  191. package/dist-types/client/src/plugins/DecisionSelectPlugin.d.ts +8 -0
  192. package/dist-types/client/src/plugins/DialogueFormPlugin.d.ts +9 -0
  193. package/dist-types/client/src/plugins/DialogueFormPluginView.d.ts +37 -0
  194. package/dist-types/client/src/plugins/DialoguePlugin.d.ts +8 -0
  195. package/dist-types/client/src/plugins/DialoguePluginView.d.ts +44 -0
  196. package/dist-types/client/src/plugins/DocumentReview/DocumentCard.d.ts +47 -0
  197. package/dist-types/client/src/plugins/DocumentReview/LayoutComponents.d.ts +47 -0
  198. package/dist-types/client/src/plugins/DocumentReview/MarkListPanel.d.ts +51 -0
  199. package/dist-types/client/src/plugins/DocumentReview/MarkModal.d.ts +37 -0
  200. package/dist-types/client/src/plugins/DocumentReview/ResultPanel.d.ts +32 -0
  201. package/dist-types/client/src/plugins/DocumentReview/Toolbar.d.ts +31 -0
  202. package/dist-types/client/src/plugins/DocumentReview/designTokens.d.ts +76 -0
  203. package/dist-types/client/src/plugins/DocumentReviewPlugin.d.ts +14 -0
  204. package/dist-types/client/src/plugins/ProcessOperationPlugin.d.ts +8 -0
  205. package/dist-types/client/src/plugins/QAPlugin.d.ts +9 -0
  206. package/dist-types/client/src/plugins/StrategyLabPlugin.d.ts +7 -0
  207. package/dist-types/client/src/plugins/decision-making/DecisionMakingPlugin.d.ts +4 -0
  208. package/dist-types/client/src/plugins/decision-making/DecisionWorkspace.d.ts +23 -0
  209. package/dist-types/client/src/plugins/decision-making/MaterialsPanel.d.ts +18 -0
  210. package/dist-types/client/src/plugins/decision-making/logic.d.ts +46 -0
  211. package/dist-types/client/src/plugins/decision-making/scoring.d.ts +79 -0
  212. package/dist-types/client/src/plugins/decision-making/styles.d.ts +743 -0
  213. package/dist-types/client/src/plugins/decision-making/types.d.ts +179 -0
  214. package/dist-types/client/src/plugins/form-filling/DocumentFormLayout.d.ts +22 -0
  215. package/dist-types/client/src/plugins/form-filling/FormAssistPanel.d.ts +20 -0
  216. package/dist-types/client/src/plugins/form-filling/FormFillingPlugin.d.ts +15 -0
  217. package/dist-types/client/src/plugins/form-filling/forms.d.ts +28 -0
  218. package/dist-types/client/src/plugins/form-filling/scoring.d.ts +86 -0
  219. package/dist-types/client/src/plugins/form-filling/useFormFilling.d.ts +42 -0
  220. package/dist-types/client/src/plugins/form-filling/validationRules.d.ts +26 -0
  221. package/dist-types/client/src/plugins/shared/DecisionShared.d.ts +54 -0
  222. package/dist-types/client/src/plugins/shared/FrameworkWidget.d.ts +19 -0
  223. package/dist-types/client/src/plugins/shared/PluginFooter.d.ts +4 -0
  224. package/dist-types/client/src/plugins/shared/PluginHeader.d.ts +4 -0
  225. package/dist-types/client/src/plugins/shared/analysisTools.d.ts +30 -0
  226. package/dist-types/client/src/plugins/shared/disturbanceUtils.d.ts +5 -0
  227. package/dist-types/client/src/plugins/shared/index.d.ts +5 -0
  228. package/dist-types/client/src/plugins/shared/jsonRepair.d.ts +39 -0
  229. package/dist-types/client/src/plugins/shared/judgement.d.ts +46 -0
  230. package/dist-types/client/src/plugins/shared/nodeChain.d.ts +15 -0
  231. package/dist-types/client/src/plugins/shared/renderFieldGrid.d.ts +16 -0
  232. package/dist-types/client/src/plugins/shared/reportBlocks.d.ts +33 -0
  233. package/dist-types/client/src/plugins/shared/reportEvaluation.d.ts +30 -0
  234. package/dist-types/client/src/plugins/shared/reportExport.d.ts +12 -0
  235. package/dist-types/client/src/plugins/shared/reportWorkbench/BlockPropertiesPanel.d.ts +9 -0
  236. package/dist-types/client/src/plugins/shared/reportWorkbench/BlockToolbox.d.ts +11 -0
  237. package/dist-types/client/src/plugins/shared/reportWorkbench/ReportWorkbench.d.ts +20 -0
  238. package/dist-types/client/src/plugins/shared/reportWorkbench/SortableBlock.d.ts +15 -0
  239. package/dist-types/client/src/plugins/shared/reportWorkbench/factory.d.ts +14 -0
  240. package/dist-types/client/src/plugins/shared/reportWorkbench/outlineDraft.d.ts +7 -0
  241. package/dist-types/client/src/plugins/shared/simulationEngine.d.ts +112 -0
  242. package/dist-types/client/src/plugins/shared/simulationModes.d.ts +21 -0
  243. package/dist-types/client/src/plugins/shared/themes.d.ts +5 -0
  244. package/dist-types/client/src/plugins/shared/types.d.ts +1247 -0
  245. package/dist-types/client/src/services/AICommandHandler.d.ts +68 -0
  246. package/dist-types/client/src/services/cozeApiClient.d.ts +44 -0
  247. package/dist-types/client/src/services/mockApi.d.ts +48 -0
  248. package/dist-types/client/src/services/storageService.d.ts +88 -0
  249. package/dist-types/client/src/stores/abilityStore.d.ts +33 -0
  250. package/dist-types/client/src/stores/dialogueStore.d.ts +30 -0
  251. package/dist-types/client/src/stores/formRegistryStore.d.ts +45 -0
  252. package/dist-types/client/src/stores/guidanceStore.d.ts +17 -0
  253. package/dist-types/client/src/stores/stepEvidenceStore.d.ts +14 -0
  254. package/dist-types/client/src/stores/strategyLabStore.d.ts +46 -0
  255. package/dist-types/client/src/stores/trainingStore.d.ts +84 -0
  256. package/dist-types/client/src/types/ai-commands.d.ts +144 -0
  257. package/dist-types/client/src/types.d.ts +17 -0
  258. package/dist-types/client/src/utils/abilityMapGenerator.d.ts +27 -0
  259. package/dist-types/client/src/utils/formUtils.d.ts +66 -0
  260. package/dist-types/client/src/utils/rule-engine.d.ts +36 -0
  261. package/dist-types/shared/types/index.d.ts +592 -0
  262. package/package.json +5 -3
  263. package/dist/CaseAnalysisPlugin-CQvF9_zr.js +0 -416
  264. package/dist/DialogueFormPlugin-C9ssnVMr.js +0 -959
  265. package/dist/DialoguePlugin-DU00QpmQ.js +0 -416
  266. package/dist/DocumentReviewPlugin-HNOZY1T4.js +0 -977
  267. package/dist/FormFillingPlugin-DURWsioi.js +0 -445
  268. package/dist/ModelEditor-BPJsPR0S.js +0 -8264
  269. package/dist/PluginHeader-B-GESJmT.js +0 -87
  270. package/dist/QAPlugin-Bh_UjK1N.js +0 -184
  271. package/dist/RadarChart-C5ZM0kWt.js +0 -24963
  272. package/dist/StrategyLabPlugin-DGeZsr_7.js +0 -14361
  273. package/dist/ThunderboltOutlined-nH_FO_4A.js +0 -44
  274. package/dist/ToolOutlined-DtuNJDB2.js +0 -28
  275. package/dist/TrainingModelContainer-DpW-uB8O.js +0 -11883
  276. package/dist/WarningOutlined-5g1d66hO.js +0 -164
  277. package/dist/judgement-D_9i7x9S.js +0 -20
  278. package/dist/useDialogueLogic-IHELcN3X.js +0 -368
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sim-design/training",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  }
25
25
  },
26
26
  "files": [
27
- "dist/*.js",
28
- "dist-types/client/src/lib/**/*",
27
+ "dist",
28
+ "dist-types",
29
29
  "README.md"
30
30
  ],
31
31
  "scripts": {
@@ -65,6 +65,7 @@
65
65
  "zustand": "^4.4.7"
66
66
  },
67
67
  "devDependencies": {
68
+ "@tailwindcss/vite": "^4.2.2",
68
69
  "@types/react": "^18.2.43",
69
70
  "@types/react-dom": "^18.2.17",
70
71
  "@typescript-eslint/eslint-plugin": "^6.14.0",
@@ -77,6 +78,7 @@
77
78
  "less": "^4.5.1",
78
79
  "react": "^18.2.0",
79
80
  "react-dom": "^18.2.0",
81
+ "tailwindcss": "^4.2.2",
80
82
  "typescript": "^5.2.2",
81
83
  "vite": "^5.0.8"
82
84
  }
@@ -1,416 +0,0 @@
1
- import { c as D, j as r, i as rr, g as er, a as or, r as X } from "./RadarChart-C5ZM0kWt.js";
2
- import { useState as R, useMemo as sr, useCallback as $ } from "react";
3
- import { Button as E, Card as w, Tag as A, Typography as nr, Space as K, Input as lr, Spin as tr, Alert as ir, Collapse as cr, message as q } from "antd";
4
- import { a as dr, p as ar } from "./TrainingModelContainer-DpW-uB8O.js";
5
- import { a as pr } from "./judgement-D_9i7x9S.js";
6
- import { g as gr } from "./analysisTools-CXyOvSZT.js";
7
- import { P as mr } from "./PluginHeader-B-GESJmT.js";
8
- import { R as Z, a as yr, b as hr } from "./ToolOutlined-DtuNJDB2.js";
9
- import { f as M, a as T } from "./WarningOutlined-5g1d66hO.js";
10
- import { R as fr } from "./ReloadOutlined-Daor2m11.js";
11
- const { TextArea: xr } = lr, { Text: V } = nr;
12
- function jr(e) {
13
- var g;
14
- const a = {};
15
- for (const y of e)
16
- (a[g = y.category] || (a[g] = [])).push(y);
17
- return a;
18
- }
19
- function ur(e, a) {
20
- const g = [];
21
- for (let y = 0; y < e.length; y += a)
22
- g.push(e.slice(y, y + a));
23
- return g;
24
- }
25
- const br = ({
26
- phase: e,
27
- caseDescription: a,
28
- analysisPoints: g,
29
- tools: y,
30
- recommendedTool: h,
31
- selectedTool: o,
32
- dimensionAnswers: C,
33
- evaluation: t,
34
- loading: S,
35
- uiConfig: l,
36
- onStartAnalysis: b,
37
- onSelectTool: v,
38
- onDimensionChange: f,
39
- onSubmit: F,
40
- onRetry: U,
41
- onComplete: H
42
- }) => {
43
- const n = D(l.theme), O = l.caseCardStyle || "card", z = l.toolSelectLayout || "grid", I = l.toolColumns || 3, _ = l.dimensionInputRows || 4, W = l.submitButtonText || "提交分析", J = l.showToolDescription !== !1, L = l.feedbackStyle || "collapse", i = n.borderRadius, N = () => a ? O === "banner" ? /* @__PURE__ */ r.jsx(mr, { title: a, variant: "banner", theme: n }) : O === "minimal" ? /* @__PURE__ */ r.jsx("div", { style: { marginBottom: 16, padding: "12px 16px", borderLeft: `4px solid ${n.primaryColor}`, backgroundColor: n.backgroundColor, borderRadius: i }, children: /* @__PURE__ */ r.jsx("div", { style: { fontSize: 14, lineHeight: 1.8, color: "#262626", whiteSpace: "pre-wrap" }, children: a }) }) : /* @__PURE__ */ r.jsx(
44
- w,
45
- {
46
- size: "small",
47
- style: { marginBottom: 16, borderRadius: i, borderColor: n.borderColor },
48
- title: /* @__PURE__ */ r.jsxs("span", { style: { fontWeight: 600, color: n.headerColor }, children: [
49
- /* @__PURE__ */ r.jsx(hr, { style: { marginRight: 8 } }),
50
- "案例背景"
51
- ] }),
52
- children: /* @__PURE__ */ r.jsx("div", { style: { fontSize: 14, lineHeight: 1.8, color: "#262626", whiteSpace: "pre-wrap" }, children: a })
53
- }
54
- ) : null, B = () => !g || g.length === 0 ? null : /* @__PURE__ */ r.jsxs("div", { style: { marginBottom: 16, display: "flex", alignItems: "center", gap: 8, flexWrap: "wrap" }, children: [
55
- /* @__PURE__ */ r.jsxs("span", { style: { fontSize: 13, fontWeight: 600, color: n.headerColor }, children: [
56
- /* @__PURE__ */ r.jsx(T, { style: { marginRight: 4 } }),
57
- "分析要点:"
58
- ] }),
59
- g.map((k, c) => /* @__PURE__ */ r.jsx(A, { style: { borderColor: n.primaryColor, color: n.primaryColor, borderRadius: 20, padding: "2px 12px", fontSize: 13, background: "transparent" }, children: k }, c))
60
- ] });
61
- if (e === "reading")
62
- return /* @__PURE__ */ r.jsxs("div", { style: { height: "100%", overflow: "auto", padding: 20, ...l.styleOverrides }, children: [
63
- N(),
64
- B(),
65
- /* @__PURE__ */ r.jsx("div", { style: { textAlign: "center", marginTop: 24 }, children: /* @__PURE__ */ r.jsx(E, { type: "primary", size: "large", icon: /* @__PURE__ */ r.jsx(Z, {}), onClick: b, style: { borderRadius: i, backgroundColor: n.primaryColor, borderColor: n.primaryColor }, children: "开始分析" }) })
66
- ] });
67
- if (e === "analyzing") {
68
- const k = jr(y);
69
- return /* @__PURE__ */ r.jsxs("div", { style: { height: "100%", overflow: "auto", padding: 20, ...l.styleOverrides }, children: [
70
- N(),
71
- B(),
72
- /* @__PURE__ */ r.jsx(
73
- w,
74
- {
75
- size: "small",
76
- style: { marginBottom: 16, borderRadius: i, borderColor: n.borderColor },
77
- title: /* @__PURE__ */ r.jsxs("span", { style: { fontWeight: 600, color: n.headerColor }, children: [
78
- /* @__PURE__ */ r.jsx(Z, { style: { marginRight: 8 } }),
79
- "选择分析工具"
80
- ] }),
81
- children: z === "grid" ? (
82
- // grid 模式:所有工具平铺,按 toolColumns 分行
83
- ur(y, I).map((s, d) => /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", gap: 8, marginBottom: 8 }, children: [
84
- s.map((p) => /* @__PURE__ */ r.jsxs(
85
- "div",
86
- {
87
- onClick: () => v(p.key),
88
- style: {
89
- flex: "1 1 0",
90
- minWidth: 0,
91
- padding: "8px 12px",
92
- borderRadius: i,
93
- border: `1px solid ${(o == null ? void 0 : o.key) === p.key ? n.primaryColor : n.borderColor}`,
94
- backgroundColor: (o == null ? void 0 : o.key) === p.key ? n.backgroundColor : "#fff",
95
- cursor: "pointer",
96
- transition: "all 0.2s"
97
- },
98
- children: [
99
- /* @__PURE__ */ r.jsxs("div", { style: { fontWeight: 600, fontSize: 13 }, children: [
100
- p.name,
101
- h === p.key && /* @__PURE__ */ r.jsx(A, { color: n.primaryColor, style: { marginLeft: 6, fontSize: 11, lineHeight: "18px", padding: "0 6px" }, children: "推荐" }),
102
- /* @__PURE__ */ r.jsx(A, { style: { marginLeft: 6, fontSize: 10, lineHeight: "16px", padding: "0 4px", color: "#8c8c8c", borderColor: "#d9d9d9" }, children: p.category })
103
- ] }),
104
- J && /* @__PURE__ */ r.jsx("div", { style: { fontSize: 12, color: "#8c8c8c", marginTop: 2 }, children: p.description })
105
- ]
106
- },
107
- p.key
108
- )),
109
- s.length < I && Array.from({ length: I - s.length }).map((p, u) => /* @__PURE__ */ r.jsx("div", { style: { flex: "1 1 0", minWidth: 0 } }, `empty-${u}`))
110
- ] }, d))
111
- ) : (
112
- // list 模式:按分类分组,每组内纵向排列
113
- Object.entries(k).map(([c, s]) => /* @__PURE__ */ r.jsxs("div", { style: { marginBottom: 16 }, children: [
114
- /* @__PURE__ */ r.jsx(V, { type: "secondary", style: { fontSize: 12, fontWeight: 600, display: "block", marginBottom: 8 }, children: c }),
115
- s.map((d) => /* @__PURE__ */ r.jsxs(
116
- "div",
117
- {
118
- onClick: () => v(d.key),
119
- style: {
120
- padding: "8px 12px",
121
- marginBottom: 8,
122
- borderRadius: i,
123
- border: `1px solid ${(o == null ? void 0 : o.key) === d.key ? n.primaryColor : n.borderColor}`,
124
- backgroundColor: (o == null ? void 0 : o.key) === d.key ? n.backgroundColor : "#fff",
125
- cursor: "pointer",
126
- transition: "all 0.2s"
127
- },
128
- children: [
129
- /* @__PURE__ */ r.jsxs("div", { style: { fontWeight: 600, fontSize: 13 }, children: [
130
- d.name,
131
- h === d.key && /* @__PURE__ */ r.jsx(A, { color: n.primaryColor, style: { marginLeft: 6, fontSize: 11, lineHeight: "18px", padding: "0 6px" }, children: "推荐" })
132
- ] }),
133
- J && /* @__PURE__ */ r.jsx("div", { style: { fontSize: 12, color: "#8c8c8c", marginTop: 2 }, children: d.description })
134
- ]
135
- },
136
- d.key
137
- ))
138
- ] }, c))
139
- )
140
- }
141
- ),
142
- o && /* @__PURE__ */ r.jsx(
143
- w,
144
- {
145
- size: "small",
146
- style: { marginBottom: 16, borderRadius: i, borderColor: n.borderColor },
147
- title: /* @__PURE__ */ r.jsxs("span", { style: { fontWeight: 600, color: n.headerColor }, children: [
148
- o.name,
149
- " — 维度分析"
150
- ] }),
151
- children: /* @__PURE__ */ r.jsx(K, { direction: "vertical", style: { width: "100%" }, size: "middle", children: o.dimensions.map((c) => /* @__PURE__ */ r.jsxs("div", { children: [
152
- /* @__PURE__ */ r.jsxs("div", { style: { marginBottom: 4 }, children: [
153
- /* @__PURE__ */ r.jsx(V, { strong: !0, style: { fontSize: 13 }, children: c.label }),
154
- /* @__PURE__ */ r.jsx(V, { type: "secondary", style: { fontSize: 12, marginLeft: 8 }, children: c.description })
155
- ] }),
156
- /* @__PURE__ */ r.jsx(
157
- xr,
158
- {
159
- rows: _,
160
- placeholder: c.placeholder,
161
- value: C[c.key] || "",
162
- onChange: (s) => f(c.key, s.target.value),
163
- style: { borderRadius: i, borderColor: n.borderColor }
164
- }
165
- )
166
- ] }, c.key)) })
167
- }
168
- ),
169
- /* @__PURE__ */ r.jsx("div", { style: { textAlign: "right", marginTop: 16 }, children: /* @__PURE__ */ r.jsx(
170
- E,
171
- {
172
- type: "primary",
173
- size: "large",
174
- onClick: F,
175
- disabled: !o || Object.values(C).every((c) => !c.trim()),
176
- loading: S,
177
- style: { borderRadius: i, backgroundColor: n.primaryColor, borderColor: n.primaryColor },
178
- children: W
179
- }
180
- ) })
181
- ] });
182
- }
183
- if (e === "evaluating")
184
- return /* @__PURE__ */ r.jsx("div", { style: { height: "100%", overflow: "auto", padding: 20, textAlign: "center", ...l.styleOverrides }, children: /* @__PURE__ */ r.jsx(tr, { size: "large", tip: "AI 正在评估您的分析..." }) });
185
- if (e === "feedback" && t) {
186
- const k = t.totalScore >= 80 ? "#52c41a" : t.totalScore >= 60 ? "#faad14" : "#ff4d4f", c = t.dimensions.map((s, d) => {
187
- var p, u;
188
- return {
189
- key: String(d),
190
- label: /* @__PURE__ */ r.jsxs("span", { children: [
191
- s.name,
192
- /* @__PURE__ */ r.jsxs(A, { color: s.score >= 80 ? "green" : s.score >= 60 ? "orange" : "red", style: { marginLeft: 8 }, children: [
193
- s.score,
194
- "分"
195
- ] })
196
- ] }),
197
- children: /* @__PURE__ */ r.jsxs("div", { children: [
198
- /* @__PURE__ */ r.jsx("div", { style: { fontSize: 14, lineHeight: 1.8, color: "#595959", marginBottom: (p = s.errors) != null && p.length || (u = s.suggestions) != null && u.length ? 8 : 0 }, children: s.feedback }),
199
- s.errors && s.errors.length > 0 && /* @__PURE__ */ r.jsx("div", { style: { marginBottom: 6 }, children: s.errors.map((m, x) => /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", gap: 8, fontSize: 13, color: "#ff4d4f", marginBottom: 2 }, children: [
200
- /* @__PURE__ */ r.jsx(M, { style: { marginTop: 3 } }),
201
- m
202
- ] }, x)) }),
203
- s.suggestions && s.suggestions.length > 0 && /* @__PURE__ */ r.jsx("div", { children: s.suggestions.map((m, x) => /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", gap: 8, fontSize: 13, color: "#fa8c16", marginBottom: 2 }, children: [
204
- /* @__PURE__ */ r.jsx(T, { style: { marginTop: 3 } }),
205
- m
206
- ] }, x)) })
207
- ] })
208
- };
209
- });
210
- return /* @__PURE__ */ r.jsxs("div", { style: { height: "100%", overflow: "auto", padding: 20, ...l.styleOverrides }, children: [
211
- /* @__PURE__ */ r.jsx(
212
- ir,
213
- {
214
- type: t.pass ? t.totalScore >= 80 ? "success" : "warning" : "error",
215
- showIcon: !0,
216
- style: { marginBottom: 16, borderRadius: i },
217
- message: /* @__PURE__ */ r.jsxs("span", { style: { fontSize: 16, fontWeight: 600 }, children: [
218
- "综合评分:",
219
- /* @__PURE__ */ r.jsx("span", { style: { color: k, fontSize: 24 }, children: t.totalScore }),
220
- " 分",
221
- /* @__PURE__ */ r.jsx(A, { color: t.pass ? "green" : "red", style: { marginLeft: 12, fontSize: 13 }, children: t.pass ? "通过" : "未通过" })
222
- ] }),
223
- description: t.nextStepAdvice
224
- }
225
- ),
226
- L === "collapse" ? /* @__PURE__ */ r.jsx(cr, { items: c, defaultActiveKey: c.map((s) => s.key), style: { marginBottom: 16, borderRadius: i } }) : /* @__PURE__ */ r.jsx(K, { direction: "vertical", style: { width: "100%", marginBottom: 16 }, size: "small", children: t.dimensions.map((s, d) => {
227
- var p, u, m, x;
228
- return /* @__PURE__ */ r.jsxs(w, { size: "small", style: { borderRadius: i, borderColor: n.borderColor }, children: [
229
- /* @__PURE__ */ r.jsxs("div", { style: { fontWeight: 600, marginBottom: 4 }, children: [
230
- s.name,
231
- /* @__PURE__ */ r.jsxs(A, { color: s.score >= 80 ? "green" : s.score >= 60 ? "orange" : "red", style: { marginLeft: 8 }, children: [
232
- s.score,
233
- "分"
234
- ] })
235
- ] }),
236
- /* @__PURE__ */ r.jsx("div", { style: { fontSize: 14, color: "#595959", marginBottom: (p = s.errors) != null && p.length || (u = s.suggestions) != null && u.length ? 6 : 0 }, children: s.feedback }),
237
- (m = s.errors) == null ? void 0 : m.map((j, P) => /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", gap: 6, fontSize: 13, color: "#ff4d4f", marginBottom: 2 }, children: [
238
- /* @__PURE__ */ r.jsx(M, { style: { marginTop: 3 } }),
239
- j
240
- ] }, P)),
241
- (x = s.suggestions) == null ? void 0 : x.map((j, P) => /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", gap: 6, fontSize: 13, color: "#fa8c16", marginBottom: 2 }, children: [
242
- /* @__PURE__ */ r.jsx(T, { style: { marginTop: 3 } }),
243
- j
244
- ] }, P))
245
- ] }, d);
246
- }) }),
247
- t.highlights.length > 0 && /* @__PURE__ */ r.jsx(w, { size: "small", style: { marginBottom: 16, borderRadius: i, borderColor: "#b7eb8f", backgroundColor: "#f6ffed" }, title: /* @__PURE__ */ r.jsxs("span", { style: { color: "#52c41a", fontWeight: 600 }, children: [
248
- /* @__PURE__ */ r.jsx(yr, { style: { marginRight: 8 } }),
249
- "分析亮点"
250
- ] }), children: t.highlights.map((s, d) => /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", gap: 8, marginBottom: 4, fontSize: 14, color: "#595959" }, children: [
251
- /* @__PURE__ */ r.jsx(rr, { style: { color: "#52c41a", marginTop: 4 } }),
252
- s
253
- ] }, d)) }),
254
- t.improvements.length > 0 && /* @__PURE__ */ r.jsx(w, { size: "small", style: { marginBottom: 16, borderRadius: i, borderColor: "#ffd591", backgroundColor: "#fff7e6" }, title: /* @__PURE__ */ r.jsxs("span", { style: { color: "#fa8c16", fontWeight: 600 }, children: [
255
- /* @__PURE__ */ r.jsx(M, { style: { marginRight: 8 } }),
256
- "改进建议"
257
- ] }), children: t.improvements.map((s, d) => /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", gap: 8, marginBottom: 4, fontSize: 14, color: "#595959" }, children: [
258
- /* @__PURE__ */ r.jsx(T, { style: { color: "#fa8c16", marginTop: 4 } }),
259
- s
260
- ] }, d)) }),
261
- /* @__PURE__ */ r.jsx("div", { style: { textAlign: "right", marginTop: 16 }, children: /* @__PURE__ */ r.jsxs(K, { children: [
262
- /* @__PURE__ */ r.jsx(E, { icon: /* @__PURE__ */ r.jsx(fr, {}), onClick: U, style: { borderRadius: i }, children: "重新分析" }),
263
- /* @__PURE__ */ r.jsx(E, { type: "primary", size: "large", onClick: H, style: { borderRadius: i, backgroundColor: n.primaryColor, borderColor: n.primaryColor }, children: "完成" })
264
- ] }) })
265
- ] });
266
- }
267
- return null;
268
- }, Lr = ({
269
- initData: e,
270
- checkRules: a,
271
- onFinish: g
272
- }) => {
273
- const [y, h] = R("reading"), [o, C] = R(null), [t, S] = R({}), [l, b] = R(null), [v, f] = R(!1), F = er("CASE_ANALYSIS"), U = (e == null ? void 0 : e.currentUser) || { userId: "student-001" }, { callAI: H, ready: n } = dr(F, U), O = (e == null ? void 0 : e.uiConfig) || {}, z = e == null ? void 0 : e.caseData, { filledData: I } = or(), _ = (e == null ? void 0 : e.caseDescription) || (z == null ? void 0 : z.description) || "", W = X(_, z, I), L = ((e == null ? void 0 : e.analysisPoints) || []).map((m) => X(m, z, I)), i = (e == null ? void 0 : e.referenceAnswer) || "", N = e == null ? void 0 : e.recommendedTool, B = sr(
274
- () => gr(e == null ? void 0 : e.availableTools, e == null ? void 0 : e.customTools),
275
- [e == null ? void 0 : e.availableTools, e == null ? void 0 : e.customTools]
276
- ), k = $(() => {
277
- h("analyzing");
278
- }, []), c = $(
279
- (m) => {
280
- const x = B.find((j) => j.key === m) || null;
281
- C(x), S({});
282
- },
283
- [B]
284
- ), s = $((m, x) => {
285
- S((j) => ({ ...j, [m]: x }));
286
- }, []), d = $(async () => {
287
- if (o) {
288
- if (!n) {
289
- q.error("AI 服务未就绪");
290
- return;
291
- }
292
- h("evaluating"), f(!0);
293
- try {
294
- const m = Cr(
295
- W,
296
- L,
297
- o,
298
- t,
299
- i,
300
- a
301
- );
302
- let x = "";
303
- await H(m, (j, P) => {
304
- if (x = j, P) {
305
- const { command: Y, cleanContent: G } = ar(j, "evaluation");
306
- if (Y) {
307
- b(Y.data), h("feedback");
308
- return;
309
- }
310
- try {
311
- const Q = JSON.parse(G);
312
- if (Q.type) {
313
- q.info("AI 返回了非评价指令,请重试"), h("analyzing");
314
- return;
315
- }
316
- b(Q), h("feedback");
317
- } catch {
318
- console.error("AI 返回解析失败:", G), q.error("AI 评价结果解析失败,请重试"), h("analyzing");
319
- }
320
- }
321
- });
322
- } catch (m) {
323
- console.error("AI 调用失败:", m), q.error("AI 评价失败,请重试"), h("analyzing");
324
- } finally {
325
- f(!1);
326
- }
327
- }
328
- }, [o, n, H, W, L, t, i, a]), p = $(() => {
329
- h("analyzing"), C(null), S({}), b(null);
330
- }, []), u = $(() => {
331
- g({
332
- stepId: (e == null ? void 0 : e.stepId) || "unknown",
333
- operationType: "case-analysis",
334
- operationData: {
335
- selectedTool: o == null ? void 0 : o.key,
336
- selectedToolName: o == null ? void 0 : o.name,
337
- dimensionAnswers: t,
338
- evaluation: l,
339
- overallScore: l == null ? void 0 : l.totalScore
340
- },
341
- operationLog: [],
342
- timestamp: Date.now(),
343
- evidenceSummary: pr({
344
- sourceStepId: (e == null ? void 0 : e.stepId) || "unknown",
345
- sourceStepName: (e == null ? void 0 : e.stepName) || "案例分析",
346
- sourceType: "case-analysis",
347
- title: `${(e == null ? void 0 : e.stepName) || "案例分析"}摘要`,
348
- summary: `使用 ${(o == null ? void 0 : o.name) || "未选择工具"} 完成分析${(l == null ? void 0 : l.totalScore) != null ? `,总分 ${l.totalScore}` : ""}。`,
349
- keyFacts: [
350
- { label: "分析工具", value: (o == null ? void 0 : o.name) || "未选择" },
351
- ...(l == null ? void 0 : l.totalScore) != null ? [{ label: "总分", value: String(l.totalScore) }] : []
352
- ]
353
- })
354
- });
355
- }, [g, e == null ? void 0 : e.stepId, o, t, l]);
356
- return /* @__PURE__ */ r.jsx(
357
- br,
358
- {
359
- phase: y,
360
- caseDescription: W,
361
- analysisPoints: L,
362
- tools: B,
363
- recommendedTool: N,
364
- selectedTool: o,
365
- dimensionAnswers: t,
366
- evaluation: l,
367
- loading: v,
368
- uiConfig: O,
369
- onStartAnalysis: k,
370
- onSelectTool: c,
371
- onDimensionChange: s,
372
- onSubmit: d,
373
- onRetry: p,
374
- onComplete: u
375
- }
376
- );
377
- };
378
- function Cr(e, a, g, y, h, o) {
379
- var b, v;
380
- const C = g.dimensions.map((f) => `### ${f.label}
381
- ${y[f.key] || "(未填写)"}`).join(`
382
-
383
- `), t = (b = o == null ? void 0 : o.requiredPoints) != null && b.length ? `
384
- 【必须涵盖的要点】
385
- ${o.requiredPoints.map((f) => `- ${f}`).join(`
386
- `)}` : "", S = (v = o == null ? void 0 : o.scoringCriteria) != null && v.length ? `
387
- 【评分标准】
388
- ${o.scoringCriteria.map((f) => `- ${f}`).join(`
389
- `)}` : "", l = h ? `
390
- 【参考答案】
391
- ${h}` : "";
392
- return `
393
- 【评估任务】
394
- 请评估学生的案例分析质量。
395
-
396
- 【案例描述】
397
- ${e}
398
-
399
- 【分析要点】
400
- ${a.map((f) => `- ${f}`).join(`
401
- `)}
402
-
403
- 【学生选择的分析工具】
404
- ${g.name}(${g.description})
405
-
406
- 【学生的分析内容】
407
- ${C}
408
- ${l}
409
- ${t}
410
- ${S}
411
-
412
- `.trim();
413
- }
414
- export {
415
- Lr as default
416
- };