@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
@@ -1,977 +0,0 @@
1
- import { j as e, R as W, b as B, k as T, i as U } from "./RadarChart-C5ZM0kWt.js";
2
- import N, { useMemo as f, useState as w } from "react";
3
- import { Card as O, Descriptions as I, Tag as z, Space as E, Checkbox as Y, Radio as P, Input as V, Button as _, Alert as G, message as J } from "antd";
4
- import { c as K, d as Q, a as X } from "./judgement-D_9i7x9S.js";
5
- import { f as Z, g as D } from "./WarningOutlined-5g1d66hO.js";
6
- const k = {
7
- colors: {
8
- primary: "#2563EB",
9
- secondary: "#3B82F6",
10
- success: "#10B981",
11
- warning: "#F59E0B",
12
- error: "#EF4444",
13
- info: "#3B82F6",
14
- background: "#F8FAFC",
15
- surface: "#FFFFFF",
16
- surfaceHover: "#F1F5F9",
17
- textPrimary: "#1E293B",
18
- textSecondary: "#64748B",
19
- textDisabled: "#94A3B8",
20
- border: "#E2E8F0",
21
- borderFocus: "#2563EB",
22
- divider: "#F1F5F9"
23
- },
24
- typography: {
25
- fontFamily: {
26
- heading: "'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
27
- body: "'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
28
- },
29
- fontSize: {
30
- h1: "24px",
31
- h2: "18px",
32
- h3: "16px",
33
- body: "14px",
34
- caption: "12px"
35
- },
36
- fontWeight: {
37
- regular: 400,
38
- medium: 500,
39
- semibold: 600,
40
- bold: 700
41
- },
42
- lineHeight: 1.5
43
- },
44
- spacing: {
45
- xs: "8px",
46
- sm: "12px",
47
- md: "16px",
48
- lg: "24px",
49
- xl: "32px",
50
- xxl: "48px"
51
- },
52
- borderRadius: {
53
- sm: "4px",
54
- md: "8px",
55
- lg: "12px"
56
- },
57
- shadows: {
58
- card: "0 1px 3px rgba(0, 0, 0, 0.08)",
59
- cardHover: "0 4px 12px rgba(0, 0, 0, 0.12)",
60
- focus: "0 0 0 3px rgba(37, 99, 235, 0.1)"
61
- },
62
- transitions: {
63
- fast: "150ms ease-in-out",
64
- normal: "200ms ease-out",
65
- slow: "300ms ease-out"
66
- },
67
- zIndex: {
68
- base: 0,
69
- card: 1,
70
- header: 10,
71
- modal: 100
72
- }
73
- }, L = {
74
- "document-review": {
75
- primary: "#2563EB",
76
- secondary: "#64748B"
77
- },
78
- "archive-management": {
79
- primary: "#92400E",
80
- secondary: "#B45309"
81
- },
82
- "quality-inspection": {
83
- primary: "#EA580C",
84
- secondary: "#F59E0B"
85
- },
86
- "security-checkpoint": {
87
- primary: "#1E40AF",
88
- secondary: "#3B82F6"
89
- },
90
- "counter-service": {
91
- primary: "#059669",
92
- secondary: "#10B981"
93
- },
94
- "smart-recognition": {
95
- primary: "#7C3AED",
96
- secondary: "#A78BFA"
97
- }
98
- };
99
- function rr(r, o) {
100
- return !o || !L[o] ? r : {
101
- ...r,
102
- colors: {
103
- ...r.colors,
104
- ...L[o]
105
- }
106
- };
107
- }
108
- const er = ({
109
- tokens: r,
110
- leftPanel: o,
111
- rightPanel: a,
112
- topAlert: t,
113
- reviewMode: l = "identity-verification",
114
- atmosphereStyle: i
115
- }) => {
116
- const c = () => l === "material-review" ? i === "archive-management" ? { icon: "📁", text: "档案预览" } : i === "quality-inspection" ? { icon: "📋", text: "材料清单" } : { icon: "📄", text: "文档预览" } : i === "security-checkpoint" ? { icon: "🛂", text: "证件扫描" } : i === "smart-recognition" ? { icon: "📷", text: "OCR识别" } : { icon: "🪪", text: "证件信息" }, m = () => l === "material-review" ? i === "archive-management" ? { icon: "✓", text: "归档检查" } : i === "quality-inspection" ? { icon: "✓", text: "质检操作" } : { icon: "✓", text: "复核操作" } : i === "security-checkpoint" ? { icon: "🔍", text: "安检核验" } : i === "smart-recognition" ? { icon: "🤖", text: "智能审核" } : { icon: "✏️", text: "审核操作" }, d = c(), p = m(), b = `
117
- /* Webkit 浏览器滚动条样式 */
118
- .document-review-scroll::-webkit-scrollbar {
119
- width: 8px;
120
- height: 8px;
121
- }
122
-
123
- .document-review-scroll::-webkit-scrollbar-track {
124
- background: ${r.colors.background};
125
- border-radius: 4px;
126
- }
127
-
128
- .document-review-scroll::-webkit-scrollbar-thumb {
129
- background: ${r.colors.border};
130
- border-radius: 4px;
131
- transition: background 0.2s ease;
132
- }
133
-
134
- .document-review-scroll::-webkit-scrollbar-thumb:hover {
135
- background: ${r.colors.textSecondary};
136
- }
137
-
138
- /* Firefox 滚动条样式 */
139
- .document-review-scroll {
140
- scrollbar-width: thin;
141
- scrollbar-color: ${r.colors.border} ${r.colors.background};
142
- }
143
-
144
- /* 预览区背景纹理 */
145
- .preview-area-texture {
146
- background-color: #fafafa;
147
- background-image:
148
- linear-gradient(45deg, #f5f5f5 25%, transparent 25%),
149
- linear-gradient(-45deg, #f5f5f5 25%, transparent 25%),
150
- linear-gradient(45deg, transparent 75%, #f5f5f5 75%),
151
- linear-gradient(-45deg, transparent 75%, #f5f5f5 75%);
152
- background-size: 20px 20px;
153
- background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
154
- }
155
- `;
156
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
157
- /* @__PURE__ */ e.jsx("style", { children: b }),
158
- /* @__PURE__ */ e.jsxs(
159
- "div",
160
- {
161
- style: {
162
- backgroundColor: r.colors.background,
163
- paddingLeft: r.spacing.lg,
164
- paddingTop: r.spacing.lg,
165
- paddingBottom: r.spacing.lg
166
- },
167
- children: [
168
- t && /* @__PURE__ */ e.jsx("div", { style: { marginBottom: r.spacing.lg, paddingRight: r.spacing.lg }, children: t }),
169
- /* @__PURE__ */ e.jsxs(
170
- "div",
171
- {
172
- style: {
173
- display: "flex",
174
- gap: "0",
175
- height: "600px"
176
- },
177
- children: [
178
- /* @__PURE__ */ e.jsxs(
179
- "div",
180
- {
181
- className: "document-review-scroll preview-area-texture",
182
- style: {
183
- flex: "0 0 40%",
184
- height: "600px",
185
- overflowY: "auto",
186
- paddingRight: r.spacing.md,
187
- paddingLeft: r.spacing.sm,
188
- paddingTop: r.spacing.sm,
189
- paddingBottom: r.spacing.sm,
190
- boxShadow: "inset 0 2px 4px rgba(0, 0, 0, 0.03)",
191
- position: "relative"
192
- },
193
- children: [
194
- /* @__PURE__ */ e.jsxs(
195
- "div",
196
- {
197
- style: {
198
- position: "sticky",
199
- top: 0,
200
- zIndex: 10,
201
- backgroundColor: "rgba(250, 250, 250, 0.95)",
202
- backdropFilter: "blur(8px)",
203
- padding: `${r.spacing.xs} ${r.spacing.sm}`,
204
- marginBottom: r.spacing.sm,
205
- borderRadius: r.borderRadius.sm,
206
- border: "1px solid rgba(0, 0, 0, 0.06)",
207
- display: "flex",
208
- alignItems: "center",
209
- gap: r.spacing.xs
210
- },
211
- children: [
212
- /* @__PURE__ */ e.jsx("span", { style: { fontSize: "14px", color: r.colors.textSecondary }, children: d.icon }),
213
- /* @__PURE__ */ e.jsx(
214
- "span",
215
- {
216
- style: {
217
- fontSize: r.typography.fontSize.caption,
218
- fontWeight: r.typography.fontWeight.medium,
219
- color: r.colors.textSecondary,
220
- letterSpacing: "0.5px"
221
- },
222
- children: d.text
223
- }
224
- ),
225
- /* @__PURE__ */ e.jsx(
226
- "span",
227
- {
228
- style: {
229
- marginLeft: "auto",
230
- fontSize: r.typography.fontSize.caption,
231
- color: r.colors.textSecondary,
232
- opacity: 0.6
233
- },
234
- children: "只读"
235
- }
236
- )
237
- ]
238
- }
239
- ),
240
- o
241
- ]
242
- }
243
- ),
244
- /* @__PURE__ */ e.jsxs(
245
- "div",
246
- {
247
- className: "document-review-scroll",
248
- style: {
249
- flex: "1",
250
- height: "600px",
251
- overflowY: "auto",
252
- paddingLeft: r.spacing.md,
253
- paddingRight: r.spacing.sm,
254
- paddingTop: r.spacing.sm,
255
- paddingBottom: r.spacing.sm,
256
- backgroundColor: "#ffffff",
257
- borderLeft: "1px solid rgba(0, 0, 0, 0.06)",
258
- position: "relative"
259
- },
260
- children: [
261
- /* @__PURE__ */ e.jsxs(
262
- "div",
263
- {
264
- style: {
265
- position: "sticky",
266
- top: 0,
267
- zIndex: 10,
268
- backgroundColor: "rgba(255, 255, 255, 0.95)",
269
- backdropFilter: "blur(8px)",
270
- padding: `${r.spacing.xs} ${r.spacing.sm}`,
271
- marginBottom: r.spacing.sm,
272
- borderRadius: r.borderRadius.sm,
273
- border: `1px solid ${r.colors.primary}20`,
274
- display: "flex",
275
- alignItems: "center",
276
- gap: r.spacing.xs
277
- },
278
- children: [
279
- /* @__PURE__ */ e.jsx("span", { style: { fontSize: "14px", color: r.colors.primary }, children: p.icon }),
280
- /* @__PURE__ */ e.jsx(
281
- "span",
282
- {
283
- style: {
284
- fontSize: r.typography.fontSize.caption,
285
- fontWeight: r.typography.fontWeight.medium,
286
- color: r.colors.primary,
287
- letterSpacing: "0.5px"
288
- },
289
- children: p.text
290
- }
291
- )
292
- ]
293
- }
294
- ),
295
- a
296
- ]
297
- }
298
- )
299
- ]
300
- }
301
- )
302
- ]
303
- }
304
- )
305
- ] });
306
- }, j = ({ tokens: r, children: o, title: a, icon: t }) => /* @__PURE__ */ e.jsxs(
307
- "div",
308
- {
309
- style: {
310
- backgroundColor: r.colors.surface,
311
- borderRadius: r.borderRadius.md,
312
- boxShadow: r.shadows.card,
313
- padding: r.spacing.lg,
314
- marginBottom: r.spacing.md,
315
- transition: `box-shadow ${r.transitions.normal}`
316
- },
317
- onMouseEnter: (l) => {
318
- l.currentTarget.style.boxShadow = r.shadows.cardHover;
319
- },
320
- onMouseLeave: (l) => {
321
- l.currentTarget.style.boxShadow = r.shadows.card;
322
- },
323
- children: [
324
- a && /* @__PURE__ */ e.jsxs(
325
- "div",
326
- {
327
- style: {
328
- display: "flex",
329
- alignItems: "center",
330
- marginBottom: r.spacing.md,
331
- paddingBottom: r.spacing.sm,
332
- borderBottom: `1px solid ${r.colors.divider}`
333
- },
334
- children: [
335
- t && /* @__PURE__ */ e.jsx("span", { style: { marginRight: r.spacing.xs, color: r.colors.primary }, children: t }),
336
- /* @__PURE__ */ e.jsx(
337
- "h3",
338
- {
339
- style: {
340
- margin: 0,
341
- fontSize: r.typography.fontSize.h3,
342
- fontWeight: r.typography.fontWeight.semibold,
343
- fontFamily: r.typography.fontFamily.heading,
344
- color: r.colors.textPrimary
345
- },
346
- children: a
347
- }
348
- )
349
- ]
350
- }
351
- ),
352
- o
353
- ]
354
- }
355
- ), or = ({
356
- tokens: r,
357
- documents: o,
358
- atmosphereStyle: a,
359
- reviewMode: t
360
- }) => o.length === 0 ? /* @__PURE__ */ e.jsx(j, { tokens: r, title: "证件/材料信息", icon: /* @__PURE__ */ e.jsx(W, {}), children: /* @__PURE__ */ e.jsx(
361
- "div",
362
- {
363
- style: {
364
- textAlign: "center",
365
- padding: r.spacing.xl,
366
- color: r.colors.textSecondary
367
- },
368
- children: "暂无证件/材料信息"
369
- }
370
- ) }) : /* @__PURE__ */ e.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "0" }, children: o.map((l, i) => /* @__PURE__ */ e.jsx(
371
- ir,
372
- {
373
- tokens: r,
374
- document: l,
375
- index: i,
376
- atmosphereStyle: a,
377
- reviewMode: t
378
- },
379
- i
380
- )) }), ir = ({
381
- tokens: r,
382
- document: o,
383
- index: a,
384
- atmosphereStyle: t,
385
- reviewMode: l
386
- }) => {
387
- const i = () => {
388
- if (!t) return null;
389
- if (l === "material-review") {
390
- if (t === "archive-management")
391
- return /* @__PURE__ */ e.jsx(
392
- "div",
393
- {
394
- style: {
395
- position: "absolute",
396
- top: "-8px",
397
- left: "16px",
398
- width: "50px",
399
- height: "8px",
400
- backgroundColor: r.colors.primary,
401
- opacity: 0.3,
402
- borderRadius: "4px 4px 0 0"
403
- }
404
- }
405
- );
406
- if (t === "quality-inspection")
407
- return /* @__PURE__ */ e.jsx(
408
- "div",
409
- {
410
- style: {
411
- position: "absolute",
412
- top: "8px",
413
- right: "8px",
414
- width: "24px",
415
- height: "24px",
416
- border: `2px solid ${r.colors.success}`,
417
- borderRadius: "50%",
418
- opacity: 0.2
419
- }
420
- }
421
- );
422
- }
423
- if (l === "identity-verification") {
424
- if (t === "security-checkpoint")
425
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
426
- /* @__PURE__ */ e.jsx(
427
- "div",
428
- {
429
- style: {
430
- position: "absolute",
431
- top: 0,
432
- left: 0,
433
- right: 0,
434
- height: "2px",
435
- background: `linear-gradient(90deg, transparent, ${r.colors.primary}, transparent)`,
436
- opacity: 0.5
437
- }
438
- }
439
- ),
440
- /* @__PURE__ */ e.jsx(
441
- "div",
442
- {
443
- style: {
444
- position: "absolute",
445
- top: "8px",
446
- right: "8px",
447
- width: "20px",
448
- height: "20px",
449
- border: `2px solid ${r.colors.primary}`,
450
- borderRadius: "2px",
451
- opacity: 0.3
452
- }
453
- }
454
- )
455
- ] });
456
- if (t === "smart-recognition")
457
- return /* @__PURE__ */ e.jsx(
458
- "div",
459
- {
460
- style: {
461
- position: "absolute",
462
- top: "8px",
463
- right: "8px",
464
- width: "6px",
465
- height: "6px",
466
- backgroundColor: r.colors.success,
467
- borderRadius: "50%",
468
- boxShadow: `0 0 8px ${r.colors.success}`,
469
- animation: "pulse 2s ease-in-out infinite"
470
- }
471
- }
472
- );
473
- }
474
- return null;
475
- };
476
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
477
- /* @__PURE__ */ e.jsx("style", { children: `
478
- @keyframes pulse {
479
- 0%, 100% { opacity: 0.3; }
480
- 50% { opacity: 1; }
481
- }
482
- ` }),
483
- /* @__PURE__ */ e.jsxs(
484
- O,
485
- {
486
- size: "small",
487
- style: {
488
- marginBottom: r.spacing.md,
489
- borderRadius: r.borderRadius.md,
490
- boxShadow: r.shadows.card,
491
- border: `1px solid ${r.colors.border}`,
492
- transition: `all ${r.transitions.normal}`,
493
- position: "relative",
494
- overflow: "visible"
495
- },
496
- title: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center", gap: r.spacing.xs }, children: [
497
- /* @__PURE__ */ e.jsx(W, { style: { color: r.colors.primary } }),
498
- /* @__PURE__ */ e.jsx(
499
- "span",
500
- {
501
- style: {
502
- fontFamily: r.typography.fontFamily.heading,
503
- fontWeight: r.typography.fontWeight.semibold,
504
- color: r.colors.textPrimary
505
- },
506
- children: o.documentType
507
- }
508
- ),
509
- /* @__PURE__ */ e.jsxs(
510
- z,
511
- {
512
- color: r.colors.primary,
513
- style: {
514
- marginLeft: "auto",
515
- borderRadius: r.borderRadius.sm
516
- },
517
- children: [
518
- "#",
519
- a + 1
520
- ]
521
- }
522
- )
523
- ] }),
524
- hoverable: !0,
525
- onMouseEnter: (c) => {
526
- c.currentTarget.style.boxShadow = r.shadows.cardHover, c.currentTarget.style.borderColor = r.colors.primary;
527
- },
528
- onMouseLeave: (c) => {
529
- c.currentTarget.style.boxShadow = r.shadows.card, c.currentTarget.style.borderColor = r.colors.border;
530
- },
531
- children: [
532
- i(),
533
- /* @__PURE__ */ e.jsx(
534
- I,
535
- {
536
- column: 1,
537
- size: "small",
538
- labelStyle: {
539
- fontWeight: r.typography.fontWeight.medium,
540
- color: r.colors.textSecondary,
541
- fontFamily: r.typography.fontFamily.body,
542
- fontSize: r.typography.fontSize.caption
543
- },
544
- contentStyle: {
545
- color: r.colors.textPrimary,
546
- fontFamily: r.typography.fontFamily.body,
547
- fontSize: r.typography.fontSize.body
548
- },
549
- children: o.fields.map((c) => /* @__PURE__ */ e.jsx(I.Item, { label: c.label, children: sr(c, r) }, c.name))
550
- }
551
- )
552
- ]
553
- }
554
- )
555
- ] });
556
- };
557
- function sr(r, o) {
558
- const a = r.value || "-";
559
- return r.type === "date" ? /* @__PURE__ */ e.jsx("span", { style: { color: o.colors.info, fontWeight: o.typography.fontWeight.medium }, children: a }) : r.type === "number" ? /* @__PURE__ */ e.jsx("span", { style: { fontFamily: "monospace", color: o.colors.textPrimary }, children: a }) : r.type === "textarea" ? /* @__PURE__ */ e.jsx(
560
- "div",
561
- {
562
- style: {
563
- whiteSpace: "pre-wrap",
564
- padding: o.spacing.xs,
565
- backgroundColor: o.colors.background,
566
- borderRadius: o.borderRadius.sm,
567
- fontSize: o.typography.fontSize.caption
568
- },
569
- children: a
570
- }
571
- ) : /* @__PURE__ */ e.jsx("span", { children: a });
572
- }
573
- const { TextArea: tr } = V, lr = ({
574
- tokens: r,
575
- checkPoints: o,
576
- mustCheck: a,
577
- riskPoints: t,
578
- checkedItems: l,
579
- conclusion: i,
580
- exceptions: c,
581
- onToggleCheck: m,
582
- onConclusionChange: d,
583
- onExceptionsChange: p,
584
- onComplete: b,
585
- atmosphereStyle: y,
586
- reviewMode: S
587
- }) => {
588
- const u = () => S === "material-review" ? y === "archive-management" ? "完成归档" : y === "quality-inspection" ? "提交质检" : "完成复核" : y === "security-checkpoint" ? "通过安检" : y === "smart-recognition" ? "确认识别" : "完成审核";
589
- return /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0" }, children: [
590
- o.length > 0 && /* @__PURE__ */ e.jsxs(j, { tokens: r, title: "审核检查点", icon: /* @__PURE__ */ e.jsx(B, {}), children: [
591
- /* @__PURE__ */ e.jsx(E, { direction: "vertical", style: { width: "100%" }, size: parseInt(r.spacing.sm), children: o.map((s) => {
592
- const F = a.includes(s), x = l.includes(s);
593
- return /* @__PURE__ */ e.jsx(
594
- "div",
595
- {
596
- style: {
597
- padding: r.spacing.sm,
598
- borderRadius: r.borderRadius.sm,
599
- backgroundColor: x ? `${r.colors.success}10` : r.colors.background,
600
- border: `1px solid ${x ? r.colors.success : r.colors.border}`,
601
- transition: `all ${r.transitions.fast}`
602
- },
603
- children: /* @__PURE__ */ e.jsxs(
604
- Y,
605
- {
606
- checked: x,
607
- onChange: (C) => m(s, C.target.checked),
608
- style: {
609
- fontFamily: r.typography.fontFamily.body,
610
- fontSize: r.typography.fontSize.body,
611
- color: r.colors.textPrimary
612
- },
613
- children: [
614
- /* @__PURE__ */ e.jsx("span", { style: { marginRight: r.spacing.xs }, children: s }),
615
- F && /* @__PURE__ */ e.jsx(
616
- z,
617
- {
618
- color: r.colors.error,
619
- style: {
620
- marginLeft: r.spacing.xs,
621
- fontSize: r.typography.fontSize.caption,
622
- borderRadius: r.borderRadius.sm
623
- },
624
- children: "必检"
625
- }
626
- )
627
- ]
628
- }
629
- )
630
- },
631
- s
632
- );
633
- }) }),
634
- /* @__PURE__ */ e.jsx(
635
- "div",
636
- {
637
- style: {
638
- marginTop: r.spacing.md,
639
- padding: r.spacing.sm,
640
- backgroundColor: r.colors.background,
641
- borderRadius: r.borderRadius.sm,
642
- textAlign: "center"
643
- },
644
- children: /* @__PURE__ */ e.jsxs(
645
- "span",
646
- {
647
- style: {
648
- fontSize: r.typography.fontSize.caption,
649
- color: r.colors.textSecondary
650
- },
651
- children: [
652
- "已完成 ",
653
- l.length,
654
- " / ",
655
- o.length,
656
- " 项检查"
657
- ]
658
- }
659
- )
660
- }
661
- )
662
- ] }),
663
- t.length > 0 && /* @__PURE__ */ e.jsx(j, { tokens: r, title: "关注风险点", icon: /* @__PURE__ */ e.jsx(Z, {}), children: /* @__PURE__ */ e.jsx(E, { wrap: !0, size: parseInt(r.spacing.xs), children: t.map((s) => /* @__PURE__ */ e.jsx(
664
- z,
665
- {
666
- color: r.colors.warning,
667
- icon: /* @__PURE__ */ e.jsx(T, {}),
668
- style: {
669
- fontSize: r.typography.fontSize.body,
670
- padding: `${r.spacing.xs} ${r.spacing.sm}`,
671
- borderRadius: r.borderRadius.sm
672
- },
673
- children: s
674
- },
675
- s
676
- )) }) }),
677
- /* @__PURE__ */ e.jsx(j, { tokens: r, title: "审核结论", children: /* @__PURE__ */ e.jsx(
678
- P.Group,
679
- {
680
- value: i,
681
- onChange: (s) => d(s.target.value),
682
- style: { width: "100%" },
683
- children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", gap: r.spacing.sm, width: "100%" }, children: [
684
- /* @__PURE__ */ e.jsx(
685
- R,
686
- {
687
- tokens: r,
688
- value: "pass",
689
- label: "通过",
690
- icon: /* @__PURE__ */ e.jsx(U, {}),
691
- color: r.colors.success,
692
- selected: i === "pass"
693
- }
694
- ),
695
- /* @__PURE__ */ e.jsx(
696
- R,
697
- {
698
- tokens: r,
699
- value: "warning",
700
- label: "存疑",
701
- icon: /* @__PURE__ */ e.jsx(T, {}),
702
- color: r.colors.warning,
703
- selected: i === "warning"
704
- }
705
- ),
706
- /* @__PURE__ */ e.jsx(
707
- R,
708
- {
709
- tokens: r,
710
- value: "reject",
711
- label: "不通过",
712
- icon: /* @__PURE__ */ e.jsx(D, {}),
713
- color: r.colors.error,
714
- selected: i === "reject"
715
- }
716
- )
717
- ] })
718
- }
719
- ) }),
720
- /* @__PURE__ */ e.jsx(j, { tokens: r, title: "异常记录", children: /* @__PURE__ */ e.jsx(
721
- tr,
722
- {
723
- rows: 6,
724
- placeholder: `如发现异常,请逐行填写,例如:
725
- 身份证有效期临近
726
- 申请表签字缺失`,
727
- value: c,
728
- onChange: (s) => p(s.target.value),
729
- style: {
730
- fontFamily: r.typography.fontFamily.body,
731
- fontSize: r.typography.fontSize.body,
732
- borderColor: r.colors.border,
733
- borderRadius: r.borderRadius.sm,
734
- transition: `all ${r.transitions.fast}`
735
- },
736
- onFocus: (s) => {
737
- s.currentTarget.style.borderColor = r.colors.borderFocus, s.currentTarget.style.boxShadow = r.shadows.focus;
738
- },
739
- onBlur: (s) => {
740
- s.currentTarget.style.borderColor = r.colors.border, s.currentTarget.style.boxShadow = "none";
741
- }
742
- }
743
- ) }),
744
- /* @__PURE__ */ e.jsx(
745
- _,
746
- {
747
- type: "primary",
748
- size: "large",
749
- block: !0,
750
- onClick: b,
751
- icon: /* @__PURE__ */ e.jsx(B, {}),
752
- style: {
753
- height: "48px",
754
- fontSize: r.typography.fontSize.h3,
755
- fontWeight: r.typography.fontWeight.semibold,
756
- fontFamily: r.typography.fontFamily.heading,
757
- backgroundColor: r.colors.primary,
758
- borderColor: r.colors.primary,
759
- borderRadius: r.borderRadius.md,
760
- boxShadow: r.shadows.card,
761
- transition: `all ${r.transitions.normal}`
762
- },
763
- onMouseEnter: (s) => {
764
- s.currentTarget.style.transform = "translateY(-2px)", s.currentTarget.style.boxShadow = r.shadows.cardHover;
765
- },
766
- onMouseLeave: (s) => {
767
- s.currentTarget.style.transform = "translateY(0)", s.currentTarget.style.boxShadow = r.shadows.card;
768
- },
769
- children: u()
770
- }
771
- )
772
- ] });
773
- }, R = ({
774
- tokens: r,
775
- value: o,
776
- label: a,
777
- icon: t,
778
- color: l,
779
- selected: i
780
- }) => /* @__PURE__ */ e.jsx(
781
- "div",
782
- {
783
- style: {
784
- flex: 1,
785
- padding: r.spacing.md,
786
- borderRadius: r.borderRadius.sm,
787
- border: `2px solid ${i ? l : r.colors.border}`,
788
- backgroundColor: i ? `${l}10` : r.colors.surface,
789
- transition: `all ${r.transitions.fast}`,
790
- cursor: "pointer"
791
- },
792
- children: /* @__PURE__ */ e.jsx(P, { value: o, style: { width: "100%" }, children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center", gap: r.spacing.xs, justifyContent: "center" }, children: [
793
- /* @__PURE__ */ e.jsx("span", { style: { color: l, fontSize: "18px" }, children: t }),
794
- /* @__PURE__ */ e.jsx(
795
- "span",
796
- {
797
- style: {
798
- fontFamily: r.typography.fontFamily.heading,
799
- fontSize: r.typography.fontSize.body,
800
- fontWeight: i ? r.typography.fontWeight.semibold : r.typography.fontWeight.regular,
801
- color: i ? l : r.colors.textPrimary
802
- },
803
- children: a
804
- }
805
- )
806
- ] }) })
807
- }
808
- );
809
- function ar(r) {
810
- return r.map((o) => ({
811
- documentType: o.type,
812
- fields: [
813
- { name: "name", label: "姓名", type: "text", value: o.name },
814
- { name: "number", label: "证件号码", type: "text", value: o.number },
815
- ...o.address ? [{ name: "address", label: "地址", type: "text", value: o.address }] : [],
816
- ...o.validUntil ? [{ name: "validUntil", label: "有效期至", type: "date", value: o.validUntil }] : []
817
- ]
818
- }));
819
- }
820
- const nr = ({
821
- initData: r,
822
- checkRules: o,
823
- onFinish: a
824
- }) => {
825
- const t = f(() => K(r == null ? void 0 : r.reviewMode), [r]), l = f(() => (r == null ? void 0 : r.checkPoints) || [], [r]), i = f(() => {
826
- var g;
827
- const n = (r == null ? void 0 : r.documents) || [];
828
- return n.length === 0 ? [] : (g = n[0]) != null && g.fields ? n : ar(n);
829
- }, [r]), c = f(
830
- () => Q((o == null ? void 0 : o.mustCheck) || [], (r == null ? void 0 : r.checkPoints) || []),
831
- [o, r]
832
- ), m = f(() => (o == null ? void 0 : o.riskPoints) || [], [o]), d = f(
833
- () => rr(k, r == null ? void 0 : r.atmosphereStyle),
834
- [r == null ? void 0 : r.atmosphereStyle]
835
- ), [p, b] = w([]), [y, S] = w(""), [u, s] = w("pass"), [F, x] = w(!0);
836
- N.useEffect(() => {
837
- const n = setTimeout(() => {
838
- x(!1);
839
- }, 5e3);
840
- return () => clearTimeout(n);
841
- }, []);
842
- const C = (n, g) => {
843
- b((h) => g ? h.includes(n) ? h : [...h, n] : h.filter((v) => v !== n));
844
- }, A = () => {
845
- const n = c.filter((v) => !p.includes(v));
846
- if (n.length > 0) {
847
- J.error(`还有必检项未完成:${n.join("、")}`);
848
- return;
849
- }
850
- const g = y.split(`
851
- `).map((v) => v.trim()).filter(Boolean), h = X({
852
- sourceStepId: (r == null ? void 0 : r.stepId) || "unknown",
853
- sourceStepName: (r == null ? void 0 : r.stepName) || "单据审核",
854
- sourceType: "document-review",
855
- title: t === "material-review" ? "材料复核结果" : "单据审核结果",
856
- summary: `已完成 ${p.length} 项检查,审核结论为 ${u}。`,
857
- keyFacts: [
858
- { label: "审核模式", value: t },
859
- { label: "已检查项数", value: String(p.length) },
860
- { label: "单据数量", value: String(i.length) },
861
- { label: "审核结论", value: u }
862
- ],
863
- riskFlags: g.length > 0 ? g : m,
864
- conclusion: u
865
- });
866
- a({
867
- stepId: (r == null ? void 0 : r.stepId) || "unknown",
868
- operationType: "document-review",
869
- operationData: {
870
- reviewed: !0,
871
- checkedItems: p,
872
- exceptions: g,
873
- conclusion: u,
874
- riskPoints: m
875
- },
876
- operationLog: [
877
- {
878
- action: "review-complete",
879
- checkedItems: p,
880
- exceptions: g,
881
- conclusion: u,
882
- timestamp: Date.now()
883
- }
884
- ],
885
- timestamp: Date.now(),
886
- evidenceSummary: h
887
- });
888
- }, $ = (() => {
889
- if (t === "material-review") {
890
- const n = {
891
- "archive-management": {
892
- title: "档案归档检查",
893
- desc: "请按照档案管理规范,逐项核对材料完整性和归档要求。"
894
- },
895
- "quality-inspection": {
896
- title: "材料质检流程",
897
- desc: "请按照质检标准,检查材料是否符合规范要求,并给出质检结论。"
898
- },
899
- "document-review": {
900
- title: "文档材料复核",
901
- desc: "请逐项完成材料检查,核对文档内容的完整性和准确性。"
902
- }
903
- };
904
- return n[(r == null ? void 0 : r.atmosphereStyle) || "document-review"] || n["document-review"];
905
- } else {
906
- const n = {
907
- "security-checkpoint": {
908
- title: "安检证件核验",
909
- desc: "请核验证件真伪、有效期及持证人信息,确保符合安检要求。"
910
- },
911
- "smart-recognition": {
912
- title: "智能证件识别",
913
- desc: "系统已自动识别证件信息,请核对识别结果并确认证件有效性。"
914
- },
915
- "counter-service": {
916
- title: "柜台证件审核",
917
- desc: "请核对证件信息与申请材料的一致性,并完成身份验证。"
918
- }
919
- };
920
- return n[(r == null ? void 0 : r.atmosphereStyle) || "counter-service"] || n["counter-service"];
921
- }
922
- })(), M = F ? /* @__PURE__ */ e.jsx(
923
- G,
924
- {
925
- message: $.title,
926
- description: `${$.desc} 原始审核记录会保留用于回看,摘要结果会提供给后续决策步骤。`,
927
- type: "info",
928
- showIcon: !0,
929
- closable: !0,
930
- onClose: () => x(!1),
931
- style: {
932
- borderRadius: d.borderRadius.md,
933
- border: `1px solid ${d.colors.border}`,
934
- transition: `all ${d.transitions.normal}`
935
- }
936
- }
937
- ) : null, q = /* @__PURE__ */ e.jsx(
938
- or,
939
- {
940
- tokens: d,
941
- documents: i,
942
- atmosphereStyle: r == null ? void 0 : r.atmosphereStyle,
943
- reviewMode: t
944
- }
945
- ), H = /* @__PURE__ */ e.jsx(
946
- lr,
947
- {
948
- tokens: d,
949
- checkPoints: l,
950
- mustCheck: c,
951
- riskPoints: m,
952
- checkedItems: p,
953
- conclusion: u,
954
- exceptions: y,
955
- onToggleCheck: C,
956
- onConclusionChange: s,
957
- onExceptionsChange: S,
958
- onComplete: A,
959
- atmosphereStyle: r == null ? void 0 : r.atmosphereStyle,
960
- reviewMode: t
961
- }
962
- );
963
- return /* @__PURE__ */ e.jsx(
964
- er,
965
- {
966
- tokens: d,
967
- topAlert: M,
968
- leftPanel: q,
969
- rightPanel: H,
970
- reviewMode: t,
971
- atmosphereStyle: r == null ? void 0 : r.atmosphereStyle
972
- }
973
- );
974
- }, yr = (r) => /* @__PURE__ */ e.jsx(nr, { ...r });
975
- export {
976
- yr as default
977
- };