@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,24 +1,24 @@
1
1
  import { jsx as s, jsxs as a, Fragment as A } from "react/jsx-runtime";
2
- import { useState as c, useEffect as $ } from "react";
3
- import { e as j, I as E, s as k, t, v as q } from "./embed-CR8XVkMy.js";
2
+ import { useState as c, useEffect as R } from "react";
3
+ import { j as $, I as E, y as k, t, z } from "./embed-mf8t3QXh.js";
4
4
  function Y({
5
5
  target: l,
6
6
  onClose: r,
7
7
  onDone: I
8
8
  }) {
9
- var b, y, S, g;
9
+ var y, b, S, g;
10
10
  const [i, d] = c([]), [o, m] = c(""), [p, M] = c(""), [h, u] = c(!0), [f, N] = c(!1);
11
- $(() => {
11
+ R(() => {
12
12
  let e = !0;
13
13
  return (async () => {
14
14
  var C;
15
15
  u(!0);
16
16
  try {
17
- const x = await k();
17
+ const j = await k();
18
18
  if (!e)
19
19
  return;
20
- const w = (x || []).filter(
21
- (R) => (R.bizType || "SYSTEM_PERMISSION") === "SYSTEM_PERMISSION"
20
+ const w = (j || []).filter(
21
+ (x) => (x.bizType || "SYSTEM_PERMISSION") === "SYSTEM_PERMISSION"
22
22
  );
23
23
  d(w), m(((C = w[0]) == null ? void 0 : C.code) || "");
24
24
  } catch {
@@ -30,14 +30,14 @@ function Y({
30
30
  e = !1;
31
31
  };
32
32
  }, []);
33
- const v = (b = l.resourceCodes) != null && b.length ? l.resourceCodes : [l.code], n = !!((y = l.includedScopes) != null && y.length), T = async () => {
33
+ const v = (y = l.resourceCodes) != null && y.length ? l.resourceCodes : [l.code], n = !!((b = l.includedScopes) != null && b.length), T = async () => {
34
34
  if (!o) {
35
35
  t("无法发起审批", "请先选择审批模板", "warn");
36
36
  return;
37
37
  }
38
38
  N(!0);
39
39
  try {
40
- const e = await q({
40
+ const e = await z({
41
41
  templateCode: o,
42
42
  reason: p.trim() || void 0,
43
43
  title: n ? `申请「${l.name}」角色` : void 0,
@@ -55,7 +55,7 @@ function Y({
55
55
  }
56
56
  };
57
57
  return /* @__PURE__ */ s(
58
- j,
58
+ $,
59
59
  {
60
60
  icon: "check-square",
61
61
  title: `申请「${l.name}」${n ? "角色" : "权限"}`,
@@ -0,0 +1,550 @@
1
+ import * as d from "react";
2
+ import v, { useMemo as He, useImperativeHandle as Ve } from "react";
3
+ import { g as Me, a0 as We, H as j, G as me, br as de, p as fe, R as be, m as Fe, bw as Ae, aS as _e, b9 as k, n as Le, o as ge, t as Pe, x as Ce, aa as ye, v as pe, ad as U, E as he, aT as Oe, L as Ke, _ as qe, b3 as Ge, bx as Xe, M as ve, b2 as je, y as Ue, F as Je, j as Qe, ax as Ye, l as Ze, bc as ke, by as ea } from "./index-DxzorPvG.js";
4
+ import "react-dom/client";
5
+ import "react-dom";
6
+ import { c as I } from "./pages-CticGC6S.js";
7
+ const ie = (e) => {
8
+ if (!e)
9
+ return;
10
+ const {
11
+ closable: a,
12
+ closeIcon: l
13
+ } = e;
14
+ return {
15
+ closable: a,
16
+ closeIcon: l
17
+ };
18
+ }, xe = {}, ue = (e, a) => {
19
+ if (!e && (e === !1 || a === !1 || a === null))
20
+ return !1;
21
+ if (!j(e) && !j(a))
22
+ return null;
23
+ let l = {
24
+ closeIcon: typeof a != "boolean" && j(a) ? a : void 0
25
+ };
26
+ return me(e) && (l = {
27
+ ...l,
28
+ ...e
29
+ }), l;
30
+ }, aa = (e, a, l) => e === !1 ? !1 : e ? de(l, a, e) : a === !1 ? !1 : a ? de(l, a) : l.closable ? l : !1, la = (e, a, l) => {
31
+ const {
32
+ closeIconRender: t
33
+ } = a, {
34
+ closeIcon: s,
35
+ ...c
36
+ } = e;
37
+ let r = s;
38
+ const o = fe(c, !0);
39
+ return j(r) && (t && (r = t(r)), r = /* @__PURE__ */ v.isValidElement(r) ? /* @__PURE__ */ v.cloneElement(r, {
40
+ "aria-label": l,
41
+ ...r.props,
42
+ ...o
43
+ }) : /* @__PURE__ */ v.createElement("span", {
44
+ "aria-label": l,
45
+ ...o
46
+ }, r)), [r, {
47
+ "aria-label": l,
48
+ ...o
49
+ }];
50
+ }, sa = (e, a, l = xe, t = "Close") => {
51
+ const s = ue(e == null ? void 0 : e.closable, e == null ? void 0 : e.closeIcon), c = ue(a == null ? void 0 : a.closable, a == null ? void 0 : a.closeIcon), r = {
52
+ closeIcon: /* @__PURE__ */ v.createElement(be, null),
53
+ ...l
54
+ }, o = aa(s, c, r), u = typeof o != "boolean" ? !!(o != null && o.disabled) : !1;
55
+ if (o === !1)
56
+ return [!1, null, u, {}];
57
+ const [C, i] = la(o, r, t);
58
+ return [!0, C, u, i];
59
+ }, ra = (e, a, l = xe) => {
60
+ const [t] = Me("global", We.global);
61
+ return v.useMemo(() => sa(e, a, {
62
+ closeIcon: /* @__PURE__ */ v.createElement(be, null),
63
+ ...l
64
+ }, t.close), [e, a, l, t.close]);
65
+ }, ta = (e) => {
66
+ const {
67
+ paddingXXS: a,
68
+ lineWidth: l,
69
+ tagPaddingHorizontal: t,
70
+ componentCls: s,
71
+ calc: c
72
+ } = e, r = c(t).sub(l).equal(), o = c(a).sub(l).equal();
73
+ return {
74
+ // Result
75
+ [s]: {
76
+ ...Pe(e),
77
+ display: "inline-block",
78
+ height: "auto",
79
+ paddingInline: r,
80
+ fontSize: e.tagFontSize,
81
+ lineHeight: e.tagLineHeight,
82
+ whiteSpace: "nowrap",
83
+ backgroundColor: e.defaultBg,
84
+ border: `${ge(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
85
+ borderRadius: e.borderRadiusSM,
86
+ opacity: 1,
87
+ transition: `all ${e.motionDurationMid}`,
88
+ textAlign: "start",
89
+ position: "relative",
90
+ // RTL
91
+ [`&${s}-rtl`]: {
92
+ direction: "rtl"
93
+ },
94
+ "&, a, a:hover": {
95
+ color: e.defaultColor
96
+ },
97
+ [`${s}-close-icon`]: {
98
+ marginInlineStart: o,
99
+ fontSize: e.tagIconSize,
100
+ color: e.colorIcon,
101
+ cursor: "pointer",
102
+ transition: `all ${e.motionDurationMid}`,
103
+ "&:hover": {
104
+ color: e.colorTextHeading
105
+ }
106
+ },
107
+ "&-checkable": {
108
+ backgroundColor: "transparent",
109
+ borderColor: "transparent",
110
+ cursor: "pointer",
111
+ [`&:not(${s}-checkable-checked):hover`]: {
112
+ color: e.colorPrimary,
113
+ backgroundColor: e.colorFillSecondary
114
+ },
115
+ "&:active, &-checked": {
116
+ color: e.colorTextLightSolid
117
+ },
118
+ "&-checked": {
119
+ backgroundColor: e.colorPrimary,
120
+ "&:hover": {
121
+ backgroundColor: e.colorPrimaryHover
122
+ }
123
+ },
124
+ "&:active": {
125
+ backgroundColor: e.colorPrimaryActive
126
+ },
127
+ "&-disabled": {
128
+ cursor: "not-allowed",
129
+ [`&:not(${s}-checkable-checked)`]: {
130
+ color: e.colorTextDisabled,
131
+ "&:hover": {
132
+ backgroundColor: "transparent"
133
+ }
134
+ },
135
+ [`&${s}-checkable-checked`]: {
136
+ color: e.colorTextDisabled,
137
+ backgroundColor: e.colorBgContainerDisabled
138
+ },
139
+ "&:hover, &:active": {
140
+ backgroundColor: e.colorBgContainerDisabled,
141
+ color: e.colorTextDisabled
142
+ },
143
+ [`&:not(${s}-checkable-checked):hover`]: {
144
+ color: e.colorTextDisabled
145
+ }
146
+ },
147
+ "&-group": {
148
+ display: "flex",
149
+ flexWrap: "wrap",
150
+ gap: e.paddingXS
151
+ }
152
+ },
153
+ "&-hidden": {
154
+ display: "none"
155
+ },
156
+ // Icons from third-party libraries are a bare `<svg>`, which none of the `.anticon`
157
+ // rules reach. An `<svg>` has no baseline of its own, so it is aligned by its bottom
158
+ // margin edge (CSS 2.1 §10.8.1) and rides above the text. Centre it instead: unlike an
159
+ // `.anticon` (whose `<svg>` is always `1em`, so a fixed `-0.125em` nudge suffices), a
160
+ // third-party `<svg>` may be sized in `px`, so the correction must not depend on size.
161
+ // `display: inline-block` keeps it an atomic inline box so `vertical-align` still applies even
162
+ // under a CSS reset that forces `svg { display: block }` (e.g. Tailwind Preflight), which would
163
+ // otherwise drop the icon onto its own line. `vertical-align: middle` centres the margin box on
164
+ // the x-height line; `margin-block-end` then lifts it by half its own value onto the cap-height
165
+ // centre (capHeight − xHeight ≈ 0.2em across typical fonts), keeping it centred at any icon size.
166
+ // Only matches a bare `<svg>`: an `.anticon` keeps its `<svg>` one level deeper.
167
+ "> svg": {
168
+ display: "inline-block",
169
+ verticalAlign: "middle",
170
+ marginBlockEnd: "0.2em"
171
+ },
172
+ // To ensure that a space will be placed between character and `Icon`.
173
+ [`> ${e.iconCls} + span, > span + ${e.iconCls}, > svg + span, > span + svg`]: {
174
+ marginInlineStart: r
175
+ }
176
+ },
177
+ [`&${e.componentCls}-solid`]: {
178
+ borderColor: "transparent",
179
+ color: e.colorTextLightSolid,
180
+ backgroundColor: e.colorBgSolid,
181
+ [`&${s}-default`]: {
182
+ color: e.solidTextColor
183
+ }
184
+ },
185
+ [`${s}-filled`]: {
186
+ borderColor: "transparent",
187
+ backgroundColor: e.tagBorderlessBg
188
+ },
189
+ [`&${s}-disabled`]: {
190
+ color: e.colorTextDisabled,
191
+ cursor: "not-allowed",
192
+ backgroundColor: e.colorBgContainerDisabled,
193
+ a: {
194
+ cursor: "not-allowed",
195
+ pointerEvents: "none",
196
+ color: e.colorTextDisabled,
197
+ "&:hover": {
198
+ color: e.colorTextDisabled
199
+ }
200
+ },
201
+ "a&": {
202
+ "&:hover, &:active": {
203
+ color: e.colorTextDisabled
204
+ }
205
+ },
206
+ [`&${s}-outlined`]: {
207
+ borderColor: e.colorBorderDisabled
208
+ },
209
+ [`&${s}-solid, &${s}-filled`]: {
210
+ color: e.colorTextDisabled,
211
+ [`${s}-close-icon`]: {
212
+ color: e.colorTextDisabled
213
+ }
214
+ },
215
+ [`${s}-close-icon`]: {
216
+ cursor: "not-allowed",
217
+ color: e.colorTextDisabled,
218
+ "&:hover": {
219
+ color: e.colorTextDisabled
220
+ }
221
+ }
222
+ }
223
+ };
224
+ }, ee = (e) => {
225
+ const {
226
+ lineWidth: a,
227
+ fontSizeIcon: l,
228
+ calc: t
229
+ } = e, s = e.fontSizeSM;
230
+ return Le(e, {
231
+ tagFontSize: s,
232
+ tagLineHeight: ge(t(e.lineHeightSM).mul(s).equal()),
233
+ tagIconSize: t(l).sub(t(a).mul(2)).equal(),
234
+ // Tag icon is much smaller
235
+ tagPaddingHorizontal: 8,
236
+ // Fixed padding.
237
+ tagBorderlessBg: e.defaultBg
238
+ });
239
+ }, ae = (e) => {
240
+ const a = Ae(new _e(e.colorBgSolid), "#fff") ? "#000" : "#fff";
241
+ return {
242
+ defaultBg: new k(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),
243
+ defaultColor: e.colorText,
244
+ solidTextColor: a
245
+ };
246
+ }, le = Fe("Tag", (e) => {
247
+ const a = ee(e);
248
+ return ta(a);
249
+ }, ae), $e = /* @__PURE__ */ d.forwardRef((e, a) => {
250
+ const {
251
+ prefixCls: l,
252
+ style: t,
253
+ className: s,
254
+ checked: c,
255
+ children: r,
256
+ icon: o,
257
+ onChange: u,
258
+ onClick: C,
259
+ onKeyDown: i,
260
+ disabled: S,
261
+ ...z
262
+ } = e, {
263
+ getPrefixCls: h,
264
+ tag: y
265
+ } = d.useContext(Ce), H = d.useContext(ye), x = S ?? H, w = (g) => {
266
+ x || (u == null || u(!c), C == null || C(g));
267
+ }, V = (g) => {
268
+ i == null || i(g), !(g.defaultPrevented || x) && g.key === " " && (g.preventDefault(), g.repeat || u == null || u(!c));
269
+ }, $ = h("tag", l), [M, W] = le($), D = I($, `${$}-checkable`, {
270
+ [`${$}-checkable-checked`]: c,
271
+ [`${$}-checkable-disabled`]: x
272
+ }, y == null ? void 0 : y.className, s, M, W);
273
+ return /* @__PURE__ */ d.createElement("span", {
274
+ ...z,
275
+ ref: a,
276
+ role: "checkbox",
277
+ "aria-checked": c,
278
+ "aria-disabled": x || void 0,
279
+ tabIndex: x ? -1 : 0,
280
+ style: {
281
+ ...y == null ? void 0 : y.style,
282
+ ...t
283
+ },
284
+ className: D,
285
+ onClick: w,
286
+ onKeyDown: V
287
+ }, o, /* @__PURE__ */ d.createElement("span", null, r));
288
+ }), Se = /* @__PURE__ */ v.forwardRef((e, a) => {
289
+ const {
290
+ id: l,
291
+ prefixCls: t,
292
+ rootClassName: s,
293
+ className: c,
294
+ style: r,
295
+ classNames: o,
296
+ styles: u,
297
+ disabled: C,
298
+ options: i,
299
+ value: S,
300
+ defaultValue: z,
301
+ onChange: h,
302
+ multiple: y,
303
+ ...H
304
+ } = e, {
305
+ getPrefixCls: x,
306
+ direction: w,
307
+ className: V,
308
+ style: $,
309
+ classNames: M,
310
+ styles: W
311
+ } = pe("tag"), D = x("tag", t), g = `${D}-checkable-group`, J = Ke(D), [_, L] = le(D, J), P = U($), O = U(r), [F, K] = he([M, o], [W, P, u, O], {
312
+ props: e
313
+ }), Q = He(() => Array.isArray(i) ? i.map((m) => me(m) ? m : {
314
+ value: m,
315
+ label: m
316
+ }) : [], [i]), [f, Y] = Oe(z, S), Z = (m, E) => {
317
+ let B = null;
318
+ if (y) {
319
+ const T = f || [];
320
+ B = m ? [].concat(qe(T), [E.value]) : T.filter((N) => N !== E.value);
321
+ } else
322
+ B = m ? E.value : null;
323
+ Y(B), h == null || h(B);
324
+ }, q = v.useRef(null);
325
+ Ve(a, () => ({
326
+ nativeElement: q.current
327
+ }));
328
+ const G = fe(H, {
329
+ aria: !0,
330
+ data: !0
331
+ });
332
+ return /* @__PURE__ */ v.createElement("div", {
333
+ ...G,
334
+ className: I(g, V, s, {
335
+ [`${g}-disabled`]: C,
336
+ [`${g}-rtl`]: w === "rtl"
337
+ }, _, L, c, F.root),
338
+ style: K.root,
339
+ id: l,
340
+ ref: q
341
+ }, Q.map((m) => /* @__PURE__ */ v.createElement($e, {
342
+ key: m.value,
343
+ className: I(`${g}-item`, F.item, m.className),
344
+ style: {
345
+ ...K.item,
346
+ ...m.style
347
+ },
348
+ checked: y ? (f || []).includes(m.value) : f === m.value,
349
+ onChange: (E) => Z(E, m),
350
+ disabled: C
351
+ }, m.label)));
352
+ });
353
+ process.env.NODE_ENV !== "production" && (Se.displayName = "CheckableTagGroup");
354
+ function oa(e, a) {
355
+ const {
356
+ color: l,
357
+ variant: t,
358
+ bordered: s
359
+ } = e;
360
+ return d.useMemo(() => {
361
+ const c = l == null ? void 0 : l.endsWith("-inverse");
362
+ let r;
363
+ t ? r = t : c ? r = "solid" : s === !1 ? r = "filled" : r = a || "filled";
364
+ let o = c ? l == null ? void 0 : l.replace("-inverse", "") : l;
365
+ o === void 0 && r === "solid" && (o = "default");
366
+ const u = Ge(o), C = Xe(o), i = {};
367
+ if (!u && !C && o)
368
+ if (r === "solid")
369
+ i.backgroundColor = l;
370
+ else {
371
+ const S = new k(o).toHsl();
372
+ S.l = 0.95, i.backgroundColor = new k(S).toHexString(), i.color = l, r === "outlined" && (i.borderColor = l);
373
+ }
374
+ return [r, o, u, C, i];
375
+ }, [l, t, s, a]);
376
+ }
377
+ const ca = (e) => je(e, (a, {
378
+ textColor: l,
379
+ lightBorderColor: t,
380
+ lightColor: s,
381
+ darkColor: c
382
+ }) => ({
383
+ [`${e.componentCls}${e.componentCls}-${a}:not(${e.componentCls}-disabled)`]: {
384
+ [`&${e.componentCls}-outlined`]: {
385
+ backgroundColor: s,
386
+ borderColor: t,
387
+ color: l
388
+ },
389
+ [`&${e.componentCls}-solid`]: {
390
+ backgroundColor: c,
391
+ borderColor: c,
392
+ color: e.colorTextLightSolid
393
+ },
394
+ [`&${e.componentCls}-filled`]: {
395
+ backgroundColor: s,
396
+ color: l
397
+ }
398
+ }
399
+ })), na = ve(["Tag", "preset"], (e) => {
400
+ const a = ee(e);
401
+ return ca(a);
402
+ }, ae);
403
+ function da(e) {
404
+ return typeof e != "string" ? e : e.charAt(0).toUpperCase() + e.slice(1);
405
+ }
406
+ const X = (e, a, l) => {
407
+ const t = da(l);
408
+ return {
409
+ [`${e.componentCls}${e.componentCls}-${a}:not(${e.componentCls}-disabled)`]: {
410
+ [`&${e.componentCls}-outlined`]: {
411
+ backgroundColor: e[`color${t}Bg`],
412
+ borderColor: e[`color${t}Border`],
413
+ color: e[`color${l}`]
414
+ },
415
+ [`&${e.componentCls}-solid`]: {
416
+ backgroundColor: e[`color${l}`],
417
+ borderColor: e[`color${l}`]
418
+ },
419
+ [`&${e.componentCls}-filled`]: {
420
+ backgroundColor: e[`color${t}Bg`],
421
+ color: e[`color${l}`]
422
+ }
423
+ }
424
+ };
425
+ }, ia = ve(["Tag", "status"], (e) => {
426
+ const a = ee(e);
427
+ return [X(a, "success", "Success"), X(a, "processing", "Info"), X(a, "error", "Error"), X(a, "warning", "Warning")];
428
+ }, ae), ua = /* @__PURE__ */ d.forwardRef((e, a) => {
429
+ var ne;
430
+ const {
431
+ prefixCls: l,
432
+ className: t,
433
+ rootClassName: s,
434
+ style: c,
435
+ children: r,
436
+ icon: o,
437
+ color: u,
438
+ variant: C,
439
+ onClose: i,
440
+ bordered: S,
441
+ disabled: z,
442
+ href: h,
443
+ target: y,
444
+ styles: H,
445
+ classNames: x,
446
+ ...w
447
+ } = e, {
448
+ getPrefixCls: V,
449
+ direction: $,
450
+ className: M,
451
+ variant: W,
452
+ style: D,
453
+ classNames: g,
454
+ styles: J
455
+ } = pe("tag");
456
+ if (process.env.NODE_ENV !== "production") {
457
+ const n = Ue("Tag");
458
+ n.deprecated(S !== !1, "bordered={false}", 'variant="filled"'), n.deprecated(!(u != null && u.endsWith("-inverse")), 'color="xxx-inverse"', 'variant="solid"');
459
+ }
460
+ const [_, L, P, O, F] = oa(e, W), K = P || O, Q = d.useContext(ye), f = z ?? Q, {
461
+ tag: Y
462
+ } = d.useContext(Ce), [Z, q] = d.useState(!0), G = Je(w, ["closeIcon", "closable"]), m = {
463
+ ...e,
464
+ color: L,
465
+ variant: _,
466
+ disabled: f
467
+ }, E = U(D), B = U(c), [T, N] = he([g, x], [J, E, H, B], {
468
+ props: m
469
+ }), Te = d.useMemo(() => {
470
+ let n = N.root;
471
+ return f || (n = {
472
+ ...F,
473
+ ...n
474
+ }), n;
475
+ }, [N.root, F, f]), p = V("tag", l), [Ne, De] = le(p), Ee = I(p, M, T.root, `${p}-${_}`, {
476
+ [`${p}-${L}`]: K,
477
+ [`${p}-hidden`]: !Z,
478
+ [`${p}-rtl`]: $ === "rtl",
479
+ [`${p}-disabled`]: f
480
+ }, t, s, Ne, De), re = (n) => {
481
+ f || (n.stopPropagation(), i == null || i(n), !n.defaultPrevented && (h && n.preventDefault(), q(!1)));
482
+ }, te = (n) => {
483
+ (n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.repeat || n.currentTarget.click());
484
+ }, [, Ie] = ra(ie(e), ie(Y), {
485
+ closable: !1,
486
+ closeIconRender: (n) => {
487
+ const ze = /* @__PURE__ */ d.createElement("span", {
488
+ role: "button",
489
+ tabIndex: f ? -1 : 0,
490
+ "aria-disabled": f || void 0,
491
+ className: I(`${p}-close-icon`, T.close),
492
+ onClick: re,
493
+ onKeyDown: te,
494
+ style: N.close
495
+ }, n);
496
+ return ea(n, ze, (b) => ({
497
+ onClick: (R) => {
498
+ var A;
499
+ (A = b == null ? void 0 : b.onClick) == null || A.call(b, R), re(R);
500
+ },
501
+ onKeyDown: (R) => {
502
+ var A;
503
+ (A = b == null ? void 0 : b.onKeyDown) == null || A.call(b, R), R.defaultPrevented || te(R);
504
+ },
505
+ role: "button",
506
+ tabIndex: f ? -1 : 0,
507
+ "aria-disabled": f || void 0,
508
+ className: I(b == null ? void 0 : b.className, `${p}-close-icon`, T.close),
509
+ style: {
510
+ ...N.close,
511
+ ...b == null ? void 0 : b.style
512
+ }
513
+ }));
514
+ }
515
+ }), we = Qe(w.onClick) || r && r.type === "a", oe = Ye(o, {
516
+ className: I(/* @__PURE__ */ d.isValidElement(o) ? (ne = o.props) == null ? void 0 : ne.className : void 0, T.icon),
517
+ style: N.icon
518
+ }), Be = oe ? /* @__PURE__ */ d.createElement(d.Fragment, null, oe, Ze(r) && /* @__PURE__ */ d.createElement("span", {
519
+ className: T.content,
520
+ style: N.content
521
+ }, r)) : r, Re = h ? "a" : "span", ce = /* @__PURE__ */ d.createElement(Re, {
522
+ ...G,
523
+ ref: a,
524
+ className: Ee,
525
+ style: Te,
526
+ href: f ? void 0 : h,
527
+ target: y,
528
+ onClick: f ? void 0 : G.onClick,
529
+ ...h && f ? {
530
+ "aria-disabled": !0
531
+ } : {}
532
+ }, Be, Ie, P && /* @__PURE__ */ d.createElement(na, {
533
+ key: "preset",
534
+ prefixCls: p
535
+ }), O && /* @__PURE__ */ d.createElement(ia, {
536
+ key: "status",
537
+ prefixCls: p
538
+ }));
539
+ return we ? /* @__PURE__ */ d.createElement(ke, {
540
+ component: "Tag"
541
+ }, ce) : ce;
542
+ }), se = ua;
543
+ process.env.NODE_ENV !== "production" && (se.displayName = "Tag");
544
+ se.CheckableTag = $e;
545
+ se.CheckableTagGroup = Se;
546
+ export {
547
+ se as T,
548
+ ie as p,
549
+ ra as u
550
+ };
@@ -0,0 +1,77 @@
1
+ import { bU as F, a9 as I, aG as N, bV as S, bW as j, bX as v, bY as E, a6 as _, bZ as $, b_ as M, b$ as V, c0 as a, c1 as W, c2 as A, c3 as D, c4 as G, c5 as p, c6 as R, c7 as U } from "./embed-mf8t3QXh.js";
2
+ import * as i from "react";
3
+ var Y = function(e, o) {
4
+ var l = {};
5
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && o.indexOf(r) < 0 && (l[r] = e[r]);
6
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
7
+ o.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (l[r[n]] = e[r[n]]);
8
+ return l;
9
+ };
10
+ const z = (e) => {
11
+ const {
12
+ prefixCls: o,
13
+ className: l,
14
+ closeIcon: r,
15
+ closable: n,
16
+ type: c,
17
+ title: h,
18
+ children: d,
19
+ footer: x
20
+ } = e, y = Y(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), {
21
+ getPrefixCls: m
22
+ } = i.useContext(I), b = m(), s = o || m("modal"), C = N(b), [O, w, g] = S(s, C), f = `${s}-confirm`;
23
+ let u = {};
24
+ return c ? u = {
25
+ closable: n ?? !1,
26
+ title: "",
27
+ footer: "",
28
+ children: /* @__PURE__ */ i.createElement(j, Object.assign({}, e, {
29
+ prefixCls: s,
30
+ confirmPrefixCls: f,
31
+ rootPrefixCls: b,
32
+ content: d
33
+ }))
34
+ } : u = {
35
+ closable: n ?? !0,
36
+ title: h,
37
+ footer: x !== null && /* @__PURE__ */ i.createElement(v, Object.assign({}, e)),
38
+ children: d
39
+ }, O(/* @__PURE__ */ i.createElement(E, Object.assign({
40
+ prefixCls: s,
41
+ className: _(w, `${s}-pure-panel`, c && f, c && `${f}-${c}`, l, g, C)
42
+ }, y, {
43
+ closeIcon: $(s, r),
44
+ closable: n
45
+ }, u)));
46
+ }, B = F(z);
47
+ function P(e) {
48
+ return a(U(e));
49
+ }
50
+ const t = M;
51
+ t.useModal = V;
52
+ t.info = function(o) {
53
+ return a(W(o));
54
+ };
55
+ t.success = function(o) {
56
+ return a(A(o));
57
+ };
58
+ t.error = function(o) {
59
+ return a(D(o));
60
+ };
61
+ t.warning = P;
62
+ t.warn = P;
63
+ t.confirm = function(o) {
64
+ return a(G(o));
65
+ };
66
+ t.destroyAll = function() {
67
+ for (; p.length; ) {
68
+ const o = p.pop();
69
+ o && o();
70
+ }
71
+ };
72
+ t.config = R;
73
+ t._InternalPanelDoNotUseOrYouWillBeFired = B;
74
+ process.env.NODE_ENV !== "production" && (t.displayName = "Modal");
75
+ export {
76
+ t as M
77
+ };