@yuku123/z-cognition-component 2.0.1 → 2.0.3

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 (244) hide show
  1. package/dist-lib/BaseInput-DHrGPDB9.js +1096 -0
  2. package/dist-lib/ClockCircleOutlined-DP6fSLgk.js +12 -0
  3. package/dist-lib/Collapse-B77SsmFh.js +523 -0
  4. package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
  5. package/dist-lib/DeleteOutlined-BAZSAooQ.js +12 -0
  6. package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
  7. package/dist-lib/EllipsisOutlined-Dr4orLLw.js +1109 -0
  8. package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
  9. package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CudyDdjH.js} +1 -1
  10. package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
  11. package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-CJasZIyX.js} +1 -1
  12. package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
  13. package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
  14. package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
  15. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
  16. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
  17. package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
  18. package/dist-lib/Pagination-BJ8wnqAa.js +1112 -0
  19. package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
  20. package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
  21. package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
  22. package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-DqyspFCO.js} +1 -1
  23. package/dist-lib/Skeleton-CxFsInYI.js +671 -0
  24. package/dist-lib/Table-Civ838nE.js +20514 -0
  25. package/dist-lib/{Table-CDagah-g.js → Table-J_7eBbi7.js} +414 -414
  26. package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
  27. package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
  28. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
  29. package/dist-lib/accessAk-CA30m5eX.js +64 -0
  30. package/dist-lib/{agents-mAJW3cEN.js → agents-eZDKzePP.js} +41 -41
  31. package/dist-lib/{ai-BcYmZiRo.js → ai-CNSn3-sd.js} +32 -32
  32. package/dist-lib/{ai-chat-share-DO7GXjG4.js → ai-chat-share-Yrqt_J6a.js} +13 -14
  33. package/dist-lib/ak-manage-DklVFT5I.js +805 -0
  34. package/dist-lib/{approval-RPDUKg9-.js → approval-B-bCSmfi.js} +25 -26
  35. package/dist-lib/{approvals-CNjxJUpR.js → approvals-B0ggYiyD.js} +42 -43
  36. package/dist-lib/{assistant-FIQQziCn.js → assistant-Of0mgMsM.js} +33 -34
  37. package/dist-lib/{assistant-history-DsEGBJnq.js → assistant-history-DcyDhUzJ.js} +5 -5
  38. package/dist-lib/{assistant-summary-B-f3k55y.js → assistant-summary-CjLaTyFz.js} +1 -1
  39. package/dist-lib/{audit-NwnH1hm5.js → audit-wDNCfmOy.js} +1 -1
  40. package/dist-lib/{bios-CRwKtcit.js → bios-CIwO1AUK.js} +128 -130
  41. package/dist-lib/callSuper-CpMOVGin.js +7 -0
  42. package/dist-lib/callSuper-CwIeyYoc.js +7 -0
  43. package/dist-lib/category-9gqNseEa.js +76 -0
  44. package/dist-lib/causal-CzAYukj9.js +789 -0
  45. package/dist-lib/{changelog-DlL5u9o4.js → changelog-CQfIMS51.js} +2 -2
  46. package/dist-lib/changelog-sKJMQrlV.js +103 -0
  47. package/dist-lib/chat-panel-BPbqKckR.js +1543 -0
  48. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
  49. package/dist-lib/code-space-D_ZE966E.js +1070 -0
  50. package/dist-lib/{colors-sdAcAcU3.js → colors-DpKdb8L-.js} +3 -3
  51. package/dist-lib/community-9_7ExHcm.js +70 -0
  52. package/dist-lib/community-CfWXxujB.js +217 -0
  53. package/dist-lib/community-material-page-Z_EZuBPl.js +747 -0
  54. package/dist-lib/connections-Bcqsp11M.js +1065 -0
  55. package/dist-lib/context-T27uno74.js +54 -0
  56. package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-CasBzL_Q.js} +1 -1
  57. package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
  58. package/dist-lib/detail-CV6xp_Jp.js +84 -0
  59. package/dist-lib/{detail-Cfb-zdr9.js → detail-DioaWKWj.js} +5847 -7224
  60. package/dist-lib/{detail-Dcfg3W8B.js → detail-EyLdjGpX.js} +71 -72
  61. package/dist-lib/development-CFcOIUKc.js +167 -0
  62. package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
  63. package/dist-lib/{downloads-MkyxiHxi.js → downloads-DtV5hOQv.js} +3 -4
  64. package/dist-lib/{edit-DLGAM-Vo.js → edit-NtXUNj5N.js} +262 -266
  65. package/dist-lib/{editor-BtiheUpe.js → editor-KZhj-rwT.js} +25 -26
  66. package/dist-lib/editor-page-BaxK_OYm.js +1169 -0
  67. package/dist-lib/embed-mf8t3QXh.js +51841 -0
  68. package/dist-lib/embed.css +2 -2
  69. package/dist-lib/{evaluation-Dz9bUuhS.js → evaluation-CZTpC9v3.js} +14 -15
  70. package/dist-lib/execution-B6HmOA2_.js +159 -0
  71. package/dist-lib/focus-set-lt52maBX.js +38 -0
  72. package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
  73. package/dist-lib/graph-BllA9bmL.js +44 -0
  74. package/dist-lib/graph-DHV-rdiK.js +640 -0
  75. package/dist-lib/{index-o65vKUwa.js → index--AI-htgA.js} +44 -45
  76. package/dist-lib/index-2SysmGHo.js +1166 -0
  77. package/dist-lib/{index-CJSTTgTM.js → index-3J47mTL1.js} +10 -10
  78. package/dist-lib/index-4tbtbcAt.js +550 -0
  79. package/dist-lib/index-B12ZggsE.js +77 -0
  80. package/dist-lib/{index-D3GHtSlM.js → index-B5Roo82U.js} +49 -50
  81. package/dist-lib/{index-nQSVLWfW.js → index-B7SfTpox.js} +79 -81
  82. package/dist-lib/index-BEO8itgt.js +566 -0
  83. package/dist-lib/index-BPbOPT2j.js +413 -0
  84. package/dist-lib/index-BVgdmf6r.js +2487 -0
  85. package/dist-lib/index-Bd7AGv4a.js +34 -0
  86. package/dist-lib/index-BkJjYgKD.js +5012 -0
  87. package/dist-lib/{index-DBlG9uXV.js → index-BkTegt8T.js} +513 -590
  88. package/dist-lib/{index-BGB6NawZ.js → index-Bln3mJfp.js} +2 -2
  89. package/dist-lib/index-BoCtPJD4.js +915 -0
  90. package/dist-lib/{index-DMTPsTna.js → index-BqTsLClH.js} +3 -4
  91. package/dist-lib/index-Bs4MevzC.js +16075 -0
  92. package/dist-lib/index-BsoHetYT.js +236 -0
  93. package/dist-lib/{index-9aQ4BzIK.js → index-BvJ35WL3.js} +13 -14
  94. package/dist-lib/{index-BEjXaDfk.js → index-Bw4M9KLv.js} +84 -85
  95. package/dist-lib/index-C2CV4bte.js +242 -0
  96. package/dist-lib/{index-D_Qey9G8.js → index-CF0ucN_K.js} +12 -12
  97. package/dist-lib/{index-B57Fj7Y0.js → index-CLhLA2ig.js} +92 -94
  98. package/dist-lib/{index-Vu6sPBci.js → index-CSJA8wvL.js} +301 -296
  99. package/dist-lib/index-CSnvcFg-.js +543 -0
  100. package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
  101. package/dist-lib/{index-ounfql2z.js → index-CdJ5ggvp.js} +26 -28
  102. package/dist-lib/index-CgwK2maq.js +1987 -0
  103. package/dist-lib/{index-Bc-Vin3j.js → index-CtqUgNxs.js} +53 -55
  104. package/dist-lib/index-CvxfA0ZK.js +215 -0
  105. package/dist-lib/{index-y7jVGGI0.js → index-CwyFMPcr.js} +16 -18
  106. package/dist-lib/index-D35Ry0PG.js +1162 -0
  107. package/dist-lib/{index-c2HokEFp.js → index-D6ns_Xmf.js} +10 -11
  108. package/dist-lib/{index-DsuUGhTA.js → index-DGbjbjBY.js} +46 -48
  109. package/dist-lib/index-DKAGVWMX.js +390 -0
  110. package/dist-lib/index-DQ16Zb7x.js +546 -0
  111. package/dist-lib/index-DRcTwC17.js +418 -0
  112. package/dist-lib/index-DU6bO95v.js +2075 -0
  113. package/dist-lib/index-DaMLYomP.js +853 -0
  114. package/dist-lib/index-Dd9pPAT3.js +2192 -0
  115. package/dist-lib/{index-DuI4K5e1.js → index-DgfIEgir.js} +29 -29
  116. package/dist-lib/{index-Cy9i4Kx7.js → index-DhSCFLtV.js} +113 -117
  117. package/dist-lib/index-DxzorPvG.js +13960 -0
  118. package/dist-lib/index-If4xc1-H.js +559 -0
  119. package/dist-lib/index-QZ9JPfVR.js +251 -0
  120. package/dist-lib/index-VeAMz0iC.js +1719 -0
  121. package/dist-lib/index-mUlorJxp.js +3279 -0
  122. package/dist-lib/{index-g16g7A4k.js → index-xQmDaKK3.js} +6 -6
  123. package/dist-lib/{index-BwVZgt5s.js → index-zXwXfn-X.js} +48 -50
  124. package/dist-lib/index.js +3 -4
  125. package/dist-lib/json-field-COcz5F2R.js +196 -0
  126. package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
  127. package/dist-lib/{kb-form-modal-BNoIhw6B.js → kb-form-modal-D9gnvXbE.js} +67 -67
  128. package/dist-lib/{kbTeam-EgcbWseM.js → kbTeam-CorrPJFr.js} +3 -3
  129. package/dist-lib/{knowledge-base-C023dnJ-.js → knowledge-base-DJkjMFHW.js} +103 -104
  130. package/dist-lib/{knowledge-hub-B4fGCn8m.js → knowledge-hub-DKiDlaZz.js} +54 -55
  131. package/dist-lib/login-56zv4aLO.js +36 -0
  132. package/dist-lib/{markdown-lite-EvJ9Fw7X.js → markdown-lite-p1tiuSZM.js} +198 -202
  133. package/dist-lib/material-DtPASeqq.js +204 -0
  134. package/dist-lib/material-draft-markdown-281d5_GN.js +443 -0
  135. package/dist-lib/material-original-preview-CPGjdmbe.js +214 -0
  136. package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
  137. package/dist-lib/{material-preview-pdf-CKAovvpc.js → material-preview-pdf-CTSo215V.js} +7 -7
  138. package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
  139. package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
  140. package/dist-lib/{member-BUg2QYlE.js → member-Cz-OIdj9.js} +1 -1
  141. package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
  142. package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
  143. package/dist-lib/{message-GF-w8HuR.js → message-C9gfvpGg.js} +1 -1
  144. package/dist-lib/{message-Cwj8dO78.js → message-D6FhzB7J.js} +24 -25
  145. package/dist-lib/{messages-JID13L8-.js → messages-cctmEVcG.js} +15 -16
  146. package/dist-lib/meta-DT_O4zM9.js +708 -0
  147. package/dist-lib/{metrics-CT4eLzrq.js → metrics-BNeVcI8-.js} +2 -2
  148. package/dist-lib/mobile-D8kZjfQU.js +2413 -0
  149. package/dist-lib/{monitor-Bs9BfJOj.js → monitor-DTUyqumg.js} +4 -4
  150. package/dist-lib/{monitor-CmS65YSu.js → monitor-DexMYjzF.js} +8 -8
  151. package/dist-lib/{my-access-1Yj7UloI.js → my-access-DWBV6ohp.js} +120 -132
  152. package/dist-lib/{my-permissions-yQDHPLYI.js → my-permissions-B-gJZQYM.js} +22 -23
  153. package/dist-lib/navigation-DVlyWnpD.js +102 -0
  154. package/dist-lib/{new-BgkoBnZV.js → new-JmARyD88.js} +14 -15
  155. package/dist-lib/{ontology-BPrbXPor.js → ontology-B4rkO33J.js} +50 -52
  156. package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
  157. package/dist-lib/{ontology-domains-Cbqnm-po.js → ontology-domains-zxFrjn0v.js} +89 -92
  158. package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
  159. package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
  160. package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
  161. package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
  162. package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
  163. package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
  164. package/dist-lib/{ontology-scenarios-D3xy6IZL.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
  165. package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
  166. package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
  167. package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
  168. package/dist-lib/ontology-terms-C-NhpcIZ.js +1195 -0
  169. package/dist-lib/pages-CticGC6S.js +512 -0
  170. package/dist-lib/pages.js +3 -3
  171. package/dist-lib/{permission-fTfxpEhV.js → permission-Dq1-AOQw.js} +41 -41
  172. package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
  173. package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
  174. package/dist-lib/preset-Bp_mvsJm.js +56827 -0
  175. package/dist-lib/{preset-gh5SGoYT.js → preset-DCNSE--Y.js} +8 -8
  176. package/dist-lib/progress-CZxOOnIs.js +778 -0
  177. package/dist-lib/{quota-BlHnhkAT.js → quota-oICQRHFU.js} +4 -4
  178. package/dist-lib/row-By17TCiW.js +154 -0
  179. package/dist-lib/runs-DQTDpPaN.js +565 -0
  180. package/dist-lib/{save-blob-B-pzX8eT.js → save-blob-CwCZE1Dn.js} +2 -2
  181. package/dist-lib/{scenario-mapping-preview-DByQXh0y.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
  182. package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
  183. package/dist-lib/{schedule-H4_9KnRj.js → schedule-CwkPPSuT.js} +8 -8
  184. package/dist-lib/script-gYJAFobb.js +2709 -0
  185. package/dist-lib/{settings-C3PI8KYa.js → settings-CJd5Jj4y.js} +133 -134
  186. package/dist-lib/{shared-DqeN-Wbb.js → shared-DG5-VCDM.js} +1 -1
  187. package/dist-lib/{shared-utils-DN3zT9P-.js → shared-utils-CFHws1DA.js} +2 -2
  188. package/dist-lib/{skills-eGlCExr0.js → skills-lxpJ5Lzx.js} +39 -40
  189. package/dist-lib/{source-selection-BCvClzc-.js → source-selection-DJnQQckl.js} +16 -16
  190. package/dist-lib/sources-C83LpCcV.js +279 -0
  191. package/dist-lib/style-B5THvtDY.js +191 -0
  192. package/dist-lib/{task-config-DEJVJ7zK.js → task-config-BNYoOb79.js} +4 -4
  193. package/dist-lib/{tech-C-4uM9bS.js → tech-LuZvKDo6.js} +3 -4
  194. package/dist-lib/templates-a-kbCamr.js +58 -0
  195. package/dist-lib/tenant-login-COB-5h_2.js +338 -0
  196. package/dist-lib/{tools-le6miafZ.js → tools-CrA6GrY6.js} +14 -14
  197. package/dist-lib/{use-domain-access-B3pDp3s5.js → use-domain-access-ehGJBGvU.js} +15 -15
  198. package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
  199. package/dist-lib/{use-graph-layers-Dmp7uMHO.js → use-graph-layers-CrhEeHfD.js} +48 -50
  200. package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
  201. package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
  202. package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
  203. package/dist-lib/{version-control-panel-WT1PobuV.js → version-control-panel-mWXkC-uB.js} +26 -27
  204. package/dist-lib/{version-management-DC0k1DRg.js → version-management-nPlG7wQO.js} +6 -7
  205. package/dist-lib/{welcome-VyWLrbth.js → welcome-Cqv1-rXT.js} +3 -4
  206. package/package.json +1 -1
  207. package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
  208. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
  209. package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
  210. package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
  211. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
  212. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
  213. package/dist-lib/Pagination-Dxslodkq.js +0 -1344
  214. package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
  215. package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
  216. package/dist-lib/Skeleton-DXcERb5r.js +0 -557
  217. package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
  218. package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
  219. package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
  220. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
  221. package/dist-lib/callSuper-DZEfdkXG.js +0 -7
  222. package/dist-lib/changelog-Dj_Pv2nc.js +0 -69
  223. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
  224. package/dist-lib/context-Buz0ggsK.js +0 -710
  225. package/dist-lib/context-DpmyNOn3.js +0 -21
  226. package/dist-lib/embed-DwLg9RDW.js +0 -31148
  227. package/dist-lib/focus-set-h0YtOUB2.js +0 -427
  228. package/dist-lib/index-CaXylbQR.js +0 -3419
  229. package/dist-lib/index-Cfu1W1H6.js +0 -535
  230. package/dist-lib/index-CrMcNEAZ.js +0 -9656
  231. package/dist-lib/index-CyKWCYMK.js +0 -218
  232. package/dist-lib/index-DBtGE89a.js +0 -168
  233. package/dist-lib/index-DjFPRXl5.js +0 -1484
  234. package/dist-lib/index-DvWHYX81.js +0 -450
  235. package/dist-lib/index-HieOUSwH.js +0 -340
  236. package/dist-lib/index-bOY1cBol.js +0 -4890
  237. package/dist-lib/meta-DPp5L3Uc.js +0 -540
  238. package/dist-lib/ontology-modeling-6k-m8fzr.js +0 -38946
  239. package/dist-lib/ontology-modeling-BT-EuDCs.js +0 -1039
  240. package/dist-lib/ontology-scenarios-DWYC2yxd.js +0 -660
  241. package/dist-lib/pages-CsexFuEz.js +0 -73
  242. package/dist-lib/row-B5MnGm9M.js +0 -156
  243. package/dist-lib/scenario-simple-form-Bw-6n9Kh.js +0 -2396
  244. package/dist-lib/useClosable-BY7FgWKy.js +0 -59
@@ -0,0 +1,565 @@
1
+ import { jsxs as i, jsx as e, Fragment as R } from "react/jsx-runtime";
2
+ import { useState as L, useEffect as D, useId as Y, useRef as P, useMemo as V, useLayoutEffect as X } from "react";
3
+ import { I as A, B as v, a as Z, S as ee, h as U, e as te } from "./embed-mf8t3QXh.js";
4
+ import { o as re, e as ae, a as Q, u as ie, E as q, q as ne, w as le, b as G, J as B, x as se, D as oe, y as de } from "./style-B5THvtDY.js";
5
+ import { a as O } from "./graph-BllA9bmL.js";
6
+ import { l as ce, P as ue, a as he } from "./pipeline-layout-CJlOMXJF.js";
7
+ import { T as S } from "./index-CtqUgNxs.js";
8
+ import { S as T } from "./index-QZ9JPfVR.js";
9
+ import { P as K } from "./index-CvxfA0ZK.js";
10
+ import { I as pe } from "./index-2SysmGHo.js";
11
+ const x = (t) => t.status === "QUEUED" || t.status === "RUNNING";
12
+ function me(t) {
13
+ const [d, m] = L(0), [o, C] = L();
14
+ return D(() => {
15
+ let r = !0, N;
16
+ const y = async () => {
17
+ try {
18
+ const l = await re(t);
19
+ if (!r) return;
20
+ C({ code: t, revision: d, run: l, error: "" }), x(l) && (N = setTimeout(() => void y(), 4e3));
21
+ } catch (l) {
22
+ r && C((f) => ({ code: t, revision: d, run: (f == null ? void 0 : f.code) === t ? f.run : void 0, error: ae(l) }));
23
+ }
24
+ };
25
+ return y(), () => {
26
+ r = !1, clearTimeout(N);
27
+ };
28
+ }, [t, d]), {
29
+ run: (o == null ? void 0 : o.code) === t ? o.run : void 0,
30
+ loading: (o == null ? void 0 : o.code) !== t || o.revision !== d,
31
+ error: (o == null ? void 0 : o.code) === t ? o.error : "",
32
+ refresh: () => m((r) => r + 1)
33
+ };
34
+ }
35
+ const $ = {
36
+ QUEUED: "排队中",
37
+ RUNNING: "运行中",
38
+ SUCCEEDED: "成功",
39
+ PARTIAL_SUCCESS: "部分成功",
40
+ FAILED: "失败",
41
+ CANCELED: "已取消"
42
+ }, M = { WRITTEN: "已写入", SKIPPED: "已跳过", FAILED: "失败" };
43
+ function ge({ definition: t, selectedId: d, onSelect: m, source: o, nodeMetrics: C, running: r = !1, toolbar: N }) {
44
+ const y = Y().replaceAll(":", ""), l = P(null), f = P(/* @__PURE__ */ new Map()), [g, a] = L(1), [s, n] = L({ width: 800, height: 400 }), u = V(() => {
45
+ try {
46
+ return { graph: ce(t), error: "" };
47
+ } catch (c) {
48
+ return { graph: void 0, error: c instanceof Error ? c.message : "无法显示拓扑" };
49
+ }
50
+ }, [t]), j = !!u.graph;
51
+ D(() => {
52
+ const c = l.current;
53
+ if (!c) return;
54
+ const h = () => n({ width: c.clientWidth, height: c.clientHeight });
55
+ if (h(), typeof ResizeObserver > "u") return;
56
+ const p = new ResizeObserver(h);
57
+ return p.observe(c), () => p.disconnect();
58
+ }, [j]);
59
+ const w = u.graph, E = g === "fit" && w ? Math.max(0.08, Math.min(1, (s.width - 24) / w.width, (s.height - 24) / w.height)) : g === "fit" ? 1 : g, H = (c) => {
60
+ if (c === "$source") {
61
+ const p = t.source.type === "PAYLOAD";
62
+ return {
63
+ role: "Source",
64
+ title: (o == null ? void 0 : o.name) || t.source.sourceCode || (p ? "载荷输入" : "选择数据接入"),
65
+ type: (o == null ? void 0 : o.type) ?? t.source.type ?? t.source.mode ?? "FULL",
66
+ detail: p ? "载荷输入 · 随运行冻结" : `${t.source.mode === "WATERMARK" ? "水位增量" : "全量读取"} · 批次 ${t.source.batchSize ?? "—"}`,
67
+ icon: p ? "layers" : "database",
68
+ kind: "source"
69
+ };
70
+ }
71
+ if (c === "$sink") {
72
+ const p = t.sink.type === "KB_DRAFT";
73
+ return {
74
+ role: "Sink",
75
+ title: t.sink.type === "KB" ? "写入知识库" : p ? "写回解析稿" : "输出结果集",
76
+ type: t.sink.type,
77
+ detail: t.sink.kbId || (p ? "写回当前版本解析稿" : "运行记录中查看"),
78
+ icon: "inbox",
79
+ kind: "sink"
80
+ };
81
+ }
82
+ const h = t.operators.find((p) => p.id === c);
83
+ return {
84
+ role: "Operator",
85
+ title: O[h.type] ?? h.type,
86
+ type: h.type,
87
+ detail: h.id,
88
+ icon: h.type === "FILTER" ? "filter" : h.type === "PAGE_OCR" ? "file-text" : "sliders",
89
+ kind: "operator"
90
+ };
91
+ }, W = (c, h) => {
92
+ var _;
93
+ if (!w) return;
94
+ const p = w.nodes.findIndex((J) => J.id === h), k = c.key === "ArrowRight" || c.key === "ArrowDown" ? 1 : c.key === "ArrowLeft" || c.key === "ArrowUp" ? -1 : 0, b = c.key === "Home" ? w.nodes[0] : c.key === "End" ? w.nodes.at(-1) : k ? w.nodes[p + k] : void 0;
95
+ b && (c.preventDefault(), (_ = f.current.get(b.id)) == null || _.focus());
96
+ }, F = (c) => {
97
+ const h = f.current.get(c), p = l.current;
98
+ if (!h || !p) return;
99
+ const k = h.getBoundingClientRect(), b = p.getBoundingClientRect();
100
+ (k.left < b.left || k.right > b.right) && (p.scrollLeft += k.left - b.left - (b.width - k.width) / 2), (k.top < b.top || k.bottom > b.bottom) && (p.scrollTop += k.top - b.top - (b.height - k.height) / 2);
101
+ };
102
+ return D(() => {
103
+ d && F(d);
104
+ }, [d]), /* @__PURE__ */ i("div", { className: `etl-dag${r ? " etl-dag--running" : ""}`, "aria-label": "数据流 DAG 预览", children: [
105
+ /* @__PURE__ */ i("div", { className: "etl-dag-toolbar", children: [
106
+ /* @__PURE__ */ i("span", { className: "etl-dag-caption", children: [
107
+ /* @__PURE__ */ e(A, { name: "workflow", size: 16 }),
108
+ " 数据流拓扑 ",
109
+ /* @__PURE__ */ i("span", { children: [
110
+ t.operators.length,
111
+ " 个算子"
112
+ ] })
113
+ ] }),
114
+ /* @__PURE__ */ i("div", { className: "etl-dag-tools", children: [
115
+ N,
116
+ /* @__PURE__ */ i("div", { className: "etl-dag-zoom", role: "group", "aria-label": "拓扑视图缩放", children: [
117
+ /* @__PURE__ */ e(v, { size: "small", type: "text", "aria-label": "缩小拓扑", disabled: E <= 0.08, icon: /* @__PURE__ */ e(A, { name: "minus", size: 14 }), onClick: () => a(Math.max(0.08, E - 0.15)) }),
118
+ /* @__PURE__ */ i(v, { size: "small", type: "text", "aria-label": "重置拓扑缩放为 100%", disabled: !1, onClick: () => a(1), children: [
119
+ Math.round(E * 100),
120
+ "%"
121
+ ] }),
122
+ /* @__PURE__ */ e(v, { size: "small", type: "text", "aria-label": "放大拓扑", disabled: E >= 1.5, icon: /* @__PURE__ */ e(A, { name: "plus", size: 14 }), onClick: () => a(Math.min(1.5, E + 0.15)) }),
123
+ /* @__PURE__ */ e(v, { size: "small", type: "text", disabled: !1, icon: /* @__PURE__ */ e(A, { name: "maximize", size: 14 }), onClick: () => {
124
+ a("fit"), l.current && (l.current.scrollLeft = 0, l.current.scrollTop = 0);
125
+ }, children: "适应画布" })
126
+ ] })
127
+ ] })
128
+ ] }),
129
+ w ? /* @__PURE__ */ e("div", { ref: l, className: "etl-dag-viewport", tabIndex: 0, role: "region", "aria-label": "可滚动数据流拓扑", "aria-describedby": `${y}-hint`, children: /* @__PURE__ */ e("div", { className: "etl-dag-scroll-area", style: { width: w.width * E, height: w.height * E }, children: /* @__PURE__ */ i("div", { className: "etl-dag-canvas", style: { width: w.width, height: w.height, transform: `scale(${E})` }, children: [
130
+ /* @__PURE__ */ i("svg", { className: "etl-dag-edges", width: w.width, height: w.height, "aria-hidden": "true", children: [
131
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("marker", { id: y, viewBox: "0 0 10 10", refX: "9", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto", children: /* @__PURE__ */ e("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "etl-dag-arrow" }) }) }),
132
+ w.edges.map(({ from: c, to: h, path: p }) => /* @__PURE__ */ i("g", { "data-from": c, "data-to": h, children: [
133
+ /* @__PURE__ */ e("path", { className: `etl-dag-line${d === c || d === h ? " etl-dag-line--selected" : ""}`, markerEnd: `url(#${y})`, d: p }),
134
+ r && /* @__PURE__ */ e("path", { className: "etl-dag-flow", d: p })
135
+ ] }, JSON.stringify([c, h])))
136
+ ] }),
137
+ w.nodes.map((c) => {
138
+ const h = H(c.id);
139
+ return /* @__PURE__ */ i(
140
+ "button",
141
+ {
142
+ type: "button",
143
+ ref: (p) => {
144
+ p ? f.current.set(c.id, p) : f.current.delete(c.id);
145
+ },
146
+ className: `etl-dag-node etl-dag-node--${h.kind}${d === c.id ? " is-selected" : ""}`,
147
+ style: { left: c.x, top: c.y, width: he, height: ue },
148
+ "aria-label": `${h.role} · ${h.title}${h.role === "Operator" ? ` · ${c.id}` : ""}`,
149
+ "aria-pressed": m ? d === c.id : void 0,
150
+ onFocus: () => F(c.id),
151
+ onClick: () => m == null ? void 0 : m(c.id),
152
+ onKeyDown: (p) => W(p, c.id),
153
+ children: [
154
+ /* @__PURE__ */ i("span", { className: "etl-dag-node-kind", children: [
155
+ /* @__PURE__ */ i("span", { children: [
156
+ /* @__PURE__ */ e(A, { name: h.icon, size: 14 }),
157
+ h.role
158
+ ] }),
159
+ /* @__PURE__ */ e("code", { children: h.type })
160
+ ] }),
161
+ /* @__PURE__ */ e("strong", { title: h.title, children: h.title }),
162
+ /* @__PURE__ */ e("span", { className: "etl-dag-node-detail", title: h.detail, children: h.detail }),
163
+ /* @__PURE__ */ e("span", { className: "etl-dag-node-footer", children: C ? C[c.id] ?? "暂无累计指标" : m ? d === c.id ? "正在配置" : "点击配置" : "拓扑节点" })
164
+ ]
165
+ },
166
+ c.id
167
+ );
168
+ })
169
+ ] }) }) }) : /* @__PURE__ */ i("p", { className: "etl-dag-error", role: "alert", children: [
170
+ "拓扑无法显示:",
171
+ u.error
172
+ ] }),
173
+ /* @__PURE__ */ i("div", { className: "etl-dag-hint", id: `${y}-hint`, children: [
174
+ /* @__PURE__ */ e("span", { children: "Source → Operator → Sink" }),
175
+ /* @__PURE__ */ e("span", { children: "横向滚动浏览 · 方向键切换焦点 · Enter 选择节点" })
176
+ ] })
177
+ ] });
178
+ }
179
+ function z(t) {
180
+ return typeof t == "number" && Number.isFinite(t) && t >= 0;
181
+ }
182
+ function ye(t) {
183
+ return Array.isArray(t) && t.length === 2 && z(t[0]) && z(t[1]) ? [t[0], t[1]] : void 0;
184
+ }
185
+ function I(t) {
186
+ return z(t) ? t.toLocaleString("zh-CN") : "—";
187
+ }
188
+ function fe(t) {
189
+ if (!t.startedAt || t.status === "QUEUED") return;
190
+ const d = Date.parse(t.startedAt.replace(" ", "T")), o = ((t.finishedAt ? Date.parse(t.finishedAt.replace(" ", "T")) : t.status === "RUNNING" ? Date.now() : NaN) - d) / 1e3;
191
+ return Number.isFinite(o) && o > 0 ? o : void 0;
192
+ }
193
+ function Ce({ definition: t, run: d, onDrillFailure: m }) {
194
+ const [o, C] = L({ runCode: d.code, id: "$source" }), r = o.runCode === d.code && (o.id === "$source" || o.id === "$sink" || t.operators.some((n) => n.id === o.id)) ? o.id : "$source", N = fe(d), y = N !== void 0 && z(d.readCount) ? d.readCount / N : void 0, l = (n) => {
195
+ var u;
196
+ return ye((u = d.nodeMetrics) == null ? void 0 : u[n]);
197
+ }, f = {
198
+ $source: /* @__PURE__ */ i(R, { children: [
199
+ "累计读取 ",
200
+ /* @__PURE__ */ e("b", { children: I(d.readCount) })
201
+ ] }),
202
+ $sink: /* @__PURE__ */ i(R, { children: [
203
+ "累计输出 ",
204
+ /* @__PURE__ */ e("b", { children: I(d.outputCount) })
205
+ ] })
206
+ };
207
+ t.operators.forEach((n) => {
208
+ const u = l(n.id);
209
+ f[n.id] = u ? /* @__PURE__ */ i(R, { children: [
210
+ "累计 输入 ",
211
+ /* @__PURE__ */ e("b", { children: I(u[0]) }),
212
+ " → 输出 ",
213
+ /* @__PURE__ */ e("b", { children: I(u[1]) })
214
+ ] }) : "暂无累计指标";
215
+ });
216
+ const g = t.operators.find((n) => n.id === r), a = g ? l(g.id) : void 0, s = g && ["FILTER", "DEDUP"].includes(g.type) && a && a[0] > 0 && a[1] <= a[0] ? (a[0] - a[1]) / a[0] * 100 : void 0;
217
+ return /* @__PURE__ */ i("section", { className: "etl-run-pipeline", "aria-label": "冻结运行拓扑", children: [
218
+ /* @__PURE__ */ i("div", { className: "etl-run-pipeline-heading", children: [
219
+ /* @__PURE__ */ i("div", { children: [
220
+ /* @__PURE__ */ e("strong", { children: "运行拓扑" }),
221
+ /* @__PURE__ */ i(S, { children: [
222
+ "冻结版本 v",
223
+ d.version
224
+ ] }),
225
+ /* @__PURE__ */ i("span", { className: "etl-run-pipeline-status", "data-status": d.status, children: [
226
+ "全局状态 · ",
227
+ $[d.status]
228
+ ] })
229
+ ] }),
230
+ /* @__PURE__ */ i("dl", { className: "etl-run-pipeline-rate", children: [
231
+ /* @__PURE__ */ i("div", { children: [
232
+ /* @__PURE__ */ e("dt", { children: "平均读取吞吐(非瞬时)" }),
233
+ /* @__PURE__ */ e("dd", { children: y === void 0 ? "—" : `${y.toLocaleString("zh-CN", { maximumFractionDigits: 2 })} 行/秒` })
234
+ ] }),
235
+ /* @__PURE__ */ i("div", { children: [
236
+ /* @__PURE__ */ e("dt", { children: d.status === "RUNNING" ? "截至本次快照的耗时" : "运行耗时" }),
237
+ /* @__PURE__ */ e("dd", { children: N === void 0 ? "—" : `${N.toLocaleString("zh-CN", { maximumFractionDigits: 1 })} 秒` })
238
+ ] })
239
+ ] })
240
+ ] }),
241
+ /* @__PURE__ */ e(
242
+ ge,
243
+ {
244
+ definition: t,
245
+ running: d.status === "RUNNING",
246
+ selectedId: r,
247
+ onSelect: (n) => C({ runCode: d.code, id: n }),
248
+ nodeMetrics: f
249
+ }
250
+ ),
251
+ /* @__PURE__ */ i("div", { className: "etl-run-node-summary", role: "region", "aria-label": "选中节点累计指标", children: [
252
+ /* @__PURE__ */ e("strong", { children: r === "$source" ? "Source · 读取来源" : r === "$sink" ? "Sink · 输出目标" : `Operator · ${g ? O[g.type] ?? g.type : ""}` }),
253
+ /* @__PURE__ */ e("dl", { children: r === "$source" ? /* @__PURE__ */ i(R, { children: [
254
+ /* @__PURE__ */ i("div", { children: [
255
+ /* @__PURE__ */ e("dt", { children: "来源编码" }),
256
+ /* @__PURE__ */ e("dd", { children: t.source.sourceCode || t.source.type || "—" })
257
+ ] }),
258
+ /* @__PURE__ */ i("div", { children: [
259
+ /* @__PURE__ */ e("dt", { children: "读取模式" }),
260
+ /* @__PURE__ */ e("dd", { children: t.source.type === "PAYLOAD" ? "载荷输入 · 随运行冻结" : `${t.source.mode ?? "—"} · 每批 ${t.source.batchSize ?? "—"} 行` })
261
+ ] }),
262
+ /* @__PURE__ */ i("div", { children: [
263
+ /* @__PURE__ */ e("dt", { children: "累计读取" }),
264
+ /* @__PURE__ */ e("dd", { children: I(d.readCount) })
265
+ ] })
266
+ ] }) : r === "$sink" ? /* @__PURE__ */ i(R, { children: [
267
+ /* @__PURE__ */ i("div", { children: [
268
+ /* @__PURE__ */ e("dt", { children: "输出类型" }),
269
+ /* @__PURE__ */ e("dd", { children: t.sink.type === "KB_DRAFT" ? "写回解析稿" : t.sink.type })
270
+ ] }),
271
+ t.sink.kbId && /* @__PURE__ */ i("div", { children: [
272
+ /* @__PURE__ */ e("dt", { children: "目标知识库" }),
273
+ /* @__PURE__ */ e("dd", { children: t.sink.kbId })
274
+ ] }),
275
+ /* @__PURE__ */ i("div", { children: [
276
+ /* @__PURE__ */ e("dt", { children: "累计输出" }),
277
+ /* @__PURE__ */ e("dd", { children: I(d.outputCount) })
278
+ ] })
279
+ ] }) : /* @__PURE__ */ i(R, { children: [
280
+ /* @__PURE__ */ i("div", { children: [
281
+ /* @__PURE__ */ e("dt", { children: "节点 ID" }),
282
+ /* @__PURE__ */ e("dd", { children: r })
283
+ ] }),
284
+ /* @__PURE__ */ i("div", { children: [
285
+ /* @__PURE__ */ e("dt", { children: "累计输入" }),
286
+ /* @__PURE__ */ e("dd", { children: I(a == null ? void 0 : a[0]) })
287
+ ] }),
288
+ /* @__PURE__ */ i("div", { children: [
289
+ /* @__PURE__ */ e("dt", { children: "累计输出" }),
290
+ /* @__PURE__ */ e("dd", { children: I(a == null ? void 0 : a[1]) })
291
+ ] }),
292
+ s !== void 0 && /* @__PURE__ */ i("div", { children: [
293
+ /* @__PURE__ */ e("dt", { children: (g == null ? void 0 : g.type) === "DEDUP" ? "累计去重比例" : "累计过滤比例" }),
294
+ /* @__PURE__ */ i("dd", { children: [
295
+ s.toFixed(1),
296
+ "%"
297
+ ] })
298
+ ] })
299
+ ] }) }),
300
+ g && !a && /* @__PURE__ */ e("p", { children: "此节点暂无累计指标;不代表未执行或正在执行。" }),
301
+ g && m && /* @__PURE__ */ e(
302
+ v,
303
+ {
304
+ type: "link",
305
+ size: "small",
306
+ className: "etl-run-drill-failure",
307
+ onClick: () => m(r),
308
+ children: "查看该节点的失败行"
309
+ }
310
+ )
311
+ ] }),
312
+ /* @__PURE__ */ e("p", { className: "etl-run-pipeline-note", children: "累计已处理数据,按输入处理后更新;不提供当前执行节点或完成百分比。连线动效仅表示全局运行中。平均读取吞吐 = 累计读取 / 运行耗时。" }),
313
+ /* @__PURE__ */ e("p", { className: "etl-run-pipeline-note", children: "仅展示本次运行的冻结定义,不随当前草稿变化。单机按批拉取、逐条处理,非永久订阅流。" })
314
+ ] });
315
+ }
316
+ function we(t, d) {
317
+ const m = URL.createObjectURL(new Blob([JSON.stringify(t, null, 2)], { type: "application/json;charset=utf-8" })), o = document.createElement("a");
318
+ o.href = m, o.download = d, o.click(), URL.revokeObjectURL(m);
319
+ }
320
+ function Ne({ code: t, onBack: d, onResume: m, onChanged: o }) {
321
+ var s;
322
+ const C = me(t), r = Q(se, { code: t, current: 1, size: 20 }), { can: N } = Z(), y = ie(), l = C.run, { refresh: f } = r;
323
+ D(() => {
324
+ f();
325
+ }, [l == null ? void 0 : l.status, l == null ? void 0 : l.writtenCount, l == null ? void 0 : l.failedCount, l == null ? void 0 : l.skippedCount, f]);
326
+ const g = [
327
+ { title: "行标识", dataIndex: "rowKey", width: 180, sorter: (n, u) => n.rowKey.localeCompare(u.rowKey), ellipsis: !0 },
328
+ { title: "状态", key: "status", width: 110, sorter: (n, u) => n.status.localeCompare(u.status), render: (n, u) => /* @__PURE__ */ e(S, { color: u.status === "FAILED" ? "error" : void 0, children: M[u.status] }) },
329
+ { title: "节点", dataIndex: "stage", width: 140, sorter: (n, u) => (n.stage ?? "").localeCompare(u.stage ?? "") },
330
+ { title: "消息", dataIndex: "message", width: 260, sorter: (n, u) => (n.message ?? "").localeCompare(u.message ?? ""), ellipsis: !0 },
331
+ { title: "输出 ID", dataIndex: "outputId", width: 190, sorter: (n, u) => (n.outputId ?? "").localeCompare(u.outputId ?? ""), ellipsis: !0 }
332
+ ], a = r.page.records.filter((n) => n.output !== void 0).map((n) => ({ rowKey: n.rowKey, output: n.output }));
333
+ return /* @__PURE__ */ i("section", { className: "panel etl-run-detail", "aria-label": "运行详情", children: [
334
+ /* @__PURE__ */ i("header", { className: "etl-run-detail-header", children: [
335
+ /* @__PURE__ */ e(v, { icon: /* @__PURE__ */ e(A, { name: "arrow-left", size: 14 }), onClick: d, children: "返回运行记录" }),
336
+ /* @__PURE__ */ i("h2", { children: [
337
+ "运行详情 ",
338
+ /* @__PURE__ */ e("span", { children: t })
339
+ ] }),
340
+ /* @__PURE__ */ e(v, { loading: C.loading, onClick: () => {
341
+ C.refresh(), r.refresh();
342
+ }, children: "刷新" })
343
+ ] }),
344
+ /* @__PURE__ */ i("div", { className: "etl-run-detail-body", children: [
345
+ /* @__PURE__ */ e(q, { error: C.error || y.error, retry: C.refresh }),
346
+ C.loading && !l ? /* @__PURE__ */ e(ee, {}) : l && /* @__PURE__ */ i(R, { children: [
347
+ /* @__PURE__ */ i("div", { className: "etl-section-heading", children: [
348
+ /* @__PURE__ */ i(T, { wrap: !0, children: [
349
+ /* @__PURE__ */ e("strong", { children: l.templateName }),
350
+ /* @__PURE__ */ e(S, { children: $[l.status] }),
351
+ /* @__PURE__ */ i("span", { children: [
352
+ "冻结版本 v",
353
+ l.version
354
+ ] })
355
+ ] }),
356
+ N("etl.run.execute") && /* @__PURE__ */ i(T, { children: [
357
+ x(l) && /* @__PURE__ */ e(K, { title: "取消此运行?", description: "已完成的目标写入不会回滚。", onConfirm: async () => {
358
+ await y.perform(() => ne(t), "取消请求已提交") && (C.refresh(), o());
359
+ }, children: /* @__PURE__ */ e(v, { danger: !0, loading: y.busy, children: "取消运行" }) }),
360
+ ["FAILED", "PARTIAL_SUCCESS", "CANCELED"].includes(l.status) && /* @__PURE__ */ e(K, { title: "重试 / 续跑此运行?", description: "将创建关联父运行的新运行,原记录保留;续跑与幂等范围由后端决定。", onConfirm: async () => {
361
+ const n = await y.perform(() => le(t), "已创建续跑记录");
362
+ n && (o(), m(n.code));
363
+ }, children: /* @__PURE__ */ e(v, { loading: y.busy, children: "重试 / 续跑" }) })
364
+ ] })
365
+ ] }),
366
+ /* @__PURE__ */ i("p", { className: "etl-note", children: [
367
+ x(l) ? "运行中,每 4 秒自动刷新" : "运行已结束,自动刷新已停止",
368
+ " · 开始 ",
369
+ l.startedAt ?? "—",
370
+ " · 结束 ",
371
+ l.finishedAt ?? "—"
372
+ ] }),
373
+ l.parentRunCode && /* @__PURE__ */ i("p", { children: [
374
+ "父运行:",
375
+ /* @__PURE__ */ e(v, { type: "link", onClick: () => {
376
+ l.parentRunCode && m(l.parentRunCode);
377
+ }, children: l.parentRunCode })
378
+ ] }),
379
+ /* @__PURE__ */ e("dl", { className: "etl-metrics", children: [["读取", l.readCount], ["写入", l.writtenCount], ["跳过", l.skippedCount], ["失败", l.failedCount], ["输出", l.outputCount]].map(([n, u]) => /* @__PURE__ */ i("div", { children: [
380
+ /* @__PURE__ */ e("dt", { children: n }),
381
+ /* @__PURE__ */ e("dd", { children: u })
382
+ ] }, n)) }),
383
+ l.errorMessage && /* @__PURE__ */ e("p", { role: "alert", className: "etl-field-error", children: l.errorMessage }),
384
+ l.definition ? /* @__PURE__ */ e(
385
+ Ce,
386
+ {
387
+ definition: l.definition,
388
+ run: l,
389
+ onDrillFailure: (n) => r.setQuery({ ...r.query, current: 1, status: "FAILED", stage: n })
390
+ }
391
+ ) : /* @__PURE__ */ e("p", { role: "status", className: "etl-note", children: "该运行未返回冻结编排,无法展示执行图;不会使用当前草稿替代。" }),
392
+ /* @__PURE__ */ i("div", { className: "etl-section-heading", children: [
393
+ /* @__PURE__ */ e("h3", { children: "行明细 / Dead letter" }),
394
+ /* @__PURE__ */ i(T, { wrap: !0, children: [
395
+ /* @__PURE__ */ e(
396
+ U,
397
+ {
398
+ "aria-label": "行状态筛选",
399
+ allowClear: !0,
400
+ placeholder: "所有行",
401
+ value: r.query.status,
402
+ options: Object.entries(M).map(([n, u]) => ({ value: n, label: n === "FAILED" ? `${u}(Dead letter)` : u })),
403
+ onChange: (n) => r.setQuery({ ...r.query, current: 1, status: n })
404
+ }
405
+ ),
406
+ /* @__PURE__ */ e(
407
+ U,
408
+ {
409
+ "aria-label": "节点筛选",
410
+ allowClear: !0,
411
+ placeholder: "所有节点",
412
+ style: { minWidth: 180 },
413
+ value: r.query.stage,
414
+ options: (((s = l.definition) == null ? void 0 : s.operators) ?? []).map((n) => ({ value: n.id, label: `${O[n.type] ?? n.type} · ${n.id}` })),
415
+ onChange: (n) => r.setQuery({ ...r.query, current: 1, stage: n })
416
+ }
417
+ ),
418
+ /* @__PURE__ */ i(v, { disabled: !a.length || r.loading, onClick: () => we({
419
+ runCode: t,
420
+ scope: "CURRENT_LOADED_PAGE_ONLY",
421
+ current: r.query.current,
422
+ size: r.query.size,
423
+ status: r.query.status,
424
+ loadedItems: r.page.records.length,
425
+ outputs: a
426
+ }, `${t}-page-${r.query.current}-outputs.json`), children: [
427
+ "下载本页已加载输出(",
428
+ a.length,
429
+ " 条)"
430
+ ] })
431
+ ] })
432
+ ] }),
433
+ /* @__PURE__ */ i("p", { className: "etl-note", children: [
434
+ "下载范围仅当前筛选的第 ",
435
+ r.query.current,
436
+ " 页已加载输出,不是全量导出。展开行可查看输入、输出及完整错误;排序仅作用于当前页。"
437
+ ] }),
438
+ /* @__PURE__ */ e(q, { error: r.error, retry: r.refresh }),
439
+ /* @__PURE__ */ e(
440
+ G,
441
+ {
442
+ rowKey: "code",
443
+ columns: g,
444
+ loading: r.loading,
445
+ dataSource: r.page.records,
446
+ expandable: { expandedRowRender: (n) => /* @__PURE__ */ i("div", { className: "etl-row-detail", children: [
447
+ /* @__PURE__ */ i("p", { children: [
448
+ n.stage,
449
+ " · ",
450
+ n.message || "无错误消息"
451
+ ] }),
452
+ /* @__PURE__ */ i("div", { className: "etl-form-grid", children: [
453
+ /* @__PURE__ */ i("div", { children: [
454
+ /* @__PURE__ */ e("h4", { children: "输入" }),
455
+ /* @__PURE__ */ e(B, { value: n.input })
456
+ ] }),
457
+ /* @__PURE__ */ i("div", { children: [
458
+ /* @__PURE__ */ e("h4", { children: "输出" }),
459
+ /* @__PURE__ */ e(B, { value: n.output })
460
+ ] })
461
+ ] })
462
+ ] }) },
463
+ pagination: {
464
+ current: r.query.current,
465
+ pageSize: r.query.size,
466
+ total: r.page.total,
467
+ showSizeChanger: !0,
468
+ showTotal: (n) => `共 ${n} 行`,
469
+ onChange: (n, u) => r.setQuery({ ...r.query, current: n, size: u })
470
+ }
471
+ }
472
+ )
473
+ ] })
474
+ ] })
475
+ ] });
476
+ }
477
+ function xe() {
478
+ const [t, d] = te(), m = t.get("templateCode") ?? void 0, o = t.get("run") ?? void 0, C = P(0);
479
+ X(() => (window.scrollTo({ top: o ? 0 : C.current, behavior: "instant" }), () => {
480
+ o || (C.current = window.scrollY);
481
+ }), [o]);
482
+ const r = Q(de, { current: 1, size: 20, templateCode: m }), { setQuery: N, refresh: y } = r;
483
+ D(() => {
484
+ N((a) => ({ ...a, current: 1, templateCode: m }));
485
+ }, [m, N]);
486
+ const l = r.page.records.some(x);
487
+ D(() => {
488
+ if (o || !l || r.loading || r.error) return;
489
+ const a = setTimeout(y, 4e3);
490
+ return () => clearTimeout(a);
491
+ }, [o, l, r.loading, r.error, y]);
492
+ const f = (a) => d((s) => {
493
+ const n = new URLSearchParams(s);
494
+ return n.set("run", a), n;
495
+ }), g = [
496
+ { title: "运行编码", dataIndex: "code", width: 220, sorter: (a, s) => a.code.localeCompare(s.code), ellipsis: !0, render: (a, s) => /* @__PURE__ */ e(v, { className: "etl-cell-link", title: s.code, type: "link", onClick: () => f(s.code), children: s.code }) },
497
+ { title: "编排模板", dataIndex: "templateName", width: 190, sorter: (a, s) => a.templateName.localeCompare(s.templateName), ellipsis: !0 },
498
+ { title: "版本", dataIndex: "version", width: 90, sorter: (a, s) => a.version - s.version, render: (a) => `v${a}` },
499
+ { title: "状态", key: "status", width: 130, sorter: (a, s) => a.status.localeCompare(s.status), render: (a, s) => /* @__PURE__ */ e(S, { color: s.status === "FAILED" ? "error" : x(s) ? "processing" : void 0, children: $[s.status] }) },
500
+ { title: "读取", dataIndex: "readCount", width: 100, align: "right", sorter: (a, s) => a.readCount - s.readCount },
501
+ { title: "写入", dataIndex: "writtenCount", width: 100, align: "right", sorter: (a, s) => a.writtenCount - s.writtenCount },
502
+ { title: "跳过", dataIndex: "skippedCount", width: 100, align: "right", sorter: (a, s) => a.skippedCount - s.skippedCount },
503
+ { title: "失败", dataIndex: "failedCount", width: 100, align: "right", sorter: (a, s) => a.failedCount - s.failedCount },
504
+ { title: "输出", dataIndex: "outputCount", width: 100, align: "right", sorter: (a, s) => a.outputCount - s.outputCount },
505
+ { title: "开始时间", dataIndex: "startedAt", width: 180, sorter: (a, s) => (a.startedAt ?? "").localeCompare(s.startedAt ?? "") },
506
+ { title: "操作", key: "action", width: 150, render: (a, s) => /* @__PURE__ */ e(v, { type: "link", size: "small", onClick: () => f(s.code), children: "详情 / 行明细" }) }
507
+ ];
508
+ return /* @__PURE__ */ i("div", { className: "view etl-page", children: [
509
+ /* @__PURE__ */ e(oe, { active: "runs" }),
510
+ o ? /* @__PURE__ */ e(Ne, { code: o, onBack: () => d((a) => {
511
+ const s = new URLSearchParams(a);
512
+ return s.delete("run"), s;
513
+ }), onChanged: r.refresh, onResume: f }, o) : /* @__PURE__ */ i(R, { children: [
514
+ /* @__PURE__ */ i("div", { className: "view-bar etl-toolbar", children: [
515
+ /* @__PURE__ */ e(pe.Search, { placeholder: "搜索运行 / 模板", allowClear: !0, defaultValue: r.query.keyword, onSearch: (a) => r.setQuery({ ...r.query, keyword: a, current: 1 }) }),
516
+ /* @__PURE__ */ e(
517
+ U,
518
+ {
519
+ "aria-label": "运行状态",
520
+ allowClear: !0,
521
+ placeholder: "所有状态",
522
+ value: r.query.status,
523
+ options: Object.entries($).map(([a, s]) => ({ value: a, label: s })),
524
+ onChange: (a) => r.setQuery({ ...r.query, status: a, current: 1 })
525
+ }
526
+ ),
527
+ m && /* @__PURE__ */ i(S, { closable: !0, onClose: () => d((a) => {
528
+ const s = new URLSearchParams(a);
529
+ return s.delete("templateCode"), s;
530
+ }), children: [
531
+ "模板:",
532
+ m
533
+ ] }),
534
+ /* @__PURE__ */ e(v, { icon: /* @__PURE__ */ e(A, { name: "refresh", size: 14 }), loading: r.loading, onClick: r.refresh, children: "刷新" })
535
+ ] }),
536
+ /* @__PURE__ */ i("section", { className: "panel", children: [
537
+ /* @__PURE__ */ i("p", { className: "etl-note", children: [
538
+ l ? "当前页存在活动运行,每 4 秒自动刷新。" : "当前页没有活动运行,自动刷新已暂停。",
539
+ "详情支持取消、续跑和失败行追踪。排序仅作用于当前页。"
540
+ ] }),
541
+ /* @__PURE__ */ e(q, { error: r.error, retry: r.refresh }),
542
+ /* @__PURE__ */ e(
543
+ G,
544
+ {
545
+ rowKey: "code",
546
+ columns: g,
547
+ dataSource: r.page.records,
548
+ loading: r.loading,
549
+ pagination: {
550
+ current: r.query.current,
551
+ pageSize: r.query.size,
552
+ total: r.page.total,
553
+ showSizeChanger: !0,
554
+ showTotal: (a) => `共 ${a} 次运行`,
555
+ onChange: (a, s) => r.setQuery({ ...r.query, current: a, size: s })
556
+ }
557
+ }
558
+ )
559
+ ] })
560
+ ] })
561
+ ] });
562
+ }
563
+ export {
564
+ xe as default
565
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
2
  import { useState as k, useCallback as v, useEffect as x, useRef as j } from "react";
3
- import { t as E, e as L, I as $ } from "./embed-DwLg9RDW.js";
4
- import { w as M, k as S, x as D } from "./ai-BcYmZiRo.js";
3
+ import { t as E, j as L, I as $ } from "./embed-mf8t3QXh.js";
4
+ import { w as M, k as S, x as D } from "./ai-CNSn3-sd.js";
5
5
  function F({
6
6
  check: l,
7
7
  packageLabel: t,