@maketribe/ms-app 4.0.7 → 4.0.9

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 (252) hide show
  1. package/dist/cjs/{404-BrOO946Y.cjs → 404-BPEClOTg.cjs} +2 -2
  2. package/dist/cjs/{404-BrOO946Y.cjs.map → 404-BPEClOTg.cjs.map} +1 -1
  3. package/dist/cjs/{Editor-Cn2kyYJI.cjs → Editor-Dm6iVXqg.cjs} +3 -3
  4. package/dist/cjs/{Editor-Cn2kyYJI.cjs.map → Editor-Dm6iVXqg.cjs.map} +1 -1
  5. package/dist/cjs/Editor-UijVew0S.cjs.map +1 -1
  6. package/dist/cjs/{Editor-B-0M2sL3.cjs → Editor-r0C51uF9.cjs} +2 -2
  7. package/dist/cjs/{Editor-B-0M2sL3.cjs.map → Editor-r0C51uF9.cjs.map} +1 -1
  8. package/dist/cjs/{PermissionManage-mpEUhGB1.cjs → PermissionManage-C7Xg-wii.cjs} +4 -5
  9. package/dist/cjs/{PermissionManage-mpEUhGB1.cjs.map → PermissionManage-C7Xg-wii.cjs.map} +1 -1
  10. package/dist/cjs/{ResourceSelectInput-DE4Qst5X.cjs → ResourceSelectInput-CwlmTqbd.cjs} +2 -2
  11. package/dist/cjs/ResourceSelectInput-CwlmTqbd.cjs.map +1 -0
  12. package/dist/cjs/{dialog-Cb8wTzwE.cjs → dialog-Cvm2-doC.cjs} +2 -2
  13. package/dist/cjs/{dialog-Cb8wTzwE.cjs.map → dialog-Cvm2-doC.cjs.map} +1 -1
  14. package/dist/cjs/{dialog-CI8Z6by3.cjs → dialog-DMcs6fRc.cjs} +2 -2
  15. package/dist/cjs/{dialog-CI8Z6by3.cjs.map → dialog-DMcs6fRc.cjs.map} +1 -1
  16. package/dist/cjs/{dialog-ZeOPayng.cjs → dialog-DNfS8tGa.cjs} +2 -2
  17. package/dist/cjs/{dialog-ZeOPayng.cjs.map → dialog-DNfS8tGa.cjs.map} +1 -1
  18. package/dist/cjs/{edit-BUmPAJKU.cjs → edit-DJ4DPrce.cjs} +4 -5
  19. package/dist/cjs/{edit-BUmPAJKU.cjs.map → edit-DJ4DPrce.cjs.map} +1 -1
  20. package/dist/cjs/index-1agV8Gnh.cjs.map +1 -1
  21. package/dist/cjs/{index-BybWaDYx.cjs → index-B4ZWoHMl.cjs} +4 -6
  22. package/dist/cjs/{index-BybWaDYx.cjs.map → index-B4ZWoHMl.cjs.map} +1 -1
  23. package/dist/cjs/{index-tSPM88jH.cjs → index-B6GntGqH.cjs} +4 -4
  24. package/dist/cjs/{index-tSPM88jH.cjs.map → index-B6GntGqH.cjs.map} +1 -1
  25. package/dist/cjs/{index-CQ7eZdx4.cjs → index-B9rw_5us.cjs} +3 -4
  26. package/dist/cjs/{index-CQ7eZdx4.cjs.map → index-B9rw_5us.cjs.map} +1 -1
  27. package/dist/cjs/{index-Cw3dD4U-.cjs → index-BAbHrjt0.cjs} +2 -2
  28. package/dist/cjs/{index-Cw3dD4U-.cjs.map → index-BAbHrjt0.cjs.map} +1 -1
  29. package/dist/cjs/{index-ZHU2ZXBm.cjs → index-BC2an1Uu.cjs} +2 -2
  30. package/dist/cjs/{index-ZHU2ZXBm.cjs.map → index-BC2an1Uu.cjs.map} +1 -1
  31. package/dist/cjs/{index-ejRYnXoW.cjs → index-BCw3a06g.cjs} +10 -11
  32. package/dist/cjs/index-BCw3a06g.cjs.map +1 -0
  33. package/dist/cjs/{index-D0QoF5bD.cjs → index-BI4quwn5.cjs} +3 -4
  34. package/dist/cjs/{index-D0QoF5bD.cjs.map → index-BI4quwn5.cjs.map} +1 -1
  35. package/dist/cjs/{index-BNC2Y5bC.cjs → index-BUCV8-xD.cjs} +890 -1128
  36. package/dist/cjs/index-BUCV8-xD.cjs.map +1 -0
  37. package/dist/cjs/{index-B-F54DSb.cjs → index-BbTdkhEQ.cjs} +2 -2
  38. package/dist/cjs/{index-B-F54DSb.cjs.map → index-BbTdkhEQ.cjs.map} +1 -1
  39. package/dist/cjs/{index-BYuiQ9BW.cjs → index-C3g5CFYi.cjs} +3 -3
  40. package/dist/cjs/{index-BYuiQ9BW.cjs.map → index-C3g5CFYi.cjs.map} +1 -1
  41. package/dist/cjs/{index-C2CjifJI.cjs → index-C8QLFii6.cjs} +3 -3
  42. package/dist/cjs/{index-C2CjifJI.cjs.map → index-C8QLFii6.cjs.map} +1 -1
  43. package/dist/cjs/index-CZGf6tYf.cjs.map +1 -1
  44. package/dist/cjs/{index-BRK2tsT2.cjs → index-C_-dvvOO.cjs} +17 -32
  45. package/dist/cjs/{index-BRK2tsT2.cjs.map → index-C_-dvvOO.cjs.map} +1 -1
  46. package/dist/cjs/{index-yxoZBsyr.cjs → index-CgnYqmo9.cjs} +3 -3
  47. package/dist/cjs/{index-yxoZBsyr.cjs.map → index-CgnYqmo9.cjs.map} +1 -1
  48. package/dist/cjs/index-Cj3GY0CU.cjs.map +1 -1
  49. package/dist/cjs/{index-BSTG0iOp.cjs → index-CpROwYqz.cjs} +2 -2
  50. package/dist/cjs/{index-BSTG0iOp.cjs.map → index-CpROwYqz.cjs.map} +1 -1
  51. package/dist/cjs/{index-BROr1jy1.cjs → index-CrMSJRSa.cjs} +2 -2
  52. package/dist/cjs/{index-BROr1jy1.cjs.map → index-CrMSJRSa.cjs.map} +1 -1
  53. package/dist/cjs/{index-C5fJA1lV.cjs → index-Cz456tw_.cjs} +2 -2
  54. package/dist/cjs/{index-C5fJA1lV.cjs.map → index-Cz456tw_.cjs.map} +1 -1
  55. package/dist/cjs/{index-Sj0Y5AbR.cjs → index-D7f3Rl6k.cjs} +3 -3
  56. package/dist/cjs/{index-Sj0Y5AbR.cjs.map → index-D7f3Rl6k.cjs.map} +1 -1
  57. package/dist/cjs/index-D9rm8vzi.cjs.map +1 -1
  58. package/dist/cjs/{index-CSCC0-hX.cjs → index-DAFPSj10.cjs} +3 -3
  59. package/dist/cjs/{index-CSCC0-hX.cjs.map → index-DAFPSj10.cjs.map} +1 -1
  60. package/dist/cjs/{index-CwD-1sTs.cjs → index-DU1N0l6j.cjs} +2 -2
  61. package/dist/cjs/{index-CwD-1sTs.cjs.map → index-DU1N0l6j.cjs.map} +1 -1
  62. package/dist/cjs/{index-BozjwRvF.cjs → index-DXasMfCq.cjs} +5 -8
  63. package/dist/cjs/{index-BozjwRvF.cjs.map → index-DXasMfCq.cjs.map} +1 -1
  64. package/dist/cjs/{index-D-CHh2P4.cjs → index-DZUlc_v7.cjs} +2 -2
  65. package/dist/cjs/index-DZUlc_v7.cjs.map +1 -0
  66. package/dist/cjs/index-D_CB0k2e.cjs.map +1 -1
  67. package/dist/cjs/{index-Dorrdxn2.cjs → index-DdcsqstF.cjs} +2 -2
  68. package/dist/cjs/{index-Dorrdxn2.cjs.map → index-DdcsqstF.cjs.map} +1 -1
  69. package/dist/cjs/{index-C-4u00mH.cjs → index-DhYT_qm1.cjs} +6 -11
  70. package/dist/cjs/{index-C-4u00mH.cjs.map → index-DhYT_qm1.cjs.map} +1 -1
  71. package/dist/cjs/{index-CCYsxxsJ.cjs → index-Dsq6ODhZ.cjs} +2 -2
  72. package/dist/cjs/{index-CCYsxxsJ.cjs.map → index-Dsq6ODhZ.cjs.map} +1 -1
  73. package/dist/cjs/{index-F3sF1nOn.cjs → index-DwvlZC6R.cjs} +2 -2
  74. package/dist/cjs/{index-F3sF1nOn.cjs.map → index-DwvlZC6R.cjs.map} +1 -1
  75. package/dist/cjs/index-RjnvS-h4.cjs.map +1 -1
  76. package/dist/cjs/{index-Cf8DTE1L.cjs → index-WOD9EhUR.cjs} +2 -2
  77. package/dist/cjs/{index-Cf8DTE1L.cjs.map → index-WOD9EhUR.cjs.map} +1 -1
  78. package/dist/cjs/{index-JyLxed9d.cjs → index-XCAqvZkT.cjs} +2 -2
  79. package/dist/cjs/index-XCAqvZkT.cjs.map +1 -0
  80. package/dist/cjs/{index-Bn1by57_.cjs → index-i7_EofWw.cjs} +4 -5
  81. package/dist/cjs/{index-Bn1by57_.cjs.map → index-i7_EofWw.cjs.map} +1 -1
  82. package/dist/cjs/{index-DSSgD6DK.cjs → index-q1_p8QOz.cjs} +2 -2
  83. package/dist/cjs/{index-DSSgD6DK.cjs.map → index-q1_p8QOz.cjs.map} +1 -1
  84. package/dist/cjs/index.js +1 -1
  85. package/dist/cjs/{style.css → ms-app.css} +14 -14
  86. package/dist/cjs/{normal-wyPOBYAE.cjs → normal-BwrvpsP7.cjs} +2 -2
  87. package/dist/cjs/{normal-wyPOBYAE.cjs.map → normal-BwrvpsP7.cjs.map} +1 -1
  88. package/dist/cjs/{normal-b4IPtja5.cjs → normal-dqsyELbO.cjs} +2 -2
  89. package/dist/cjs/{normal-b4IPtja5.cjs.map → normal-dqsyELbO.cjs.map} +1 -1
  90. package/dist/cjs/{table-BGthpvL-.cjs → table-DwtI3Z1Y.cjs} +5 -5
  91. package/dist/cjs/{table-BGthpvL-.cjs.map → table-DwtI3Z1Y.cjs.map} +1 -1
  92. package/dist/cjs/use-condition-BsNGbgF4.cjs.map +1 -1
  93. package/dist/esm/{404-DfOf8KEr.js → 404-D-X3EKEl.js} +3 -3
  94. package/dist/esm/{404-DfOf8KEr.js.map → 404-D-X3EKEl.js.map} +1 -1
  95. package/dist/esm/Editor-C6qfKcVi.js.map +1 -1
  96. package/dist/esm/{Editor-io6yY4kQ.js → Editor-CPeJtlen.js} +2 -2
  97. package/dist/esm/{Editor-io6yY4kQ.js.map → Editor-CPeJtlen.js.map} +1 -1
  98. package/dist/esm/{Editor-DBENXvXq.js → Editor-D8ao5xa_.js} +3 -3
  99. package/dist/esm/{Editor-DBENXvXq.js.map → Editor-D8ao5xa_.js.map} +1 -1
  100. package/dist/esm/{PermissionManage-DrtBafJc.js → PermissionManage-Drqh6bZl.js} +6 -7
  101. package/dist/esm/{PermissionManage-DrtBafJc.js.map → PermissionManage-Drqh6bZl.js.map} +1 -1
  102. package/dist/esm/{ResourceSelectInput-DOMBcxMu.js → ResourceSelectInput-Dh1liggt.js} +2 -2
  103. package/dist/esm/{ResourceSelectInput-DOMBcxMu.js.map → ResourceSelectInput-Dh1liggt.js.map} +1 -1
  104. package/dist/esm/{dialog-BdI4XimU.js → dialog-BCUjKmRJ.js} +3 -3
  105. package/dist/esm/{dialog-BdI4XimU.js.map → dialog-BCUjKmRJ.js.map} +1 -1
  106. package/dist/esm/{dialog-3s5_ieqx.js → dialog-Dfw2Hyma.js} +3 -3
  107. package/dist/esm/{dialog-3s5_ieqx.js.map → dialog-Dfw2Hyma.js.map} +1 -1
  108. package/dist/esm/{dialog-j_yGtIZ7.js → dialog-Dx1_PByu.js} +3 -3
  109. package/dist/esm/{dialog-j_yGtIZ7.js.map → dialog-Dx1_PByu.js.map} +1 -1
  110. package/dist/esm/{edit-DGLJIgoZ.js → edit-CL9ew0K5.js} +5 -6
  111. package/dist/esm/{edit-DGLJIgoZ.js.map → edit-CL9ew0K5.js.map} +1 -1
  112. package/dist/esm/{index-B6LEaKnh.js → index-8_tegZTS.js} +3 -3
  113. package/dist/esm/{index-B6LEaKnh.js.map → index-8_tegZTS.js.map} +1 -1
  114. package/dist/esm/{index-CZ0GujBv.js → index-9xY--M0f.js} +3 -3
  115. package/dist/esm/index-9xY--M0f.js.map +1 -0
  116. package/dist/esm/{index-DqGUsw-a.js → index-B-aUha22.js} +898 -1136
  117. package/dist/esm/index-B-aUha22.js.map +1 -0
  118. package/dist/esm/{index-CxrJRqpf.js → index-BGATqI6o.js} +3 -3
  119. package/dist/esm/{index-CxrJRqpf.js.map → index-BGATqI6o.js.map} +1 -1
  120. package/dist/esm/{index-CLkgAMaX.js → index-BHRnbCp4.js} +5 -7
  121. package/dist/esm/{index-CLkgAMaX.js.map → index-BHRnbCp4.js.map} +1 -1
  122. package/dist/esm/{index-DhTUEIXO.js → index-BJyjbwYB.js} +4 -5
  123. package/dist/esm/{index-DhTUEIXO.js.map → index-BJyjbwYB.js.map} +1 -1
  124. package/dist/esm/{index-CBZgFhlH.js → index-BM4RT6bs.js} +2 -2
  125. package/dist/esm/{index-CBZgFhlH.js.map → index-BM4RT6bs.js.map} +1 -1
  126. package/dist/esm/index-BOLuOARv.js.map +1 -1
  127. package/dist/esm/{index-BoExjw9h.js → index-BXfKq4TE.js} +3 -3
  128. package/dist/esm/{index-BoExjw9h.js.map → index-BXfKq4TE.js.map} +1 -1
  129. package/dist/esm/{index-DMXFPtO2.js → index-B_WzSRqh.js} +3 -3
  130. package/dist/esm/{index-DMXFPtO2.js.map → index-B_WzSRqh.js.map} +1 -1
  131. package/dist/esm/index-Baelgnzy.js.map +1 -1
  132. package/dist/esm/{index-BNeue0oH.js → index-BesRQOOQ.js} +2 -2
  133. package/dist/esm/{index-BNeue0oH.js.map → index-BesRQOOQ.js.map} +1 -1
  134. package/dist/esm/{index-C9JMPNAn.js → index-Bhhtz3Yu.js} +6 -9
  135. package/dist/esm/{index-C9JMPNAn.js.map → index-Bhhtz3Yu.js.map} +1 -1
  136. package/dist/esm/{index-DbhTHuYg.js → index-BsWs1zP5.js} +2 -2
  137. package/dist/esm/{index-DbhTHuYg.js.map → index-BsWs1zP5.js.map} +1 -1
  138. package/dist/esm/{index-CaDReIhH.js → index-BuTSTk63.js} +7 -12
  139. package/dist/esm/{index-CaDReIhH.js.map → index-BuTSTk63.js.map} +1 -1
  140. package/dist/esm/{index-CDI8N6xZ.js → index-ByFdp6oy.js} +2 -2
  141. package/dist/esm/{index-CDI8N6xZ.js.map → index-ByFdp6oy.js.map} +1 -1
  142. package/dist/esm/{index-nsFKZAN1.js → index-CG4NeJSD.js} +18 -33
  143. package/dist/esm/{index-nsFKZAN1.js.map → index-CG4NeJSD.js.map} +1 -1
  144. package/dist/esm/index-CII7QOSh.js.map +1 -1
  145. package/dist/esm/{index-DMbOktED.js → index-CrIWIc_t.js} +3 -3
  146. package/dist/esm/{index-DMbOktED.js.map → index-CrIWIc_t.js.map} +1 -1
  147. package/dist/esm/{index-eEpssLfk.js → index-D4UQG5qr.js} +3 -3
  148. package/dist/esm/{index-eEpssLfk.js.map → index-D4UQG5qr.js.map} +1 -1
  149. package/dist/esm/{index-WLPh41ZY.js → index-DIjf8saG.js} +3 -3
  150. package/dist/esm/{index-WLPh41ZY.js.map → index-DIjf8saG.js.map} +1 -1
  151. package/dist/esm/{index-D6yp_g0q.js → index-DNLqF2ga.js} +10 -11
  152. package/dist/esm/index-DNLqF2ga.js.map +1 -0
  153. package/dist/esm/{index-BIhphkZ9.js → index-DRMoT6dv.js} +3 -3
  154. package/dist/esm/index-DRMoT6dv.js.map +1 -0
  155. package/dist/esm/index-DVjlAsMm.js.map +1 -1
  156. package/dist/esm/{index-BaQNlWD6.js → index-Dc66zrKf.js} +3 -3
  157. package/dist/esm/{index-BaQNlWD6.js.map → index-Dc66zrKf.js.map} +1 -1
  158. package/dist/esm/{index-C-PIVDFH.js → index-Df_PDwBj.js} +4 -4
  159. package/dist/esm/{index-C-PIVDFH.js.map → index-Df_PDwBj.js.map} +1 -1
  160. package/dist/esm/{index-C41VoUBt.js → index-DjB2Bpvo.js} +2 -2
  161. package/dist/esm/{index-C41VoUBt.js.map → index-DjB2Bpvo.js.map} +1 -1
  162. package/dist/esm/{index-Cm2H1sJO.js → index-DwmNH96j.js} +2 -2
  163. package/dist/esm/{index-Cm2H1sJO.js.map → index-DwmNH96j.js.map} +1 -1
  164. package/dist/esm/{index-BCFkYlgt.js → index-MQ8OZGCg.js} +2 -2
  165. package/dist/esm/{index-BCFkYlgt.js.map → index-MQ8OZGCg.js.map} +1 -1
  166. package/dist/esm/{index-COF3u0iD.js → index-RIqErp5L.js} +4 -5
  167. package/dist/esm/{index-COF3u0iD.js.map → index-RIqErp5L.js.map} +1 -1
  168. package/dist/esm/index-UGKoGZpd.js.map +1 -1
  169. package/dist/esm/{index-pEvELOsK.js → index-X4uZVo2B.js} +2 -2
  170. package/dist/esm/{index-pEvELOsK.js.map → index-X4uZVo2B.js.map} +1 -1
  171. package/dist/esm/index-YO7GGbnc.js.map +1 -1
  172. package/dist/esm/{index-DCHuhGP6.js → index-nAOtrNQ-.js} +4 -5
  173. package/dist/esm/{index-DCHuhGP6.js.map → index-nAOtrNQ-.js.map} +1 -1
  174. package/dist/esm/{index-iJD2Oik7.js → index-vFxwAa_4.js} +2 -2
  175. package/dist/esm/{index-iJD2Oik7.js.map → index-vFxwAa_4.js.map} +1 -1
  176. package/dist/esm/index.js +3 -3
  177. package/dist/esm/{style.css → ms-app.css} +14 -14
  178. package/dist/esm/{normal-DXMV_-7_.js → normal-By6pxQ8V.js} +3 -3
  179. package/dist/esm/{normal-DXMV_-7_.js.map → normal-By6pxQ8V.js.map} +1 -1
  180. package/dist/esm/{normal-D1EvEflK.js → normal-IcqK9eiC.js} +3 -3
  181. package/dist/esm/{normal-D1EvEflK.js.map → normal-IcqK9eiC.js.map} +1 -1
  182. package/dist/esm/{table-WKqWgZ0P.js → table-CDFkhcnd.js} +6 -6
  183. package/dist/esm/{table-WKqWgZ0P.js.map → table-CDFkhcnd.js.map} +1 -1
  184. package/dist/esm/use-condition-CM-TzG8I.js.map +1 -1
  185. package/dist/types/components/basic/ConfigProvider/composables.d.ts +1 -1
  186. package/dist/types/components/basic/DataSelect/DataSelect.d.ts +2 -2
  187. package/dist/types/components/basic/DataSelect/index.d.ts +2 -2
  188. package/dist/types/components/basic/DataSelect/options.d.ts +1 -1
  189. package/dist/types/components/basic/DataTreeSelect/DataTreeSelect.d.ts +3 -0
  190. package/dist/types/components/basic/DataTreeSelect/index.d.ts +3 -0
  191. package/dist/types/components/basic/DataTreeSelect/options.d.ts +1 -0
  192. package/dist/types/components/basic/DynamicFormPanel/DynamicFormPanel.d.ts +2 -2
  193. package/dist/types/components/basic/LexicalEditor/LexicalComposer.vue.d.ts +5 -9
  194. package/dist/types/components/basic/LexicalEditor/plugins/AutoFocusPlugin.vue.d.ts +5 -7
  195. package/dist/types/components/basic/LexicalEditor/plugins/HistoryPlugin.vue.d.ts +4 -6
  196. package/dist/types/components/basic/LexicalEditor/plugins/LexicalMarkdownShortcutPlugin.vue.d.ts +6 -8
  197. package/dist/types/components/basic/LexicalEditor/plugins/LinkPlugin.vue.d.ts +4 -6
  198. package/dist/types/components/basic/LexicalEditor/stage/ContentEditable.vue.d.ts +7 -27
  199. package/dist/types/components/basic/LexicalEditor/stage/index.vue.d.ts +5 -11
  200. package/dist/types/components/basic/SvgIcon/SvgIcon.vue.d.ts +6 -12
  201. package/dist/types/components/basic/VisualPageEditor/editor.vue.d.ts +7 -10
  202. package/dist/types/components/basic/VisualPageEditor/index.d.ts +3 -2
  203. package/dist/types/components/business/ResourceManager/index.d.ts +1 -1
  204. package/dist/types/components/business/ResourceManager/index.vue.d.ts +5 -9
  205. package/dist/types/components/business/Upload/UploadFile.vue.d.ts +7 -11
  206. package/dist/types/components/business/Upload/UploadImage.vue.d.ts +2 -2
  207. package/dist/types/components/business/Upload/UploadVideo.vue.d.ts +2 -2
  208. package/dist/types/components/business/Upload/index.d.ts +9 -9
  209. package/dist/types/components/business/Upload/options.d.ts +3 -3
  210. package/dist/types/components/data-model/data-form/data-form-options.d.ts +1 -1
  211. package/dist/types/components/data-model/data-form/data-form.vue.d.ts +18 -24
  212. package/dist/types/components/data-model/data-form/index.d.ts +6 -6
  213. package/dist/types/components/data-model/data-group-panel/index.vue.d.ts +18 -21
  214. package/dist/types/components/data-model/data-table/components/column-tag/column-tag-options.d.ts +1 -1
  215. package/dist/types/components/data-model/data-table/components/column-tag/column-tag.d.ts +2 -2
  216. package/dist/types/components/data-model/data-table/components/column-tag/index.d.ts +2 -2
  217. package/dist/types/components/data-model/data-table/data-table-options.d.ts +1 -1
  218. package/dist/types/components/data-model/data-table/data-table.vue.d.ts +9 -15
  219. package/dist/types/components/data-model/data-table/index.d.ts +6 -6
  220. package/dist/types/components/data-model/data-table/views/tree/index.d.ts +14 -14
  221. package/dist/types/components/data-model/data-table/views/tree/tree.d.ts +14 -14
  222. package/dist/types/components/data-model/data-tree-list/index.d.ts +2 -2
  223. package/dist/types/components/data-model/data-tree-list/index.vue.d.ts +8 -996
  224. package/dist/types/components/layouts/AsyncComponentView/index.d.ts +1 -1
  225. package/dist/types/components/layouts/AsyncComponentView/index.vue.d.ts +5 -9
  226. package/dist/types/components/layouts/ListItem/index.d.ts +1 -1
  227. package/dist/types/components/layouts/ListItem/index.vue.d.ts +5 -9
  228. package/dist/types/components/layouts/PagePanel/index.d.ts +15 -8
  229. package/dist/types/components/layouts/PagePanel/index.vue.d.ts +19 -16
  230. package/dist/types/components/layouts/SimplePageLayout/index.d.ts +1 -1
  231. package/dist/types/components/layouts/SimplePageLayout/index.vue.d.ts +5 -9
  232. package/dist/types/components/layouts/SlideFadeTransition/index.d.ts +1 -1
  233. package/dist/types/components/layouts/SlideFadeTransition/index.vue.d.ts +5 -9
  234. package/dist/types/layouts/components/Breadcrumb/index.vue.d.ts +5 -9
  235. package/dist/types/layouts/components/Breadcrumb/item.vue.d.ts +12 -20
  236. package/dist/types/layouts/components/Kbd/index.vue.d.ts +5 -9
  237. package/dist/types/layouts/components/Logo/index.vue.d.ts +6 -9
  238. package/dist/types/layouts/components/Menu/index.vue.d.ts +2 -3
  239. package/dist/types/layouts/components/Menu/item.vue.d.ts +2 -3
  240. package/dist/types/layouts/components/Menu/sub.vue.d.ts +2 -3
  241. package/dist/types/layouts/store/modules/tabbar.d.ts +3 -3
  242. package/dist/types/layouts/utils/composables/useViewTransition.d.ts +1 -1
  243. package/package.json +9 -9
  244. package/dist/cjs/ResourceSelectInput-DE4Qst5X.cjs.map +0 -1
  245. package/dist/cjs/index-BNC2Y5bC.cjs.map +0 -1
  246. package/dist/cjs/index-D-CHh2P4.cjs.map +0 -1
  247. package/dist/cjs/index-JyLxed9d.cjs.map +0 -1
  248. package/dist/cjs/index-ejRYnXoW.cjs.map +0 -1
  249. package/dist/esm/index-BIhphkZ9.js.map +0 -1
  250. package/dist/esm/index-CZ0GujBv.js.map +0 -1
  251. package/dist/esm/index-D6yp_g0q.js.map +0 -1
  252. package/dist/esm/index-DqGUsw-a.js.map +0 -1
@@ -1,32 +1,27 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja;
5
- import { defineAsyncComponent, reactive, ref, getCurrentInstance, inject, computed, unref, provide, defineComponent, createVNode, renderSlot, isVNode, watch, isRef, onBeforeUnmount, resolveComponent, openBlock, createBlock, withCtx, createTextVNode, createElementVNode, createElementBlock, Fragment, renderList, createCommentVNode, normalizeClass, normalizeStyle, withDirectives, resolveDirective, onMounted, h, shallowReactive, withModifiers, watchEffect, onUnmounted, readonly, useSlots, toRaw, mergeProps, nextTick, createSlots, toDisplayString, Suspense, resolveDynamicComponent, shallowRef, Teleport, pushScopeId, popScopeId, Transition, render, toHandlers, TransitionGroup, vShow, onBeforeUpdate, withKeys, vModelText, normalizeProps, guardReactiveProps, onErrorCaptured, KeepAlive } from "vue";
6
- import { Components, Operator, DataTable as DataTable$1, DataForm as DataForm$1, ComponentsCombine, isWhereFilter, Dialoger, Messager, FormColumn, DataTree, RefreshButton, AddButton, TableHeaderItem as TableHeaderItem$1, FilterColumn, TableColumn, TableActionColumn, DataFormType, ActionButton, EditButton, DeleteButton, TableSelectCacheColumn, LoadingManager, FormDetailColumn, ImportButton, TableHeaderButton, Notificationer, SkeletonMessageSender, SkeletonDialoger } from "@maketribe/dm";
1
+ import { defineAsyncComponent, reactive, ref, getCurrentInstance, unref, computed, provide, inject, defineComponent, createVNode, renderSlot, isVNode, watch, isRef, onBeforeUnmount, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, createCommentVNode, createElementBlock, Fragment, renderList, createTextVNode, normalizeStyle, normalizeClass, withDirectives, resolveDirective, onMounted, h, shallowReactive, withModifiers, onUnmounted, watchEffect, readonly, useSlots, toRaw, mergeProps, nextTick, createSlots, toDisplayString, Suspense, resolveDynamicComponent, shallowRef, Teleport, pushScopeId, popScopeId, Transition, render, toHandlers, TransitionGroup, vShow, onBeforeUpdate, withKeys, vModelText, normalizeProps, guardReactiveProps, onErrorCaptured, KeepAlive } from "vue";
2
+ import { Components, Operator, DataTable as DataTable$1, DataForm as DataForm$1, ComponentsCombine, isWhereFilter, Messager, Dialoger, FormColumn, DataTree, RefreshButton, AddButton, TableHeaderItem as TableHeaderItem$1, FilterColumn, TableColumn, TableActionColumn, DataFormType, ActionButton, EditButton, DeleteButton, TableSelectCacheColumn, LoadingManager, FormDetailColumn, ImportButton, TableHeaderButton, Notificationer, SkeletonMessageSender, SkeletonDialoger } from "@maketribe/dm";
7
3
  import { ElInput, ElInputNumber, ElConfigProvider, ElButton, ElSelect, ElOption, ElPagination, ElDatePicker, useFormItem as useFormItem$1, ElPopover, ElScrollbar, ElTooltip, ElForm, ElFormItem, ElCollapse, ElCollapseItem, useFormDisabled, ElCard, ElTableColumn, ElTable, ElEmpty, ElTag, ElTree, ElMessageBox, ElIcon, ElMessage, ElImage, ElTabs, ElTabPane, ElRow, ElCol, ElLoading, ElDialog, ElAlert, ElProgress, ElCheckbox, ElNotification, ElUpload, ElDrawer, ElButtonGroup, ElBadge } from "element-plus";
8
4
  import { Disposable, Event, createDisposable, md5, buildProps, withInstall, aesEncrypt, aesDecrypt, fileSelect, base64ToBlob, postTraverse, makeInstaller } from "@maketribe/utils";
9
5
  import { useRoute, useRouter, createRouter, createWebHashHistory } from "vue-router";
10
- import { ACCESS_TOKEN_HEADER, X_ACCESS_TOKEN_HEADER, AUTHORIZATION, AUTHORIZATION_PREFIX, X_AUTHORIZATION, Where, WebFileUpload, UploadError, DvOpt, OrderType, Group, CancelToken, HttpRequest, DVQueryable, WebHttpRequest } from "@maketribe/request";
6
+ import { ACCESS_TOKEN_HEADER, X_ACCESS_TOKEN_HEADER, AUTHORIZATION_PREFIX, AUTHORIZATION, X_AUTHORIZATION, Where, WebFileUpload, UploadError, DvOpt, OrderType, Group, CancelToken, HttpRequest, DVQueryable, WebHttpRequest } from "@maketribe/request";
11
7
  import { I18n } from "@maketribe/locale";
12
8
  import { defaultsDeep, isEqual, debounce, get, isEmpty, isFunction, cloneDeep } from "lodash-es";
13
9
  import { defineStore, createPinia } from "pinia";
14
- import merge from "lodash-es/merge";
15
10
  import path from "path-browserify";
16
11
  import { Icon } from "@iconify/vue";
17
- import { Grid, Search, Edit, Delete, Plus, MoreFilled, Picture, UploadFilled, Share, ArrowRightBold } from "@element-plus/icons-vue";
12
+ import { Grid, Search, MoreFilled, Edit, Delete, Plus, Picture, UploadFilled, Share, ArrowRightBold } from "@element-plus/icons-vue";
18
13
  import { VueCropper } from "vue-cropper";
19
14
  import { OverflowNode, $isOverflowNode, $createOverflowNode } from "@lexical/overflow";
20
15
  import { $rootTextContent, $isRootTextContentEmptyCurry, registerLexicalTextEntity, $canShowPlaceholderCurry } from "@lexical/text";
21
16
  import { mergeRegister, $dfs, isBlockDomNode, $findMatchingParent, $getNextRightPreorderNode, mediaFileReader, isMimeType, $insertNodeToNearestRoot, $insertFirst } from "@lexical/utils";
22
- import { $getSelection, $isRangeSelection, $isTextNode, $isLeafNode, $setSelection, COMMAND_PRIORITY_HIGH, ElementNode, DecoratorNode, createCommand, $createParagraphNode, $copyNode, $isElementNode, $getRoot, ArtificialNode__DO_NOT_USE, $createLineBreakNode, $isRootOrShadowRoot, $isBlockElementNode, $cloneWithProperties, isHTMLElement, isInlineDomNode, createEditor, CAN_UNDO_COMMAND, CAN_REDO_COMMAND, $isNodeSelection, FORMAT_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, UNDO_COMMAND, REDO_COMMAND, $getNodeByKey, $createNodeSelection, TextNode, KEY_TAB_COMMAND, OUTDENT_CONTENT_COMMAND, INDENT_CONTENT_COMMAND, COMMAND_PRIORITY_EDITOR, $isParagraphNode, CLICK_COMMAND, SELECTION_CHANGE_COMMAND, $isRootNode, COMMAND_PRIORITY_LOW, INSERT_PARAGRAPH_COMMAND, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_UP_COMMAND, KEY_ESCAPE_COMMAND, KEY_SPACE_COMMAND, $getNearestNodeFromDOMNode, KEY_ARROW_LEFT_COMMAND, $nodesOfType } from "lexical";
17
+ import { $getSelection, $isRangeSelection, $isTextNode, $isLeafNode, $setSelection, COMMAND_PRIORITY_HIGH, ElementNode, DecoratorNode, createCommand, $createParagraphNode, $copyNode, $isElementNode, $getRoot, $cloneWithProperties, isHTMLElement, $isRootOrShadowRoot, $isBlockElementNode, $createLineBreakNode, ArtificialNode__DO_NOT_USE, isInlineDomNode, createEditor, CAN_UNDO_COMMAND, CAN_REDO_COMMAND, $isNodeSelection, FORMAT_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, REDO_COMMAND, UNDO_COMMAND, $createNodeSelection, $getNodeByKey, TextNode, KEY_TAB_COMMAND, OUTDENT_CONTENT_COMMAND, INDENT_CONTENT_COMMAND, COMMAND_PRIORITY_EDITOR, $isParagraphNode, CLICK_COMMAND, SELECTION_CHANGE_COMMAND, $isRootNode, COMMAND_PRIORITY_LOW, INSERT_PARAGRAPH_COMMAND, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_UP_COMMAND, KEY_ESCAPE_COMMAND, KEY_SPACE_COMMAND, $getNearestNodeFromDOMNode, KEY_ARROW_LEFT_COMMAND, $nodesOfType } from "lexical";
23
18
  import { $sliceSelectedTextNodeContent, $getSelectionStyleValueForProperty, $patchStyleText, $setBlocksType } from "@lexical/selection";
24
19
  import { $isLinkNode, TOGGLE_LINK_COMMAND, AutoLinkNode, LinkNode, $toggleLink } from "@lexical/link";
25
20
  import { $isHeadingNode, $createHeadingNode, HeadingNode, QuoteNode, DRAG_DROP_PASTE, registerRichText } from "@lexical/rich-text";
26
21
  import { createEmptyHistoryState, registerHistory } from "@lexical/history";
27
22
  import { CodeHighlightNode, CodeNode } from "@lexical/code";
28
23
  import { HashtagNode, $createHashtagNode } from "@lexical/hashtag";
29
- import { ListNode, ListItemNode, INSERT_UNORDERED_LIST_COMMAND, INSERT_ORDERED_LIST_COMMAND, REMOVE_LIST_COMMAND, removeList, $handleListInsertParagraph, $createListNode, $createListItemNode, $isListItemNode, INSERT_CHECK_LIST_COMMAND, insertList, $isListNode } from "@lexical/list";
24
+ import { ListNode, ListItemNode, INSERT_ORDERED_LIST_COMMAND, INSERT_UNORDERED_LIST_COMMAND, REMOVE_LIST_COMMAND, removeList, $handleListInsertParagraph, $createListNode, $createListItemNode, $isListItemNode, INSERT_CHECK_LIST_COMMAND, insertList, $isListNode } from "@lexical/list";
30
25
  import { TableCellNode, TableNode, TableRowNode, $getNodeTriplet, $computeTableMap, $isTableRowNode, $isTableCellNode, $createTableCellNode, $isTableNode, INSERT_TABLE_COMMAND, $createTableNodeWithDimensions, applyTableHandlers } from "@lexical/table";
31
26
  import { registerDragonSupport } from "@lexical/dragon";
32
27
  import { registerPlainText } from "@lexical/plain-text";
@@ -153,84 +148,84 @@ class DataTableComponents extends Components {
153
148
  name: "MKColumnAction",
154
149
  title: "操作",
155
150
  component: defineAsyncComponent(
156
- async () => import("./index-BNeue0oH.js")
151
+ async () => import("./index-BesRQOOQ.js")
157
152
  )
158
153
  });
159
154
  this.registerComponent({
160
155
  name: "MKColumnText",
161
156
  title: "文本",
162
157
  component: defineAsyncComponent(
163
- async () => import("./index-DMbOktED.js")
158
+ async () => import("./index-CrIWIc_t.js")
164
159
  )
165
160
  });
166
161
  this.registerComponent({
167
162
  name: "MKColumnObjectMappingText",
168
163
  title: "对象映射文本",
169
164
  component: defineAsyncComponent(
170
- async () => import("./index-CxrJRqpf.js")
165
+ async () => import("./index-BGATqI6o.js")
171
166
  )
172
167
  });
173
168
  this.registerComponent({
174
169
  name: "MKColumnImage",
175
170
  title: "图片",
176
171
  component: defineAsyncComponent(
177
- async () => import("./index-DbhTHuYg.js")
172
+ async () => import("./index-BsWs1zP5.js")
178
173
  )
179
174
  });
180
175
  this.registerComponent({
181
176
  name: "MKColumnSelect",
182
177
  title: "行选择",
183
178
  component: defineAsyncComponent(
184
- async () => import("./index-pEvELOsK.js")
179
+ async () => import("./index-X4uZVo2B.js")
185
180
  )
186
181
  });
187
182
  this.registerComponent({
188
183
  name: "MKColumnJson",
189
184
  title: "JSON",
190
185
  component: defineAsyncComponent(
191
- async () => import("./index-CBZgFhlH.js")
186
+ async () => import("./index-BM4RT6bs.js")
192
187
  )
193
188
  });
194
189
  this.registerComponent({
195
190
  name: "MKColumnDate",
196
191
  title: "日期时间",
197
192
  component: defineAsyncComponent(
198
- async () => import("./index-C-PIVDFH.js")
193
+ async () => import("./index-Df_PDwBj.js")
199
194
  )
200
195
  });
201
196
  this.registerComponent({
202
197
  name: "MKColumnSwitch",
203
198
  title: "开关",
204
199
  component: defineAsyncComponent(
205
- async () => import("./index-CDI8N6xZ.js")
200
+ async () => import("./index-ByFdp6oy.js")
206
201
  )
207
202
  });
208
203
  this.registerComponent({
209
204
  name: "MKColumnTag",
210
205
  title: "标签",
211
206
  component: defineAsyncComponent(
212
- async () => import("./index-C41VoUBt.js")
207
+ async () => import("./index-DjB2Bpvo.js")
213
208
  )
214
209
  });
215
210
  this.registerComponent({
216
211
  name: "MKColumnLink",
217
212
  title: "链接",
218
213
  component: defineAsyncComponent(
219
- async () => import("./index-BoExjw9h.js")
214
+ async () => import("./index-BXfKq4TE.js")
220
215
  )
221
216
  });
222
217
  this.registerComponent({
223
218
  name: "MKColumnSort",
224
219
  title: "拖拽排序",
225
220
  component: defineAsyncComponent(
226
- async () => import("./index-BCFkYlgt.js")
221
+ async () => import("./index-MQ8OZGCg.js")
227
222
  )
228
223
  });
229
224
  this.registerComponent({
230
225
  name: "MKColumnIcon",
231
226
  title: "图标",
232
227
  component: defineAsyncComponent(
233
- async () => import("./index-B6LEaKnh.js")
228
+ async () => import("./index-8_tegZTS.js")
234
229
  )
235
230
  });
236
231
  }
@@ -256,14 +251,14 @@ class DataTableHeaderComponents extends Components {
256
251
  name: "MKBatchOpt",
257
252
  title: "批量操作",
258
253
  component: defineAsyncComponent(
259
- async () => import("./index-DCHuhGP6.js")
254
+ async () => import("./index-nAOtrNQ-.js")
260
255
  )
261
256
  });
262
257
  this.registerComponent({
263
258
  name: "MKTableFilter",
264
259
  title: "筛选",
265
260
  component: defineAsyncComponent(
266
- async () => import("./index-nsFKZAN1.js")
261
+ async () => import("./index-CG4NeJSD.js")
267
262
  )
268
263
  });
269
264
  }
@@ -306,7 +301,7 @@ class DataFormComponents extends Components {
306
301
  name: "MKFormRadioBox",
307
302
  title: "单选框",
308
303
  component: defineAsyncComponent(
309
- () => import("./index-WLPh41ZY.js")
304
+ () => import("./index-DIjf8saG.js")
310
305
  )
311
306
  });
312
307
  this.registerComponent({
@@ -341,7 +336,7 @@ class DataFormComponents extends Components {
341
336
  name: "MKFormDetail",
342
337
  title: "明细",
343
338
  component: defineAsyncComponent(
344
- () => import("./index-CLkgAMaX.js")
339
+ () => import("./index-BHRnbCp4.js")
345
340
  )
346
341
  });
347
342
  this.registerComponent({
@@ -362,14 +357,14 @@ class DataFormComponents extends Components {
362
357
  name: "MKDataTreeSelect",
363
358
  title: "树选择器",
364
359
  component: defineAsyncComponent(
365
- () => import("./index-D6yp_g0q.js")
360
+ () => import("./index-DNLqF2ga.js")
366
361
  )
367
362
  });
368
363
  this.registerComponent({
369
364
  name: "MKResourceSelectInput",
370
365
  title: "资源选择输入框",
371
366
  component: defineAsyncComponent(
372
- () => import("./ResourceSelectInput-DOMBcxMu.js")
367
+ () => import("./ResourceSelectInput-Dh1liggt.js")
373
368
  )
374
369
  });
375
370
  this.registerComponent({
@@ -405,7 +400,7 @@ class DataFilterComponents extends Components {
405
400
  title: "下拉框",
406
401
  defaultOperator: Operator.IN,
407
402
  component: defineAsyncComponent(
408
- () => import("./index-Cm2H1sJO.js")
403
+ () => import("./index-DwmNH96j.js")
409
404
  )
410
405
  });
411
406
  this.registerComponent({
@@ -413,7 +408,7 @@ class DataFilterComponents extends Components {
413
408
  title: "树形下拉框",
414
409
  defaultOperator: Operator.IN,
415
410
  component: defineAsyncComponent(
416
- () => import("./index-D6yp_g0q.js")
411
+ () => import("./index-DNLqF2ga.js")
417
412
  )
418
413
  });
419
414
  this.registerComponent({
@@ -452,18 +447,18 @@ class ConfigComponents extends Components {
452
447
  }
453
448
  }
454
449
  class MenuNode {
450
+ id;
451
+ iconName;
452
+ title;
453
+ permissionPoints;
454
+ route;
455
+ routes;
456
+ type;
457
+ path;
458
+ urlType;
459
+ children;
460
+ parent;
455
461
  constructor(options) {
456
- __publicField(this, "id");
457
- __publicField(this, "iconName");
458
- __publicField(this, "title");
459
- __publicField(this, "permissionPoints");
460
- __publicField(this, "route");
461
- __publicField(this, "routes");
462
- __publicField(this, "type");
463
- __publicField(this, "path");
464
- __publicField(this, "urlType");
465
- __publicField(this, "children");
466
- __publicField(this, "parent");
467
462
  const { id, children, route, routes, iconName, title, path: path2, permissionPoints, urlType, type } = options;
468
463
  this.id = id;
469
464
  this.route = route ?? null;
@@ -488,15 +483,15 @@ class MenuNode {
488
483
  }
489
484
  }
490
485
  class Menu extends Disposable {
486
+ rootMenus = [];
487
+ _currentMenu = null;
488
+ isCollapsed = false;
489
+ isVisible = true;
490
+ permissionPointManager;
491
+ router;
492
+ currentMenuChangeEvent = this.register(new Event());
491
493
  constructor(permissionPointManager, router) {
492
494
  super();
493
- __publicField(this, "rootMenus", []);
494
- __publicField(this, "_currentMenu", null);
495
- __publicField(this, "isCollapsed", false);
496
- __publicField(this, "isVisible", true);
497
- __publicField(this, "permissionPointManager");
498
- __publicField(this, "router");
499
- __publicField(this, "currentMenuChangeEvent", this.register(new Event()));
500
495
  this.permissionPointManager = permissionPointManager;
501
496
  this.router = router;
502
497
  }
@@ -588,17 +583,17 @@ class Menu extends Disposable {
588
583
  }
589
584
  }
590
585
  class Tab extends Disposable {
586
+ id;
587
+ title;
588
+ affix;
589
+ realRoute;
590
+ route;
591
+ beforeCloseEvent = this.register(new Event());
592
+ refreshEvent = this.register(new Event());
593
+ beforeSwitchEvent = this.register(new Event());
594
+ tabs;
591
595
  constructor(options) {
592
596
  super();
593
- __publicField(this, "id");
594
- __publicField(this, "title");
595
- __publicField(this, "affix");
596
- __publicField(this, "realRoute");
597
- __publicField(this, "route");
598
- __publicField(this, "beforeCloseEvent", this.register(new Event()));
599
- __publicField(this, "refreshEvent", this.register(new Event()));
600
- __publicField(this, "beforeSwitchEvent", this.register(new Event()));
601
- __publicField(this, "tabs");
602
597
  this.id = options.id;
603
598
  this.title = options.title;
604
599
  this.affix = options.affix ?? false;
@@ -617,25 +612,24 @@ class Tab extends Disposable {
617
612
  }
618
613
  }
619
614
  class Tabs extends Disposable {
615
+ userSession;
616
+ _tabs = [];
617
+ _currentTab = null;
618
+ currentTabChangeEvent = this.register(
619
+ new Event()
620
+ );
621
+ tabsChangeEvent = this.register(new Event());
620
622
  constructor(userSession) {
621
623
  super();
622
- __publicField(this, "userSession");
623
- __publicField(this, "_tabs", []);
624
- __publicField(this, "_currentTab", null);
625
- __publicField(this, "currentTabChangeEvent", this.register(
626
- new Event()
627
- ));
628
- __publicField(this, "tabsChangeEvent", this.register(new Event()));
629
624
  this.userSession = userSession;
630
625
  }
631
626
  init() {
632
627
  const getAffixRoutes = () => {
633
- var _a2;
634
628
  let routes = this.userSession.vueRouter.getRoutes().slice();
635
629
  const affixRoutes = [];
636
630
  for (let i = 0; i < routes.length; i++) {
637
631
  const route = routes[i];
638
- if (((_a2 = route.meta) == null ? void 0 : _a2.affix) === true) {
632
+ if (route.meta?.affix === true) {
639
633
  affixRoutes.push(route);
640
634
  }
641
635
  }
@@ -691,12 +685,11 @@ class Tabs extends Disposable {
691
685
  return this.getTabs().find((tab) => tab.id === id) ?? null;
692
686
  }
693
687
  async closeTab(tab) {
694
- var _a2;
695
688
  if (await tab.beforeCloseEvent.emitAsync() === false) {
696
689
  return;
697
690
  }
698
691
  const tabItemList = this.getTabs().slice();
699
- if (((_a2 = this.getCurrentTab()) == null ? void 0 : _a2.getID()) !== tab.getID()) {
692
+ if (this.getCurrentTab()?.getID() !== tab.getID()) {
700
693
  this.setTabs(tabItemList.filter((item) => item.getID() !== tab.getID()));
701
694
  return;
702
695
  }
@@ -737,11 +730,12 @@ class Tabs extends Disposable {
737
730
  this.setTabs([currentTab]);
738
731
  }
739
732
  }
740
- const _DataModelDefines = class _DataModelDefines {
733
+ class DataModelDefines {
734
+ static instance = new DataModelDefines();
735
+ _dataTableDefines;
736
+ _dataFormDefines;
737
+ _dataTreeDefines;
741
738
  constructor() {
742
- __publicField(this, "_dataTableDefines");
743
- __publicField(this, "_dataFormDefines");
744
- __publicField(this, "_dataTreeDefines");
745
739
  this._dataTableDefines = /* @__PURE__ */ new Map();
746
740
  this._dataFormDefines = /* @__PURE__ */ new Map();
747
741
  this._dataTreeDefines = /* @__PURE__ */ new Map();
@@ -773,21 +767,19 @@ const _DataModelDefines = class _DataModelDefines {
773
767
  registerDataTreeDefine(name, dataTreeDefine) {
774
768
  this._dataTreeDefines.set(name, dataTreeDefine);
775
769
  }
776
- };
777
- __publicField(_DataModelDefines, "instance", new _DataModelDefines());
778
- let DataModelDefines = _DataModelDefines;
770
+ }
779
771
  class UserInfo {
772
+ id;
773
+ account;
774
+ email;
775
+ nickName;
776
+ avatar;
777
+ isLocked;
778
+ isSuper;
779
+ payload;
780
+ roles;
781
+ permissionPoints;
780
782
  constructor(msAppClient, payload, roles, permissionPoints) {
781
- __publicField(this, "id");
782
- __publicField(this, "account");
783
- __publicField(this, "email");
784
- __publicField(this, "nickName");
785
- __publicField(this, "avatar");
786
- __publicField(this, "isLocked");
787
- __publicField(this, "isSuper");
788
- __publicField(this, "payload");
789
- __publicField(this, "roles");
790
- __publicField(this, "permissionPoints");
791
783
  this.id = payload.id;
792
784
  this.avatar = payload.avatar;
793
785
  this.account = payload.account;
@@ -815,10 +807,10 @@ class UserInfo {
815
807
  }
816
808
  const NORMALIZE_ROUTE_NAME_REG = /^dv\/([^/]+)\/([^/]+)(\/.+)?$/;
817
809
  class Router extends Disposable {
810
+ userSession;
811
+ routes = [];
818
812
  constructor(userSession) {
819
813
  super();
820
- __publicField(this, "userSession");
821
- __publicField(this, "routes", []);
822
814
  this.userSession = userSession;
823
815
  }
824
816
  setRoutes(routes) {
@@ -846,7 +838,7 @@ class Router extends Disposable {
846
838
  vueRouter.addRoute("mk-ms-layout", {
847
839
  name: defaultPageRoute.name,
848
840
  path: defaultPageRoute.route || `/dv/${name}`,
849
- component: () => import("./normal-DXMV_-7_.js"),
841
+ component: () => import("./normal-By6pxQ8V.js"),
850
842
  meta
851
843
  });
852
844
  break;
@@ -854,7 +846,7 @@ class Router extends Disposable {
854
846
  vueRouter.addRoute("mk-ms-layout", {
855
847
  name: defaultPageRoute.name,
856
848
  path: defaultPageRoute.route || `/dv/${name}`,
857
- component: () => import("./dialog-j_yGtIZ7.js"),
849
+ component: () => import("./dialog-Dx1_PByu.js"),
858
850
  meta
859
851
  });
860
852
  break;
@@ -866,7 +858,7 @@ class Router extends Disposable {
866
858
  vueRouter.addRoute("mk-ms-layout", {
867
859
  name: defaultPageRoute.name,
868
860
  path: defaultPageRoute.route || `/dv/${name}`,
869
- component: () => import("./dialog-3s5_ieqx.js"),
861
+ component: () => import("./dialog-Dfw2Hyma.js"),
870
862
  meta
871
863
  });
872
864
  break;
@@ -878,7 +870,7 @@ class Router extends Disposable {
878
870
  vueRouter.addRoute("mk-ms-layout", {
879
871
  name: defaultPageRoute.name,
880
872
  path: defaultPageRoute.route || `/dv/${name}`,
881
- component: () => import("./dialog-BdI4XimU.js"),
873
+ component: () => import("./dialog-BCUjKmRJ.js"),
882
874
  meta
883
875
  });
884
876
  break;
@@ -886,7 +878,7 @@ class Router extends Disposable {
886
878
  vueRouter.addRoute("mk-ms-layout", {
887
879
  name: defaultPageRoute.name,
888
880
  path: defaultPageRoute.route || `/dv/${name}`,
889
- component: () => import("./normal-D1EvEflK.js"),
881
+ component: () => import("./normal-IcqK9eiC.js"),
890
882
  meta
891
883
  });
892
884
  }
@@ -896,7 +888,7 @@ class Router extends Disposable {
896
888
  vueRouter.addRoute("mk-ms-layout", {
897
889
  name: defaultPageRoute.name,
898
890
  path: defaultPageRoute.route || `/dv/${name}`,
899
- component: () => import("./table-WKqWgZ0P.js"),
891
+ component: () => import("./table-CDFkhcnd.js"),
900
892
  meta
901
893
  });
902
894
  break;
@@ -904,7 +896,7 @@ class Router extends Disposable {
904
896
  vueRouter.addRoute("mk-ms-layout", {
905
897
  name: defaultPageRoute.name,
906
898
  path: defaultPageRoute.route || `/dv/${name}/edit/:id?`,
907
- component: () => import("./edit-DGLJIgoZ.js"),
899
+ component: () => import("./edit-CL9ew0K5.js"),
908
900
  meta
909
901
  });
910
902
  break;
@@ -930,8 +922,8 @@ class Router extends Disposable {
930
922
  }
931
923
  }
932
924
  class PermissionPointManager {
925
+ permissionPoints;
933
926
  constructor() {
934
- __publicField(this, "permissionPoints");
935
927
  this.permissionPoints = [];
936
928
  }
937
929
  setPermissionPoints(permissionPoints) {
@@ -947,21 +939,21 @@ class PermissionPointManager {
947
939
  }
948
940
  let uid$2 = 0;
949
941
  class UserSession extends Disposable {
942
+ id = uid$2++;
943
+ msAppClient;
944
+ vueRouter;
945
+ userInfo;
946
+ menu;
947
+ tabs;
948
+ router;
949
+ permissionPointManager;
950
+ accessToken;
951
+ xAccessToken;
952
+ beforeInitRouterEvent = this.register(new Event());
953
+ locking = false;
954
+ lockingChangeEvent = this.register(new Event());
950
955
  constructor(options) {
951
956
  super();
952
- __publicField(this, "id", uid$2++);
953
- __publicField(this, "msAppClient");
954
- __publicField(this, "vueRouter");
955
- __publicField(this, "userInfo");
956
- __publicField(this, "menu");
957
- __publicField(this, "tabs");
958
- __publicField(this, "router");
959
- __publicField(this, "permissionPointManager");
960
- __publicField(this, "accessToken");
961
- __publicField(this, "xAccessToken");
962
- __publicField(this, "beforeInitRouterEvent", this.register(new Event()));
963
- __publicField(this, "locking", false);
964
- __publicField(this, "lockingChangeEvent", this.register(new Event()));
965
957
  this.msAppClient = options.msAppClient;
966
958
  this.vueRouter = this.msAppClient.vueRouter;
967
959
  this.userInfo = null;
@@ -1075,30 +1067,40 @@ const globalConfig = ref();
1075
1067
  function useGlobalConfig(key, defaultValue = void 0) {
1076
1068
  const config = getCurrentInstance() ? inject(CONFIG_PROVIDER_CONTEXT_KEY, globalConfig) : globalConfig;
1077
1069
  if (key) {
1078
- return computed(() => {
1079
- var _a2;
1080
- return ((_a2 = unref(config)) == null ? void 0 : _a2[key]) ?? defaultValue;
1081
- });
1070
+ return computed(() => unref(config)?.[key] ?? defaultValue);
1082
1071
  }
1083
1072
  return config;
1084
1073
  }
1074
+ function mergeConfig(cfg, oldCfg) {
1075
+ const newCfg = {};
1076
+ Object.keys(oldCfg).forEach((k) => {
1077
+ if (cfg[k] !== void 0) {
1078
+ newCfg[k] = cfg[k];
1079
+ } else if (oldCfg[k] !== void 0) {
1080
+ newCfg[k] = oldCfg[k];
1081
+ }
1082
+ });
1083
+ Object.keys(cfg).forEach((k) => {
1084
+ if (newCfg[k] === void 0 && cfg[k] !== void 0) {
1085
+ newCfg[k] = cfg[k];
1086
+ }
1087
+ });
1088
+ return newCfg;
1089
+ }
1085
1090
  function provideGlobalConfig(config, app, global = false) {
1086
1091
  const inSetup = !!getCurrentInstance();
1087
1092
  const oldConfig = inSetup ? useGlobalConfig() : globalConfig;
1088
- const provideFn = (app == null ? void 0 : app.provide) ?? (inSetup ? provide : void 0);
1093
+ const provideFn = app?.provide ?? (inSetup ? provide : void 0);
1089
1094
  if (!provideFn) {
1090
1095
  throw new Error("");
1091
1096
  }
1092
- const context = computed(() => {
1093
- const cfg = unref(config);
1094
- if (!(oldConfig == null ? void 0 : oldConfig.value)) {
1095
- return cfg;
1097
+ const cfg = unref(config);
1098
+ const context = computed(() => !oldConfig?.value ? cfg : mergeConfig(cfg, oldConfig.value));
1099
+ if (Object.keys(context.value).filter((key) => context.value[key] !== void 0).length > 0) {
1100
+ provide(CONFIG_PROVIDER_CONTEXT_KEY, context);
1101
+ if (global || !globalConfig.value) {
1102
+ globalConfig.value = context.value;
1096
1103
  }
1097
- return merge(oldConfig.value, cfg);
1098
- });
1099
- provide(CONFIG_PROVIDER_CONTEXT_KEY, context);
1100
- if (global || !globalConfig.value) {
1101
- globalConfig.value = context.value;
1102
1104
  }
1103
1105
  return context;
1104
1106
  }
@@ -1133,10 +1135,7 @@ const ConfigProvider = /* @__PURE__ */ defineComponent({
1133
1135
  slots
1134
1136
  }) {
1135
1137
  provideGlobalConfig(props);
1136
- const currentLocale = computed(() => {
1137
- var _a2;
1138
- return (_a2 = props.i18n) == null ? void 0 : _a2.currentLanguage;
1139
- });
1138
+ const currentLocale = computed(() => props.i18n?.currentLanguage);
1140
1139
  return () => {
1141
1140
  let _slot;
1142
1141
  return createVNode(ElConfigProvider, {
@@ -1152,13 +1151,9 @@ const useComponent = (componentName, components2) => {
1152
1151
  const componentInfo = computed(
1153
1152
  () => unref(components2).resolveComponent(unref(componentName))
1154
1153
  );
1155
- const component = computed(() => {
1156
- var _a2;
1157
- return ((_a2 = unref(componentInfo)) == null ? void 0 : _a2.component) ?? null;
1158
- });
1154
+ const component = computed(() => unref(componentInfo)?.component ?? null);
1159
1155
  const componentProps = computed(() => {
1160
- var _a2;
1161
- const componentProps2 = ((_a2 = unref(componentInfo)) == null ? void 0 : _a2.defaultProps) ?? null;
1156
+ const componentProps2 = unref(componentInfo)?.defaultProps ?? null;
1162
1157
  return componentProps2 ? { ...componentProps2 } : null;
1163
1158
  });
1164
1159
  return { componentInfo, component, componentProps };
@@ -1181,10 +1176,7 @@ const useComponentWithDefault = (componentInfo, defaultComponentInfo) => {
1181
1176
  };
1182
1177
  const useRenderInfoComponent = (column, components2) => {
1183
1178
  const columnComponentInfo = computed(
1184
- () => {
1185
- var _a2;
1186
- return ((_a2 = unref(column)) == null ? void 0 : _a2.componentInfo) || "";
1187
- }
1179
+ () => unref(column)?.componentInfo || ""
1188
1180
  );
1189
1181
  const componentInfo = ref(null);
1190
1182
  watch(
@@ -1202,19 +1194,15 @@ const useRenderInfoComponent = (column, components2) => {
1202
1194
  },
1203
1195
  { immediate: true }
1204
1196
  );
1205
- const component = computed(() => {
1206
- var _a2;
1207
- return ((_a2 = unref(componentInfo)) == null ? void 0 : _a2.component) ?? null;
1208
- });
1197
+ const component = computed(() => unref(componentInfo)?.component ?? null);
1209
1198
  const componentProps = computed(() => {
1210
- var _a2;
1211
1199
  const _componentInfo = unref(componentInfo);
1212
1200
  if (!_componentInfo) {
1213
1201
  return null;
1214
1202
  }
1215
1203
  return {
1216
1204
  ..._componentInfo.defaultProps,
1217
- ...(_a2 = unref(column)) == null ? void 0 : _a2.componentProps
1205
+ ...unref(column)?.componentProps
1218
1206
  };
1219
1207
  });
1220
1208
  return {
@@ -1270,36 +1258,27 @@ const useI18n = () => {
1270
1258
  return unref(useGlobalConfig("i18n")) ?? null;
1271
1259
  };
1272
1260
  const onTabBeforeClose = (callback) => {
1273
- var _a2;
1274
- (_a2 = MSAppClient.instance.userSession.tabs.getCurrentTab()) == null ? void 0 : _a2.beforeCloseEvent.once(
1261
+ MSAppClient.instance.userSession.tabs.getCurrentTab()?.beforeCloseEvent.once(
1275
1262
  callback
1276
1263
  );
1277
1264
  };
1278
1265
  const onTabRefresh = (callback) => {
1279
- var _a2;
1280
- (_a2 = MSAppClient.instance.userSession.tabs.getCurrentTab()) == null ? void 0 : _a2.beforeSwitchEvent.on(
1266
+ MSAppClient.instance.userSession.tabs.getCurrentTab()?.beforeSwitchEvent.on(
1281
1267
  callback
1282
1268
  );
1283
1269
  };
1284
1270
  const onTabBeforeSwitch = (callback) => {
1285
- var _a2;
1286
- (_a2 = MSAppClient.instance.userSession.tabs.getCurrentTab()) == null ? void 0 : _a2.beforeCloseEvent.on(
1271
+ MSAppClient.instance.userSession.tabs.getCurrentTab()?.beforeCloseEvent.on(
1287
1272
  callback
1288
1273
  );
1289
1274
  };
1290
1275
  const useCurrentTab = () => MSAppClient.instance.userSession.tabs.getCurrentTab() ?? null;
1291
- const useHttpRequest = () => {
1292
- var _a2;
1293
- return ((_a2 = MSAppClient.instance) == null ? void 0 : _a2.httpRequest) ?? null;
1294
- };
1276
+ const useHttpRequest = () => MSAppClient.instance?.httpRequest ?? null;
1295
1277
  const useMSAppClient = () => {
1296
1278
  const msAppClientContext = inject(MSAPPCLIENT_CONTEXT_KEY);
1297
- return (msAppClientContext == null ? void 0 : msAppClientContext.msAppClient) ?? MSAppClient.instance;
1298
- };
1299
- const useUserInfo = () => {
1300
- var _a2, _b2;
1301
- return ((_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) ?? null;
1279
+ return msAppClientContext?.msAppClient ?? MSAppClient.instance;
1302
1280
  };
1281
+ const useUserInfo = () => MSAppClient.instance?.userSession?.userInfo ?? null;
1303
1282
  const useSingleView = (options) => {
1304
1283
  const isShowDataForm = ref(false);
1305
1284
  const handleDataTable = (dataTable) => {
@@ -1337,9 +1316,8 @@ const useSingleView = (options) => {
1337
1316
  const handleDataForm = (dataForm) => {
1338
1317
  if (dataForm) {
1339
1318
  dataForm.submittedEvent.on(() => {
1340
- var _a2;
1341
1319
  isShowDataForm.value = false;
1342
- (_a2 = unref(options.dataTable)) == null ? void 0 : _a2.load();
1320
+ unref(options.dataTable)?.load();
1343
1321
  });
1344
1322
  dataForm.cancelEvent.on(() => {
1345
1323
  isShowDataForm.value = false;
@@ -1353,8 +1331,8 @@ const useSingleView = (options) => {
1353
1331
  isShowDataForm.value = false;
1354
1332
  handleDataTable(dataTable);
1355
1333
  onCleanup(() => {
1356
- dataTable == null ? void 0 : dataTable.clearSelection();
1357
- dataTable == null ? void 0 : dataTable.dispose();
1334
+ dataTable?.clearSelection();
1335
+ dataTable?.dispose();
1358
1336
  });
1359
1337
  },
1360
1338
  { immediate: true }
@@ -1374,7 +1352,7 @@ const useSingleView = (options) => {
1374
1352
  isShowDataForm.value = false;
1375
1353
  handleDataForm(dataForm);
1376
1354
  onCleanup(() => {
1377
- dataForm == null ? void 0 : dataForm.dispose();
1355
+ dataForm?.dispose();
1378
1356
  });
1379
1357
  },
1380
1358
  { immediate: true }
@@ -1462,7 +1440,8 @@ const globalSettingsDefault = {
1462
1440
  breadcrumb: false,
1463
1441
  navSearch: false,
1464
1442
  fullscreen: true,
1465
- message: false
1443
+ message: false,
1444
+ shortcutMenus: []
1466
1445
  },
1467
1446
  mainPage: {
1468
1447
  enableHotkeys: true
@@ -1648,7 +1627,6 @@ const useMenuStore = defineStore(
1648
1627
  const filesystemMenusRaw = ref([]);
1649
1628
  const actived = ref(0);
1650
1629
  function convertMenu(menuNodes) {
1651
- var _a2;
1652
1630
  const returnMenus = [];
1653
1631
  for (const menuNode of menuNodes) {
1654
1632
  const menuItem = {
@@ -1658,7 +1636,7 @@ const useMenuStore = defineStore(
1658
1636
  auth: "",
1659
1637
  type: menuNode.type
1660
1638
  },
1661
- name: ((_a2 = menuNode.route) == null ? void 0 : _a2.name) ?? menuNode.id,
1639
+ name: menuNode.route?.name ?? menuNode.id,
1662
1640
  children: []
1663
1641
  };
1664
1642
  menuItem.children = convertMenuRecursive(menuNode.children);
@@ -1667,14 +1645,13 @@ const useMenuStore = defineStore(
1667
1645
  return returnMenus;
1668
1646
  }
1669
1647
  function convertMenuRecursive(menuNodes, basePath = "") {
1670
- var _a2, _b2, _c2;
1671
1648
  const returnMenus = [];
1672
1649
  for (const menuNode of menuNodes) {
1673
1650
  const menuItem = {
1674
1651
  path: menuNode.urlType == 1 ? resolveRoutePath(basePath, menuNode.path) : "",
1675
- name: ((_a2 = menuNode.route) == null ? void 0 : _a2.name) ?? menuNode.id,
1676
- group: !((_b2 = menuNode.route) == null ? void 0 : _b2.name),
1677
- routes: ((_c2 = menuNode.routes) == null ? void 0 : _c2.map((item) => item.name)) ?? [],
1652
+ name: menuNode.route?.name ?? menuNode.id,
1653
+ group: !menuNode.route?.name,
1654
+ routes: menuNode.routes?.map((item) => item.name) ?? [],
1678
1655
  meta: {
1679
1656
  title: menuNode.title,
1680
1657
  icon: menuNode.iconName,
@@ -1709,10 +1686,7 @@ const useMenuStore = defineStore(
1709
1686
  function getDeepestPath(menu2, rootPath = "") {
1710
1687
  let path2 = "";
1711
1688
  if (menu2.children) {
1712
- const item = menu2.children.find((item2) => {
1713
- var _a2;
1714
- return ((_a2 = item2.meta) == null ? void 0 : _a2.menu) !== false;
1715
- });
1689
+ const item = menu2.children.find((item2) => item2.meta?.menu !== false);
1716
1690
  if (item) {
1717
1691
  path2 = getDeepestPath(item, resolveRoutePath(rootPath, menu2.path));
1718
1692
  } else {
@@ -1735,8 +1709,7 @@ const useMenuStore = defineStore(
1735
1709
  function getDefaultOpenedPaths(menus) {
1736
1710
  const defaultOpenedPaths2 = [];
1737
1711
  menus.forEach((item) => {
1738
- var _a2;
1739
- if (((_a2 = item.meta) == null ? void 0 : _a2.defaultOpened) && item.children) {
1712
+ if (item.meta?.defaultOpened && item.children) {
1740
1713
  defaultOpenedPaths2.push(item.name);
1741
1714
  const childrenDefaultOpenedPaths = getDefaultOpenedPaths(item.children);
1742
1715
  if (childrenDefaultOpenedPaths.length > 0) {
@@ -1755,12 +1728,11 @@ const useMenuStore = defineStore(
1755
1728
  actived.value = data;
1756
1729
  } else {
1757
1730
  const getIndex = () => {
1758
- var _a2;
1759
1731
  for (let index2 = 0, len = allMenus.value.length; index2 < len; index2++) {
1760
1732
  let children = [allMenus.value[index2]];
1761
1733
  for (let i = 0; i < children.length; i++) {
1762
1734
  const item = children[i];
1763
- if (item.name === data || ((_a2 = item.routes) == null ? void 0 : _a2.includes(data))) {
1735
+ if (item.name === data || item.routes?.includes(data)) {
1764
1736
  return index2;
1765
1737
  }
1766
1738
  if (Array.isArray(item.children)) {
@@ -1809,17 +1781,14 @@ const authBeforeEach = async (msAppClient, to, from) => {
1809
1781
  }
1810
1782
  };
1811
1783
  class PageManager {
1812
- constructor() {
1813
- __publicField(this, "normalPages", []);
1814
- __publicField(this, "extendsPages", []);
1815
- __publicField(this, "msAppClient", null);
1816
- __publicField(this, "msAppClientChangeEvent", new Event());
1817
- __publicField(this, "afterInitdEvent", new Event());
1818
- __publicField(this, "msAppClientDisposable", null);
1819
- }
1784
+ normalPages = [];
1785
+ extendsPages = [];
1786
+ msAppClient = null;
1787
+ msAppClientChangeEvent = new Event();
1788
+ afterInitdEvent = new Event();
1789
+ msAppClientDisposable = null;
1820
1790
  setMSAppClient(msAppClient) {
1821
- var _a2;
1822
- (_a2 = this.msAppClientDisposable) == null ? void 0 : _a2.dispose();
1791
+ this.msAppClientDisposable?.dispose();
1823
1792
  this.msAppClientDisposable = new Disposable();
1824
1793
  this.msAppClient = msAppClient;
1825
1794
  this.msAppClientChangeEvent.emit({ msAppClient });
@@ -1846,7 +1815,7 @@ class PageManager {
1846
1815
  this.addNormalPage({
1847
1816
  name: "mk-ms-layout",
1848
1817
  path: "/",
1849
- component: () => import("./index-BIhphkZ9.js")
1818
+ component: () => import("./index-DRMoT6dv.js")
1850
1819
  });
1851
1820
  this.addNormalPage({
1852
1821
  name: "login",
@@ -1854,7 +1823,7 @@ class PageManager {
1854
1823
  meta: {
1855
1824
  isAuthorization: false
1856
1825
  },
1857
- component: () => import("./index-COF3u0iD.js")
1826
+ component: () => import("./index-RIqErp5L.js")
1858
1827
  });
1859
1828
  this.addNormalPage({
1860
1829
  name: "signup",
@@ -1862,11 +1831,10 @@ class PageManager {
1862
1831
  meta: {
1863
1832
  isAuthorization: false
1864
1833
  },
1865
- component: () => import("./index-eEpssLfk.js")
1834
+ component: () => import("./index-D4UQG5qr.js")
1866
1835
  });
1867
1836
  this.afterInitdEvent.emit();
1868
1837
  this.msAppClientChangeEvent.on(({ msAppClient }) => {
1869
- var _a2, _b2;
1870
1838
  if (!msAppClient) {
1871
1839
  return;
1872
1840
  }
@@ -1880,14 +1848,14 @@ class PageManager {
1880
1848
  vueRouter.addRoute(normalPage);
1881
1849
  }
1882
1850
  }
1883
- (_a2 = this.msAppClientDisposable) == null ? void 0 : _a2.register(
1851
+ this.msAppClientDisposable?.register(
1884
1852
  createDisposable(() => {
1885
1853
  for (const addedNormalPageName of addedNormalPageNames) {
1886
1854
  vueRouter.removeRoute(addedNormalPageName);
1887
1855
  }
1888
1856
  })
1889
1857
  );
1890
- (_b2 = this.msAppClientDisposable) == null ? void 0 : _b2.register(
1858
+ this.msAppClientDisposable?.register(
1891
1859
  msAppClient.beforeInitUserSessionEvent.on(({ userSession }) => {
1892
1860
  if (!userSession) {
1893
1861
  return;
@@ -1914,7 +1882,7 @@ class PageManager {
1914
1882
  this.addExtendsPage({
1915
1883
  name: "notFound",
1916
1884
  path: "/:pathMatch(.*)*",
1917
- component: () => import("./404-DfOf8KEr.js")
1885
+ component: () => import("./404-D-X3EKEl.js")
1918
1886
  });
1919
1887
  }
1920
1888
  userSession.register(
@@ -1931,17 +1899,17 @@ class PageManager {
1931
1899
  }
1932
1900
  }
1933
1901
  class InternalMkModule {
1902
+ app;
1903
+ dataTableComponents = new Components();
1904
+ dataFormComponents = new Components();
1905
+ dataFilterComponents = new Components();
1906
+ whereFilterComponents = new Components();
1907
+ dataTableClasses = [];
1908
+ dataFormClasses = [];
1909
+ dataTreeClasses = [];
1910
+ normalPages = [];
1911
+ extendsPages = [];
1934
1912
  constructor(app) {
1935
- __publicField(this, "app");
1936
- __publicField(this, "dataTableComponents", new Components());
1937
- __publicField(this, "dataFormComponents", new Components());
1938
- __publicField(this, "dataFilterComponents", new Components());
1939
- __publicField(this, "whereFilterComponents", new Components());
1940
- __publicField(this, "dataTableClasses", []);
1941
- __publicField(this, "dataFormClasses", []);
1942
- __publicField(this, "dataTreeClasses", []);
1943
- __publicField(this, "normalPages", []);
1944
- __publicField(this, "extendsPages", []);
1945
1913
  this.app = app;
1946
1914
  }
1947
1915
  /**
@@ -1993,10 +1961,11 @@ class InternalMkModule {
1993
1961
  this.extendsPages.push(route);
1994
1962
  }
1995
1963
  }
1996
- const _MsMaterialGroupForm = class _MsMaterialGroupForm extends (_b = DataForm$1, _a = DATA_MODEL_NAME, _b) {
1964
+ class MsMaterialGroupForm extends DataForm$1 {
1965
+ static [DATA_MODEL_NAME] = "mk-material-group";
1997
1966
  constructor(options = {}) {
1998
1967
  super({
1999
- name: _MsMaterialGroupForm[DATA_MODEL_NAME],
1968
+ name: MsMaterialGroupForm[DATA_MODEL_NAME],
2000
1969
  moduleName: MODULE_NAME,
2001
1970
  ...options
2002
1971
  });
@@ -2017,18 +1986,17 @@ const _MsMaterialGroupForm = class _MsMaterialGroupForm extends (_b = DataForm$1
2017
1986
  const { children, ...submitData } = data;
2018
1987
  return submitData;
2019
1988
  }
2020
- };
2021
- __publicField(_MsMaterialGroupForm, _a, "mk-material-group");
2022
- let MsMaterialGroupForm = _MsMaterialGroupForm;
2023
- const _MsMaterialGroupTree = class _MsMaterialGroupTree extends (_d = DataTree, _c = DATA_MODEL_NAME, _d) {
1989
+ }
1990
+ class MsMaterialGroupTree extends DataTree {
1991
+ static [DATA_MODEL_NAME] = "mk-material-group";
1992
+ currentDataTreeNode;
2024
1993
  constructor(options = {}) {
2025
1994
  super({
2026
- name: _MsMaterialGroupTree[DATA_MODEL_NAME],
1995
+ name: MsMaterialGroupTree[DATA_MODEL_NAME],
2027
1996
  moduleName: MODULE_NAME,
2028
1997
  props: { label: "desc", parent: "parentGroupId" },
2029
1998
  ...options
2030
1999
  });
2031
- __publicField(this, "currentDataTreeNode");
2032
2000
  this.currentDataTreeNode = null;
2033
2001
  }
2034
2002
  formatItem(item) {
@@ -2060,13 +2028,12 @@ const _MsMaterialGroupTree = class _MsMaterialGroupTree extends (_d = DataTree,
2060
2028
  setCurrentNode(node) {
2061
2029
  this.currentDataTreeNode = node;
2062
2030
  }
2063
- };
2064
- __publicField(_MsMaterialGroupTree, _c, "mk-material-group");
2065
- let MsMaterialGroupTree = _MsMaterialGroupTree;
2066
- const _MsMaterialForm = class _MsMaterialForm extends (_f = DataForm$1, _e = DATA_MODEL_NAME, _f) {
2031
+ }
2032
+ class MsMaterialForm extends DataForm$1 {
2033
+ static [DATA_MODEL_NAME] = "mk-material";
2067
2034
  constructor(options = {}) {
2068
2035
  super({
2069
- name: _MsMaterialForm[DATA_MODEL_NAME],
2036
+ name: MsMaterialForm[DATA_MODEL_NAME],
2070
2037
  moduleName: MODULE_NAME,
2071
2038
  ...options
2072
2039
  });
@@ -2098,17 +2065,16 @@ const _MsMaterialForm = class _MsMaterialForm extends (_f = DataForm$1, _e = DAT
2098
2065
  path: data.path
2099
2066
  };
2100
2067
  }
2101
- };
2102
- __publicField(_MsMaterialForm, _e, "mk-material");
2103
- let MsMaterialForm = _MsMaterialForm;
2104
- const _MsConfigForm = class _MsConfigForm extends (_h = DataForm$1, _g = DATA_MODEL_NAME, _h) {
2068
+ }
2069
+ class MsConfigForm extends DataForm$1 {
2070
+ static [DATA_MODEL_NAME] = "mk-sys-config";
2071
+ configComponent;
2105
2072
  constructor(options = {}) {
2106
2073
  super({
2107
- name: _MsConfigForm[DATA_MODEL_NAME],
2074
+ name: MsConfigForm[DATA_MODEL_NAME],
2108
2075
  moduleName: MODULE_NAME,
2109
2076
  ...options
2110
2077
  });
2111
- __publicField(this, "configComponent");
2112
2078
  this.configComponent = options.configComponent ?? new ConfigComponents();
2113
2079
  }
2114
2080
  async initialize() {
@@ -2140,8 +2106,7 @@ const _MsConfigForm = class _MsConfigForm extends (_h = DataForm$1, _g = DATA_MO
2140
2106
  rules: [
2141
2107
  {
2142
2108
  validator: (rule, value, callback) => {
2143
- var _a2;
2144
- if (((_a2 = this.data) == null ? void 0 : _a2.type) === "json") {
2109
+ if (this.data?.type === "json") {
2145
2110
  try {
2146
2111
  JSON.parse(value);
2147
2112
  } catch (e) {
@@ -2164,7 +2129,7 @@ const _MsConfigForm = class _MsConfigForm extends (_h = DataForm$1, _g = DATA_MO
2164
2129
  ]);
2165
2130
  let disposable = null;
2166
2131
  this.dataChangeEvent.on(({ data }) => {
2167
- disposable == null ? void 0 : disposable.dispose();
2132
+ disposable?.dispose();
2168
2133
  if (!data) {
2169
2134
  return null;
2170
2135
  }
@@ -2216,22 +2181,22 @@ const _MsConfigForm = class _MsConfigForm extends (_h = DataForm$1, _g = DATA_MO
2216
2181
  resolveItemType(config) {
2217
2182
  return this.resolveType(config.type);
2218
2183
  }
2219
- };
2220
- __publicField(_MsConfigForm, _g, "mk-sys-config");
2221
- let MsConfigForm = _MsConfigForm;
2222
- const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA_MODEL_NAME, _j) {
2184
+ }
2185
+ class MsConfigTable extends DataTable$1 {
2186
+ static [DATA_MODEL_NAME] = "mk-sys-config";
2187
+ static _instance = null;
2223
2188
  static get instance() {
2224
- if (!_MsConfigTable._instance) {
2225
- _MsConfigTable._instance = new _MsConfigTable();
2226
- _MsConfigTable._instance.init().then(() => {
2227
- _MsConfigTable._instance.dataFilter.setReady();
2189
+ if (!MsConfigTable._instance) {
2190
+ MsConfigTable._instance = new MsConfigTable();
2191
+ MsConfigTable._instance.init().then(() => {
2192
+ MsConfigTable._instance.dataFilter.setReady();
2228
2193
  });
2229
2194
  }
2230
- return _MsConfigTable._instance;
2195
+ return MsConfigTable._instance;
2231
2196
  }
2232
2197
  constructor(options = {}) {
2233
2198
  super({
2234
- name: _MsConfigTable[DATA_MODEL_NAME],
2199
+ name: MsConfigTable[DATA_MODEL_NAME],
2235
2200
  moduleName: MODULE_NAME,
2236
2201
  // sortFieldName: "sortNo",
2237
2202
  ...options
@@ -2244,10 +2209,7 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
2244
2209
  new AddButton(),
2245
2210
  new TableHeaderItem$1({
2246
2211
  componentInfo: "MKBatchOpt",
2247
- predicate: () => {
2248
- var _a2, _b2, _c2;
2249
- return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
2250
- }
2212
+ predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
2251
2213
  })
2252
2214
  ];
2253
2215
  this.dataFilter.setColumns([
@@ -2276,10 +2238,9 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
2276
2238
  return { ...item, value };
2277
2239
  }
2278
2240
  static async loadConfig(key) {
2279
- var _a2;
2280
2241
  const where = new Where();
2281
2242
  where.addCondition("key", "=", key);
2282
- const dataViewRequest = _MsConfigTable.instance.dataViewRequest;
2243
+ const dataViewRequest = MsConfigTable.instance.dataViewRequest;
2283
2244
  const response = await dataViewRequest.allList({
2284
2245
  data: { condition: where }
2285
2246
  });
@@ -2287,15 +2248,14 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
2287
2248
  ...response,
2288
2249
  data: {
2289
2250
  ...response.data,
2290
- data: ((_a2 = response.data.data) == null ? void 0 : _a2[0]) ?? null
2251
+ data: response.data.data?.[0] ?? null
2291
2252
  }
2292
2253
  };
2293
2254
  }
2294
2255
  static async getConfigValue(key) {
2295
- var _a2;
2296
2256
  const where = new Where();
2297
2257
  where.addCondition("key", "=", key);
2298
- const dataViewRequest = _MsConfigTable.instance.dataViewRequest;
2258
+ const dataViewRequest = MsConfigTable.instance.dataViewRequest;
2299
2259
  const response = await dataViewRequest.query({
2300
2260
  data: { condition: where, pc: 1, pn: 1 }
2301
2261
  });
@@ -2303,13 +2263,13 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
2303
2263
  throw new Error(response.data.msg);
2304
2264
  }
2305
2265
  try {
2306
- return JSON.parse((_a2 = response.data.data[0]) == null ? void 0 : _a2.value);
2266
+ return JSON.parse(response.data.data[0]?.value);
2307
2267
  } catch {
2308
2268
  return null;
2309
2269
  }
2310
2270
  }
2311
2271
  static async setConfigValue(key, value) {
2312
- const dataViewRequest = _MsConfigTable.instance.dataViewRequest;
2272
+ const dataViewRequest = MsConfigTable.instance.dataViewRequest;
2313
2273
  const where = new Where();
2314
2274
  where.addCondition("key", "=", key);
2315
2275
  const listResponse = await dataViewRequest.query({
@@ -2324,10 +2284,7 @@ const _MsConfigTable = class _MsConfigTable extends (_j = DataTable$1, _i = DATA
2324
2284
  });
2325
2285
  return response.data;
2326
2286
  }
2327
- };
2328
- __publicField(_MsConfigTable, _i, "mk-sys-config");
2329
- __publicField(_MsConfigTable, "_instance", null);
2330
- let MsConfigTable = _MsConfigTable;
2287
+ }
2331
2288
  class MsMaterialComponents extends Components {
2332
2289
  constructor() {
2333
2290
  super();
@@ -2360,24 +2317,25 @@ function getDefaultSelectMaterialGroup(nodes) {
2360
2317
  }
2361
2318
  return getDefaultSelectMaterialGroup(nodes[0].children) ?? nodes[0];
2362
2319
  }
2363
- const _MsMaterialTable = class _MsMaterialTable extends (_l = DataTable$1, _k = DATA_MODEL_NAME, _l) {
2320
+ class MsMaterialTable extends DataTable$1 {
2321
+ static [DATA_MODEL_NAME] = "mk-material";
2322
+ materialTypes = [];
2323
+ allowMaterialTypeValues = [];
2324
+ materialComponents;
2325
+ currentMaterialGroupId = null;
2326
+ currentMaterialType = null;
2327
+ // 素材上传
2328
+ upload;
2329
+ // 素材组
2330
+ materialGroupTree = this.register(new MsMaterialGroupTree());
2331
+ // 素材表单
2332
+ materialForm;
2364
2333
  constructor(options = {}) {
2365
2334
  super({
2366
- name: _MsMaterialTable[DATA_MODEL_NAME],
2335
+ name: MsMaterialTable[DATA_MODEL_NAME],
2367
2336
  moduleName: MODULE_NAME,
2368
2337
  ...options
2369
2338
  });
2370
- __publicField(this, "materialTypes", []);
2371
- __publicField(this, "allowMaterialTypeValues", []);
2372
- __publicField(this, "materialComponents");
2373
- __publicField(this, "currentMaterialGroupId", null);
2374
- __publicField(this, "currentMaterialType", null);
2375
- // 素材上传
2376
- __publicField(this, "upload");
2377
- // 素材组
2378
- __publicField(this, "materialGroupTree", this.register(new MsMaterialGroupTree()));
2379
- // 素材表单
2380
- __publicField(this, "materialForm");
2381
2339
  this.materialComponents = options.materialComponents ?? new MsMaterialComponents();
2382
2340
  this.upload = new WebFileUpload({
2383
2341
  filters: [
@@ -2392,9 +2350,9 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = DataTable$1, _k =
2392
2350
  ]
2393
2351
  });
2394
2352
  this.materialForm = this.register(new class extends MsMaterialForm {
2353
+ formGroupTree;
2395
2354
  constructor(groupTree) {
2396
2355
  super();
2397
- __publicField(this, "formGroupTree");
2398
2356
  this.formGroupTree = groupTree;
2399
2357
  }
2400
2358
  async initialize() {
@@ -2416,7 +2374,7 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = DataTable$1, _k =
2416
2374
  async initialize() {
2417
2375
  await super.initialize();
2418
2376
  const dvOpt = DvOpt.createInstance({
2419
- name: _MsMaterialTable[DATA_MODEL_NAME]
2377
+ name: MsMaterialTable[DATA_MODEL_NAME]
2420
2378
  });
2421
2379
  this.upload.uploadEvent.on(({ uploadItem }) => {
2422
2380
  this.loadingManager.startLoading();
@@ -2536,8 +2494,7 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = DataTable$1, _k =
2536
2494
  this.attachMaterialTableCondition();
2537
2495
  }
2538
2496
  setCurrentMaterialType(materialType) {
2539
- var _a2;
2540
- if ((materialType == null ? void 0 : materialType.value) === ((_a2 = this.currentMaterialType) == null ? void 0 : _a2.value)) {
2497
+ if (materialType?.value === this.currentMaterialType?.value) {
2541
2498
  return;
2542
2499
  }
2543
2500
  this.currentMaterialType = materialType;
@@ -2575,13 +2532,12 @@ const _MsMaterialTable = class _MsMaterialTable extends (_l = DataTable$1, _k =
2575
2532
  this.materialForm.dispose();
2576
2533
  this.materialGroupTree.dispose();
2577
2534
  }
2578
- };
2579
- __publicField(_MsMaterialTable, _k, "mk-material");
2580
- let MsMaterialTable = _MsMaterialTable;
2581
- const _MsRoleForm = class _MsRoleForm extends (_n = DataForm$1, _m = DATA_MODEL_NAME, _n) {
2535
+ }
2536
+ class MsRoleForm extends DataForm$1 {
2537
+ static [DATA_MODEL_NAME] = "ms-role";
2582
2538
  constructor(options = {}) {
2583
2539
  super({
2584
- name: _MsRoleForm[DATA_MODEL_NAME],
2540
+ name: MsRoleForm[DATA_MODEL_NAME],
2585
2541
  moduleName: MODULE_NAME,
2586
2542
  ...options
2587
2543
  });
@@ -2612,19 +2568,18 @@ const _MsRoleForm = class _MsRoleForm extends (_n = DataForm$1, _m = DATA_MODEL_
2612
2568
  memo: item.memo || ""
2613
2569
  };
2614
2570
  }
2615
- };
2616
- __publicField(_MsRoleForm, _m, "ms-role");
2617
- let MsRoleForm = _MsRoleForm;
2618
- const _MsRoleTable = class _MsRoleTable extends (_p = DataTable$1, _o = DATA_MODEL_NAME, _p) {
2571
+ }
2572
+ class MsRoleTable extends DataTable$1 {
2573
+ static [DATA_MODEL_NAME] = "ms-role";
2574
+ configRolePermissionEvent = this.register(
2575
+ new Event()
2576
+ );
2619
2577
  constructor(options = {}) {
2620
2578
  super({
2621
- name: _MsRoleTable[DATA_MODEL_NAME],
2579
+ name: MsRoleTable[DATA_MODEL_NAME],
2622
2580
  moduleName: MODULE_NAME,
2623
2581
  ...options
2624
2582
  });
2625
- __publicField(this, "configRolePermissionEvent", this.register(
2626
- new Event()
2627
- ));
2628
2583
  }
2629
2584
  async initialize() {
2630
2585
  await super.initialize();
@@ -2633,10 +2588,7 @@ const _MsRoleTable = class _MsRoleTable extends (_p = DataTable$1, _o = DATA_MOD
2633
2588
  new AddButton(),
2634
2589
  new TableHeaderItem$1({
2635
2590
  componentInfo: "MKBatchOpt",
2636
- predicate: () => {
2637
- var _a2, _b2, _c2;
2638
- return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
2639
- }
2591
+ predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
2640
2592
  })
2641
2593
  ];
2642
2594
  this.dataFilter.setColumns([
@@ -2677,13 +2629,12 @@ const _MsRoleTable = class _MsRoleTable extends (_p = DataTable$1, _o = DATA_MOD
2677
2629
  desc: item.desc || ""
2678
2630
  };
2679
2631
  }
2680
- };
2681
- __publicField(_MsRoleTable, _o, "ms-role");
2682
- let MsRoleTable = _MsRoleTable;
2683
- const _MsRolePermissionPointTable = class _MsRolePermissionPointTable extends (_r = DataTable$1, _q = DATA_MODEL_NAME, _r) {
2632
+ }
2633
+ class MsRolePermissionPointTable extends DataTable$1 {
2634
+ static [DATA_MODEL_NAME] = "ms-role-permission-point";
2684
2635
  constructor(options = {}) {
2685
2636
  super({
2686
- name: _MsRolePermissionPointTable[DATA_MODEL_NAME],
2637
+ name: MsRolePermissionPointTable[DATA_MODEL_NAME],
2687
2638
  moduleName: MODULE_NAME,
2688
2639
  ...options
2689
2640
  });
@@ -2700,13 +2651,12 @@ const _MsRolePermissionPointTable = class _MsRolePermissionPointTable extends (_
2700
2651
  ]);
2701
2652
  this.dataFilter.setReady();
2702
2653
  }
2703
- };
2704
- __publicField(_MsRolePermissionPointTable, _q, "ms-role-permission-point");
2705
- let MsRolePermissionPointTable = _MsRolePermissionPointTable;
2706
- const _MsRoleRouteTable = class _MsRoleRouteTable extends (_t = DataTable$1, _s = DATA_MODEL_NAME, _t) {
2654
+ }
2655
+ class MsRoleRouteTable extends DataTable$1 {
2656
+ static [DATA_MODEL_NAME] = "ms-role-route";
2707
2657
  constructor(options = {}) {
2708
2658
  super({
2709
- name: _MsRoleRouteTable[DATA_MODEL_NAME],
2659
+ name: MsRoleRouteTable[DATA_MODEL_NAME],
2710
2660
  moduleName: MODULE_NAME,
2711
2661
  ...options
2712
2662
  });
@@ -2723,13 +2673,12 @@ const _MsRoleRouteTable = class _MsRoleRouteTable extends (_t = DataTable$1, _s
2723
2673
  ]);
2724
2674
  this.dataFilter.setReady();
2725
2675
  }
2726
- };
2727
- __publicField(_MsRoleRouteTable, _s, "ms-role-route");
2728
- let MsRoleRouteTable = _MsRoleRouteTable;
2729
- const _MsMenuTable = class _MsMenuTable extends (_v = DataTable$1, _u = DATA_MODEL_NAME, _v) {
2676
+ }
2677
+ class MsMenuTable extends DataTable$1 {
2678
+ static [DATA_MODEL_NAME] = "ms-menu";
2730
2679
  constructor(options = {}) {
2731
2680
  super({
2732
- name: _MsMenuTable[DATA_MODEL_NAME],
2681
+ name: MsMenuTable[DATA_MODEL_NAME],
2733
2682
  moduleName: MODULE_NAME,
2734
2683
  ...options
2735
2684
  });
@@ -2741,10 +2690,7 @@ const _MsMenuTable = class _MsMenuTable extends (_v = DataTable$1, _u = DATA_MOD
2741
2690
  new AddButton(),
2742
2691
  new TableHeaderItem$1({
2743
2692
  componentInfo: "MKBatchOpt",
2744
- predicate: () => {
2745
- var _a2, _b2, _c2;
2746
- return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
2747
- }
2693
+ predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
2748
2694
  })
2749
2695
  ];
2750
2696
  this.setColumns([
@@ -2763,9 +2709,7 @@ const _MsMenuTable = class _MsMenuTable extends (_v = DataTable$1, _u = DATA_MOD
2763
2709
  routeId: item.routeId
2764
2710
  };
2765
2711
  }
2766
- };
2767
- __publicField(_MsMenuTable, _u, "ms-menu");
2768
- let MsMenuTable = _MsMenuTable;
2712
+ }
2769
2713
  const _hoisted_1$F = { class: "mt-4 text-align-end" };
2770
2714
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
2771
2715
  ...{ name: "RouteNameInput" },
@@ -2848,99 +2792,96 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
2848
2792
  _: 1
2849
2793
  })
2850
2794
  ]),
2851
- default: withCtx(() => {
2852
- var _a2, _b2;
2853
- return [
2854
- createElementVNode("div", null, [
2855
- createVNode(_component_el_select, {
2856
- modelValue: unref(dataModelValue),
2857
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(dataModelValue) ? dataModelValue.value = $event : null),
2858
- filterable: "",
2859
- placeholder: "选择数据视图"
2860
- }, {
2861
- default: withCtx(() => [
2862
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(dataModelList), (item) => {
2863
- return openBlock(), createBlock(_component_el_option, {
2864
- key: item.value,
2865
- label: item.label,
2866
- value: item.value
2867
- }, null, 8, ["label", "value"]);
2868
- }), 128))
2869
- ]),
2870
- _: 1
2871
- }, 8, ["modelValue"])
2872
- ]),
2873
- unref(dataModelValue) ? (openBlock(), createBlock(_component_el_radio_group, {
2874
- key: 0,
2875
- class: "mt-2",
2876
- modelValue: unref(pageTypeValue),
2877
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(pageTypeValue) ? pageTypeValue.value = $event : null)
2795
+ default: withCtx(() => [
2796
+ createElementVNode("div", null, [
2797
+ createVNode(_component_el_select, {
2798
+ modelValue: unref(dataModelValue),
2799
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(dataModelValue) ? dataModelValue.value = $event : null),
2800
+ filterable: "",
2801
+ placeholder: "选择数据视图"
2878
2802
  }, {
2879
2803
  default: withCtx(() => [
2880
- (openBlock(), createElementBlock(Fragment, null, renderList(pageDefines, (page, index2) => {
2881
- return createVNode(_component_el_radio_button, {
2882
- label: page.desc,
2883
- value: index2
2804
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(dataModelList), (item) => {
2805
+ return openBlock(), createBlock(_component_el_option, {
2806
+ key: item.value,
2807
+ label: item.label,
2808
+ value: item.value
2884
2809
  }, null, 8, ["label", "value"]);
2885
- }), 64))
2810
+ }), 128))
2886
2811
  ]),
2887
2812
  _: 1
2888
- }, 8, ["modelValue"])) : createCommentVNode("", true),
2889
- unref(dataModelValue) && ((_a2 = pageDefines[unref(pageTypeValue)]) == null ? void 0 : _a2.list) ? (openBlock(), createBlock(_component_el_radio_group, {
2890
- key: 1,
2891
- class: "mt-2",
2892
- modelValue: unref(listPageTypeValue),
2893
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(listPageTypeValue) ? listPageTypeValue.value = $event : null)
2813
+ }, 8, ["modelValue"])
2814
+ ]),
2815
+ unref(dataModelValue) ? (openBlock(), createBlock(_component_el_radio_group, {
2816
+ key: 0,
2817
+ class: "mt-2",
2818
+ modelValue: unref(pageTypeValue),
2819
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(pageTypeValue) ? pageTypeValue.value = $event : null)
2820
+ }, {
2821
+ default: withCtx(() => [
2822
+ (openBlock(), createElementBlock(Fragment, null, renderList(pageDefines, (page, index2) => {
2823
+ return createVNode(_component_el_radio_button, {
2824
+ label: page.desc,
2825
+ value: index2
2826
+ }, null, 8, ["label", "value"]);
2827
+ }), 64))
2828
+ ]),
2829
+ _: 1
2830
+ }, 8, ["modelValue"])) : createCommentVNode("", true),
2831
+ unref(dataModelValue) && pageDefines[unref(pageTypeValue)]?.list ? (openBlock(), createBlock(_component_el_radio_group, {
2832
+ key: 1,
2833
+ class: "mt-2",
2834
+ modelValue: unref(listPageTypeValue),
2835
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(listPageTypeValue) ? listPageTypeValue.value = $event : null)
2836
+ }, {
2837
+ default: withCtx(() => [
2838
+ (openBlock(true), createElementBlock(Fragment, null, renderList(pageDefines[unref(pageTypeValue)].list, (list, index2) => {
2839
+ return openBlock(), createBlock(_component_el_radio_button, {
2840
+ label: list.desc,
2841
+ value: index2
2842
+ }, null, 8, ["label", "value"]);
2843
+ }), 256))
2844
+ ]),
2845
+ _: 1
2846
+ }, 8, ["modelValue"])) : createCommentVNode("", true),
2847
+ unref(dataModelValue) && pageDefines[unref(pageTypeValue)]?.form ? (openBlock(), createBlock(_component_el_radio_group, {
2848
+ key: 2,
2849
+ class: "mt-2",
2850
+ modelValue: unref(formPageTypeValue),
2851
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(formPageTypeValue) ? formPageTypeValue.value = $event : null)
2852
+ }, {
2853
+ default: withCtx(() => [
2854
+ (openBlock(true), createElementBlock(Fragment, null, renderList(pageDefines[unref(pageTypeValue)].form, (f, index2) => {
2855
+ return openBlock(), createBlock(_component_el_radio_button, {
2856
+ label: f.desc,
2857
+ value: index2
2858
+ }, null, 8, ["label", "value"]);
2859
+ }), 256))
2860
+ ]),
2861
+ _: 1
2862
+ }, 8, ["modelValue"])) : createCommentVNode("", true),
2863
+ createElementVNode("div", _hoisted_1$F, [
2864
+ createVNode(_component_el_button, {
2865
+ size: "small",
2866
+ onClick: _cache[5] || (_cache[5] = ($event) => routeCreatePanelVisible.value = false)
2894
2867
  }, {
2895
2868
  default: withCtx(() => [
2896
- (openBlock(true), createElementBlock(Fragment, null, renderList(pageDefines[unref(pageTypeValue)].list, (list, index2) => {
2897
- return openBlock(), createBlock(_component_el_radio_button, {
2898
- label: list.desc,
2899
- value: index2
2900
- }, null, 8, ["label", "value"]);
2901
- }), 256))
2869
+ createTextVNode("取消")
2902
2870
  ]),
2903
2871
  _: 1
2904
- }, 8, ["modelValue"])) : createCommentVNode("", true),
2905
- unref(dataModelValue) && ((_b2 = pageDefines[unref(pageTypeValue)]) == null ? void 0 : _b2.form) ? (openBlock(), createBlock(_component_el_radio_group, {
2906
- key: 2,
2907
- class: "mt-2",
2908
- modelValue: unref(formPageTypeValue),
2909
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(formPageTypeValue) ? formPageTypeValue.value = $event : null)
2872
+ }),
2873
+ createVNode(_component_el_button, {
2874
+ type: "primary",
2875
+ size: "small",
2876
+ onClick: createHandle
2910
2877
  }, {
2911
2878
  default: withCtx(() => [
2912
- (openBlock(true), createElementBlock(Fragment, null, renderList(pageDefines[unref(pageTypeValue)].form, (f, index2) => {
2913
- return openBlock(), createBlock(_component_el_radio_button, {
2914
- label: f.desc,
2915
- value: index2
2916
- }, null, 8, ["label", "value"]);
2917
- }), 256))
2879
+ createTextVNode("生成")
2918
2880
  ]),
2919
2881
  _: 1
2920
- }, 8, ["modelValue"])) : createCommentVNode("", true),
2921
- createElementVNode("div", _hoisted_1$F, [
2922
- createVNode(_component_el_button, {
2923
- size: "small",
2924
- onClick: _cache[5] || (_cache[5] = ($event) => routeCreatePanelVisible.value = false)
2925
- }, {
2926
- default: withCtx(() => [
2927
- createTextVNode("取消")
2928
- ]),
2929
- _: 1
2930
- }),
2931
- createVNode(_component_el_button, {
2932
- type: "primary",
2933
- size: "small",
2934
- onClick: createHandle
2935
- }, {
2936
- default: withCtx(() => [
2937
- createTextVNode("生成")
2938
- ]),
2939
- _: 1
2940
- })
2941
- ])
2942
- ];
2943
- }),
2882
+ })
2883
+ ])
2884
+ ]),
2944
2885
  _: 1
2945
2886
  }, 8, ["visible"])
2946
2887
  ]),
@@ -2949,9 +2890,10 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
2949
2890
  };
2950
2891
  }
2951
2892
  });
2952
- const _MsRouteForm = class _MsRouteForm extends (_x = DataForm$1, _w = DATA_MODEL_NAME, _x) {
2893
+ class MsRouteForm extends DataForm$1 {
2894
+ static [DATA_MODEL_NAME] = "ms-route";
2953
2895
  constructor(options = {}) {
2954
- super({ name: _MsRouteForm[DATA_MODEL_NAME], ...options, moduleName: MODULE_NAME });
2896
+ super({ name: MsRouteForm[DATA_MODEL_NAME], ...options, moduleName: MODULE_NAME });
2955
2897
  }
2956
2898
  async initialize() {
2957
2899
  await super.initialize();
@@ -3001,19 +2943,18 @@ const _MsRouteForm = class _MsRouteForm extends (_x = DataForm$1, _w = DATA_MODE
3001
2943
  memo: item.memo || ""
3002
2944
  };
3003
2945
  }
3004
- };
3005
- __publicField(_MsRouteForm, _w, "ms-route");
3006
- let MsRouteForm = _MsRouteForm;
3007
- const _MsRouteTable = class _MsRouteTable extends (_z = DataTable$1, _y = DATA_MODEL_NAME, _z) {
2946
+ }
2947
+ class MsRouteTable extends DataTable$1 {
2948
+ static [DATA_MODEL_NAME] = "ms-route";
3008
2949
  constructor(options = {}) {
3009
2950
  super({
3010
- name: _MsRouteTable[DATA_MODEL_NAME],
2951
+ name: MsRouteTable[DATA_MODEL_NAME],
3011
2952
  ...options,
3012
2953
  moduleName: MODULE_NAME
3013
2954
  });
3014
- // 操作列
3015
- __publicField(this, "actionColumn", new TableActionColumn());
3016
2955
  }
2956
+ // 操作列
2957
+ actionColumn = new TableActionColumn();
3017
2958
  async initialize() {
3018
2959
  await super.initialize();
3019
2960
  this.dataFilter.setColumns([new FilterColumn({
@@ -3078,13 +3019,12 @@ const _MsRouteTable = class _MsRouteTable extends (_z = DataTable$1, _y = DATA_M
3078
3019
  // <ElButton onClick={()=>props.dataTable.addRecord()}>添加</ElButton>
3079
3020
  // </ElCard>;
3080
3021
  // }
3081
- };
3082
- __publicField(_MsRouteTable, _y, "ms-route");
3083
- let MsRouteTable = _MsRouteTable;
3084
- const _MsPermissionPointDefineForm = class _MsPermissionPointDefineForm extends (_B = DataForm$1, _A = DATA_MODEL_NAME, _B) {
3022
+ }
3023
+ class MsPermissionPointDefineForm extends DataForm$1 {
3024
+ static [DATA_MODEL_NAME] = "ms-permission-point-def";
3085
3025
  constructor(options = {}) {
3086
3026
  super({
3087
- name: _MsPermissionPointDefineForm[DATA_MODEL_NAME],
3027
+ name: MsPermissionPointDefineForm[DATA_MODEL_NAME],
3088
3028
  moduleName: MODULE_NAME,
3089
3029
  ...options
3090
3030
  });
@@ -3113,13 +3053,12 @@ const _MsPermissionPointDefineForm = class _MsPermissionPointDefineForm extends
3113
3053
  })
3114
3054
  ]);
3115
3055
  }
3116
- };
3117
- __publicField(_MsPermissionPointDefineForm, _A, "ms-permission-point-def");
3118
- let MsPermissionPointDefineForm = _MsPermissionPointDefineForm;
3119
- const _MsPermissionPointDefineTable = class _MsPermissionPointDefineTable extends (_D = DataTable$1, _C = DATA_MODEL_NAME, _D) {
3056
+ }
3057
+ class MsPermissionPointDefineTable extends DataTable$1 {
3058
+ static [DATA_MODEL_NAME] = "ms-permission-point-def";
3120
3059
  constructor(options = {}) {
3121
3060
  super({
3122
- name: _MsPermissionPointDefineTable[DATA_MODEL_NAME],
3061
+ name: MsPermissionPointDefineTable[DATA_MODEL_NAME],
3123
3062
  moduleName: MODULE_NAME,
3124
3063
  ...options
3125
3064
  });
@@ -3138,9 +3077,7 @@ const _MsPermissionPointDefineTable = class _MsPermissionPointDefineTable extend
3138
3077
  ]);
3139
3078
  this.dataFilter.setReady();
3140
3079
  }
3141
- };
3142
- __publicField(_MsPermissionPointDefineTable, _C, "ms-permission-point-def");
3143
- let MsPermissionPointDefineTable = _MsPermissionPointDefineTable;
3080
+ }
3144
3081
  const abstractSelectProps = buildProps({
3145
3082
  modelValue: {
3146
3083
  type: null
@@ -3198,9 +3135,8 @@ const AbstractSelect = defineComponent({
3198
3135
  }
3199
3136
  });
3200
3137
  const selections = computed(() => {
3201
- var _a2, _b2;
3202
3138
  if (props.objectValue) {
3203
- return props.multiple ? ((_a2 = modelValue.value) == null ? void 0 : _a2.map((item) => item[primaryKey.value])) ?? [] : ((_b2 = modelValue.value) == null ? void 0 : _b2[primaryKey.value]) ?? "";
3139
+ return props.multiple ? modelValue.value?.map((item) => item[primaryKey.value]) ?? [] : modelValue.value?.[primaryKey.value] ?? "";
3204
3140
  }
3205
3141
  return modelValue.value;
3206
3142
  });
@@ -3208,10 +3144,7 @@ const AbstractSelect = defineComponent({
3208
3144
  const selectRecords = ref([]);
3209
3145
  const dataLoading = ref(true);
3210
3146
  const primaryKey = computed(
3211
- () => {
3212
- var _a2;
3213
- return props.primaryFieldName ?? ((_a2 = props.dataTable) == null ? void 0 : _a2.primaryKey) ?? "value";
3214
- }
3147
+ () => props.primaryFieldName ?? props.dataTable?.primaryKey ?? "value"
3215
3148
  );
3216
3149
  const formatOptions = computed(() => {
3217
3150
  let value;
@@ -3256,7 +3189,7 @@ const AbstractSelect = defineComponent({
3256
3189
  async (modelValue2) => {
3257
3190
  let values;
3258
3191
  if (props.objectValue) {
3259
- values = props.multiple ? (modelValue2 == null ? void 0 : modelValue2.map((item) => item[unref(primaryKey)])) ?? [] : (modelValue2 == null ? void 0 : modelValue2[unref(primaryKey)]) ?? null;
3192
+ values = props.multiple ? modelValue2?.map((item) => item[unref(primaryKey)]) ?? [] : modelValue2?.[unref(primaryKey)] ?? null;
3260
3193
  } else {
3261
3194
  values = modelValue2;
3262
3195
  }
@@ -3332,8 +3265,7 @@ const AbstractSelect = defineComponent({
3332
3265
  };
3333
3266
  },
3334
3267
  render() {
3335
- var _a2, _b2;
3336
- return (_b2 = (_a2 = this.$slots).default) == null ? void 0 : _b2.call(_a2, {
3268
+ return this.$slots.default?.({
3337
3269
  options: this.options,
3338
3270
  selections: this.selections,
3339
3271
  selectRecords: this.selectRecords,
@@ -3536,15 +3468,14 @@ const DataTableSelect = /* @__PURE__ */ defineComponent({
3536
3468
  immediate: true
3537
3469
  });
3538
3470
  const handleMousedown = async () => {
3539
- var _a2, _b2;
3540
3471
  if (props.disabled) {
3541
3472
  return;
3542
3473
  }
3543
- const selections = (_a2 = unref(abstractSelectInstance)) == null ? void 0 : _a2.selections;
3474
+ const selections = unref(abstractSelectInstance)?.selections;
3544
3475
  dataTable.value.setSelection(props.multiple ? selections ?? [] : selections ? [selections] : []);
3545
3476
  const result = await Dialoger.dataTableSelectDialog(unref(dataTable));
3546
3477
  if (result.isConfirm) {
3547
- (_b2 = unref(abstractSelectInstance)) == null ? void 0 : _b2.setSelections(props.multiple ? result.selections : result.selections[0]);
3478
+ unref(abstractSelectInstance)?.setSelections(props.multiple ? result.selections : result.selections[0]);
3548
3479
  }
3549
3480
  };
3550
3481
  return () => {
@@ -3627,10 +3558,7 @@ const DataSelect = /* @__PURE__ */ defineComponent({
3627
3558
  setup(props, {
3628
3559
  emit
3629
3560
  }) {
3630
- const loading = computed(() => {
3631
- var _a2;
3632
- return ((_a2 = props.dataTable) == null ? void 0 : _a2.loading) ?? false;
3633
- });
3561
+ const loading = computed(() => props.dataTable?.loading ?? false);
3634
3562
  const modelValue = computed({
3635
3563
  get: () => unref(props.modelValue),
3636
3564
  set: (v) => {
@@ -3775,7 +3703,7 @@ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
3775
3703
  default: MKCodeEditor
3776
3704
  }, Symbol.toStringTag, { value: "Module" }));
3777
3705
  const MKJsonEditor = withInstall(
3778
- defineAsyncComponent(() => import("./Editor-io6yY4kQ.js"))
3706
+ defineAsyncComponent(() => import("./Editor-CPeJtlen.js"))
3779
3707
  );
3780
3708
  const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3781
3709
  __proto__: null,
@@ -3916,8 +3844,7 @@ const FormIconSelect = /* @__PURE__ */ defineComponent({
3916
3844
  icons.value = Array.from(new Set(iconList));
3917
3845
  });
3918
3846
  watch(modelValue, () => {
3919
- var _a2;
3920
- (_a2 = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a2.call(elFormItem, "change");
3847
+ elFormItem?.validate?.("change");
3921
3848
  }, {
3922
3849
  flush: "post"
3923
3850
  });
@@ -4016,8 +3943,8 @@ const ImageCropperContent = /* @__PURE__ */ defineComponent({
4016
3943
  const cropperRef = ref(null);
4017
3944
  const outputType = computed(() => {
4018
3945
  const base64Match = props.src.match(BASE64_PREFIX);
4019
- if (base64Match == null ? void 0 : base64Match[1]) {
4020
- return base64Match == null ? void 0 : base64Match[1];
3946
+ if (base64Match?.[1]) {
3947
+ return base64Match?.[1];
4021
3948
  }
4022
3949
  const url = new URL(props.src, location.origin).toString();
4023
3950
  const index2 = url.lastIndexOf(".");
@@ -4047,9 +3974,8 @@ const ImageCropperContent = /* @__PURE__ */ defineComponent({
4047
3974
  const maxWidth = ref(props.maxWidth);
4048
3975
  const maxHeight = ref(props.maxHeight);
4049
3976
  const enlarge = computed(() => {
4050
- var _a2, _b2;
4051
- const width = ((_a2 = unref(cropperRef)) == null ? void 0 : _a2.cropW) ?? 1;
4052
- const height = ((_b2 = unref(cropperRef)) == null ? void 0 : _b2.cropH) ?? 1;
3977
+ const width = unref(cropperRef)?.cropW ?? 1;
3978
+ const height = unref(cropperRef)?.cropH ?? 1;
4053
3979
  const ratio = unref(maxWidth) / unref(maxHeight);
4054
3980
  const cropRatio = width / height;
4055
3981
  return cropRatio > ratio ? unref(maxWidth) / width : unref(maxHeight) / height;
@@ -4060,7 +3986,7 @@ const ImageCropperContent = /* @__PURE__ */ defineComponent({
4060
3986
  const isFixed = computed(() => unref(currentRatio) !== FREE_RATIO);
4061
3987
  const fixedNumber = computed(() => {
4062
3988
  const option = unref(ratioOptions).find((option2) => option2.value === unref(currentRatio));
4063
- return [(option == null ? void 0 : option.width) ?? 1, (option == null ? void 0 : option.height) ?? 1];
3989
+ return [option?.width ?? 1, option?.height ?? 1];
4064
3990
  });
4065
3991
  watch(computed(() => props.src), (src) => {
4066
3992
  const image = new Image();
@@ -4164,40 +4090,37 @@ const ImageCropperContent = /* @__PURE__ */ defineComponent({
4164
4090
  }, [createVNode(ElScrollbar, {
4165
4091
  "height": "100%"
4166
4092
  }, {
4167
- default: () => {
4168
- var _a2;
4169
- return [createVNode(ElForm, {
4170
- "label-position": "top"
4093
+ default: () => [createVNode(ElForm, {
4094
+ "label-position": "top"
4095
+ }, {
4096
+ default: () => [createVNode(ElFormItem, {
4097
+ "label": "比例"
4171
4098
  }, {
4172
- default: () => [createVNode(ElFormItem, {
4173
- "label": "比例"
4174
- }, {
4175
- default: () => [createVNode(ElSelect, {
4176
- "placeholder": "选择比例",
4177
- "modelValue": currentRatio,
4178
- "onUpdate:modelValue": setCurrentRatio
4179
- }, _isSlot$7(ratioOptionsVNodes) ? ratioOptionsVNodes : {
4180
- default: () => [ratioOptionsVNodes]
4181
- })]
4182
- }), createVNode(ElFormItem, {
4183
- "label": "最大输出宽度"
4184
- }, {
4185
- default: () => [createVNode(ElInputNumber, {
4186
- "placeholder": "宽度",
4187
- "modelValue": maxWidth,
4188
- "onUpdate:modelValue": (v) => this.maxWidth = v
4189
- }, null)]
4190
- }), createVNode(ElFormItem, {
4191
- "label": "最大输出高度"
4192
- }, {
4193
- default: () => [createVNode(ElInputNumber, {
4194
- "placeholder": "高度",
4195
- "modelValue": maxHeight,
4196
- "onUpdate:modelValue": (v) => this.maxHeight = v
4197
- }, null)]
4099
+ default: () => [createVNode(ElSelect, {
4100
+ "placeholder": "选择比例",
4101
+ "modelValue": currentRatio,
4102
+ "onUpdate:modelValue": setCurrentRatio
4103
+ }, _isSlot$7(ratioOptionsVNodes) ? ratioOptionsVNodes : {
4104
+ default: () => [ratioOptionsVNodes]
4198
4105
  })]
4199
- }), (_a2 = $slots.tools) == null ? void 0 : _a2.call($slots)];
4200
- }
4106
+ }), createVNode(ElFormItem, {
4107
+ "label": "最大输出宽度"
4108
+ }, {
4109
+ default: () => [createVNode(ElInputNumber, {
4110
+ "placeholder": "宽度",
4111
+ "modelValue": maxWidth,
4112
+ "onUpdate:modelValue": (v) => this.maxWidth = v
4113
+ }, null)]
4114
+ }), createVNode(ElFormItem, {
4115
+ "label": "最大输出高度"
4116
+ }, {
4117
+ default: () => [createVNode(ElInputNumber, {
4118
+ "placeholder": "高度",
4119
+ "modelValue": maxHeight,
4120
+ "onUpdate:modelValue": (v) => this.maxHeight = v
4121
+ }, null)]
4122
+ })]
4123
+ }), $slots.tools?.()]
4201
4124
  })])]);
4202
4125
  }
4203
4126
  });
@@ -4259,10 +4182,10 @@ async function ImageCropper(options) {
4259
4182
  }
4260
4183
  const MKImageCropper = ImageCropper;
4261
4184
  let VisualPageEditor$1 = class VisualPageEditor {
4185
+ _version;
4186
+ _content;
4187
+ _modules;
4262
4188
  constructor() {
4263
- __publicField(this, "_version");
4264
- __publicField(this, "_content");
4265
- __publicField(this, "_modules");
4266
4189
  this._version = "1.0.0";
4267
4190
  this._content = null;
4268
4191
  this._modules = [];
@@ -4330,16 +4253,14 @@ let VisualPageEditor$1 = class VisualPageEditor {
4330
4253
  * @returns
4331
4254
  */
4332
4255
  size() {
4333
- var _a2;
4334
- return (_a2 = this._content) == null ? void 0 : _a2.contents.length;
4256
+ return this._content?.contents.length;
4335
4257
  }
4336
4258
  /**
4337
4259
  * 删除
4338
4260
  * @param index
4339
4261
  */
4340
4262
  remove(index2) {
4341
- var _a2;
4342
- (_a2 = this._content) == null ? void 0 : _a2.contents.splice(index2, 1);
4263
+ this._content?.contents.splice(index2, 1);
4343
4264
  }
4344
4265
  /**
4345
4266
  * 交换
@@ -4347,9 +4268,8 @@ let VisualPageEditor$1 = class VisualPageEditor {
4347
4268
  * @param exchangeIndex
4348
4269
  */
4349
4270
  exchange(index2, exchangeIndex) {
4350
- var _a2, _b2;
4351
- const item = (_a2 = this._content) == null ? void 0 : _a2.contents.splice(index2, 1);
4352
- (_b2 = this._content) == null ? void 0 : _b2.contents.splice(exchangeIndex, 0, item[0]);
4271
+ const item = this._content?.contents.splice(index2, 1);
4272
+ this._content?.contents.splice(exchangeIndex, 0, item[0]);
4353
4273
  }
4354
4274
  /**
4355
4275
  * 设置内容
@@ -4363,16 +4283,14 @@ let VisualPageEditor$1 = class VisualPageEditor {
4363
4283
  * @returns
4364
4284
  */
4365
4285
  get(index2) {
4366
- var _a2;
4367
- return (_a2 = this._content) == null ? void 0 : _a2.contents[index2];
4286
+ return this._content?.contents[index2];
4368
4287
  }
4369
4288
  /**
4370
4289
  * 获取内容
4371
4290
  * @returns
4372
4291
  */
4373
4292
  edit(index2, data) {
4374
- var _a2;
4375
- if ((_a2 = this._content) == null ? void 0 : _a2.contents[index2]) {
4293
+ if (this._content?.contents[index2]) {
4376
4294
  this._content.contents[index2].componentProps = data;
4377
4295
  console.log(this._content);
4378
4296
  }
@@ -4407,8 +4325,7 @@ const DynamicFormPanel = /* @__PURE__ */ defineComponent({
4407
4325
  }) => {
4408
4326
  const dataRef = ref(props.data);
4409
4327
  return () => {
4410
- var _a2;
4411
- const formItems = (_a2 = props.options) == null ? void 0 : _a2.filter((item) => {
4328
+ const formItems = props.options?.filter((item) => {
4412
4329
  if (item.condition) {
4413
4330
  return item.condition(dataRef.value);
4414
4331
  }
@@ -4654,11 +4571,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
4654
4571
  PageEditor2.edit(index2, result);
4655
4572
  };
4656
4573
  onMounted(() => {
4657
- var _a2;
4658
- (_a2 = editableRef.value) == null ? void 0 : _a2.parentElement.addEventListener("scroll", updateToolsPos, false);
4574
+ editableRef.value?.parentElement.addEventListener("scroll", updateToolsPos, false);
4659
4575
  onBeforeUnmount(() => {
4660
- var _a3;
4661
- (_a3 = editableRef.value) == null ? void 0 : _a3.parentElement.removeEventListener("scroll", updateToolsPos);
4576
+ editableRef.value?.parentElement.removeEventListener("scroll", updateToolsPos);
4662
4577
  });
4663
4578
  PageEditor2.setContent({
4664
4579
  version: "1.0.0",
@@ -4858,7 +4773,7 @@ PageEditor.registerBaseModule("base-image", "图片", (data) => {
4858
4773
  { name: "src", title: "图片路径 :", component: "MKUploadImage", props: { cutSize: "818*597" }, defaultValue: "" }
4859
4774
  ]);
4860
4775
  const MKVisualPageEditor = withInstall(VisualPageEditor2);
4861
- window._iconfont_svg_string_1032790 = '<svg><symbol id="icon-doc-flex-right" viewBox="0 0 1024 1024"><path d="M926.25224691 70.13093706a27.61681602 27.61681602 0 0 0-27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 0 55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 0-27.61681603-27.61681603zM180.59820247 567.23363335a55.23363335 55.23363335 0 0 0-55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 0 55.23363335 55.23363206h552.33632965a55.23363335 55.23363335 0 0 0 55.23363206-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 0-55.23363206-55.23363206H180.59820247z m276.16816418-331.40179753a55.23363335 55.23363335 0 0 0-55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 0 55.23363206 55.23363206h276.16816547a55.23363335 55.23363335 0 0 0 55.23363206-55.23363206V291.06546788a55.23363335 55.23363335 0 0 0-55.23363206-55.23363206h-276.16816547z" ></path></symbol><symbol id="icon-doc-flex-h-center" viewBox="0 0 1024 1024"><path d="M953.86906294 512a27.61681602 27.61681602 0 0 1-27.61681603 27.61681602H788.16816418v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206v-110.46726671h-110.4672667V788.16816418a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335H291.06546788a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335v-248.55134816H97.74775309a27.61681602 27.61681602 0 1 1 0-55.23363204H235.83183582V235.83183582a55.23363335 55.23363335 0 0 1 55.23363206-55.23363335h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363335v248.55134816h110.4672667v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363206-55.23363206h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671h138.08408273a27.61681602 27.61681602 0 0 1 27.61681603 27.61681602z" ></path></symbol><symbol id="icon-doc-flex-v-justify" viewBox="0 0 1024 1024"><path d="M263.44865185 70.13093706a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681603-27.61681603z m497.1026963 0a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681603-27.61681603zM567.23363335 180.59820247a55.23363335 55.23363335 0 0 1 55.23363206 55.23363335v552.33632836a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335h-110.4672667a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335V235.83183582a55.23363335 55.23363335 0 0 1 55.23363206-55.23363335h110.4672667z" ></path></symbol><symbol id="icon-doc-flex-bottom" viewBox="0 0 1024 1024"><path d="M960.15254694 898.63543088a27.61681602 27.61681602 0 0 0-27.61681733-27.61681731H104.03123579a27.61681602 27.61681602 0 1 0 0 55.23363334h828.50449382a27.61681602 27.61681602 0 0 0 27.61681733-27.61681603z m-497.10269629-745.65404445a55.23363335 55.23363335 0 0 0-55.23363337-55.23363334h-110.4672654a55.23363335 55.23363335 0 0 0-55.23363336 55.23363334v552.33632836a55.23363335 55.23363335 0 0 0 55.23363336 55.23363336h110.4672654a55.23363335 55.23363335 0 0 0 55.23363337-55.23363336v-552.33632836z m331.40179752 276.16816418a55.23363335 55.23363335 0 0 0-55.23363335-55.23363334h-110.46726542a55.23363335 55.23363335 0 0 0-55.23363334 55.23363334v276.16816418a55.23363335 55.23363335 0 0 0 55.23363334 55.23363336h110.46726542a55.23363335 55.23363335 0 0 0 55.23363335-55.23363336v-276.16816418z" ></path></symbol><symbol id="icon-doc-flex-h-justify" viewBox="0 0 1024 1024"><path d="M953.86906294 263.44865185a27.61681602 27.61681602 0 0 1-27.61681603 27.61681603h-828.50449382a27.61681602 27.61681602 0 0 1 0-55.23363206h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603z m0 497.1026963a27.61681602 27.61681602 0 0 1-27.61681603 27.61681603h-828.50449382a27.61681602 27.61681602 0 1 1 0-55.23363206h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603zM843.40179753 567.23363335a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206H235.83183582a55.23363335 55.23363335 0 0 1-55.23363335-55.23363206v-110.4672667a55.23363335 55.23363335 0 0 1 55.23363335-55.23363206h552.33632836a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.4672667z" ></path></symbol><symbol id="icon-doc-flex-v-center" viewBox="0 0 1024 1024"><path d="M512 70.13093706a27.61681602 27.61681602 0 0 1 27.61681602 27.61681603V235.83183582h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206h-110.46726671v110.4672667H788.16816418a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206h-248.55134816v138.08408273a27.61681602 27.61681602 0 1 1-55.23363204 0V788.16816418H235.83183582a55.23363335 55.23363335 0 0 1-55.23363335-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363335-55.23363206h248.55134816v-110.4672667h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206V291.06546788a55.23363335 55.23363335 0 0 1 55.23363206-55.23363206h110.46726671V97.74775309A27.61681602 27.61681602 0 0 1 512 70.13093706z" ></path></symbol><symbol id="icon-doc-flex-top" viewBox="0 0 1024 1024"><path d="M953.86906294 152.98138643a27.61681602 27.61681602 0 0 1-27.61681603 27.61681604h-828.50449382a27.61681602 27.61681602 0 0 1 0-55.23363335h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681731zM456.76636665 898.63543088a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206H291.06546788a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206V346.29910124a55.23363335 55.23363335 0 0 1 55.23363206-55.23363336h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363336v552.33632964z m331.40179753-276.16816547a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335V346.29910124a55.23363335 55.23363335 0 0 1 55.23363206-55.23363336h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363336v276.16816417z" ></path></symbol><symbol id="icon-doc-flex-left" viewBox="0 0 1024 1024"><path d="M152.98138643 70.13093706a27.61681602 27.61681602 0 0 1 27.61681604 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363335 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681731-27.61681603zM898.63543088 567.23363335a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206H346.29910124a55.23363335 55.23363335 0 0 1-55.23363336-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363336-55.23363206h552.33632964z m-276.16816547-331.40179753a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206H346.29910124a55.23363335 55.23363335 0 0 1-55.23363336-55.23363206V291.06546788a55.23363335 55.23363335 0 0 1 55.23363336-55.23363206h276.16816417z" ></path></symbol><symbol id="icon-doc-bold" viewBox="0 0 1024 1024"><path d="M226.65787417 129.49114628h338.35346805c62.40969008 0 112.45653965 15.70274924 150.16643951 47.09530231 37.69695447 31.40549847 56.55837709 78.85032613 56.55837709 142.36037373 0 38.53840435-8.62162489 71.54913027-25.83898391 99.00628702-17.23030439 27.4830475-41.77475003 48.70052978-73.6203915 63.69128297v2.13598814c42.90099831 10.00678083 75.40685431 32.29872987 97.50462262 66.90173787 22.0977683 34.61595339 33.15312514 77.9700401 33.15312514 130.04931477 0 29.96856098-4.88040928 57.98236918-14.62828248 84.02847922-9.74787318 26.05905541-25.03637017 48.53223981-45.82665482 67.43249856-20.81617541 18.91320415-47.45777303 33.90395733-79.95068365 44.95931417-32.51880139 11.06830222-71.18665955 16.59598064-116.02946528 16.59598065H226.65787417V129.49114628z m121.88077828 320.03575151h198.9187508c29.25656494 0 53.63272059-9.10060405 73.12846697-27.28886676 19.49574637-18.2012081 29.25656494-44.4156081 29.25656495-78.66909078 0-38.53840435-8.77696948-65.64603575-26.33090845-81.34878499-17.55393897-15.68980385-42.90099831-23.54765117-76.05412347-23.54765116H348.53865245V449.52689779z m0 335.02650469h215.48884069c37.04968533 0 65.81432573-10.52459615 86.29392117-31.57378845 20.47959547-21.03624691 30.71939318-50.83651792 30.71939319-89.37492227 0-37.81346291-10.23979773-66.90173787-30.71939319-87.23893412s-49.24423585-30.49932169-86.29392117-30.49932169H348.53865245V784.55340248z" ></path></symbol><symbol id="icon-doc-italic" viewBox="0 0 1024 1024"><path d="M630.50203339 163.97764584l-125.66083003 691.19281935H395.7504632l125.66083004-691.19281935h109.09074015z" ></path><path d="M768.30563239 255.72157315H350.26038835l17.9681912-98.85094242h418.04524406l-17.96819122 98.85094242zM659.16311072 855.99896969H241.11786667l17.9681912-98.83799704h418.04524405l-17.9681912 98.83799704z" ></path></symbol><symbol id="icon-doc-underline" viewBox="0 0 1024 1024"><path d="M246.47725511 122.37118579h113.59573334V500.40225186c0 21.81296987 1.048576 43.93662894 3.18456414 66.33214103 2.11009739 22.42140286 8.18148187 42.56441837 18.17531733 60.42904653 9.99383547 17.87757353 25.12698785 32.57058291 45.43829333 44.06608275 20.28541472 11.52139061 48.92060128 17.26914053 85.87966894 17.26914056 36.94612227 0 65.56836347-5.74774992 85.87966895-17.26914056 20.28541472-11.49549985 35.44445787-26.20145461 45.43829333-44.06608275 9.99383547-17.86462815 16.03932918-38.00764365 18.17531734-60.42904653 2.11009739-22.40845748 3.18456415-44.53211653 3.18456414-66.33214103V122.37118579h113.59573333v415.28787752c0 41.8006408-6.35618291 78.15127547-19.08149411 109.051904-12.7253112 30.90062853-30.75822933 56.79139397-54.07286362 77.69818706-23.32757965 20.90679309-51.34138785 36.50597925-84.05436997 46.79755852-32.71298213 10.29157925-69.0636168 15.44384158-109.051904 15.44384159-39.9882872 0-76.3259765-5.15226231-109.051904-15.44384159-32.71298213-10.29157925-60.7397357-25.90371082-84.05436997-46.79755852-23.32757965-20.90679309-41.34755239-46.79755852-54.07286361-77.69818706-12.7253112-30.90062853-19.08149413-67.2512632-19.08149413-109.051904v-415.28787752zM205.03908503 840.45156504h608.6271684v61.29638716H205.03908503z" ></path></symbol><symbol id="icon-doc-strikethrough" viewBox="0 0 1024 1024"><path d="M206.33362331 135.49846125v116.88386054h244.64184256v247.6063352h135.31808554V252.38232179H832.00986075V135.49846125zM450.97546587 608.50980031h135.30514016V893.70952692H450.97546587z" ></path><path d="M207.11034627 532.37800454h625.3267121v44.01430125H207.11034627z" ></path></symbol><symbol id="icon-doc-sub" viewBox="0 0 1024 1024"><path d="M670.61977442 693.84576318c9.30773017 0 18.35655269-0.77672297 27.14646755-2.3301689 8.78991486-1.55344592 16.73837985-4.12957709 23.84539497-7.75428424 7.10701511-3.61176178 13.19134498-8.27209955 18.22709887-13.95512256 5.03575387-5.68302302 8.33682647-12.6605843 9.89027238-20.94562925h36.06583626v271.45173017h-48.48045828V728.74651498h-66.69461175v-34.9007518zM94.7444243 135.49846125v116.88386054h244.65478795v247.6063352h135.30514014V252.38232179h245.72925472V135.49846125z" ></path><path d="M339.39921225 483.31500406h135.30514014V893.70952692H339.39921225z" ></path></symbol><symbol id="icon-doc-sup" viewBox="0 0 1024 1024"><path d="M819.12661586 141.34230029c9.92824551 0 19.58032287-0.8285045 28.95623205-2.48551347 9.37590918-1.65700898 17.85427184-4.40488223 25.43508797-8.27123654 7.58081612-3.8525459 14.07076798-8.82357285 19.44223879-14.88546407 5.37147079-6.06189122 8.8926149-13.50462325 10.54962389-22.34200451h38.47022532v289.54851218h-51.71248881V178.56976887h-71.14091921v-37.22746858zM91.53396939 141.42515074v124.67611792h260.96510714v264.11342423h144.32548282V266.10126866h262.11120503v-124.67611792z" ></path><path d="M352.49907653 512.42946308h144.32548282v437.75415773H352.49907653z" ></path></symbol><symbol id="icon-doc-link" viewBox="0 0 1024 1024"><path d="M412.55356997 639.61821237l-12.84181966-12.84181966c-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809483l58.47429374-58.47429372c103.70546094-103.70546094 272.43557925-103.70546094 376.12809481 0 50.22808494 50.24103031 77.90531318 117.02625975 77.90531319 188.0705201 0 71.04426035-27.66428286 137.82948978-77.90531319 188.07052011l-58.47429372 58.47429372-78.3454562-78.34545621 58.47429373-58.47429372c29.30834647-29.30834647 45.45123872-68.27394845 45.45123872-109.7250639s-16.14289225-80.41671743-45.45123872-109.72506389c-60.49377343-60.49377343-158.94340898-60.49377343-219.43718242 0l-58.47429373 58.47429372c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718242l12.84181965 12.82887427-78.3454562 78.35840159z" ></path><path d="M347.98200098 913.6460737c-71.04426035 0-137.82948978-27.66428286-188.07052009-77.90531319-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809481l58.47429372-58.47429374 78.34545621 78.3454562-58.47429373 58.47429372c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718243 29.30834647 29.30834647 68.27394845 45.45123872 109.72506389 45.45123872s80.41671743-16.14289225 109.72506391-45.45123872l58.47429372-58.47429373c60.49377343-60.49377343 60.49377343-158.94340898 0-219.43718242l-12.64763891-12.63469353 78.3454562-78.3454562 12.64763892 12.64763892c103.70546094 103.69251555 103.70546094 272.43557925 0 376.12809481L536.05252109 835.74076051c-50.24103031 50.24103031-117.02625975 77.90531318-188.07052011 77.90531319z" ></path></symbol><symbol id="icon-doc-unlink" viewBox="0 0 1024 1024"><path d="M714.18098725 714.01335467l128.0039443 128.0039443-28.56787057 28.56916512-128.00523885-128.00523884zM657.3701752 775.98937442l46.84934005 174.85457888-39.02385619 10.45728016-46.84934004-174.85587342zM756.63536987 648.12782934l174.85587343 46.84934005-10.45598561 39.02515073-174.85587342-46.84934004zM245.52318041 302.52235789l-128.00523884-128.00394429 28.56916512-28.57045966 128.0039443 128.00653337zM201.64739476 369.81634086L26.79411042 322.96570628l10.45598561-39.02515074 174.8545789 46.84934005zM300.93071297 241.95479577l-46.85063459-174.85587342 39.02515074-10.45598562 46.84934004 174.85457889z" ></path><path d="M712.47219675 651.79784534l-78.34545622-78.3454562 78.06065778-78.06065778c29.30834647-29.30834647 45.45123872-68.27394845 45.45123872-109.72506389s-16.14289225-80.41671743-45.45123872-109.72506391c-29.30834647-29.30834647-68.27394845-45.45123872-109.72506389-45.45123872s-80.41671743 16.14289225-109.7250639 45.45123872l-78.06065777 78.06065778-78.34545622-78.3454562 78.06065778-78.06065778c103.70546094-103.70546094 272.43557925-103.70546094 376.12809483 0 50.22808494 50.22808494 77.90531318 117.02625975 77.90531317 188.07052011s-27.66428286 137.82948978-77.90531317 188.07052009l-78.04771239 78.06065778z" ></path><path d="M354.6359277 897.12579319c-68.11860385 0-136.21131694-25.91665619-188.07052009-77.77585935-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809482l78.06065778-78.06065778 78.34545619 78.34545619-78.06065777 78.06065777c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718244 60.49377343 60.49377343 158.94340898 60.49377343 219.43718241 0l78.06065778-78.06065779 78.34545619 78.34545621-78.06065777 78.06065778c-51.83331239 51.84625778-119.96486163 77.77585936-188.05757472 77.77585935z" ></path></symbol><symbol id="icon-doc-text-left" viewBox="0 0 1024 1024"><path d="M93.96770133 166.81136987h843.06804939v129.69978944H93.96770133zM93.96770133 449.79743605H625.01319111v129.69978943H93.96770133zM93.96770133 732.78350222h843.06804939v129.69978943H93.96770133z" ></path></symbol><symbol id="icon-doc-text-right" viewBox="0 0 1024 1024"><path d="M97.45000928 166.81136987h843.06804939v129.69978944H97.45000928zM409.47256889 449.79743605h531.04548978v129.69978943H409.47256889zM97.45000928 732.78350222h843.06804939v129.69978943H97.45000928z" ></path></symbol><symbol id="icon-doc-text-center" viewBox="0 0 1024 1024"><path d="M93.56639447 129.78757531h843.06804938v129.69978944H93.56639447zM249.57120158 412.77364148H780.61669136v129.69978943H249.57120158zM93.56639447 695.75970765h843.06804938v129.69978944H93.56639447z" ></path></symbol><symbol id="icon-doc-text-justify" viewBox="0 0 1024 1024"><path d="M92.40131003 464.12797472h843.06804938v129.69978943H92.40131003zM92.40131003 181.14190853h843.06804938v129.69978944H92.40131003zM92.40131003 747.11404089h531.04548978v129.69978942H92.40131003z" ></path></symbol><symbol id="icon-doc-h1" viewBox="0 0 1024 1024"><path d="M781.4063597 654.73578983c9.96794469 0 19.66403635-0.8285045 29.08827497-2.49845886 9.41129324-1.65700898 17.92935506-4.42732089 25.55418548-8.31093572 7.61188503-3.87066943 14.12341253-8.86758717 19.53458252-14.95191703 5.39822459-6.08432987 8.93231408-13.56676109 10.58932306-22.43434825h38.64196741V897.38404347h-51.93687545V692.1350005h-71.47145799v-37.39921067zM121.7096565 447.86857403h531.04548977v129.69978944H121.7096565z" ></path><path d="M589.78880475 897.40475607v-769.36998558h129.69978942v769.36998558zM121.71871826 897.40216699v-769.36998557h129.69978944v769.36998557z" ></path></symbol><symbol id="icon-doc-h2" viewBox="0 0 1024 1024"><path d="M942.38219378 897.38404347H743.78707753c0.27185303-24.10430261 6.08432987-45.14054953 17.4503759-63.16052229 11.35310064-18.00702736 26.86166914-33.65799506 46.53865087-46.9529031 9.41129324-6.92577975 19.2497841-13.64443339 29.5025272-20.1559609 10.23979773-6.5115275 19.66403635-13.50203417 28.25977047-20.98446537 8.58278875-7.4824312 15.6509677-15.5862408 21.19159151-24.31142875 5.54062381-8.72518795 8.44038953-18.75785955 8.72518795-30.12390558 0-5.25582539-0.62137837-10.87412148-1.86413512-16.82899753s-3.67648869-11.49549985-7.27530507-16.62187142c-3.59881639-5.12637155-8.58278875-9.41129324-14.95191705-12.88065578-6.3691283-3.45641718-14.680064-5.19109847-24.9328071-5.19109848-9.42423861 0-17.24324978 1.86413511-23.46997887 5.60535071s-11.22364682 8.86758717-14.95191704 15.37911467c-3.74121561 6.5115275-6.5115275 14.20108483-8.3109357 23.05572662-1.79940819 8.86758717-2.84798419 18.42127961-3.11983723 28.67402271h-47.36715536c0-16.06521995 2.14893353-30.95241008 6.44680059-44.66157037 4.28492169-13.7091603 10.73172227-25.55418548 19.31451102-35.52213016 8.58278875-9.96794469 19.04265797-17.79990124 31.36666232-23.46997887 12.32400435-5.67007763 26.65454302-8.51806183 43.00456137-8.51806183 17.72222894 0 32.54469215 2.91271111 44.45444426 8.72518795 11.9097521 5.81247683 21.52817147 13.16545422 28.88114883 22.020096 7.340032 8.86758717 12.53113047 18.48600652 15.5862408 28.88114883 3.04216494 10.38219694 4.5697201 20.2983601 4.56972009 29.70965334 0 11.63789906-1.79940819 22.1624952-5.39822459 31.57378844a101.82838045 101.82838045 0 0 1-14.53766478 25.96843774c-6.09727525 7.89668347-13.02305502 15.15904317-20.77733927 21.81296987-7.75428425 6.65392672-15.79336691 12.88065581-24.10430262 18.69313265-8.3109357 5.81247683-16.62187141 11.36604603-24.9328071 16.6218714-8.3109357 5.26877076-16.00049303 10.52459615-23.05572663 15.79336692-7.06817897 5.26877076-13.23018114 10.73172227-18.48600651 16.41474528-5.26877076 5.68302302-8.86758717 11.70262597-10.79644919 18.07175428H942.43397531v42.38318302zM89.90285117 447.86857403h531.04548977v129.69978944H89.90285117z" ></path><path d="M557.97293763 897.40993422V128.03994864h129.69978944v769.36998558zM89.90285117 897.40605061v-769.36998558h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-h3" viewBox="0 0 1024 1024"><path d="M823.67303427 727.0357523c7.75428425 0.27185303 15.5085685-0.27185303 23.26285275-1.65700899 7.75428425-1.38515595 14.680064-3.80594252 20.77733925-7.27530509 6.08432987-3.45641718 11.00357531-8.23326341 14.74479091-14.33053867 3.74121561-6.08432987 5.60535072-13.56676109 5.60535072-22.43434824 0-12.46640355-4.22019476-22.43434825-12.67352968-29.91677946-8.45333491-7.4824312-19.31451102-11.22364682-32.62236444-11.22364682-8.3109357 0-15.52151387 1.65700898-21.60584375 4.98397236-6.09727525 3.32696336-11.1589199 7.83195653-15.15904317 13.50203416-4.01306864 5.68302302-7.00345205 12.05215131-8.93231406 19.1073849-1.94180741 7.06817897-2.7703119 14.33053867-2.49845888 21.81296986H747.21760395c0.55665147-14.12341253 3.18456415-27.21119447 7.89668346-39.26334578 4.71211931-12.05215131 11.14597452-22.49907517 19.31451101-31.36666231 8.1685365-8.86758717 18.07175427-15.79336691 29.70965333-20.77733925 11.63789906-4.98397235 24.7904079-7.4824312 39.4704719-7.48243122 11.35310064 0 22.49907517 1.65700898 33.45086894 4.98397235 10.93884839 3.32696336 20.77733925 8.1685365 29.50252722 14.53766479 8.72518795 6.3691283 15.71569461 14.47293787 20.98446537 24.31142874 5.25582539 9.83849086 7.89668347 21.12686459 7.89668346 33.86512119 0 14.680064-3.32696336 27.49599289-9.96794469 38.43484128-6.65392672 10.95179378-17.03612365 18.90025876-31.1595362 23.89717649v0.8285045c16.62187141 3.32696336 29.56725413 11.57317215 38.84909353 24.72568099 9.28183941 13.16545422 13.91628642 29.15300187 13.91628642 47.98853373 0 13.8515595-2.7703119 26.25323615-8.3109357 37.19208454-5.54062381 10.95179378-13.02305502 20.22068781-22.43434825 27.83257283-9.42423861 7.62483042-20.36308702 13.50203417-32.82949057 17.65750202-12.46640355 4.15546785-25.61891239 6.22672909-39.4704719 6.2267291-16.89372445 0-31.65146075-2.43373195-44.24731811-7.2753051-12.60880276-4.84157314-23.13339891-11.70262597-31.57378845-20.57021312-8.45333491-8.86758717-14.88719013-19.52163714-19.31451102-31.98804069-4.44026627-12.46640355-6.79632592-26.31796306-7.06817895-41.55467853h47.36715535c-0.55665147 17.73517431 3.80594252 32.47996524 13.08778193 44.24731812 9.28183941 11.78029827 23.19812583 17.65750203 41.76180464 17.65750204 15.79336691 0 29.01060267-4.50499318 39.67759802-13.50203419 10.65404997-8.99704098 16.00049303-21.81296987 16.00049304-38.43484128 0-11.35310064-2.22660583-20.36308702-6.65392671-27.00406835-4.42732089-6.65392672-10.25274311-11.70262597-17.45037591-15.15904315-7.21057817-3.45641718-15.31438775-5.60535072-24.31142874-6.44680058-9.00998637-0.8285045-18.21415348-1.10035753-27.62544672-0.8285045v-35.30205867zM91.27506173 447.86857403h531.04548977v129.69978944H91.27506173z" ></path><path d="M559.34126459 897.40605061v-769.36998558h129.69978944v769.36998558zM91.27247265 897.40346153v-769.36998558h129.69978943v769.36998558z" ></path></symbol><symbol id="icon-doc-h4" viewBox="0 0 1024 1024"><path d="M942.30452148 828.41104435h-37.39921066v68.97299912h-44.86869651v-68.97299912h-124.65109016v-46.95290311l124.65109016-174.91801127h44.86869651v184.48464909h37.39921066v37.38626529z m-170.36123654-37.38626529h88.080384v-127.97805353h-0.82850449l-87.25187951 127.97805353zM87.75391763 447.86857403H618.79940741v129.69978944H87.75391763z" ></path><path d="M555.82659318 897.39957792v-769.36998558h129.69978943v769.36998558zM87.75780125 897.39698883V128.02700325h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-h5" viewBox="0 0 1024 1024"><path d="M772.55171792 661.63567882h150.41240178v42.38318301h-115.09739773L792.91480494 777.97583328l0.82850449 0.8285045c6.3691283-7.1976328 14.47293787-12.67352969 24.31142874-16.41474528 9.82554548-3.74121561 19.59930943-5.60535072 29.29540108-5.60535072 14.39526558 0 27.27592139 2.43373195 38.64196742 7.27530508 11.35310064 4.85451852 20.90679309 11.63789906 28.67402272 20.36308701 7.75428425 8.72518795 13.64443339 19.04265797 17.65750202 30.95241008 4.01306864 11.9097521 6.01960297 24.7904079 6.01960296 38.64196741 0 11.63789906-1.86413511 23.61237808-5.60535072 35.93638242-3.74121561 12.32400435-9.69609165 23.54765117-17.86462815 33.65799505-8.1685365 10.1103439-18.62840573 18.42127961-31.36666232 24.93280712-12.73825659 6.49858213-27.97497205 9.76081857-45.71014636 9.76081857-14.12341253 0-27.21119447-1.86413511-39.26334579-5.60535071s-22.64147437-9.34656631-31.78091456-16.82899754c-9.13944019-7.4824312-16.41474528-16.68659831-21.81296988-27.62544672-5.39822459-10.93884839-8.37566261-23.7418319-8.93231407-38.43484128h47.36715535c1.38515595 15.79336691 6.78338053 27.91024514 16.20761916 36.35063467 9.41129324 8.45333491 21.8776968 12.67352969 37.39921067 12.67352967 9.96794469 0 18.42127961-1.65700898 25.34705936-4.98397234 6.92577975-3.32696336 12.53113047-7.89668347 16.82899753-13.7091603 4.29786706-5.81247683 7.340032-12.59585739 9.13944021-20.363087 1.79940819-7.75428425 2.70558498-16.06521995 2.70558498-24.93280712 0-8.02613728-1.11330291-15.71569461-3.32696336-23.05572661-2.22660583-7.340032-5.54062381-13.7738872-9.96794469-19.31451102-4.44026627-5.54062381-10.17507082-9.96794469-17.24324978-13.29490805s-15.31438775-4.98397235-24.72568098-4.98397234c-9.96794469 0-19.31451102 1.86413511-28.05264436 5.6053507s-15.02958933 10.73172227-18.90025876 20.98446539H741.39218173l31.15953619-159.1505351zM83.76673975 502.96412286h531.04548978v129.69978944H83.76673975z" ></path><path d="M551.83941531 952.4964213v-769.36998559h129.69978944v769.36998559zM83.77062337 952.49253769V183.1225521h129.69978943v769.36998559z" ></path></symbol><symbol id="icon-doc-h6" viewBox="0 0 1024 1024"><path d="M888.60707397 733.36604445c-1.11330291-11.9097521-5.33349769-21.52817147-12.67352967-28.88114884-7.340032-7.340032-17.24324978-11.01652069-29.70965333-11.0165207-8.59573413 0-16.00049303 1.59228208-22.22722214 4.77684623-6.22672909 3.18456415-11.49549985 7.4177043-15.79336691 12.67352968-4.29786706 5.26877076-7.75428425 11.28837373-10.38219694 18.07175427-2.64085808 6.79632592-4.77684622 13.91628642-6.4338552 21.39871763s-2.84798419 14.88719013-3.53408948 22.22722211c-0.69905067 7.340032-1.32042903 14.20108483-1.86413512 20.57021314l0.82850451 0.8285045c6.3691283-11.63789906 15.15904317-20.28541472 26.38268996-25.96843772 11.22364682-5.67007763 23.32757965-8.51806183 36.35063466-8.51806184 14.39526558 0 27.27592139 2.49845886 38.64196742 7.48243122 11.35310064 4.98397235 20.98446539 11.84502518 28.88114884 20.57021312 7.89668347 8.72518795 13.91628642 19.04265797 18.07175426 30.95241008 4.15546785 11.9097521 6.22672909 24.7904079 6.22672909 38.64196742 0 14.12341253-2.29133275 27.21119447-6.86105283 39.26334577-4.5697201 12.05215131-11.1589199 22.57674747-19.74170864 31.57378845-8.58278875 9.00998637-18.83553185 16.00049303-30.74528395 20.98446538-11.9097521 4.98397235-25.07520631 7.4824312-39.47047191 7.4824312-21.33399072 0-38.84909353-3.94834173-52.55825383-11.84502518s-24.51855486-18.69313264-32.41523831-32.41523832c-7.89668347-13.7091603-13.37258035-29.77438025-16.41474528-48.19565986-3.05511031-18.42127961-4.5697201-38.29244208-4.56972011-59.62643278 0-17.4503759 1.86413511-35.04315102 5.60535072-52.76537994 3.74121561-17.72222894 9.90321778-33.86512118 18.48600652-48.40278599 8.58278875-14.5376648 19.87116247-26.38268997 33.86512118-35.52213017 13.98101333-9.13944019 31.22426311-13.7091603 51.72974934-13.70916029 11.63789906 0 22.57674747 1.94180741 32.82949057 5.81247683 10.23979773 3.88361482 19.31451102 9.28183941 27.21119446 16.20761917s14.33053867 15.23671547 19.31451101 24.93280711c4.98397235 9.69609165 7.75428425 20.50548622 8.31093571 32.41523832h-47.3412646z m-45.69720099 183.65614458c8.58278875 0 16.06521995-1.7217359 22.43434826-5.19109846 6.3691283-3.45641718 11.70262597-7.96141037 16.00049303-13.50203418 4.28492169-5.54062381 7.4824312-11.97447902 9.55369245-19.32745639 2.07126124-7.340032 3.11983724-14.88719013 3.11983723-22.64147437 0-7.75428425-1.03563061-15.22377008-3.11983723-22.43434824-2.07126124-7.1976328-5.26877076-13.50203417-9.55369245-18.90025878-4.29786706-5.39822459-9.63136475-9.76081857-16.00049303-13.08778192-6.3691283-3.32696336-13.8515595-4.98397235-22.43434826-4.98397234-8.58278875 0-16.14289225 1.59228208-22.64147437 4.77684622-6.5115275 3.18456415-11.98742439 7.4824312-16.41474528 12.8806558-4.44026627 5.39822459-7.75428425 11.70262597-9.96794469 18.90025877-2.21366045 7.21057817-3.32696336 14.8224632-3.32696336 22.84860049 0 8.03908267 1.10035753 15.6509677 3.32696336 22.8486005 2.21366045 7.21057817 5.54062381 13.64443339 9.96794469 19.31451101 4.42732089 5.68302302 9.90321778 10.17507082 16.41474528 13.50203417 6.49858213 3.32696336 14.04574025 4.99691773 22.64147437 4.99691772zM86.82185008 501.15176928h531.04548977v129.69978944H86.82185008z" ></path><path d="M554.89064202 950.68277317v-769.36998558h129.69978943v769.36998558zM86.82185008 950.69312948V181.3231439h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-list-bullet" viewBox="0 0 1024 1024"><path d="M354.22167547 181.90568613h531.04548977V311.60547555H354.22167547zM354.22167547 464.8917523h531.04548977V594.59154173H354.22167547zM354.22167547 747.87781847h531.04548977V877.5776079H354.22167547z" ></path><path d="M208.84502755 247.42226805m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path><path d="M208.84502755 529.7481197m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path><path d="M208.84502755 805.78251536m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path></symbol><symbol id="icon-doc-list-number" viewBox="0 0 1024 1024"><path d="M154.11194943 180.33929482c7.37886815 0 14.56355555-0.62137837 21.54111684-1.85118973 6.97756128-1.22981136 13.28196267-3.27518183 18.92614954-6.14905679 5.64418686-2.87387497 10.45986924-6.56330903 14.45999249-11.08124761 4.00012325-4.50499318 6.61509057-10.04561698 7.84490192-16.62187141h28.62224119v215.39822302h-38.46073205V208.02946845h-52.92072454V180.33929482zM296.8995208 658.07569857H149.81408237c0.20712613-17.85168276 4.50499318-33.43792355 12.91949194-46.77166775 8.41449876-13.33374419 19.89705324-24.91986173 34.4606088-34.77129799 6.97756128-5.12637155 14.25286637-10.09739852 21.85180603-14.92602626 7.58599427-4.81568237 14.56355555-9.99383547 20.91973847-15.53445926s11.58611753-11.534336 15.68980386-17.99408198 6.25261985-13.89039565 6.45974596-22.30489442c0-3.89656019-0.46603378-8.05202805-1.38515595-12.46640355-0.91912217-4.4143755-2.71853037-8.50511645-5.38527921-12.31105897-2.66674883-3.79299714-6.35618291-6.97756128-11.0812476-9.54074706-4.72506469-2.56318578-10.87412148-3.84477867-18.46011576-3.84477866-6.97756128 0-12.76414736 1.38515595-17.38564899 4.15546785-4.60855625 2.7703119-8.3109357 6.56330903-11.08124761 11.39193679-2.7703119 4.81568237-4.82862775 10.51165076-6.14905678 17.0749598-1.33337442 6.56330903-2.11009739 13.64443339-2.30427812 21.23042765h-35.08198716c0-11.89680672 1.59228208-22.9262728 4.76390084-33.07545284s7.94846498-18.92614953 14.30464789-26.30501767c6.35618291-7.39181353 14.09752178-13.17839961 23.23696199-17.385649 9.12649482-4.20724939 19.74170864-6.30440139 31.84564148-6.30440138 13.12661808 0 24.10430261 2.14893353 32.92010824 6.45974598 8.81580563 4.31081245 15.9487115 9.74787318 21.38577225 16.31118223 5.43706075 6.56330903 9.28183941 13.69621491 11.534336 21.38577223 2.25249659 7.68955733 3.37874489 15.02958933 3.37874489 21.99420524 0 8.62162489-1.33337442 16.41474528-4.00012326 23.39230658a75.61656951 75.61656951 0 0 1-10.77055842 19.2368387 109.10109645 109.10109645 0 0 1-15.37911467 16.15583764c-5.74774992 4.91924543-11.68968059 9.54074706-17.85168276 13.8515595-6.1490568 4.31081245-12.31105897 8.41449876-18.46011575 12.31105897s-11.84502518 7.79312039-17.0749598 11.68968059c-5.22993461 3.89656019-9.79965472 7.94846498-13.69621492 12.15571437-3.89656019 4.20724939-6.56330903 8.67340642-8.00024652 13.38552573h104.92232691v31.35371694zM207.96474153 818.30070045c5.73480453 0.20712613 11.48255447-0.20712613 17.23030439-1.22981136 5.74774992-1.02268524 10.87412148-2.82209343 15.39206005-5.38527922 4.50499318-2.56318578 8.15559111-6.09727525 10.92590301-10.61521382 2.7703119-4.50499318 4.15546785-10.04561698 4.15546785-16.62187141 0-9.23005787-3.13278261-16.62187141-9.38540246-22.14954982-6.26556524-5.54062381-14.3046479-8.3109357-24.15608415-8.31093571-6.1490568 0-11.49549985 1.22981136-16.00049304 3.68943407-4.51793857 2.45962272-8.25915417 5.79953147-11.2365922 9.99383546-2.97743803 4.20724939-5.17815309 8.91936869-6.61509056 14.14930331-1.43693748 5.22993461-2.05831585 10.61521383-1.85118973 16.15583763h-35.08198716c0.41425225-10.45986924 2.35605965-20.15596089 5.85131299-29.07532958 3.48230795-8.91936869 8.25915417-16.66070755 14.3046479-23.23696197 6.04549373-6.56330903 13.38552573-11.68968059 21.99420523-15.37911467 8.62162489-3.68943408 18.35655269-5.54062381 29.23067418-5.54062381 8.41449876 0 16.66070755 1.22981136 24.76451714 3.68943408 8.10380958 2.45962272 15.37911467 6.05843911 21.85180601 10.77055842 6.45974597 4.72506469 11.63789906 10.71877689 15.53445927 17.99408198 3.89656019 7.28825047 5.85131298 15.6509677 5.85131299 25.07520632 0 10.87412148-2.45962272 20.36308702-7.39181354 28.46689659-4.91924543 8.10380958-12.62174815 14.0069041-23.08161739 17.69633817v0.62137837c12.31105897 2.45962272 21.89064217 8.56984336 28.77758579 18.30477116 6.87399822 9.74787318 10.30452464 21.59289837 10.30452465 35.53507555 0 10.2656885-2.05831585 19.44396483-6.1490568 27.53482905-4.10368631 8.10380958-9.64431013 14.97780781-16.62187142 20.62199466-6.97756128 5.64418686-15.08137086 10.00678083-24.31142872 13.07483655s-18.97793106 4.62150163-29.23067418 4.62150163c-12.51818509 0-23.4440881-1.79940819-32.76476366-5.38527922-9.33362094-3.58587102-17.12674133-8.66046103-23.39230656-15.23671545-6.26556524-6.56330903-11.02946608-14.4599925-14.30464791-23.69005038-3.2881272-9.23005787-5.0228085-19.48280098-5.22993461-30.77117472h35.08198716c-0.41425225 13.12661808 2.82209343 24.05252109 9.69609165 32.76476366 6.87399822 8.72518795 17.17852286 13.07483653 30.92651932 13.07483655 11.68968059 0 21.48933531-3.32696336 29.38601876-10.00678083 7.89668347-6.6668721 11.84502518-16.15583763 11.84502519-28.4668966 0-8.41449876-1.64406361-15.08137086-4.91924544-20.00061629-3.2881272-4.91924543-7.58599427-8.66046103-12.91949195-11.23659221-5.33349769-2.56318578-11.34015525-4.15546785-18.00702736-4.76390084-6.6668721-0.62137837-13.4890888-0.81555911-20.46665007-0.62137836v-26.11083694zM358.66194173 186.92849461h531.04548977v129.69978944H358.66194173zM358.66194173 497.61767981h531.04548977v129.69978943H358.66194173zM358.66194173 780.60374597h531.04548977v129.69978944H358.66194173z" ></path></symbol></svg>', function(t) {
4776
+ window._iconfont_svg_string_1032790 = '<svg><symbol id="icon-doc-flex-right" viewBox="0 0 1024 1024"><path d="M926.25224691 70.13093706a27.61681602 27.61681602 0 0 0-27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 0 55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 0-27.61681603-27.61681603zM180.59820247 567.23363335a55.23363335 55.23363335 0 0 0-55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 0 55.23363335 55.23363206h552.33632965a55.23363335 55.23363335 0 0 0 55.23363206-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 0-55.23363206-55.23363206H180.59820247z m276.16816418-331.40179753a55.23363335 55.23363335 0 0 0-55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 0 55.23363206 55.23363206h276.16816547a55.23363335 55.23363335 0 0 0 55.23363206-55.23363206V291.06546788a55.23363335 55.23363335 0 0 0-55.23363206-55.23363206h-276.16816547z" ></path></symbol><symbol id="icon-doc-flex-h-center" viewBox="0 0 1024 1024"><path d="M953.86906294 512a27.61681602 27.61681602 0 0 1-27.61681603 27.61681602H788.16816418v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206v-110.46726671h-110.4672667V788.16816418a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335H291.06546788a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335v-248.55134816H97.74775309a27.61681602 27.61681602 0 1 1 0-55.23363204H235.83183582V235.83183582a55.23363335 55.23363335 0 0 1 55.23363206-55.23363335h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363335v248.55134816h110.4672667v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363206-55.23363206h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671h138.08408273a27.61681602 27.61681602 0 0 1 27.61681603 27.61681602z" ></path></symbol><symbol id="icon-doc-flex-v-justify" viewBox="0 0 1024 1024"><path d="M263.44865185 70.13093706a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681603-27.61681603z m497.1026963 0a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363206 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681603-27.61681603zM567.23363335 180.59820247a55.23363335 55.23363335 0 0 1 55.23363206 55.23363335v552.33632836a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335h-110.4672667a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335V235.83183582a55.23363335 55.23363335 0 0 1 55.23363206-55.23363335h110.4672667z" ></path></symbol><symbol id="icon-doc-flex-bottom" viewBox="0 0 1024 1024"><path d="M960.15254694 898.63543088a27.61681602 27.61681602 0 0 0-27.61681733-27.61681731H104.03123579a27.61681602 27.61681602 0 1 0 0 55.23363334h828.50449382a27.61681602 27.61681602 0 0 0 27.61681733-27.61681603z m-497.10269629-745.65404445a55.23363335 55.23363335 0 0 0-55.23363337-55.23363334h-110.4672654a55.23363335 55.23363335 0 0 0-55.23363336 55.23363334v552.33632836a55.23363335 55.23363335 0 0 0 55.23363336 55.23363336h110.4672654a55.23363335 55.23363335 0 0 0 55.23363337-55.23363336v-552.33632836z m331.40179752 276.16816418a55.23363335 55.23363335 0 0 0-55.23363335-55.23363334h-110.46726542a55.23363335 55.23363335 0 0 0-55.23363334 55.23363334v276.16816418a55.23363335 55.23363335 0 0 0 55.23363334 55.23363336h110.46726542a55.23363335 55.23363335 0 0 0 55.23363335-55.23363336v-276.16816418z" ></path></symbol><symbol id="icon-doc-flex-h-justify" viewBox="0 0 1024 1024"><path d="M953.86906294 263.44865185a27.61681602 27.61681602 0 0 1-27.61681603 27.61681603h-828.50449382a27.61681602 27.61681602 0 0 1 0-55.23363206h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603z m0 497.1026963a27.61681602 27.61681602 0 0 1-27.61681603 27.61681603h-828.50449382a27.61681602 27.61681602 0 1 1 0-55.23363206h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681603zM843.40179753 567.23363335a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206H235.83183582a55.23363335 55.23363335 0 0 1-55.23363335-55.23363206v-110.4672667a55.23363335 55.23363335 0 0 1 55.23363335-55.23363206h552.33632836a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.4672667z" ></path></symbol><symbol id="icon-doc-flex-v-center" viewBox="0 0 1024 1024"><path d="M512 70.13093706a27.61681602 27.61681602 0 0 1 27.61681602 27.61681603V235.83183582h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206h-110.46726671v110.4672667H788.16816418a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206h-248.55134816v138.08408273a27.61681602 27.61681602 0 1 1-55.23363204 0V788.16816418H235.83183582a55.23363335 55.23363335 0 0 1-55.23363335-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363335-55.23363206h248.55134816v-110.4672667h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206V291.06546788a55.23363335 55.23363335 0 0 1 55.23363206-55.23363206h110.46726671V97.74775309A27.61681602 27.61681602 0 0 1 512 70.13093706z" ></path></symbol><symbol id="icon-doc-flex-top" viewBox="0 0 1024 1024"><path d="M953.86906294 152.98138643a27.61681602 27.61681602 0 0 1-27.61681603 27.61681604h-828.50449382a27.61681602 27.61681602 0 0 1 0-55.23363335h828.50449382a27.61681602 27.61681602 0 0 1 27.61681603 27.61681731zM456.76636665 898.63543088a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206H291.06546788a55.23363335 55.23363335 0 0 1-55.23363206-55.23363206V346.29910124a55.23363335 55.23363335 0 0 1 55.23363206-55.23363336h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363336v552.33632964z m331.40179753-276.16816547a55.23363335 55.23363335 0 0 1-55.23363206 55.23363335h-110.46726671a55.23363335 55.23363335 0 0 1-55.23363206-55.23363335V346.29910124a55.23363335 55.23363335 0 0 1 55.23363206-55.23363336h110.46726671a55.23363335 55.23363335 0 0 1 55.23363206 55.23363336v276.16816417z" ></path></symbol><symbol id="icon-doc-flex-left" viewBox="0 0 1024 1024"><path d="M152.98138643 70.13093706a27.61681602 27.61681602 0 0 1 27.61681604 27.61681603v828.50449382a27.61681602 27.61681602 0 1 1-55.23363335 0v-828.50449382a27.61681602 27.61681602 0 0 1 27.61681731-27.61681603zM898.63543088 567.23363335a55.23363335 55.23363335 0 0 1 55.23363206 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363206 55.23363206H346.29910124a55.23363335 55.23363335 0 0 1-55.23363336-55.23363206v-110.46726671a55.23363335 55.23363335 0 0 1 55.23363336-55.23363206h552.33632964z m-276.16816547-331.40179753a55.23363335 55.23363335 0 0 1 55.23363335 55.23363206v110.46726671a55.23363335 55.23363335 0 0 1-55.23363335 55.23363206H346.29910124a55.23363335 55.23363335 0 0 1-55.23363336-55.23363206V291.06546788a55.23363335 55.23363335 0 0 1 55.23363336-55.23363206h276.16816417z" ></path></symbol><symbol id="icon-doc-bold" viewBox="0 0 1024 1024"><path d="M226.65787417 129.49114628h338.35346805c62.40969008 0 112.45653965 15.70274924 150.16643951 47.09530231 37.69695447 31.40549847 56.55837709 78.85032613 56.55837709 142.36037373 0 38.53840435-8.62162489 71.54913027-25.83898391 99.00628702-17.23030439 27.4830475-41.77475003 48.70052978-73.6203915 63.69128297v2.13598814c42.90099831 10.00678083 75.40685431 32.29872987 97.50462262 66.90173787 22.0977683 34.61595339 33.15312514 77.9700401 33.15312514 130.04931477 0 29.96856098-4.88040928 57.98236918-14.62828248 84.02847922-9.74787318 26.05905541-25.03637017 48.53223981-45.82665482 67.43249856-20.81617541 18.91320415-47.45777303 33.90395733-79.95068365 44.95931417-32.51880139 11.06830222-71.18665955 16.59598064-116.02946528 16.59598065H226.65787417V129.49114628z m121.88077828 320.03575151h198.9187508c29.25656494 0 53.63272059-9.10060405 73.12846697-27.28886676 19.49574637-18.2012081 29.25656494-44.4156081 29.25656495-78.66909078 0-38.53840435-8.77696948-65.64603575-26.33090845-81.34878499-17.55393897-15.68980385-42.90099831-23.54765117-76.05412347-23.54765116H348.53865245V449.52689779z m0 335.02650469h215.48884069c37.04968533 0 65.81432573-10.52459615 86.29392117-31.57378845 20.47959547-21.03624691 30.71939318-50.83651792 30.71939319-89.37492227 0-37.81346291-10.23979773-66.90173787-30.71939319-87.23893412s-49.24423585-30.49932169-86.29392117-30.49932169H348.53865245V784.55340248z" ></path></symbol><symbol id="icon-doc-italic" viewBox="0 0 1024 1024"><path d="M630.50203339 163.97764584l-125.66083003 691.19281935H395.7504632l125.66083004-691.19281935h109.09074015z" ></path><path d="M768.30563239 255.72157315H350.26038835l17.9681912-98.85094242h418.04524406l-17.96819122 98.85094242zM659.16311072 855.99896969H241.11786667l17.9681912-98.83799704h418.04524405l-17.9681912 98.83799704z" ></path></symbol><symbol id="icon-doc-underline" viewBox="0 0 1024 1024"><path d="M246.47725511 122.37118579h113.59573334V500.40225186c0 21.81296987 1.048576 43.93662894 3.18456414 66.33214103 2.11009739 22.42140286 8.18148187 42.56441837 18.17531733 60.42904653 9.99383547 17.87757353 25.12698785 32.57058291 45.43829333 44.06608275 20.28541472 11.52139061 48.92060128 17.26914053 85.87966894 17.26914056 36.94612227 0 65.56836347-5.74774992 85.87966895-17.26914056 20.28541472-11.49549985 35.44445787-26.20145461 45.43829333-44.06608275 9.99383547-17.86462815 16.03932918-38.00764365 18.17531734-60.42904653 2.11009739-22.40845748 3.18456415-44.53211653 3.18456414-66.33214103V122.37118579h113.59573333v415.28787752c0 41.8006408-6.35618291 78.15127547-19.08149411 109.051904-12.7253112 30.90062853-30.75822933 56.79139397-54.07286362 77.69818706-23.32757965 20.90679309-51.34138785 36.50597925-84.05436997 46.79755852-32.71298213 10.29157925-69.0636168 15.44384158-109.051904 15.44384159-39.9882872 0-76.3259765-5.15226231-109.051904-15.44384159-32.71298213-10.29157925-60.7397357-25.90371082-84.05436997-46.79755852-23.32757965-20.90679309-41.34755239-46.79755852-54.07286361-77.69818706-12.7253112-30.90062853-19.08149413-67.2512632-19.08149413-109.051904v-415.28787752zM205.03908503 840.45156504h608.6271684v61.29638716H205.03908503z" ></path></symbol><symbol id="icon-doc-strikethrough" viewBox="0 0 1024 1024"><path d="M206.33362331 135.49846125v116.88386054h244.64184256v247.6063352h135.31808554V252.38232179H832.00986075V135.49846125zM450.97546587 608.50980031h135.30514016V893.70952692H450.97546587z" ></path><path d="M207.11034627 532.37800454h625.3267121v44.01430125H207.11034627z" ></path></symbol><symbol id="icon-doc-sub" viewBox="0 0 1024 1024"><path d="M670.61977442 693.84576318c9.30773017 0 18.35655269-0.77672297 27.14646755-2.3301689 8.78991486-1.55344592 16.73837985-4.12957709 23.84539497-7.75428424 7.10701511-3.61176178 13.19134498-8.27209955 18.22709887-13.95512256 5.03575387-5.68302302 8.33682647-12.6605843 9.89027238-20.94562925h36.06583626v271.45173017h-48.48045828V728.74651498h-66.69461175v-34.9007518zM94.7444243 135.49846125v116.88386054h244.65478795v247.6063352h135.30514014V252.38232179h245.72925472V135.49846125z" ></path><path d="M339.39921225 483.31500406h135.30514014V893.70952692H339.39921225z" ></path></symbol><symbol id="icon-doc-sup" viewBox="0 0 1024 1024"><path d="M819.12661586 141.34230029c9.92824551 0 19.58032287-0.8285045 28.95623205-2.48551347 9.37590918-1.65700898 17.85427184-4.40488223 25.43508797-8.27123654 7.58081612-3.8525459 14.07076798-8.82357285 19.44223879-14.88546407 5.37147079-6.06189122 8.8926149-13.50462325 10.54962389-22.34200451h38.47022532v289.54851218h-51.71248881V178.56976887h-71.14091921v-37.22746858zM91.53396939 141.42515074v124.67611792h260.96510714v264.11342423h144.32548282V266.10126866h262.11120503v-124.67611792z" ></path><path d="M352.49907653 512.42946308h144.32548282v437.75415773H352.49907653z" ></path></symbol><symbol id="icon-doc-link" viewBox="0 0 1024 1024"><path d="M412.55356997 639.61821237l-12.84181966-12.84181966c-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809483l58.47429374-58.47429372c103.70546094-103.70546094 272.43557925-103.70546094 376.12809481 0 50.22808494 50.24103031 77.90531318 117.02625975 77.90531319 188.0705201 0 71.04426035-27.66428286 137.82948978-77.90531319 188.07052011l-58.47429372 58.47429372-78.3454562-78.34545621 58.47429373-58.47429372c29.30834647-29.30834647 45.45123872-68.27394845 45.45123872-109.7250639s-16.14289225-80.41671743-45.45123872-109.72506389c-60.49377343-60.49377343-158.94340898-60.49377343-219.43718242 0l-58.47429373 58.47429372c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718242l12.84181965 12.82887427-78.3454562 78.35840159z" ></path><path d="M347.98200098 913.6460737c-71.04426035 0-137.82948978-27.66428286-188.07052009-77.90531319-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809481l58.47429372-58.47429374 78.34545621 78.3454562-58.47429373 58.47429372c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718243 29.30834647 29.30834647 68.27394845 45.45123872 109.72506389 45.45123872s80.41671743-16.14289225 109.72506391-45.45123872l58.47429372-58.47429373c60.49377343-60.49377343 60.49377343-158.94340898 0-219.43718242l-12.64763891-12.63469353 78.3454562-78.3454562 12.64763892 12.64763892c103.70546094 103.69251555 103.70546094 272.43557925 0 376.12809481L536.05252109 835.74076051c-50.24103031 50.24103031-117.02625975 77.90531318-188.07052011 77.90531319z" ></path></symbol><symbol id="icon-doc-unlink" viewBox="0 0 1024 1024"><path d="M714.18098725 714.01335467l128.0039443 128.0039443-28.56787057 28.56916512-128.00523885-128.00523884zM657.3701752 775.98937442l46.84934005 174.85457888-39.02385619 10.45728016-46.84934004-174.85587342zM756.63536987 648.12782934l174.85587343 46.84934005-10.45598561 39.02515073-174.85587342-46.84934004zM245.52318041 302.52235789l-128.00523884-128.00394429 28.56916512-28.57045966 128.0039443 128.00653337zM201.64739476 369.81634086L26.79411042 322.96570628l10.45598561-39.02515074 174.8545789 46.84934005zM300.93071297 241.95479577l-46.85063459-174.85587342 39.02515074-10.45598562 46.84934004 174.85457889z" ></path><path d="M712.47219675 651.79784534l-78.34545622-78.3454562 78.06065778-78.06065778c29.30834647-29.30834647 45.45123872-68.27394845 45.45123872-109.72506389s-16.14289225-80.41671743-45.45123872-109.72506391c-29.30834647-29.30834647-68.27394845-45.45123872-109.72506389-45.45123872s-80.41671743 16.14289225-109.7250639 45.45123872l-78.06065777 78.06065778-78.34545622-78.3454562 78.06065778-78.06065778c103.70546094-103.70546094 272.43557925-103.70546094 376.12809483 0 50.22808494 50.22808494 77.90531318 117.02625975 77.90531317 188.07052011s-27.66428286 137.82948978-77.90531317 188.07052009l-78.04771239 78.06065778z" ></path><path d="M354.6359277 897.12579319c-68.11860385 0-136.21131694-25.91665619-188.07052009-77.77585935-103.70546094-103.70546094-103.70546094-272.43557925 0-376.12809482l78.06065778-78.06065778 78.34545619 78.34545619-78.06065777 78.06065777c-60.49377343 60.49377343-60.49377343 158.94340898 0 219.43718244 60.49377343 60.49377343 158.94340898 60.49377343 219.43718241 0l78.06065778-78.06065779 78.34545619 78.34545621-78.06065777 78.06065778c-51.83331239 51.84625778-119.96486163 77.77585936-188.05757472 77.77585935z" ></path></symbol><symbol id="icon-doc-text-left" viewBox="0 0 1024 1024"><path d="M93.96770133 166.81136987h843.06804939v129.69978944H93.96770133zM93.96770133 449.79743605H625.01319111v129.69978943H93.96770133zM93.96770133 732.78350222h843.06804939v129.69978943H93.96770133z" ></path></symbol><symbol id="icon-doc-text-right" viewBox="0 0 1024 1024"><path d="M97.45000928 166.81136987h843.06804939v129.69978944H97.45000928zM409.47256889 449.79743605h531.04548978v129.69978943H409.47256889zM97.45000928 732.78350222h843.06804939v129.69978943H97.45000928z" ></path></symbol><symbol id="icon-doc-text-center" viewBox="0 0 1024 1024"><path d="M93.56639447 129.78757531h843.06804938v129.69978944H93.56639447zM249.57120158 412.77364148H780.61669136v129.69978943H249.57120158zM93.56639447 695.75970765h843.06804938v129.69978944H93.56639447z" ></path></symbol><symbol id="icon-doc-text-justify" viewBox="0 0 1024 1024"><path d="M92.40131003 464.12797472h843.06804938v129.69978943H92.40131003zM92.40131003 181.14190853h843.06804938v129.69978944H92.40131003zM92.40131003 747.11404089h531.04548978v129.69978942H92.40131003z" ></path></symbol><symbol id="icon-doc-h1" viewBox="0 0 1024 1024"><path d="M781.4063597 654.73578983c9.96794469 0 19.66403635-0.8285045 29.08827497-2.49845886 9.41129324-1.65700898 17.92935506-4.42732089 25.55418548-8.31093572 7.61188503-3.87066943 14.12341253-8.86758717 19.53458252-14.95191703 5.39822459-6.08432987 8.93231408-13.56676109 10.58932306-22.43434825h38.64196741V897.38404347h-51.93687545V692.1350005h-71.47145799v-37.39921067zM121.7096565 447.86857403h531.04548977v129.69978944H121.7096565z" ></path><path d="M589.78880475 897.40475607v-769.36998558h129.69978942v769.36998558zM121.71871826 897.40216699v-769.36998557h129.69978944v769.36998557z" ></path></symbol><symbol id="icon-doc-h2" viewBox="0 0 1024 1024"><path d="M942.38219378 897.38404347H743.78707753c0.27185303-24.10430261 6.08432987-45.14054953 17.4503759-63.16052229 11.35310064-18.00702736 26.86166914-33.65799506 46.53865087-46.9529031 9.41129324-6.92577975 19.2497841-13.64443339 29.5025272-20.1559609 10.23979773-6.5115275 19.66403635-13.50203417 28.25977047-20.98446537 8.58278875-7.4824312 15.6509677-15.5862408 21.19159151-24.31142875 5.54062381-8.72518795 8.44038953-18.75785955 8.72518795-30.12390558 0-5.25582539-0.62137837-10.87412148-1.86413512-16.82899753s-3.67648869-11.49549985-7.27530507-16.62187142c-3.59881639-5.12637155-8.58278875-9.41129324-14.95191705-12.88065578-6.3691283-3.45641718-14.680064-5.19109847-24.9328071-5.19109848-9.42423861 0-17.24324978 1.86413511-23.46997887 5.60535071s-11.22364682 8.86758717-14.95191704 15.37911467c-3.74121561 6.5115275-6.5115275 14.20108483-8.3109357 23.05572662-1.79940819 8.86758717-2.84798419 18.42127961-3.11983723 28.67402271h-47.36715536c0-16.06521995 2.14893353-30.95241008 6.44680059-44.66157037 4.28492169-13.7091603 10.73172227-25.55418548 19.31451102-35.52213016 8.58278875-9.96794469 19.04265797-17.79990124 31.36666232-23.46997887 12.32400435-5.67007763 26.65454302-8.51806183 43.00456137-8.51806183 17.72222894 0 32.54469215 2.91271111 44.45444426 8.72518795 11.9097521 5.81247683 21.52817147 13.16545422 28.88114883 22.020096 7.340032 8.86758717 12.53113047 18.48600652 15.5862408 28.88114883 3.04216494 10.38219694 4.5697201 20.2983601 4.56972009 29.70965334 0 11.63789906-1.79940819 22.1624952-5.39822459 31.57378844a101.82838045 101.82838045 0 0 1-14.53766478 25.96843774c-6.09727525 7.89668347-13.02305502 15.15904317-20.77733927 21.81296987-7.75428425 6.65392672-15.79336691 12.88065581-24.10430262 18.69313265-8.3109357 5.81247683-16.62187141 11.36604603-24.9328071 16.6218714-8.3109357 5.26877076-16.00049303 10.52459615-23.05572663 15.79336692-7.06817897 5.26877076-13.23018114 10.73172227-18.48600651 16.41474528-5.26877076 5.68302302-8.86758717 11.70262597-10.79644919 18.07175428H942.43397531v42.38318302zM89.90285117 447.86857403h531.04548977v129.69978944H89.90285117z" ></path><path d="M557.97293763 897.40993422V128.03994864h129.69978944v769.36998558zM89.90285117 897.40605061v-769.36998558h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-h3" viewBox="0 0 1024 1024"><path d="M823.67303427 727.0357523c7.75428425 0.27185303 15.5085685-0.27185303 23.26285275-1.65700899 7.75428425-1.38515595 14.680064-3.80594252 20.77733925-7.27530509 6.08432987-3.45641718 11.00357531-8.23326341 14.74479091-14.33053867 3.74121561-6.08432987 5.60535072-13.56676109 5.60535072-22.43434824 0-12.46640355-4.22019476-22.43434825-12.67352968-29.91677946-8.45333491-7.4824312-19.31451102-11.22364682-32.62236444-11.22364682-8.3109357 0-15.52151387 1.65700898-21.60584375 4.98397236-6.09727525 3.32696336-11.1589199 7.83195653-15.15904317 13.50203416-4.01306864 5.68302302-7.00345205 12.05215131-8.93231406 19.1073849-1.94180741 7.06817897-2.7703119 14.33053867-2.49845888 21.81296986H747.21760395c0.55665147-14.12341253 3.18456415-27.21119447 7.89668346-39.26334578 4.71211931-12.05215131 11.14597452-22.49907517 19.31451101-31.36666231 8.1685365-8.86758717 18.07175427-15.79336691 29.70965333-20.77733925 11.63789906-4.98397235 24.7904079-7.4824312 39.4704719-7.48243122 11.35310064 0 22.49907517 1.65700898 33.45086894 4.98397235 10.93884839 3.32696336 20.77733925 8.1685365 29.50252722 14.53766479 8.72518795 6.3691283 15.71569461 14.47293787 20.98446537 24.31142874 5.25582539 9.83849086 7.89668347 21.12686459 7.89668346 33.86512119 0 14.680064-3.32696336 27.49599289-9.96794469 38.43484128-6.65392672 10.95179378-17.03612365 18.90025876-31.1595362 23.89717649v0.8285045c16.62187141 3.32696336 29.56725413 11.57317215 38.84909353 24.72568099 9.28183941 13.16545422 13.91628642 29.15300187 13.91628642 47.98853373 0 13.8515595-2.7703119 26.25323615-8.3109357 37.19208454-5.54062381 10.95179378-13.02305502 20.22068781-22.43434825 27.83257283-9.42423861 7.62483042-20.36308702 13.50203417-32.82949057 17.65750202-12.46640355 4.15546785-25.61891239 6.22672909-39.4704719 6.2267291-16.89372445 0-31.65146075-2.43373195-44.24731811-7.2753051-12.60880276-4.84157314-23.13339891-11.70262597-31.57378845-20.57021312-8.45333491-8.86758717-14.88719013-19.52163714-19.31451102-31.98804069-4.44026627-12.46640355-6.79632592-26.31796306-7.06817895-41.55467853h47.36715535c-0.55665147 17.73517431 3.80594252 32.47996524 13.08778193 44.24731812 9.28183941 11.78029827 23.19812583 17.65750203 41.76180464 17.65750204 15.79336691 0 29.01060267-4.50499318 39.67759802-13.50203419 10.65404997-8.99704098 16.00049303-21.81296987 16.00049304-38.43484128 0-11.35310064-2.22660583-20.36308702-6.65392671-27.00406835-4.42732089-6.65392672-10.25274311-11.70262597-17.45037591-15.15904315-7.21057817-3.45641718-15.31438775-5.60535072-24.31142874-6.44680058-9.00998637-0.8285045-18.21415348-1.10035753-27.62544672-0.8285045v-35.30205867zM91.27506173 447.86857403h531.04548977v129.69978944H91.27506173z" ></path><path d="M559.34126459 897.40605061v-769.36998558h129.69978944v769.36998558zM91.27247265 897.40346153v-769.36998558h129.69978943v769.36998558z" ></path></symbol><symbol id="icon-doc-h4" viewBox="0 0 1024 1024"><path d="M942.30452148 828.41104435h-37.39921066v68.97299912h-44.86869651v-68.97299912h-124.65109016v-46.95290311l124.65109016-174.91801127h44.86869651v184.48464909h37.39921066v37.38626529z m-170.36123654-37.38626529h88.080384v-127.97805353h-0.82850449l-87.25187951 127.97805353zM87.75391763 447.86857403H618.79940741v129.69978944H87.75391763z" ></path><path d="M555.82659318 897.39957792v-769.36998558h129.69978943v769.36998558zM87.75780125 897.39698883V128.02700325h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-h5" viewBox="0 0 1024 1024"><path d="M772.55171792 661.63567882h150.41240178v42.38318301h-115.09739773L792.91480494 777.97583328l0.82850449 0.8285045c6.3691283-7.1976328 14.47293787-12.67352969 24.31142874-16.41474528 9.82554548-3.74121561 19.59930943-5.60535072 29.29540108-5.60535072 14.39526558 0 27.27592139 2.43373195 38.64196742 7.27530508 11.35310064 4.85451852 20.90679309 11.63789906 28.67402272 20.36308701 7.75428425 8.72518795 13.64443339 19.04265797 17.65750202 30.95241008 4.01306864 11.9097521 6.01960297 24.7904079 6.01960296 38.64196741 0 11.63789906-1.86413511 23.61237808-5.60535072 35.93638242-3.74121561 12.32400435-9.69609165 23.54765117-17.86462815 33.65799505-8.1685365 10.1103439-18.62840573 18.42127961-31.36666232 24.93280712-12.73825659 6.49858213-27.97497205 9.76081857-45.71014636 9.76081857-14.12341253 0-27.21119447-1.86413511-39.26334579-5.60535071s-22.64147437-9.34656631-31.78091456-16.82899754c-9.13944019-7.4824312-16.41474528-16.68659831-21.81296988-27.62544672-5.39822459-10.93884839-8.37566261-23.7418319-8.93231407-38.43484128h47.36715535c1.38515595 15.79336691 6.78338053 27.91024514 16.20761916 36.35063467 9.41129324 8.45333491 21.8776968 12.67352969 37.39921067 12.67352967 9.96794469 0 18.42127961-1.65700898 25.34705936-4.98397234 6.92577975-3.32696336 12.53113047-7.89668347 16.82899753-13.7091603 4.29786706-5.81247683 7.340032-12.59585739 9.13944021-20.363087 1.79940819-7.75428425 2.70558498-16.06521995 2.70558498-24.93280712 0-8.02613728-1.11330291-15.71569461-3.32696336-23.05572661-2.22660583-7.340032-5.54062381-13.7738872-9.96794469-19.31451102-4.44026627-5.54062381-10.17507082-9.96794469-17.24324978-13.29490805s-15.31438775-4.98397235-24.72568098-4.98397234c-9.96794469 0-19.31451102 1.86413511-28.05264436 5.6053507s-15.02958933 10.73172227-18.90025876 20.98446539H741.39218173l31.15953619-159.1505351zM83.76673975 502.96412286h531.04548978v129.69978944H83.76673975z" ></path><path d="M551.83941531 952.4964213v-769.36998559h129.69978944v769.36998559zM83.77062337 952.49253769V183.1225521h129.69978943v769.36998559z" ></path></symbol><symbol id="icon-doc-h6" viewBox="0 0 1024 1024"><path d="M888.60707397 733.36604445c-1.11330291-11.9097521-5.33349769-21.52817147-12.67352967-28.88114884-7.340032-7.340032-17.24324978-11.01652069-29.70965333-11.0165207-8.59573413 0-16.00049303 1.59228208-22.22722214 4.77684623-6.22672909 3.18456415-11.49549985 7.4177043-15.79336691 12.67352968-4.29786706 5.26877076-7.75428425 11.28837373-10.38219694 18.07175427-2.64085808 6.79632592-4.77684622 13.91628642-6.4338552 21.39871763s-2.84798419 14.88719013-3.53408948 22.22722211c-0.69905067 7.340032-1.32042903 14.20108483-1.86413512 20.57021314l0.82850451 0.8285045c6.3691283-11.63789906 15.15904317-20.28541472 26.38268996-25.96843772 11.22364682-5.67007763 23.32757965-8.51806183 36.35063466-8.51806184 14.39526558 0 27.27592139 2.49845886 38.64196742 7.48243122 11.35310064 4.98397235 20.98446539 11.84502518 28.88114884 20.57021312 7.89668347 8.72518795 13.91628642 19.04265797 18.07175426 30.95241008 4.15546785 11.9097521 6.22672909 24.7904079 6.22672909 38.64196742 0 14.12341253-2.29133275 27.21119447-6.86105283 39.26334577-4.5697201 12.05215131-11.1589199 22.57674747-19.74170864 31.57378845-8.58278875 9.00998637-18.83553185 16.00049303-30.74528395 20.98446538-11.9097521 4.98397235-25.07520631 7.4824312-39.47047191 7.4824312-21.33399072 0-38.84909353-3.94834173-52.55825383-11.84502518s-24.51855486-18.69313264-32.41523831-32.41523832c-7.89668347-13.7091603-13.37258035-29.77438025-16.41474528-48.19565986-3.05511031-18.42127961-4.5697201-38.29244208-4.56972011-59.62643278 0-17.4503759 1.86413511-35.04315102 5.60535072-52.76537994 3.74121561-17.72222894 9.90321778-33.86512118 18.48600652-48.40278599 8.58278875-14.5376648 19.87116247-26.38268997 33.86512118-35.52213017 13.98101333-9.13944019 31.22426311-13.7091603 51.72974934-13.70916029 11.63789906 0 22.57674747 1.94180741 32.82949057 5.81247683 10.23979773 3.88361482 19.31451102 9.28183941 27.21119446 16.20761917s14.33053867 15.23671547 19.31451101 24.93280711c4.98397235 9.69609165 7.75428425 20.50548622 8.31093571 32.41523832h-47.3412646z m-45.69720099 183.65614458c8.58278875 0 16.06521995-1.7217359 22.43434826-5.19109846 6.3691283-3.45641718 11.70262597-7.96141037 16.00049303-13.50203418 4.28492169-5.54062381 7.4824312-11.97447902 9.55369245-19.32745639 2.07126124-7.340032 3.11983724-14.88719013 3.11983723-22.64147437 0-7.75428425-1.03563061-15.22377008-3.11983723-22.43434824-2.07126124-7.1976328-5.26877076-13.50203417-9.55369245-18.90025878-4.29786706-5.39822459-9.63136475-9.76081857-16.00049303-13.08778192-6.3691283-3.32696336-13.8515595-4.98397235-22.43434826-4.98397234-8.58278875 0-16.14289225 1.59228208-22.64147437 4.77684622-6.5115275 3.18456415-11.98742439 7.4824312-16.41474528 12.8806558-4.44026627 5.39822459-7.75428425 11.70262597-9.96794469 18.90025877-2.21366045 7.21057817-3.32696336 14.8224632-3.32696336 22.84860049 0 8.03908267 1.10035753 15.6509677 3.32696336 22.8486005 2.21366045 7.21057817 5.54062381 13.64443339 9.96794469 19.31451101 4.42732089 5.68302302 9.90321778 10.17507082 16.41474528 13.50203417 6.49858213 3.32696336 14.04574025 4.99691773 22.64147437 4.99691772zM86.82185008 501.15176928h531.04548977v129.69978944H86.82185008z" ></path><path d="M554.89064202 950.68277317v-769.36998558h129.69978943v769.36998558zM86.82185008 950.69312948V181.3231439h129.69978942v769.36998558z" ></path></symbol><symbol id="icon-doc-list-bullet" viewBox="0 0 1024 1024"><path d="M354.22167547 181.90568613h531.04548977V311.60547555H354.22167547zM354.22167547 464.8917523h531.04548977V594.59154173H354.22167547zM354.22167547 747.87781847h531.04548977V877.5776079H354.22167547z" ></path><path d="M208.84502755 247.42226805m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path><path d="M208.84502755 529.7481197m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path><path d="M208.84502755 805.78251536m-64.84342202 0a64.84342203 64.84342203 0 1 0 129.68684405 0 64.84342203 64.84342203 0 1 0-129.68684405 0Z" ></path></symbol><symbol id="icon-doc-list-number" viewBox="0 0 1024 1024"><path d="M154.11194943 180.33929482c7.37886815 0 14.56355555-0.62137837 21.54111684-1.85118973 6.97756128-1.22981136 13.28196267-3.27518183 18.92614954-6.14905679 5.64418686-2.87387497 10.45986924-6.56330903 14.45999249-11.08124761 4.00012325-4.50499318 6.61509057-10.04561698 7.84490192-16.62187141h28.62224119v215.39822302h-38.46073205V208.02946845h-52.92072454V180.33929482zM296.8995208 658.07569857H149.81408237c0.20712613-17.85168276 4.50499318-33.43792355 12.91949194-46.77166775 8.41449876-13.33374419 19.89705324-24.91986173 34.4606088-34.77129799 6.97756128-5.12637155 14.25286637-10.09739852 21.85180603-14.92602626 7.58599427-4.81568237 14.56355555-9.99383547 20.91973847-15.53445926s11.58611753-11.534336 15.68980386-17.99408198 6.25261985-13.89039565 6.45974596-22.30489442c0-3.89656019-0.46603378-8.05202805-1.38515595-12.46640355-0.91912217-4.4143755-2.71853037-8.50511645-5.38527921-12.31105897-2.66674883-3.79299714-6.35618291-6.97756128-11.0812476-9.54074706-4.72506469-2.56318578-10.87412148-3.84477867-18.46011576-3.84477866-6.97756128 0-12.76414736 1.38515595-17.38564899 4.15546785-4.60855625 2.7703119-8.3109357 6.56330903-11.08124761 11.39193679-2.7703119 4.81568237-4.82862775 10.51165076-6.14905678 17.0749598-1.33337442 6.56330903-2.11009739 13.64443339-2.30427812 21.23042765h-35.08198716c0-11.89680672 1.59228208-22.9262728 4.76390084-33.07545284s7.94846498-18.92614953 14.30464789-26.30501767c6.35618291-7.39181353 14.09752178-13.17839961 23.23696199-17.385649 9.12649482-4.20724939 19.74170864-6.30440139 31.84564148-6.30440138 13.12661808 0 24.10430261 2.14893353 32.92010824 6.45974598 8.81580563 4.31081245 15.9487115 9.74787318 21.38577225 16.31118223 5.43706075 6.56330903 9.28183941 13.69621491 11.534336 21.38577223 2.25249659 7.68955733 3.37874489 15.02958933 3.37874489 21.99420524 0 8.62162489-1.33337442 16.41474528-4.00012326 23.39230658a75.61656951 75.61656951 0 0 1-10.77055842 19.2368387 109.10109645 109.10109645 0 0 1-15.37911467 16.15583764c-5.74774992 4.91924543-11.68968059 9.54074706-17.85168276 13.8515595-6.1490568 4.31081245-12.31105897 8.41449876-18.46011575 12.31105897s-11.84502518 7.79312039-17.0749598 11.68968059c-5.22993461 3.89656019-9.79965472 7.94846498-13.69621492 12.15571437-3.89656019 4.20724939-6.56330903 8.67340642-8.00024652 13.38552573h104.92232691v31.35371694zM207.96474153 818.30070045c5.73480453 0.20712613 11.48255447-0.20712613 17.23030439-1.22981136 5.74774992-1.02268524 10.87412148-2.82209343 15.39206005-5.38527922 4.50499318-2.56318578 8.15559111-6.09727525 10.92590301-10.61521382 2.7703119-4.50499318 4.15546785-10.04561698 4.15546785-16.62187141 0-9.23005787-3.13278261-16.62187141-9.38540246-22.14954982-6.26556524-5.54062381-14.3046479-8.3109357-24.15608415-8.31093571-6.1490568 0-11.49549985 1.22981136-16.00049304 3.68943407-4.51793857 2.45962272-8.25915417 5.79953147-11.2365922 9.99383546-2.97743803 4.20724939-5.17815309 8.91936869-6.61509056 14.14930331-1.43693748 5.22993461-2.05831585 10.61521383-1.85118973 16.15583763h-35.08198716c0.41425225-10.45986924 2.35605965-20.15596089 5.85131299-29.07532958 3.48230795-8.91936869 8.25915417-16.66070755 14.3046479-23.23696197 6.04549373-6.56330903 13.38552573-11.68968059 21.99420523-15.37911467 8.62162489-3.68943408 18.35655269-5.54062381 29.23067418-5.54062381 8.41449876 0 16.66070755 1.22981136 24.76451714 3.68943408 8.10380958 2.45962272 15.37911467 6.05843911 21.85180601 10.77055842 6.45974597 4.72506469 11.63789906 10.71877689 15.53445927 17.99408198 3.89656019 7.28825047 5.85131298 15.6509677 5.85131299 25.07520632 0 10.87412148-2.45962272 20.36308702-7.39181354 28.46689659-4.91924543 8.10380958-12.62174815 14.0069041-23.08161739 17.69633817v0.62137837c12.31105897 2.45962272 21.89064217 8.56984336 28.77758579 18.30477116 6.87399822 9.74787318 10.30452464 21.59289837 10.30452465 35.53507555 0 10.2656885-2.05831585 19.44396483-6.1490568 27.53482905-4.10368631 8.10380958-9.64431013 14.97780781-16.62187142 20.62199466-6.97756128 5.64418686-15.08137086 10.00678083-24.31142872 13.07483655s-18.97793106 4.62150163-29.23067418 4.62150163c-12.51818509 0-23.4440881-1.79940819-32.76476366-5.38527922-9.33362094-3.58587102-17.12674133-8.66046103-23.39230656-15.23671545-6.26556524-6.56330903-11.02946608-14.4599925-14.30464791-23.69005038-3.2881272-9.23005787-5.0228085-19.48280098-5.22993461-30.77117472h35.08198716c-0.41425225 13.12661808 2.82209343 24.05252109 9.69609165 32.76476366 6.87399822 8.72518795 17.17852286 13.07483653 30.92651932 13.07483655 11.68968059 0 21.48933531-3.32696336 29.38601876-10.00678083 7.89668347-6.6668721 11.84502518-16.15583763 11.84502519-28.4668966 0-8.41449876-1.64406361-15.08137086-4.91924544-20.00061629-3.2881272-4.91924543-7.58599427-8.66046103-12.91949195-11.23659221-5.33349769-2.56318578-11.34015525-4.15546785-18.00702736-4.76390084-6.6668721-0.62137837-13.4890888-0.81555911-20.46665007-0.62137836v-26.11083694zM358.66194173 186.92849461h531.04548977v129.69978944H358.66194173zM358.66194173 497.61767981h531.04548977v129.69978943H358.66194173zM358.66194173 780.60374597h531.04548977v129.69978944H358.66194173z" ></path></symbol></svg>', (function(t) {
4862
4777
  var h2 = (h2 = document.getElementsByTagName("script"))[h2.length - 1], l = h2.getAttribute("data-injectcss"), h2 = h2.getAttribute("data-disable-injectsvg");
4863
4778
  if (!h2) {
4864
4779
  var a, o, i, c, e, v = function(h3, l2) {
@@ -4892,11 +4807,11 @@ window._iconfont_svg_string_1032790 = '<svg><symbol id="icon-doc-flex-right" vie
4892
4807
  }
4893
4808
  d();
4894
4809
  }
4895
- }(window);
4810
+ })(window);
4896
4811
  function useEffect(cb, options) {
4897
4812
  watchEffect((onInvalidate) => {
4898
4813
  const unregister = cb();
4899
- onInvalidate(() => unregister == null ? void 0 : unregister());
4814
+ onInvalidate(() => unregister?.());
4900
4815
  }, {
4901
4816
  flush: "post",
4902
4817
  ...options
@@ -4908,7 +4823,7 @@ function useMounted(cb) {
4908
4823
  unregister = cb();
4909
4824
  });
4910
4825
  onUnmounted(() => {
4911
- unregister == null ? void 0 : unregister();
4826
+ unregister?.();
4912
4827
  });
4913
4828
  }
4914
4829
  function useCharacterLimit(editor, maxCharacters, optional = Object.freeze({})) {
@@ -5097,7 +5012,7 @@ function registerClickAndPointerListeners(register, unregister) {
5097
5012
  }
5098
5013
  return () => {
5099
5014
  if (--handleClickAndPointerDownListenersCount === 0) {
5100
- handleClickAndPointerDownListenersUnregister == null ? void 0 : handleClickAndPointerDownListenersUnregister();
5015
+ handleClickAndPointerDownListenersUnregister?.();
5101
5016
  handleClickAndPointerDownListenersUnregister = void 0;
5102
5017
  }
5103
5018
  };
@@ -5147,20 +5062,8 @@ function useLexicalIsTextContentEmpty(editor, trim) {
5147
5062
  return readonly(isEmpty2);
5148
5063
  }
5149
5064
  class HtmlElementNode extends ElementNode {
5150
- /**
5151
- *
5152
- * @param tagName
5153
- * @param className
5154
- * @param style
5155
- * @param key
5156
- */
5157
- constructor(tagName, className, style, key) {
5158
- super(key);
5159
- __publicField(this, "__tagName");
5160
- __publicField(this, "__class");
5161
- this.__tagName = tagName, this.__class = className;
5162
- this.__style = style || "";
5163
- }
5065
+ __tagName;
5066
+ __class;
5164
5067
  static getType() {
5165
5068
  return "html-element";
5166
5069
  }
@@ -5178,6 +5081,18 @@ class HtmlElementNode extends ElementNode {
5178
5081
  header: $covertHtmlElementDOM
5179
5082
  };
5180
5083
  }
5084
+ /**
5085
+ *
5086
+ * @param tagName
5087
+ * @param className
5088
+ * @param style
5089
+ * @param key
5090
+ */
5091
+ constructor(tagName, className, style, key) {
5092
+ super(key);
5093
+ this.__tagName = tagName, this.__class = className;
5094
+ this.__style = style || "";
5095
+ }
5181
5096
  /**
5182
5097
  * 名称
5183
5098
  * @returns
@@ -5190,8 +5105,7 @@ class HtmlElementNode extends ElementNode {
5190
5105
  * @returns
5191
5106
  */
5192
5107
  getDesc() {
5193
- var _a2;
5194
- return (_a2 = this.__class) == null ? void 0 : _a2.split(/[\s]/g).join(".");
5108
+ return this.__class?.split(/[\s]/g).join(".");
5195
5109
  }
5196
5110
  /**
5197
5111
  * 添加样式
@@ -5284,21 +5198,9 @@ const $covertHtmlElementDOM = (domNode) => {
5284
5198
  };
5285
5199
  };
5286
5200
  class HtmlElementDecoratorNode extends DecoratorNode {
5287
- /**
5288
- *
5289
- * @param tagName
5290
- * @param className
5291
- * @param style
5292
- * @param key
5293
- */
5294
- constructor(tagName, className, style, key) {
5295
- super(key);
5296
- __publicField(this, "__tagName");
5297
- __publicField(this, "__class");
5298
- __publicField(this, "__style");
5299
- this.__tagName = tagName, this.__class = className;
5300
- this.__style = style || "";
5301
- }
5201
+ __tagName;
5202
+ __class;
5203
+ __style;
5302
5204
  static getType() {
5303
5205
  return "html-decorator-element";
5304
5206
  }
@@ -5314,6 +5216,18 @@ class HtmlElementDecoratorNode extends DecoratorNode {
5314
5216
  section: $covertHtmlElementDecoratorNode
5315
5217
  };
5316
5218
  }
5219
+ /**
5220
+ *
5221
+ * @param tagName
5222
+ * @param className
5223
+ * @param style
5224
+ * @param key
5225
+ */
5226
+ constructor(tagName, className, style, key) {
5227
+ super(key);
5228
+ this.__tagName = tagName, this.__class = className;
5229
+ this.__style = style || "";
5230
+ }
5317
5231
  /**
5318
5232
  * 名称
5319
5233
  * @returns
@@ -5326,8 +5240,7 @@ class HtmlElementDecoratorNode extends DecoratorNode {
5326
5240
  * @returns
5327
5241
  */
5328
5242
  getDesc() {
5329
- var _a2;
5330
- return (_a2 = this.__class) == null ? void 0 : _a2.split(/[\s]/g).join(".");
5243
+ return this.__class?.split(/[\s]/g).join(".");
5331
5244
  }
5332
5245
  /**
5333
5246
  * 导出JSON
@@ -5450,21 +5363,8 @@ const $covertHtmlElementDecoratorNode = (domNode) => {
5450
5363
  const INSERT_MODULE_COMMAND = createCommand("INSERT_MODULE_COMMAND");
5451
5364
  const AttrMarkName = "module-name";
5452
5365
  class ModuleDecoratorNode extends HtmlElementDecoratorNode {
5453
- /**
5454
- *
5455
- * @param name
5456
- * @param data
5457
- * @param className
5458
- * @param style
5459
- * @param key
5460
- */
5461
- constructor(name, html, className, style, key) {
5462
- super("div", className, style, key);
5463
- __publicField(this, "__moduleName");
5464
- __publicField(this, "__moduleHtml");
5465
- this.__moduleName = name;
5466
- this.__moduleHtml = html;
5467
- }
5366
+ __moduleName;
5367
+ __moduleHtml;
5468
5368
  static getType() {
5469
5369
  return "module";
5470
5370
  }
@@ -5482,6 +5382,19 @@ class ModuleDecoratorNode extends HtmlElementDecoratorNode {
5482
5382
  header: $covertModuleDecoratorNode
5483
5383
  };
5484
5384
  }
5385
+ /**
5386
+ *
5387
+ * @param name
5388
+ * @param data
5389
+ * @param className
5390
+ * @param style
5391
+ * @param key
5392
+ */
5393
+ constructor(name, html, className, style, key) {
5394
+ super("div", className, style, key);
5395
+ this.__moduleName = name;
5396
+ this.__moduleHtml = html;
5397
+ }
5485
5398
  /**
5486
5399
  * 导出JSON
5487
5400
  * @returns
@@ -5700,13 +5613,8 @@ function $isModuleDecoratorWarpNode(node) {
5700
5613
  const INSERT_IMAGE_COMMAND = createCommand("INSERT_IMAGE_COMMAND");
5701
5614
  const ImageDefaultSrc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAADkBJREFUeJzt3W/wHVdZwPHvL01S05AmbUhDm2L/0EJDaqVNbUmR2uIwBQtMbRxRJICow9BKFUZHxQr6ovIGZrDgqCNFgbajI6C2RR1NrRUKmYBpRQrTlmL8g9UpNKRtIk2bxhcnV5qQ5HfvPc/us3v3+5l5XiW/c59z555nd8/u2QOSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJGk+cy19xiXA5cCLgTOB44BFLXy21BdPAjuA+4EtwG3APwL7MpOqcRTwc8CDlE4YhjFZPAC8GVhAQ5o6AzgLuBFY31D70pB8Hng95ewgVBMF4DLg48CzGmhbGqrHgCuBzZGNRheAl1OuXRYHtysJ9gA/Atwe1WBkATgD2AYsC2xT0oF2AucBX4toLGpyYY5yze/gl5q1HPgYQQfvqAKwCbgwqC1JR3YR8JMRDUVdAnwZWBvUlqT53QucXdtIxBnARTj4pbatAy6obSSiALw6oA1Jk6seexEFYENAG5Imd1FtAxEF4PkBbUia3AtqG4iYBHwCH/yRMnwbWFLTQEQB2BfQhqTpVI3hxlYZSRqGyOWPmykLHk6gnXcVSG2YA04EXgt8htgxky6iE08CP9N24lKSa4C9WAD+P97SetZSrl/GAsA+ymuPpKGZA75IcgHowiTg9dkJSAn2ATdkJxGhtoId137KUidciGcA7MhOQEqyMzuBLhQASUksANKAWQCkPOm38SwA0oBZAKQBswBIebwEkJTHAiANmAVAypN+CbAwOwEpwMnApZTXZK8DTgVWAcfs//fdwMPAdsr79LcCfw98veU8Z1LvlzOql1YC7wD+iel/e1/Y38bKlnMfOXOMHDs/fnrfAfXKGuB3KUf12t/eKHYDH9zfdpssAAn5qp8WA79B7MA/OHYB1wKLWurTGQE5p+t9B9R564B/prmBf3DcQzvb3VkAEvJVv2wEHqe9wT+KxykvqG2SBSAhX/XH1cDTtD/4R7EXuKrB/j0vIMd0ve+AOulq8gb+wdFUEbAAJOSr7ttI7pH/4NhLM5cDFoCEfNVt68i55p8vHiN+YvD0gLzS9b4D6ozFtDvbP2ncTewtwvQC4FoAdcmvAOdkJ3EEL6Js6KFn8AxAEdbQ7EM+UfE4ZZ+/CKcF5FPFMwB1xTup3Ou+JUspuWo/zwBUayX9OPqPYjcxC4g8A5CAN9KPo//IEmBTdhIRLADqgp/KTmAKETmnnwFbAJTtZOC87CSmcD5wUnYStSwAynZpdgIV+pw7YAFQvguyE6hwYeXfewmgwVuXnUCFPucOWACU79TsBCqckp1ALQuAsq3KTqBCbe5eAmjwjpn/v3TW0uwEalkApAGzACjb7uwEKuyq/HsvATR4D2cnUKHPuQMWAOXbnp1Ahe3ZCdSyACjbvdkJVOhz7oAFQPm2ZidQoTZ35wA0eHdkJzClfZQdhnvNAqBs/0nZ4bdvvgA8lJ1ELQuAuuDm7ASmcFNAG+mXABF8JZhq9e2VYLuA4wP6vSYglyqeAagLvgl8ODuJCdwAPJKdRFd4BqAIayhH1uyj+3wR+VrwkwLyqeIZgLri68B7spMYw3XMwORfJM8AFGURcA/5R/nDxTZitwZLPwOI0PsOqFPW0t3NQc8K7uuJAXml630HOmop5QgRsQFF31xJ2ZI7e9CPYi9wRQP9tAAk5NtlLwP+CPg3vvvocztwDbAiLbt2XUX+wB/FWxvqowUgId8uWg9sYbzv61HKLrpHpWTarqvIPRPYS3ODHywA3ehAsmuAJ5n8e7uTmIdRuu5KyhlQ24P/MZo57X+m5wTkma73HUj0a9R9d3cDy1vPun1rKX1ta/DfTfyE36FYABLy7YrXEvNjvZN+baw5rUWUbbmbvEPwOKUoR97qOxILQEK+XbCe2GffbwEWttqDPCcCHyD2+9sFXE/cE37jWh2Qe7red6BlJ1KWwEYfvT4KzLXYj2wrgV8EPs/039lW4BfIu9WaXgAifjC1SQzpR/s9lFP2pvbD+x3KoBiakygbdV5I2a7rFMqmHaP39u+ivMBzO+U1XlspL/PIfqR3NfDflW2kjx/PAMZ3M/FH/oPj2tZ6o1onMAPjp/cdaMmv0/zgH0WT964VxwKQkG+GK4Cnaa8A7AV+opWeqYYFICHftn0/OYtb9gCXtdA/TW8VMzB+et+BBp3Adz/X32bsAjY03ktNywKQkG9bFgN3kTf4R/EIcHbDfdV0LAAJ+bblj8kf/KP4L+C0RnuraVgAEvJtwy+RP+gPjq9S7jurO57NDIyf3ncg2OV062UWz4x7GMbiob6wACTk26R1lPX62QP9SPFphrF4qA8sAAn5NmUl8CD5A3ycuI3hLB7qspXMwPjpfQcCLKJscpk9sCeJG+nAc+QDZwFIyLcJf0D+gJ4mrm/iy9DYLAAJ+UZ7G/kDuSbeHf+VaEzHMwPjp/cdqPBy4CnyB3Ft/Hz0F6OxWAAS8o3yfGAH+YM3Ip4GXhf79VRbTXmM+SWU9f6zyAKQkG+EFcB95A/cyNgDvDLyS5rCAmATh34B6Jcpl1uL07KLdxwzMH5634EJLQT+lvwB20TsphxxM5wBfG6MHL9EeUvwLLAAJORb6wPkD9QmYwdwTti3NZ5XATsnyPERyjLrvrMAJORb4y3kD9A24iHg9KDvbD7vYLpHpx+inDX0mQUgId9pXUK5Ts4enG3FgzT7muyFwO9X5viv9HuCcAUzMH5634ExnA58g/xB2XZ8kWY2I10B/F1Qjl+iv1ukWQAS8p3UsZRXSWcPxqy4Czim+lv8jucBXwnOcQvwrMAc22IBSMh3EguAT5E/CLPjr4jZLuulNHcmtRk4OiDHNi1nBsZP7ztwBO8lf/B1JW6mFMRpvQF4ouEcP0m/tk23ACTkO643kT/ouhY3Mfky4jnguhZz/DD9WeVoAUjIdxwvofmjVV/jLylbnI1jBfDxhBzfO2Z+2Y5lBsZP7ztwkFOA/yF/oHU5tgHnzvM9bqSZTVDHjXfOk18XpBcANwc90FLgs7T/JFwf7aPcyvsLyu3CHZQHW36Acr0/X4Fow1spzxp01bGUJyBrpI+f1AoWaA74c/KPrkZcdH2LtGXU9zFd7zuwX5sTVUZ70YVVjodjAUjI91BeR/4P1WgudgM/SPekFwDnAOAC4E7Gn9lWP+2krOe4JzmPZ1pGeY18jarxU/NgxyxYQ5nEcvDPvuXA39CtFYTVR/BaQy4ASyj3tJtc8aZuWU25c7EmO5GuGGoBmKNs3rk+OQ+171TKG51WJufRCUMtAO8Cfjw7CaV5IfDX5K8gTL8EiJA6izmFH6O8BTd7ZtrIj9vJXUG49DB5TRJVhnYGcC7wEfLvPKgbXgb8Cf1aQRhqSAXgOZRJv8iXW6j/rgA+RM5BofoIXmsoBeBoymO+z81ORJ30JuB92UlkGEoB+BDw4uwk1GlvB67NTqKPUicxxvCrATkaw4mraM+SgHzTdbkDr2G6d84bw40290lMLwCzvBbg+yhr+7Pv9ap/nqJMDn6q4c9ZQlmoVMO1AIewCrgFB7+msxD4M8pbjGfaLBaAxcAnKI98StNaAtxKs282qj6FrzWLBeD3GEDlVitGKwjPzE6kKbNWAN4OvDk7Cc2UEygrCE/OTqQJszQJ+ArgNgb8WKca9RXgYsrORlGOBr5d2YaTgMBa4E9x8Ks5aykrCJdlJxJpFgrA8ZQZ/2OzE9HMO5/yW5uZN0j1vQCMbtd06TVPmm2XUM42J90i7VC8C1DpesqSTqlNrwFuwGXlQN6jjFcHfLZh1MT7qbM4IId0GR34YeDJgM82jNp4F9NbFPD5Vfp4G/AMYCtlHzqpC94GfHCKv1tE2bmoRtUY7lsBWA5sAc6q/Ewp0j5gE3DThH+XXgD6NAl4FGX21cGvrhm9Zv5VyXlMrE8F4H3AZdlJSIcxuiX9QxP8TfU1fK2+XAL8LPCHlZ8jteFR4FJg2xj/dyFlMrvGzM8BXAxsplwvSX3wMGVF6n3z/D8LwDw5nEaZ8X925WdIbft3ypbk/3GE/3MU5e1DNWZ2EnAZ5blrB7/66Hspy4hXZSdyJF0tAAsot1TOzk5EqvACygtFOrtQrasF4D3Aq7OTkAKcx+FXEHoX4BA5bAI+Wtmm1DW3Aldy4DX/Aspr62vM1CTgBuAOcndslZpyI/AGvjNm0gtAly4BnkvZv8/Br1n1eg5cQZh+CdCVArCUcp20OjsRqWHXAL+ZncRIFwrAHPAR4EXZiUgteTelEKSLeK1Rrd8CNmYnIbXs/cC3spPowiSgNFRPUX8Q7v1dAEnTm5m7AJJaZgGQBswCIA2YBUAaMAuANGAWAGnALADSgFkApAGzAEgDZgGQBswCIA2YBUAaMAuANGAWAGnALADSgFkApAGzAEgDZgGQBswCIA2YBUAaMAuANGAWAGnALADSgFkApAGLKAB7AtqQNLn/rW0gogB8I6ANSZP7Zm0DEQXg/oA2JE3uvtoGIgrAZwPakDS5u2obiCgAtwS0IWlyt9Y2ELE7MMC9wAuD2pI0v38BzqltJOo24G8HtSNpPNdFNBJ1BjAHfAa4KKg9SYf3aeDiiIaiCgDA6cA2YHlgm5IO9C3gXGB7RGORTwJ+DdiIDwZJTXkC+FGCBj/EPwp8O3A58Ghwu9LQ7QReCfxDZKNNrAXYDJwPbG2gbWmItgDrgTuiG25qMdADwAbgp4GvNvQZ0qy7H3gjZXL9wSY+IHIS8Eif8VLKpcEG4EzgeGBxC58t9cUeyrP9DwCfA26jPOm3LzMpSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIE/wdtJeQPxMSAJQAAAABJRU5ErkJggg==";
5702
5615
  class ImageNode extends HtmlElementDecoratorNode {
5703
- constructor(src, alt, className, style, key) {
5704
- super("img", className, style, key);
5705
- __publicField(this, "__src");
5706
- __publicField(this, "__alt");
5707
- this.__src = src;
5708
- this.__alt = alt;
5709
- }
5616
+ __src;
5617
+ __alt;
5710
5618
  static getType() {
5711
5619
  return "image";
5712
5620
  }
@@ -5732,6 +5640,11 @@ class ImageNode extends HtmlElementDecoratorNode {
5732
5640
  }
5733
5641
  };
5734
5642
  }
5643
+ constructor(src, alt, className, style, key) {
5644
+ super("img", className, style, key);
5645
+ this.__src = src;
5646
+ this.__alt = alt;
5647
+ }
5735
5648
  /**
5736
5649
  * 隔离渲染函数
5737
5650
  * @param editor
@@ -6304,7 +6217,7 @@ const DataFormItem = /* @__PURE__ */ defineComponent({
6304
6217
  setup(props) {
6305
6218
  const slots = useSlots();
6306
6219
  const dataFormContext = inject(DATA_FORM_CONTEXT_KEY);
6307
- const dataForm = computed(() => (dataFormContext == null ? void 0 : dataFormContext.dataForm) ?? null);
6220
+ const dataForm = computed(() => dataFormContext?.dataForm ?? null);
6308
6221
  let _formColumn = null;
6309
6222
  const existFormColumn = ref(unref(dataForm).getColumn(props.name));
6310
6223
  const formColumn = computed(() => {
@@ -6340,10 +6253,7 @@ const DataFormItem = /* @__PURE__ */ defineComponent({
6340
6253
  } = useFormColumnComponent(formColumn, dataForm);
6341
6254
  const disabled = useFormDisabled(computed(() => props.disabled === null ? unref(formColumn).disabled : props.disabled));
6342
6255
  const value = computed({
6343
- get: () => {
6344
- var _a2;
6345
- return (_a2 = unref(formColumn)) == null ? void 0 : _a2.getValue();
6346
- },
6256
+ get: () => unref(formColumn)?.getValue(),
6347
6257
  set: (v) => {
6348
6258
  unref(formColumn).setValue(v);
6349
6259
  }
@@ -6359,14 +6269,13 @@ const DataFormItem = /* @__PURE__ */ defineComponent({
6359
6269
  column: formColumn
6360
6270
  }));
6361
6271
  return () => {
6362
- var _a2;
6363
6272
  let _formColumn2 = unref(formColumn);
6364
6273
  let _component = unref(component);
6365
- let children = ((_a2 = slots.default) == null ? void 0 : _a2.call(slots, {
6274
+ let children = slots.default?.({
6366
6275
  data: unref(dataForm).data,
6367
6276
  column: _formColumn2,
6368
6277
  dataForm: unref(dataForm)
6369
- })) || null;
6278
+ }) || null;
6370
6279
  if (!children && _component) {
6371
6280
  const FormColumnComponent = toRaw(_component);
6372
6281
  children = createVNode(FormColumnComponent, mergeProps(unref(componentProps), {
@@ -6406,7 +6315,6 @@ const Form = /* @__PURE__ */ defineComponent({
6406
6315
  const data = computed(() => unref(dataForm).data);
6407
6316
  const columns = computed(() => unref(dataForm).getColumns().filter((column) => column.visible));
6408
6317
  const rules = computed(() => {
6409
- var _a2;
6410
6318
  const rules2 = {};
6411
6319
  for (const column of unref(columns)) {
6412
6320
  if (column.required && !column.rules.find((rule) => rule.required)) {
@@ -6415,7 +6323,7 @@ const Form = /* @__PURE__ */ defineComponent({
6415
6323
  message: `请录入${column.label}.`
6416
6324
  }];
6417
6325
  }
6418
- let componentRules = ((_a2 = props.rules) == null ? void 0 : _a2[column.name]) || [];
6326
+ let componentRules = props.rules?.[column.name] || [];
6419
6327
  if (!Array.isArray(componentRules)) {
6420
6328
  componentRules = [componentRules];
6421
6329
  }
@@ -6437,16 +6345,13 @@ const Form = /* @__PURE__ */ defineComponent({
6437
6345
  unref(dataForm2).formModels.push({
6438
6346
  id: formUID,
6439
6347
  validate: async () => {
6440
- var _a2;
6441
- return ((_a2 = unref(formEl)) == null ? void 0 : _a2.validateField()) ?? false;
6348
+ return unref(formEl)?.validateField() ?? false;
6442
6349
  },
6443
6350
  reset: () => {
6444
- var _a2;
6445
- (_a2 = unref(formEl)) == null ? void 0 : _a2.resetFields();
6351
+ unref(formEl)?.resetFields();
6446
6352
  },
6447
6353
  clearValidate: () => {
6448
- var _a2;
6449
- (_a2 = unref(formEl)) == null ? void 0 : _a2.clearValidate();
6354
+ unref(formEl)?.clearValidate();
6450
6355
  }
6451
6356
  });
6452
6357
  const disposable = dataForm2.dataFormTypeChangeEvent.on(async ({
@@ -6471,18 +6376,16 @@ const Form = /* @__PURE__ */ defineComponent({
6471
6376
  });
6472
6377
  });
6473
6378
  return () => {
6474
- var _a2;
6475
6379
  if (!unref(dataForm).initd) {
6476
6380
  return null;
6477
6381
  }
6478
- let children = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
6382
+ let children = slots.default?.();
6479
6383
  if (!children) {
6480
6384
  children = unref(columns).map((column) => {
6481
- var _a3;
6482
6385
  if (!column.name) {
6483
6386
  return null;
6484
6387
  }
6485
- return ((_a3 = slots[`col-${column.name}`]) == null ? void 0 : _a3.call(slots)) || (column.componentInfo === "MKFormDetail" ? createVNode(MKDataFormItem, {
6388
+ return slots[`col-${column.name}`]?.() || (column.componentInfo === "MKFormDetail" ? createVNode(MKDataFormItem, {
6486
6389
  "label": column.label,
6487
6390
  "labelWidth": "0px",
6488
6391
  "labelPosition": "top",
@@ -6610,8 +6513,7 @@ const FormView = /* @__PURE__ */ defineComponent({
6610
6513
  });
6611
6514
  const route = useRoute();
6612
6515
  const handleSave = async () => {
6613
- var _a2;
6614
- await ((_a2 = unref(dataForm)) == null ? void 0 : _a2.simpleSubmit());
6516
+ await unref(dataForm)?.simpleSubmit();
6615
6517
  };
6616
6518
  const handleCancel = () => {
6617
6519
  unref(dataForm).cancel();
@@ -6666,8 +6568,7 @@ const FormView = /* @__PURE__ */ defineComponent({
6666
6568
  }, [route.meta.title])]);
6667
6569
  },
6668
6570
  extra: () => {
6669
- var _a2;
6670
- return createVNode(Fragment, null, [(_a2 = slots["footer-button"]) == null ? void 0 : _a2.call(slots), saveBtn]);
6571
+ return createVNode(Fragment, null, [slots["footer-button"]?.(), saveBtn]);
6671
6572
  }
6672
6573
  });
6673
6574
  }
@@ -6675,25 +6576,22 @@ const FormView = /* @__PURE__ */ defineComponent({
6675
6576
  "class": "mk-form-view",
6676
6577
  "shadow": "never"
6677
6578
  }, {
6678
- default: () => {
6679
- var _a2;
6680
- return [createVNode("div", {
6681
- "class": "mk-form-view__main"
6682
- }, [createVNode(ElScrollbar, null, {
6683
- default: () => [createVNode(MKForm, {
6684
- "labelPosition": props.labelPosition,
6685
- "rules": props.rules,
6686
- "labelWidth": props.labelWidth,
6687
- "dataForm": props.dataForm
6688
- }, slots)]
6689
- })]), createVNode("div", {
6690
- "class": "mk-form-view__footer"
6691
- }, [(_a2 = slots["footer-button"]) == null ? void 0 : _a2.call(slots), saveBtn, createVNode(ElButton, {
6692
- "onClick": handleCancel
6693
- }, _isSlot$4(_slot = I18n.instance.translate("mk.dataForm.cancelButton")) ? _slot : {
6694
- default: () => [_slot]
6695
- })])];
6696
- }
6579
+ default: () => [createVNode("div", {
6580
+ "class": "mk-form-view__main"
6581
+ }, [createVNode(ElScrollbar, null, {
6582
+ default: () => [createVNode(MKForm, {
6583
+ "labelPosition": props.labelPosition,
6584
+ "rules": props.rules,
6585
+ "labelWidth": props.labelWidth,
6586
+ "dataForm": props.dataForm
6587
+ }, slots)]
6588
+ })]), createVNode("div", {
6589
+ "class": "mk-form-view__footer"
6590
+ }, [slots["footer-button"]?.(), saveBtn, createVNode(ElButton, {
6591
+ "onClick": handleCancel
6592
+ }, _isSlot$4(_slot = I18n.instance.translate("mk.dataForm.cancelButton")) ? _slot : {
6593
+ default: () => [_slot]
6594
+ })])]
6697
6595
  });
6698
6596
  };
6699
6597
  }
@@ -6788,10 +6686,7 @@ const columnProps$1 = buildProps({
6788
6686
  });
6789
6687
  function useFormItem() {
6790
6688
  const dataFormItemContext = inject(DATA_FORM_ITEM_CONTEXT_KEY);
6791
- const column = computed(() => {
6792
- var _a2;
6793
- return ((_a2 = unref(dataFormItemContext)) == null ? void 0 : _a2.column) ?? null;
6794
- });
6689
+ const column = computed(() => unref(dataFormItemContext)?.column ?? null);
6795
6690
  const value = computed({
6796
6691
  get: () => {
6797
6692
  const _column = unref(column);
@@ -6808,10 +6703,7 @@ function useFormItem() {
6808
6703
  _column.setValue(v);
6809
6704
  }
6810
6705
  });
6811
- const disabled = computed(() => {
6812
- var _a2;
6813
- return ((_a2 = unref(column)) == null ? void 0 : _a2.disabled) ?? false;
6814
- });
6706
+ const disabled = computed(() => unref(column)?.disabled ?? false);
6815
6707
  return { column, value, disabled };
6816
6708
  }
6817
6709
  const MKDataForm = withInstall(DataForm, {
@@ -6864,7 +6756,7 @@ const useQueryParams = (dataTable) => {
6864
6756
  );
6865
6757
  event.on(
6866
6758
  debounce(([paginationEvent]) => {
6867
- const pagination = (paginationEvent == null ? void 0 : paginationEvent.pagination) ?? null;
6759
+ const pagination = paginationEvent?.pagination ?? null;
6868
6760
  const params = dataTable2.dataFilter.getParams();
6869
6761
  const query2 = {};
6870
6762
  if (pagination) {
@@ -6944,7 +6836,7 @@ const DataTableColumnComponent = /* @__PURE__ */ defineComponent({
6944
6836
  props: dataTableColumnProps,
6945
6837
  setup(props) {
6946
6838
  const dataTableContext = inject(DATA_TABLE_CONTEXT_KEY);
6947
- const dataTable = computed(() => (dataTableContext == null ? void 0 : dataTableContext.dataTable) ?? null);
6839
+ const dataTable = computed(() => dataTableContext?.dataTable ?? null);
6948
6840
  const tableColumn = computed(() => props.column);
6949
6841
  const {
6950
6842
  component,
@@ -7002,7 +6894,7 @@ const Table = /* @__PURE__ */ defineComponent({
7002
6894
  return props.treeProps;
7003
6895
  });
7004
6896
  const dataTableContext = inject(DATA_TABLE_CONTEXT_KEY);
7005
- const dataTableEl = computed(() => (dataTableContext == null ? void 0 : dataTableContext.el) ?? null);
6897
+ const dataTableEl = computed(() => dataTableContext?.el ?? null);
7006
6898
  const tableEl = ref(null);
7007
6899
  const dataTable = computed(() => props.dataTable ?? dataTableContext.dataTable);
7008
6900
  const rowKey = computed(() => props.rowKey || unref(dataTable).primaryKey);
@@ -7076,7 +6968,6 @@ const Table = /* @__PURE__ */ defineComponent({
7076
6968
  });
7077
6969
  return () => {
7078
6970
  const columns = unref(dataTable).getColumns().filter((column) => column.visible && column.name).map((column) => {
7079
- var _a2;
7080
6971
  const columnProps2 = {
7081
6972
  prop: column.name,
7082
6973
  label: column.label,
@@ -7091,10 +6982,9 @@ const Table = /* @__PURE__ */ defineComponent({
7091
6982
  if (!column.visible) {
7092
6983
  return null;
7093
6984
  }
7094
- return ((_a2 = slots[`col-${column.name}`]) == null ? void 0 : _a2.call(slots)) ?? createVNode(ElTableColumn, columnProps2, {
6985
+ return slots[`col-${column.name}`]?.() ?? createVNode(ElTableColumn, columnProps2, {
7095
6986
  default: (scope) => {
7096
- var _a3;
7097
- let children = (_a3 = slots[`col-${column.name}-content`]) == null ? void 0 : _a3.call(slots, {
6987
+ let children = slots[`col-${column.name}-content`]?.({
7098
6988
  $index: scope.$index,
7099
6989
  row: scope.row,
7100
6990
  column,
@@ -7129,10 +7019,7 @@ const Table = /* @__PURE__ */ defineComponent({
7129
7019
  "width": unref(selectionColumn).width,
7130
7020
  "fixed": unref(selectionColumn).fixed
7131
7021
  }, null) : null, columns],
7132
- empty: () => {
7133
- var _a2;
7134
- return ((_a2 = slots.empty) == null ? void 0 : _a2.call(slots)) || createVNode(ElEmpty, null, null);
7135
- }
7022
+ empty: () => slots.empty?.() || createVNode(ElEmpty, null, null)
7136
7023
  });
7137
7024
  };
7138
7025
  }
@@ -7176,8 +7063,7 @@ const TableHeaderItem = /* @__PURE__ */ defineComponent({
7176
7063
  slots
7177
7064
  }) {
7178
7065
  return () => {
7179
- var _a2;
7180
- let children = (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
7066
+ let children = slots.default?.();
7181
7067
  if (!children && props.tableHeaderItem) {
7182
7068
  return createVNode(InnerTableHeaderItem, {
7183
7069
  "tableHeaderItem": props.tableHeaderItem
@@ -7204,23 +7090,17 @@ const TableHeader = /* @__PURE__ */ defineComponent({
7204
7090
  }) {
7205
7091
  const dataTableContext = inject(DATA_TABLE_CONTEXT_KEY);
7206
7092
  const dataTable = computed(() => dataTableContext.dataTable);
7207
- const tableHeader = computed(() => {
7208
- var _a2;
7209
- return (_a2 = unref(dataTable)) == null ? void 0 : _a2.header;
7210
- });
7093
+ const tableHeader = computed(() => unref(dataTable)?.header);
7211
7094
  const leftArea = computed(() => {
7212
- var _a2;
7213
- var items = ((_a2 = unref(tableHeader)) == null ? void 0 : _a2.leftArea) ?? [];
7095
+ var items = unref(tableHeader)?.leftArea ?? [];
7214
7096
  return items.filter((item) => item.predicate());
7215
7097
  });
7216
7098
  const rightArea = computed(() => {
7217
- var _a2;
7218
- var items = ((_a2 = unref(tableHeader)) == null ? void 0 : _a2.rightArea) ?? [];
7099
+ var items = unref(tableHeader)?.rightArea ?? [];
7219
7100
  return items.filter((item) => item.predicate());
7220
7101
  });
7221
7102
  const route = useRoute();
7222
7103
  return () => {
7223
- var _a2, _b2, _c2;
7224
7104
  const leftItems = unref(leftArea).filter((item) => item.componentInfo !== "MKClassifySearch").map((item) => createVNode(TableHeaderItem, {
7225
7105
  "tableHeaderItem": item
7226
7106
  }, null));
@@ -7236,8 +7116,7 @@ const TableHeader = /* @__PURE__ */ defineComponent({
7236
7116
  "icon": null
7237
7117
  }, {
7238
7118
  title: () => {
7239
- var _a3;
7240
- return ((_a3 = slots["header-title"]) == null ? void 0 : _a3.call(slots)) ?? createVNode("h3", {
7119
+ return slots["header-title"]?.() ?? createVNode("h3", {
7241
7120
  "style": "color: var(--el-text-color-regular);",
7242
7121
  "class": "m-l-2 flex items-center"
7243
7122
  }, [route.meta.icon ? createVNode(MKSvgIcon, {
@@ -7246,8 +7125,7 @@ const TableHeader = /* @__PURE__ */ defineComponent({
7246
7125
  }, null) : null, createVNode("span", null, [route.meta.title])]);
7247
7126
  },
7248
7127
  extra: () => {
7249
- var _a3;
7250
- return createVNode(Fragment, null, [rightItems, (_a3 = slots["header-tools"]) == null ? void 0 : _a3.call(slots)]);
7128
+ return createVNode(Fragment, null, [rightItems, slots["header-tools"]?.()]);
7251
7129
  },
7252
7130
  content: () => {
7253
7131
  return createVNode("div", {
@@ -7259,9 +7137,9 @@ const TableHeader = /* @__PURE__ */ defineComponent({
7259
7137
  "class": "mk-table-view__header"
7260
7138
  }, [createVNode("div", {
7261
7139
  "class": "mk-table-view__header-main"
7262
- }, [(_a2 = slots["header-title"]) == null ? void 0 : _a2.call(slots), leftItems, classifySearchItems, (_b2 = slots["header-main"]) == null ? void 0 : _b2.call(slots)]), createVNode("div", {
7140
+ }, [slots["header-title"]?.(), leftItems, classifySearchItems, slots["header-main"]?.()]), createVNode("div", {
7263
7141
  "class": "mk-table-view__header-tools"
7264
- }, [rightItems, (_c2 = slots["header-tools"]) == null ? void 0 : _c2.call(slots)])]);
7142
+ }, [rightItems, slots["header-tools"]?.()])]);
7265
7143
  };
7266
7144
  }
7267
7145
  });
@@ -7278,10 +7156,9 @@ const TableView = /* @__PURE__ */ defineComponent({
7278
7156
  const pageSizes = computed(() => unref(dataTable).pageSizes);
7279
7157
  const isTree = computed(() => unref(dataTable) instanceof DataTree);
7280
7158
  return () => {
7281
- var _a2;
7282
- const pagination = ((_a2 = slots.pagination) == null ? void 0 : _a2.call(slots, {
7159
+ const pagination = slots.pagination?.({
7283
7160
  dataTable: unref(dataTable)
7284
- })) || (unref(pageSizes).length && !unref(isTree) ? createVNode(MKDataTablePagination, {
7161
+ }) || (unref(pageSizes).length && !unref(isTree) ? createVNode(MKDataTablePagination, {
7285
7162
  "dataTable": unref(dataTable)
7286
7163
  }, null) : null);
7287
7164
  const renderSlots = {};
@@ -7291,30 +7168,24 @@ const TableView = /* @__PURE__ */ defineComponent({
7291
7168
  }, slots);
7292
7169
  }
7293
7170
  return props.mode === "page" ? createVNode(MKPagePanel, null, {
7294
- default: () => {
7295
- var _a3;
7296
- return [createVNode("div", {
7297
- "class": "p-4 flex flex-col w-full h-full"
7298
- }, [((_a3 = slots.default) == null ? void 0 : _a3.call(slots, {
7299
- dataTable: unref(dataTable)
7300
- })) || createVNode(MKTable, {
7301
- "class": "flex-1",
7302
- "dataTable": unref(dataTable)
7303
- }, null), pagination])];
7304
- },
7171
+ default: () => [createVNode("div", {
7172
+ "class": "p-4 flex flex-col w-full h-full"
7173
+ }, [slots.default?.({
7174
+ dataTable: unref(dataTable)
7175
+ }) || createVNode(MKTable, {
7176
+ "class": "flex-1",
7177
+ "dataTable": unref(dataTable)
7178
+ }, null), pagination])],
7305
7179
  ...renderSlots
7306
7180
  }) : createVNode(ElCard, {
7307
7181
  "class": "mk-table-view",
7308
7182
  "shadow": "never"
7309
7183
  }, {
7310
- default: () => {
7311
- var _a3;
7312
- return [((_a3 = slots.default) == null ? void 0 : _a3.call(slots, {
7313
- dataTable: unref(dataTable)
7314
- })) || createVNode(MKTable, {
7315
- "dataTable": unref(dataTable)
7316
- }, null), pagination];
7317
- },
7184
+ default: () => [slots.default?.({
7185
+ dataTable: unref(dataTable)
7186
+ }) || createVNode(MKTable, {
7187
+ "dataTable": unref(dataTable)
7188
+ }, null), pagination],
7318
7189
  ...renderSlots
7319
7190
  });
7320
7191
  };
@@ -7371,7 +7242,7 @@ const TableClassifySearchItem = /* @__PURE__ */ defineComponent({
7371
7242
  modelValue.value = _modelValue;
7372
7243
  return;
7373
7244
  }
7374
- modelValue.value = (item == null ? void 0 : item.value) ?? null;
7245
+ modelValue.value = item?.value ?? null;
7375
7246
  };
7376
7247
  const options = computed(() => {
7377
7248
  if (Array.isArray(props.options)) {
@@ -7417,12 +7288,10 @@ const TableClassifySearch = /* @__PURE__ */ defineComponent({
7417
7288
  setup(props, {
7418
7289
  slots
7419
7290
  }) {
7420
- var _a2;
7421
- const dataTable = (_a2 = inject(DATA_TABLE_CONTEXT_KEY)) == null ? void 0 : _a2.dataTable;
7422
- const classifySearch = computed(() => (dataTable == null ? void 0 : dataTable.classifySearch) ?? null);
7291
+ const dataTable = inject(DATA_TABLE_CONTEXT_KEY)?.dataTable;
7292
+ const classifySearch = computed(() => dataTable?.classifySearch ?? null);
7423
7293
  return () => {
7424
- var _a3;
7425
- let children = (_a3 = slots.default) == null ? void 0 : _a3.call(slots);
7294
+ let children = slots.default?.();
7426
7295
  const _classifySearch = unref(classifySearch);
7427
7296
  if (!children && _classifySearch) {
7428
7297
  if (!_classifySearch.getClassifySearchItems().length) {
@@ -7626,16 +7495,14 @@ const Tree = /* @__PURE__ */ defineComponent({
7626
7495
  const currentNodeKey = computed(() => (props.currentNodeKey || unref(dataTree).getSelection()[0]) ?? "");
7627
7496
  onMounted(() => {
7628
7497
  watch(currentNodeKey, (currentNodeKey2) => {
7629
- var _a2;
7630
- (_a2 = unref(treeRef)) == null ? void 0 : _a2.setCurrentKey(currentNodeKey2 || null);
7498
+ unref(treeRef)?.setCurrentKey(currentNodeKey2 || null);
7631
7499
  }, {
7632
7500
  immediate: true
7633
7501
  });
7634
7502
  });
7635
7503
  unref(dataTree).afterLoadEvent.on(async () => {
7636
- var _a2;
7637
7504
  await nextTick();
7638
- (_a2 = unref(treeRef)) == null ? void 0 : _a2.setCurrentKey(unref(currentNodeKey) || null);
7505
+ unref(treeRef)?.setCurrentKey(unref(currentNodeKey) || null);
7639
7506
  });
7640
7507
  const handleAdd = (dataTreeNode) => {
7641
7508
  unref(dataTree).addRecord(dataTreeNode ? {
@@ -7661,18 +7528,16 @@ const Tree = /* @__PURE__ */ defineComponent({
7661
7528
  resolve(dataTreeNode.children);
7662
7529
  };
7663
7530
  const filter = (value) => {
7664
- var _a2;
7665
- (_a2 = unref(treeRef)) == null ? void 0 : _a2.filter(value);
7531
+ unref(treeRef)?.filter(value);
7666
7532
  };
7667
7533
  const handleCurrentChange = (dataTreeNode, node) => {
7668
- var _a2;
7669
7534
  if (!dataTreeNode) {
7670
7535
  return;
7671
7536
  }
7672
7537
  const _dataTree = unref(dataTree);
7673
7538
  if (!props.allowSelectContainer && !dataTreeNode.isLeaf) {
7674
7539
  const current = _dataTree.getSelection()[0] ?? null;
7675
- (_a2 = unref(treeRef)) == null ? void 0 : _a2.setCurrentKey(current);
7540
+ unref(treeRef)?.setCurrentKey(current);
7676
7541
  return;
7677
7542
  }
7678
7543
  _dataTree.setSelection([dataTreeNode.data[_dataTree.primaryKey]]);
@@ -7735,8 +7600,7 @@ const Tree = /* @__PURE__ */ defineComponent({
7735
7600
  "onNode-click": handleNodeClick
7736
7601
  }, {
7737
7602
  default: (scope) => {
7738
- var _a2, _b2, _c2, _d2, _e2;
7739
- let children = (_a2 = $slots.default) == null ? void 0 : _a2.call($slots, scope);
7603
+ let children = $slots.default?.(scope);
7740
7604
  if (children) {
7741
7605
  return children;
7742
7606
  }
@@ -7744,8 +7608,8 @@ const Tree = /* @__PURE__ */ defineComponent({
7744
7608
  data
7745
7609
  } = scope;
7746
7610
  const label = data.data[innerDataTree.props.label];
7747
- const main = ((_b2 = $slots["node-main"]) == null ? void 0 : _b2.call($slots, scope)) || label;
7748
- const tools = ((_c2 = $slots["node-tools"]) == null ? void 0 : _c2.call($slots, scope)) || createVNode(Fragment, null, [(_d2 = $slots["node-tools-prefix"]) == null ? void 0 : _d2.call($slots, scope), createVNode(ElButton, {
7611
+ const main = $slots["node-main"]?.(scope) || label;
7612
+ const tools = $slots["node-tools"]?.(scope) || createVNode(Fragment, null, [$slots["node-tools-prefix"]?.(scope), createVNode(ElButton, {
7749
7613
  "type": "primary",
7750
7614
  "link": true,
7751
7615
  "onClick": () => handleAdd(data)
@@ -7763,7 +7627,7 @@ const Tree = /* @__PURE__ */ defineComponent({
7763
7627
  "onClick": () => handleDelete(data)
7764
7628
  }, {
7765
7629
  default: () => [createTextVNode("删除")]
7766
- }), (_e2 = $slots["node-tools-suffix"]) == null ? void 0 : _e2.call($slots, scope)]);
7630
+ }), $slots["node-tools-suffix"]?.(scope)]);
7767
7631
  return createVNode("div", {
7768
7632
  "class": "flex w-full py-2 justify-between"
7769
7633
  }, [createVNode("div", null, [main]), createVNode("div", {
@@ -7797,8 +7661,7 @@ const TreeView = /* @__PURE__ */ defineComponent({
7797
7661
  const treeRef = ref();
7798
7662
  const searchInputValue = ref("");
7799
7663
  watch(searchInputValue, (value) => {
7800
- var _a2;
7801
- (_a2 = unref(treeRef)) == null ? void 0 : _a2.filter(value);
7664
+ unref(treeRef)?.filter(value);
7802
7665
  });
7803
7666
  const filterNodeMethod = (value, data) => {
7804
7667
  if (typeof props.filterNodeMethod === "function") {
@@ -7811,10 +7674,9 @@ const TreeView = /* @__PURE__ */ defineComponent({
7811
7674
  unref(dataTree).addRecord();
7812
7675
  };
7813
7676
  return () => {
7814
- var _a2;
7815
- const content = ((_a2 = slots.default) == null ? void 0 : _a2.call(slots, {
7677
+ const content = slots.default?.({
7816
7678
  dataTree: props.dataTree
7817
- })) || createVNode(MKTree, {
7679
+ }) || createVNode(MKTree, {
7818
7680
  "ref": (component) => treeRef.value = component,
7819
7681
  "dataTree": unref(dataTree),
7820
7682
  "filterNodeMethod": filterNodeMethod
@@ -7883,7 +7745,6 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
7883
7745
  selectNodeId.value = props.curSelectId;
7884
7746
  });
7885
7747
  const setDefaultSelectNode = (callback) => {
7886
- var _a2;
7887
7748
  const list = props.dataTree.getList();
7888
7749
  if (list.length > 0) {
7889
7750
  if (!selectNodeId.value) {
@@ -7895,7 +7756,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
7895
7756
  callback && callback(item);
7896
7757
  break;
7897
7758
  }
7898
- (_a2 = item.children) == null ? void 0 : _a2.forEach((child) => list.push(child));
7759
+ item.children?.forEach((child) => list.push(child));
7899
7760
  }
7900
7761
  }
7901
7762
  };
@@ -8156,10 +8017,7 @@ const MaterialGroupFormPopover = /* @__PURE__ */ defineComponent({
8156
8017
  }, {
8157
8018
  default: () => [createTextVNode("保存")]
8158
8019
  })])])],
8159
- reference: () => {
8160
- var _a2;
8161
- return (_a2 = slots.default) == null ? void 0 : _a2.call(slots);
8162
- }
8020
+ reference: () => slots.default?.()
8163
8021
  });
8164
8022
  };
8165
8023
  }
@@ -8184,7 +8042,7 @@ const MaterialGroup = /* @__PURE__ */ defineComponent({
8184
8042
  await nextTick();
8185
8043
  materialGroupForm.setData({
8186
8044
  ...materialGroupForm.data,
8187
- parentGroupId: (parent == null ? void 0 : parent.id) || null
8045
+ parentGroupId: parent?.id || null
8188
8046
  });
8189
8047
  };
8190
8048
  const handleEditClick = (item) => {
@@ -8316,10 +8174,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
8316
8174
  () => props.materialTable.getSelection().includes(props.material.id)
8317
8175
  );
8318
8176
  const currentMaterialTypeValue = computed(
8319
- () => {
8320
- var _a2;
8321
- return ((_a2 = props.materialTable.currentMaterialType) == null ? void 0 : _a2.value) ?? null;
8322
- }
8177
+ () => props.materialTable.currentMaterialType?.value ?? null
8323
8178
  );
8324
8179
  const MaterialComponent = computed(() => {
8325
8180
  const component = props.materialTable.resolveMaterialComponent(
@@ -8486,10 +8341,7 @@ const MaterialList = /* @__PURE__ */ defineComponent({
8486
8341
  const loading = computed(() => unref(materialTable).loading);
8487
8342
  const materialTypes = computed(() => unref(materialTable).getMaterialTypes());
8488
8343
  const currentMaterialType = computed(() => unref(materialTable).currentMaterialType);
8489
- const currentMaterialTypeId = computed(() => {
8490
- var _a2;
8491
- return ((_a2 = unref(currentMaterialType)) == null ? void 0 : _a2.value) ?? "";
8492
- });
8344
+ const currentMaterialTypeId = computed(() => unref(currentMaterialType)?.value ?? "");
8493
8345
  const materialList = computed(() => unref(materialTable).getList());
8494
8346
  onBeforeUnmount(() => {
8495
8347
  defaultMaterialTable.dispose();
@@ -8637,9 +8489,8 @@ const MaterialList = /* @__PURE__ */ defineComponent({
8637
8489
  const handleDownload = () => {
8638
8490
  };
8639
8491
  const handleSelectFile = async () => {
8640
- var _a2;
8641
8492
  const file = await fileSelect({
8642
- accept: (_a2 = unref(currentMaterialType)) == null ? void 0 : _a2.accept
8493
+ accept: unref(currentMaterialType)?.accept
8643
8494
  });
8644
8495
  if (file) {
8645
8496
  unref(materialTable).upload.upload(file);
@@ -8828,8 +8679,7 @@ const ImageEditPanelComponent = /* @__PURE__ */ defineComponent({
8828
8679
  immediate: true
8829
8680
  });
8830
8681
  const handleMaterialSelect = async (data) => {
8831
- var _a2;
8832
- attrs.src = ((_a2 = data[0]) == null ? void 0 : _a2.path) ?? "";
8682
+ attrs.src = data[0]?.path ?? "";
8833
8683
  };
8834
8684
  const selectImage = async () => {
8835
8685
  const file = await fileSelect({
@@ -9022,18 +8872,14 @@ const showImageEditDialog = async (attrs) => {
9022
8872
  return new Promise((resolve, reject) => {
9023
8873
  selectState.value = attrs.src ? "attrs" : "select";
9024
8874
  const imageEditPanelRef = ref(null);
9025
- const editResult = computed(() => {
9026
- var _a2;
9027
- return (_a2 = imageEditPanelRef.value) == null ? void 0 : _a2.getResult();
9028
- });
8875
+ const editResult = computed(() => imageEditPanelRef.value?.getResult());
9029
8876
  const toCropImageHandle = async () => {
9030
- var _a2;
9031
8877
  if (editResult.value.src) {
9032
8878
  var result = await ImageCropper({
9033
8879
  src: editResult.value.src
9034
8880
  });
9035
8881
  if (result.data) {
9036
- (_a2 = imageEditPanelRef.value) == null ? void 0 : _a2.setSrc(result.data);
8882
+ imageEditPanelRef.value?.setSrc(result.data);
9037
8883
  }
9038
8884
  }
9039
8885
  };
@@ -9127,9 +8973,8 @@ const showModuleSelectDialog = async (namespace) => {
9127
8973
  return true;
9128
8974
  }
9129
8975
  }).map((item) => {
9130
- var _a2;
9131
8976
  return createVNode("div", {
9132
- "class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${((_a2 = selectOption.value) == null ? void 0 : _a2.name) == item.name ? "active" : ""}`,
8977
+ "class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${selectOption.value?.name == item.name ? "active" : ""}`,
9133
8978
  "onClick": () => clickHandle(item)
9134
8979
  }, [item.cover ? createVNode("img", {
9135
8980
  "src": item.cover
@@ -9175,9 +9020,8 @@ const showTemplateSelectDialog = function(namespace) {
9175
9020
  dialogInstance.destroy();
9176
9021
  };
9177
9022
  const handleConfirmClick = () => {
9178
- var _a2;
9179
9023
  dialogInstance.destroy();
9180
- resolve((_a2 = selectOption.value) == null ? void 0 : _a2.name);
9024
+ resolve(selectOption.value?.name);
9181
9025
  };
9182
9026
  const clickHandle = (item) => {
9183
9027
  selectOption.value = item;
@@ -9197,9 +9041,8 @@ const showTemplateSelectDialog = function(namespace) {
9197
9041
  return true;
9198
9042
  }
9199
9043
  }).map((item) => {
9200
- var _a2;
9201
9044
  return createVNode("div", {
9202
- "class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${((_a2 = selectOption.value) == null ? void 0 : _a2.name) == item.name ? "active" : ""}`,
9045
+ "class": `mk-doc-editor__module-template_dialog_list-item ${item.cover ? "cover" : ""} ${selectOption.value?.name == item.name ? "active" : ""}`,
9203
9046
  "onClick": () => clickHandle(item)
9204
9047
  }, [item.cover ? createVNode("img", {
9205
9048
  "src": item.cover
@@ -9328,7 +9171,6 @@ const useLexicalEditor = function(options, errHandle) {
9328
9171
  // 补空
9329
9172
  editor.registerUpdateListener(({ editorState }) => {
9330
9173
  editor.update(() => {
9331
- var _a2;
9332
9174
  const rootNode = $getRoot();
9333
9175
  if (rootNode.isEmpty()) {
9334
9176
  const p = $createParagraphNode();
@@ -9346,7 +9188,7 @@ const useLexicalEditor = function(options, errHandle) {
9346
9188
  }
9347
9189
  list.push(...node.getChildren());
9348
9190
  } else if (el && $isTextNode(node)) {
9349
- if (((_a2 = el == null ? void 0 : el.nextElementSibling) == null ? void 0 : _a2.tagName.toLowerCase()) == "br") {
9191
+ if (el?.nextElementSibling?.tagName.toLowerCase() == "br") {
9350
9192
  el.classList.add("mk-doc__br-brfore-mark");
9351
9193
  } else {
9352
9194
  el.classList.remove("mk-doc__br-brfore-mark");
@@ -9451,15 +9293,14 @@ const addFontSizeToOptions = function(options, size, rootSize = 14) {
9451
9293
  options.push({ value: `${Math.round(size / rootSize * 100) / 100}rem`, label: size + "px" });
9452
9294
  };
9453
9295
  const useLexicalEditorState = function(editor, options) {
9454
- var _a2, _b2;
9455
9296
  if (!editor) {
9456
9297
  editor = useLexicalEditorContext().editor;
9457
9298
  }
9458
9299
  if (!options) {
9459
9300
  options = { rootFontSize: 14, fontFamilyOptions: [], fontSizeOptions: [] };
9460
9301
  }
9461
- options.rootFontSize ?? (options.rootFontSize = 14);
9462
- if (!((_a2 = options == null ? void 0 : options.fontSizeOptions) == null ? void 0 : _a2.length)) {
9302
+ options.rootFontSize ??= 14;
9303
+ if (!options?.fontSizeOptions?.length) {
9463
9304
  options.fontSizeOptions = [];
9464
9305
  for (let i = 0; i < 80; i += 2) {
9465
9306
  addFontSizeToOptions(options.fontSizeOptions, 10 + i, options.rootFontSize);
@@ -9470,7 +9311,7 @@ const useLexicalEditorState = function(editor, options) {
9470
9311
  }
9471
9312
  }
9472
9313
  }
9473
- if (!((_b2 = options == null ? void 0 : options.fontFamilyOptions) == null ? void 0 : _b2.length)) {
9314
+ if (!options?.fontFamilyOptions?.length) {
9474
9315
  options.fontFamilyOptions = [{ value: "", label: "默认字体" }].concat(FONT_FAMILY.map((fv) => {
9475
9316
  let fvl = fv.split("="), label = fvl[0], value = fvl[1] || `'${label}'`;
9476
9317
  return { value, label };
@@ -9563,7 +9404,6 @@ const useLexicalEditorState = function(editor, options) {
9563
9404
  // 其他状态
9564
9405
  editor.registerUpdateListener(({ editorState }) => {
9565
9406
  editorState.read(() => {
9566
- var _a3, _b3, _c2, _d2, _e2, _f2, _g2, _h2;
9567
9407
  const selection = $getSelection();
9568
9408
  if ($isRangeSelection(selection)) {
9569
9409
  const anchorNode = selection.anchor.getNode();
@@ -9575,7 +9415,7 @@ const useLexicalEditorState = function(editor, options) {
9575
9415
  parentNode = anchorNode.getTopLevelElementOrThrow();
9576
9416
  }
9577
9417
  let parentDOM = editor.getElementByKey(parentNode.getKey());
9578
- alignValue.value = (parentDOM == null ? void 0 : parentDOM.style.textAlign) || "left";
9418
+ alignValue.value = parentDOM?.style.textAlign || "left";
9579
9419
  if (alignValue.value == "start") {
9580
9420
  alignValue.value = "left";
9581
9421
  } else if (alignValue.value == "end") {
@@ -9588,28 +9428,28 @@ const useLexicalEditorState = function(editor, options) {
9588
9428
  canSubscript.value = selection.hasFormat("subscript");
9589
9429
  canSuperscript.value = selection.hasFormat("superscript");
9590
9430
  if (canSubscript.value) {
9591
- curContentTypeDesc.value = ((_a3 = contentTypeList.find((item) => item.value == "subscript")) == null ? void 0 : _a3.label) ?? "正文";
9431
+ curContentTypeDesc.value = contentTypeList.find((item) => item.value == "subscript")?.label ?? "正文";
9592
9432
  } else if (canSuperscript.value) {
9593
- curContentTypeDesc.value = ((_b3 = contentTypeList.find((item) => item.value == "superscript")) == null ? void 0 : _b3.label) ?? "正文";
9433
+ curContentTypeDesc.value = contentTypeList.find((item) => item.value == "superscript")?.label ?? "正文";
9594
9434
  } else if (parentDOM !== null) {
9595
9435
  const type = $isHeadingNode(parentNode) ? parentNode.getTag() : parentNode.getType();
9596
- curContentTypeDesc.value = ((_c2 = contentTypeList.find((item) => item.value == type)) == null ? void 0 : _c2.label) ?? "正文";
9436
+ curContentTypeDesc.value = contentTypeList.find((item) => item.value == type)?.label ?? "正文";
9597
9437
  }
9598
9438
  var ff = $getSelectionStyleValueForProperty(selection, "font-family", "");
9599
9439
  let fs = $getSelectionStyleValueForProperty(selection, "font-size", "");
9600
9440
  if (fs) {
9601
9441
  fontSize.value = Math.round(parseFloat(fs) * options.rootFontSize) + "px";
9602
9442
  } else if (parentDOM) {
9603
- fontSize.value = ((_e2 = (_d2 = editor.getRootElement()) == null ? void 0 : _d2.ownerDocument.defaultView) == null ? void 0 : _e2.getComputedStyle(parentDOM).fontSize) ?? Math.round(options.rootFontSize) + "px";
9443
+ fontSize.value = editor.getRootElement()?.ownerDocument.defaultView?.getComputedStyle(parentDOM).fontSize ?? Math.round(options.rootFontSize) + "px";
9604
9444
  } else {
9605
9445
  fontSize.value = Math.round(options.rootFontSize) + "px";
9606
9446
  }
9607
9447
  if (!ff && parentDOM) {
9608
- ff = ((_g2 = (_f2 = editor.getRootElement()) == null ? void 0 : _f2.ownerDocument.defaultView) == null ? void 0 : _g2.getComputedStyle(parentDOM).fontFamily) ?? "";
9448
+ ff = editor.getRootElement()?.ownerDocument.defaultView?.getComputedStyle(parentDOM).fontFamily ?? "";
9609
9449
  }
9610
9450
  fontColor.value = $getSelectionStyleValueForProperty(selection, "color", "#000");
9611
9451
  bgColor.value = $getSelectionStyleValueForProperty(selection, "background-color", "");
9612
- fontFamily.value = ((_h2 = options.fontFamilyOptions) == null ? void 0 : _h2.find((item) => item.value == ff)) || options.fontFamilyOptions[0];
9452
+ fontFamily.value = options.fontFamilyOptions?.find((item) => item.value == ff) || options.fontFamilyOptions[0];
9613
9453
  canTextStyleDisabled.value = false;
9614
9454
  const parent = anchorNode.getParent();
9615
9455
  if (canLink.value = $isLinkNode(parent) || $isLinkNode(anchorNode)) {
@@ -10040,10 +9880,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
10040
9880
  ref();
10041
9881
  const updateToolsPos = () => {
10042
9882
  nextTick(() => {
10043
- var _a2;
10044
9883
  if (selectPayload.value != null) {
10045
9884
  const stageIframe = document.body.querySelector("#" + stageId);
10046
- const editBodyRect = (_a2 = editor.getRootElement()) == null ? void 0 : _a2.getBoundingClientRect();
9885
+ const editBodyRect = editor.getRootElement()?.getBoundingClientRect();
10047
9886
  const selectElement = editor.getElementByKey(selectPayload.value.nodeKey);
10048
9887
  const selectRect = selectElement.getBoundingClientRect();
10049
9888
  const selectElComputedStyle = window.getComputedStyle(selectElement);
@@ -10051,7 +9890,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
10051
9890
  const selectElMarginLeft = parseInt(selectElComputedStyle.marginLeft);
10052
9891
  const selectElMarginBottom = parseInt(selectElComputedStyle.marginBottom);
10053
9892
  const selectElMarginRight = parseInt(selectElComputedStyle.marginRight);
10054
- let baseY = ((stageIframe == null ? void 0 : stageIframe.offsetTop) ?? 0) - ((editBodyRect == null ? void 0 : editBodyRect.y) ?? 0), baseX = ((stageIframe == null ? void 0 : stageIframe.offsetLeft) ?? 0) - ((editBodyRect == null ? void 0 : editBodyRect.x) ?? 0);
9893
+ let baseY = (stageIframe?.offsetTop ?? 0) - (editBodyRect?.y ?? 0), baseX = (stageIframe?.offsetLeft ?? 0) - (editBodyRect?.x ?? 0);
10055
9894
  if (toolbarRef.value != null) {
10056
9895
  const toolsRect = toolbarRef.value.getBoundingClientRect();
10057
9896
  toolsPos.top = Math.max(selectRect.y - toolsRect.height - 5 + baseY, 5 + baseY) + "px";
@@ -10089,7 +9928,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
10089
9928
  const copyInsert = (action) => {
10090
9929
  editor.update(() => {
10091
9930
  const selection = $getSelection();
10092
- const node = $isNodeSelection(selection) ? selection == null ? void 0 : selection.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
9931
+ const node = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
10093
9932
  if (node) {
10094
9933
  const oldNode = deepCloneNode(node);
10095
9934
  if (action == -1) {
@@ -10112,7 +9951,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
10112
9951
  // 点击选中
10113
9952
  editor.registerCommand(CLICK_COMMAND, (event) => {
10114
9953
  const el = event.target;
10115
- const nodeKey = el == null ? void 0 : el.getAttribute("node-key");
9954
+ const nodeKey = el?.getAttribute("node-key");
10116
9955
  if (nodeKey != null) {
10117
9956
  event.preventDefault();
10118
9957
  setElementBlockSelection(editor, nodeKey);
@@ -10148,7 +9987,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
10148
9987
  // 删除模块
10149
9988
  editor.registerCommand(REMOVE_ELEMENTBLOCK_COMMAND, () => {
10150
9989
  const selection = $getSelection();
10151
- const node = $isNodeSelection(selection) ? selection == null ? void 0 : selection.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
9990
+ const node = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
10152
9991
  if (node) {
10153
9992
  node.remove();
10154
9993
  editor.dispatchCommand(SELECTED_ELEMENTBLOCK_COMMAND, null);
@@ -10159,7 +9998,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
10159
9998
  // 选中的话
10160
9999
  editor.registerCommand(SELECTION_CHANGE_COMMAND, () => {
10161
10000
  const selection = $getSelection();
10162
- const node = $isNodeSelection(selection) ? selection == null ? void 0 : selection.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
10001
+ const node = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
10163
10002
  if (node) {
10164
10003
  nodeTitle.value = node.getTitle ? node.getTitle() : "";
10165
10004
  if ($isModuleDecoratorNode(node)) {
@@ -10170,15 +10009,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
10170
10009
  }
10171
10010
  showTools.value = !$isRootNode(node);
10172
10011
  showMask.value = $isHtmlElementDecoratorNode(node);
10173
- if (node == null ? void 0 : node.__next) {
10012
+ if (node?.__next) {
10174
10013
  const nextNode = $getNodeByKey(node.__next);
10175
- canSelectedNextNode.value = (node == null ? void 0 : node.__next) ? $isElementNode(nextNode) && !$isParagraphNode(nextNode) : false;
10014
+ canSelectedNextNode.value = node?.__next ? $isElementNode(nextNode) && !$isParagraphNode(nextNode) : false;
10176
10015
  } else {
10177
10016
  canSelectedNextNode.value = false;
10178
10017
  }
10179
- if (node == null ? void 0 : node.__prev) {
10018
+ if (node?.__prev) {
10180
10019
  const prevNode = $getNodeByKey(node.__prev);
10181
- canSelectedPrevNode.value = (node == null ? void 0 : node.__prev) ? $isElementNode(prevNode) && !$isParagraphNode(prevNode) : false;
10020
+ canSelectedPrevNode.value = node?.__prev ? $isElementNode(prevNode) && !$isParagraphNode(prevNode) : false;
10182
10021
  } else {
10183
10022
  canSelectedPrevNode.value = false;
10184
10023
  }
@@ -10876,7 +10715,7 @@ const insertNodeHandle = (node, selectNode) => {
10876
10715
  };
10877
10716
  const insertNodesHandle = (...nodes) => {
10878
10717
  const selection = $getSelection();
10879
- let selectNode = $isNodeSelection(selection) ? selection == null ? void 0 : selection.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : $getRoot();
10718
+ let selectNode = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : $getRoot();
10880
10719
  nodes.forEach((node) => insertNodeHandle(node, selectNode));
10881
10720
  return false;
10882
10721
  };
@@ -11256,7 +11095,7 @@ const insertListNode = (listType) => {
11256
11095
  const selection = $getSelection();
11257
11096
  const list = $createListNode(listType);
11258
11097
  const listItem = $createListItemNode();
11259
- let elementNode = $isNodeSelection(selection) ? selection == null ? void 0 : selection.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
11098
+ let elementNode = $isNodeSelection(selection) ? selection?.getNodes()[0] : $isRangeSelection(selection) ? selection.anchor.getNode() : null;
11260
11099
  if ($isTextNode(elementNode)) {
11261
11100
  elementNode = elementNode.getParent();
11262
11101
  }
@@ -11760,7 +11599,6 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11760
11599
  theme,
11761
11600
  editable: props.editable,
11762
11601
  namespace: props.namespace,
11763
- editorState: null,
11764
11602
  importCss: props.importCss,
11765
11603
  importScripts: props.importScripts,
11766
11604
  modules: props.modules,
@@ -11933,10 +11771,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11933
11771
  const contentIsEmpty = ref(true);
11934
11772
  const showAddNewline = ref(false);
11935
11773
  const iframeContentRef = ref(null);
11936
- const iframeBody = computed(() => {
11937
- var _a2, _b2, _c2;
11938
- return (_c2 = (_b2 = (_a2 = iframeContentRef.value) == null ? void 0 : _a2.contentWindow) == null ? void 0 : _b2.document) == null ? void 0 : _c2.body;
11939
- });
11774
+ const iframeBody = computed(() => iframeContentRef.value?.contentWindow?.document?.body);
11940
11775
  let updateTimeoutKey = 0;
11941
11776
  const updateStageHeight = () => {
11942
11777
  const stageEl = editor.getRootElement();
@@ -11954,8 +11789,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11954
11789
  editor.update(() => $getRoot().append($createParagraphNode()));
11955
11790
  };
11956
11791
  useMounted(() => {
11957
- var _a2, _b2;
11958
- const doc = (_b2 = (_a2 = iframeContentRef.value) == null ? void 0 : _a2.contentWindow) == null ? void 0 : _b2.document;
11792
+ const doc = iframeContentRef.value?.contentWindow?.document;
11959
11793
  importScript.split(",").filter((item) => !!item).forEach((path2) => {
11960
11794
  const script = document.createElement("script");
11961
11795
  script.src = path2;
@@ -12034,7 +11868,7 @@ const markdownEditorProps = buildProps({
12034
11868
  const markdownEditorEmits = {
12035
11869
  "update:model-value": (modelValue) => true
12036
11870
  };
12037
- const _MarkdownEditor = defineAsyncComponent(() => import("./Editor-DBENXvXq.js"));
11871
+ const _MarkdownEditor = defineAsyncComponent(() => import("./Editor-D8ao5xa_.js"));
12038
11872
  const MKMarkdownEditor = withInstall(_MarkdownEditor);
12039
11873
  const _hoisted_1$s = { class: "mk-rich-text-toolbar" };
12040
11874
  const _hoisted_2$n = { class: "mk-rich-text-editor__stage_warp" };
@@ -12098,7 +11932,7 @@ const Dialogs = /* @__PURE__ */ defineComponent({
12098
11932
  setup(props) {
12099
11933
  const dialogInstances = ref([]);
12100
11934
  const dialogImplInstance = Dialoger.implInstance;
12101
- if ((dialogImplInstance == null ? void 0 : dialogImplInstance.dialogInstanceCreateEvent) && isFunction(dialogImplInstance.dialogInstanceCreateEvent.on)) {
11935
+ if (dialogImplInstance?.dialogInstanceCreateEvent && isFunction(dialogImplInstance.dialogInstanceCreateEvent.on)) {
12102
11936
  dialogImplInstance.dialogInstanceCreateEvent.on((dialogInstance) => {
12103
11937
  dialogInstance.destroyEvent.once(() => {
12104
11938
  const index2 = dialogInstances.value.findIndex((instance) => dialogInstance.id === instance.id);
@@ -12131,32 +11965,26 @@ const Dialogs = /* @__PURE__ */ defineComponent({
12131
11965
  return () => {
12132
11966
  const dialogs = unref(dialogInstances).map((dialogInstance) => {
12133
11967
  return createVNode(MKConfigProvider, null, {
12134
- default: () => {
12135
- var _a2;
12136
- return [createVNode(ElDialog, {
12137
- "class": dialogInstance.class,
12138
- "width": dialogInstance.width,
12139
- "modelValue": dialogInstance.visible,
12140
- "onUpdate:model-value": (visible) => dialogInstance.visible = visible,
12141
- "onClose": () => handleClose(dialogInstance),
12142
- "title": isFunction(dialogInstance.header) ? (_a2 = dialogInstance.header) == null ? void 0 : _a2.call(dialogInstance) : dialogInstance.title || ""
11968
+ default: () => [createVNode(ElDialog, {
11969
+ "class": dialogInstance.class,
11970
+ "width": dialogInstance.width,
11971
+ "modelValue": dialogInstance.visible,
11972
+ "onUpdate:model-value": (visible) => dialogInstance.visible = visible,
11973
+ "onClose": () => handleClose(dialogInstance),
11974
+ "title": isFunction(dialogInstance.header) ? dialogInstance.header?.() : dialogInstance.title || ""
11975
+ }, {
11976
+ default: () => dialogInstance.body(),
11977
+ footer: () => isFunction(dialogInstance.footer) ? dialogInstance.footer?.() : createVNode(Fragment, null, [createVNode(ElButton, {
11978
+ "onClick": () => handleCancel(dialogInstance)
12143
11979
  }, {
12144
- default: () => dialogInstance.body(),
12145
- footer: () => {
12146
- var _a3;
12147
- return isFunction(dialogInstance.footer) ? (_a3 = dialogInstance.footer) == null ? void 0 : _a3.call(dialogInstance) : createVNode(Fragment, null, [createVNode(ElButton, {
12148
- "onClick": () => handleCancel(dialogInstance)
12149
- }, {
12150
- default: () => [dialogInstance.cancelButtonText ?? "取消"]
12151
- }), createVNode(ElButton, {
12152
- "type": "primary",
12153
- "onClick": () => handleConfirm(dialogInstance)
12154
- }, {
12155
- default: () => [dialogInstance.confirmButtonText ?? "确认"]
12156
- })]);
12157
- }
12158
- })];
12159
- }
11980
+ default: () => [dialogInstance.cancelButtonText ?? "取消"]
11981
+ }), createVNode(ElButton, {
11982
+ "type": "primary",
11983
+ "onClick": () => handleConfirm(dialogInstance)
11984
+ }, {
11985
+ default: () => [dialogInstance.confirmButtonText ?? "确认"]
11986
+ })])
11987
+ })]
12160
11988
  });
12161
11989
  });
12162
11990
  return createVNode(Fragment, null, [dialogs]);
@@ -12177,8 +12005,7 @@ const Text$1 = /* @__PURE__ */ defineComponent({
12177
12005
  }) {
12178
12006
  const copyContainer = ref();
12179
12007
  const copyHandle = () => {
12180
- var _a2;
12181
- const copyText = props.copyContent || ((_a2 = copyContainer.value) == null ? void 0 : _a2.innerText) || "";
12008
+ const copyText = props.copyContent || copyContainer.value?.innerText || "";
12182
12009
  if (navigator.clipboard === void 0) {
12183
12010
  const input = document.createElement("input");
12184
12011
  input.value = copyText;
@@ -12388,27 +12215,27 @@ async function OpenVerifyCode(options) {
12388
12215
  }
12389
12216
  const MKOpenVerifyCode = OpenVerifyCode;
12390
12217
  let ResourceManager$1 = class ResourceManager extends Disposable {
12218
+ directories;
12219
+ resourceInfoList;
12220
+ loadingManager;
12221
+ isShowEditDialog = false;
12222
+ currentEditText = "";
12223
+ filterExtensions = [];
12224
+ baseURL = "";
12225
+ get selectResourceList() {
12226
+ return this.resourceInfoList.filter((item) => item.isSelected);
12227
+ }
12228
+ get loading() {
12229
+ return this.loadingManager.loading;
12230
+ }
12391
12231
  constructor(options) {
12392
12232
  super();
12393
- __publicField(this, "directories");
12394
- __publicField(this, "resourceInfoList");
12395
- __publicField(this, "loadingManager");
12396
- __publicField(this, "isShowEditDialog", false);
12397
- __publicField(this, "currentEditText", "");
12398
- __publicField(this, "filterExtensions", []);
12399
- __publicField(this, "baseURL", "");
12400
12233
  this.directories = [];
12401
12234
  this.resourceInfoList = [];
12402
12235
  this.loadingManager = new LoadingManager();
12403
12236
  this.filterExtensions = options.extensions ?? [];
12404
12237
  this.baseURL = options.baseURL;
12405
12238
  }
12406
- get selectResourceList() {
12407
- return this.resourceInfoList.filter((item) => item.isSelected);
12408
- }
12409
- get loading() {
12410
- return this.loadingManager.loading;
12411
- }
12412
12239
  async loadResourceInfoList(toPath = this.directories.length ? `/${this.directories.join("/")}` : "") {
12413
12240
  const httpRequest = MSAppClient.instance.httpRequest;
12414
12241
  try {
@@ -12883,9 +12710,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12883
12710
  unref(resourceManager).downloadSelectResource();
12884
12711
  };
12885
12712
  const handleDrop = async (event) => {
12886
- var _a2, _b2;
12887
12713
  waitUploadFiles = [];
12888
- var _items = (_a2 = event.dataTransfer) == null ? void 0 : _a2.items;
12714
+ var _items = event.dataTransfer?.items;
12889
12715
  var fileSystemEntry = _items[0].webkitGetAsEntry();
12890
12716
  const internalProcess = async (item, path2 = "") => {
12891
12717
  if (item.isFile) {
@@ -12923,7 +12749,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12923
12749
  ElMessage.error({ message: checkResponse.data.msg });
12924
12750
  return;
12925
12751
  }
12926
- if (((_b2 = checkResponse.data.data) == null ? void 0 : _b2.length) === 0) {
12752
+ if (checkResponse.data.data?.length === 0) {
12927
12753
  await unref(resourceManager).uploadResourceList(files);
12928
12754
  waitUploadFiles = [];
12929
12755
  return;
@@ -13154,7 +12980,7 @@ const getFileNameByPath = (path2) => {
13154
12980
  return path2.substring(path2.lastIndexOf("/") + 1, 0);
13155
12981
  };
13156
12982
  const useUploadService = (webFileUpload) => {
13157
- webFileUpload ?? (webFileUpload = new WebFileUpload());
12983
+ webFileUpload ??= new WebFileUpload();
13158
12984
  return {
13159
12985
  /**
13160
12986
  * 文件选择
@@ -13183,8 +13009,7 @@ const useUploadService = (webFileUpload) => {
13183
13009
  uploadItemInfo.progress = Math.round((ev.progress ?? 0) * 100);
13184
13010
  });
13185
13011
  uploadItem.completeEvent.once(() => {
13186
- var _a2;
13187
- if (((_a2 = uploadItem.response) == null ? void 0 : _a2.data.code) === 200) {
13012
+ if (uploadItem.response?.data.code === 200) {
13188
13013
  uploadItemInfo.path = uploadItem.response.data.data.path;
13189
13014
  if (uploadItemInfo.path) {
13190
13015
  uploadItemInfo.name = getFileNameByPath(uploadItemInfo.path);
@@ -14936,8 +14761,7 @@ const MKFileSelect = async function(options) {
14936
14761
  }
14937
14762
  };
14938
14763
  const handleMaterialSelect = async (data) => {
14939
- var _a2;
14940
- filePath.value = (_a2 = data[0]) == null ? void 0 : _a2.path;
14764
+ filePath.value = data[0]?.path;
14941
14765
  file = null;
14942
14766
  };
14943
14767
  const handleConfirmClick = async () => {
@@ -15382,10 +15206,11 @@ async function ResourceSelect(options) {
15382
15206
  });
15383
15207
  }
15384
15208
  const MKResourceSelect = ResourceSelect;
15385
- const _MsMenuTree = class _MsMenuTree extends (_F = DataTree, _E = DATA_MODEL_NAME, _F) {
15209
+ class MsMenuTree extends DataTree {
15210
+ static [DATA_MODEL_NAME] = "ms-menu";
15386
15211
  constructor(options = {}) {
15387
15212
  super({
15388
- name: _MsMenuTree[DATA_MODEL_NAME],
15213
+ name: MsMenuTree[DATA_MODEL_NAME],
15389
15214
  moduleName: MODULE_NAME,
15390
15215
  sortFieldName: "sort",
15391
15216
  ...options
@@ -15518,10 +15343,10 @@ const _MsMenuTree = class _MsMenuTree extends (_F = DataTree, _E = DATA_MODEL_NA
15518
15343
  */
15519
15344
  getRoutePath(item) {
15520
15345
  const route = item.routes.find((route2) => route2.id === item.routeId);
15521
- let path2 = (route == null ? void 0 : route.route) || "";
15346
+ let path2 = route?.route || "";
15522
15347
  if (!path2 && route) {
15523
15348
  const pageRoute = MSAppClient.instance.pageManager.extendsPages.find((item2) => item2.name === route.name);
15524
- path2 = (pageRoute == null ? void 0 : pageRoute.path) ?? "";
15349
+ path2 = pageRoute?.path ?? "";
15525
15350
  }
15526
15351
  if (!path2 && route) {
15527
15352
  const match = route.name.match(/^dv\/([^/]+)\/(edit|.+)$/i);
@@ -15542,28 +15367,26 @@ const _MsMenuTree = class _MsMenuTree extends (_F = DataTree, _E = DATA_MODEL_NA
15542
15367
  return item;
15543
15368
  }
15544
15369
  nodeHasChildren(node) {
15545
- var _a2;
15546
- return [MenuType.Container, MenuType.SystemSettings].includes((_a2 = node.data) == null ? void 0 : _a2.type);
15370
+ return [MenuType.Container, MenuType.SystemSettings].includes(node.data?.type);
15547
15371
  }
15548
15372
  async load(params) {
15549
15373
  return super.loadAll(params);
15550
15374
  }
15551
- };
15552
- __publicField(_MsMenuTree, _E, "ms-menu");
15553
- let MsMenuTree = _MsMenuTree;
15554
- const _MsMenuForm = class _MsMenuForm extends (_H = DataForm$1, _G = DATA_MODEL_NAME, _H) {
15375
+ }
15376
+ class MsMenuForm extends DataForm$1 {
15377
+ static [DATA_MODEL_NAME] = "ms-menu";
15555
15378
  // 构造
15556
15379
  constructor(options = {}) {
15557
15380
  super({
15558
- name: _MsMenuForm[DATA_MODEL_NAME],
15381
+ name: MsMenuForm[DATA_MODEL_NAME],
15559
15382
  moduleName: MODULE_NAME,
15560
15383
  ...options
15561
15384
  });
15562
- // 父菜单数据表
15563
- __publicField(this, "parentMenuTable", this.register(new MsMenuTree({ pageSize: 10 })));
15564
- // 路由定义
15565
- __publicField(this, "routeDefineTable", this.register(new MsRouteTable({ pageSize: 10 })));
15566
15385
  }
15386
+ // 父菜单数据表
15387
+ parentMenuTable = this.register(new MsMenuTree({ pageSize: 10 }));
15388
+ // 路由定义
15389
+ routeDefineTable = this.register(new MsRouteTable({ pageSize: 10 }));
15567
15390
  async initialize() {
15568
15391
  await super.initialize();
15569
15392
  await Promise.all([
@@ -15666,9 +15489,8 @@ const _MsMenuForm = class _MsMenuForm extends (_H = DataForm$1, _G = DATA_MODEL_
15666
15489
  this.getColumn("urlType").disabled = dataFormType !== DataFormType.ADD;
15667
15490
  });
15668
15491
  this.formItemValueChangeEvent.on(({ formItem }) => {
15669
- var _a2;
15670
15492
  if (formItem.name === "type" || formItem.name === "urlType") {
15671
- const visible = ((_a2 = this.data) == null ? void 0 : _a2.type) === MenuType.Menu && this.data.urlType === MenuUrlType.Inner;
15493
+ const visible = this.data?.type === MenuType.Menu && this.data.urlType === MenuUrlType.Inner;
15672
15494
  this.getColumn("routes").visible = visible;
15673
15495
  this.getColumn("permissionPoints").visible = visible;
15674
15496
  }
@@ -15714,20 +15536,18 @@ const _MsMenuForm = class _MsMenuForm extends (_H = DataForm$1, _G = DATA_MODEL_
15714
15536
  memo: item.memo || ""
15715
15537
  };
15716
15538
  }
15717
- };
15718
- __publicField(_MsMenuForm, _G, "ms-menu");
15719
- let MsMenuForm = _MsMenuForm;
15539
+ }
15720
15540
  class RolePermissionConfigTable extends MsMenuTable {
15541
+ roleRouteTable;
15542
+ rolePermissionPointTable;
15543
+ permissionPointDefineTable;
15544
+ routeDefineTable;
15545
+ rootRoleMenuNodes = [];
15546
+ currentRole = null;
15547
+ currentRoleId = "";
15548
+ currentRoleDesc = "";
15721
15549
  constructor(options = {}) {
15722
15550
  super({ ...options });
15723
- __publicField(this, "roleRouteTable");
15724
- __publicField(this, "rolePermissionPointTable");
15725
- __publicField(this, "permissionPointDefineTable");
15726
- __publicField(this, "routeDefineTable");
15727
- __publicField(this, "rootRoleMenuNodes", []);
15728
- __publicField(this, "currentRole", null);
15729
- __publicField(this, "currentRoleId", "");
15730
- __publicField(this, "currentRoleDesc", "");
15731
15551
  this.roleRouteTable = new MsRoleRouteTable();
15732
15552
  this.rolePermissionPointTable = new MsRolePermissionPointTable();
15733
15553
  this.permissionPointDefineTable = new class extends MsPermissionPointDefineTable {
@@ -15859,8 +15679,8 @@ class RolePermissionConfigTable extends MsMenuTable {
15859
15679
  */
15860
15680
  async selectRolePermission(role) {
15861
15681
  this.currentRole = role;
15862
- this.currentRoleId = (role == null ? void 0 : role.id) || "";
15863
- this.currentRoleDesc = (role == null ? void 0 : role.desc) || "";
15682
+ this.currentRoleId = role?.id || "";
15683
+ this.currentRoleDesc = role?.desc || "";
15864
15684
  const [
15865
15685
  roleRouteTableResult,
15866
15686
  rolePermissionPointTableResult
@@ -16054,10 +15874,11 @@ class RolePermissionConfigTable extends MsMenuTable {
16054
15874
  return !!(removePermissionPointDefines.length || removeRoutes.length || addPermissionPointDefine.length || addRoutes.length);
16055
15875
  }
16056
15876
  }
16057
- const _MsMemberForm = class _MsMemberForm extends (_J = DataForm$1, _I = DATA_MODEL_NAME, _J) {
15877
+ class MsMemberForm extends DataForm$1 {
15878
+ static [DATA_MODEL_NAME] = "ms-member";
16058
15879
  constructor(options = {}) {
16059
15880
  super({
16060
- name: _MsMemberForm[DATA_MODEL_NAME],
15881
+ name: MsMemberForm[DATA_MODEL_NAME],
16061
15882
  moduleName: MODULE_NAME,
16062
15883
  ...options
16063
15884
  });
@@ -16136,9 +15957,7 @@ const _MsMemberForm = class _MsMemberForm extends (_J = DataForm$1, _I = DATA_MO
16136
15957
  // memo: item.memo || "",
16137
15958
  // } as F;
16138
15959
  // }
16139
- };
16140
- __publicField(_MsMemberForm, _I, "ms-member");
16141
- let MsMemberForm = _MsMemberForm;
15960
+ }
16142
15961
  const MemberNickNameColumn = /* @__PURE__ */ defineComponent({
16143
15962
  props: dataTableColumnProps,
16144
15963
  setup(props) {
@@ -16193,14 +16012,15 @@ const MemberRolesColumn = /* @__PURE__ */ defineComponent({
16193
16012
  };
16194
16013
  }
16195
16014
  });
16196
- const _MsMemberTable = class _MsMemberTable extends (_L = DataTable$1, _K = DATA_MODEL_NAME, _L) {
16015
+ class MsMemberTable extends DataTable$1 {
16016
+ static [DATA_MODEL_NAME] = "ms-member";
16017
+ activeDialog = null;
16197
16018
  constructor(options = {}) {
16198
16019
  super({
16199
- name: _MsMemberTable[DATA_MODEL_NAME],
16020
+ name: MsMemberTable[DATA_MODEL_NAME],
16200
16021
  moduleName: MODULE_NAME,
16201
16022
  ...options
16202
16023
  });
16203
- __publicField(this, "activeDialog", null);
16204
16024
  this.activeMemberForm = this.register(new class extends MsMemberForm {
16205
16025
  formatSubmitData(data) {
16206
16026
  data = super.formatSubmitData(data);
@@ -16216,10 +16036,9 @@ const _MsMemberTable = class _MsMemberTable extends (_L = DataTable$1, _K = DATA
16216
16036
  * @protected
16217
16037
  */
16218
16038
  async initialize() {
16219
- var _a2, _b2, _c2;
16220
16039
  await super.initialize();
16221
16040
  await this.initActiveMemberForm();
16222
- const isSuperAdmin = ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
16041
+ const isSuperAdmin = MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false;
16223
16042
  this.header.rightArea = [new RefreshButton(), new AddButton(), new ImportButton(), new TableHeaderItem$1({
16224
16043
  componentInfo: "MKBatchOpt",
16225
16044
  predicate: () => isSuperAdmin
@@ -16452,7 +16271,6 @@ const _MsMemberTable = class _MsMemberTable extends (_L = DataTable$1, _K = DATA
16452
16271
  * 申请成员
16453
16272
  */
16454
16273
  async approveMember() {
16455
- var _a2;
16456
16274
  try {
16457
16275
  if (this.activeMemberForm.loading) {
16458
16276
  return;
@@ -16474,14 +16292,14 @@ const _MsMemberTable = class _MsMemberTable extends (_L = DataTable$1, _K = DATA
16474
16292
  approveResult: _data.valid.toString()
16475
16293
  }
16476
16294
  });
16477
- if ((response == null ? void 0 : response.data.code) != 200) {
16295
+ if (response?.data.code != 200) {
16478
16296
  Messager.error({
16479
- message: (response == null ? void 0 : response.data.msg) || "请求失败"
16297
+ message: response?.data.msg || "请求失败"
16480
16298
  });
16481
16299
  return;
16482
16300
  }
16483
- (_a2 = this.activeDialog) == null ? void 0 : _a2.destroy();
16484
- if (response == null ? void 0 : response.data.data) {
16301
+ this.activeDialog?.destroy();
16302
+ if (response?.data.data) {
16485
16303
  Dialoger.customRender({
16486
16304
  title: "重置密码成功",
16487
16305
  width: "475px",
@@ -16516,34 +16334,31 @@ const _MsMemberTable = class _MsMemberTable extends (_L = DataTable$1, _K = DATA
16516
16334
  }
16517
16335
  }
16518
16336
  formatItem(item) {
16519
- var _a2;
16520
16337
  return {
16521
16338
  ...item,
16522
- roles: ((_a2 = item.roles) == null ? void 0 : _a2.map((role) => ({
16339
+ roles: item.roles?.map((role) => ({
16523
16340
  id: role.id,
16524
16341
  name: role.name || "",
16525
16342
  desc: role.desc || ""
16526
- }))) ?? [],
16343
+ })) ?? [],
16527
16344
  type: item.valid === 0 ? 1 : 3
16528
16345
  };
16529
16346
  }
16530
- };
16531
- __publicField(_MsMemberTable, _K, "ms-member");
16532
- let MsMemberTable = _MsMemberTable;
16533
- const _MsMemberRoleTable = class _MsMemberRoleTable extends (_N = DataTable$1, _M = DATA_MODEL_NAME, _N) {
16347
+ }
16348
+ class MsMemberRoleTable extends DataTable$1 {
16349
+ static [DATA_MODEL_NAME] = "ms-member-role";
16350
+ currentRole = null;
16534
16351
  constructor(options = {}) {
16535
16352
  super({
16536
- name: _MsMemberRoleTable[DATA_MODEL_NAME],
16353
+ name: MsMemberRoleTable[DATA_MODEL_NAME],
16537
16354
  moduleName: MODULE_NAME,
16538
16355
  ...options
16539
16356
  });
16540
- __publicField(this, "currentRole", null);
16541
16357
  const memberRoleTable = this;
16542
16358
  this.memberTable = this.register(new class extends MsMemberTable {
16543
16359
  async loadRequest(params) {
16544
- var _a2, _b2;
16545
16360
  return super.loadRequest(Object.assign({
16546
- excludeRoleIds: ((_a2 = memberRoleTable.currentRole) == null ? void 0 : _a2.id) ? [(_b2 = memberRoleTable.currentRole) == null ? void 0 : _b2.id] : []
16361
+ excludeRoleIds: memberRoleTable.currentRole?.id ? [memberRoleTable.currentRole?.id] : []
16547
16362
  }, params));
16548
16363
  }
16549
16364
  }());
@@ -16599,13 +16414,12 @@ const _MsMemberRoleTable = class _MsMemberRoleTable extends (_N = DataTable$1, _
16599
16414
  buttons: [new DeleteButton()]
16600
16415
  })]);
16601
16416
  }
16602
- };
16603
- __publicField(_MsMemberRoleTable, _M, "ms-member-role");
16604
- let MsMemberRoleTable = _MsMemberRoleTable;
16605
- const _MsMemberRoleForm = class _MsMemberRoleForm extends (_P = DataForm$1, _O = DATA_MODEL_NAME, _P) {
16417
+ }
16418
+ class MsMemberRoleForm extends DataForm$1 {
16419
+ static [DATA_MODEL_NAME] = "ms-member-role";
16606
16420
  constructor(options = {}) {
16607
16421
  super({
16608
- name: _MsMemberRoleForm[DATA_MODEL_NAME],
16422
+ name: MsMemberRoleForm[DATA_MODEL_NAME],
16609
16423
  moduleName: MODULE_NAME,
16610
16424
  ...options
16611
16425
  });
@@ -16619,13 +16433,12 @@ const _MsMemberRoleForm = class _MsMemberRoleForm extends (_P = DataForm$1, _O =
16619
16433
  // roleId: this.currentRole?.id!,
16620
16434
  // };
16621
16435
  // }
16622
- };
16623
- __publicField(_MsMemberRoleForm, _O, "ms-member-role");
16624
- let MsMemberRoleForm = _MsMemberRoleForm;
16625
- const _MsIPWhitelistForm = class _MsIPWhitelistForm extends (_R = DataForm$1, _Q = DATA_MODEL_NAME, _R) {
16436
+ }
16437
+ class MsIPWhitelistForm extends DataForm$1 {
16438
+ static [DATA_MODEL_NAME] = "ms-access-ip-whitelist";
16626
16439
  constructor(options = {}) {
16627
16440
  super({
16628
- name: _MsIPWhitelistForm[DATA_MODEL_NAME],
16441
+ name: MsIPWhitelistForm[DATA_MODEL_NAME],
16629
16442
  moduleName: MODULE_NAME,
16630
16443
  ...options
16631
16444
  });
@@ -16650,13 +16463,12 @@ const _MsIPWhitelistForm = class _MsIPWhitelistForm extends (_R = DataForm$1, _Q
16650
16463
  })
16651
16464
  ]);
16652
16465
  }
16653
- };
16654
- __publicField(_MsIPWhitelistForm, _Q, "ms-access-ip-whitelist");
16655
- let MsIPWhitelistForm = _MsIPWhitelistForm;
16656
- const _MsIPWhitelistTable = class _MsIPWhitelistTable extends (_T = DataTable$1, _S = DATA_MODEL_NAME, _T) {
16466
+ }
16467
+ class MsIPWhitelistTable extends DataTable$1 {
16468
+ static [DATA_MODEL_NAME] = "ms-access-ip-whitelist";
16657
16469
  constructor(options = {}) {
16658
16470
  super({
16659
- name: _MsIPWhitelistTable[DATA_MODEL_NAME],
16471
+ name: MsIPWhitelistTable[DATA_MODEL_NAME],
16660
16472
  moduleName: MODULE_NAME,
16661
16473
  ...options
16662
16474
  });
@@ -16668,10 +16480,7 @@ const _MsIPWhitelistTable = class _MsIPWhitelistTable extends (_T = DataTable$1,
16668
16480
  new AddButton(),
16669
16481
  new TableHeaderItem$1({
16670
16482
  componentInfo: "MKBatchOpt",
16671
- predicate: () => {
16672
- var _a2, _b2, _c2;
16673
- return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
16674
- }
16483
+ predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
16675
16484
  })
16676
16485
  ];
16677
16486
  this.setColumns([
@@ -16726,13 +16535,12 @@ const _MsIPWhitelistTable = class _MsIPWhitelistTable extends (_T = DataTable$1,
16726
16535
  })
16727
16536
  ]);
16728
16537
  }
16729
- };
16730
- __publicField(_MsIPWhitelistTable, _S, "ms-access-ip-whitelist");
16731
- let MsIPWhitelistTable = _MsIPWhitelistTable;
16732
- const _MsDenyIPAccessListForm = class _MsDenyIPAccessListForm extends (_V = DataForm$1, _U = DATA_MODEL_NAME, _V) {
16538
+ }
16539
+ class MsDenyIPAccessListForm extends DataForm$1 {
16540
+ static [DATA_MODEL_NAME] = "ms-deny-access-ip-list";
16733
16541
  constructor(options = {}) {
16734
16542
  super({
16735
- name: _MsDenyIPAccessListForm[DATA_MODEL_NAME],
16543
+ name: MsDenyIPAccessListForm[DATA_MODEL_NAME],
16736
16544
  moduleName: MODULE_NAME,
16737
16545
  ...options
16738
16546
  });
@@ -16749,13 +16557,12 @@ const _MsDenyIPAccessListForm = class _MsDenyIPAccessListForm extends (_V = Data
16749
16557
  })
16750
16558
  ]);
16751
16559
  }
16752
- };
16753
- __publicField(_MsDenyIPAccessListForm, _U, "ms-deny-access-ip-list");
16754
- let MsDenyIPAccessListForm = _MsDenyIPAccessListForm;
16755
- const _MsDenyIPAccessListTable = class _MsDenyIPAccessListTable extends (_X = DataTable$1, _W = DATA_MODEL_NAME, _X) {
16560
+ }
16561
+ class MsDenyIPAccessListTable extends DataTable$1 {
16562
+ static [DATA_MODEL_NAME] = "ms-deny-access-ip-list";
16756
16563
  constructor(options = {}) {
16757
16564
  super({
16758
- name: _MsDenyIPAccessListTable[DATA_MODEL_NAME],
16565
+ name: MsDenyIPAccessListTable[DATA_MODEL_NAME],
16759
16566
  moduleName: MODULE_NAME,
16760
16567
  ...options
16761
16568
  });
@@ -16767,10 +16574,7 @@ const _MsDenyIPAccessListTable = class _MsDenyIPAccessListTable extends (_X = Da
16767
16574
  new AddButton(),
16768
16575
  new TableHeaderItem$1({
16769
16576
  componentInfo: "MKBatchOpt",
16770
- predicate: () => {
16771
- var _a2, _b2, _c2;
16772
- return ((_c2 = (_b2 = (_a2 = MSAppClient.instance) == null ? void 0 : _a2.userSession) == null ? void 0 : _b2.userInfo) == null ? void 0 : _c2.isSuper) ?? false;
16773
- }
16577
+ predicate: () => MSAppClient.instance?.userSession?.userInfo?.isSuper ?? false
16774
16578
  })
16775
16579
  ];
16776
16580
  this.setColumns([
@@ -16825,13 +16629,12 @@ const _MsDenyIPAccessListTable = class _MsDenyIPAccessListTable extends (_X = Da
16825
16629
  })
16826
16630
  ]);
16827
16631
  }
16828
- };
16829
- __publicField(_MsDenyIPAccessListTable, _W, "ms-deny-access-ip-list");
16830
- let MsDenyIPAccessListTable = _MsDenyIPAccessListTable;
16831
- const _MsRegionForm = class _MsRegionForm extends (_Z = DataForm$1, _Y = DATA_MODEL_NAME, _Z) {
16632
+ }
16633
+ class MsRegionForm extends DataForm$1 {
16634
+ static [DATA_MODEL_NAME] = "ms-region";
16832
16635
  constructor(options = {}) {
16833
16636
  super({
16834
- name: _MsRegionForm[DATA_MODEL_NAME],
16637
+ name: MsRegionForm[DATA_MODEL_NAME],
16835
16638
  moduleName: MODULE_NAME,
16836
16639
  ...options
16837
16640
  });
@@ -16864,13 +16667,12 @@ const _MsRegionForm = class _MsRegionForm extends (_Z = DataForm$1, _Y = DATA_MO
16864
16667
  new FormColumn({ name: "pinyin", label: "拼音" })
16865
16668
  ]);
16866
16669
  }
16867
- };
16868
- __publicField(_MsRegionForm, _Y, "ms-region");
16869
- let MsRegionForm = _MsRegionForm;
16870
- const _MsRegionTable = class _MsRegionTable extends (_$ = DataTable$1, __ = DATA_MODEL_NAME, _$) {
16670
+ }
16671
+ class MsRegionTable extends DataTable$1 {
16672
+ static [DATA_MODEL_NAME] = "ms-region";
16871
16673
  constructor(options = {}) {
16872
16674
  super({
16873
- name: _MsRegionTable[DATA_MODEL_NAME],
16675
+ name: MsRegionTable[DATA_MODEL_NAME],
16874
16676
  moduleName: MODULE_NAME,
16875
16677
  ...options
16876
16678
  });
@@ -16916,9 +16718,7 @@ const _MsRegionTable = class _MsRegionTable extends (_$ = DataTable$1, __ = DATA
16916
16718
  new TableActionColumn()
16917
16719
  ]);
16918
16720
  }
16919
- };
16920
- __publicField(_MsRegionTable, __, "ms-region");
16921
- let MsRegionTable = _MsRegionTable;
16721
+ }
16922
16722
  class DepartmentForm extends DataForm$1 {
16923
16723
  constructor(options = {}) {
16924
16724
  super({ name: "ms-dept", ...options });
@@ -17151,10 +16951,11 @@ class LocalLogTree extends DataTree {
17151
16951
  return { ...item, children: [] };
17152
16952
  }
17153
16953
  }
17154
- const _MsMessageForm = class _MsMessageForm extends (_ba = DataForm$1, _aa = DATA_MODEL_NAME, _ba) {
16954
+ class MsMessageForm extends DataForm$1 {
16955
+ static [DATA_MODEL_NAME] = "message";
17155
16956
  constructor(options = {}) {
17156
16957
  super({
17157
- name: _MsMessageForm[DATA_MODEL_NAME],
16958
+ name: MsMessageForm[DATA_MODEL_NAME],
17158
16959
  moduleName: MODULE_NAME,
17159
16960
  ...options
17160
16961
  });
@@ -17186,13 +16987,12 @@ const _MsMessageForm = class _MsMessageForm extends (_ba = DataForm$1, _aa = DAT
17186
16987
  })
17187
16988
  ]);
17188
16989
  }
17189
- };
17190
- __publicField(_MsMessageForm, _aa, "message");
17191
- let MsMessageForm = _MsMessageForm;
17192
- const _SendForm = class _SendForm extends (_da = DataForm$1, _ca = DATA_MODEL_NAME, _da) {
16990
+ }
16991
+ class SendForm extends DataForm$1 {
16992
+ static [DATA_MODEL_NAME] = "message";
17193
16993
  constructor(options = {}) {
17194
16994
  super({
17195
- name: _SendForm[DATA_MODEL_NAME],
16995
+ name: SendForm[DATA_MODEL_NAME],
17196
16996
  moduleName: MODULE_NAME,
17197
16997
  ...options
17198
16998
  });
@@ -17253,17 +17053,16 @@ const _SendForm = class _SendForm extends (_da = DataForm$1, _ca = DATA_MODEL_NA
17253
17053
  async addRequest(params) {
17254
17054
  return await this.httpRequest.post("/ms/dv/message/send", this.data);
17255
17055
  }
17256
- };
17257
- __publicField(_SendForm, _ca, "message");
17258
- let SendForm = _SendForm;
17259
- const _MsMessageTable = class _MsMessageTable extends (_fa = DataTable$1, _ea = DATA_MODEL_NAME, _fa) {
17056
+ }
17057
+ class MsMessageTable extends DataTable$1 {
17058
+ static [DATA_MODEL_NAME] = "message";
17059
+ sendForm;
17260
17060
  constructor(options = {}) {
17261
17061
  super({
17262
- name: _MsMessageTable[DATA_MODEL_NAME],
17062
+ name: MsMessageTable[DATA_MODEL_NAME],
17263
17063
  moduleName: MODULE_NAME,
17264
17064
  ...options
17265
17065
  });
17266
- __publicField(this, "sendForm");
17267
17066
  this.httpRequest = MSAppClient.instance.httpRequest;
17268
17067
  this.sendForm = this.register(new SendForm());
17269
17068
  }
@@ -17306,13 +17105,13 @@ const _MsMessageTable = class _MsMessageTable extends (_fa = DataTable$1, _ea =
17306
17105
  // new TableActionColumn(),
17307
17106
  ]);
17308
17107
  }
17309
- };
17310
- __publicField(_MsMessageTable, _ea, "message");
17311
- let MsMessageTable = _MsMessageTable;
17312
- const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = DataTable$1, _ga = DATA_MODEL_NAME, _ha) {
17108
+ }
17109
+ class MsMessageNotifyTable extends DataTable$1 {
17110
+ static components = new Components();
17111
+ static [DATA_MODEL_NAME] = "message-notify";
17313
17112
  constructor(options = {}) {
17314
17113
  super({
17315
- name: _MsMessageNotifyTable[DATA_MODEL_NAME],
17114
+ name: MsMessageNotifyTable[DATA_MODEL_NAME],
17316
17115
  moduleName: "ms",
17317
17116
  ...options
17318
17117
  });
@@ -17342,7 +17141,7 @@ const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = DataTab
17342
17141
  return response;
17343
17142
  }
17344
17143
  handleNotification(notification) {
17345
- const NotificationComponent = _MsMessageNotifyTable.components.resolveComponent(notification.type.toString());
17144
+ const NotificationComponent = MsMessageNotifyTable.components.resolveComponent(notification.type.toString());
17346
17145
  if (NotificationComponent) {
17347
17146
  Notificationer.info({
17348
17147
  dangerouslyUseHTMLString: notification.dangerouslyUseHTMLString ?? false,
@@ -17380,9 +17179,9 @@ const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = DataTab
17380
17179
  try {
17381
17180
  this.loadingManager.startLoading();
17382
17181
  const result = await this.httpRequest.post("/message/readAll");
17383
- if ((result == null ? void 0 : result.data.code) !== 200) {
17182
+ if (result?.data.code !== 200) {
17384
17183
  Messager.error({
17385
- message: (result == null ? void 0 : result.data.msg) || "操作失败"
17184
+ message: result?.data.msg || "操作失败"
17386
17185
  });
17387
17186
  return;
17388
17187
  }
@@ -17395,14 +17194,12 @@ const _MsMessageNotifyTable = class _MsMessageNotifyTable extends (_ha = DataTab
17395
17194
  this.loadingManager.completeLoading();
17396
17195
  }
17397
17196
  }
17398
- };
17399
- __publicField(_MsMessageNotifyTable, "components", new Components());
17400
- __publicField(_MsMessageNotifyTable, _ga, "message-notify");
17401
- let MsMessageNotifyTable = _MsMessageNotifyTable;
17402
- const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = DataTable$1, _ia = DATA_MODEL_NAME, _ja) {
17197
+ }
17198
+ class MsRequestLogTable extends DataTable$1 {
17199
+ static [DATA_MODEL_NAME] = "request-log";
17403
17200
  constructor(options = {}) {
17404
17201
  super({
17405
- name: _MsRequestLogTable[DATA_MODEL_NAME],
17202
+ name: MsRequestLogTable[DATA_MODEL_NAME],
17406
17203
  moduleName: MODULE_NAME,
17407
17204
  ...options
17408
17205
  });
@@ -17474,7 +17271,6 @@ const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = DataTable$1,
17474
17271
  buttons: [new ActionButton({
17475
17272
  label: "查看内容",
17476
17273
  handler: async (row) => {
17477
- var _a2;
17478
17274
  try {
17479
17275
  this.loadingManager.startLoading();
17480
17276
  const response = await this.dataViewRequest.load(row.id, {
@@ -17486,7 +17282,7 @@ const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = DataTable$1,
17486
17282
  });
17487
17283
  return;
17488
17284
  }
17489
- const content = (_a2 = response.data.data) == null ? void 0 : _a2.content;
17285
+ const content = response.data.data?.content;
17490
17286
  if (!content) {
17491
17287
  Messager.warning({
17492
17288
  message: "没有获取到内容"
@@ -17523,33 +17319,39 @@ const _MsRequestLogTable = class _MsRequestLogTable extends (_ja = DataTable$1,
17523
17319
  timeOperationElapsedMilliseconds: `${item.timeOperationElapsedMilliseconds / 1e3}s`
17524
17320
  };
17525
17321
  }
17526
- };
17527
- __publicField(_MsRequestLogTable, _ia, "request-log");
17528
- let MsRequestLogTable = _MsRequestLogTable;
17322
+ }
17529
17323
  class MSAppClient {
17324
+ static instance = null;
17325
+ origin = "";
17326
+ _options;
17327
+ app;
17328
+ projectName;
17329
+ logo;
17330
+ appID;
17331
+ userSession = null;
17332
+ httpRequest;
17333
+ ready = false;
17334
+ initd = false;
17335
+ pageManager;
17336
+ modules = [];
17337
+ settings;
17338
+ /**
17339
+ * @deprecated
17340
+ * @description 使用 MSAppClient.instance.userSession.userInfo
17341
+ */
17342
+ get userInfo() {
17343
+ return this.userSession?.userInfo ?? null;
17344
+ }
17345
+ dataTableComponents;
17346
+ dataTableHeaderComponents;
17347
+ dataFormComponents;
17348
+ dataFilterComponents;
17349
+ whereFilterComponents;
17350
+ i18n;
17351
+ vueRouter;
17352
+ beforeInitUserSessionEvent = new Event();
17353
+ userSessionChangeEvent = new Event();
17530
17354
  constructor(options) {
17531
- __publicField(this, "origin", "");
17532
- __publicField(this, "_options");
17533
- __publicField(this, "app");
17534
- __publicField(this, "projectName");
17535
- __publicField(this, "logo");
17536
- __publicField(this, "appID");
17537
- __publicField(this, "userSession", null);
17538
- __publicField(this, "httpRequest");
17539
- __publicField(this, "ready", false);
17540
- __publicField(this, "initd", false);
17541
- __publicField(this, "pageManager");
17542
- __publicField(this, "modules", []);
17543
- __publicField(this, "settings");
17544
- __publicField(this, "dataTableComponents");
17545
- __publicField(this, "dataTableHeaderComponents");
17546
- __publicField(this, "dataFormComponents");
17547
- __publicField(this, "dataFilterComponents");
17548
- __publicField(this, "whereFilterComponents");
17549
- __publicField(this, "i18n");
17550
- __publicField(this, "vueRouter");
17551
- __publicField(this, "beforeInitUserSessionEvent", new Event());
17552
- __publicField(this, "userSessionChangeEvent", new Event());
17553
17355
  this._options = this._normalizeOptions(options);
17554
17356
  this.app = options.app;
17555
17357
  this.appID = this._options.appID;
@@ -17574,14 +17376,6 @@ class MSAppClient {
17574
17376
  HttpRequest.setDefaultHttpRequest(this.httpRequest);
17575
17377
  DVQueryable.setHttpRequest(this.httpRequest);
17576
17378
  }
17577
- /**
17578
- * @deprecated
17579
- * @description 使用 MSAppClient.instance.userSession.userInfo
17580
- */
17581
- get userInfo() {
17582
- var _a2;
17583
- return ((_a2 = this.userSession) == null ? void 0 : _a2.userInfo) ?? null;
17584
- }
17585
17379
  setUserSession(userSession) {
17586
17380
  if (this.userSession) {
17587
17381
  this.userSession.dispose();
@@ -17625,7 +17419,7 @@ class MSAppClient {
17625
17419
  this.userSession = null;
17626
17420
  this.beforeInitUserSessionEvent.emit({ userSession });
17627
17421
  const userSessionInitResult = await userSession.init();
17628
- if ((userSessionInitResult == null ? void 0 : userSessionInitResult.data.code) !== 200) {
17422
+ if (userSessionInitResult?.data.code !== 200) {
17629
17423
  userSession.dispose();
17630
17424
  return userSessionInitResult;
17631
17425
  }
@@ -17720,41 +17514,41 @@ class MSAppClient {
17720
17514
  this.pageManager.addExtendsPage({
17721
17515
  name: "dv/ms-material/list",
17722
17516
  path: "/sys/materials",
17723
- component: () => import("./index-CZ0GujBv.js"),
17517
+ component: () => import("./index-9xY--M0f.js"),
17724
17518
  meta: { name: "ms-material" }
17725
17519
  });
17726
17520
  this.pageManager.addExtendsPage({
17727
17521
  name: "dv/ms-role/single/list/dialog",
17728
17522
  path: "/sys/roles",
17729
- component: () => import("./index-C9JMPNAn.js"),
17523
+ component: () => import("./index-Bhhtz3Yu.js"),
17730
17524
  meta: { name: "ms-role" }
17731
17525
  });
17732
17526
  this.pageManager.addExtendsPage({
17733
17527
  name: "dv/ms-role/permission",
17734
17528
  path: "/sys/roles/:id/permission",
17735
- component: () => import("./PermissionManage-DrtBafJc.js")
17529
+ component: () => import("./PermissionManage-Drqh6bZl.js")
17736
17530
  });
17737
17531
  this.pageManager.addExtendsPage({
17738
17532
  name: "dv/local-log/single/tree/dialog",
17739
17533
  path: "/log/local",
17740
- component: () => import("./index-DhTUEIXO.js"),
17534
+ component: () => import("./index-BJyjbwYB.js"),
17741
17535
  meta: { name: "local-log" }
17742
17536
  });
17743
17537
  this.pageManager.addExtendsPage({
17744
17538
  name: "dv/ms-menu/list",
17745
17539
  path: "/sys/menus",
17746
- component: () => import("./index-DMXFPtO2.js"),
17540
+ component: () => import("./index-B_WzSRqh.js"),
17747
17541
  meta: { name: "ms-menu" }
17748
17542
  });
17749
17543
  this.pageManager.addExtendsPage({
17750
17544
  name: "icons/list",
17751
17545
  path: "/sys/icons",
17752
- component: () => import("./index-BaQNlWD6.js")
17546
+ component: () => import("./index-Dc66zrKf.js")
17753
17547
  });
17754
17548
  this.pageManager.addExtendsPage({
17755
17549
  name: "dv/ms-todo/single/list/dialog",
17756
17550
  path: "/dv/todo",
17757
- component: () => import("./index-CaDReIhH.js")
17551
+ component: () => import("./index-BuTSTk63.js")
17758
17552
  });
17759
17553
  for (let internalModule of internalModules) {
17760
17554
  for (let item of internalModule.normalPages) {
@@ -17765,9 +17559,8 @@ class MSAppClient {
17765
17559
  }
17766
17560
  }
17767
17561
  this.httpRequest.getInterceptors().response.use((config) => {
17768
- var _a2;
17769
17562
  if (config.data.code === 401) {
17770
- (_a2 = this.userSession) == null ? void 0 : _a2.dispose();
17563
+ this.userSession?.dispose();
17771
17564
  this.vueRouter.push({ name: "login" });
17772
17565
  }
17773
17566
  return config;
@@ -17826,7 +17619,6 @@ class MSAppClient {
17826
17619
  this.modules.push(module);
17827
17620
  }
17828
17621
  }
17829
- __publicField(MSAppClient, "instance", null);
17830
17622
  class MessagerImpl extends SkeletonMessageSender {
17831
17623
  info(message) {
17832
17624
  ElMessage.info(message);
@@ -17857,10 +17649,7 @@ class NotificationerImpl extends SkeletonMessageSender {
17857
17649
  }
17858
17650
  let uid = 0;
17859
17651
  class DialogerImpl extends SkeletonDialoger {
17860
- constructor() {
17861
- super(...arguments);
17862
- __publicField(this, "dialogInstanceCreateEvent", new Event());
17863
- }
17652
+ dialogInstanceCreateEvent = new Event();
17864
17653
  async prompt(options) {
17865
17654
  const promptResult = await ElMessageBox.prompt(options.message, options.title, options);
17866
17655
  return promptResult.value;
@@ -18413,16 +18202,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18413
18202
  }
18414
18203
  });
18415
18204
  const readAllHandle = async () => {
18416
- var _a2;
18417
- (_a2 = props.messageNotifyTable) == null ? void 0 : _a2.readAll();
18205
+ props.messageNotifyTable?.readAll();
18418
18206
  };
18419
18207
  watch(selectValue, (selectValue2) => {
18420
- var _a2;
18421
- (_a2 = props.messageNotifyTable) == null ? void 0 : _a2.setMessageType(selectValue2);
18208
+ props.messageNotifyTable?.setMessageType(selectValue2);
18422
18209
  });
18423
18210
  watch(buttonName, async (buttonName2) => {
18424
- var _a2;
18425
- (_a2 = props.messageNotifyTable) == null ? void 0 : _a2.setReadType(buttonName2);
18211
+ props.messageNotifyTable?.setReadType(buttonName2);
18426
18212
  });
18427
18213
  return (_ctx, _cache) => {
18428
18214
  const _component_ElOption = resolveComponent("ElOption");
@@ -18506,21 +18292,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18506
18292
  return openBlock(), createElementBlock("div", {
18507
18293
  class: normalizeClass(["mk-message__body-item", { "is-read": item.isRead }]),
18508
18294
  key: item.id,
18509
- onClick: ($event) => {
18510
- var _a2;
18511
- return (_a2 = messageType.value.find((a) => a.type == item.type)) == null ? void 0 : _a2.actions(item);
18512
- }
18295
+ onClick: ($event) => messageType.value.find((a) => a.type == item.type)?.actions(item)
18513
18296
  }, [
18514
18297
  createElementVNode("div", _hoisted_3$a, toDisplayString(item.title), 1),
18515
18298
  createElementVNode("div", _hoisted_4$9, toDisplayString(item.content), 1),
18516
18299
  createElementVNode("div", _hoisted_5$8, [
18517
18300
  createVNode(unref(ElTag), null, {
18518
- default: withCtx(() => {
18519
- var _a2;
18520
- return [
18521
- createTextVNode(toDisplayString((_a2 = messageType.value.find((a) => a.type == item.type)) == null ? void 0 : _a2.name), 1)
18522
- ];
18523
- }),
18301
+ default: withCtx(() => [
18302
+ createTextVNode(toDisplayString(messageType.value.find((a) => a.type == item.type)?.name), 1)
18303
+ ]),
18524
18304
  _: 2
18525
18305
  }, 1024),
18526
18306
  createTextVNode(" " + toDisplayString(item.createdAt), 1)
@@ -18660,6 +18440,7 @@ const _hoisted_12$2 = {
18660
18440
  class: "flex gap-2 flex-wrap"
18661
18441
  };
18662
18442
  const _hoisted_13$2 = ["onClick"];
18443
+ const _hoisted_14$2 = ["onClick"];
18663
18444
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
18664
18445
  ...{ name: "Tools" },
18665
18446
  __name: "rightSide",
@@ -18676,7 +18457,6 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18676
18457
  router.push({ name: "login" });
18677
18458
  };
18678
18459
  return (_ctx, _cache) => {
18679
- var _a2;
18680
18460
  const _component_el_avatar = resolveComponent("el-avatar");
18681
18461
  const _component_el_tag = resolveComponent("el-tag");
18682
18462
  const _component_el_divider = resolveComponent("el-divider");
@@ -18684,7 +18464,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18684
18464
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
18685
18465
  unref(settingsStore).settings.toolbar.navSearch ? (openBlock(), createBlock(_sfc_main$m, { key: 0 })) : createCommentVNode("", true),
18686
18466
  unref(settingsStore).settings.toolbar.fullscreen ? (openBlock(), createBlock(_sfc_main$l, { key: 1 })) : createCommentVNode("", true),
18687
- ((_a2 = unref(settingsStore).settings.toolbar) == null ? void 0 : _a2.message) ? (openBlock(), createBlock(unref(MKMessage), { key: 2 })) : createCommentVNode("", true),
18467
+ unref(settingsStore).settings.toolbar?.message ? (openBlock(), createBlock(unref(MKMessage), { key: 2 })) : createCommentVNode("", true),
18688
18468
  unref(userInfo) ? (openBlock(), createBlock(_component_el_popover, {
18689
18469
  key: 3,
18690
18470
  class: "h-full py-2",
@@ -18758,23 +18538,38 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18758
18538
  ])) : createCommentVNode("", true),
18759
18539
  createVNode(_component_el_divider, { style: { "margin": "10px 0" } }),
18760
18540
  createElementVNode("div", null, [
18761
- unref(settingsStore).mode === "pc" && unref(settingsStore).settings.menu.mode === "head" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(menuStore).allMenus, (item, index2) => {
18762
- var _a3, _b2, _c2, _d2, _e2, _f2;
18541
+ unref(settingsStore).mode === "pc" && unref(settingsStore).settings.menu.mode === "head" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(settingsStore).settings.toolbar.shortcutMenus, (item, index2) => {
18763
18542
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
18764
- ((_a3 = item.meta) == null ? void 0 : _a3.type) == "3" ? (openBlock(), createElementBlock("div", {
18543
+ item.meta?.type == "3" ? (openBlock(), createElementBlock("div", {
18765
18544
  key: 0,
18766
18545
  class: "w-full el-button user-action-item el-button--primary is-text gap-2",
18767
18546
  style: { "justify-content": "start" },
18768
- onClick: ($event) => unref(switchTo)(index2)
18547
+ onClick: item.handler
18769
18548
  }, [
18770
- ((_b2 = item.meta) == null ? void 0 : _b2.icon) ? (openBlock(), createBlock(unref(MKSvgIcon), {
18549
+ item?.icon ? (openBlock(), createBlock(unref(MKSvgIcon), {
18771
18550
  key: 0,
18772
- name: (_c2 = item.meta) == null ? void 0 : _c2.icon
18551
+ name: item?.icon
18773
18552
  }, null, 8, ["name"])) : createCommentVNode("", true),
18774
- createTextVNode(" " + toDisplayString(typeof ((_d2 = item.meta) == null ? void 0 : _d2.title) === "function" ? (_e2 = item.meta) == null ? void 0 : _e2.title() : (_f2 = item.meta) == null ? void 0 : _f2.title), 1)
18553
+ createTextVNode(" " + toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
18775
18554
  ], 8, _hoisted_13$2)) : createCommentVNode("", true)
18776
18555
  ], 64);
18777
18556
  }), 128)) : createCommentVNode("", true),
18557
+ unref(settingsStore).mode === "pc" && unref(settingsStore).settings.menu.mode === "head" ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(menuStore).allMenus, (item, index2) => {
18558
+ return openBlock(), createElementBlock(Fragment, { key: index2 }, [
18559
+ item.meta?.type == "3" ? (openBlock(), createElementBlock("div", {
18560
+ key: 0,
18561
+ class: "w-full el-button user-action-item el-button--primary is-text gap-2",
18562
+ style: { "justify-content": "start" },
18563
+ onClick: ($event) => unref(switchTo)(index2)
18564
+ }, [
18565
+ item.meta?.icon ? (openBlock(), createBlock(unref(MKSvgIcon), {
18566
+ key: 0,
18567
+ name: item.meta?.icon
18568
+ }, null, 8, ["name"])) : createCommentVNode("", true),
18569
+ createTextVNode(" " + toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
18570
+ ], 8, _hoisted_14$2)) : createCommentVNode("", true)
18571
+ ], 64);
18572
+ }), 128)) : createCommentVNode("", true),
18778
18573
  createElementVNode("div", {
18779
18574
  class: "w-full el-button user-action-item el-button--danger is-text mx-0 gap-2",
18780
18575
  style: { "justify-content": "start" },
@@ -18792,7 +18587,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18792
18587
  };
18793
18588
  }
18794
18589
  });
18795
- const RightSide = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-9c16c350"]]);
18590
+ const RightSide = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-2062f309"]]);
18796
18591
  const _hoisted_1$c = { key: 0 };
18797
18592
  const _hoisted_2$9 = { class: "header-container" };
18798
18593
  const _hoisted_3$8 = { class: "menu h-full flex of-hidden transition-all" };
@@ -18831,9 +18626,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18831
18626
  }, [
18832
18627
  createElementVNode("div", _hoisted_3$8, [
18833
18628
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(menuStore).allMenus, (item, index2) => {
18834
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
18835
18629
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
18836
- ((_a2 = item.meta) == null ? void 0 : _a2.type) != "3" ? (openBlock(), createElementBlock("div", {
18630
+ item.meta?.type != "3" ? (openBlock(), createElementBlock("div", {
18837
18631
  key: 0,
18838
18632
  class: normalizeClass(["menu-item relative mx-1 py-3 transition-all", {
18839
18633
  active: index2 === unref(menuStore).actived
@@ -18844,15 +18638,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18844
18638
  class: normalizeClass(["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-3 text-[var(--g-header-menu-color)] transition-all hover-bg-[var(--g-header-menu-hover-bg)] hover-text-[var(--g-header-menu-hover-color)]", {
18845
18639
  "text-[var(--g-header-menu-active-color)]! bg-[var(--g-header-menu-active-bg)]!": index2 === unref(menuStore).actived
18846
18640
  }]),
18847
- title: typeof ((_b2 = item.meta) == null ? void 0 : _b2.title) === "function" ? (_c2 = item.meta) == null ? void 0 : _c2.title() : (_d2 = item.meta) == null ? void 0 : _d2.title,
18641
+ title: typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title,
18848
18642
  onClick: ($event) => unref(switchTo)(index2)
18849
18643
  }, [
18850
18644
  createElementVNode("div", _hoisted_5$6, [
18851
- ((_e2 = item.meta) == null ? void 0 : _e2.icon) ? (openBlock(), createBlock(_component_MKSvgIcon, {
18645
+ item.meta?.icon ? (openBlock(), createBlock(_component_MKSvgIcon, {
18852
18646
  key: 0,
18853
- name: (_f2 = item.meta) == null ? void 0 : _f2.icon
18647
+ name: item.meta?.icon
18854
18648
  }, null, 8, ["name"])) : createCommentVNode("", true),
18855
- createElementVNode("span", _hoisted_6$5, toDisplayString(typeof ((_g2 = item.meta) == null ? void 0 : _g2.title) === "function" ? (_h2 = item.meta) == null ? void 0 : _h2.title() : (_i2 = item.meta) == null ? void 0 : _i2.title), 1)
18649
+ createElementVNode("span", _hoisted_6$5, toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
18856
18650
  ])
18857
18651
  ], 10, _hoisted_4$7)) : createCommentVNode("", true)
18858
18652
  ], 2)) : createCommentVNode("", true)
@@ -18904,12 +18698,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18904
18698
  createElementVNode("div", _hoisted_2$8, [
18905
18699
  createElementVNode("div", _hoisted_3$7, [
18906
18700
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(menuStore).allMenus, (item, index2) => {
18907
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
18908
18701
  return openBlock(), createElementBlock("div", {
18909
18702
  key: index2,
18910
18703
  class: normalizeClass(["menu-item relative px-2 py-1 transition-all", {
18911
18704
  active: index2 === unref(menuStore).actived,
18912
- system: ((_a2 = item.meta) == null ? void 0 : _a2.type) == "3"
18705
+ system: item.meta?.type == "3"
18913
18706
  }])
18914
18707
  }, [
18915
18708
  item.children && item.children.length !== 0 ? (openBlock(), createElementBlock("div", {
@@ -18917,16 +18710,16 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18917
18710
  class: normalizeClass(["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 py-4 text-[var(--g-main-sidebar-menu-color)] transition-all hover-bg-[var(--g-main-sidebar-menu-hover-bg)] hover-text-[var(--g-main-sidebar-menu-hover-color)] px-2!", {
18918
18711
  "text-[var(--g-main-sidebar-menu-active-color)]! bg-[var(--g-main-sidebar-menu-active-bg)]!": index2 === unref(menuStore).actived
18919
18712
  }]),
18920
- title: typeof ((_b2 = item.meta) == null ? void 0 : _b2.title) === "function" ? (_c2 = item.meta) == null ? void 0 : _c2.title() : (_d2 = item.meta) == null ? void 0 : _d2.title,
18713
+ title: typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title,
18921
18714
  onClick: ($event) => unref(switchTo)(index2)
18922
18715
  }, [
18923
18716
  createElementVNode("div", _hoisted_5$5, [
18924
- ((_e2 = item.meta) == null ? void 0 : _e2.icon) ? (openBlock(), createBlock(_component_MKSvgIcon, {
18717
+ item.meta?.icon ? (openBlock(), createBlock(_component_MKSvgIcon, {
18925
18718
  key: 0,
18926
- name: (_f2 = item.meta) == null ? void 0 : _f2.icon,
18719
+ name: item.meta?.icon,
18927
18720
  class: "menu-item-container-icon transition-transform"
18928
18721
  }, null, 8, ["name"])) : createCommentVNode("", true),
18929
- createElementVNode("span", _hoisted_6$4, toDisplayString(typeof ((_g2 = item.meta) == null ? void 0 : _g2.title) === "function" ? (_h2 = item.meta) == null ? void 0 : _h2.title() : (_i2 = item.meta) == null ? void 0 : _i2.title), 1)
18722
+ createElementVNode("span", _hoisted_6$4, toDisplayString(typeof item.meta?.title === "function" ? item.meta?.title() : item.meta?.title), 1)
18930
18723
  ])
18931
18724
  ], 10, _hoisted_4$6)) : createCommentVNode("", true)
18932
18725
  ], 2);
@@ -18986,65 +18779,59 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18986
18779
  custom: "",
18987
18780
  to: _ctx.item.path || (_ctx.uniqueKey.at(-1) && _ctx.item.meta && !_ctx.item.group ? { name: _ctx.uniqueKey.at(-1) } : "")
18988
18781
  }, {
18989
- default: withCtx(({ href, navigate }) => {
18990
- var _a2, _b2, _c2, _d2, _e2;
18991
- return [
18992
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.subMenu ? "div" : "a"), mergeProps({
18993
- ...!_ctx.subMenu && {
18994
- href: ((_a2 = _ctx.item.meta) == null ? void 0 : _a2.link) ? _ctx.item.meta.link : href,
18995
- target: ((_b2 = _ctx.item.meta) == null ? void 0 : _b2.link) ? "_blank" : "_self",
18996
- class: "no-underline"
18997
- }
18998
- }, {
18999
- class: ["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-4 py-3 text-[var(--g-sub-sidebar-menu-color)] transition-all hover-bg-[var(--g-sub-sidebar-menu-hover-bg)] hover-text-[var(--g-sub-sidebar-menu-hover-color)]", {
19000
- "text-[var(--g-sub-sidebar-menu-active-color)]! bg-[var(--g-sub-sidebar-menu-active-bg)]!": unref(isItemActive),
19001
- "px-3!": unref(rootMenu).isMenuPopup && _ctx.level === 0
19002
- }],
19003
- title: typeof ((_c2 = _ctx.item.meta) == null ? void 0 : _c2.title) === "function" ? (_d2 = _ctx.item.meta) == null ? void 0 : _d2.title() : (_e2 = _ctx.item.meta) == null ? void 0 : _e2.title
19004
- }, toHandlers({
19005
- ...!_ctx.subMenu && {
19006
- click: navigate
19007
- }
19008
- })), {
19009
- default: withCtx(() => {
19010
- var _a3, _b3, _c3, _d3;
19011
- return [
19012
- createElementVNode("div", {
19013
- class: normalizeClass(["inline-flex flex-1 items-center justify-center gap-[12px]", {
19014
- "flex-col": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.mode === "vertical",
19015
- "gap-1!": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.showCollapseName,
19016
- "w-full": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.showCollapseName && unref(rootMenu).props.mode === "vertical"
19017
- }]),
19018
- style: normalizeStyle(unref(indentStyle))
19019
- }, [
19020
- ((_a3 = props.item.meta) == null ? void 0 : _a3.icon) ? (openBlock(), createBlock(_component_MKSvgIcon, {
19021
- key: 0,
19022
- name: props.item.meta.icon,
19023
- size: 18,
19024
- class: "menu-item-container-icon transition-transform"
19025
- }, null, 8, ["name"])) : createCommentVNode("", true),
19026
- !(unref(rootMenu).isMenuPopup && _ctx.level === 0 && !unref(rootMenu).props.showCollapseName) ? (openBlock(), createElementBlock("span", {
19027
- key: 1,
19028
- class: normalizeClass(["w-0 flex-1 truncate text-sm transition-height transition-opacity transition-width", {
19029
- "opacity-0 w-0 h-0": unref(rootMenu).isMenuPopup && _ctx.level === 0 && !unref(rootMenu).props.showCollapseName,
19030
- "w-full text-center": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.showCollapseName
19031
- }])
19032
- }, toDisplayString(typeof ((_b3 = _ctx.item.meta) == null ? void 0 : _b3.title) === "function" ? (_c3 = _ctx.item.meta) == null ? void 0 : _c3.title() : (_d3 = _ctx.item.meta) == null ? void 0 : _d3.title), 3)) : createCommentVNode("", true)
19033
- ], 6),
19034
- _ctx.subMenu && !(unref(rootMenu).isMenuPopup && _ctx.level === 0) ? (openBlock(), createElementBlock("i", {
19035
- key: 0,
19036
- class: normalizeClass(["relative ml-1 w-[10px] after:absolute after:h-[1.5px] after:w-[6px] after:bg-current after:transition-transform-200 after:content-empty after:-translate-y-[1px] before:absolute before:h-[1.5px] before:w-[6px] before:bg-current before:transition-transform-200 before:content-empty before:-translate-y-[1px]", [
19037
- _ctx.expand ? "before:-rotate-45 before:-translate-x-[2px] after:rotate-45 after:translate-x-[2px]" : "before:rotate-45 before:-translate-x-[2px] after:-rotate-45 after:translate-x-[2px]",
19038
- unref(rootMenu).isMenuPopup && _ctx.level === 0 && "opacity-0",
19039
- unref(rootMenu).isMenuPopup && _ctx.level !== 0 && "-rotate-90 -top-[1.5px]"
19040
- ]])
19041
- }, null, 2)) : createCommentVNode("", true)
19042
- ];
19043
- }),
19044
- _: 2
19045
- }, 1040, ["class", "title"]))
19046
- ];
19047
- }),
18782
+ default: withCtx(({ href, navigate }) => [
18783
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.subMenu ? "div" : "a"), mergeProps({
18784
+ ...!_ctx.subMenu && {
18785
+ href: _ctx.item.meta?.link ? _ctx.item.meta.link : href,
18786
+ target: _ctx.item.meta?.link ? "_blank" : "_self",
18787
+ class: "no-underline"
18788
+ }
18789
+ }, {
18790
+ class: ["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-4 py-3 text-[var(--g-sub-sidebar-menu-color)] transition-all hover-bg-[var(--g-sub-sidebar-menu-hover-bg)] hover-text-[var(--g-sub-sidebar-menu-hover-color)]", {
18791
+ "text-[var(--g-sub-sidebar-menu-active-color)]! bg-[var(--g-sub-sidebar-menu-active-bg)]!": unref(isItemActive),
18792
+ "px-3!": unref(rootMenu).isMenuPopup && _ctx.level === 0
18793
+ }],
18794
+ title: typeof _ctx.item.meta?.title === "function" ? _ctx.item.meta?.title() : _ctx.item.meta?.title
18795
+ }, toHandlers({
18796
+ ...!_ctx.subMenu && {
18797
+ click: navigate
18798
+ }
18799
+ })), {
18800
+ default: withCtx(() => [
18801
+ createElementVNode("div", {
18802
+ class: normalizeClass(["inline-flex flex-1 items-center justify-center gap-[12px]", {
18803
+ "flex-col": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.mode === "vertical",
18804
+ "gap-1!": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.showCollapseName,
18805
+ "w-full": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.showCollapseName && unref(rootMenu).props.mode === "vertical"
18806
+ }]),
18807
+ style: normalizeStyle(unref(indentStyle))
18808
+ }, [
18809
+ props.item.meta?.icon ? (openBlock(), createBlock(_component_MKSvgIcon, {
18810
+ key: 0,
18811
+ name: props.item.meta.icon,
18812
+ size: 18,
18813
+ class: "menu-item-container-icon transition-transform"
18814
+ }, null, 8, ["name"])) : createCommentVNode("", true),
18815
+ !(unref(rootMenu).isMenuPopup && _ctx.level === 0 && !unref(rootMenu).props.showCollapseName) ? (openBlock(), createElementBlock("span", {
18816
+ key: 1,
18817
+ class: normalizeClass(["w-0 flex-1 truncate text-sm transition-height transition-opacity transition-width", {
18818
+ "opacity-0 w-0 h-0": unref(rootMenu).isMenuPopup && _ctx.level === 0 && !unref(rootMenu).props.showCollapseName,
18819
+ "w-full text-center": unref(rootMenu).isMenuPopup && _ctx.level === 0 && unref(rootMenu).props.showCollapseName
18820
+ }])
18821
+ }, toDisplayString(typeof _ctx.item.meta?.title === "function" ? _ctx.item.meta?.title() : _ctx.item.meta?.title), 3)) : createCommentVNode("", true)
18822
+ ], 6),
18823
+ _ctx.subMenu && !(unref(rootMenu).isMenuPopup && _ctx.level === 0) ? (openBlock(), createElementBlock("i", {
18824
+ key: 0,
18825
+ class: normalizeClass(["relative ml-1 w-[10px] after:absolute after:h-[1.5px] after:w-[6px] after:bg-current after:transition-transform-200 after:content-empty after:-translate-y-[1px] before:absolute before:h-[1.5px] before:w-[6px] before:bg-current before:transition-transform-200 before:content-empty before:-translate-y-[1px]", [
18826
+ _ctx.expand ? "before:-rotate-45 before:-translate-x-[2px] after:rotate-45 after:translate-x-[2px]" : "before:rotate-45 before:-translate-x-[2px] after:-rotate-45 after:translate-x-[2px]",
18827
+ unref(rootMenu).isMenuPopup && _ctx.level === 0 && "opacity-0",
18828
+ unref(rootMenu).isMenuPopup && _ctx.level !== 0 && "-rotate-90 -top-[1.5px]"
18829
+ ]])
18830
+ }, null, 2)) : createCommentVNode("", true)
18831
+ ]),
18832
+ _: 2
18833
+ }, 1040, ["class", "title"]))
18834
+ ]),
19048
18835
  _: 1
19049
18836
  }, 8, ["to"])
19050
18837
  ], 2);
@@ -19136,10 +18923,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19136
18923
  const hasChildren = computed(() => {
19137
18924
  let flag = true;
19138
18925
  if (props.menu.children) {
19139
- if (props.menu.children.every((item) => {
19140
- var _a2;
19141
- return ((_a2 = item.meta) == null ? void 0 : _a2.menu) === false;
19142
- })) {
18926
+ if (props.menu.children.every((item) => item.meta?.menu === false)) {
19143
18927
  flag = false;
19144
18928
  }
19145
18929
  } else {
@@ -19163,7 +18947,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19163
18947
  return;
19164
18948
  }
19165
18949
  rootMenu.mouseInMenu = props.uniqueKey;
19166
- timeout == null ? void 0 : timeout();
18950
+ timeout?.();
19167
18951
  ({ stop: timeout } = useTimeoutFn(() => {
19168
18952
  if (hasChildren.value) {
19169
18953
  rootMenu.openMenu(index2, props.uniqueKey);
@@ -19201,7 +18985,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19201
18985
  return;
19202
18986
  }
19203
18987
  rootMenu.mouseInMenu = [];
19204
- timeout == null ? void 0 : timeout();
18988
+ timeout?.();
19205
18989
  ({ stop: timeout } = useTimeoutFn(() => {
19206
18990
  if (rootMenu.mouseInMenu.length === 0) {
19207
18991
  rootMenu.closeMenu(props.uniqueKey);
@@ -19249,11 +19033,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19249
19033
  }, {
19250
19034
  default: withCtx(() => [
19251
19035
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu.children, (item) => {
19252
- var _a2;
19253
19036
  return openBlock(), createElementBlock(Fragment, {
19254
19037
  key: item.name
19255
19038
  }, [
19256
- ((_a2 = item.meta) == null ? void 0 : _a2.menu) !== false ? (openBlock(), createBlock(_component_SubMenu, {
19039
+ item.meta?.menu !== false ? (openBlock(), createBlock(_component_SubMenu, {
19257
19040
  key: 0,
19258
19041
  "unique-key": [..._ctx.uniqueKey, item.name],
19259
19042
  menu: item,
@@ -19341,11 +19124,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
19341
19124
  });
19342
19125
  };
19343
19126
  function setSubMenusActive(index2) {
19344
- var _a2, _b2;
19345
- (_a2 = subMenus.value[index2]) == null ? void 0 : _a2.indexPath.forEach((idx) => {
19127
+ subMenus.value[index2]?.indexPath.forEach((idx) => {
19346
19128
  subMenus.value[idx].active = true;
19347
19129
  });
19348
- (_b2 = items.value[index2]) == null ? void 0 : _b2.indexPath.forEach((idx) => {
19130
+ items.value[index2]?.indexPath.forEach((idx) => {
19349
19131
  subMenus.value[idx].active = true;
19350
19132
  });
19351
19133
  }
@@ -19363,7 +19145,6 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
19363
19145
  }
19364
19146
  };
19365
19147
  function initMenu() {
19366
- var _a2;
19367
19148
  const menuList = [...props.menu];
19368
19149
  for (const menuItem of menuList) {
19369
19150
  if (menuItem.routes.includes(activeIndex.value)) {
@@ -19375,7 +19156,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
19375
19156
  }
19376
19157
  openedMenus.value = [props.value];
19377
19158
  for (const menuItem of menuList) {
19378
- if ((_a2 = menuItem.children) == null ? void 0 : _a2.find((sub) => openedMenus.value.includes(sub.name))) {
19159
+ if (menuItem.children?.find((sub) => openedMenus.value.includes(sub.name))) {
19379
19160
  openedMenus.value.push(menuItem.name);
19380
19161
  }
19381
19162
  }
@@ -19447,12 +19228,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
19447
19228
  }])
19448
19229
  }, [
19449
19230
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menu, (item) => {
19450
- var _a2, _b2;
19451
19231
  return openBlock(), createElementBlock(Fragment, {
19452
19232
  key: item.name
19453
19233
  }, [
19454
- ((_a2 = item.meta) == null ? void 0 : _a2.menu) !== false ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19455
- ((_b2 = item.children) == null ? void 0 : _b2.length) ? (openBlock(), createBlock(_sfc_main$f, {
19234
+ item.meta?.menu !== false ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19235
+ item.children?.length ? (openBlock(), createBlock(_sfc_main$f, {
19456
19236
  key: 0,
19457
19237
  menu: item,
19458
19238
  "unique-key": [item.name]
@@ -19491,10 +19271,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
19491
19271
  showShadowBottom.value = Math.ceil(scrollTop + clientHeight) < scrollHeight;
19492
19272
  }
19493
19273
  const enableSidebar = computed(() => {
19494
- return settingsStore.mode === "mobile" || menuStore.sidebarMenus.length !== 0 && !menuStore.sidebarMenus.every((item) => {
19495
- var _a2;
19496
- return ((_a2 = item.meta) == null ? void 0 : _a2.menu) === false;
19497
- });
19274
+ return settingsStore.mode === "mobile" || menuStore.sidebarMenus.length !== 0 && !menuStore.sidebarMenus.every((item) => item.meta?.menu === false);
19498
19275
  });
19499
19276
  watch(enableSidebar, (val) => {
19500
19277
  if (val) {
@@ -19630,15 +19407,13 @@ const useTabbarStore = defineStore(
19630
19407
  const list = ref([]);
19631
19408
  const leaveIndex = ref(-1);
19632
19409
  async function add(route) {
19633
- var _a2, _b2, _c2;
19634
19410
  const names = [];
19635
19411
  route.matched.forEach((v, i) => {
19636
- var _a3;
19637
19412
  if (i > 0) {
19638
- ((_a3 = v.components) == null ? void 0 : _a3.default.name) && names.push(v.components.default.name);
19413
+ v.components?.default.name && names.push(v.components.default.name);
19639
19414
  }
19640
19415
  });
19641
- const meta = (_a2 = route.matched.at(-1)) == null ? void 0 : _a2.meta;
19416
+ const meta = route.matched.at(-1)?.meta;
19642
19417
  const tabId = route.fullPath;
19643
19418
  if (route.name !== "reload") {
19644
19419
  const findTab = list.value.find((item) => {
@@ -19653,8 +19428,8 @@ const useTabbarStore = defineStore(
19653
19428
  tabId,
19654
19429
  fullPath: route.fullPath,
19655
19430
  routeName: route.name,
19656
- title: typeof (meta == null ? void 0 : meta.title) === "function" ? meta.title() : meta == null ? void 0 : meta.title,
19657
- icon: (meta == null ? void 0 : meta.icon) ?? ((_c2 = (_b2 = meta == null ? void 0 : meta.breadcrumbNeste) == null ? void 0 : _b2.findLast((item) => item.icon)) == null ? void 0 : _c2.icon),
19431
+ title: typeof meta?.title === "function" ? meta.title() : meta?.title,
19432
+ icon: meta?.icon ?? meta?.breadcrumbNeste?.findLast((item) => item.icon)?.icon,
19658
19433
  name: names
19659
19434
  };
19660
19435
  if (leaveIndex.value >= 0) {
@@ -19853,9 +19628,8 @@ function useTabbar() {
19853
19628
  });
19854
19629
  }
19855
19630
  function checkCloseLeftSide(tabId = getId()) {
19856
- var _a2;
19857
19631
  let flag = true;
19858
- if (tabId === ((_a2 = tabbarStore.list[0]) == null ? void 0 : _a2.tabId)) {
19632
+ if (tabId === tabbarStore.list[0]?.tabId) {
19859
19633
  flag = false;
19860
19634
  } else {
19861
19635
  const index2 = tabbarStore.list.findIndex((item) => item.tabId === tabId);
@@ -19866,9 +19640,8 @@ function useTabbar() {
19866
19640
  return flag;
19867
19641
  }
19868
19642
  function checkCloseRightSide(tabId = getId()) {
19869
- var _a2;
19870
19643
  let flag = true;
19871
- if (tabId === ((_a2 = tabbarStore.list.at(-1)) == null ? void 0 : _a2.tabId)) {
19644
+ if (tabId === tabbarStore.list.at(-1)?.tabId) {
19872
19645
  flag = false;
19873
19646
  } else {
19874
19647
  const index2 = tabbarStore.list.findIndex((item) => item.tabId === tabId);
@@ -20012,10 +19785,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20012
19785
  hotkeys(
20013
19786
  "alt+left,alt+right,alt+w,alt+1,alt+2,alt+3,alt+4,alt+5,alt+6,alt+7,alt+8,alt+9,alt+0",
20014
19787
  (e, handle) => {
20015
- var _a2, _b2;
20016
19788
  if (settingsStore.settings.tabbar.enable && settingsStore.settings.tabbar.enableHotkeys) {
20017
19789
  e.preventDefault();
20018
19790
  switch (handle.key) {
19791
+ // 切换到当前标签页紧邻的上一个标签页
20019
19792
  case "alt+left":
20020
19793
  if (tabbarStore.list[0].tabId !== activedTabId.value) {
20021
19794
  const index2 = tabbarStore.list.findIndex(
@@ -20024,17 +19797,20 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20024
19797
  router.push(tabbarStore.list[index2 - 1].fullPath);
20025
19798
  }
20026
19799
  break;
19800
+ // 切换到当前标签页紧邻的下一个标签页
20027
19801
  case "alt+right":
20028
- if (((_a2 = tabbarStore.list.at(-1)) == null ? void 0 : _a2.tabId) !== activedTabId.value) {
19802
+ if (tabbarStore.list.at(-1)?.tabId !== activedTabId.value) {
20029
19803
  const index2 = tabbarStore.list.findIndex(
20030
19804
  (item) => item.tabId === activedTabId.value
20031
19805
  );
20032
19806
  router.push(tabbarStore.list[index2 + 1].fullPath);
20033
19807
  }
20034
19808
  break;
19809
+ // 关闭当前标签页
20035
19810
  case "alt+w":
20036
19811
  tabbar.closeById(activedTabId.value);
20037
19812
  break;
19813
+ // 切换到第 n 个标签页
20038
19814
  case "alt+1":
20039
19815
  case "alt+2":
20040
19816
  case "alt+3":
@@ -20045,9 +19821,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20045
19821
  case "alt+8":
20046
19822
  case "alt+9": {
20047
19823
  const number = Number(handle.key.split("+")[1]);
20048
- ((_b2 = tabbarStore.list[number - 1]) == null ? void 0 : _b2.fullPath) && router.push(tabbarStore.list[number - 1].fullPath);
19824
+ tabbarStore.list[number - 1]?.fullPath && router.push(tabbarStore.list[number - 1].fullPath);
20049
19825
  break;
20050
19826
  }
19827
+ // 切换到最后一个标签页
20051
19828
  case "alt+0":
20052
19829
  router.push(tabbarStore.list[tabbarStore.list.length - 1].fullPath);
20053
19830
  break;
@@ -20088,7 +19865,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20088
19865
  class: normalizeClass(["tab", {
20089
19866
  actived: element.tabId === unref(activedTabId)
20090
19867
  }]),
20091
- title: typeof (element == null ? void 0 : element.title) === "function" ? element.title() : element.title,
19868
+ title: typeof element?.title === "function" ? element.title() : element.title,
20092
19869
  onClick: ($event) => unref(router).push(element.fullPath),
20093
19870
  onContextmenu: ($event) => onTabbarContextmenu($event, element)
20094
19871
  }, [
@@ -20104,7 +19881,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20104
19881
  name: element.icon,
20105
19882
  class: "icon"
20106
19883
  }, null, 8, ["name"])) : createCommentVNode("", true),
20107
- createTextVNode(" " + toDisplayString(typeof (element == null ? void 0 : element.title) === "function" ? element.title() : element.title), 1)
19884
+ createTextVNode(" " + toDisplayString(typeof element?.title === "function" ? element.title() : element.title), 1)
20108
19885
  ])),
20109
19886
  unref(tabbarStore).list.length > 1 ? (openBlock(), createElementBlock("div", {
20110
19887
  key: 0,
@@ -20432,13 +20209,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20432
20209
  flag = true;
20433
20210
  }
20434
20211
  if (item.breadcrumb.some((b) => {
20435
- var _a2;
20436
20212
  if (typeof b.title === "function") {
20437
20213
  if (b.title().includes(searchInput.value)) {
20438
20214
  return true;
20439
20215
  }
20440
20216
  } else {
20441
- if ((_a2 = b.title) == null ? void 0 : _a2.includes(searchInput.value)) {
20217
+ if (b.title?.includes(searchInput.value)) {
20442
20218
  return true;
20443
20219
  }
20444
20220
  }
@@ -20502,40 +20278,35 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20502
20278
  });
20503
20279
  }
20504
20280
  function hasChildren(item) {
20505
- var _a2;
20506
20281
  let flag = true;
20507
- if ((_a2 = item.children) == null ? void 0 : _a2.every((i) => {
20508
- var _a3;
20509
- return ((_a3 = i.meta) == null ? void 0 : _a3.menu) === false;
20510
- })) {
20282
+ if (item.children?.every((i) => i.meta?.menu === false)) {
20511
20283
  flag = false;
20512
20284
  }
20513
20285
  return flag;
20514
20286
  }
20515
20287
  function getSourceListByMenus(arr, basePath, icon, breadcrumb) {
20516
20288
  arr.forEach((item) => {
20517
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
20518
- if (((_a2 = item.meta) == null ? void 0 : _a2.menu) !== false) {
20289
+ if (item.meta?.menu !== false) {
20519
20290
  const breadcrumbTemp = cloneDeep(breadcrumb) || [];
20520
20291
  if (item.children && hasChildren(item)) {
20521
20292
  breadcrumbTemp.push({
20522
- title: (_b2 = item.meta) == null ? void 0 : _b2.title
20293
+ title: item.meta?.title
20523
20294
  });
20524
20295
  getSourceListByMenus(
20525
20296
  item.children,
20526
20297
  resolveRoutePath(basePath, item.path),
20527
- ((_c2 = item.meta) == null ? void 0 : _c2.icon) ?? icon,
20298
+ item.meta?.icon ?? icon,
20528
20299
  breadcrumbTemp
20529
20300
  );
20530
20301
  } else {
20531
20302
  breadcrumbTemp.push({
20532
- title: (_d2 = item.meta) == null ? void 0 : _d2.title
20303
+ title: item.meta?.title
20533
20304
  });
20534
20305
  sourceList.value.push({
20535
20306
  path: resolveRoutePath(basePath, item.path),
20536
- icon: ((_e2 = item.meta) == null ? void 0 : _e2.icon) ?? icon,
20537
- title: (_f2 = item.meta) == null ? void 0 : _f2.title,
20538
- link: (_g2 = item.meta) == null ? void 0 : _g2.link,
20307
+ icon: item.meta?.icon ?? icon,
20308
+ title: item.meta?.title,
20309
+ link: item.meta?.link,
20539
20310
  breadcrumb: breadcrumbTemp
20540
20311
  });
20541
20312
  }
@@ -20561,24 +20332,22 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20561
20332
  }
20562
20333
  }
20563
20334
  function keyEnter() {
20564
- var _a2;
20565
20335
  if (actived.value !== -1) {
20566
- (_a2 = searchResultItemRef.value.find((item) => Number.parseInt(item.dataset.index) === actived.value)) == null ? void 0 : _a2.click();
20336
+ searchResultItemRef.value.find((item) => Number.parseInt(item.dataset.index) === actived.value)?.click();
20567
20337
  }
20568
20338
  }
20569
20339
  function handleScroll() {
20570
- var _a2, _b2;
20571
20340
  if (searchResultRef.value) {
20572
20341
  const contentDom = searchResultRef.value.osInstance().elements().content;
20573
20342
  let scrollTo = 0;
20574
20343
  if (actived.value !== -1) {
20575
20344
  scrollTo = contentDom.scrollTop;
20576
- const activedOffsetTop = ((_a2 = searchResultItemRef.value.find(
20345
+ const activedOffsetTop = searchResultItemRef.value.find(
20577
20346
  (item) => Number.parseInt(item.dataset.index) === actived.value
20578
- )) == null ? void 0 : _a2.offsetTop) ?? 0;
20579
- const activedClientHeight = ((_b2 = searchResultItemRef.value.find(
20347
+ )?.offsetTop ?? 0;
20348
+ const activedClientHeight = searchResultItemRef.value.find(
20580
20349
  (item) => Number.parseInt(item.dataset.index) === actived.value
20581
- )) == null ? void 0 : _b2.clientHeight) ?? 0;
20350
+ )?.clientHeight ?? 0;
20582
20351
  const searchScrollTop = contentDom.scrollTop;
20583
20352
  const searchClientHeight = contentDom.clientHeight;
20584
20353
  if (activedOffsetTop + activedClientHeight > searchScrollTop + searchClientHeight) {
@@ -21149,7 +20918,6 @@ const SystemProvider = /* @__PURE__ */ defineComponent({
21149
20918
  computed(() => msAppClient.ready);
21150
20919
  const slots = useSlots();
21151
20920
  watch(computed(() => unref(vueRouter.currentRoute)), (route) => {
21152
- var _a2, _b2, _c2, _d2;
21153
20921
  const userSession = msAppClient.userSession;
21154
20922
  if (!userSession) {
21155
20923
  return;
@@ -21173,7 +20941,7 @@ const SystemProvider = /* @__PURE__ */ defineComponent({
21173
20941
  const tab = tabs.findTabByID(route.fullPath) ?? tabs.createTab({
21174
20942
  id: route.fullPath,
21175
20943
  title: routeInfo.title,
21176
- affix: !!((_d2 = (_c2 = (_b2 = route.matched) == null ? void 0 : _b2[((_a2 = route.matched) == null ? void 0 : _a2.length) - 1]) == null ? void 0 : _c2.meta) == null ? void 0 : _d2.affix),
20944
+ affix: !!route.matched?.[route.matched?.length - 1]?.meta?.affix,
21177
20945
  realRoute: route,
21178
20946
  route: routeInfo
21179
20947
  });
@@ -21271,10 +21039,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21271
21039
  if (settingsStore.settings.menu.subMenuCollapse && settingsStore.mode !== "mobile") {
21272
21040
  actualWidth = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue("--g-sub-sidebar-collapse-width"));
21273
21041
  }
21274
- if (menuStore.sidebarMenus.every((item) => {
21275
- var _a2;
21276
- return ((_a2 = item.meta) == null ? void 0 : _a2.menu) === false;
21277
- })) {
21042
+ if (menuStore.sidebarMenus.every((item) => item.meta?.menu === false)) {
21278
21043
  actualWidth = 0;
21279
21044
  }
21280
21045
  return `${actualWidth}px`;
@@ -21364,7 +21129,6 @@ const Layout = /* @__PURE__ */ defineComponent({
21364
21129
  });
21365
21130
  const MKLayout = withInstall(Layout);
21366
21131
  function generateRoutesFromFiles(files) {
21367
- var _a2;
21368
21132
  const routes = [];
21369
21133
  for (const file of files) {
21370
21134
  const segments = file.path.split("/");
@@ -21394,7 +21158,7 @@ function generateRoutesFromFiles(files) {
21394
21158
  route.path += getRoutePath(tokens);
21395
21159
  }
21396
21160
  }
21397
- route.path = ((_a2 = file.module.mkRoute) == null ? void 0 : _a2.path) || route.path;
21161
+ route.path = file.module.mkRoute?.path || route.path;
21398
21162
  parent.push(route);
21399
21163
  }
21400
21164
  return prepareRoutes(routes);
@@ -21481,13 +21245,12 @@ function findRouteByKey(key, routes) {
21481
21245
  return findRouteByKey(key, routes);
21482
21246
  }
21483
21247
  function prepareRoutes(routes, parent, keys = /* @__PURE__ */ new Set()) {
21484
- var _a2;
21485
21248
  for (const route of routes) {
21486
21249
  if (route.key) {
21487
21250
  route.key = route.key.replace(/\/index$/, "").replace(/\//g, "-");
21488
21251
  if (keys.has(route.key)) {
21489
21252
  const existingRoute = findRouteByKey(route.key, routes);
21490
- const extra = (existingRoute == null ? void 0 : existingRoute.name) ? `is the same as \`${existingRoute.file}\`` : "is a duplicate";
21253
+ const extra = existingRoute?.name ? `is the same as \`${existingRoute.file}\`` : "is a duplicate";
21491
21254
  console.warn(
21492
21255
  `Route name generated for \`${route.file}\` ${extra}. You may wish to set a custom name using \`definePageMeta\` within the page file.`
21493
21256
  );
@@ -21497,7 +21260,7 @@ function prepareRoutes(routes, parent, keys = /* @__PURE__ */ new Set()) {
21497
21260
  if (parent && route.path.startsWith("/")) {
21498
21261
  route.path = route.path.slice(1);
21499
21262
  }
21500
- if ((_a2 = route.children) == null ? void 0 : _a2.length) {
21263
+ if (route.children?.length) {
21501
21264
  route.children = prepareRoutes(route.children, route, keys);
21502
21265
  }
21503
21266
  if (route.key) {
@@ -21541,10 +21304,9 @@ const initApplication = async (options) => {
21541
21304
  window.msAppClient = msAppClient;
21542
21305
  const routes = generateRoutesFromFiles(
21543
21306
  Object.keys(options.routes).map((key) => {
21544
- var _a2;
21545
21307
  return {
21546
21308
  path: key.replace(/^\.\/pages\/(.+)\.vue$/, (_2, g) => g),
21547
- module: ((_a2 = options.routes[key]) == null ? void 0 : _a2.default) || options.routes[key]
21309
+ module: options.routes[key]?.default || options.routes[key]
21548
21310
  };
21549
21311
  })
21550
21312
  );
@@ -21602,9 +21364,9 @@ export {
21602
21364
  useSingleViewWithDialog as N,
21603
21365
  MKTreeView as O,
21604
21366
  MKCodeEditor as P,
21605
- markdownEditorProps as Q,
21367
+ markdownEditorEmits as Q,
21606
21368
  ResourceSelect as R,
21607
- markdownEditorEmits as S,
21369
+ markdownEditorProps as S,
21608
21370
  MKFileSelect as T,
21609
21371
  install as U,
21610
21372
  version as V,
@@ -21804,4 +21566,4 @@ export {
21804
21566
  MsRouteTable as y,
21805
21567
  useSingleView as z
21806
21568
  };
21807
- //# sourceMappingURL=index-DqGUsw-a.js.map
21569
+ //# sourceMappingURL=index-B-aUha22.js.map