@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
@@ -1,7 +1,7 @@
1
- import { r as i, C as D, I as y } from "./embed-DwLg9RDW.js";
1
+ import { r as i, K as D, I as y } from "./embed-mf8t3QXh.js";
2
2
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
3
3
  import { useEffect as v } from "react";
4
- import { d as S } from "./dayjs.min-BauDENhn.js";
4
+ import { d as S } from "./dayjs.min-DoEf5yCX.js";
5
5
  const c = "/kb/v1/evaluation", u = () => ({ "X-Tenant-Code": D() });
6
6
  async function d(e) {
7
7
  try {
@@ -102,7 +102,7 @@ function z(e, t) {
102
102
  })
103
103
  );
104
104
  }
105
- function V(e) {
105
+ function K(e) {
106
106
  return d(
107
107
  () => i(`${c}/pageCaseResults`, {
108
108
  method: "post",
@@ -111,7 +111,7 @@ function V(e) {
111
111
  })
112
112
  );
113
113
  }
114
- function K(e, t, r) {
114
+ function V(e, t, r) {
115
115
  return d(
116
116
  () => i(`${c}/listBadcases`, {
117
117
  method: "get",
@@ -660,12 +660,12 @@ export {
660
660
  fe as i,
661
661
  ue as j,
662
662
  be as k,
663
- K as l,
663
+ V as l,
664
664
  oe as m,
665
665
  $ as n,
666
666
  X as o,
667
667
  B as p,
668
- V as q,
668
+ K as q,
669
669
  le as r,
670
670
  ne as s,
671
671
  ie as t,
@@ -1,9 +1,7 @@
1
1
  import * as p from "react";
2
2
  import { forwardRef as Et, useRef as It, useImperativeHandle as Vt } from "react";
3
- import { c as S, q as kt, b as T, _ as zt } from "./SearchOutlined-puH6bCY6.js";
4
- import { T as Lt, a as Dt } from "./index-bOY1cBol.js";
5
- import { aU as lt, t as Bt, u as z, g as Ht, m as ft, r as Mt, c as Xt, e as Wt, a8 as Yt, d as qt, N as Ft, z as Ut, aV as Zt, y as Gt, E as Jt, ay as Kt, A as Qt } from "./index-CrMcNEAZ.js";
6
- import { g as te, i as ee } from "./colors-sdAcAcU3.js";
3
+ import { cy as lt, a6 as S, bh as kt, bw as zt, bg as j, cz as Lt, b0 as Dt, ap as z, a7 as Bt, a8 as ft, ce as Ht, ao as Mt, a9 as Xt, bN as Wt, ar as Yt, aq as qt, bj as Ft, bo as Zt, cA as Ut, co as Gt, cf as Jt, bb as Kt, cv as Qt } from "./embed-mf8t3QXh.js";
4
+ import { g as te, i as ee } from "./colors-DpKdb8L-.js";
7
5
  const oe = (e) => e instanceof lt ? e : new lt(e);
8
6
  function pt(e) {
9
7
  var o = e.children, a = e.prefixCls, t = e.id, r = e.overlayInnerStyle, s = e.bodyClassName, n = e.className, i = e.style;
@@ -97,13 +95,13 @@ var I = {
97
95
  targetOffset: y
98
96
  }
99
97
  }, ae = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], ne = function(o, a) {
100
- var t = o.overlayClassName, r = o.trigger, s = r === void 0 ? ["hover"] : r, n = o.mouseEnterDelay, i = n === void 0 ? 0 : n, l = o.mouseLeaveDelay, d = l === void 0 ? 0.1 : l, f = o.overlayStyle, h = o.prefixCls, c = h === void 0 ? "rc-tooltip" : h, b = o.children, u = o.onVisibleChange, g = o.afterVisibleChange, O = o.transitionName, $ = o.animation, C = o.motion, j = o.placement, L = j === void 0 ? "right" : j, D = o.align, J = D === void 0 ? {} : D, B = o.destroyTooltipOnHide, K = B === void 0 ? !1 : B, Q = o.defaultVisible, tt = o.getTooltipContainer, et = o.overlayInnerStyle;
98
+ var t = o.overlayClassName, r = o.trigger, s = r === void 0 ? ["hover"] : r, n = o.mouseEnterDelay, i = n === void 0 ? 0 : n, l = o.mouseLeaveDelay, d = l === void 0 ? 0.1 : l, f = o.overlayStyle, h = o.prefixCls, c = h === void 0 ? "rc-tooltip" : h, b = o.children, m = o.onVisibleChange, g = o.afterVisibleChange, O = o.transitionName, $ = o.animation, C = o.motion, T = o.placement, L = T === void 0 ? "right" : T, D = o.align, J = D === void 0 ? {} : D, B = o.destroyTooltipOnHide, K = B === void 0 ? !1 : B, Q = o.defaultVisible, tt = o.getTooltipContainer, et = o.overlayInnerStyle;
101
99
  o.arrowContent;
102
- var x = o.overlay, P = o.id, k = o.showArrow, H = k === void 0 ? !0 : k, w = o.classNames, _ = o.styles, M = kt(o, ae), X = Bt(P), W = It(null);
100
+ var x = o.overlay, P = o.id, k = o.showArrow, H = k === void 0 ? !0 : k, w = o.classNames, _ = o.styles, M = kt(o, ae), X = zt(P), W = It(null);
103
101
  Vt(a, function() {
104
102
  return W.current;
105
103
  });
106
- var Y = T({}, M);
104
+ var Y = j({}, M);
107
105
  "visible" in o && (Y.popupVisible = o.visible);
108
106
  var q = function() {
109
107
  return /* @__PURE__ */ p.createElement(pt, {
@@ -111,15 +109,15 @@ var I = {
111
109
  prefixCls: c,
112
110
  id: X,
113
111
  bodyClassName: w == null ? void 0 : w.body,
114
- overlayInnerStyle: T(T({}, et), _ == null ? void 0 : _.body)
112
+ overlayInnerStyle: j(j({}, et), _ == null ? void 0 : _.body)
115
113
  }, x);
116
114
  }, F = function() {
117
- var N = p.Children.only(b), U = (N == null ? void 0 : N.props) || {}, ot = T(T({}, U), {}, {
115
+ var N = p.Children.only(b), Z = (N == null ? void 0 : N.props) || {}, ot = j(j({}, Z), {}, {
118
116
  "aria-describedby": x ? X : null
119
117
  });
120
118
  return /* @__PURE__ */ p.cloneElement(b, ot);
121
119
  };
122
- return /* @__PURE__ */ p.createElement(Lt, zt({
120
+ return /* @__PURE__ */ p.createElement(Lt, Dt({
123
121
  popupClassName: S(t, w == null ? void 0 : w.root),
124
122
  prefixCls: c,
125
123
  popup: q,
@@ -129,7 +127,7 @@ var I = {
129
127
  ref: W,
130
128
  popupAlign: J,
131
129
  getPopupContainer: tt,
132
- onPopupVisibleChange: u,
130
+ onPopupVisibleChange: m,
133
131
  afterPopupVisibleChange: g,
134
132
  popupTransitionName: O,
135
133
  popupAnimation: $,
@@ -137,7 +135,7 @@ var I = {
137
135
  defaultPopupVisible: Q,
138
136
  autoDestroy: K,
139
137
  mouseLeaveDelay: d,
140
- popupStyle: T(T({}, f), _ == null ? void 0 : _.root),
138
+ popupStyle: j(j({}, f), _ == null ? void 0 : _.root),
141
139
  mouseEnterDelay: i,
142
140
  arrow: H
143
141
  }, Y), F());
@@ -148,11 +146,11 @@ function ie(e) {
148
146
  sizePopupArrow: o,
149
147
  borderRadiusXS: a,
150
148
  borderRadiusOuter: t
151
- } = e, r = o / 2, s = 0, n = r, i = t * 1 / Math.sqrt(2), l = r - t * (1 - 1 / Math.sqrt(2)), d = r - a * (1 / Math.sqrt(2)), f = t * (Math.sqrt(2) - 1) + a * (1 / Math.sqrt(2)), h = 2 * r - d, c = f, b = 2 * r - i, u = l, g = 2 * r - s, O = n, $ = r * Math.sqrt(2) + t * (Math.sqrt(2) - 2), C = t * (Math.sqrt(2) - 1), j = `polygon(${C}px 100%, 50% ${C}px, ${2 * r - C}px 100%, ${C}px 100%)`, L = `path('M ${s} ${n} A ${t} ${t} 0 0 0 ${i} ${l} L ${d} ${f} A ${a} ${a} 0 0 1 ${h} ${c} L ${b} ${u} A ${t} ${t} 0 0 0 ${g} ${O} Z')`;
149
+ } = e, r = o / 2, s = 0, n = r, i = t * 1 / Math.sqrt(2), l = r - t * (1 - 1 / Math.sqrt(2)), d = r - a * (1 / Math.sqrt(2)), f = t * (Math.sqrt(2) - 1) + a * (1 / Math.sqrt(2)), h = 2 * r - d, c = f, b = 2 * r - i, m = l, g = 2 * r - s, O = n, $ = r * Math.sqrt(2) + t * (Math.sqrt(2) - 2), C = t * (Math.sqrt(2) - 1), T = `polygon(${C}px 100%, 50% ${C}px, ${2 * r - C}px 100%, ${C}px 100%)`, L = `path('M ${s} ${n} A ${t} ${t} 0 0 0 ${i} ${l} L ${d} ${f} A ${a} ${a} 0 0 1 ${h} ${c} L ${b} ${m} A ${t} ${t} 0 0 0 ${g} ${O} Z')`;
152
150
  return {
153
151
  arrowShadowWidth: $,
154
152
  arrowPath: L,
155
- arrowPolygon: j
153
+ arrowPolygon: T
156
154
  };
157
155
  }
158
156
  const le = (e, o, a) => {
@@ -201,7 +199,7 @@ const le = (e, o, a) => {
201
199
  }
202
200
  };
203
201
  }, dt = 8;
204
- function mt(e) {
202
+ function ut(e) {
205
203
  const {
206
204
  contentRadius: o,
207
205
  limitVerticalRadius: a
@@ -429,7 +427,7 @@ const ct = {
429
427
  points: ["br", "cl"]
430
428
  }
431
429
  }, de = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
432
- function me(e) {
430
+ function ue(e) {
433
431
  const {
434
432
  arrowWidth: o,
435
433
  autoAdjustOverflow: a,
@@ -437,7 +435,7 @@ function me(e) {
437
435
  offset: r,
438
436
  borderRadius: s,
439
437
  visibleFirst: n
440
- } = e, i = o / 2, l = {}, d = mt({
438
+ } = e, i = o / 2, l = {}, d = ut({
441
439
  contentRadius: s,
442
440
  limitVerticalRadius: !0
443
441
  });
@@ -490,7 +488,7 @@ function me(e) {
490
488
  c.overflow = fe(f, d, o, a), n && (c.htmlRegion = "visibleFirst");
491
489
  }), l;
492
490
  }
493
- const ue = (e) => {
491
+ const me = (e) => {
494
492
  const {
495
493
  calc: o,
496
494
  componentCls: a,
@@ -506,7 +504,7 @@ const ue = (e) => {
506
504
  paddingXS: h,
507
505
  arrowOffsetHorizontal: c,
508
506
  sizePopupArrow: b
509
- } = e, u = o(n).add(b).add(c).equal(), g = o(n).mul(2).add(b).equal();
507
+ } = e, m = o(n).add(b).add(c).equal(), g = o(n).mul(2).add(b).equal();
510
508
  return [
511
509
  {
512
510
  [a]: Object.assign(Object.assign(Object.assign(Object.assign({}, Mt(e)), {
@@ -539,7 +537,7 @@ const ue = (e) => {
539
537
  },
540
538
  // Align placement should have another min width
541
539
  [["&-placement-topLeft", "&-placement-topRight", "&-placement-bottomLeft", "&-placement-bottomRight"].join(",")]: {
542
- minWidth: u
540
+ minWidth: m
543
541
  },
544
542
  // Limit left and right placement radius
545
543
  [["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
@@ -581,12 +579,12 @@ const ue = (e) => {
581
579
  ];
582
580
  }, ge = (e) => Object.assign(Object.assign({
583
581
  zIndexPopup: e.zIndexPopupBase + 70
584
- }, mt({
582
+ }, ut({
585
583
  contentRadius: e.borderRadius,
586
584
  limitVerticalRadius: !0
587
585
  })), ie(ft(e, {
588
586
  borderRadiusOuter: Math.min(e.borderRadiusOuter, 4)
589
- }))), ut = (e, o = !0) => Ht("Tooltip", (t) => {
587
+ }))), mt = (e, o = !0) => Bt("Tooltip", (t) => {
590
588
  const {
591
589
  borderRadius: r,
592
590
  colorTextLightSolid: s,
@@ -598,7 +596,7 @@ const ue = (e) => {
598
596
  tooltipBorderRadius: r,
599
597
  tooltipBg: n
600
598
  });
601
- return [ue(i), Dt(t, "zoom-big-fast")];
599
+ return [me(i), Ht(t, "zoom-big-fast")];
602
600
  }, ge, {
603
601
  resetStyle: !1,
604
602
  // Popover use Tooltip as internal component. We do not need to handle this.
@@ -624,7 +622,7 @@ const be = (e) => {
624
622
  overlayInnerStyle: n
625
623
  } = e, {
626
624
  getPrefixCls: i
627
- } = p.useContext(Xt), l = i("tooltip", o), [d, f, h] = ut(l), c = gt(l, s), b = c.arrowStyle, u = Object.assign(Object.assign({}, n), c.overlayStyle), g = S(f, h, l, `${l}-pure`, `${l}-placement-${t}`, a, c.className);
625
+ } = p.useContext(Xt), l = i("tooltip", o), [d, f, h] = mt(l), c = gt(l, s), b = c.arrowStyle, m = Object.assign(Object.assign({}, n), c.overlayStyle), g = S(f, h, l, `${l}-pure`, `${l}-placement-${t}`, a, c.className);
628
626
  return d(/* @__PURE__ */ p.createElement("div", {
629
627
  className: g,
630
628
  style: b
@@ -633,7 +631,7 @@ const be = (e) => {
633
631
  }), /* @__PURE__ */ p.createElement(pt, Object.assign({}, e, {
634
632
  className: f,
635
633
  prefixCls: l,
636
- overlayInnerStyle: u
634
+ overlayInnerStyle: m
637
635
  }), r)));
638
636
  };
639
637
  var ve = function(e, o) {
@@ -656,12 +654,12 @@ const he = /* @__PURE__ */ p.forwardRef((e, o) => {
656
654
  afterVisibleChange: h,
657
655
  destroyTooltipOnHide: c,
658
656
  destroyOnHidden: b,
659
- arrow: u = !0,
657
+ arrow: m = !0,
660
658
  title: g,
661
659
  overlay: O,
662
660
  builtinPlacements: $,
663
661
  arrowPointAtCenter: C = !1,
664
- autoAdjustOverflow: j = !0,
662
+ autoAdjustOverflow: T = !0,
665
663
  motion: L,
666
664
  getPopupContainer: D,
667
665
  placement: J = "top",
@@ -672,7 +670,7 @@ const he = /* @__PURE__ */ p.forwardRef((e, o) => {
672
670
  overlayClassName: et,
673
671
  styles: x,
674
672
  classNames: P
675
- } = e, k = ve(e, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), H = !!u, [, w] = Wt(), {
673
+ } = e, k = ve(e, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), H = !!m, [, w] = Wt(), {
676
674
  getPopupContainer: _,
677
675
  getPrefixCls: M,
678
676
  direction: X,
@@ -680,49 +678,49 @@ const he = /* @__PURE__ */ p.forwardRef((e, o) => {
680
678
  style: Y,
681
679
  classNames: q,
682
680
  styles: F
683
- } = Yt("tooltip"), A = qt("Tooltip"), N = p.useRef(null), U = () => {
684
- var m;
685
- (m = N.current) === null || m === void 0 || m.forceAlign();
681
+ } = Yt("tooltip"), A = qt("Tooltip"), N = p.useRef(null), Z = () => {
682
+ var u;
683
+ (u = N.current) === null || u === void 0 || u.forceAlign();
686
684
  };
687
685
  p.useImperativeHandle(o, () => {
688
- var m, v;
686
+ var u, v;
689
687
  return {
690
- forceAlign: U,
688
+ forceAlign: Z,
691
689
  forcePopupAlign: () => {
692
- A.deprecated(!1, "forcePopupAlign", "forceAlign"), U();
690
+ A.deprecated(!1, "forcePopupAlign", "forceAlign"), Z();
693
691
  },
694
- nativeElement: (m = N.current) === null || m === void 0 ? void 0 : m.nativeElement,
692
+ nativeElement: (u = N.current) === null || u === void 0 ? void 0 : u.nativeElement,
695
693
  popupElement: (v = N.current) === null || v === void 0 ? void 0 : v.popupElement
696
694
  };
697
- }), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["destroyTooltipOnHide", "destroyOnHidden"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach(([m, v]) => {
698
- A.deprecated(!(m in e), m, v);
699
- }), process.env.NODE_ENV !== "production" && A(!c || typeof c == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && A(!u || typeof u == "boolean" || !("arrowPointAtCenter" in u), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
695
+ }), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["destroyTooltipOnHide", "destroyOnHidden"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach(([u, v]) => {
696
+ A.deprecated(!(u in e), u, v);
697
+ }), process.env.NODE_ENV !== "production" && A(!c || typeof c == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && A(!m || typeof m == "boolean" || !("arrowPointAtCenter" in m), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
700
698
  const [ot, vt] = Ft(!1, {
701
699
  value: (a = e.open) !== null && a !== void 0 ? a : e.visible,
702
700
  defaultValue: (t = e.defaultOpen) !== null && t !== void 0 ? t : e.defaultVisible
703
- }), rt = !g && !O && g !== 0, ht = (m) => {
701
+ }), rt = !g && !O && g !== 0, ht = (u) => {
704
702
  var v, E;
705
- vt(rt ? !1 : m), rt || ((v = e.onOpenChange) === null || v === void 0 || v.call(e, m), (E = e.onVisibleChange) === null || E === void 0 || E.call(e, m));
703
+ vt(rt ? !1 : u), rt || ((v = e.onOpenChange) === null || v === void 0 || v.call(e, u), (E = e.onVisibleChange) === null || E === void 0 || E.call(e, u));
706
704
  }, yt = p.useMemo(() => {
707
- var m, v;
705
+ var u, v;
708
706
  let E = C;
709
- return typeof u == "object" && (E = (v = (m = u.pointAtCenter) !== null && m !== void 0 ? m : u.arrowPointAtCenter) !== null && v !== void 0 ? v : C), $ || me({
707
+ return typeof m == "object" && (E = (v = (u = m.pointAtCenter) !== null && u !== void 0 ? u : m.arrowPointAtCenter) !== null && v !== void 0 ? v : C), $ || ue({
710
708
  arrowPointAtCenter: E,
711
- autoAdjustOverflow: j,
709
+ autoAdjustOverflow: T,
712
710
  arrowWidth: H ? w.sizePopupArrow : 0,
713
711
  borderRadius: w.borderRadius,
714
712
  offset: w.marginXXS,
715
713
  visibleFirst: !0
716
714
  });
717
- }, [C, u, $, w]), at = p.useMemo(() => g === 0 ? g : O || g || "", [O, g]), wt = /* @__PURE__ */ p.createElement(Ut, {
715
+ }, [C, m, $, w]), at = p.useMemo(() => g === 0 ? g : O || g || "", [O, g]), wt = /* @__PURE__ */ p.createElement(Zt, {
718
716
  space: !0
719
717
  }, typeof at == "function" ? at() : at), R = M("tooltip", r), Ct = M(), Ot = e["data-popover-inject"];
720
718
  let nt = ot;
721
719
  !("open" in e) && !("visible" in e) && rt && (nt = !1);
722
- const st = /* @__PURE__ */ p.isValidElement(d) && !Zt(d) ? d : /* @__PURE__ */ p.createElement("span", null, d), Z = st.props, $t = !Z.className || typeof Z.className == "string" ? S(Z.className, s || `${R}-open`) : Z.className, [xt, Pt, _t] = ut(R, !Ot), it = gt(R, i), Nt = it.arrowStyle, St = S(et, {
720
+ const st = /* @__PURE__ */ p.isValidElement(d) && !Ut(d) ? d : /* @__PURE__ */ p.createElement("span", null, d), U = st.props, $t = !U.className || typeof U.className == "string" ? S(U.className, s || `${R}-open`) : U.className, [xt, Pt, _t] = mt(R, !Ot), it = gt(R, i), Nt = it.arrowStyle, St = S(et, {
723
721
  [`${R}-rtl`]: X === "rtl"
724
- }, it.className, tt, Pt, _t, W, q.root, P == null ? void 0 : P.root), Tt = S(q.body, P == null ? void 0 : P.body), [jt, At] = Gt("Tooltip", k.zIndex), Rt = /* @__PURE__ */ p.createElement(se, Object.assign({}, k, {
725
- zIndex: jt,
722
+ }, it.className, tt, Pt, _t, W, q.root, P == null ? void 0 : P.root), jt = S(q.body, P == null ? void 0 : P.body), [Tt, At] = Gt("Tooltip", k.zIndex), Rt = /* @__PURE__ */ p.createElement(se, Object.assign({}, k, {
723
+ zIndex: Tt,
726
724
  showArrow: H,
727
725
  placement: J,
728
726
  mouseEnterDelay: B,
@@ -730,7 +728,7 @@ const he = /* @__PURE__ */ p.forwardRef((e, o) => {
730
728
  prefixCls: R,
731
729
  classNames: {
732
730
  root: St,
733
- body: Tt
731
+ body: jt
734
732
  },
735
733
  styles: {
736
734
  root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Nt), F.root), Y), Q), x == null ? void 0 : x.root),
@@ -764,9 +762,9 @@ bt._InternalPanelDoNotUseOrYouWillBeFired = be;
764
762
  export {
765
763
  pt as P,
766
764
  bt as T,
767
- mt as a,
765
+ ut as a,
768
766
  ce as b,
769
- me as c,
767
+ ue as c,
770
768
  le as d,
771
769
  ie as g
772
770
  };
package/dist-lib/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { aO as a } from "./embed-DwLg9RDW.js";
3
- import "./index-CrMcNEAZ.js";
4
- import "./chunk-YDNE64FV-DGyyfCo0.js";
2
+ import { dY as p } from "./embed-mf8t3QXh.js";
3
+ import "react";
5
4
  export {
6
- a as default
5
+ p as default
7
6
  };
@@ -0,0 +1,196 @@
1
+ import { v as y, O as S, d as E } from "./graph-BllA9bmL.js";
2
+ import { jsxs as I, jsx as T } from "react/jsx-runtime";
3
+ import { useState as w, useRef as b, useEffect as C } from "react";
4
+ import { e as $ } from "./style-B5THvtDY.js";
5
+ import { I as A } from "./index-2SysmGHo.js";
6
+ const L = ["EL", "GROOVY", "LUA", "SQL", "OBJ", "G4", "MOCK", "HTTP", "HTTP_CHAIN", "PIPELINE"], N = ["EQ", "NE", "GT", "GTE", "LT", "LTE", "CONTAINS", "EXISTS", "NOT_EMPTY"], U = () => ({
7
+ source: { sourceCode: "", mode: "FULL", batchSize: 500 },
8
+ operators: [],
9
+ sink: { type: "RESULT" },
10
+ failurePolicy: "CONTINUE"
11
+ });
12
+ function f(e) {
13
+ return typeof e == "object" && e !== null && !Array.isArray(e);
14
+ }
15
+ function P(e) {
16
+ const r = JSON.parse(e);
17
+ if (!f(r)) throw new Error("必须是 JSON 对象");
18
+ return r;
19
+ }
20
+ function R(e) {
21
+ return typeof e == "string" && Object.hasOwn(S, e);
22
+ }
23
+ function g(e) {
24
+ if (!f(e)) return;
25
+ const r = {};
26
+ return Object.entries(e).forEach(([t, i]) => {
27
+ t.trim() && f(i) && typeof i.x == "number" && Number.isFinite(i.x) && typeof i.y == "number" && Number.isFinite(i.y) && (r[t] = { x: i.x, y: i.y });
28
+ }), Object.keys(r).length ? r : void 0;
29
+ }
30
+ function _(e, r) {
31
+ let t = r.length + 1;
32
+ for (; r.some((o) => o.id === `step_${t}`); ) t += 1;
33
+ const i = {
34
+ MAP: { fields: { title: "{{title}}" }, keepOriginal: !0 },
35
+ FILTER: { field: "", operator: "NOT_EMPTY" },
36
+ DEDUP: { keys: ["id"] },
37
+ SPLIT: { field: "", delimiter: `
38
+ `, outputField: "" },
39
+ SET: { values: {} },
40
+ SELECT: { fields: ["id"] },
41
+ MERGE: {},
42
+ AI: { agentCode: "", prompt: "", outputField: "ai_result", format: "TEXT" },
43
+ SCRIPT: { type: "GROOVY", source: "return input.row", timeoutMillis: 5e3, parameters: {} }
44
+ };
45
+ return { id: `step_${t}`, type: e, config: i[e] };
46
+ }
47
+ function j(e, r, t) {
48
+ const i = r + t;
49
+ if (i < 0 || i >= e.length) return e;
50
+ const o = e.map((u, n) => ({ ...u, dependsOn: E(e, n) })), [s] = o.splice(r, 1);
51
+ return o.splice(i, 0, s), y(o), o;
52
+ }
53
+ function D(e, r) {
54
+ const t = e.findIndex((s) => s.id === r);
55
+ if (t < 0) return e;
56
+ const i = E(e, t), o = e.map((s, u) => ({
57
+ ...s,
58
+ dependsOn: [...new Set(E(e, u).flatMap((n) => n === r ? i : [n]))]
59
+ })).filter((s) => s.id !== r);
60
+ return y(o), o;
61
+ }
62
+ function G(e, r, t) {
63
+ const i = e[r].id, o = e.map((s, u) => {
64
+ var a;
65
+ const n = u === r ? t : s;
66
+ return { ...n, dependsOn: (a = n.dependsOn) == null ? void 0 : a.map((l) => l === i ? t.id : l) };
67
+ });
68
+ return y(o), o;
69
+ }
70
+ function K(e, r) {
71
+ return { ...e, kbId: r, categoryId: void 0 };
72
+ }
73
+ function c(e, r, t = !1) {
74
+ if (!(t && e === void 0)) {
75
+ if (typeof e != "string") throw new Error(`${r} 必须是字符串`);
76
+ return e;
77
+ }
78
+ }
79
+ function d(e, r) {
80
+ if (typeof e != "string" || !e.trim()) throw new Error(`请填写${r}`);
81
+ }
82
+ function O(e, r) {
83
+ if (!Array.isArray(e) || !e.every((t) => typeof t == "string"))
84
+ throw new Error(`${r} 必须是字符串数组`);
85
+ return e;
86
+ }
87
+ function F(e) {
88
+ const r = e.config, t = `${e.id} · `;
89
+ if (e.type === "MAP") {
90
+ if (!f(r.fields) || !Object.values(r.fields).every((i) => typeof i == "string")) throw new Error(`${t}fields 必须是字符串映射对象`);
91
+ if (typeof r.keepOriginal != "boolean") throw new Error(`${t}keepOriginal 必须是布尔值`);
92
+ }
93
+ if (e.type === "FILTER") {
94
+ if (d(r.field, `${t}过滤字段`), !N.includes(String(r.operator))) throw new Error(`${t}未知过滤条件`);
95
+ if (!["EXISTS", "NOT_EMPTY"].includes(String(r.operator)) && r.value === void 0) throw new Error(`${t}请填写比较值`);
96
+ }
97
+ if (e.type === "DEDUP" || e.type === "SELECT") {
98
+ const i = O(r[e.type === "DEDUP" ? "keys" : "fields"], `${t}字段`);
99
+ if (!i.length || i.some((o) => !o.trim())) throw new Error(`${t}至少填写一个非空字段`);
100
+ }
101
+ if (e.type === "SPLIT" && (["field", "outputField"].forEach((i) => d(r[i], `${t}${i}`)), typeof r.delimiter != "string" || !r.delimiter.length))
102
+ throw new Error(`${t}分隔符不能为空(支持空格和换行)`);
103
+ if (e.type === "SET" && !f(r.values)) throw new Error(`${t}values 必须是对象`);
104
+ if (e.type === "AI" && (["agentCode", "prompt", "outputField"].forEach((i) => d(r[i], `${t}${i}`)), r.format !== "TEXT" && r.format !== "JSON"))
105
+ throw new Error(`${t}format 必须是 TEXT 或 JSON`);
106
+ if (e.type === "SCRIPT") {
107
+ if (typeof r.type != "string" || !L.includes(r.type)) throw new Error(`${t}未知脚本类型`);
108
+ if (typeof r.source != "string" || !r.source.trim() || r.source.length > 65536) throw new Error(`${t}脚本 source 必须非空且不超过 65536 字符`);
109
+ if (r.timeoutMillis !== void 0 && (typeof r.timeoutMillis != "number" || !Number.isInteger(r.timeoutMillis) || r.timeoutMillis < 1 || r.timeoutMillis > 5e3)) throw new Error(`${t}timeoutMillis 必须是 1..5000 的整数`);
110
+ if (r.parameters !== void 0 && !f(r.parameters)) throw new Error(`${t}parameters 必须是 JSON 对象`);
111
+ }
112
+ if (e.type === "MERGE" && Object.keys(r).length) throw new Error(`${t}MERGE config 必须为空对象(仅合流,不做 Join)`);
113
+ }
114
+ function z(e, r = !0) {
115
+ const t = P(e), i = t.source, o = t.sink;
116
+ if (!f(i) || !f(o) || !Array.isArray(t.operators)) throw new Error("source、sink 必须是对象,operators 必须是数组");
117
+ if (i.mode !== "FULL" && i.mode !== "WATERMARK") throw new Error("读取模式必须是 FULL 或 WATERMARK");
118
+ if (o.type !== "KB" && o.type !== "RESULT") throw new Error("目标必须是 KB 或 RESULT");
119
+ if (t.failurePolicy !== "CONTINUE" && t.failurePolicy !== "FAIL_FAST") throw new Error("未知失败策略");
120
+ if (typeof i.batchSize != "number" || !Number.isInteger(i.batchSize) || i.batchSize < 1) throw new Error("batchSize 必须是正整数");
121
+ const s = t.operators.map((n) => {
122
+ if (!f(n) || !R(n.type) || !f(n.config)) throw new Error("步骤类型未知或 config 不是对象");
123
+ if (typeof n.id != "string") throw new Error("步骤 ID 必须是字符串");
124
+ return {
125
+ id: n.id,
126
+ type: n.type,
127
+ config: n.config,
128
+ ...n.dependsOn === void 0 ? {} : { dependsOn: O(n.dependsOn, `${n.id} 的依赖`) }
129
+ };
130
+ });
131
+ if (typeof i.sourceCode != "string") throw new Error("sourceCode 必须是字符串");
132
+ const u = {
133
+ source: {
134
+ sourceCode: i.sourceCode,
135
+ mode: i.mode,
136
+ batchSize: i.batchSize,
137
+ entity: c(i.entity, "entity", !0),
138
+ keyColumn: c(i.keyColumn, "keyColumn", !0),
139
+ watermarkColumn: c(i.watermarkColumn, "watermarkColumn", !0)
140
+ },
141
+ operators: s,
142
+ sink: {
143
+ type: o.type,
144
+ kbId: c(o.kbId, "kbId", !0),
145
+ categoryId: c(o.categoryId, "categoryId", !0),
146
+ titleField: c(o.titleField, "titleField", !0),
147
+ contentField: c(o.contentField, "contentField", !0)
148
+ },
149
+ failurePolicy: t.failurePolicy,
150
+ scheduleCron: c(t.scheduleCron, "scheduleCron", !0),
151
+ ...g(t.layout) ? { layout: g(t.layout) } : {}
152
+ };
153
+ return y(s), r && (d(i.sourceCode, "数据接入"), i.mode === "WATERMARK" && d(i.watermarkColumn, "水位字段"), o.type === "KB" && d(o.kbId, "目标知识库"), s.forEach(F)), u;
154
+ }
155
+ function B({ value: e, onChange: r, onError: t, label: i, rows: o = 6 }) {
156
+ const [s, u] = w(() => JSON.stringify(e, null, 2) ?? "null"), [n, a] = w(""), l = b(e);
157
+ return C(() => {
158
+ l.current !== e && (u(JSON.stringify(e, null, 2) ?? "null"), a(""), l.current = e);
159
+ }, [e]), /* @__PURE__ */ I("div", { children: [
160
+ /* @__PURE__ */ T(
161
+ A.TextArea,
162
+ {
163
+ "aria-label": i,
164
+ className: "etl-code-input",
165
+ rows: o,
166
+ value: s,
167
+ status: n ? "error" : void 0,
168
+ onChange: (m) => {
169
+ u(m.target.value);
170
+ try {
171
+ const p = JSON.parse(m.target.value);
172
+ l.current = p, r(p), a(""), t("");
173
+ } catch (p) {
174
+ const h = `${i}:${$(p)}`;
175
+ a(h), t(h);
176
+ }
177
+ }
178
+ }
179
+ ),
180
+ n && /* @__PURE__ */ T("div", { className: "etl-field-error", role: "alert", children: n })
181
+ ] });
182
+ }
183
+ export {
184
+ N as F,
185
+ B as J,
186
+ L as S,
187
+ _ as a,
188
+ z as b,
189
+ K as c,
190
+ U as e,
191
+ f as i,
192
+ j as m,
193
+ P as p,
194
+ D as r,
195
+ G as u
196
+ };
@@ -1,4 +1,4 @@
1
- import { A as bt, g as It } from "./SearchOutlined-puH6bCY6.js";
1
+ import { c as bt, g as It } from "./_commonjsHelpers-DaMA6jEr.js";
2
2
  function vt(yt) {
3
3
  throw new Error('Could not dynamically require "' + yt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }