@yuku123/z-cognition-component 2.0.2 → 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 (243) 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-CvgRLQw2.js → agents-eZDKzePP.js} +41 -41
  31. package/dist-lib/{ai-DYDhijtn.js → ai-CNSn3-sd.js} +32 -32
  32. package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-Yrqt_J6a.js} +13 -14
  33. package/dist-lib/ak-manage-DklVFT5I.js +805 -0
  34. package/dist-lib/{approval-3IbhY8Lp.js → approval-B-bCSmfi.js} +25 -26
  35. package/dist-lib/{approvals-Cd6CVzz4.js → approvals-B0ggYiyD.js} +42 -43
  36. package/dist-lib/{assistant-cIXgilaE.js → assistant-Of0mgMsM.js} +33 -34
  37. package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-DcyDhUzJ.js} +5 -5
  38. package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-CjLaTyFz.js} +1 -1
  39. package/dist-lib/{audit-CxuJ5unU.js → audit-wDNCfmOy.js} +1 -1
  40. package/dist-lib/{bios-BplnCOF4.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-BoGqt_81.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-BaX7WiWV.js → detail-DioaWKWj.js} +5847 -7224
  60. package/dist-lib/{detail-Cx5c4KJH.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-C3Oz04OW.js → downloads-DtV5hOQv.js} +3 -4
  64. package/dist-lib/{edit-Cbn2eJaJ.js → edit-NtXUNj5N.js} +262 -266
  65. package/dist-lib/{editor-mtaJBQXz.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-BoHiY8yT.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-Bm1sK-VN.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-B22_2Dzh.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-BSlCGnzo.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-Cj4DDWyj.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-CHBNrCMy.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-CLTfICbf.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-B0rM1ZvV.js → kb-form-modal-D9gnvXbE.js} +67 -67
  128. package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-CorrPJFr.js} +3 -3
  129. package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-DJkjMFHW.js} +103 -104
  130. package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-DKiDlaZz.js} +54 -55
  131. package/dist-lib/login-56zv4aLO.js +36 -0
  132. package/dist-lib/{markdown-lite-Cu62Fl7J.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-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
  138. package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
  139. package/dist-lib/{member-DKDx77PD.js → member-Cz-OIdj9.js} +1 -1
  140. package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
  141. package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
  142. package/dist-lib/{message-Dievi8Jw.js → message-C9gfvpGg.js} +1 -1
  143. package/dist-lib/{message-BrooQ3Q7.js → message-D6FhzB7J.js} +24 -25
  144. package/dist-lib/{messages-xTNmTS9g.js → messages-cctmEVcG.js} +15 -16
  145. package/dist-lib/meta-DT_O4zM9.js +708 -0
  146. package/dist-lib/{metrics-DiHYqBKB.js → metrics-BNeVcI8-.js} +2 -2
  147. package/dist-lib/mobile-D8kZjfQU.js +2413 -0
  148. package/dist-lib/{monitor-BXsdMJSV.js → monitor-DTUyqumg.js} +4 -4
  149. package/dist-lib/{monitor-BBCu3zRe.js → monitor-DexMYjzF.js} +8 -8
  150. package/dist-lib/{my-access-CEGErUgv.js → my-access-DWBV6ohp.js} +120 -132
  151. package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-B-gJZQYM.js} +22 -23
  152. package/dist-lib/navigation-DVlyWnpD.js +102 -0
  153. package/dist-lib/{new-BevAuTe5.js → new-JmARyD88.js} +14 -15
  154. package/dist-lib/{ontology-DXGSJC-y.js → ontology-B4rkO33J.js} +50 -52
  155. package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
  156. package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-zxFrjn0v.js} +89 -92
  157. package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
  158. package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
  159. package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
  160. package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
  161. package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
  162. package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
  163. package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
  164. package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
  165. package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
  166. package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
  167. package/dist-lib/ontology-terms-C-NhpcIZ.js +1195 -0
  168. package/dist-lib/pages-CticGC6S.js +512 -0
  169. package/dist-lib/pages.js +3 -3
  170. package/dist-lib/{permission-BUXo69Ne.js → permission-Dq1-AOQw.js} +41 -41
  171. package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
  172. package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
  173. package/dist-lib/preset-Bp_mvsJm.js +56827 -0
  174. package/dist-lib/{preset-gh5SGoYT.js → preset-DCNSE--Y.js} +8 -8
  175. package/dist-lib/progress-CZxOOnIs.js +778 -0
  176. package/dist-lib/{quota-D31cXjul.js → quota-oICQRHFU.js} +4 -4
  177. package/dist-lib/row-By17TCiW.js +154 -0
  178. package/dist-lib/runs-DQTDpPaN.js +565 -0
  179. package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-CwCZE1Dn.js} +2 -2
  180. package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
  181. package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
  182. package/dist-lib/{schedule-BktxwX3S.js → schedule-CwkPPSuT.js} +8 -8
  183. package/dist-lib/script-gYJAFobb.js +2709 -0
  184. package/dist-lib/{settings-dsB3H65I.js → settings-CJd5Jj4y.js} +133 -134
  185. package/dist-lib/{shared-CTCzvhyE.js → shared-DG5-VCDM.js} +1 -1
  186. package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-CFHws1DA.js} +2 -2
  187. package/dist-lib/{skills-CHPlMsgO.js → skills-lxpJ5Lzx.js} +39 -40
  188. package/dist-lib/{source-selection-tXqc855k.js → source-selection-DJnQQckl.js} +16 -16
  189. package/dist-lib/sources-C83LpCcV.js +279 -0
  190. package/dist-lib/style-B5THvtDY.js +191 -0
  191. package/dist-lib/{task-config-BiTOiZj0.js → task-config-BNYoOb79.js} +4 -4
  192. package/dist-lib/{tech-BKlGPkV0.js → tech-LuZvKDo6.js} +3 -4
  193. package/dist-lib/templates-a-kbCamr.js +58 -0
  194. package/dist-lib/tenant-login-COB-5h_2.js +338 -0
  195. package/dist-lib/{tools-CouQ4FWk.js → tools-CrA6GrY6.js} +14 -14
  196. package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-ehGJBGvU.js} +15 -15
  197. package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
  198. package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-CrhEeHfD.js} +48 -50
  199. package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
  200. package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
  201. package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
  202. package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-mWXkC-uB.js} +26 -27
  203. package/dist-lib/{version-management-B4kIbdVc.js → version-management-nPlG7wQO.js} +6 -7
  204. package/dist-lib/{welcome-F5iZoFB1.js → welcome-Cqv1-rXT.js} +3 -4
  205. package/package.json +1 -1
  206. package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
  207. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
  208. package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
  209. package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
  210. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
  211. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
  212. package/dist-lib/Pagination-Dxslodkq.js +0 -1344
  213. package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
  214. package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
  215. package/dist-lib/Skeleton-DXcERb5r.js +0 -557
  216. package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
  217. package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
  218. package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
  219. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
  220. package/dist-lib/callSuper-DZEfdkXG.js +0 -7
  221. package/dist-lib/changelog-Cn81Dvgk.js +0 -69
  222. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
  223. package/dist-lib/context-Buz0ggsK.js +0 -710
  224. package/dist-lib/context-DpmyNOn3.js +0 -21
  225. package/dist-lib/embed-CR8XVkMy.js +0 -31148
  226. package/dist-lib/focus-set-h0YtOUB2.js +0 -427
  227. package/dist-lib/index-CaXylbQR.js +0 -3419
  228. package/dist-lib/index-Cfu1W1H6.js +0 -535
  229. package/dist-lib/index-CrMcNEAZ.js +0 -9656
  230. package/dist-lib/index-CyKWCYMK.js +0 -218
  231. package/dist-lib/index-DBtGE89a.js +0 -168
  232. package/dist-lib/index-DjFPRXl5.js +0 -1484
  233. package/dist-lib/index-DvWHYX81.js +0 -450
  234. package/dist-lib/index-PBT9GksC.js +0 -340
  235. package/dist-lib/index-bOY1cBol.js +0 -4890
  236. package/dist-lib/meta-BD_qYTZu.js +0 -540
  237. package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
  238. package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
  239. package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
  240. package/dist-lib/pages-CsexFuEz.js +0 -73
  241. package/dist-lib/row-B5MnGm9M.js +0 -156
  242. package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
  243. package/dist-lib/useClosable-BY7FgWKy.js +0 -59
@@ -1,1039 +0,0 @@
1
- import * as M from "react";
2
- import I from "react";
3
- import { a as ie } from "./LeftOutlined-Cgo6Izj-.js";
4
- import { i as W, c as j, h as L, q as Y, _ as K, b as le, f as ce, a as de, I as ue } from "./SearchOutlined-puH6bCY6.js";
5
- import { i as U, s as me, a3 as Q, N as pe, p as fe, _ as ge, d as Z, c as he, g as ve, m as Ce, u as B, r as be, a as ye, a6 as $e, a8 as xe, ac as Ie, ay as q, ak as Pe, a2 as J } from "./index-CrMcNEAZ.js";
6
- import { g as Se } from "./collapse-Dtpt-6W_.js";
7
- import { P as Ee, Q as we } from "./ai-DYDhijtn.js";
8
- import { r as l, t as Ne, aK as ee, C as Oe, aL as Ae, aB as Te } from "./embed-CR8XVkMy.js";
9
- var te = /* @__PURE__ */ I.forwardRef(function(e, t) {
10
- var a = e.prefixCls, n = e.forceRender, m = e.className, r = e.style, c = e.children, h = e.isActive, i = e.role, b = e.classNames, C = e.styles, p = I.useState(h || n), f = W(p, 2), d = f[0], g = f[1];
11
- return I.useEffect(function() {
12
- (n || h) && g(!0);
13
- }, [n, h]), d ? /* @__PURE__ */ I.createElement("div", {
14
- ref: t,
15
- className: j("".concat(a, "-content"), L(L({}, "".concat(a, "-content-active"), h), "".concat(a, "-content-inactive"), !h), m),
16
- style: r,
17
- role: i
18
- }, /* @__PURE__ */ I.createElement("div", {
19
- className: j("".concat(a, "-content-box"), b == null ? void 0 : b.body),
20
- style: C == null ? void 0 : C.body
21
- }, c)) : null;
22
- });
23
- te.displayName = "PanelContent";
24
- var Re = ["showArrow", "headerClass", "isActive", "onItemClick", "forceRender", "className", "classNames", "styles", "prefixCls", "collapsible", "accordion", "panelKey", "extra", "header", "expandIcon", "openMotion", "destroyInactivePanel", "children"], ae = /* @__PURE__ */ I.forwardRef(function(e, t) {
25
- var a = e.showArrow, n = a === void 0 ? !0 : a, m = e.headerClass, r = e.isActive, c = e.onItemClick, h = e.forceRender, i = e.className, b = e.classNames, C = b === void 0 ? {} : b, p = e.styles, f = p === void 0 ? {} : p, d = e.prefixCls, g = e.collapsible, $ = e.accordion, S = e.panelKey, y = e.extra, x = e.header, P = e.expandIcon, u = e.openMotion, O = e.destroyInactivePanel, E = e.children, R = Y(e, Re), w = g === "disabled", A = y != null && typeof y != "boolean", T = L(L(L({
26
- onClick: function() {
27
- c == null || c(S);
28
- },
29
- onKeyDown: function(k) {
30
- (k.key === "Enter" || k.keyCode === U.ENTER || k.which === U.ENTER) && (c == null || c(S));
31
- },
32
- role: $ ? "tab" : "button"
33
- }, "aria-expanded", r), "aria-disabled", w), "tabIndex", w ? -1 : 0), D = typeof P == "function" ? P(e) : /* @__PURE__ */ I.createElement("i", {
34
- className: "arrow"
35
- }), G = D && /* @__PURE__ */ I.createElement("div", K({
36
- className: "".concat(d, "-expand-icon")
37
- }, ["header", "icon"].includes(g) ? T : {}), D), V = j("".concat(d, "-item"), L(L({}, "".concat(d, "-item-active"), r), "".concat(d, "-item-disabled"), w), i), X = j(m, "".concat(d, "-header"), L({}, "".concat(d, "-collapsible-").concat(g), !!g), C.header), N = le({
38
- className: X,
39
- style: f.header
40
- }, ["header", "icon"].includes(g) ? {} : T);
41
- return /* @__PURE__ */ I.createElement("div", K({}, R, {
42
- ref: t,
43
- className: V
44
- }), /* @__PURE__ */ I.createElement("div", N, n && G, /* @__PURE__ */ I.createElement("span", K({
45
- className: "".concat(d, "-header-text")
46
- }, g === "header" ? T : {}), x), A && /* @__PURE__ */ I.createElement("div", {
47
- className: "".concat(d, "-extra")
48
- }, y)), /* @__PURE__ */ I.createElement(me, K({
49
- visible: r,
50
- leavedClassName: "".concat(d, "-content-hidden")
51
- }, u, {
52
- forceRender: h,
53
- removeOnLeave: O
54
- }), function(_, k) {
55
- var z = _.className, H = _.style;
56
- return /* @__PURE__ */ I.createElement(te, {
57
- ref: k,
58
- prefixCls: d,
59
- className: z,
60
- classNames: C,
61
- style: H,
62
- styles: f,
63
- isActive: r,
64
- forceRender: h,
65
- role: $ ? "tabpanel" : void 0
66
- }, E);
67
- }));
68
- }), _e = ["children", "label", "key", "collapsible", "onItemClick", "destroyInactivePanel"], ke = function(t, a) {
69
- var n = a.prefixCls, m = a.accordion, r = a.collapsible, c = a.destroyInactivePanel, h = a.onItemClick, i = a.activeKey, b = a.openMotion, C = a.expandIcon;
70
- return t.map(function(p, f) {
71
- var d = p.children, g = p.label, $ = p.key, S = p.collapsible, y = p.onItemClick, x = p.destroyInactivePanel, P = Y(p, _e), u = String($ ?? f), O = S ?? r, E = x ?? c, R = function(T) {
72
- O !== "disabled" && (h(T), y == null || y(T));
73
- }, w = !1;
74
- return m ? w = i[0] === u : w = i.indexOf(u) > -1, /* @__PURE__ */ I.createElement(ae, K({}, P, {
75
- prefixCls: n,
76
- key: u,
77
- panelKey: u,
78
- isActive: w,
79
- accordion: m,
80
- openMotion: b,
81
- expandIcon: C,
82
- header: g,
83
- collapsible: O,
84
- onItemClick: R,
85
- destroyInactivePanel: E
86
- }), d);
87
- });
88
- }, Me = function(t, a, n) {
89
- if (!t) return null;
90
- var m = n.prefixCls, r = n.accordion, c = n.collapsible, h = n.destroyInactivePanel, i = n.onItemClick, b = n.activeKey, C = n.openMotion, p = n.expandIcon, f = t.key || String(a), d = t.props, g = d.header, $ = d.headerClass, S = d.destroyInactivePanel, y = d.collapsible, x = d.onItemClick, P = !1;
91
- r ? P = b[0] === f : P = b.indexOf(f) > -1;
92
- var u = y ?? c, O = function(w) {
93
- u !== "disabled" && (i(w), x == null || x(w));
94
- }, E = {
95
- key: f,
96
- panelKey: f,
97
- header: g,
98
- headerClass: $,
99
- isActive: P,
100
- prefixCls: m,
101
- destroyInactivePanel: S ?? h,
102
- openMotion: C,
103
- accordion: r,
104
- children: t.props.children,
105
- onItemClick: O,
106
- expandIcon: p,
107
- collapsible: u
108
- };
109
- return typeof t.type == "string" ? t : (Object.keys(E).forEach(function(R) {
110
- typeof E[R] > "u" && delete E[R];
111
- }), /* @__PURE__ */ I.cloneElement(t, E));
112
- };
113
- function Be(e, t, a) {
114
- return Array.isArray(e) ? ke(e, a) : Q(t).map(function(n, m) {
115
- return Me(n, m, a);
116
- });
117
- }
118
- function De(e) {
119
- var t = e;
120
- if (!Array.isArray(t)) {
121
- var a = de(t);
122
- t = a === "number" || a === "string" ? [t] : [];
123
- }
124
- return t.map(function(n) {
125
- return String(n);
126
- });
127
- }
128
- var Le = /* @__PURE__ */ I.forwardRef(function(e, t) {
129
- var a = e.prefixCls, n = a === void 0 ? "rc-collapse" : a, m = e.destroyInactivePanel, r = m === void 0 ? !1 : m, c = e.style, h = e.accordion, i = e.className, b = e.children, C = e.collapsible, p = e.openMotion, f = e.expandIcon, d = e.activeKey, g = e.defaultActiveKey, $ = e.onChange, S = e.items, y = j(n, i), x = pe([], {
130
- value: d,
131
- onChange: function(A) {
132
- return $ == null ? void 0 : $(A);
133
- },
134
- defaultValue: g,
135
- postState: De
136
- }), P = W(x, 2), u = P[0], O = P[1], E = function(A) {
137
- return O(function() {
138
- if (h)
139
- return u[0] === A ? [] : [A];
140
- var T = u.indexOf(A), D = T > -1;
141
- return D ? u.filter(function(G) {
142
- return G !== A;
143
- }) : [].concat(ge(u), [A]);
144
- });
145
- };
146
- ce(!b, "[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");
147
- var R = Be(S, b, {
148
- prefixCls: n,
149
- accordion: h,
150
- openMotion: p,
151
- expandIcon: f,
152
- collapsible: C,
153
- destroyInactivePanel: r,
154
- onItemClick: E,
155
- activeKey: u
156
- });
157
- return /* @__PURE__ */ I.createElement("div", K({
158
- ref: t,
159
- className: y,
160
- style: c,
161
- role: h ? "tablist" : void 0
162
- }, fe(e, {
163
- aria: !0,
164
- data: !0
165
- })), R);
166
- });
167
- const F = Object.assign(Le, {
168
- /**
169
- * @deprecated use `items` instead, will be removed in `v4.0.0`
170
- */
171
- Panel: ae
172
- });
173
- F.Panel;
174
- const je = /* @__PURE__ */ M.forwardRef((e, t) => {
175
- process.env.NODE_ENV !== "production" && Z("Collapse.Panel").deprecated(!("disabled" in e), "disabled", 'collapsible="disabled"');
176
- const {
177
- getPrefixCls: a
178
- } = M.useContext(he), {
179
- prefixCls: n,
180
- className: m,
181
- showArrow: r = !0
182
- } = e, c = a("collapse", n), h = j({
183
- [`${c}-no-arrow`]: !r
184
- }, m);
185
- return /* @__PURE__ */ M.createElement(F.Panel, Object.assign({
186
- ref: t
187
- }, e, {
188
- prefixCls: c,
189
- className: h
190
- }));
191
- }), Ke = (e) => {
192
- const {
193
- componentCls: t,
194
- contentBg: a,
195
- padding: n,
196
- headerBg: m,
197
- headerPadding: r,
198
- collapseHeaderPaddingSM: c,
199
- collapseHeaderPaddingLG: h,
200
- collapsePanelBorderRadius: i,
201
- lineWidth: b,
202
- lineType: C,
203
- colorBorder: p,
204
- colorText: f,
205
- colorTextHeading: d,
206
- colorTextDisabled: g,
207
- fontSizeLG: $,
208
- lineHeight: S,
209
- lineHeightLG: y,
210
- marginSM: x,
211
- paddingSM: P,
212
- paddingLG: u,
213
- paddingXS: O,
214
- motionDurationSlow: E,
215
- fontSizeIcon: R,
216
- contentPadding: w,
217
- fontHeight: A,
218
- fontHeightLG: T
219
- } = e, D = `${B(b)} ${C} ${p}`;
220
- return {
221
- [t]: Object.assign(Object.assign({}, be(e)), {
222
- backgroundColor: m,
223
- border: D,
224
- borderRadius: i,
225
- "&-rtl": {
226
- direction: "rtl"
227
- },
228
- [`& > ${t}-item`]: {
229
- borderBottom: D,
230
- "&:first-child": {
231
- [`
232
- &,
233
- & > ${t}-header`]: {
234
- borderRadius: `${B(i)} ${B(i)} 0 0`
235
- }
236
- },
237
- "&:last-child": {
238
- [`
239
- &,
240
- & > ${t}-header`]: {
241
- borderRadius: `0 0 ${B(i)} ${B(i)}`
242
- }
243
- },
244
- [`> ${t}-header`]: Object.assign(Object.assign({
245
- position: "relative",
246
- display: "flex",
247
- flexWrap: "nowrap",
248
- alignItems: "flex-start",
249
- padding: r,
250
- color: d,
251
- lineHeight: S,
252
- cursor: "pointer",
253
- transition: `all ${E}, visibility 0s`
254
- }, ye(e)), {
255
- [`> ${t}-header-text`]: {
256
- flex: "auto"
257
- },
258
- // >>>>> Arrow
259
- [`${t}-expand-icon`]: {
260
- height: A,
261
- display: "flex",
262
- alignItems: "center",
263
- paddingInlineEnd: x
264
- },
265
- [`${t}-arrow`]: Object.assign(Object.assign({}, $e()), {
266
- fontSize: R,
267
- // when `transform: rotate()` is applied to icon's root element
268
- transition: `transform ${E}`,
269
- // when `transform: rotate()` is applied to icon's child element
270
- svg: {
271
- transition: `transform ${E}`
272
- }
273
- }),
274
- // >>>>> Text
275
- [`${t}-header-text`]: {
276
- marginInlineEnd: "auto"
277
- }
278
- }),
279
- [`${t}-collapsible-header`]: {
280
- cursor: "default",
281
- [`${t}-header-text`]: {
282
- flex: "none",
283
- cursor: "pointer"
284
- },
285
- [`${t}-expand-icon`]: {
286
- cursor: "pointer"
287
- }
288
- },
289
- [`${t}-collapsible-icon`]: {
290
- cursor: "unset",
291
- [`${t}-expand-icon`]: {
292
- cursor: "pointer"
293
- }
294
- }
295
- },
296
- [`${t}-content`]: {
297
- color: f,
298
- backgroundColor: a,
299
- borderTop: D,
300
- [`& > ${t}-content-box`]: {
301
- padding: w
302
- },
303
- "&-hidden": {
304
- display: "none"
305
- }
306
- },
307
- "&-small": {
308
- [`> ${t}-item`]: {
309
- [`> ${t}-header`]: {
310
- padding: c,
311
- paddingInlineStart: O,
312
- [`> ${t}-expand-icon`]: {
313
- // Arrow offset
314
- marginInlineStart: e.calc(P).sub(O).equal()
315
- }
316
- },
317
- [`> ${t}-content > ${t}-content-box`]: {
318
- padding: P
319
- }
320
- }
321
- },
322
- "&-large": {
323
- [`> ${t}-item`]: {
324
- fontSize: $,
325
- lineHeight: y,
326
- [`> ${t}-header`]: {
327
- padding: h,
328
- paddingInlineStart: n,
329
- [`> ${t}-expand-icon`]: {
330
- height: T,
331
- // Arrow offset
332
- marginInlineStart: e.calc(u).sub(n).equal()
333
- }
334
- },
335
- [`> ${t}-content > ${t}-content-box`]: {
336
- padding: u
337
- }
338
- }
339
- },
340
- [`${t}-item:last-child`]: {
341
- borderBottom: 0,
342
- [`> ${t}-content`]: {
343
- borderRadius: `0 0 ${B(i)} ${B(i)}`
344
- }
345
- },
346
- [`& ${t}-item-disabled > ${t}-header`]: {
347
- "\n &,\n & > .arrow\n ": {
348
- color: g,
349
- cursor: "not-allowed"
350
- }
351
- },
352
- // ========================== Icon Position ==========================
353
- [`&${t}-icon-position-end`]: {
354
- [`& > ${t}-item`]: {
355
- [`> ${t}-header`]: {
356
- [`${t}-expand-icon`]: {
357
- order: 1,
358
- paddingInlineEnd: 0,
359
- paddingInlineStart: x
360
- }
361
- }
362
- }
363
- }
364
- })
365
- };
366
- }, He = (e) => {
367
- const {
368
- componentCls: t
369
- } = e, a = `> ${t}-item > ${t}-header ${t}-arrow`;
370
- return {
371
- [`${t}-rtl`]: {
372
- [a]: {
373
- transform: "rotate(180deg)"
374
- }
375
- }
376
- };
377
- }, Ge = (e) => {
378
- const {
379
- componentCls: t,
380
- headerBg: a,
381
- borderlessContentPadding: n,
382
- borderlessContentBg: m,
383
- colorBorder: r
384
- } = e;
385
- return {
386
- [`${t}-borderless`]: {
387
- backgroundColor: a,
388
- border: 0,
389
- [`> ${t}-item`]: {
390
- borderBottom: `1px solid ${r}`
391
- },
392
- [`
393
- > ${t}-item:last-child,
394
- > ${t}-item:last-child ${t}-header
395
- `]: {
396
- borderRadius: 0
397
- },
398
- [`> ${t}-item:last-child`]: {
399
- borderBottom: 0
400
- },
401
- [`> ${t}-item > ${t}-content`]: {
402
- backgroundColor: m,
403
- borderTop: 0
404
- },
405
- [`> ${t}-item > ${t}-content > ${t}-content-box`]: {
406
- padding: n
407
- }
408
- }
409
- };
410
- }, ze = (e) => {
411
- const {
412
- componentCls: t,
413
- paddingSM: a
414
- } = e;
415
- return {
416
- [`${t}-ghost`]: {
417
- backgroundColor: "transparent",
418
- border: 0,
419
- [`> ${t}-item`]: {
420
- borderBottom: 0,
421
- [`> ${t}-content`]: {
422
- backgroundColor: "transparent",
423
- border: 0,
424
- [`> ${t}-content-box`]: {
425
- paddingBlock: a
426
- }
427
- }
428
- }
429
- }
430
- };
431
- }, Ve = (e) => ({
432
- headerPadding: `${e.paddingSM}px ${e.padding}px`,
433
- headerBg: e.colorFillAlter,
434
- contentPadding: `${e.padding}px 16px`,
435
- // Fixed Value
436
- contentBg: e.colorBgContainer,
437
- borderlessContentPadding: `${e.paddingXXS}px 16px ${e.padding}px`,
438
- borderlessContentBg: "transparent"
439
- }), Xe = ve("Collapse", (e) => {
440
- const t = Ce(e, {
441
- collapseHeaderPaddingSM: `${B(e.paddingXS)} ${B(e.paddingSM)}`,
442
- collapseHeaderPaddingLG: `${B(e.padding)} ${B(e.paddingLG)}`,
443
- collapsePanelBorderRadius: e.borderRadiusLG
444
- });
445
- return [Ke(t), Ge(t), ze(t), He(t), Se(t)];
446
- }, Ve), ne = /* @__PURE__ */ M.forwardRef((e, t) => {
447
- const {
448
- getPrefixCls: a,
449
- direction: n,
450
- expandIcon: m,
451
- className: r,
452
- style: c
453
- } = xe("collapse"), {
454
- prefixCls: h,
455
- className: i,
456
- rootClassName: b,
457
- style: C,
458
- bordered: p = !0,
459
- ghost: f,
460
- size: d,
461
- expandIconPosition: g = "start",
462
- children: $,
463
- destroyInactivePanel: S,
464
- destroyOnHidden: y,
465
- expandIcon: x
466
- } = e, P = Ie((N) => {
467
- var _;
468
- return (_ = d ?? N) !== null && _ !== void 0 ? _ : "middle";
469
- }), u = a("collapse", h), O = a(), [E, R, w] = Xe(u);
470
- if (process.env.NODE_ENV !== "production") {
471
- const N = Z("Collapse");
472
- process.env.NODE_ENV !== "production" && N(g !== "left" && g !== "right", "deprecated", "`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead."), N.deprecated(!("destroyInactivePanel" in e), "destroyInactivePanel", "destroyOnHidden");
473
- }
474
- const A = M.useMemo(() => g === "left" ? "start" : g === "right" ? "end" : g, [g]), T = x ?? m, D = M.useCallback((N = {}) => {
475
- const _ = typeof T == "function" ? T(N) : /* @__PURE__ */ M.createElement(ie, {
476
- rotate: N.isActive ? n === "rtl" ? -90 : 90 : void 0,
477
- "aria-label": N.isActive ? "expanded" : "collapsed"
478
- });
479
- return q(_, () => {
480
- var k;
481
- return {
482
- className: j((k = _.props) === null || k === void 0 ? void 0 : k.className, `${u}-arrow`)
483
- };
484
- });
485
- }, [T, u, n]), G = j(`${u}-icon-position-${A}`, {
486
- [`${u}-borderless`]: !p,
487
- [`${u}-rtl`]: n === "rtl",
488
- [`${u}-ghost`]: !!f,
489
- [`${u}-${P}`]: P !== "middle"
490
- }, r, i, b, R, w), V = M.useMemo(() => Object.assign(Object.assign({}, Pe(O)), {
491
- motionAppear: !1,
492
- leavedClassName: `${u}-content-hidden`
493
- }), [O, u]), X = M.useMemo(() => $ ? Q($).map((N, _) => {
494
- var k, z;
495
- const H = N.props;
496
- if (H != null && H.disabled) {
497
- const oe = (k = N.key) !== null && k !== void 0 ? k : String(_), se = Object.assign(Object.assign({}, J(N.props, ["disabled"])), {
498
- key: oe,
499
- collapsible: (z = H.collapsible) !== null && z !== void 0 ? z : "disabled"
500
- });
501
- return q(N, se);
502
- }
503
- return N;
504
- }) : null, [$]);
505
- return E(
506
- // @ts-ignore
507
- /* @__PURE__ */ M.createElement(F, Object.assign({
508
- ref: t,
509
- openMotion: V
510
- }, J(e, ["rootClassName"]), {
511
- expandIcon: D,
512
- prefixCls: u,
513
- className: G,
514
- style: Object.assign(Object.assign({}, c), C),
515
- // TODO: In the future, destroyInactivePanel in rc-collapse needs to be upgrade to destroyOnHidden
516
- destroyInactivePanel: y ?? S
517
- }), X)
518
- );
519
- });
520
- process.env.NODE_ENV !== "production" && (ne.displayName = "Collapse");
521
- const nt = Object.assign(ne, {
522
- Panel: je
523
- });
524
- var Fe = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, name: "clock-circle", theme: "outlined" }, Ue = function(t, a) {
525
- return /* @__PURE__ */ M.createElement(ue, K({}, t, {
526
- ref: a,
527
- icon: Fe
528
- }));
529
- }, qe = /* @__PURE__ */ M.forwardRef(Ue);
530
- process.env.NODE_ENV !== "production" && (qe.displayName = "ClockCircleOutlined");
531
- const rt = 1, ot = "ontology_modeler", st = 51093, it = 51050;
532
- function lt(e) {
533
- return v(
534
- () => l(`${o}/agent/session/page`, {
535
- method: "post",
536
- data: e,
537
- headers: s()
538
- })
539
- );
540
- }
541
- function ct(e) {
542
- return v(
543
- () => l(`${o}/agent/session/create`, {
544
- method: "post",
545
- data: e,
546
- headers: s()
547
- }),
548
- // 失败由调用方按会话状态提示(工作台页头红点 + 保存提示),避免与全局 toast 重复
549
- { silent: !0 }
550
- );
551
- }
552
- function dt(e, t) {
553
- const a = new AbortController(), n = (async () => {
554
- var m;
555
- try {
556
- const r = await fetch(ee(`${o}/agent/chat/streaming`), {
557
- method: "POST",
558
- credentials: "include",
559
- headers: {
560
- "Content-Type": "application/json; charset=utf-8",
561
- Accept: "text/event-stream",
562
- ...s(),
563
- ...re()
564
- },
565
- body: JSON.stringify(e),
566
- signal: a.signal
567
- });
568
- if (!r.ok) {
569
- let C = `对话请求失败(HTTP ${r.status})`;
570
- try {
571
- const p = await r.text();
572
- if (p) {
573
- const f = JSON.parse(p);
574
- f.message && (C = f.message);
575
- }
576
- } catch {
577
- }
578
- throw new Error(C);
579
- }
580
- if (!r.body)
581
- throw new Error("当前浏览器不支持流式响应");
582
- const c = r.body.getReader(), h = new TextDecoder("utf-8");
583
- let i = "";
584
- const b = (C) => {
585
- const p = Ee(C);
586
- if (p)
587
- try {
588
- t.onEvent(JSON.parse(p));
589
- } catch {
590
- }
591
- };
592
- for (; ; ) {
593
- const { done: C, value: p } = await c.read();
594
- if (C)
595
- break;
596
- i += h.decode(p, { stream: !0 });
597
- let f = i.search(/\r?\n\r?\n/);
598
- for (; f >= 0; ) {
599
- const d = i.slice(0, f), g = i.slice(f).match(/^\r?\n\r?\n/);
600
- i = i.slice(f + (g ? g[0].length : 2)), b(d), f = i.search(/\r?\n\r?\n/);
601
- }
602
- }
603
- i += h.decode(), i.trim() && b(i);
604
- } catch (r) {
605
- if (a.signal.aborted)
606
- return;
607
- (m = t.onError) == null || m.call(
608
- t,
609
- r instanceof Error && r.message ? r.message : "对话执行失败"
610
- );
611
- }
612
- })();
613
- return { abort: () => a.abort(), done: n };
614
- }
615
- function ut(e, t) {
616
- return v(
617
- () => l(`${o}/agent/chat/interrupt`, {
618
- method: "post",
619
- data: { agentCode: e, conversationId: t },
620
- headers: s()
621
- })
622
- );
623
- }
624
- function mt(e) {
625
- const t = new URLSearchParams({ conversationId: e });
626
- return l(`${o}/agent/history?${t.toString()}`, {
627
- method: "get",
628
- headers: s()
629
- });
630
- }
631
- function pt(e) {
632
- return v(
633
- () => {
634
- var t;
635
- return l(`${o}/proposal/page`, {
636
- method: "get",
637
- params: {
638
- ...e,
639
- orderStatus: (t = e.orderStatus) != null && t.length ? e.orderStatus.join(",") : void 0
640
- },
641
- headers: s()
642
- });
643
- }
644
- );
645
- }
646
- function ft(e, t) {
647
- return v(
648
- () => l(`${o}/proposal/detail`, {
649
- method: "get",
650
- params: { code: e },
651
- headers: s(),
652
- silent: t == null ? void 0 : t.silent
653
- }),
654
- t
655
- );
656
- }
657
- function gt(e, t, a, n, m) {
658
- return v(
659
- () => l(`${o}/proposal/submit`, {
660
- method: "post",
661
- // 归属域按显式字段上送:后端要求与请求头 X-Domain-Code 一致,避免展示域与落库域分叉
662
- data: { code: e, itemSeqNos: t, title: a, note: n, domainCode: m },
663
- headers: s()
664
- })
665
- );
666
- }
667
- function ht(e) {
668
- return v(
669
- () => l(`${o}/proposal/workspace`, {
670
- method: "get",
671
- params: { conversationId: e },
672
- headers: s()
673
- })
674
- );
675
- }
676
- const vt = [
677
- "STRING",
678
- "INT",
679
- "DOUBLE",
680
- "BOOL",
681
- "DATE",
682
- "DATETIME",
683
- "TEXT"
684
- ];
685
- function Ct(e) {
686
- return l(`${o}/proposal/manual/create`, {
687
- method: "post",
688
- data: e,
689
- headers: s()
690
- });
691
- }
692
- function bt(e, t) {
693
- return l(`${o}/proposal/bindConversation`, {
694
- method: "post",
695
- data: { code: e, conversationId: t },
696
- headers: s()
697
- });
698
- }
699
- function yt(e, t) {
700
- return l(`${o}/proposal/item/list`, {
701
- method: "get",
702
- params: { proposalCode: e },
703
- headers: s(),
704
- silent: t == null ? void 0 : t.silent
705
- });
706
- }
707
- function $t(e) {
708
- return l(`${o}/proposal/item/add`, {
709
- method: "post",
710
- data: e,
711
- headers: s()
712
- });
713
- }
714
- function xt(e) {
715
- return l(`${o}/proposal/item/update`, {
716
- method: "post",
717
- data: e,
718
- headers: s()
719
- });
720
- }
721
- function It(e, t, a) {
722
- return l(`${o}/proposal/item/delete`, {
723
- method: "post",
724
- data: { proposalCode: e, itemId: t },
725
- headers: { ...s(), ...a ? { "X-Domain-Code": a } : {} }
726
- });
727
- }
728
- function Pt(e, t) {
729
- return l(`${o}/proposal/item/batchSave`, {
730
- method: "post",
731
- data: { proposalCode: e, items: t },
732
- headers: s()
733
- });
734
- }
735
- function St(e, t) {
736
- return v(
737
- () => l(`${o}/proposal/patch`, {
738
- method: "post",
739
- data: e,
740
- headers: s()
741
- }),
742
- t
743
- );
744
- }
745
- function Et(e) {
746
- return {
747
- 1: "新增对象类型",
748
- 2: "修改对象类型",
749
- 3: "退役对象类型",
750
- 4: "新增关系类型",
751
- 5: "修改关系类型",
752
- 6: "退役关系类型",
753
- 7: "新增端点约束",
754
- 8: "退役端点约束",
755
- 9: "实例同步",
756
- 10: "创建场景",
757
- 11: "更新场景",
758
- 12: "下线场景"
759
- }[e] || `类型${e}`;
760
- }
761
- function wt(e) {
762
- return { 1: { label: "安全", color: "green" }, 2: { label: "增量", color: "blue" }, 3: { label: "受限", color: "red" } }[e] || { label: `档${e}`, color: "default" };
763
- }
764
- function Nt(e) {
765
- return v(
766
- () => l(`${o}/order/page`, {
767
- method: "get",
768
- params: e,
769
- headers: s()
770
- })
771
- );
772
- }
773
- function Ot(e) {
774
- return v(
775
- () => l(`${o}/order/detail`, {
776
- method: "get",
777
- params: { code: e },
778
- headers: s()
779
- })
780
- );
781
- }
782
- function At(e) {
783
- return v(
784
- () => l(`${o}/order/approve`, {
785
- method: "post",
786
- data: { code: e },
787
- headers: s()
788
- })
789
- );
790
- }
791
- function Tt(e) {
792
- return v(
793
- () => l(`${o}/order/batchApprove`, {
794
- method: "post",
795
- data: { codes: e },
796
- headers: s()
797
- })
798
- );
799
- }
800
- function Rt(e, t) {
801
- return v(
802
- () => l(`${o}/order/reject`, {
803
- method: "post",
804
- data: { code: e, reason: t },
805
- headers: s()
806
- })
807
- );
808
- }
809
- function _t(e) {
810
- return v(
811
- () => l(`${o}/order/review`, {
812
- method: "get",
813
- params: { orderCode: e },
814
- headers: s()
815
- }),
816
- { silent: !0 }
817
- );
818
- }
819
- function kt(e, t = !1) {
820
- return v(
821
- () => l(`${o}/order/review/start`, {
822
- method: "post",
823
- data: { orderCode: e, auto: t },
824
- headers: s()
825
- }),
826
- { silent: !0, rethrow: !0 }
827
- );
828
- }
829
- function Mt(e) {
830
- return v(
831
- () => l(`${o}/order/review/confirm`, {
832
- method: "post",
833
- data: { orderCode: e },
834
- headers: s()
835
- }),
836
- { silent: !0, rethrow: !0 }
837
- );
838
- }
839
- function Bt(e) {
840
- return v(
841
- () => l(`${o}/order/review/cancel`, {
842
- method: "post",
843
- data: { orderCode: e },
844
- headers: s()
845
- }),
846
- { silent: !0, rethrow: !0 }
847
- );
848
- }
849
- function Dt(e, t) {
850
- const a = new AbortController(), n = new URLSearchParams({ orderCode: e }).toString(), m = (async () => {
851
- var r;
852
- try {
853
- const c = await fetch(ee(`${o}/order/review/stream?${n}`), {
854
- method: "GET",
855
- credentials: "include",
856
- headers: { Accept: "text/event-stream", ...s(), ...re() },
857
- signal: a.signal
858
- });
859
- if (!c.ok)
860
- throw new Error(await Je(c));
861
- await we(c, t.onEvent);
862
- } catch (c) {
863
- if (a.signal.aborted)
864
- return;
865
- (r = t.onError) == null || r.call(
866
- t,
867
- c instanceof Error && c.message ? c.message : "审核过程流读取失败"
868
- );
869
- }
870
- })();
871
- return { abort: () => a.abort(), done: m };
872
- }
873
- async function Je(e) {
874
- let t = `审核过程流连接失败(HTTP ${e.status})`;
875
- try {
876
- const a = await e.text();
877
- if (a) {
878
- const n = JSON.parse(a);
879
- n.message && (t = n.message);
880
- }
881
- } catch {
882
- }
883
- return t;
884
- }
885
- function Lt(e) {
886
- return v(
887
- () => l(`${o}/order/retryItem`, {
888
- method: "post",
889
- data: { itemCode: e },
890
- headers: s()
891
- })
892
- );
893
- }
894
- function jt(e) {
895
- return v(
896
- () => l(`${o}/order/task/progress`, {
897
- method: "get",
898
- params: { code: e },
899
- headers: s()
900
- }),
901
- { silent: !0 }
902
- );
903
- }
904
- function Kt(e) {
905
- return v(
906
- () => l(`${o}/task/page`, {
907
- method: "get",
908
- params: e,
909
- headers: s()
910
- }),
911
- { silent: !0 }
912
- );
913
- }
914
- function Ht(e) {
915
- return v(
916
- () => l(`${o}/task/log/page`, {
917
- method: "get",
918
- params: e,
919
- headers: s()
920
- })
921
- );
922
- }
923
- function Gt(e) {
924
- return v(
925
- () => l(`${o}/task/progress`, {
926
- method: "get",
927
- params: { scopeId: e },
928
- headers: s()
929
- }),
930
- { silent: !0 }
931
- );
932
- }
933
- function zt(e) {
934
- return v(
935
- () => l(`${o}/version/batch/page`, {
936
- method: "get",
937
- params: e,
938
- headers: s()
939
- })
940
- );
941
- }
942
- function Vt(e) {
943
- return v(
944
- () => l(`${o}/version/batch/detail`, {
945
- method: "get",
946
- params: { batchCode: e },
947
- headers: s()
948
- })
949
- );
950
- }
951
- function Xt(e) {
952
- return { EFFECTIVE: "已生效", EXECUTING: "执行中", PARTIAL_FAILED: "生效有失败" }[e || "EFFECTIVE"];
953
- }
954
- function Ft(e) {
955
- return { 1: "待提交", 2: "已提交", 3: "已驳回" }[e] || `状态${e}`;
956
- }
957
- function Ut(e) {
958
- return {
959
- 1: "待审批",
960
- 2: "已驳回",
961
- 3: "已审批",
962
- 4: "执行中",
963
- 5: "已生效",
964
- 6: "生效有失败",
965
- 7: "执行失败"
966
- }[e] || `状态${e}`;
967
- }
968
- function qt(e) {
969
- return { 1: "结构", 2: "数据", 3: "混合" }[e] || `类型${e}`;
970
- }
971
- function Jt(e) {
972
- return { 1: "对话产出", 2: "文件导入", 3: "未对齐上报", 4: "人工提交", 5: "外部指导" }[e] || `来源${e}`;
973
- }
974
- const o = "/kb/v1/ontology", s = () => ({ "X-Tenant-Code": Oe() }), re = () => {
975
- const e = Te();
976
- if (!e)
977
- return {};
978
- const t = { "X-Domain-Code": e };
979
- return Ae() === "ANCESTORS" && (t["X-Domain-Scope"] = "ANCESTORS"), t;
980
- };
981
- async function v(e, t) {
982
- try {
983
- return await e();
984
- } catch (a) {
985
- if (t != null && t.silent || Ne("请求失败", a.message || "服务器错误", "error"), t != null && t.rethrow)
986
- throw a;
987
- return;
988
- }
989
- }
990
- export {
991
- st as A,
992
- rt as B,
993
- nt as C,
994
- Rt as D,
995
- ft as E,
996
- it as F,
997
- qt as G,
998
- Jt as H,
999
- pt as I,
1000
- ht as J,
1001
- bt as K,
1002
- Ct as L,
1003
- xt as M,
1004
- $t as N,
1005
- ot as O,
1006
- vt as P,
1007
- Pt as Q,
1008
- qe as R,
1009
- It as S,
1010
- gt as T,
1011
- lt as U,
1012
- At as V,
1013
- Ht as a,
1014
- Gt as b,
1015
- Et as c,
1016
- jt as d,
1017
- zt as e,
1018
- Vt as f,
1019
- Ot as g,
1020
- wt as h,
1021
- Nt as i,
1022
- Tt as j,
1023
- ut as k,
1024
- yt as l,
1025
- St as m,
1026
- ct as n,
1027
- Ut as o,
1028
- Kt as p,
1029
- mt as q,
1030
- Lt as r,
1031
- dt as s,
1032
- Ft as t,
1033
- _t as u,
1034
- Xt as v,
1035
- kt as w,
1036
- Mt as x,
1037
- Bt as y,
1038
- Dt as z
1039
- };